/* Branding: all colours and fonts live here. */
:root {
  /* Provisional look until the real branding arrives: warm cream, elegant serif, pink accent. */
  --bg: #f6f2eb;         /* warm cream page */
  --surface: #fbf9f5;
  --photo-bg: #ece6dc;   /* behind photos while they load */
  --blush: #f9e6ee;      /* very light pink for the odd small panel */
  --ink: #2b2527;        /* text */
  --muted: #7d7470;
  --accent: #e0457f;     /* pink: buttons, badges, links, wordmark */
  --accent-dark: #c23468;
  --accent-ink: #ffffff;
  --line: #e4ddd2;
  --script: "Parisienne", "Brush Script MT", cursive;
  --display: "Cormorant Garamond", Georgia, serif;
  --body: "EB Garamond", Georgia, serif;
  --radius: 0;
  --logo: "Abril Fatface", Georgia, serif;
  --tag: "Allura", "Brush Script MT", cursive;
  --heart: #f0287a;
}
* { box-sizing: border-box; }
/* Anything with the hidden attribute stays hidden, even if a class sets display. */
[hidden] { display: none !important; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; display: block; }
a { color: var(--accent); }
h1, h2, h3 { text-wrap: balance; font-family: var(--display); font-weight: 500; line-height: 1.1; }

.announce { border-bottom: 1px solid var(--line); color: var(--muted); text-align: center; font-size: .78rem; letter-spacing: .2em; text-transform: uppercase; padding: 8px 16px; }

.site-header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 4px clamp(16px, 3vw, 40px); padding: 18px clamp(16px, 3vw, 40px); }
.brand { display: flex; flex-direction: column; align-items: center; text-decoration: none; color: var(--accent); line-height: 1; }
.brand .script { font-family: var(--script); font-size: clamp(2rem, 5vw, 2.9rem); white-space: nowrap; }
.brand .sub { font-family: var(--display); font-size: .72rem; letter-spacing: .42em; text-transform: uppercase; color: var(--ink); margin: 2px 0 0 .42em; }
/* Logo: name filled with Ann Maree's swirl painting, hot-pink heart tucked at the top right. */
.logo-name { position: relative; display: inline-block; font-family: var(--logo); font-size: clamp(1.9rem, 4.2vw, 2.7rem); line-height: 1.05; white-space: nowrap; padding-right: .3em;
  background: url(/art/swirl.jpg) center / cover; -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-heart { position: absolute; right: -.18em; top: -.12em; width: .46em; height: .4em; fill: var(--heart); transform: rotate(14deg); }
.logo-sub { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-family: var(--display); font-size: .7rem; letter-spacing: .42em; text-transform: uppercase; color: var(--accent-dark); }
.logo-sub::before, .logo-sub::after { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .45; }
.logo-tag { font-family: var(--tag); font-size: 1.15rem; color: var(--heart); margin-top: 2px; }
.brand img { height: 60px; width: auto; }
.site-header nav { display: flex; justify-content: flex-end; gap: clamp(18px, 3.5vw, 52px); }
.site-header nav a { text-decoration: none; color: var(--ink); font-family: var(--display); font-size: 1.12rem; letter-spacing: .14em; }
.site-header nav a:hover { color: var(--accent); }
.header-tools { display: flex; align-items: center; }

main { max-width: 1400px; margin: 0 auto; padding: 0 clamp(16px, 3vw, 40px) 80px; }

.hero { text-align: center; padding: clamp(24px, 5vw, 56px) 16px clamp(20px, 4vw, 40px); }
.eyebrow { margin: 0 0 10px; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.hero h1 { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 500; margin: 0 auto; max-width: 20ch; }
.hero h1 em { color: var(--accent); }
.hero p:last-child { text-wrap: balance; color: var(--muted); max-width: 30rem; margin: 12px auto 0; }

.collection-head { display: flex; align-items: baseline; justify-content: space-between; margin: 8px 0 20px; }
.collection-head h2 { margin: 0; font-family: var(--body); font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.collection-head p { margin: 0; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 4vw, 48px) clamp(12px, 2vw, 24px); }
.card { min-width: 0; }
.card-body { display: block; text-decoration: none; color: inherit; }
.card-img { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; background: var(--photo-bg); }
.slides { display: block; position: relative; width: 100%; height: 100%; }
.slides img { width: 100%; height: 100%; object-fit: cover; }
/* Hover: the next photo dissolves in while zooming 5%, over 1s, eased out. */
.slides .extra { position: absolute; inset: 0; opacity: 0; transform: scale(1); transition: opacity 1s cubic-bezier(.22, 1, .36, 1), transform 1s cubic-bezier(.22, 1, .36, 1); }
.slides .extra.on { opacity: 1; transform: scale(1.05); }
/* Arrows and dots for flicking through a necklace's photos. */
.arrow { position: absolute; top: 50%; z-index: 3; display: grid; place-items: center; width: 34px; height: 34px; margin-top: -17px; padding: 0; border: 0; border-radius: 50%; background: rgb(251 249 245 / .85); color: var(--ink); cursor: pointer; opacity: 0; transition: opacity .3s, background .2s, color .2s; }
.arrow svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.arrow.prev { left: 10px; }
.arrow.next { right: 10px; }
.arrow:hover { background: var(--accent); color: #fff; }
.card:hover .arrow, .arrow:focus-visible { opacity: 1; }
.dots { position: absolute; z-index: 3; left: 0; right: 0; bottom: 64px; display: flex; justify-content: center; gap: 6px; pointer-events: none; opacity: 0; transition: opacity .3s; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .7; box-shadow: 0 0 2px #0005; }
.dots i.on { opacity: 1; background: var(--accent); }
.card:hover .dots { opacity: 1; }
/* "Add to bag" bar: fades in while sliding up from the bottom of the photo. */
.quick-add { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: var(--radius); background: rgb(251 249 245 / .92); color: var(--ink); font: 500 .85rem var(--body); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; opacity: 0; transform: translateY(14px); transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1), background .2s, color .2s; }
.quick-add .icon { width: 18px; height: 18px; display: none; }
.quick-add:hover, .quick-add:focus-visible { background: var(--accent); color: var(--accent-ink); }
.quick-add.in-bag { background: var(--ink); color: #fff; }
.quick-add.in-bag:hover { background: var(--accent); }
.card:hover .quick-add, .quick-add:focus-visible { opacity: 1; transform: none; }
[data-sold="true"] .quick-add, [data-held="true"] .quick-add { display: none; }
/* Phones: swipe through the photos instead of hovering. */
@media (hover: none) {
  .multi .slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
  .multi .slides::-webkit-scrollbar { display: none; }
  .multi .slides img { flex: 0 0 100%; scroll-snap-align: start; }
  .multi .slides .extra { position: static; opacity: 1; transform: none; }
  .arrow { display: none; }
  .dots { bottom: 12px; opacity: 1; }
  /* No hover on phones: a small round bag button sits in the corner instead. */
  .quick-add { left: auto; right: 10px; bottom: 10px; width: 40px; height: 40px; padding: 0; border-radius: 50%; opacity: 1; transform: none; box-shadow: 0 1px 6px #0002; }
  .quick-add .label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .quick-add .icon { display: block; }
}
.card-body { padding: 12px 0 0; }
.card-body h3 { margin: 0; font-family: var(--body); font-size: 1.05rem; font-weight: 400; }

.price { color: var(--muted); margin: 2px 0 0; font-size: 1rem; }
.badge { display: none; position: absolute; z-index: 2; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: var(--radius); }
[data-sold="true"] .badge { display: block; }
.tag { position: absolute; z-index: 2; top: 10px; left: 10px; background: rgb(251 249 245 / .9); color: var(--accent); font-size: .68rem; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; padding: 5px 9px; border-radius: var(--radius); }
[data-sold="true"] .tag { display: none; }
/* Sold pieces: on hover the bag bar is replaced by a non-clickable note. */
.sold-bar { position: absolute; left: 10px; right: 10px; bottom: 10px; padding: 12px 16px; border-radius: var(--radius); background: rgb(251 249 245 / .92); color: var(--ink); font-weight: 700; font-size: .95rem; text-align: center; opacity: 0; transform: translateY(14px); transition: opacity .45s cubic-bezier(.22, 1, .36, 1), transform .45s cubic-bezier(.22, 1, .36, 1); pointer-events: none; display: none; }
[data-sold="true"] .sold-bar { display: block; }
@media (hover: hover) { [data-sold="true"]:hover .sold-bar { opacity: 1; transform: none; } }
.hiding-sold [data-sold="true"] { display: none; }
.hide-sold { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 600; cursor: pointer; }
.hide-sold input { accent-color: var(--accent); width: 18px; height: 18px; }
[data-sold="true"] .slides { opacity: .55; }
.empty { text-align: center; color: var(--muted); }

.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(24px, 5vw, 64px); padding-top: 24px; }
.gallery { align-self: start; position: sticky; top: 24px; }
.main-img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--photo-bg); }
.thumbs { display: flex; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.thumbs button { padding: 0; border: 2px solid transparent; background: none; cursor: pointer; width: 76px; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; }
.thumbs button:hover, .thumbs button:focus-visible { border-color: var(--accent); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
.back { font-size: .9rem; font-weight: 600; text-decoration: none; color: var(--muted); }
.info h1 { font-size: clamp(2rem, 4.5vw, 2.8rem); font-weight: 500; margin: 14px 0 6px; }
.info .price { font-size: 1.35rem; color: var(--ink); }
.desc { margin-top: 16px; }
.maker-note { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 6px; padding: 14px 16px; background: var(--blush); }
.maker-note svg { flex: none; width: 20px; height: 17px; margin-top: 4px; fill: var(--heart); }
.maker-note p { margin: 0; font-size: .98rem; line-height: 1.5; }
.maker-note strong { display: block; font-family: var(--tag); font-weight: 400; font-size: 1.45rem; line-height: 1.1; color: var(--accent-dark); margin-bottom: 2px; }
.item-no { color: var(--muted); font-size: .9rem; }
dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; font-size: .95rem; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 14px 0; }
dt { color: var(--muted); font-weight: 600; }
dd { margin: 0; }
.unique { font-size: .95rem; color: var(--accent); font-weight: 600; }
.buy { width: 100%; max-width: 380px; padding: 16px 28px; border: 0; border-radius: var(--radius); background: var(--accent); color: var(--accent-ink); font: 500 .95rem var(--body); letter-spacing: .18em; text-transform: uppercase; cursor: pointer; transition: background .2s; }
.buy:hover { background: var(--accent-dark); }
.buy:disabled { opacity: .6; cursor: default; }
.sold-note, .held-note { display: none; color: var(--muted); }
.product[data-sold="true"] .buy, .product[data-held="true"] .buy { display: none; }
.product[data-sold="true"] .sold-note { display: block; font-family: var(--display); font-size: 1.4rem; color: var(--ink); }
.product[data-sold="true"] .unique, .product[data-sold="true"] .held-note { display: none; }
.product[data-held="true"]:not([data-sold="true"]) .held-note { display: block; }
.product[data-sold="true"] .main-img { opacity: .7; }
.buy-error { color: #c2185b; min-height: 1.5em; }

.page { padding-top: 48px; }
.narrow { max-width: 40rem; margin: 0 auto; }
.page h1 { font-size: 2.8rem; }
.about { padding-bottom: 56px; }
.about .eyebrow { margin: 0; font-size: .78rem; letter-spacing: .3em; text-transform: uppercase; color: var(--accent-dark); }
.about h1 { margin: 6px 0 18px; }
.about .lead { font-size: 1.2rem; line-height: 1.6; }
.about h2 { font-size: 1.7rem; margin: 40px 0 8px; color: var(--accent-dark); }
.about .closing { margin-top: 40px; font-family: var(--display); font-style: italic; font-size: 1.4rem; line-height: 1.4; color: var(--ink); text-align: center; text-wrap: balance; }

.site-footer { border-top: 1px solid var(--line); text-align: center; padding: 44px 16px; color: var(--muted); font-size: .92rem; }
.site-footer p { margin: 4px 0; }
.brand-small { margin: 0 0 8px; }
.brand-small .logo-name { font-size: 2rem; }

/* Bag button in the header */
.bag-toggle { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: var(--ink); cursor: pointer; }
.bag-toggle:hover { color: var(--accent); }
.icon-link { display: grid; place-items: center; width: 40px; height: 40px; color: var(--ink); }
.icon-link:hover { color: var(--accent); }
.icon-link svg { width: 22px; height: 22px; }
.footer-ig { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; font-weight: 600; margin: 8px 0; }
.footer-ig:hover { color: var(--accent); }
.footer-ig svg { width: 20px; height: 20px; }
.bag-toggle svg { width: 24px; height: 24px; }
.bag-count { position: absolute; top: 0; right: 0; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px; background: var(--accent); color: #fff; font-size: .72rem; font-weight: 700; line-height: 19px; text-align: center; }

/* Bag drawer */
.bag { position: fixed; inset: 0; z-index: 50; background: rgb(59 29 51 / 0); transition: background .25s; }
.bag.open { background: rgb(59 29 51 / .35); }
.bag-panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(420px, 100%); display: flex; flex-direction: column; background: var(--bg); padding: 24px; transform: translateX(100%); transition: transform .25s ease-out; overflow-y: auto; }
.bag.open .bag-panel { transform: none; }
.bag-head { display: flex; justify-content: space-between; align-items: center; }
.bag-head h2 { margin: 0; font-size: 1.8rem; }
.bag-close { border: 0; background: var(--photo-bg); width: 38px; height: 38px; border-radius: 50%; font-size: 1.5rem; line-height: 1; color: var(--ink); cursor: pointer; }
.bag-items { list-style: none; padding: 0; margin: 20px 0; display: grid; gap: 14px; }
.bag-items li { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; }
.bag-items img { width: 64px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: var(--photo-bg); }
.bag-items a { display: block; font-weight: 600; color: var(--ink); text-decoration: none; }
.bag-items span { color: var(--muted); font-weight: 600; }
.bag-remove { border: 0; background: none; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .85rem; }
.bag-empty { color: var(--muted); margin-top: 24px; }
.bag-foot { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; }
.bag-total { display: flex; justify-content: space-between; font-size: 1.15rem; margin: 0; }
.bag-note { color: var(--muted); font-size: .9rem; margin: 4px 0 16px; }
.bag-foot .buy { max-width: none; }

/* "Added to your bag" toast */
.toast { position: fixed; left: 50%; bottom: 20px; z-index: 40; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; gap: 12px; align-items: center; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: var(--radius); font-weight: 600; transition: opacity .3s, transform .3s; white-space: nowrap; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast button { border: 0; background: var(--accent); color: #fff; font: 700 .85rem var(--body); padding: 6px 12px; border-radius: var(--radius); cursor: pointer; }

.product .buy.in-bag { background: var(--ink); }

/* Newsletter sign-up pop-up */
.signup { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgb(43 37 39 / 0); transition: background .3s; }
.signup.open { background: rgb(43 37 39 / .45); }
.signup-box { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: min(880px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: var(--surface); opacity: 0; transform: translateY(16px); transition: opacity .35s ease-out, transform .35s ease-out; }
.signup.open .signup-box { opacity: 1; transform: none; }
.signup-form-side { padding: clamp(28px, 5vw, 52px); text-align: center; }
.signup-close { position: absolute; top: 12px; right: 12px; z-index: 2; width: 38px; height: 38px; border: 0; border-radius: 50%; background: rgb(251 249 245 / .9); color: var(--ink); font-size: 1.5rem; line-height: 1; cursor: pointer; }
.signup-script { font-family: var(--script); font-size: 2rem; color: var(--accent); margin: 0; line-height: 1; }
.signup h2 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin: 4px 0 14px; }
.signup p { margin: 0 0 12px; color: var(--muted); }
.signup .signup-offer { font-family: var(--display); font-size: 1.35rem; font-style: italic; color: var(--accent); margin-bottom: 20px; }
.signup form { display: grid; gap: 14px; text-align: left; }
.signup label { display: grid; gap: 4px; font-size: .9rem; letter-spacing: .06em; color: var(--ink); }
.signup label em { font-style: normal; color: var(--muted); }
.signup input { font: inherit; font-size: 1rem; padding: 10px 2px; border: 0; border-bottom: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 0; }
.signup input:focus { outline: none; border-bottom-color: var(--accent); box-shadow: 0 1px 0 var(--accent); }
.signup .hp { position: absolute; left: -9999px; }
.signup .buy { max-width: none; margin-top: 6px; }
.signup-error { color: #b4234f !important; min-height: 1.4em; margin: 0 !important; }
.signup-no { border: 0; background: none; color: var(--muted); font: inherit; font-size: .9rem; text-decoration: underline; cursor: pointer; }
.signup-code { display: block; margin: 12px auto 4px; padding: 10px 16px; border: 1px dashed var(--accent); color: var(--accent); font-size: 1.4rem; letter-spacing: .18em; width: fit-content; }
.signup-photo { background: var(--photo-bg); min-height: 100%; }
.signup-photo img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 700px) {
  .signup-box { grid-template-columns: 1fr; }
  .signup-photo { display: none; }
}

@media (max-width: 1000px) { .grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 760px) {
  .site-header { grid-template-columns: 1fr auto; }
  .site-header nav { grid-column: 1 / -1; grid-row: 2; justify-content: center; padding-top: 10px; }
  .site-header nav a { font-size: 1rem; letter-spacing: .1em; }
  .brand { align-items: flex-start; }
  .brand .sub { margin-top: 8px; }
  .logo-sub { font-size: .62rem; }
  .logo-sub::before, .logo-sub::after { width: 16px; }
  .logo-tag { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); }
  .product { grid-template-columns: 1fr; padding-top: 12px; }
  .gallery { position: static; }
}
