/* Mai Minnie design tokens. One type scale, one spacing scale, one gutter: change them here, not in single rules. */
:root {
  --paper: #fffaf2;
  --paper-deep: #f7eddf;
  --ink: #39252d;
  --muted: #6e5c63;
  --berry: #9d1b46;
  --berry-dark: #781333;
  --blush: #faeaf0;
  --gold: #f4c94a;
  --gold-dark: #8a6514;
  --green: #4b703a;
  --green-dark: #35552b;
  --coral: #b56c36;
  --line: #e9d8d2;
  --white: #fffdfa;
  --display: "Yeseva One", Georgia, serif;
  --sans: "Manjari", "DM Sans", Arial, sans-serif;

  --text-xs: 12px;
  --text-sm: 14px;
  --text-base: 16px;
  --text-lg: 18px;
  --text-xl: clamp(20px, 1.8vw, 24px);
  --text-2xl: clamp(24px, 2.6vw, 32px);
  --text-3xl: clamp(32px, 4vw, 46px);
  --text-4xl: clamp(40px, 5.4vw, 64px);

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: clamp(16px, 5vw, 72px);
  --radius: 10px;
  --announce-h: 34px;
  --header-h: 64px;
  --cta-h: 104px;
  /* Temple-border zari: a row of gold spires on berry, taken from the silk borders in the collection. */
  --zari: linear-gradient(135deg, var(--berry-dark) 50%, transparent 50%) 0 0 / 14px 9px repeat-x,
          linear-gradient(225deg, var(--berry-dark) 50%, transparent 50%) 0 0 / 14px 9px repeat-x,
          var(--gold);
}
@media (max-width: 899px) { :root { --cta-h: 148px; } }
@media (min-width: 900px) { :root { --header-h: 76px; } }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + var(--s4)); }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: var(--text-base); line-height: 1.6; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { line-height: 1.15; font-weight: 400; text-wrap: balance; }
h1 em, h2 em { font-style: normal; color: var(--berry); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
button { color: inherit; }
:focus-visible { outline: 2px solid var(--berry); outline-offset: 3px; }
::selection { background: var(--blush); color: var(--berry-dark); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.section-wrap { max-width: 1280px; margin: 0 auto; padding-inline: var(--gutter); }

/* Announcement and header */
.announcement { min-height: var(--announce-h); display: flex; align-items: center; justify-content: center; gap: var(--s3); padding: var(--s1) var(--gutter); background: var(--berry); color: var(--paper); font-size: var(--text-sm); line-height: 1.3; text-align: center; }
.announcement span + span::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: var(--s3); border-radius: 50%; background: var(--gold); vertical-align: middle; transform: rotate(45deg); }
.site-header { position: sticky; top: 0; z-index: 20; height: var(--header-h); padding-inline: var(--gutter); display: flex; align-items: center; gap: var(--s5); background: color-mix(in srgb, var(--paper) 94%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand-lockup { display: inline-flex; align-items: center; gap: var(--s3); flex-shrink: 0; margin-right: auto; }
.brand-logo { display: block; width: 48px; height: 48px; border-radius: 50%; object-fit: contain; box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px #d9b965; }
.wordmark { font-family: var(--display); font-size: 26px; line-height: 1; color: var(--berry); }
.wordmark-dot { color: var(--gold-dark); }
.main-nav { display: flex; align-items: center; gap: var(--s1); }
.main-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border-radius: 999px; font-size: var(--text-base); font-weight: 700; color: var(--ink); }
.main-nav a:hover { background: var(--blush); color: var(--berry-dark); }
.cart-link { position: relative; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4) 0 var(--s3); border: 1px solid #e2b8c6; border-radius: 999px; color: var(--berry); font-weight: 700; }
.cart-link:hover { background: var(--blush); }
.cart-link svg { width: 22px; height: 22px; }
.cart-count:empty { display: none; }
.cart-count { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; background: var(--berry); color: var(--white); font-size: var(--text-xs); font-weight: 700; line-height: 23px; text-align: center; }

/* Hero: phones show the artwork full width; wider screens cap its height so the shop button stays in the first screen, and fill the sides with a blurred copy. */
.hero { position: relative; display: flex; justify-content: center; overflow: hidden; background: #690031; }
.hero-artwork { position: relative; display: block; width: 100%; height: auto; max-height: max(360px, calc(100svh - var(--announce-h) - var(--header-h) - var(--cta-h))); object-fit: contain; }
.hero-backdrop { position: absolute; inset: -40px; width: calc(100% + 80px); height: calc(100% + 80px); object-fit: cover; filter: blur(32px) saturate(1.1); opacity: .9; }
@media (min-width: 601px) { .hero-artwork { width: auto; max-width: 100%; } }
.hero-cta { position: relative; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s3) var(--s6); padding: calc(var(--s5) + 9px) var(--gutter) var(--s5); text-align: center; }
.hero-cta::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--zari); }
.hero-cta h1 { margin: 0; font-family: var(--display); font-size: var(--text-2xl); color: var(--berry-dark); }

/* Buttons and links */
.button { min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: var(--s3); border: 0; border-radius: var(--radius); padding: 0 var(--s5); font-size: var(--text-base); font-weight: 700; line-height: 1.2; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-1px); }
.button-dark { background: var(--berry); color: white; }
.button-dark:hover { background: var(--berry-dark); }
.button-outline { border: 1px solid #d4acba; background: transparent; color: var(--berry); }
.button-plain { background: transparent; color: var(--muted); padding: 0 var(--s3); }
.text-link { display: inline-flex; gap: var(--s2); align-items: center; min-height: 44px; padding: 0; border: 0; background: none; color: var(--berry); font-size: var(--text-base); font-weight: 700; text-decoration: underline; text-decoration-color: var(--gold-dark); text-decoration-thickness: 1px; text-underline-offset: 5px; cursor: pointer; }
.text-link:hover { text-decoration-color: var(--berry); }
/* Links inside running text stay inline. */
.policy-main .text-link, .checkout-form .detail-note .text-link, .detail-assurance .text-link, .detail-whatsapp .text-link, .cart-alt .text-link { display: inline; min-height: 0; font-size: inherit; }
.small-action { min-height: 44px; padding: 0; border: 0; background: none; color: var(--berry); font-size: var(--text-sm); font-weight: 700; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.delete-action { color: #8f5a4e; }
button:disabled { opacity: .45; cursor: not-allowed; }
.eyebrow { margin: 0 0 var(--s3); color: var(--green); font-size: var(--text-sm); font-weight: 700; letter-spacing: .02em; }
.form-error { min-height: 1.4em; margin: var(--s2) 0 0; color: #a64639; font-size: var(--text-sm); }

/* Collection */
.collection { padding-block: clamp(48px, 8vw, 96px); }
.section-heading h2, .note-copy h2 { margin: 0; font-family: var(--display); font-size: var(--text-4xl); line-height: 1.05; }
.collection-toolbar { margin: var(--s6) 0 var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.filter-list { display: flex; gap: var(--s2); flex-wrap: wrap; }
.filter-button { min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--ink); font-size: var(--text-base); font-weight: 700; cursor: pointer; }
.filter-button:hover, .filter-button.selected { background: var(--blush); color: var(--berry-dark); border-color: #e2b8c6; }
.catalogue-more-filters > summary { display: none; }
.catalogue-filter-fields { display: grid; grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto; gap: var(--s3); align-items: end; min-width: 0; padding: 0; margin: 0; border: 0; }
.catalogue-filter-fields label, .catalogue-size-field { display: flex; flex-direction: column; gap: var(--s2); min-width: 0; font-size: var(--text-sm); font-weight: 700; }
.catalogue-filter-fields input, .catalogue-filter-fields select { width: 100%; min-width: 0; min-height: 48px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); font-size: var(--text-base); font-weight: 400; }
.catalogue-filter-fields input[aria-invalid="true"] { border-color: var(--berry); }
.catalogue-result-count { margin: var(--s4) 0; color: var(--muted); font-size: var(--text-sm); }
@media (max-width: 1000px) {
  .catalogue-filter-fields { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalogue-search { grid-column: 1 / -1; }
}
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s7) var(--s5); }
.product-card { min-width: 0; }
.product-card-link { display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); }
.product-card-link:hover h3 { color: var(--berry); }
.product-image-wrap { position: relative; flex-shrink: 0; height: clamp(220px, 27vw, 360px); overflow: hidden; border-radius: 14px; background: var(--paper-deep); }
.product-image { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.65,.25,1); }
.product-card:hover .product-image { transform: scale(1.035); }
/* Owner's #1 pick: warm gold pill with a fire emoji. Extra top padding centres Manjari's high-sitting text. */
.product-badge { position: absolute; z-index: 1; top: var(--s3); left: var(--s3); display: inline-flex; align-items: center; gap: 3px; padding: 6px 11px 4px 8px; border: 1px solid #e3b23c; border-radius: 999px; background: linear-gradient(135deg, #fff0b8, var(--gold) 70%); box-shadow: 0 3px 10px rgba(120, 19, 51, .22); color: var(--berry-dark); font-size: var(--text-xs); font-weight: 700; line-height: 1.2; letter-spacing: .01em; white-space: nowrap; pointer-events: none; }
.product-badge-icon { font-size: 13px; line-height: 1; transform: translateY(1px); }
.discount-tag { position: absolute; left: var(--s3); bottom: var(--s3); padding: var(--s1) var(--s3); border-radius: 999px; background: var(--green-dark); color: var(--white); font-size: var(--text-xs); font-weight: 700; pointer-events: none; }
.photo-count { position: absolute; top: var(--s3); right: var(--s3); padding: var(--s1) var(--s3); border-radius: 999px; background: var(--white); color: var(--muted); font-size: var(--text-xs); }
.stock-label { position: absolute; right: var(--s3); bottom: var(--s3); display: flex; align-items: center; gap: 6px; padding: var(--s2) var(--s3); border-radius: 999px; background: rgba(255,254,250,.96); font-size: var(--text-sm); font-weight: 700; pointer-events: none; }
.product-info { display: flex; flex-direction: column; flex: 1; padding-top: var(--s4); }
.product-title-line { display: flex; align-items: start; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.product-category { margin: 0 0 var(--s1); color: var(--green); font-size: var(--text-sm); font-weight: 700; }
.product-title-line h3 { margin: 0; font-family: var(--sans); font-size: var(--text-lg); font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.product-price { display: flex; flex-wrap: wrap; justify-content: end; gap: var(--s1) var(--s2); font-size: var(--text-lg); font-weight: 700; line-height: 1.3; color: var(--berry-dark); }
.original-price { color: var(--ink); text-decoration-thickness: 2px; white-space: nowrap; }
.discounted-price { color: var(--berry); white-space: nowrap; }
.product-contact { display: flex; align-items: center; min-height: 44px; margin-top: auto; border-top: 1px solid var(--line); color: var(--berry); font-size: var(--text-sm); font-weight: 700; }
.catalogue-note { margin: var(--s6) 0 0; text-align: center; color: var(--muted); font-size: var(--text-base); }
.loading-state, .empty-state { grid-column: 1 / -1; padding: var(--s8) var(--s5); text-align: center; color: var(--muted); font-size: var(--text-lg); }
.empty-state h1 { font-family: var(--display); font-size: var(--text-3xl); color: var(--ink); }
.empty-state .button { margin: var(--s2); }

/* Our story */
.note-section { display: grid; grid-template-columns: 1fr 1fr; background: var(--blush); }
.note-image.brand-artwork { display: flex; align-items: center; justify-content: center; padding: var(--s5); background: var(--berry); }
.brand-artwork img { display: block; width: 100%; height: auto; max-height: 460px; object-fit: contain; }
.note-copy { align-self: center; max-width: 560px; padding: var(--s8) var(--gutter); }
.note-copy h2 { font-size: var(--text-3xl); margin-bottom: var(--s5); }
.note-copy > p:not(.eyebrow) { max-width: 44ch; color: var(--muted); font-size: var(--text-base); line-height: 1.7; }

/* Footer */
.site-footer { position: relative; padding: calc(var(--s6) + 9px) var(--gutter) var(--s6); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--s4) var(--s5); background: var(--berry-dark); }
.site-footer::before { content: ""; position: absolute; inset: 0 0 auto; height: 9px; background: var(--zari); }
.site-footer-simple { justify-content: center; }
.footer-wordmark .wordmark, .footer-wordmark { color: var(--paper); }
.site-footer .wordmark-dot { color: var(--gold); }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--s5); }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; color: var(--paper); font-size: var(--text-base); }
.footer-links a:hover { text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 5px; }
.footer-contacts { display: flex; gap: var(--s3); align-items: center; }
.contact-icon[hidden] { display: none; }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #f0d7df66; border-radius: 50%; color: var(--paper); }
.contact-icon svg { width: 24px; height: 24px; }
.toast { position: fixed; z-index: 30; bottom: var(--s5); left: 50%; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; padding: var(--s3) var(--s4); border-radius: var(--radius); background: var(--berry-dark); color: white; font-size: var(--text-sm); transition: .2s; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

/* Product page */
.product-detail-main { padding-block: var(--s5) var(--s8); }
.detail-back { margin-bottom: var(--s4); }
.product-detail-layout { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(24px, 6vw, 80px); align-items: start; }
.detail-main-photo { display: block; width: 100%; padding: 0; border: 1px solid var(--line); border-radius: 18px; background: var(--paper-deep); overflow: hidden; cursor: zoom-in; }
.detail-main-photo img { display: block; width: 100%; height: min(60vw, 560px); object-fit: contain; }
.gallery-hint { margin: var(--s3) 0; color: var(--muted); text-align: center; font-size: var(--text-sm); }
.gallery-thumbnails { display: flex; justify-content: center; gap: var(--s3); }
.gallery-thumbnails button { width: 76px; height: 92px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--white); cursor: pointer; }
.gallery-thumbnails button[aria-pressed="true"] { border: 2px solid var(--berry); background: var(--blush); }
.gallery-thumbnails img { width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
.detail-copy { min-width: 0; }
.detail-copy h1 { margin: 0 0 var(--s4); font-family: var(--display); font-size: var(--text-3xl); overflow-wrap: anywhere; }
.detail-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--s2) var(--s3); margin-bottom: var(--s2); font-size: clamp(28px, 2.6vw, 32px); font-weight: 700; line-height: 1.2; color: var(--berry); }
.detail-saving { margin: 0 0 var(--s5); color: var(--green-dark); font-size: var(--text-base); font-weight: 700; }
.detail-description { margin: 0 0 var(--s5); line-height: 1.7; white-space: pre-wrap; overflow-wrap: anywhere; }
.detail-size-guide { margin-bottom: var(--s5); }
.detail-sizes, .size-fieldset, .photo-fieldset { min-width: 0; margin: 0 0 var(--s5); border: 0; padding: 0; }
.detail-sizes legend, .size-fieldset legend, .photo-fieldset legend { margin-bottom: var(--s3); padding: 0; font-size: var(--text-base); font-weight: 700; }
.size-options { display: flex; flex-wrap: wrap; gap: var(--s2); }
.size-option { position: relative; cursor: pointer; max-width: 100%; }
.size-option input { position: absolute; opacity: 0; }
.size-option > span { display: flex; flex-direction: column; gap: 2px; min-height: 48px; justify-content: center; padding: var(--s2) var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); line-height: 1.3; overflow-wrap: anywhere; }
.size-option strong { font-size: var(--text-base); font-weight: 700; }
.size-option small { font-size: var(--text-sm); color: var(--green-dark); }
.size-option input:checked + span { border-color: var(--berry); background: var(--blush); box-shadow: inset 0 0 0 1px var(--berry); }
.size-option input:focus-visible + span { outline: 2px solid var(--berry); outline-offset: 3px; }
.size-sold-out { cursor: not-allowed; opacity: .6; }
.size-sold-out small { color: var(--muted); }
.pre-order-tag, .size-option .pre-order-tag { color: var(--berry-dark); font-weight: 700; }
.detail-add-to-cart { width: 100%; min-height: 54px; font-size: var(--text-lg); }
.detail-cart-status { margin: var(--s3) 0 0; font-size: var(--text-sm); color: var(--green-dark); }
.detail-cart-status:empty { display: none; }
.detail-add-to-cart.just-added { animation: added-pop .6s ease; }
@keyframes added-pop { 0% { transform: scale(1); } 30% { transform: scale(.96); background: var(--green); } 60% { transform: scale(1.03); background: var(--green); } 100% { transform: scale(1); } }
.cart-link.just-added .cart-count { animation: badge-bump .5s ease; }
@keyframes badge-bump { 40% { transform: scale(1.5); } }
.cart-toast { position: fixed; z-index: 40; left: 50%; bottom: max(var(--s4), env(safe-area-inset-bottom)); width: min(440px, calc(100vw - 32px)); display: flex; align-items: center; gap: var(--s3); padding: var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 12px 32px rgb(57 37 45 / .18); transform: translate(-50%, calc(100% + 32px)); opacity: 0; visibility: hidden; transition: transform .3s ease, opacity .3s ease, visibility .3s; }
.cart-toast.is-open { transform: translate(-50%, 0); opacity: 1; visibility: visible; }
.cart-toast img { width: 52px; height: 52px; flex-shrink: 0; border-radius: 8px; object-fit: cover; }
.cart-toast div { flex: 1; min-width: 0; display: grid; gap: 2px; font-size: var(--text-sm); }
.cart-toast strong { color: var(--green-dark); }
.cart-toast span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.cart-toast .button { flex-shrink: 0; min-height: 40px; padding-inline: var(--s4); font-size: var(--text-sm); }
.detail-availability { margin: 0 0 var(--s3); padding: var(--s4); border-radius: var(--radius); background: var(--blush); font-size: var(--text-sm); }
.detail-whatsapp { margin: var(--s3) 0 0; color: var(--muted); font-size: var(--text-sm); }
.detail-assurance { display: grid; gap: var(--s2); margin: var(--s5) 0 0; padding: var(--s4); list-style: none; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-size: var(--text-sm); line-height: 1.5; }
.detail-assurance li { position: relative; padding-left: var(--s5); }
.detail-assurance li::before { content: "✓" / ""; position: absolute; left: 0; color: var(--green-dark); font-weight: 700; }
.detail-ask { margin: var(--s5) 0 0; color: var(--muted); font-size: var(--text-sm); }
.detail-ask .text-link { display: flex; width: fit-content; }
.detail-share { margin-top: var(--s2); }
.detail-note { margin: var(--s4) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.photo-viewer-open { overflow: hidden; }
.photo-viewer { position: fixed; inset: 0; width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; padding: 76px var(--s5) var(--s5); border: 0; background: #241b20; color: var(--paper); }
.photo-viewer::backdrop { background: #241b20; }
.photo-viewer figure { display: flex; flex-direction: column; align-items: center; gap: var(--s3); height: 100%; margin: 0; }
.photo-viewer img { display: block; width: 100%; flex: 1; min-height: 0; object-fit: contain; }
.photo-viewer img[hidden] { display: none; }
.photo-viewer figcaption { flex-shrink: 0; max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.photo-viewer-close { position: absolute; top: var(--s4); right: var(--s4); display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border: 1px solid #fffaf280; border-radius: 50%; background: var(--ink); color: var(--paper); cursor: pointer; }
.photo-viewer-close svg { width: 22px; height: 22px; }
.photo-viewer-close:focus-visible { outline-color: var(--gold); }
@media (max-width: 700px) {
  .product-detail-layout { grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
  .detail-main-photo img { height: 92vw; max-height: 460px; }
}

/* Cart and checkout */
.cart-main { max-width: 900px; padding-block: var(--s6) var(--s8); }
.cart-main h1, #order h1 { margin: 0 0 var(--s5); font-family: var(--display); font-size: var(--text-3xl); }
.cart-lines { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.cart-line { display: grid; grid-template-columns: 84px minmax(0, 1fr) auto; gap: var(--s4); align-items: start; padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.cart-line img, .cart-line-placeholder { display: block; width: 84px; height: 100px; object-fit: cover; border-radius: 8px; background: var(--paper-deep); }
.cart-line-info { min-width: 0; overflow-wrap: anywhere; }
.cart-line-info h2 { margin: 0 0 var(--s1); font-size: var(--text-lg); font-weight: 700; line-height: 1.3; }
.cart-line-info p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.cart-line-note { color: var(--coral) !important; }
.cart-line-actions { display: flex; flex-direction: column; align-items: end; gap: var(--s2); }
.cart-line-actions strong { font-size: var(--text-lg); color: var(--berry-dark); }
.cart-line-unavailable img { opacity: .5; }
.stock-stepper { display: flex; align-items: center; justify-content: center; gap: var(--s1); }
.stock-step { width: 44px; height: 44px; border: 1px solid #d4acba; border-radius: 50%; background: var(--white); color: var(--berry); font-size: var(--text-lg); line-height: 1; cursor: pointer; }
.stock-step:hover:not(:disabled) { background: var(--blush); }
.stock-count { min-width: 34px; text-align: center; font-size: var(--text-lg); font-weight: 700; line-height: 1; }
.stock-count.stock-warning { color: #9a5f3f; }
.cart-summary { margin-top: var(--s5); }
.cart-subtotal { display: flex; justify-content: space-between; margin: 0 0 var(--s2); color: var(--muted); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; margin: var(--s3) 0 var(--s4); font-size: var(--text-lg); font-weight: 700; }
.cart-total strong { font-size: var(--text-2xl); color: var(--berry); }
.cart-checkout { width: 100%; min-height: 54px; font-size: var(--text-lg); }
.cart-alt { margin: var(--s4) 0 0; color: var(--muted); }
.checkout { margin-top: var(--s6); padding-top: var(--s6); border-top: 1px solid var(--line); }
.checkout[hidden] { display: none; }
.checkout-form { display: flex; flex-direction: column; gap: var(--s4); }
.checkout-form h2 { margin: 0; font-family: var(--display); font-size: var(--text-2xl); }
.checkout-form label { display: flex; flex-direction: column; gap: var(--s1); font-size: var(--text-sm); font-weight: 700; }
.checkout-form .optional { color: var(--muted); font-weight: 400; }
.checkout-form input, .checkout-form select { min-height: 48px; padding: 0 var(--s3); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); color: var(--ink); font-size: var(--text-base); font-weight: 400; }
.checkout-form input:focus, .checkout-form select:focus { border-color: var(--berry); }
.checkout-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s4); }
.checkout-error:empty { display: none; }
.checkout-turnstile:not(:empty) { margin: var(--s1) 0 var(--s3); }
.order-number { margin: 0 0 var(--s2); }
.order-note { margin: 0 0 var(--s5); color: var(--muted); line-height: 1.7; }
.order-line { display: flex; justify-content: space-between; gap: var(--s4); padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.order-line small { display: block; margin-top: var(--s1); color: var(--muted); font-size: var(--text-sm); }
.order-actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s4); margin-top: var(--s5); }
@media (max-width: 600px) {
  .cart-line { grid-template-columns: 64px minmax(0, 1fr); gap: var(--s3); }
  .cart-line img, .cart-line-placeholder { width: 64px; height: 78px; }
  .cart-line-actions { grid-column: 2; flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
}
@media (max-width: 420px) { .checkout-row { grid-template-columns: minmax(0, 1fr); } }

/* Policy pages */
.policy-main { max-width: 760px; padding-block: var(--s6) var(--s8); }
.policy-main h1 { margin: 0 0 var(--s2); font-family: var(--display); font-size: var(--text-3xl); }
.policy-main h2 { margin: var(--s6) 0 var(--s2); font-family: var(--display); font-size: var(--text-xl); }
.policy-main p, .policy-main li, .policy-main dd { line-height: 1.75; }
.policy-main ul { padding-left: var(--s5); }
.policy-updated { margin-bottom: var(--s5); color: var(--muted); font-size: var(--text-sm); }
.policy-contact { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: var(--s2) var(--s5); margin: var(--s5) 0; }
.policy-contact dt { font-weight: 700; line-height: 1.75; }
.policy-contact dd { margin: 0; overflow-wrap: anywhere; }
/* Unfilled business details: highlighted so they cannot be missed before launch. */
.placeholder { padding: 1px 4px; border-radius: 3px; background: #fff1ce; color: #7a4b00; font-weight: 700; }

/* Phones */
@media (max-width: 600px) {
  .announcement span:nth-child(3) { display: none; }
  .brand-lockup { gap: var(--s2); }
  .brand-logo { width: 40px; height: 40px; }
  .wordmark { font-size: 22px; }
  .site-header { gap: var(--s2); }
  .main-nav a { padding: 0 var(--s2); }
  .main-nav a:nth-child(2) { display: none; }
  .cart-link { padding: 0 var(--s3); }
  .cart-label { display: none; }
  .hero-cta .button { width: 100%; }
  .catalogue-more-filters > summary { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s4); border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); font-weight: 700; cursor: pointer; }
  .catalogue-more-filters[open] > summary { margin-bottom: var(--s4); }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s6) var(--s3); }
  .product-image-wrap { height: 57vw; max-height: 350px; }
  .product-info { padding-top: var(--s3); }
  .product-title-line { display: block; }
  .product-title-line h3 { font-size: var(--text-base); }
  .product-price { justify-content: start; margin-top: var(--s1); }
  .product-badge, .discount-tag, .photo-count { top: auto; }
  .product-badge { top: var(--s2); left: var(--s2); }
  .discount-tag { left: var(--s2); bottom: var(--s2); }
  .note-section { grid-template-columns: 1fr; }
  .note-image { min-height: 260px; }
  .note-copy { padding: var(--s7) var(--gutter); }
  .site-footer { justify-content: center; text-align: center; }
  .policy-contact { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .policy-contact dd { margin-bottom: var(--s3); }
}
@media (max-width: 360px) {
  .announcement span:nth-child(2) { display: none; }
  .wordmark { font-size: 20px; }
  .main-nav { display: none; }
}
@media (max-width: 850px) and (min-width: 601px) {
  .product-grid { gap: var(--s6) var(--s4); }
  .product-image-wrap { height: 29vw; }
}

/* Owner dashboard */
.admin-body { min-height: 100vh; background: linear-gradient(135deg, var(--blush), var(--paper) 65%); }
.admin-header { height: 72px; padding-inline: var(--gutter); display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid #d9b965; background: var(--paper); }
.admin-header .brand-lockup { margin-right: 0; }
.admin-header-right { display: flex; align-items: center; gap: var(--s5); }
.owner-label { display: flex; align-items: center; gap: var(--s2); color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: .06em; }
.stock-dot { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: #7c9b71; }
.back-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--muted); font-size: var(--text-sm); font-weight: 700; }
.back-link:hover { color: var(--berry); }
.admin-main { max-width: 1050px; margin: 0 auto; padding: var(--s8) var(--gutter) var(--s9); }
.login-card { position: relative; max-width: 440px; margin: var(--s4) auto; padding: var(--s7); background: var(--white); border: 1px solid var(--line); border-top: 3px solid var(--berry); border-radius: 12px; box-shadow: 0 12px 40px #7813330a; }
.login-flower { position: absolute; top: var(--s6); right: var(--s6); color: var(--coral); font-size: 22px; }
.login-card h1, .dashboard-heading h1 { margin: var(--s2) 0 var(--s3); font-family: var(--display); font-size: var(--text-3xl); }
.login-card > p:not(.eyebrow) { margin-bottom: var(--s5); color: var(--muted); }
.login-card form label, .product-dialog label { display: block; color: var(--ink); font-size: var(--text-sm); font-weight: 700; }
.login-card input, .product-dialog input:not([type="checkbox"]), .product-dialog textarea, .product-dialog select { display: block; width: 100%; min-height: 48px; margin-top: var(--s2); padding: var(--s3); border: 1px solid var(--line); border-radius: 8px; background: var(--white); color: var(--ink); font-size: var(--text-base); font-weight: 400; }
.login-card input:focus, .product-dialog input:focus, .product-dialog textarea:focus { border-color: var(--berry); }
.login-card form .button { width: 100%; margin-top: var(--s4); justify-content: space-between; }
.dashboard[hidden], .login-card[hidden] { display: none; }
.dashboard-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--s4); }
.dashboard-subtitle, .inventory-header p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.dashboard-actions { display: flex; gap: var(--s2); flex-wrap: wrap; }
.inventory-summary { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); margin: var(--s6) 0 var(--s7); }
.summary-card { display: flex; flex-direction: column; gap: var(--s1); padding: var(--s4) var(--s5); border: 1px solid var(--line); border-top: 2px solid #d9b965; border-radius: var(--radius); background: var(--white); }
.summary-card > span { color: var(--muted); font-size: var(--text-xs); font-weight: 700; letter-spacing: .04em; }
.summary-card strong { font-family: var(--display); font-size: var(--text-2xl); font-weight: 400; color: var(--berry); }
.summary-card small { color: var(--muted); font-size: var(--text-xs); }
.summary-warm strong { color: #a8673f; }
.inventory-header { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); margin-bottom: var(--s3); }
.inventory-header h2, .homepage-panel h2 { margin: 0 0 var(--s1); font-family: var(--display); font-size: var(--text-xl); }
.admin-product-list { border-top: 1px solid var(--line); }
.admin-product { min-height: 93px; display: grid; grid-template-columns: 65px minmax(0, 1fr) 170px 100px; gap: var(--s4); align-items: center; padding: var(--s3) var(--s2); border-bottom: 1px solid var(--line); }
.admin-product > img { width: 65px; height: 65px; object-fit: cover; border-radius: 6px; background: #e9e6de; }
.admin-product-name { min-width: 0; overflow-wrap: anywhere; }
.admin-product-name h3 { margin: 0 0 var(--s1); font-size: var(--text-base); font-weight: 700; }
.admin-product-name p { margin: 0; color: var(--muted); font-size: var(--text-sm); }
.admin-product-name .product-category { margin: 0 0 var(--s1); }
.admin-stock { text-align: center; }
.admin-stock small { color: var(--muted); font-size: var(--text-xs); }
.admin-product-actions { display: flex; justify-content: end; gap: var(--s4); }
.stock-is-draft { background: #fff1ce; }
.stock-save-prompt { display: flex; justify-content: space-between; align-items: center; gap: var(--s4); margin: var(--s4) 0; padding: var(--s4); background: #fff1ce; border: 1px solid #d9b965; border-radius: 8px; }
.stock-save-prompt[hidden] { display: none; }
.stock-save-prompt strong { font-size: var(--text-base); }
.stock-save-prompt p { margin: var(--s1) 0 0; font-size: var(--text-sm); color: var(--muted); }
.stock-save-prompt .form-error:empty { display: none; }
.stock-save-actions { display: flex; gap: var(--s2); flex-shrink: 0; }
.admin-empty { padding: var(--s7); text-align: center; color: var(--muted); }
.admin-empty > span { color: var(--coral); font-size: 23px; }
.admin-empty h3 { margin: var(--s2) 0; font-family: var(--display); font-size: var(--text-xl); }
.product-dialog { width: min(540px, calc(100% - 30px)); max-height: 90vh; overflow-y: auto; padding: var(--s6); border: 1px solid var(--line); border-top: 3px solid var(--berry); border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 15px 70px #7813332b; }
.product-dialog::backdrop { background: #39252d7a; }
.dialog-heading { display: flex; justify-content: space-between; align-items: start; margin-bottom: var(--s5); }
.dialog-heading h2 { margin: var(--s1) 0 0; font-family: var(--display); font-size: var(--text-2xl); }
.dialog-close { width: 44px; height: 44px; border: 0; background: none; color: var(--muted); font-size: 24px; cursor: pointer; }
.product-dialog label { margin-bottom: var(--s4); }
.product-dialog textarea { resize: vertical; }
.product-dialog .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.product-dialog .checkbox-label { display: flex; gap: var(--s2); align-items: center; font-weight: 400; }
.checkbox-label input { accent-color: var(--green); }
#discount-help, #description-help, #rank-help, .size-fieldset > p, .photo-fieldset > p { color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.photo-upload { margin: var(--s2) 0 var(--s4); padding: var(--s4); border: 1px dashed #d4acba; border-radius: 8px; background: var(--white); }
.photo-upload > img { display: block; width: 100%; height: 180px; object-fit: contain; margin-bottom: var(--s3); background: var(--paper-deep); }
.photo-upload > img[hidden] { display: none; }
.photo-upload .photo-picker { color: var(--green-dark); font-size: var(--text-sm); }
.photo-upload input[type="file"] { border: 0; padding: var(--s2) 0; max-width: 100%; }
.photo-upload p { margin: var(--s2) 0 0; color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.photo-upload #photo-status { color: var(--green-dark); }
.photo-slots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.photo-slots .photo-upload { min-width: 0; margin: 0; padding: var(--s3); }
.photo-slots .photo-upload > img { height: 95px; }
.photo-filename { display: block; color: var(--muted); font-size: var(--text-xs); overflow-wrap: anywhere; }
.size-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px auto; gap: var(--s3); align-items: center; }
.size-row .size-pre-order-label { grid-column: 1 / -1; margin-bottom: var(--s3); font-size: var(--text-sm); }
.size-stock-control { margin-bottom: var(--s3); }
.size-stock-label { display: block; margin-bottom: var(--s1); font-size: var(--text-sm); overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: end; gap: var(--s2); margin-top: var(--s3); }
.admin-toast { position: fixed; right: var(--s5); bottom: var(--s5); z-index: 30; padding: var(--s3) var(--s4); border-radius: var(--radius); background: var(--berry-dark); color: white; font-size: var(--text-sm); opacity: 0; transform: translateY(15px); transition: .2s; pointer-events: none; }
.admin-toast.visible { opacity: 1; transform: translateY(0); }
.homepage-panel { margin-bottom: var(--s6); padding: var(--s5); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.homepage-panel p { color: var(--muted); font-size: var(--text-sm); line-height: 1.6; }
.homepage-panel > img { display: block; width: 100%; max-width: 360px; height: 240px; margin-bottom: var(--s4); object-fit: contain; background: var(--paper-deep); }
.homepage-panel label { display: block; margin-bottom: var(--s2); font-size: var(--text-sm); font-weight: 700; }
.homepage-panel input { max-width: 100%; }
.orders-panel { margin-bottom: var(--s7); }
.order-views { margin-bottom: var(--s4); }
.order-list { display: flex; flex-direction: column; gap: var(--s3); }
.order-card { padding: var(--s4) var(--s5); border: 1px solid var(--line); border-radius: 12px; background: var(--white); }
.order-card-head { display: flex; justify-content: space-between; align-items: start; gap: var(--s3); }
.order-card-head h3 { margin: 0 0 var(--s1); font-size: var(--text-base); font-weight: 700; letter-spacing: .04em; }
.order-card-head time { color: var(--muted); font-size: var(--text-sm); }
.order-status { padding: var(--s1) var(--s3); border-radius: 999px; background: var(--paper-deep); font-size: var(--text-xs); font-weight: 700; white-space: nowrap; }
.order-status-paid { background: #e5efdf; color: var(--green-dark); }
.order-status-needs_review { background: #fff1ce; color: #7a4b00; }
.order-status-shipped, .order-status-delivered { background: var(--blush); color: var(--berry-dark); }
.order-review { margin: var(--s3) 0 0; padding: var(--s2) var(--s3); border-radius: 8px; background: #fff1ce; color: #7a4b00; font-size: var(--text-sm); line-height: 1.5; }
.order-card-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: var(--s5); margin-top: var(--s3); }
.order-customer { font-style: normal; font-size: var(--text-sm); line-height: 1.7; overflow-wrap: anywhere; }
.order-customer a { color: var(--berry); text-decoration: underline; }
.order-items { margin: 0; padding: 0; list-style: none; font-size: var(--text-sm); }
.order-items li { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.order-items small { display: block; color: var(--muted); font-size: var(--text-xs); }
.order-items .order-items-total { border-bottom: 0; }
.order-payment { margin: var(--s2) 0 0; color: var(--muted); font-size: var(--text-xs); overflow-wrap: anywhere; }
.order-card .order-actions { gap: var(--s2); margin-top: var(--s3); }
.order-tracking { margin: var(--s3) 0 0; padding: var(--s3) var(--s4); border: 1px solid var(--line); border-radius: 8px; overflow-wrap: anywhere; }
.order-tracking p { margin: 0 0 var(--s2); line-height: 1.6; }
.ship-form { display: grid; gap: var(--s2); margin: var(--s3) 0 0; }
.ship-form label { display: grid; gap: var(--s1); }
@media (max-width: 700px) {
  .admin-product { grid-template-columns: 50px minmax(0, 1fr); gap: var(--s3); }
  .admin-product > img { width: 50px; height: 60px; }
  .admin-product-name { grid-column: 2; grid-row: 1; }
  .admin-stock { grid-column: 2; grid-row: 2; text-align: left; }
  .admin-product-actions { grid-column: 2; grid-row: 3; justify-content: start; }
  .size-stock-control { display: flex; gap: var(--s3); justify-content: space-between; align-items: center; }
  .size-stock-label { margin: 0; }
  .stock-stepper { flex-shrink: 0; }
  .order-card-body { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 600px) {
  .admin-header { height: 64px; }
  .admin-header-right { gap: var(--s3); }
  .admin-header .owner-label { display: none; }
  .admin-main { padding: var(--s6) var(--gutter) var(--s8); }
  .login-card { padding: var(--s6) var(--s5); }
  .dashboard-heading { align-items: start; flex-direction: column; }
  .inventory-summary { gap: var(--s2); margin: var(--s5) 0 var(--s6); }
  .summary-card { padding: var(--s3); }
  .inventory-header { align-items: start; }
  .stock-save-prompt { align-items: stretch; flex-direction: column; }
  .stock-save-actions { justify-content: end; }
  .product-dialog { padding: var(--s5) var(--s4); }
  .dialog-actions { flex-direction: column-reverse; }
  .dialog-actions .button { width: 100%; }
}
@media (max-width: 420px) {
  .photo-slots { grid-template-columns: minmax(0, 1fr); }
  .photo-slots .photo-upload > img { height: 150px; }
  .size-row { grid-template-columns: minmax(0, 1fr) 70px auto; gap: 6px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Manjari sits high in its line box (large built-in descent); nudge single-line labels down so they look centred. */
.button, .main-nav a, .cart-label, .filter-button, .catalogue-more-filters > summary, .size-option strong, .announcement span, .discount-tag { padding-top: .3em; }
.inventory-header .button { flex-shrink: 0; white-space: nowrap; }
@media (max-width: 420px) { .main-nav a:nth-child(3) { display: none; } }

