/* ============================================================
   BIANCA CORNER — Design System
   Ivory canvas · ink typography · bronze-gold accents
   Luxury-minimal aesthetic, RTL-first with logical properties
   ============================================================ */

:root {
  --ivory:      #f6f3ec;
  --ivory-2:    #efe9dd;
  --paper:      #fffdf8;
  --ink:        #161616;
  --ink-soft:   #3c3a36;
  --muted:      #7c766b;
  --line:       #e2dcce;
  --gold:       #a9885a;
  --gold-deep:  #8a6c42;
  --blush:      #e9d9cf;
  --danger:     #a63a3a;
  --success:    #3f6b4f;
  --radius:     4px;
  --shadow-sm:  0 1px 3px rgba(22,22,22,.06);
  --shadow-md:  0 8px 30px rgba(22,22,22,.10);
  --shadow-lg:  0 20px 60px rgba(22,22,22,.16);
  --font-display: 'Playfair Display', 'Amiri', serif;
  --font-body:    'Jost', 'Tajawal', sans-serif;
}
html[lang="ar"] {
  --font-display: 'Amiri', 'Playfair Display', serif;
  --font-body:    'Tajawal', 'Jost', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--ivory);
  color: var(--ink);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul { list-style: none; }
::selection { background: var(--gold); color: #fff; }

h1,h2,h3,h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.25; }

.container { width: min(1240px, 92%); margin-inline: auto; }
.hidden { display: none !important; }

/* ---------- Boot loader ---------- */
.boot-loader { min-height: 100vh; display: grid; place-items: center; background: var(--ivory); }
.boot-logo { font-family: 'Playfair Display', serif; font-size: 2rem; letter-spacing: .04em; }
.boot-logo span { display: block; text-align: center; font-family: 'Jost', sans-serif; font-size: .65rem; letter-spacing: .55em; margin-top: .4rem; }

/* ---------- Announcement bar ---------- */
.announce {
  background: var(--ink); color: var(--ivory);
  text-align: center; font-size: .78rem; letter-spacing: .06em;
  padding: .55rem 1rem;
}
html[lang="ar"] .announce { letter-spacing: 0; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(246,243,236,.92); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; gap: 1.2rem;
  padding: .85rem 0;
}
.burger { display: none; font-size: 1.3rem; padding: .3rem; }
.logo { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.logo-mark { width: 46px; height: auto; }
.logo-text { line-height: 1; }
.logo-name { font-family: 'Playfair Display', serif; font-size: 1.45rem; font-weight: 600; }
.logo-sub { font-size: .55rem; letter-spacing: .5em; color: var(--muted); font-family: 'Jost', sans-serif; }

.main-nav { display: flex; gap: 1.6rem; margin-inline-start: auto; }
.main-nav a {
  font-size: .92rem; font-weight: 500; letter-spacing: .02em;
  padding: .3rem 0; position: relative; color: var(--ink-soft);
}
.main-nav a::after {
  content: ''; position: absolute; inset-inline-start: 0; bottom: -2px;
  width: 0; height: 1.5px; background: var(--gold); transition: width .25s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }
.main-nav a.active { color: var(--ink); }

.header-actions { display: flex; align-items: center; gap: .35rem; margin-inline-start: auto; }
.main-nav + .header-actions { margin-inline-start: 0; }
.icon-btn {
  position: relative; width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; font-size: 1.05rem; transition: background .2s;
}
.icon-btn:hover { background: var(--ivory-2); }
.badge-dot {
  position: absolute; top: 2px; inset-inline-end: 0;
  min-width: 17px; height: 17px; padding: 0 4px;
  background: var(--gold); color: #fff; border-radius: 9px;
  font-size: .62rem; font-weight: 700; display: grid; place-items: center;
}
.lang-toggle {
  font-size: .78rem; font-weight: 700; letter-spacing: .08em;
  border: 1px solid var(--line); border-radius: 999px; padding: .35rem .75rem;
  transition: all .2s;
}
.lang-toggle:hover { border-color: var(--ink); }

/* search bar */
.search-bar { border-top: 1px solid var(--line); padding: .7rem 0; }
.search-box { display: flex; gap: .6rem; }
.search-box input {
  flex: 1; border: 1px solid var(--line); background: var(--paper);
  padding: .65rem 1rem; border-radius: var(--radius); font-size: .95rem;
}
.search-box input:focus { outline: 1.5px solid var(--gold); }

/* ---------- Mobile nav drawer ---------- */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(22,22,22,.4);
  opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 98;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; top: 0; bottom: 0; left: 0;
  width: min(320px, 85vw); background: var(--paper); z-index: 99;
  transform: translateX(-105%); transition: transform .32s cubic-bezier(.4,0,.2,1);
  padding: 1.4rem; overflow-y: auto;
}
html[dir="rtl"] .drawer { left: auto; right: 0; transform: translateX(105%); }
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.drawer a { display: block; padding: .8rem .4rem; border-bottom: 1px solid var(--line); font-size: 1.02rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .85rem 2rem; border-radius: var(--radius);
  font-size: .92rem; font-weight: 600; letter-spacing: .04em;
  transition: all .22s; border: 1.5px solid transparent;
  text-align: center;
}
.btn-primary { background: var(--ink); color: var(--ivory); }
.btn-primary:hover { background: var(--gold-deep); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-deep); }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: var(--ivory); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn-lg { padding: 1rem 2.6rem; font-size: 1rem; }
.btn-sm { padding: .45rem 1rem; font-size: .8rem; }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.05fr .95fr;
  min-height: min(78vh, 640px); overflow: hidden;
  border-bottom: 1px solid var(--line);
}
.hero-copy {
  display: flex; flex-direction: column; justify-content: center;
  padding: clamp(2rem, 6vw, 5rem); gap: 1.4rem;
}
.kicker {
  font-size: .75rem; letter-spacing: .35em; text-transform: uppercase;
  color: var(--gold-deep); font-weight: 600;
}
html[lang="ar"] .kicker { letter-spacing: .12em; }
.hero-copy h1 { font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.12; }
.hero-copy p { max-width: 46ch; color: var(--ink-soft); font-size: 1.08rem; }
.hero-ctas { display: flex; gap: .8rem; flex-wrap: wrap; }
.hero-art { position: relative; background: linear-gradient(140deg, #e9ddcd 0%, #d6bf9f 45%, #b69063 100%); }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-tag {
  position: absolute; bottom: 2rem; inset-inline-end: 2rem;
  background: rgba(246,243,236,.9); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  padding: .9rem 1.4rem; border-radius: var(--radius); box-shadow: var(--shadow-md);
}
.hero-tag b { display: block; font-size: .95rem; }
.hero-tag span { font-size: .78rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.section.alt { background: var(--paper); }
.sec-head { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2.2rem; }
.sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); }
.sec-head .sub { color: var(--muted); margin-top: .35rem; font-size: .95rem; }
.view-all { font-size: .88rem; font-weight: 600; border-bottom: 1.5px solid var(--gold); padding-bottom: 2px; white-space: nowrap; }
.view-all:hover { color: var(--gold-deep); }

/* ---------- Category cards ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.cat-card { position: relative; display: block; overflow: hidden; border-radius: var(--radius); aspect-ratio: 3/4; }
.cat-card .cat-art { position: absolute; inset: 0; transition: transform .5s; }
.cat-card:hover .cat-art { transform: scale(1.05); }
.cat-card .cat-label {
  position: absolute; inset-inline: 0; bottom: 0; padding: 1.4rem 1.2rem 1.1rem;
  background: linear-gradient(transparent, rgba(22,22,22,.72)); color: #fff;
}
.cat-label b { font-family: var(--font-display); font-size: 1.3rem; font-weight: 500; display: block; }
.cat-label span { font-size: .8rem; opacity: .85; }

/* ---------- Product grid & cards ---------- */
.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem 1.1rem; }
.p-card { position: relative; display: flex; flex-direction: column; }
.p-media {
  position: relative; aspect-ratio: 3/4; overflow: hidden;
  border-radius: var(--radius); background: var(--ivory-2);
}
.p-media .p-art { position: absolute; inset: 0; transition: transform .5s; }
.p-card:hover .p-art { transform: scale(1.06); }
.p-badges { position: absolute; top: .7rem; inset-inline-start: .7rem; display: flex; flex-direction: column; gap: .35rem; z-index: 2; }
.p-badge {
  font-size: .62rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  padding: .22rem .55rem; border-radius: 2px; background: var(--ink); color: #fff; width: fit-content;
}
html[lang="ar"] .p-badge { letter-spacing: 0; }
.p-badge.sale { background: var(--gold); }
.p-badge.new { background: var(--success); }
.p-badge.limited { background: var(--danger); }
.p-actions {
  position: absolute; inset-inline: .7rem; bottom: .7rem; z-index: 2;
  display: flex; gap: .4rem; opacity: 0; transform: translateY(8px);
  transition: all .28s;
}
.p-card:hover .p-actions { opacity: 1; transform: none; }
.p-actions .btn { flex: 1; padding: .65rem .5rem; font-size: .78rem; box-shadow: var(--shadow-md); }
.p-wish {
  width: 38px; height: 38px; border-radius: var(--radius); background: var(--paper);
  display: grid; place-items: center; box-shadow: var(--shadow-md); font-size: 1rem;
  transition: all .2s; flex-shrink: 0;
}
.p-wish.active { color: var(--danger); }
.p-info { padding: .9rem .1rem 0; display: flex; flex-direction: column; gap: .25rem; }
.p-name { font-weight: 500; font-size: .95rem; line-height: 1.4; }
.p-cat { font-size: .75rem; color: var(--muted); letter-spacing: .05em; }
.p-price { display: flex; align-items: baseline; gap: .5rem; margin-top: .15rem; }
.price { font-weight: 700; font-size: 1.02rem; }
.price-old { color: var(--muted); text-decoration: line-through; font-size: .82rem; font-weight: 400; }
.price-off { color: var(--gold-deep); font-size: .72rem; font-weight: 700; }
.p-dots { display: flex; gap: .3rem; margin-top: .15rem; }
.p-dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); }
.p-rating { font-size: .78rem; color: var(--muted); display: flex; align-items: center; gap: .3rem; }
.stars { color: var(--gold); letter-spacing: .08em; font-size: .8rem; }

/* ---------- Offer band ---------- */
.offer-band {
  background: var(--ink); color: var(--ivory); border-radius: var(--radius);
  padding: clamp(2.2rem, 5vw, 4rem); display: grid; grid-template-columns: 1fr auto;
  gap: 2rem; align-items: center; position: relative; overflow: hidden;
}
.offer-band::before {
  content: 'BC'; position: absolute; inset-inline-end: -1rem; top: -3rem;
  font-family: 'Playfair Display', serif; font-size: 16rem; opacity: .06; line-height: 1;
}
.offer-band .kicker { color: var(--gold); }
.offer-band h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: .4rem 0 .6rem; }
.offer-band p { opacity: .8; max-width: 52ch; }
.coupon-chip {
  display: inline-flex; align-items: center; gap: .5rem; margin-top: 1rem;
  border: 1px dashed var(--gold); padding: .4rem .9rem; border-radius: var(--radius);
  font-size: .85rem; letter-spacing: .15em;
}

/* ---------- Promo banner ---------- */
.promo {
  min-height: 340px; border-radius: var(--radius); overflow: hidden; position: relative;
  display: flex; align-items: center;
  background: linear-gradient(120deg, #d9c5ab 0%, #b69062 55%, #8a6c42 100%);
}
.promo .promo-copy { padding: clamp(2rem, 5vw, 4rem); max-width: 560px; color: #fff; }
.promo h2 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); margin-bottom: .7rem; }
.promo p { opacity: .92; margin-bottom: 1.4rem; }
.promo svg.deco { position: absolute; inset-inline-end: 0; top: 0; height: 100%; opacity: .5; }

/* ---------- Why us ---------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.why-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.8rem 1.4rem; transition: all .25s;
}
.why-card:hover { border-color: var(--gold); transform: translateY(-3px); box-shadow: var(--shadow-md); }
.why-ico {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ivory-2);
  display: grid; place-items: center; font-size: 1.25rem; margin-bottom: 1rem; color: var(--gold-deep);
}
.why-card h3 { font-size: 1.08rem; margin-bottom: .4rem; }
.why-card p { font-size: .88rem; color: var(--muted); }

/* ---------- Testimonials ---------- */
.testi-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.testi {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.4rem; display: flex; flex-direction: column; gap: .8rem;
}
.testi .quote { font-size: .92rem; color: var(--ink-soft); flex: 1; }
.testi .who { font-size: .82rem; color: var(--muted); }
.testi .who b { color: var(--ink); font-size: .9rem; display: block; }

/* ---------- Instagram strip ---------- */
.insta-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: .5rem; margin-top: 1.6rem; }
.insta-cell { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; position: relative; }
.insta-cell svg { width: 100%; height: 100%; transition: transform .4s; }
.insta-cell:hover svg { transform: scale(1.08); }

/* ---------- Newsletter ---------- */
.newsletter { text-align: center; max-width: 560px; margin-inline: auto; }
.newsletter h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .6rem; }
.newsletter p { color: var(--muted); margin-bottom: 1.6rem; }
.news-form { display: flex; gap: .6rem; }
.news-form input {
  flex: 1; padding: .9rem 1.1rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--paper);
}
.news-form input:focus { outline: 1.5px solid var(--gold); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #d8d3c8; margin-top: 4rem; }
.footer-grid {
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem; padding: 3.5rem 0 2.5rem;
}
.f-logo { font-family: 'Playfair Display', serif; font-size: 1.6rem; color: var(--ivory); }
.f-logo span { display: block; font-family: 'Jost', sans-serif; font-size: .55rem; letter-spacing: .5em; color: var(--gold); }
.f-about { font-size: .85rem; opacity: .75; margin-top: 1rem; max-width: 34ch; }
.f-social { display: flex; gap: .5rem; margin-top: 1.2rem; }
.f-social a {
  width: 38px; height: 38px; border: 1px solid rgba(255,255,255,.2); border-radius: 50%;
  display: grid; place-items: center; font-size: .95rem; transition: all .2s;
}
.f-social a:hover { background: var(--gold); border-color: var(--gold); color: #fff; }
.f-col h4 { color: var(--ivory); font-family: var(--font-body); font-size: .85rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 1.1rem; font-weight: 600; }
.f-col a { display: block; padding: .32rem 0; font-size: .88rem; opacity: .75; transition: opacity .2s; }
.f-col a:hover { opacity: 1; color: var(--gold); }
.f-contact li { display: flex; gap: .6rem; padding: .35rem 0; font-size: .88rem; opacity: .8; align-items: baseline; }
.f-pay { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .8rem; }
.f-pay span {
  border: 1px solid rgba(255,255,255,.18); border-radius: 3px;
  padding: .28rem .7rem; font-size: .72rem; letter-spacing: .05em;
}
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding: 1.2rem 0;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  font-size: .78rem; opacity: .6;
}

/* ---------- WhatsApp float ---------- */
.wa-float {
  position: fixed; bottom: 1.4rem; inset-inline-end: 1.4rem; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; box-shadow: var(--shadow-lg);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: #fff; }

/* ---------- Breadcrumbs & page head ---------- */
.page-head { padding: 2.4rem 0 1.6rem; border-bottom: 1px solid var(--line); margin-bottom: 2rem; }
.crumbs { font-size: .8rem; color: var(--muted); margin-bottom: .6rem; display: flex; gap: .45rem; flex-wrap: wrap; }
.crumbs a:hover { color: var(--gold-deep); }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.page-head .sub { color: var(--muted); margin-top: .4rem; }

/* ---------- Shop layout ---------- */
.shop-layout { display: grid; grid-template-columns: 250px 1fr; gap: 2.4rem; align-items: start; }
.filters {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem; position: sticky; top: 90px;
}
.filters h3 { font-size: .85rem; letter-spacing: .12em; text-transform: uppercase; margin: 1.3rem 0 .7rem; font-family: var(--font-body); font-weight: 700; color: var(--ink-soft); }
.filters h3:first-child { margin-top: 0; }
.f-opt { display: flex; align-items: center; gap: .55rem; padding: .28rem 0; font-size: .9rem; cursor: pointer; }
.f-opt input { accent-color: var(--gold-deep); width: 15px; height: 15px; }
.f-opt .swatch { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); flex-shrink: 0; }
.price-range { display: flex; gap: .5rem; align-items: center; }
.price-range input {
  width: 100%; padding: .45rem .6rem; border: 1px solid var(--line);
  border-radius: var(--radius); background: var(--ivory); font-size: .85rem;
}
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  margin-bottom: 1.4rem; flex-wrap: wrap;
}
.shop-toolbar .count { color: var(--muted); font-size: .88rem; }
.toolbar-right { display: flex; gap: .6rem; align-items: center; }
.sort-sel {
  padding: .55rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper); font-size: .88rem;
}
.filter-toggle { display: none; }
.empty-state { text-align: center; padding: 4rem 1rem; }
.empty-state .big { font-size: 3rem; margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.4rem; margin-bottom: .4rem; }
.empty-state p { color: var(--muted); margin-bottom: 1.4rem; }

/* ---------- Product page ---------- */
.pd-layout { display: grid; grid-template-columns: 1.05fr 1fr; gap: 3rem; align-items: start; }
.pd-gallery { position: sticky; top: 90px; }
.pd-main-img {
  aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  position: relative; background: var(--ivory-2);
}
.pd-main-img svg { width: 100%; height: 100%; }
.pd-thumbs { display: flex; gap: .6rem; margin-top: .7rem; }
.pd-thumb {
  width: 76px; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden;
  border: 1.5px solid transparent; cursor: pointer; background: var(--ivory-2); flex-shrink: 0;
}
.pd-thumb.active { border-color: var(--gold); }
.pd-info h1 { font-size: clamp(1.5rem, 3vw, 2.2rem); margin: .4rem 0 .8rem; }
.pd-meta { display: flex; gap: 1rem; align-items: center; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.pd-price { display: flex; align-items: baseline; gap: .8rem; margin: 1.1rem 0; }
.pd-price .price { font-size: 1.7rem; }
.pd-price .price-old { font-size: 1.05rem; }
.pd-price .price-off { font-size: .85rem; background: var(--blush); padding: .15rem .55rem; border-radius: 3px; }
.pd-desc { color: var(--ink-soft); margin-bottom: 1.4rem; }
.opt-label { font-size: .82rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .55rem; display: flex; justify-content: space-between; align-items: center; }
.opt-label .guide-link { font-size: .78rem; font-weight: 500; color: var(--gold-deep); text-transform: none; letter-spacing: 0; border-bottom: 1px solid var(--gold); cursor: pointer; }
.swatches { display: flex; gap: .55rem; margin-bottom: 1.3rem; }
.swatch {
  width: 34px; height: 34px; border-radius: 50%; border: 2px solid transparent;
  outline: 1px solid rgba(0,0,0,.15); cursor: pointer; position: relative; padding: 0;
}
.swatch.active { border-color: var(--ivory); outline: 2px solid var(--ink); }
.size-row { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: .4rem; }
.size-chip {
  min-width: 46px; padding: .55rem .7rem; border: 1.5px solid var(--line); border-radius: var(--radius);
  text-align: center; font-size: .88rem; font-weight: 500; background: var(--paper);
  transition: all .18s;
}
.size-chip:hover { border-color: var(--ink); }
.size-chip.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.opt-err { color: var(--danger); font-size: .8rem; margin-top: .3rem; min-height: 1.1em; }
.stock-line { font-size: .88rem; margin: .9rem 0; font-weight: 500; }
.stock-line.ok { color: var(--success); } .stock-line.low { color: var(--gold-deep); } .stock-line.out { color: var(--danger); }
.qty-row { display: flex; gap: .8rem; align-items: stretch; margin: 1.2rem 0; flex-wrap: wrap; }
.qty-box { display: flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.qty-box button { width: 42px; font-size: 1.1rem; background: var(--paper); }
.qty-box button:hover { background: var(--ivory-2); }
.qty-box input { width: 52px; text-align: center; border: 0; background: var(--paper); font-weight: 600; }
.pd-ctas { display: grid; grid-template-columns: 1fr 1fr auto; gap: .6rem; }
.pd-ctas .p-wish-lg {
  width: 52px; border: 1.5px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; font-size: 1.2rem; background: var(--paper);
}
.pd-ctas .p-wish-lg.active { color: var(--danger); border-color: var(--danger); }
.trust-row { display: flex; flex-direction: column; gap: .5rem; margin: 1.3rem 0; padding: 1.1rem 1.2rem; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.trust-row li { display: flex; gap: .6rem; font-size: .86rem; color: var(--ink-soft); align-items: baseline; }
.pd-tabs { margin-top: 2rem; border-top: 1px solid var(--line); }
.tab-head { display: flex; gap: 1.6rem; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tab-head button {
  padding: .9rem .2rem; font-size: .92rem; font-weight: 600; color: var(--muted);
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap;
}
.tab-head button.active { color: var(--ink); border-color: var(--gold); }
.tab-pane { padding: 1.4rem 0; color: var(--ink-soft); font-size: .95rem; max-width: 70ch; }
.review-item { border-bottom: 1px solid var(--line); padding: 1.1rem 0; }
.review-item .r-head { display: flex; justify-content: space-between; font-size: .85rem; margin-bottom: .3rem; }
.review-form { margin-top: 1.6rem; background: var(--paper); border: 1px solid var(--line); padding: 1.4rem; border-radius: var(--radius); }

/* ---------- Cart ---------- */
.cart-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.4rem; align-items: start; }
.cart-item {
  display: grid; grid-template-columns: 92px 1fr auto; gap: 1.1rem;
  padding: 1.2rem 0; border-bottom: 1px solid var(--line); align-items: center;
}
.cart-item .ci-img { width: 92px; aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--ivory-2); position: relative; }
.cart-item .ci-img svg { width: 100%; height: 100%; }
.ci-name { font-weight: 600; font-size: .98rem; }
.ci-opts { font-size: .8rem; color: var(--muted); margin: .2rem 0 .6rem; }
.ci-controls { display: flex; align-items: center; gap: .9rem; }
.ci-controls .qty-box button { width: 34px; }
.ci-controls .qty-box input { width: 40px; font-size: .88rem; }
.ci-right { text-align: end; display: flex; flex-direction: column; gap: .5rem; align-items: end; }
.ci-remove { font-size: .78rem; color: var(--muted); text-decoration: underline; }
.ci-remove:hover { color: var(--danger); }
.summary-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; position: sticky; top: 90px;
}
.summary-card h3 { font-size: 1.15rem; margin-bottom: 1.1rem; }
.sum-row { display: flex; justify-content: space-between; padding: .45rem 0; font-size: .92rem; }
.sum-row.total { border-top: 1px solid var(--line); margin-top: .6rem; padding-top: .9rem; font-size: 1.12rem; font-weight: 700; }
.sum-row .free { color: var(--success); font-weight: 600; }
.coupon-row { display: flex; gap: .5rem; margin: .9rem 0; }
.coupon-row input { flex: 1; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--ivory); font-size: .88rem; }
.coupon-msg { font-size: .8rem; margin-top: -.3rem; margin-bottom: .5rem; min-height: 1em; }
.coupon-msg.ok { color: var(--success); } .coupon-msg.err { color: var(--danger); }
.ship-hint { font-size: .8rem; color: var(--gold-deep); background: #faf3e6; border: 1px dashed var(--gold); padding: .55rem .8rem; border-radius: var(--radius); margin: .8rem 0; }

/* ---------- Forms & checkout ---------- */
.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.7rem; margin-bottom: 1.4rem; }
.form-card h3 { font-size: 1.05rem; margin-bottom: 1.2rem; display: flex; align-items: center; gap: .6rem; }
.form-card h3 .step-num {
  width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: var(--ivory);
  display: grid; place-items: center; font-size: .78rem; font-family: var(--font-body); font-weight: 700;
}
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
.f-field { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1rem; }
.f-row .f-field { margin-bottom: 0; }
.f-field label { font-size: .82rem; font-weight: 600; color: var(--ink-soft); }
.f-field input, .f-field select, .f-field textarea {
  padding: .75rem .9rem; border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--ivory); font-size: .95rem; width: 100%;
}
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: 1.5px solid var(--gold); }
.f-field.invalid input, .f-field.invalid select, .f-field.invalid textarea { border-color: var(--danger); }
.f-err { color: var(--danger); font-size: .76rem; min-height: 1em; }
.check-row { display: flex; align-items: center; gap: .55rem; font-size: .88rem; margin: .4rem 0; cursor: pointer; }
.check-row input { accent-color: var(--gold-deep); width: 15px; height: 15px; }
.pay-opt {
  display: flex; gap: .9rem; align-items: center; border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1rem 1.1rem; margin-bottom: .7rem; cursor: pointer;
  background: var(--ivory); transition: all .2s;
}
.pay-opt.active { border-color: var(--gold); background: var(--paper); }
.pay-opt.disabled { opacity: .5; cursor: not-allowed; }
.pay-opt input { accent-color: var(--gold-deep); }
.pay-opt .pay-ico { font-size: 1.4rem; }
.pay-opt b { display: block; font-size: .94rem; }
.pay-opt small { color: var(--muted); font-size: .8rem; }
.checkout-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 2.4rem; align-items: start; }
.mini-item { display: flex; gap: .8rem; padding: .7rem 0; border-bottom: 1px solid var(--line); align-items: center; }
.mini-item .m-img { width: 54px; aspect-ratio: 3/4; border-radius: 3px; overflow: hidden; position: relative; flex-shrink: 0; background: var(--ivory-2); }
.mini-item .m-img svg { width: 100%; height: 100%; }
.mini-item .m-qty {
  position: absolute; top: 2px; inset-inline-end: 2px; width: 20px; height: 20px;
  background: var(--ink); color: #fff; border-radius: 50%; font-size: .65rem;
  display: grid; place-items: center;
}
.mini-item .m-name { font-size: .85rem; font-weight: 600; flex: 1; }
.mini-item .m-name small { display: block; font-weight: 400; color: var(--muted); font-size: .74rem; }
.mini-item .m-price { font-size: .85rem; font-weight: 600; white-space: nowrap; }

/* ---------- Confirmation ---------- */
.confirm-box { max-width: 640px; margin: 3rem auto; text-align: center; }
.confirm-ico {
  width: 84px; height: 84px; border-radius: 50%; background: var(--success); color: #fff;
  display: grid; place-items: center; font-size: 2.2rem; margin: 0 auto 1.4rem;
}
.order-num-chip {
  display: inline-block; background: var(--paper); border: 1.5px dashed var(--gold);
  padding: .7rem 1.6rem; border-radius: var(--radius); font-size: 1.15rem; font-weight: 700;
  letter-spacing: .12em; margin: 1.2rem 0;
}
.confirm-actions { display: flex; gap: .8rem; justify-content: center; margin-top: 1.4rem; flex-wrap: wrap; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 460px; margin: 2.5rem auto; }
.auth-tabs { display: flex; border: 1.5px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 1.6rem; }
.auth-tabs button { flex: 1; padding: .8rem; font-weight: 600; font-size: .92rem; background: var(--paper); color: var(--muted); }
.auth-tabs button.active { background: var(--ink); color: var(--ivory); }
.auth-note { font-size: .82rem; color: var(--muted); text-align: center; margin-top: 1rem; }

/* ---------- Account ---------- */
.acc-layout { display: grid; grid-template-columns: 230px 1fr; gap: 2.4rem; align-items: start; }
.acc-nav { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: sticky; top: 90px; }
.acc-nav button, .acc-nav a { display: block; width: 100%; text-align: start; padding: .85rem 1.2rem; font-size: .92rem; border-bottom: 1px solid var(--line); }
.acc-nav button.active { background: var(--ivory-2); font-weight: 700; border-inline-start: 3px solid var(--gold); }
.acc-nav button:hover { background: var(--ivory-2); }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); padding: 1.2rem 1.4rem; margin-bottom: 1rem; }
.order-card .o-head { display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: .6rem; }
.order-card .o-num { font-weight: 700; letter-spacing: .08em; }
.status-pill { font-size: .72rem; font-weight: 700; padding: .25rem .7rem; border-radius: 999px; }
.status-pill.pending { background: #f3e9d2; color: #8a6c42; }
.status-pill.confirmed { background: #dde8f0; color: #33566e; }
.status-pill.shipped { background: #e3ddf0; color: #54457e; }
.status-pill.out { background: #f0e2d4; color: #8a5a2e; }
.status-pill.delivered { background: #dcecdf; color: #3f6b4f; }
.status-pill.cancelled { background: #f0dcdc; color: #a63a3a; }

/* ---------- Tracking ---------- */
.track-wrap { max-width: 620px; margin-inline: auto; }
.timeline { margin-top: 2rem; position: relative; padding-inline-start: 2rem; }
.timeline::before { content: ''; position: absolute; inset-inline-start: 9px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-step { position: relative; padding-bottom: 1.6rem; }
.tl-step::before {
  content: ''; position: absolute; inset-inline-start: -2rem; top: 4px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--paper);
  border: 2px solid var(--line);
}
.tl-step.done::before { background: var(--success); border-color: var(--success); }
.tl-step.current::before { background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0 5px rgba(169,136,90,.2); }
.tl-step b { display: block; font-size: .95rem; }
.tl-step span { font-size: .8rem; color: var(--muted); }

/* ---------- Policy pages ---------- */
.prose { max-width: 780px; }
.prose h2 { font-size: 1.4rem; margin: 2rem 0 .8rem; }
.prose h3 { font-size: 1.1rem; margin: 1.5rem 0 .6rem; }
.prose p { margin-bottom: .9rem; color: var(--ink-soft); }
.prose ul { padding-inline-start: 1.3rem; margin-bottom: 1rem; }
.prose li { list-style: disc; margin-bottom: .4rem; color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 1rem 0; font-size: .9rem; }
.prose th, .prose td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: start; }
.prose th { background: var(--ivory-2); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-item { border-bottom: 1px solid var(--line); }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center;
  padding: 1.2rem .2rem; font-size: 1.02rem; font-weight: 600; text-align: start; gap: 1rem;
}
.faq-q .fx { font-size: 1.3rem; color: var(--gold-deep); transition: transform .25s; flex-shrink: 0; }
.faq-item.open .fx { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s; }
.faq-a p { padding: 0 .2rem 1.3rem; color: var(--ink-soft); max-width: 68ch; }

/* ---------- Modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(22,22,22,.55); z-index: 100;
  display: grid; place-items: center; padding: 1.2rem;
  opacity: 0; pointer-events: none; transition: opacity .25s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: var(--paper); border-radius: var(--radius); max-width: 780px; width: 100%;
  max-height: 90vh; overflow-y: auto; transform: translateY(16px); transition: transform .3s;
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal { transform: none; }
.modal-close {
  position: sticky; top: .8rem; margin-inline-start: auto; margin-inline-end: .8rem;
  width: 36px; height: 36px; border-radius: 50%; background: var(--ivory);
  display: grid; place-items: center; font-size: 1.1rem; z-index: 2;
}
.qv-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.6rem; padding: 0 1.8rem 1.8rem; }
.qv-img { aspect-ratio: 3/4; border-radius: var(--radius); overflow: hidden; background: var(--ivory-2); position: relative; }
.size-table { width: 100%; border-collapse: collapse; font-size: .9rem; margin: .5rem 0 1.5rem; }
.size-table th, .size-table td { border: 1px solid var(--line); padding: .55rem .8rem; text-align: center; }
.size-table th { background: var(--ivory-2); }

/* ---------- Toast ---------- */
#toast-root { position: fixed; bottom: 1.4rem; inset-inline-start: 1.4rem; z-index: 200; display: flex; flex-direction: column; gap: .5rem; }
.toast {
  background: var(--ink); color: var(--ivory); padding: .8rem 1.3rem; border-radius: var(--radius);
  font-size: .88rem; box-shadow: var(--shadow-lg); display: flex; gap: .6rem; align-items: center;
  animation: toastIn .3s cubic-bezier(.2,.9,.3,1.2);
}
.toast.err { background: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Admin ---------- */
.admin-login { max-width: 380px; margin: 4rem auto; }
.admin-tabs { display: flex; gap: .4rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.admin-tabs button { padding: .55rem 1.1rem; border: 1px solid var(--line); border-radius: var(--radius); font-size: .88rem; background: var(--paper); }
.admin-tabs button.active { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.8rem; }
.stat-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.2rem; }
.stat-card b { font-size: 1.5rem; font-family: var(--font-display); display: block; }
.stat-card span { font-size: .8rem; color: var(--muted); }
.admin-table { width: 100%; border-collapse: collapse; background: var(--paper); font-size: .86rem; border: 1px solid var(--line); }
.admin-table th, .admin-table td { border: 1px solid var(--line); padding: .6rem .8rem; text-align: start; }
.admin-table th { background: var(--ivory-2); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.admin-table select { padding: .3rem .5rem; border: 1px solid var(--line); border-radius: 3px; background: var(--ivory); }
.admin-table .btn { padding: .35rem .7rem; font-size: .75rem; }
.admin-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.admin-form-grid .f-field.full { grid-column: 1 / -1; }

/* ---------- Utilities ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; }
.muted { color: var(--muted); }
.divider { height: 1px; background: var(--line); margin: 2rem 0; border: 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .why-grid, .testi-grid { grid-template-columns: repeat(2, 1fr); }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .main-nav { display: none; }
  .p-actions { opacity: 1; transform: none; }
  .burger { display: block; }
  .header-actions { margin-inline-start: auto; }
  .hero { grid-template-columns: 1fr; min-height: unset; }
  .hero-art { min-height: 300px; order: -1; }
  .pd-layout, .cart-layout, .checkout-layout, .grid-2 { grid-template-columns: 1fr; }
  .pd-gallery, .summary-card, .filters, .acc-nav { position: static; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { display: none; }
  .filters.open { display: block; }
  .filter-toggle { display: inline-flex; }
  .acc-layout { grid-template-columns: 1fr; }
  .acc-nav { display: flex; overflow-x: auto; }
  .acc-nav button { border-bottom: 0; border-inline-end: 1px solid var(--line); white-space: nowrap; }
  .offer-band { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .qv-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.8rem; }
}
@media (max-width: 560px) {
  body { font-size: 15px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem .8rem; }
  .cat-grid { grid-template-columns: 1fr 1fr; }
  .why-grid, .testi-grid { grid-template-columns: 1fr; }
  .insta-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .f-row, .admin-form-grid { grid-template-columns: 1fr; }
  .pd-ctas { grid-template-columns: 1fr auto; }
  .pd-ctas .btn-primary { grid-column: 1 / -1; order: -1; }
  .cart-item { grid-template-columns: 72px 1fr; }
  .cart-item .ci-img { width: 72px; }
  .ci-right { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .news-form { flex-direction: column; }
  .hero-copy { padding: 2rem 5%; }
  .btn-lg { width: 100%; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
}
