/* Araaish — Shop / catalog / product-detail / info pages.
   Reuses tokens + base from styles.css. Scoped with shop-specific prefixes. */

/* ---------- page intro ---------- */
.shop-hero { padding: 44px 0 0; }
.shop-hero .eyebrow { color: var(--gold); }
.shop-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.4rem); color: var(--cream); margin: .5rem 0 .4rem; line-height: 1.05; }
.shop-hero p { color: var(--muted); max-width: 54ch; }

/* ---------- toolbar: search + filters ---------- */
.shop-toolbar { position: sticky; top: 0; z-index: 40; background: rgba(16,12,10,.82); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); margin-top: 2.2rem; }
.shop-toolbar__in { display: flex; flex-wrap: wrap; gap: .8rem 1rem; align-items: center; padding: .9rem 0; }
.shop-search { position: relative; flex: 1 1 260px; min-width: 0; }
.shop-search input { width: 100%; background: var(--coffee); border: 1px solid var(--line); color: var(--cream); font-family: var(--font-body); font-size: .95rem; padding: .72rem 2.4rem .72rem 2.5rem; border-radius: 40px; outline: none; transition: border-color .25s var(--ease); }
.shop-search input::placeholder { color: var(--muted); }
.shop-search input:focus { border-color: var(--gold); }
.shop-search__icon { position: absolute; left: .95rem; top: 50%; transform: translateY(-50%); color: var(--gold); display: grid; place-items: center; pointer-events: none; }
.shop-search__clear { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 1.1rem; line-height: 1; padding: .3rem; display: none; }
.shop-search__clear.show { display: block; }
.shop-filters { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
/* desktop: search + filter chips show inline; the icon buttons + dot + labels are mobile-only */
.shop-filter-toggle, .shop-search-toggle { display: none; }
.shop-filter-panel { display: contents; }  /* no wrapper box on desktop — children flow in the toolbar */
.fp-lbl, .filter-dot { display: none; }

@media (max-width: 760px) {
  .shop-toolbar__in { position: relative; flex-wrap: nowrap; gap: .6rem; justify-content: flex-end; }

  /* search + filter collapse to round icon buttons, right-aligned */
  .shop-search-toggle, .shop-filter-toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; flex: 0 0 auto; position: relative;
    color: var(--cream); background: var(--coffee); border: 1px solid var(--line);
    border-radius: 50%; cursor: pointer; padding: 0; transition: .2s var(--ease);
  }
  .shop-search-toggle { order: 1; margin-left: auto; }
  .shop-filter-toggle { order: 3; }
  .shop-search-toggle svg, .shop-filter-toggle svg { width: 18px; height: 18px; }
  .shop-search-toggle:hover, .shop-filter-toggle:hover { border-color: var(--gold-deep); }

  /* search icon ↔ close swap */
  .shop-search-toggle .ico-close { display: none; }
  .shop-toolbar__in.search-open .shop-search-toggle .ico-search { display: none; }
  .shop-toolbar__in.search-open .shop-search-toggle .ico-close { display: inline; }
  .shop-toolbar__in.search-open .shop-search-toggle { background: var(--gold); color: var(--dark-ink); border-color: var(--gold); order: 3; margin-left: .6rem; }

  /* search field: hidden until opened, then fills the sticky bar at the top */
  .shop-search { display: none; order: 2; }
  .shop-toolbar__in.search-open .shop-search { display: block; flex: 1 1 auto; min-width: 0; }
  .shop-toolbar__in.search-open .shop-filter-toggle { display: none; }  /* make room while searching */

  /* filter icon: active fill + the "has a filter on" dot */
  .shop-toolbar__in.filters-open .shop-filter-toggle { background: var(--gold); color: var(--dark-ink); border-color: var(--gold); }
  .filter-dot { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); border: 2px solid var(--black-2); }
  .shop-filter-toggle.has-active .filter-dot { display: block; }
  .shop-toolbar__in.filters-open .shop-filter-toggle.has-active .filter-dot { background: var(--dark-ink); border-color: var(--gold); }

  /* filter dropdown panel (absolute card under the icons) */
  .shop-filter-panel {
    display: none; position: absolute; top: calc(100% - .2rem); right: 0;
    width: min(320px, 88vw); flex-direction: column; gap: .4rem;
    background: var(--black-2); border: 1px solid var(--line); border-radius: 16px;
    padding: 1rem 1.1rem 1.15rem; box-shadow: var(--shadow); z-index: 60;
    max-height: 78vh; overflow-y: auto;
  }
  .shop-toolbar__in.filters-open .shop-filter-panel { display: flex; }
  .fp-lbl { display: block; font-family: var(--font-body); font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin: .7rem 0 .15rem; }
  .fp-lbl:first-child { margin-top: 0; }
  .shop-filter-panel .shop-sort { margin-left: 0; width: 100%; }
  .shop-filter-panel .csel, .shop-filter-panel .csel__btn { width: 100%; }
  .shop-filter-panel .csel__btn { text-align: left; }
}
.chip { font-family: var(--font-body); font-size: .76rem; letter-spacing: .04em; color: var(--muted); background: transparent; border: 1px solid var(--line); border-radius: 40px; padding: .5rem .95rem; cursor: pointer; transition: .25s var(--ease); white-space: nowrap; }
.chip:hover { color: var(--cream); border-color: var(--gold-deep); }
.chip.active { background: var(--gold); color: var(--dark-ink); border-color: var(--gold); font-weight: 500; }
.shop-sort { margin-left: auto; }
.shop-sort select { font-family: var(--font-body); font-size: .8rem; color: var(--cream); background: var(--coffee); border: 1px solid var(--line); border-radius: 40px; padding: .5rem 1.8rem .5rem .95rem; cursor: pointer; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C8A24C' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }

/* tighten the large gap between the sticky filter bar and the grid, + refine the count label */
.shop-toolbar + .lookbook { padding-top: 1.5rem; padding-bottom: 4rem; }
.shop-count { color: var(--gold); font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; padding: 0 0 1rem; }

/* keep product cards the same size no matter how many results (auto-fill, not auto-fit) */
#shopGrid, #pdRelated, #featuredGrid, #wishGrid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); justify-content: start; }
@media (max-width: 520px) { #shopGrid, #pdRelated, #featuredGrid, #wishGrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- product card extras (reuses .product-grid/.product from styles.css) ---------- */
.product { position: relative; }
.product__img { position: relative; }
.product__link { position: absolute; inset: 0; z-index: 2; }
.badges { position: absolute; top: .7rem; left: .7rem; z-index: 3; display: flex; flex-direction: column; gap: .4rem; align-items: flex-start; }
.badge-tag { font-family: var(--font-body); font-size: .54rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; padding: .26rem .5rem; border-radius: 3px; }
.badge-tag--new { background: var(--gold); color: var(--dark-ink); }
.badge-tag--best { background: var(--cream); color: var(--dark-ink); }
.badge-tag--off { background: #7A2E2E; color: #fff; }
.badge-tag--sold { background: rgba(16,12,10,.78); color: var(--cream); border: 1px solid var(--line); }
.avail { font-size: .68rem; letter-spacing: .08em; text-transform: uppercase; margin-top: .2rem; display: inline-flex; align-items: center; gap: .4rem; }
.avail::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avail--in { color: #6FA06A; }
.avail--low { color: var(--gold-soft); }
.avail--out { color: #C27A7A; }
.product__meta > div:first-child { flex: 1; min-width: 0; min-height: 3.9rem; }
.product__meta h3 { font-size: 1.2rem; }
.product__price { text-align: right; line-height: 1.2; font-size: 1.15rem; font-weight: 700; }
.product__price .was { display: block; color: var(--muted); text-decoration: line-through; font-size: .78rem; font-weight: 400; margin-top: .1rem; }
.product__cta-row { margin-top: auto; }
.product > .btn--small { margin-top: auto; }
.product.is-sold .product__img img { opacity: .55; filter: grayscale(.2); }
.product__cta-row { display: flex; gap: .5rem; position: relative; z-index: 3; }
.product__cta-row .btn { flex: 1; }

/* tighter card frame + name always on ONE line (stacked above the price, full width) */
.product { padding: .6rem; }
.product__meta { flex-direction: column; align-items: stretch; gap: .12rem; min-height: 0; padding: .7rem .3rem .5rem; }
.product__meta > div:first-child { min-height: auto; min-width: 0; }
.product__meta h3 { font-size: 1.12rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product__cat { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.product__price { text-align: left; margin-top: .2rem; white-space: nowrap; }
.product__price .was { display: inline; margin-left: .45rem; margin-top: 0; }

/* ---------- mobile (≤520px): denser cards, bigger images, no price/badge overlap ---------- */
@media (max-width: 520px) {
  #shopGrid, #pdRelated, #featuredGrid, #wishGrid { gap: .7rem; }
  .product { padding: .3rem; }
  /* stack name + price vertically so the price no longer overlaps the title */
  .product__meta { flex-direction: column; align-items: stretch; gap: .1rem; padding: .5rem .3rem .4rem; min-height: 0 !important; }
  .product__meta > div:first-child { min-height: 0; }
  .product__meta h3 { font-size: .88rem; line-height: 1.15; }
  .product__cat { font-size: .55rem; letter-spacing: .1em; margin-top: .2rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .product__price { text-align: left; font-size: 1.16rem; font-weight: 700; margin-top: .25rem; white-space: normal; }
  .product__price .was { display: inline; margin-left: .45rem; margin-top: 0; font-size: .72rem; font-weight: 400; }
  .avail { font-size: .58rem; margin-top: .3rem; }
  .product__cta-row { margin-top: .5rem; }
  .product__cta-row .btn--small, .btn--small { padding: .5rem .4rem; font-size: .58rem; letter-spacing: .1em; }
  /* badges + wish shrink so they stop colliding on narrow cards */
  .badges { top: .45rem; left: .45rem; gap: .22rem; max-width: 60%; }
  .badge-tag { font-size: .46rem; padding: .18rem .34rem; letter-spacing: .05em; }
  .wish { top: .4rem; right: .4rem; width: 28px; height: 28px; }
  .wish svg { width: 13px; height: 13px; }
}
/* compact 1-line shop header on phones */
@media (max-width: 600px) {
  .shop-hero { margin-bottom: 0; padding-top: 16px; }
  .shop-hero .eyebrow { display: none; }
  .shop-hero h1 { font-size: 1.5rem; line-height: 1.1; margin: .1rem 0 .2rem; }
  .shop-hero p { display: none; }
  .shop-toolbar { margin-top: 1rem; }
}

/* empty state */
.shop-empty { text-align: center; padding: 5rem 0; color: var(--muted); }
.shop-empty h3 { font-family: var(--font-display); color: var(--cream); font-size: 1.6rem; margin-bottom: .4rem; }

/* ---------- product detail ---------- */
.breadcrumb { padding: 36px 0 0; font-size: .78rem; color: var(--muted); }
.breadcrumb a { color: var(--muted); } .breadcrumb a:hover { color: var(--gold); }
.pd { padding: 1.4rem 0 2rem; }
.pd__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(1.6rem, 4vw, 3.4rem); align-items: start; }
.pd__gallery { position: sticky; top: 90px; }
/* fixed STANDARD ratio 4:5; taller photos are fit (squeezed) inside the frame — never
   cropped, never oversized. Upload product images at 4:5 (e.g. 1080x1350) to fill it. */
.pd__main-img { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--coffee); aspect-ratio: 4 / 5; }
.pd__main-img img { width: 100%; height: 100%; display: block; object-fit: contain; }
.pd__thumbs { display: flex; gap: .6rem; margin-top: .6rem; }
.pd__thumbs button { width: 64px; height: 80px; border: 1px solid var(--line); border-radius: 3px; overflow: hidden; background: none; cursor: pointer; padding: 0; opacity: .6; transition: .25s var(--ease); }
.pd__thumbs button.active, .pd__thumbs button:hover { opacity: 1; border-color: var(--gold); }
.pd__thumbs img { width: 100%; height: 100%; object-fit: cover; }

.pd__cat { color: var(--gold); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase; }
.pd__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--cream); margin: .3rem 0 .6rem; line-height: 1.05; }
.pd__price { font-family: var(--font-display); font-size: 1.7rem; color: var(--gold-soft); margin-bottom: .2rem; }
.pd__price .was { color: var(--muted); text-decoration: line-through; font-size: 1.1rem; margin-right: .6rem; }
.pd__price .save { font-family: var(--font-body); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #C9A06A; background: rgba(122,46,46,.25); border: 1px solid #7A2E2E; padding: .2rem .5rem; border-radius: 3px; margin-left: .6rem; vertical-align: middle; }
/* light theme: lighter rose fill + strong maroon text so "SAVE 30%" reads clearly */
:root[data-theme="light"] .pd__price .save { background: #F8E7E2; color: #9A2E2E; border-color: #E6BEB3; }
.pd__avail { margin: .4rem 0 1.4rem; }
.pd__desc { color: var(--muted); line-height: 1.8; margin-bottom: 1.6rem; max-width: 52ch; }

.pd__opt { margin-bottom: 1.3rem; }
.pd__opt > span.lbl { display: block; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--cream); margin-bottom: .6rem; }
.pd__opt > span.lbl b { color: var(--gold-soft); font-weight: 500; }
.swatches, .sizes { display: flex; flex-wrap: wrap; gap: .55rem; }
.swatch { font-family: var(--font-body); font-size: .8rem; color: var(--cream); background: var(--coffee); border: 1px solid var(--line); border-radius: 40px; padding: .5rem .95rem; cursor: pointer; transition: .2s var(--ease); }
.swatch:hover { border-color: var(--gold-deep); }
.swatch.sel { background: var(--gold); color: var(--dark-ink); border-color: var(--gold); }
.size-btn { min-width: 46px; font-family: var(--font-body); font-size: .85rem; color: var(--cream); background: var(--coffee); border: 1px solid var(--line); border-radius: var(--radius); padding: .55rem .7rem; cursor: pointer; transition: .2s var(--ease); }
.size-btn:hover { border-color: var(--gold-deep); }
.size-btn.sel { background: var(--gold); color: var(--dark-ink); border-color: var(--gold); font-weight: 500; }
.size-btn.oos { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.size-btn.oos:hover { border-color: var(--line); }
.size-note { font-size: .72rem; color: #C27A7A; margin-top: .5rem; min-height: 1em; }
.size-note a { color: var(--gold); border-bottom: 1px solid var(--gold); }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 40px; overflow: hidden; }
.qty button { width: 40px; height: 42px; background: var(--coffee); border: 0; color: var(--cream); font-size: 1.1rem; cursor: pointer; }
.qty button:hover { color: var(--gold); }
.qty span { min-width: 40px; text-align: center; font-size: .95rem; }

.pd__actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; align-items: center; }
.pd__actions .btn--solid { flex: 1 1 auto; }
/* icon-only Save + Share buttons (round, matches the solid button height) */
.pd__actions .btn--icon { flex: 0 0 auto; width: 52px; height: 52px; min-width: 52px; padding: 0; gap: 0; border-radius: 50%; }
.pd__actions .btn--icon svg { width: 18px; height: 18px; }
.pd__actions .btn--icon.is-copied { color: #2E7D32; border-color: #2E7D32; }

.pd__facts { margin-top: 1.8rem; border-top: 1px solid var(--line); padding-top: 1.3rem; display: grid; gap: .8rem; }
.pd__fact { display: grid; grid-template-columns: 110px 1fr; gap: 1rem; font-size: .86rem; }
.pd__fact dt { color: var(--gold); letter-spacing: .04em; } .pd__fact dd { color: var(--muted); }
.pd__trust { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 1.4rem; font-size: .76rem; color: var(--muted); }
.pd__trust span { display: inline-flex; align-items: center; gap: .45rem; } .pd__trust b { color: var(--gold); }

/* ---------- generic info/prose pages (Phase 1) ---------- */
.prose-hero { padding: 44px 0 0; }
.prose-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--cream); margin-top: .5rem; }
.prose { max-width: 760px; padding: 2rem 0 1rem; color: var(--muted); line-height: 1.85; }
.prose h2 { font-family: var(--font-display); color: var(--cream); font-size: 1.6rem; margin: 2rem 0 .6rem; }
.prose h3 { color: var(--gold-soft); font-size: 1.05rem; margin: 1.4rem 0 .4rem; font-family: var(--font-body); font-weight: 500; }
.prose p, .prose li { margin-bottom: .7rem; }
.prose ul { padding-left: 1.2rem; } .prose li { list-style: disc; }
.prose a { color: var(--gold); border-bottom: 1px solid var(--line); }
.prose a.btn { border-bottom: 0; }
.prose a.btn--solid { color: var(--dark-ink); }
.prose a.btn--ghost { color: var(--cream); }
.prose strong { color: var(--cream); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.4rem; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: left; }
.prose th { background: var(--coffee); color: var(--gold-soft); font-family: var(--font-body); font-weight: 500; letter-spacing: .04em; }
.prose td { color: var(--muted); }

/* FAQ accordion */
.faq { max-width: 820px; padding: 1.4rem 0; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; color: var(--cream); font-family: var(--font-display); font-size: 1.2rem; padding: 1.1rem 2rem 1.1rem 0; cursor: pointer; position: relative; }
.faq__q::after { content: "+"; position: absolute; right: .2rem; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 1.4rem; transition: transform .25s var(--ease); }
.faq__item.open .faq__q::after { transform: translateY(-50%) rotate(45deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s var(--ease); color: var(--muted); line-height: 1.8; }
.faq__a > div { padding: 0 0 1.1rem; }

/* ---------- cart ---------- */
.cart-btn { position: relative; background: none; border: 0; color: var(--cream); cursor: pointer; padding: .4rem; margin-left: 1.2rem; display: inline-flex; align-items: center; transition: color .25s var(--ease); }
.cart-btn:hover { color: var(--gold); }
.cart-badge { position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; background: var(--gold); color: var(--dark-ink); font-family: var(--font-body); font-size: .62rem; font-weight: 600; display: none; align-items: center; justify-content: center; line-height: 17px; }
.cart-badge.show { display: inline-flex; }

.cart-overlay { position: fixed; inset: 0; z-index: 998; background: rgba(8,6,5,.55); backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s; }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 999; width: min(420px, 92vw); height: 100%; background: var(--black-2); border-left: 1px solid var(--line); display: flex; flex-direction: column; transform: translateX(100%); transition: transform .4s var(--ease); box-shadow: -30px 0 60px -30px rgba(0,0,0,.8); }
.cart-drawer.open { transform: none; }
.cart-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 1.4rem; border-bottom: 1px solid var(--line); }
.cart-drawer__head h3 { font-family: var(--font-display); color: var(--cream); font-size: 1.5rem; }
.cart-close { background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; } .cart-close:hover { color: var(--gold); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 1rem 1.4rem; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 0; display: grid; gap: 1.2rem; justify-items: center; }

.cart-line { display: grid; grid-template-columns: 64px 1fr auto; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.cart-line img { width: 64px; height: 80px; object-fit: cover; border-radius: 3px; border: 1px solid var(--line); }
.cart-line__info h4 { font-family: var(--font-display); color: var(--cream); font-size: 1.1rem; font-weight: 600; }
.cart-line__opt { color: var(--muted); font-size: .76rem; margin: .15rem 0 .5rem; }
.cart-line__q { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 30px; overflow: hidden; }
.cart-line__q button { width: 30px; height: 30px; background: var(--coffee); border: 0; color: var(--cream); cursor: pointer; font-size: 1rem; } .cart-line__q button:hover { color: var(--gold); }
.cart-line__q span { min-width: 30px; text-align: center; font-size: .85rem; }
.cart-line__right { text-align: right; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; }
.cart-line__price { font-family: var(--font-display); color: var(--gold-soft); font-size: 1.1rem; }
.cart-line__rm { background: none; border: 0; color: var(--muted); font-size: .72rem; letter-spacing: .04em; cursor: pointer; text-decoration: underline; } .cart-line__rm:hover { color: #C27A7A; }

.cart-drawer__foot { border-top: 1px solid var(--line); padding: 1.2rem 1.4rem 1.5rem; }
.cart-sub { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .3rem; }
.cart-sub span:first-child { color: var(--muted); letter-spacing: .04em; } .cart-sub span:last-child { font-family: var(--font-display); color: var(--cream); font-size: 1.4rem; }
.cart-note { color: var(--muted); font-size: .72rem; margin-bottom: 1rem; }
.cart-drawer__foot .btn { width: 100%; text-align: center; }

/* ---------- checkout ---------- */
.co-hero { padding: 44px 0 0; }
.co-hero h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(2rem, 4.5vw, 3rem); color: var(--cream); margin-top: .4rem; }
.co-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; padding: 2rem 0 3rem; }
.co-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--coffee); padding: clamp(1.3rem, 3vw, 2rem); }
.co-card h2 { font-family: var(--font-display); color: var(--cream); font-size: 1.5rem; margin-bottom: 1rem; }
.co-field { margin-bottom: 1rem; }
.co-field label { display: block; font-size: .74rem; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); margin-bottom: .4rem; }
.co-field input, .co-field textarea, .co-field select { width: 100%; background: var(--black-2); border: 1px solid var(--line); color: var(--cream); font-family: var(--font-body); font-size: .95rem; padding: .7rem .9rem; border-radius: var(--radius); outline: none; transition: border-color .25s var(--ease); }
.co-field input:focus, .co-field textarea:focus, .co-field select:focus { border-color: var(--gold); }
.co-field select { appearance: none; -webkit-appearance: none; cursor: pointer; padding-right: 2rem; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23C8A24C' stroke-width='1.5'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; }
.co-field select option { background: var(--black-2); color: var(--cream); }
.co-field textarea { resize: vertical; min-height: 70px; }
.co-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.co-err { color: #C27A7A; font-size: .78rem; min-height: 1em; margin-top: .3rem; }
.co-line { display: flex; gap: .8rem; padding: .8rem 0; border-bottom: 1px solid var(--line-soft); align-items: center; }
.co-line img { width: 50px; height: 62px; object-fit: cover; border-radius: 3px; }
.co-line__t { flex: 1; } .co-line__t h4 { font-family: var(--font-display); color: var(--cream); font-size: 1.05rem; } .co-line__t p { color: var(--muted); font-size: .74rem; }
.co-line__p { font-family: var(--font-display); color: var(--gold-soft); }
.co-tot { display: flex; justify-content: space-between; align-items: baseline; padding-top: 1rem; }
.co-tot span:first-child { color: var(--muted); } .co-tot span:last-child { font-family: var(--font-display); color: var(--cream); font-size: 1.5rem; }
.co-note { color: var(--muted); font-size: .76rem; margin: 1rem 0 1.2rem; }
.co-card .btn { width: 100%; text-align: center; }
.co-empty { text-align: center; padding: 4rem 0; color: var(--muted); display: grid; gap: 1.2rem; justify-items: center; }

/* custom dropdown (sort) */
.csel { position: relative; }
.csel__btn { font-family: var(--font-body); font-size: .8rem; color: var(--cream); background: var(--coffee); border: 1px solid var(--line); border-radius: 40px; padding: .5rem 2.2rem .5rem .95rem; cursor: pointer; position: relative; white-space: nowrap; transition: border-color .25s var(--ease); }
.csel__btn:hover { border-color: var(--gold-deep); }
.csel__btn::after { content: ""; position: absolute; right: 1rem; top: 50%; width: 7px; height: 7px; border-right: 1.5px solid var(--gold); border-bottom: 1.5px solid var(--gold); transform: translateY(-70%) rotate(45deg); transition: transform .25s var(--ease); }
.csel.open .csel__btn::after { transform: translateY(-30%) rotate(-135deg); }
.csel__list { position: absolute; top: calc(100% + 6px); right: 0; min-width: 100%; background: var(--black-2); border: 1px solid var(--line); border-radius: 12px; padding: .4rem; z-index: 60; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s; }
.csel.open .csel__list { opacity: 1; visibility: visible; transform: none; }
.csel__opt { font-size: .82rem; color: var(--cream); padding: .55rem .9rem; border-radius: 8px; cursor: pointer; white-space: nowrap; transition: background .2s var(--ease); }
.csel__opt:hover { background: var(--coffee); }
.csel__opt.sel { background: var(--gold); color: var(--dark-ink); }

/* checkout subtotal / shipping rows */
.co-sub-line { display: flex; justify-content: space-between; align-items: baseline; color: var(--muted); font-size: .9rem; padding: .35rem 0; }
.co-sub-line span:last-child { color: var(--cream); }

/* ---------- wishlist ---------- */
.wish-btn { position: relative; display: inline-flex; align-items: center; color: var(--cream); margin-left: 1rem; padding: .4rem; transition: color .25s var(--ease); }
.wish-btn:hover { color: var(--gold); }
.wish-badge { position: absolute; top: -2px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 20px; background: var(--gold); color: var(--dark-ink); font-family: var(--font-body); font-size: .62rem; font-weight: 600; display: none; align-items: center; justify-content: center; line-height: 17px; }
.wish-badge.show { display: inline-flex; }
/* ===== ONE "like" (wishlist heart) button — same look + states everywhere
   (shop cards, featured, product page, wishlist). Only size/placement differs. ===== */
[data-wish] { display: grid; place-items: center; cursor: pointer; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(16,12,10,.55); color: var(--cream);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  transition: color .2s var(--ease), border-color .2s var(--ease), background .2s var(--ease), transform .2s var(--ease); }
:root[data-theme="light"] [data-wish] { background: rgba(255,255,255,.82); border-color: rgba(110,82,48,.3); color: #6E5230; }
[data-wish] svg { width: 18px; height: 18px; }
[data-wish]:hover { color: var(--gold); border-color: var(--gold); }
[data-wish].on { color: #C0392B; border-color: #C0392B; }
:root[data-theme="light"] [data-wish].on { color: #C0392B; border-color: #C0392B; } /* beat the light-theme default */
[data-wish].on svg path { fill: #C0392B; stroke: #C0392B; }
/* placement / size per context */
.wish { position: absolute; top: .6rem; right: .6rem; z-index: 4; width: 36px; height: 36px; }
.pd__actions .pd__wish { width: 52px; height: 52px; }
/* keep the share button on the product page matched to the like button */
.pd__actions .btn--icon.pd__share { background: rgba(16,12,10,.55); border: 1px solid var(--line); color: var(--cream); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
:root[data-theme="light"] .pd__actions .btn--icon.pd__share { background: rgba(255,255,255,.82); border-color: rgba(110,82,48,.3); color: #6E5230; }
.pd__actions .btn--icon.pd__share:hover { color: var(--gold); border-color: var(--gold); }
.wish-empty { text-align: center; padding: 4rem 0; color: var(--muted); display: grid; gap: 1.2rem; justify-items: center; }
.wish-empty h3 { font-family: var(--font-display); color: var(--cream); font-size: 1.6rem; }
.wish-note { font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: #C27A7A; margin-top: .3rem; }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .pd__grid, .co-grid { grid-template-columns: 1fr; }
  .pd__gallery { position: static; }
  .shop-sort { margin-left: 0; }
  .co-grid { display: flex; flex-direction: column-reverse; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto; } .cart-drawer, .cart-overlay { transition: none; } }

/* --- polish: header alignment (brand left · nav centered · icons tight-right) --- */
.header__inner { justify-content: flex-start; }
@media (min-width: 761px) {
  .header__inner { position: relative; gap: 0; }
  .nav { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); margin: 0; }
}
/* all header icon buttons share one size, one hover (white chip), even spacing */
.hdr-icon, .cart-btn, .wish-btn {
  width: 34px; height: 34px; padding: 0; margin-left: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; border-radius: 50%; background: transparent; color: var(--cream); cursor: pointer;
  transition: background .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease);
}
.hdr-icon svg, .cart-btn svg, .wish-btn svg { width: 19px; height: 19px; }
.hdr-icon:hover, .cart-btn:hover, .wish-btn:hover { background: #fff; color: var(--gold); box-shadow: 0 2px 10px rgba(80,60,30,.16); }
:root[data-theme="dark"] .hdr-icon:hover, :root[data-theme="dark"] .cart-btn:hover, :root[data-theme="dark"] .wish-btn:hover { background: var(--coffee-2); box-shadow: none; }
#themeToggle { margin-left: auto; }   /* pushes the whole icon cluster to the far right */
/* reserve a uniform 2-line height for the name+category block (via the
   min-height on .product__meta > div:first-child above) so the availability
   line + button sit at the same height across all cards */
.product__meta { min-height: 4.6rem; }

.nav a { white-space: nowrap; }

/* anchor targets clear the sticky header when jumping to #story / #collections etc. (e.g. from the shop nav) */
#top, #collections, #lookbook, #story, #journal, #contact { scroll-margin-top: 92px; }

/* --- hover tooltip for out-of-stock items (sold-out cards + unavailable size buttons) --- */
[data-tip] { position: relative; }
[data-tip]:hover::after,
[data-tip]:focus-visible::after {
  content: attr(data-tip);
  position: absolute;
  left: 50%;
  bottom: calc(100% + 9px);
  transform: translateX(-50%);
  background: #1a1410;
  color: #F3E9DC;
  border: 1px solid rgba(201, 162, 77, .55);
  padding: .38rem .6rem;
  border-radius: 7px;
  font-family: "Jost", sans-serif;
  font-size: .72rem;
  font-weight: 500;
  letter-spacing: .02em;
  line-height: 1;
  white-space: nowrap;
  z-index: 50;
  pointer-events: none;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4);
}
[data-tip]:hover::before,
[data-tip]:focus-visible::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: calc(100% + 3px);
  transform: translateX(-50%);
  border: 6px solid transparent;
  border-top-color: #1a1410;
  z-index: 50;
  pointer-events: none;
}
/* on a sold-out card, centre the tooltip over the image so it never clips above the grid */
.product__img[data-tip]:hover::after {
  bottom: auto;
  top: 50%;
  transform: translate(-50%, -50%);
}
.product__img[data-tip]:hover::before { display: none; }

/* --- checkout: "request sent on WhatsApp" success state --- */
.co-sent { text-align: center; }
.co-sent__badge { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: rgba(111, 160, 106, .15); border: 1px solid rgba(111, 160, 106, .5); color: #6FA06A; margin: 0 auto .8rem; }
.co-sent__badge svg { width: 30px; height: 30px; }
.co-sent__state { display: inline-flex; align-items: center; gap: .4rem; font-family: var(--font-body); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #6FA06A; margin: 0 0 .2rem; }

/* ---------- floating filter button + filter/sort sheet ---------- */
.shop-hero + .filter-fab, .filter-sheet + .lookbook { /* spacing anchor */ }
.filter-sheet + .lookbook { padding-top: 1.6rem; padding-bottom: 4rem; }

.filter-fab { position: fixed; right: 22px; bottom: 22px; z-index: 70; display: inline-flex; align-items: center; gap: .5rem; padding: .85rem 1.3rem; border-radius: 100px; border: 1px solid var(--gold); background: linear-gradient(135deg, var(--gold-soft), var(--gold) 60%, var(--gold-deep)); color: var(--dark-ink); font-family: var(--font-body); font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; cursor: pointer; box-shadow: 0 10px 26px rgba(0,0,0,.42); transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.filter-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(0,0,0,.52); }
.filter-fab svg { width: 17px; height: 17px; }
.filter-fab .filter-dot { position: absolute; top: -3px; right: -3px; width: 13px; height: 13px; border-radius: 50%; background: #C0392B; border: 2px solid var(--black); display: none; }
.filter-fab.has-active .filter-dot { display: block; }

.filter-sheet { position: fixed; inset: 0; z-index: 80; visibility: hidden; opacity: 0; transition: opacity .3s var(--ease), visibility .3s; }
.filter-sheet.open { visibility: visible; opacity: 1; }
.filter-sheet__backdrop { position: absolute; inset: 0; background: rgba(8,6,5,.55); backdrop-filter: blur(2px); }
.filter-sheet__panel { position: absolute; right: 22px; bottom: 22px; width: min(380px, calc(100vw - 44px)); max-height: 82vh; display: flex; flex-direction: column; background: var(--black-2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); transform: translateY(18px); transition: transform .3s var(--ease); overflow: hidden; }
.filter-sheet.open .filter-sheet__panel { transform: none; }
.filter-sheet__head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem; border-bottom: 1px solid var(--line); }
.filter-sheet__head h3 { font-family: var(--font-display); color: var(--cream); font-size: 1.4rem; }
.filter-sheet__head button { background: none; border: 0; color: var(--muted); font-size: 1.7rem; line-height: 1; cursor: pointer; } .filter-sheet__head button:hover { color: var(--gold); }
.filter-sheet__body { overflow-y: auto; padding: 1rem 1.3rem .4rem; }
.filter-sheet fieldset { border: 0; margin-bottom: 1.2rem; }
.filter-sheet legend { font-family: var(--font-body); font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .5rem; }
.fopt { display: flex; align-items: center; gap: .7rem; padding: .5rem 0; cursor: pointer; color: var(--cream); font-size: .95rem; user-select: none; }
.fopt input { position: absolute; opacity: 0; width: 0; height: 0; }
.fbox { width: 20px; height: 20px; flex: 0 0 auto; border: 1.5px solid var(--line); border-radius: 5px; display: grid; place-items: center; transition: background .2s var(--ease), border-color .2s var(--ease); }
.fradio .fbox { border-radius: 50%; }
.fopt:hover .fbox { border-color: var(--gold-deep); }
.fbox svg { width: 12px; height: 12px; opacity: 0; transform: scale(.5); transition: .15s var(--ease); color: var(--dark-ink); }
.fradio .fbox svg { width: 9px; height: 9px; border-radius: 50%; }
.fopt input:checked + .fbox { background: var(--gold); border-color: var(--gold); }
.fopt input:checked + .fbox svg { opacity: 1; transform: none; }
.fopt input:focus-visible + .fbox { outline: 2px solid var(--gold); outline-offset: 2px; }
.filter-sheet__foot { display: flex; gap: .7rem; padding: .9rem 1.3rem 1.1rem; border-top: 1px solid var(--line); }
.filter-sheet__foot .btn { margin: 0; }
.filter-sheet__foot #filterClear { flex: 0 0 auto; width: auto; padding-left: 1.1rem; padding-right: 1.1rem; }
.filter-sheet__foot #filterApply { flex: 1 1 auto; }

@media (max-width: 600px) {
  .filter-sheet__panel { left: 0; right: 0; bottom: 0; width: auto; max-height: 86vh; border-radius: 18px 18px 0 0; transform: translateY(100%); }
  .filter-fab { right: 16px; bottom: 16px; }
}

/* ===== Mobile: compact product-detail (View details) page ===== */
@media (max-width: 600px) {
  .breadcrumb { padding: 18px 0 0; font-size: .72rem; }
  .pd { padding: .7rem 0 1.4rem; }
  .pd__grid { gap: 1.1rem; }
  .pd__cat { font-size: .66rem; }
  .pd__title { font-size: clamp(1.55rem, 7vw, 2rem); margin: .25rem 0 .45rem; }
  .pd__price { font-size: 1.35rem; margin-bottom: .15rem; }
  .pd__avail { margin: .3rem 0 1rem; }
  .pd__desc { font-size: .88rem; line-height: 1.6; margin-bottom: 1rem; }
  .pd__opt { margin-bottom: .95rem; }
  .pd__opt > span.lbl { margin-bottom: .45rem; }
  .swatch { padding: .45rem .85rem; font-size: .78rem; }
  .size-btn { min-width: 42px; padding: .48rem .6rem; font-size: .8rem; }
  .qty button { width: 36px; height: 38px; }
  .pd__actions { gap: .5rem; margin-top: 1rem; }
  .pd__actions .btn--solid { padding: .82rem 1rem; font-size: .7rem; }
  .pd__actions .btn--icon { width: 44px; height: 44px; min-width: 44px; }
  .pd__actions .btn--icon svg { width: 16px; height: 16px; }
  .pd__facts { margin-top: 1.2rem; padding-top: 1rem; gap: .55rem; }
  .pd__fact { grid-template-columns: 92px 1fr; gap: .7rem; font-size: .8rem; }
  .pd__trust { gap: .7rem 1rem; margin-top: 1rem; font-size: .7rem; }
  .pd__thumbs button { width: 54px; height: 68px; }
}

/* ===== checkout: single-column 2-step flow (review → details) ===== */
.co-single { max-width: 580px; margin: 0 auto; }
.co-step-head { display: flex; align-items: center; gap: .9rem; margin-bottom: 1rem; flex-wrap: wrap; }
.co-step-head h2 { margin: 0; }
.co-back { background: none; border: 0; color: var(--gold); font-family: var(--font-body); font-size: .76rem; letter-spacing: .06em; text-transform: uppercase; cursor: pointer; padding: 0; }
.co-back:hover { text-decoration: underline; text-underline-offset: 3px; }
.co-field--half { max-width: 220px; }
#coContinue, #coPlace { width: 100%; margin-top: .7rem; }
/* keep the step-1 / place buttons a comfortable size, not oversized (single line) */
#coContinue, #coPlace { padding: .82rem 1.4rem; font-size: .72rem; letter-spacing: .14em; }
.co-note { font-size: .74rem; margin: .7rem 0 .9rem; }

/* lock background scroll while the cart drawer is open (stops scrolling past the footer) */
body.drawer-open { overflow: hidden; }
