/* ── SABLE HOMME — Brand CSS ── */
:root {
  --ivory:     #EAE4D6;
  --paper:     #F4F1E8;
  --porcelain: #F6F2E9;
  --navy:      #25324C;
  --midnight:  #161D2C;
  --sand:      #C9B79B;
  --sage:      #8D9981;
  --line:      #D8D0C0;
  --line-dark: #3A465E;
  --body:      #45506A;
  --dim:       #C9CCD6;
  --muted:     #9AA4B6;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--body);
  font-family: 'Outfit', system-ui, sans-serif;
  font-size: clamp(15px, 1.1vw, 17px);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1,h2,h3,h4,h5,h6 {
  font-family: 'Italiana', Georgia, serif;
  line-height: 1.08;
  color: var(--navy);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; }
input, textarea, select { font-family: inherit; }

/* ── Layout ── */
.site-container {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-inline: clamp(20px, 7vw, 100px);
}

.section-y  { padding-block: clamp(72px, 8vw, 120px); }
.section-ys { padding-block: clamp(40px, 5vw, 72px); }

/* ── Type utilities ── */
.label {
  font-family: 'Outfit', sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.display { font-family: 'Italiana', Georgia, serif; }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 11px; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: .85rem 2rem;
  border: none; transition: background .2s, color .2s, border-color .2s;
  cursor: pointer;
}
.btn:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }
.btn-primary   { background: var(--navy); color: var(--ivory); }
.btn-primary:hover { background: var(--midnight); }
.btn-sand      { background: var(--sand); color: var(--navy); }
.btn-sand:hover { background: #B8A48A; }
.btn-outline-d { background: transparent; border: 1px solid var(--navy); color: var(--navy); }
.btn-outline-d:hover { background: var(--navy); color: var(--ivory); }
.btn-outline-l { background: transparent; border: 1px solid var(--ivory); color: var(--ivory); }
.btn-outline-l:hover { background: var(--ivory); color: var(--navy); }
.btn-sm { padding: .65rem 1.5rem; }
.btn-full { width: 100%; }

/* ── Header ── */
#site-header {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}

.announcement-bar {
  background: var(--navy);
  color: var(--dim);
  padding: .6rem 1rem;
  text-align: center;
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  overflow: hidden;
  transition: max-height .3s ease, opacity .3s ease;
  max-height: 40px;
}
.announcement-bar.hidden { max-height: 0; opacity: 0; padding: 0; }

.nav-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0;
  transition: padding .3s;
}
.nav-bar.condensed { padding: .6rem 0; }

.nav-left   { display: flex; align-items: center; gap: 2rem; }
.nav-center { position: absolute; left: 50%; transform: translateX(-50%); }
.nav-right  { display: flex; align-items: center; gap: 1rem; }

.wordmark {
  font-family: 'Italiana', Georgia, serif;
  font-size: clamp(16px, 2vw, 20px);
  letter-spacing: 0.18em;
  color: var(--navy);
  white-space: nowrap;
}
.wordmark:hover { color: var(--body); }

.nav-link {
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); transition: color .2s;
}
.nav-link:hover { color: var(--body); }

.icon-btn {
  background: none; border: none; padding: .25rem;
  color: var(--navy); transition: color .2s;
  display: flex; align-items: center; position: relative;
}
.icon-btn:hover { color: var(--body); }
.icon-btn:focus-visible { outline: 2px solid var(--sand); outline-offset: 2px; }

.cart-badge {
  position: absolute; top: -4px; right: -6px;
  width: 16px; height: 16px;
  background: var(--navy); color: var(--ivory);
  border-radius: 50%; font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}

/* ── Mega Menu ── */
#mega-menu {
  position: absolute; left: 0; right: 0; z-index: 90;
  background: var(--paper); border-top: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(13,18,30,.14);
  display: none;
}
#mega-menu.open { display: block; }

.mega-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 2rem;
  padding: 2.5rem 0;
}
.mega-col-heading {
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--sage); margin-bottom: 1rem;
}
.mega-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.mega-col ul a { font-size: 13px; color: var(--body); transition: color .2s; }
.mega-col ul a:hover { color: var(--navy); }

.mega-featured { display: flex; flex-direction: column; }
.mega-featured .img-block { aspect-ratio: 3/4; background: var(--sand); margin-bottom: .75rem; overflow: hidden; }
.mega-featured:hover .img-block img { transform: scale(1.04); }
.mega-featured .img-block { transition: transform .5s; }

/* ── Mobile Nav ── */
#mobile-nav {
  position: fixed; inset: 0; z-index: 200;
  background: var(--navy);
  display: flex; flex-direction: column;
  transform: translateX(-100%);
  transition: transform .3s ease;
}
#mobile-nav.open { transform: translateX(0); }

.mobile-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--line-dark);
}
.mobile-nav-body { flex: 1; overflow-y: auto; padding: 1.5rem 1.25rem; }
.mobile-nav-link {
  display: block; padding: 1rem 0;
  border-bottom: 1px solid var(--line-dark);
  font-family: 'Italiana', Georgia, serif;
  font-size: 24px; color: var(--ivory);
  transition: color .2s;
}
.mobile-nav-link:hover { color: var(--sand); }
.mobile-nav-footer {
  border-top: 1px solid var(--line-dark);
  padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1.5rem;
}
.mobile-nav-footer a, .mobile-nav-footer button {
  font-size: 12px; color: var(--dim);
  background: none; border: none; padding: 0;
  transition: color .2s;
}
.mobile-nav-footer a:hover, .mobile-nav-footer button:hover { color: var(--ivory); }

/* Mobile sub accordion */
.mobile-acc-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--line-dark);
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: 'Italiana', Georgia, serif; font-size: 24px; color: var(--ivory);
}
.mobile-acc-body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.mobile-acc-body.open { max-height: 600px; }
.mobile-acc-body a {
  display: block; padding: .5rem 1rem; font-size: 13px; color: var(--dim);
  transition: color .2s;
}
.mobile-acc-body a:hover { color: var(--ivory); }

/* ── Overlay dim ── */
.overlay-dim {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(37,50,76,.2);
  display: none;
}
.overlay-dim.open { display: block; }

/* ── Search Overlay ── */
#search-overlay {
  position: fixed; inset-x: 0; top: 0; z-index: 150;
  background: var(--paper); border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 36px rgba(13,18,30,.14);
  display: none; padding: 1.5rem 0;
}
#search-overlay.open { display: block; }
.search-input-row {
  display: flex; align-items: center; gap: 1rem;
  border-bottom: 1px solid var(--line); padding-bottom: 1rem;
}
.search-input-row input {
  flex: 1; background: transparent; border: none; outline: none;
  font-size: clamp(15px,1.1vw,17px); color: var(--navy);
}
.search-input-row input::placeholder { color: var(--muted); }
.search-results {
  display: grid; grid-template-columns: repeat(6,1fr); gap: 1rem;
  padding-top: 1.5rem;
}
.search-result-card { cursor: pointer; }
.search-result-card:hover .img-block { transform: scale(1.03); }
.search-result-card p { font-size: 12px; }

/* ── Mini Cart Drawer ── */
#mini-cart {
  position: fixed; right: 0; top: 0; bottom: 0; z-index: 160;
  width: min(380px, 100vw);
  background: var(--paper);
  box-shadow: 0 0 36px rgba(13,18,30,.14);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform .3s ease;
}
#mini-cart.open { transform: translateX(0); }

.mini-cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem; border-bottom: 1px solid var(--line);
}
.mini-cart-items { flex: 1; overflow-y: auto; padding: 0 1.5rem; }
.mini-cart-footer { border-top: 1px solid var(--line); padding: 1.25rem 1.5rem; }

/* ── Image block (placeholder) ── */
.img-block {
  width: 100%; background: var(--sand);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; transition: transform .5s ease;
}
.img-block span {
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(37,50,76,.3);
}
.ratio-3-4  { aspect-ratio: 3/4; }
.ratio-1-1  { aspect-ratio: 1/1; }
.ratio-3-2  { aspect-ratio: 3/2; }
.ratio-16-9 { aspect-ratio: 16/9; }

/* ── Product card ── */
.product-card { display: block; }
.product-card .img-wrap { position: relative; overflow: hidden; margin-bottom: .75rem; }
.product-card .img-block { transition: transform .5s ease; }
.product-card:hover .img-block { transform: scale(1.03); }
.product-card .quick-add {
  position: absolute; inset-x: 0; bottom: 0;
  background: rgba(37,50,76,.9); color: var(--ivory);
  text-align: center; padding: .75rem;
  font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  transform: translateY(100%); transition: transform .3s;
}
.product-card:hover .quick-add { transform: translateY(0); }
.product-card .new-tag {
  position: absolute; top: .75rem; left: .75rem;
  background: var(--navy); color: var(--ivory);
  font-size: 9px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  padding: .25rem .5rem;
}
.product-card h3 { font-size: clamp(20px,2vw,24px); line-height: 1.15; color: var(--navy); }
.product-card .color-name { font-size: 12px; color: var(--muted); margin: .15rem 0; }
.product-card .price     { font-size: 13px; color: var(--body); font-weight: 500; }

/* ── Product Grid ── */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem 1.5rem;
}
@media (min-width: 768px)  { .product-grid.cols-3 { grid-template-columns: repeat(3,1fr); } }
@media (min-width: 1024px) { .product-grid.cols-4 { grid-template-columns: repeat(4,1fr); } }

/* ── Section Heading ── */
.section-heading { }
.section-heading .kicker { font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sage); margin-bottom: .75rem; }
.section-heading h2 { font-family: 'Italiana', Georgia, serif; font-size: clamp(28px,3.5vw,46px); color: var(--navy); line-height: 1.1; }
.section-heading.center { text-align: center; }
.section-heading.light h2 { color: var(--ivory); }

/* ── Accordion ── */
.accordion-item { border-top: 1px solid var(--line); }
.accordion-btn {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; background: none; border: none; text-align: left;
  font-size: 11px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--navy); cursor: pointer;
}
.accordion-btn:focus-visible { outline: 2px solid var(--sand); }
.accordion-body { overflow: hidden; max-height: 0; transition: max-height .3s ease; }
.accordion-body.open { max-height: 400px; }
.accordion-body-inner { padding-bottom: 1.25rem; font-size: 14px; color: var(--body); line-height: 1.65; }

/* ── Cart Line Item ── */
.cart-line {
  display: flex; gap: 1rem; padding: 1.25rem 0;
  border-bottom: 1px solid var(--line);
}
.cart-line .thumb { flex-shrink: 0; width: 80px; }
.cart-line .info  { flex: 1; display: flex; flex-direction: column; gap: .25rem; }
.cart-line .name  { font-family: 'Italiana', serif; font-size: 20px; color: var(--navy); line-height: 1.15; }
.cart-line .meta  { font-size: 12px; color: var(--muted); }
.cart-line .price { font-size: 13px; color: var(--navy); font-weight: 500; }

/* ── Quantity Stepper ── */
.qty-stepper {
  display: flex; align-items: center; border: 1px solid var(--line);
}
.qty-stepper button {
  width: 40px; height: 40px; background: none; border: none;
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); transition: background .2s, color .2s;
}
.qty-stepper button:hover { background: var(--navy); color: var(--ivory); }
.qty-stepper .qty-val {
  min-width: 40px; height: 40px; display: flex; align-items: center; justify-content: center;
  font-size: 11px; font-weight: 500; letter-spacing: 0.1em;
  border-left: 1px solid var(--line); border-right: 1px solid var(--line);
}

/* ── Size chips ── */
.size-chip {
  height: 40px; min-width: 44px; padding: 0 .75rem;
  border: 1px solid var(--line); background: none;
  font-size: 10px; font-weight: 500; letter-spacing: 0.1em;
  color: var(--navy); cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.size-chip:hover  { border-color: var(--navy); }
.size-chip.active { background: var(--navy); color: var(--ivory); border-color: var(--navy); }

/* ── Color swatch ── */
.color-swatch {
  width: 28px; height: 28px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: transform .2s, border-color .2s;
}
.color-swatch:hover  { border-color: var(--body); }
.color-swatch.active { border-color: var(--navy); transform: scale(1.1); }

/* ── Reassurance band ── */
.reassurance-grid {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem;
}
@media (min-width: 1024px) { .reassurance-grid { grid-template-columns: repeat(4,1fr); } }

/* ── Forms ── */
.form-field { display: flex; flex-direction: column; gap: .35rem; }
.form-label { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); }
.form-input {
  border: 1px solid var(--line); background: transparent;
  padding: .65rem .75rem; font-size: 13px; color: var(--navy);
  outline: none; transition: border-color .2s;
}
.form-input:focus { border-color: var(--navy); }
.form-input::placeholder { color: var(--muted); }
.form-error { font-size: 12px; color: #dc2626; }

/* ── Footer ── */
#site-footer { background: var(--navy); color: var(--dim); }
.footer-inner { padding: 4rem 0 2rem; }
.footer-newsletter-input {
  flex: 1; background: transparent; border: none; border-bottom: 1px solid var(--line-dark);
  padding-bottom: .5rem; font-size: 13px; color: var(--ivory); outline: none;
}
.footer-newsletter-input::placeholder { color: var(--muted); }
.footer-cols {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 2rem;
  margin: 3rem 0;
}
@media (min-width: 768px) { .footer-cols { grid-template-columns: repeat(4,1fr); } }
.footer-col-heading { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ivory); margin-bottom: 1rem; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: .5rem; }
.footer-col ul a { font-size: 12px; color: var(--muted); transition: color .2s; }
.footer-col ul a:hover { color: var(--dim); }
.footer-brand { display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 2.5rem 0; border-top: 1px solid var(--line-dark); }
.footer-tagline { font-size: 12px; color: var(--muted); letter-spacing: .1em; }
.footer-legal {
  border-top: 1px solid var(--line-dark);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 1rem; padding: 1rem 0;
}
.footer-legal span, .footer-legal a { font-size: 11px; color: var(--muted); transition: color .2s; }
.footer-legal a:hover { color: var(--dim); }
.footer-legal-links { display: flex; gap: 1rem; }

/* ── PLP toolbar ── */
.plp-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 0; border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}
.plp-body { display: flex; gap: 2.5rem; }
.filter-sidebar { width: 200px; flex-shrink: 0; }
@media (max-width: 1023px) { .filter-sidebar { display: none; } }
.filter-group { border-top: 1px solid var(--line); padding: 1.25rem 0; }
.filter-group-title { font-size: 10px; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--navy); margin-bottom: .75rem; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.filter-chip {
  height: 32px; min-width: 32px; padding: 0 .5rem;
  border: 1px solid var(--line); background: none;
  font-size: 10px; color: var(--body); cursor: pointer;
  transition: all .2s;
}
.filter-chip:hover  { border-color: var(--navy); }
.filter-chip.active { background: var(--navy); color: var(--ivory); border-color: var(--navy); }
.filter-swatch {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid transparent; cursor: pointer;
  transition: all .2s;
}
.filter-swatch:hover  { border-color: var(--body); }
.filter-swatch.active { border-color: var(--navy); transform: scale(1.1); }
.filter-checkbox { display: flex; align-items: center; gap: .5rem; cursor: pointer; }
.filter-checkbox input { accent-color: var(--navy); }
.filter-checkbox span { font-size: 13px; color: var(--body); }

.sort-select {
  background: transparent; border: none; outline: none;
  font-size: 12px; color: var(--body); cursor: pointer;
  font-family: inherit;
}

/* ── Active filter tags ── */
.active-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 1px solid var(--line); padding: .25rem .5rem;
  font-size: 12px; color: var(--body);
}
.active-tag button { background: none; border: none; color: var(--muted); display: flex; padding: 0; }
.active-tag button:hover { color: var(--navy); }

/* ── PDP ── */
.pdp-grid { display: grid; gap: 2.5rem; }
@media (min-width: 1024px) { .pdp-grid { grid-template-columns: 1fr 440px; gap: 4rem; } }
.gallery-main { flex: 1; }
.gallery-thumbs { display: flex; gap: .5rem; margin-top: .75rem; }
.gallery-thumb { flex: 1; cursor: pointer; border: 1px solid transparent; }
.gallery-thumb.active { border-color: var(--navy); }

.sticky-add-btn {
  display: none;
  position: fixed; bottom: 0; left: 0; right: 0; z-index: 50;
  background: var(--paper); border-top: 1px solid var(--line); padding: 1rem;
}
@media (max-width: 1023px) { .sticky-add-btn { display: block; } }

/* ── Order summary ── */
.order-summary { border: 1px solid var(--line); padding: 1.5rem; }
.summary-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; }
.summary-row span { font-size: 13px; color: var(--body); }
.summary-row.total span { font-size: 14px; color: var(--navy); font-weight: 600; }

/* ── Breadcrumb ── */
.breadcrumb { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1.5rem; }
.breadcrumb a { font-size: 12px; color: var(--muted); transition: color .2s; }
.breadcrumb a:hover { color: var(--body); }
.breadcrumb span { font-size: 12px; color: var(--line); }
.breadcrumb .current { font-size: 12px; color: var(--body); }

/* ── Responsive ── */
@media (max-width: 1023px) {
  .nav-left { display: none; }
  .hamburger { display: flex !important; }
}
.hamburger { display: none; }

@media (max-width: 639px) {
  .search-results { grid-template-columns: repeat(2,1fr); }
}

/* ── Toast ── */
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%) translateY(4rem);
  background: var(--navy); color: var(--ivory);
  padding: .75rem 1.5rem; font-size: 12px; font-weight: 500; letter-spacing: .08em;
  z-index: 300; opacity: 0; transition: transform .3s, opacity .3s;
  pointer-events: none; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ── Scroll lock ── */
.scroll-lock { overflow: hidden; }

/* ── Hairline ── */
.border-h   { border-color: var(--line); }
.border-hd  { border-color: var(--line-dark); }

/* ── Text colors ── */
.text-navy    { color: var(--navy); }
.text-ivory   { color: var(--ivory); }
.text-muted   { color: var(--muted); }
.text-dim     { color: var(--dim); }
.text-sage    { color: var(--sage); }
.text-body-c  { color: var(--body); }
.text-sand    { color: var(--sand); }

/* ── Backgrounds ── */
.bg-navy      { background: var(--navy); }
.bg-paper     { background: var(--paper); }
.bg-ivory     { background: var(--ivory); }
.bg-sand      { background: var(--sand); }
.bg-porcelain { background: var(--porcelain); }

/* ── Responsive grid helpers ── */
@media (max-width: 767px) {
  .editorial-grid { grid-template-columns: 1fr !important; }
  .two-col-grid   { grid-template-columns: 1fr !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
