/* =====================================================================
   AVELORA - Intimates Boutique
   Design system: "Boudoir Luxe"
   Palette: warm ivory canvas, deep wine primary, blush tints, gold accent
   Type: Fraunces (display serif) + Jost (geometric fashion sans)
   ===================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;1,9..144,400&family=Jost:wght@300;400;500;600&display=swap');

/* ------------------------------------------------------------------ */
/* Design tokens                                                       */
/* ------------------------------------------------------------------ */
:root {
  /* Surfaces */
  --cream:        #F7F0E9;   /* page background */
  --cream-deep:   #EFE5DA;   /* alt section bg */
  --ivory:        #FFFDFB;   /* cards / surface */
  --blush:        #F2DAD3;   /* soft tint */
  --blush-soft:   #FAEAE5;   /* faint tint */

  /* Ink */
  --ink:          #2A211D;   /* primary text (warm near-black) */
  --ink-soft:     #6E5F58;   /* secondary text */
  --ink-faint:    #A1928B;   /* tertiary / placeholder */

  /* Brand */
  --wine:         #6E2A3C;   /* primary accent / actions */
  --wine-deep:    #561F2E;   /* hover */
  --wine-soft:    #9A5567;   /* light wine */
  --rose:         #C98B8B;   /* decorative rose */
  --gold:         #B0894F;   /* rare luxe accent */
  --gold-soft:    #CDB389;

  /* Functional (used only for true status) */
  --success:      #4F7A52;
  --danger:       #B23B3B;
  --warning:      #B07B2E;

  /* Lines */
  --line:         #E3D5C9;
  --line-soft:    #EEE3D8;

  /* Radius */
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-pill: 999px;

  /* Shadow (kept subtle, blur <= 16) */
  --shadow-sm: 0 1px 3px rgba(42, 33, 29, 0.06);
  --shadow-md: 0 6px 16px rgba(42, 33, 29, 0.08);
  --shadow-lg: 0 14px 30px rgba(42, 33, 29, 0.10);

  /* Spacing rhythm */
  --gutter: clamp(1.1rem, 4vw, 2.5rem);
  --section-y: clamp(3.5rem, 8vw, 7rem);

  /* Type */
  --font-display: 'Fraunces', Georgia, serif;
  --font-body: 'Jost', 'Helvetica Neue', Arial, sans-serif;

  --header-h: 76px;
}

/* ------------------------------------------------------------------ */
/* Reset & base                                                        */
/* ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input, select, textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }

h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 500; line-height: 1.1; letter-spacing: -0.01em; color: var(--ink); }

.eyebrow {
  font-family: var(--font-body);
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--wine);
}
.eyebrow.muted { color: var(--ink-faint); }

/* ------------------------------------------------------------------ */
/* Layout helpers                                                      */
/* ------------------------------------------------------------------ */
.container { width: 100%; max-width: 1240px; margin-inline: auto; padding-inline: var(--gutter); }
.container-wide { max-width: 1440px; }
.section { padding-block: var(--section-y); }
.section-head { max-width: 640px; margin-bottom: 2.6rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(1.9rem, 4.2vw, 3rem); margin-top: 0.7rem; }
.section-head p { color: var(--ink-soft); margin-top: 0.9rem; font-size: 1.02rem; }
.muted { color: var(--ink-soft); }
.center { text-align: center; }
.flow > * + * { margin-top: 1rem; }

/* ------------------------------------------------------------------ */
/* Buttons                                                             */
/* ------------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.55rem;
  font-family: var(--font-body); font-weight: 500; font-size: 0.86rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 0.95rem 1.8rem; border-radius: var(--r-pill);
  min-height: 48px; border: 1px solid transparent;
  transition: transform .18s ease, background .2s ease, color .2s ease, box-shadow .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }
.btn-primary { background: var(--wine); color: #fff; }
.btn-primary:hover { background: var(--wine-deep); box-shadow: var(--shadow-md); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { background: transparent; color: var(--ink); padding-inline: 0.4rem; }
.btn-ghost:hover { color: var(--wine); }
.btn-light { background: var(--ivory); color: var(--ink); border-color: var(--line); }
.btn-light:hover { border-color: var(--ink); }
.btn-block { width: 100%; }
.btn-sm { padding: 0.6rem 1.1rem; min-height: 40px; font-size: 0.76rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn .ic { width: 18px; height: 18px; }

.link-underline {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-weight: 500; letter-spacing: 0.04em; font-size: 0.9rem;
  border-bottom: 1px solid currentColor; padding-bottom: 2px; color: var(--ink);
  transition: color .2s ease, gap .2s ease;
}
.link-underline:hover { color: var(--wine); gap: 0.7rem; }

/* ------------------------------------------------------------------ */
/* Badges & chips                                                      */
/* ------------------------------------------------------------------ */
.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.66rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 0.34rem 0.7rem; border-radius: var(--r-pill); line-height: 1;
}
.badge-new   { background: var(--ink); color: var(--cream); }
.badge-sale  { background: var(--wine); color: #fff; }
.badge-best  { background: var(--blush); color: var(--wine); }

.chip {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.5rem 0.95rem; border-radius: var(--r-pill);
  border: 1px solid var(--line); background: var(--ivory);
  font-size: 0.82rem; letter-spacing: 0.02em; color: var(--ink-soft);
  transition: all .18s ease;
}
.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip[aria-pressed="true"], .chip.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }

/* ------------------------------------------------------------------ */
/* Header                                                              */
/* ------------------------------------------------------------------ */
.topbar {
  background: var(--wine); color: var(--blush-soft);
  text-align: center; font-size: 0.74rem; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 0.55rem 1rem;
}
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav {
  height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.brand { font-family: var(--font-display); font-weight: 600; font-size: 1.55rem; letter-spacing: 0.18em; color: var(--ink); }
.brand span { color: var(--wine); }
.nav-links { display: flex; align-items: center; gap: 1.8rem; }
.nav-links a {
  font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500;
  color: var(--ink-soft); position: relative; padding-block: 0.3rem;
  transition: color .2s ease;
}
.nav-links a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 1.5px; width: 0; background: var(--wine);
  transition: width .25s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-actions { display: flex; align-items: center; gap: 0.4rem; }
.icon-btn {
  position: relative; width: 44px; height: 44px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink);
  transition: background .2s ease;
}
.icon-btn:hover { background: var(--blush-soft); }
.icon-btn .ic { width: 21px; height: 21px; }
.cart-count {
  position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--wine); color: #fff; border-radius: var(--r-pill);
  font-size: 0.66rem; font-weight: 600; display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.cart-count:empty, .cart-count[data-count="0"] { display: none; }
.hamburger { display: none; }

/* ------------------------------------------------------------------ */
/* Mobile menu                                                         */
/* ------------------------------------------------------------------ */
.mobile-menu {
  position: fixed; inset: 0; z-index: 80; background: var(--cream);
  transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  display: flex; flex-direction: column; padding: 1.2rem var(--gutter) 2rem;
}
.mobile-menu.open { transform: translateX(0); visibility: visible; }
.mobile-menu-head { display: flex; align-items: center; justify-content: space-between; height: var(--header-h); }
.mobile-menu nav { margin-top: 2rem; display: flex; flex-direction: column; gap: 0.4rem; }
.mobile-menu nav a {
  font-family: var(--font-display); font-size: 1.8rem; color: var(--ink); padding: 0.5rem 0;
  border-bottom: 1px solid var(--line-soft);
}

/* ------------------------------------------------------------------ */
/* Cart drawer                                                         */
/* ------------------------------------------------------------------ */
.overlay {
  position: fixed; inset: 0; background: rgba(42, 33, 29, 0.45); z-index: 90;
  opacity: 0; visibility: hidden; transition: opacity .25s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.overlay.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw); z-index: 95;
  background: var(--cream); transform: translateX(100%); transition: transform .3s cubic-bezier(.22,.61,.36,1);
  display: flex; flex-direction: column; box-shadow: -10px 0 30px rgba(42,33,29,0.12);
}
.drawer.open { transform: translateX(0); }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 1.4rem var(--gutter); border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 1.3rem; }
.drawer-body { flex: 1; overflow-y: auto; padding: 1rem var(--gutter); }
.drawer-foot { padding: 1.3rem var(--gutter); border-top: 1px solid var(--line); background: var(--ivory); }
.drawer-foot .row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 1rem; }
.drawer-foot .row .total { font-family: var(--font-display); font-size: 1.5rem; }

.mini-item { display: grid; grid-template-columns: 70px 1fr auto; gap: 0.9rem; padding: 1rem 0; border-bottom: 1px solid var(--line-soft); }
.mini-item .thumb { width: 70px; height: 88px; border-radius: var(--r-sm); overflow: hidden; background: var(--blush-soft); }
.mini-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-item .nm { font-weight: 500; font-size: 0.92rem; line-height: 1.3; }
.mini-item .va { font-size: 0.76rem; color: var(--ink-faint); margin-top: 2px; letter-spacing: 0.03em; }
.mini-item .pr { font-size: 0.86rem; color: var(--wine); margin-top: 0.3rem; font-weight: 500; }
.qty-mini { display: inline-flex; align-items: center; gap: 0.6rem; margin-top: 0.5rem; }
.qty-mini button { width: 24px; height: 24px; border: 1px solid var(--line); border-radius: 50%; display: grid; place-items: center; font-size: 0.9rem; line-height: 1; color: var(--ink-soft); }
.qty-mini button:hover { border-color: var(--ink); color: var(--ink); }
.mini-remove { font-size: 0.72rem; color: var(--ink-faint); letter-spacing: 0.05em; text-decoration: underline; margin-top: 0.5rem; display: inline-block; }
.mini-remove:hover { color: var(--danger); }

.empty-state { text-align: center; padding: 3rem 1rem; color: var(--ink-soft); }
.empty-state .ic { width: 46px; height: 46px; margin: 0 auto 1rem; color: var(--rose); }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */
.hero { position: relative; overflow: hidden; background: var(--cream-deep); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; min-height: min(82vh, 720px); align-items: stretch; }
.hero-copy { display: flex; flex-direction: column; justify-content: center; padding: clamp(2rem, 6vw, 5rem) clamp(1.5rem, 5vw, 4.5rem); position: relative; }
.hero-copy h1 { font-size: clamp(2.6rem, 6.5vw, 5rem); font-weight: 400; line-height: 1.02; }
.hero-copy h1 em { font-style: italic; color: var(--wine); }
.hero-copy p { margin: 1.5rem 0 2.2rem; font-size: 1.08rem; color: var(--ink-soft); max-width: 40ch; }
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-media { position: relative; background: linear-gradient(145deg, var(--blush) 0%, var(--rose) 100%); }
.hero-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(110,42,60,0.12), transparent 60%); }
.hero-tag {
  position: absolute; bottom: 1.6rem; left: 1.6rem; z-index: 2;
  background: color-mix(in srgb, var(--cream) 92%, transparent); backdrop-filter: blur(6px);
  padding: 0.8rem 1.1rem; border-radius: var(--r-md); box-shadow: var(--shadow-sm);
  font-size: 0.8rem; letter-spacing: 0.03em;
}
.hero-tag strong { font-family: var(--font-display); }

/* decorative serif marker */
.hero-copy .deco-num { position: absolute; top: clamp(1.5rem,4vw,3rem); right: clamp(1.5rem,4vw,3rem); font-family: var(--font-display); font-style: italic; color: var(--rose); opacity: 0.5; font-size: 1rem; letter-spacing: 0.1em; }

/* ------------------------------------------------------------------ */
/* Marquee / value strip                                              */
/* ------------------------------------------------------------------ */
.value-strip { background: var(--ink); color: var(--cream); }
.value-strip .container { display: flex; flex-wrap: wrap; justify-content: center; gap: clamp(1.2rem, 5vw, 4rem); padding-block: 1.2rem; }
.value-item { display: flex; align-items: center; gap: 0.6rem; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blush); }
.value-item .ic { width: 18px; height: 18px; color: var(--gold-soft); }

/* ------------------------------------------------------------------ */
/* Category cards                                                      */
/* ------------------------------------------------------------------ */
.cat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.cat-card {
  position: relative; border-radius: var(--r-lg); overflow: hidden; min-height: 280px;
  display: flex; align-items: flex-end; padding: 1.6rem; isolation: isolate;
  background: var(--blush);
}
.cat-card .ph, .cat-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s ease; }
.cat-card::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(to top, rgba(42,33,29,0.6), transparent 65%); }
.cat-card:hover img, .cat-card:hover .ph { transform: scale(1.06); }
.cat-card .cat-meta { color: #fff; }
.cat-card .cat-meta h3 { color: #fff; font-size: 1.5rem; }
.cat-card .cat-meta span { font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; opacity: 0.85; }
.cat-card.tall { grid-row: span 2; }

/* ------------------------------------------------------------------ */
/* Product card                                                        */
/* ------------------------------------------------------------------ */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(1rem, 2.5vw, 1.8rem); }
.product-card { display: flex; flex-direction: column; height: 100%; }
.product-card .media {
  position: relative; aspect-ratio: 3/4; border-radius: var(--r-md); overflow: hidden;
  background: var(--blush-soft); margin-bottom: 0.9rem;
}
.product-card .media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease, opacity .4s ease; }
.product-card:hover .media img { transform: scale(1.05); }
.product-card .media .badges { position: absolute; top: 0.7rem; left: 0.7rem; display: flex; flex-direction: column; gap: 0.4rem; z-index: 2; }
.product-card .wish {
  position: absolute; top: 0.7rem; right: 0.7rem; z-index: 2; width: 38px; height: 38px; border-radius: 50%;
  background: color-mix(in srgb, var(--ivory) 85%, transparent); backdrop-filter: blur(4px);
  display: grid; place-items: center; color: var(--ink); opacity: 0; transform: translateY(-4px); transition: all .25s ease;
}
.product-card:hover .wish { opacity: 1; transform: translateY(0); }
.product-card .wish:hover { color: var(--wine); }
.product-card .wish.active { color: var(--wine); opacity: 1; transform: translateY(0); }
.product-card .wish .ic { width: 18px; height: 18px; }
.product-card .quick {
  position: absolute; left: 0.7rem; right: 0.7rem; bottom: 0.7rem; z-index: 2;
  opacity: 0; transform: translateY(10px); transition: all .28s ease;
}
.product-card:hover .quick { opacity: 1; transform: translateY(0); }
.product-card .cat-label { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); }
.product-card .name { font-family: var(--font-display); font-size: 1.08rem; margin-top: 0.25rem; line-height: 1.25; }
.product-card a.name:hover { color: var(--wine); }
.product-card .swatches { display: flex; gap: 0.35rem; margin-top: 0.55rem; }
.swatch { width: 15px; height: 15px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); box-shadow: inset 0 0 0 2px var(--ivory); }
.product-card .price-row { margin-top: 0.55rem; display: flex; align-items: baseline; gap: 0.55rem; }
.product-card .price { font-weight: 500; color: var(--ink); }
.product-card .compare { font-size: 0.85rem; color: var(--ink-faint); text-decoration: line-through; }
.product-card .rating { display: flex; align-items: center; gap: 0.3rem; margin-top: 0.4rem; font-size: 0.78rem; color: var(--ink-soft); }
.product-card .rating .ic { width: 13px; height: 13px; color: var(--gold); }

/* ------------------------------------------------------------------ */
/* Editorial / story split                                            */
/* ------------------------------------------------------------------ */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.5rem, 5vw, 4rem); align-items: center; }
.split .media { aspect-ratio: 4/5; border-radius: var(--r-lg); overflow: hidden; background: linear-gradient(160deg, var(--blush), var(--rose)); }
.split .media img { width: 100%; height: 100%; object-fit: cover; }
.split h2 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
.split p { color: var(--ink-soft); margin: 1.1rem 0; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem; margin-top: 1.6rem; }
.pillar .ic-tile { width: 42px; height: 42px; border-radius: var(--r-md); background: var(--wine); color: #fff; display: grid; place-items: center; margin-bottom: 0.6rem; }
.pillar .ic-tile .ic { width: 22px; height: 22px; }
.pillar h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.95rem; letter-spacing: 0.02em; }
.pillar p { font-size: 0.86rem; margin: 0.3rem 0 0; }

/* ------------------------------------------------------------------ */
/* Testimonials                                                        */
/* ------------------------------------------------------------------ */
.quote-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote-card { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.8rem; }
.quote-card .stars { display: flex; gap: 0.2rem; color: var(--gold); margin-bottom: 0.9rem; }
.quote-card .stars .ic { width: 16px; height: 16px; }
.quote-card blockquote { font-family: var(--font-display); font-size: 1.12rem; line-height: 1.5; color: var(--ink); }
.quote-card .who { margin-top: 1.1rem; font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.04em; }
.quote-card .who strong { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Newsletter                                                          */
/* ------------------------------------------------------------------ */
.newsletter { background: var(--wine); color: var(--blush-soft); border-radius: var(--r-xl); padding: clamp(2.2rem, 6vw, 4rem); text-align: center; position: relative; overflow: hidden; }
.newsletter::before { content: ''; position: absolute; width: 320px; height: 320px; border-radius: 50%; background: radial-gradient(circle, rgba(176,137,79,0.3), transparent 70%); top: -120px; right: -80px; }
.newsletter h2 { color: #fff; font-size: clamp(1.8rem, 4vw, 2.8rem); position: relative; }
.newsletter p { margin: 0.9rem auto 1.8rem; max-width: 46ch; opacity: 0.9; position: relative; }
.newsletter form { display: flex; gap: 0.6rem; max-width: 460px; margin-inline: auto; position: relative; flex-wrap: wrap; }
.newsletter input { flex: 1; min-width: 200px; padding: 0.95rem 1.3rem; border-radius: var(--r-pill); border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.1); color: #fff; }
.newsletter input::placeholder { color: rgba(255,255,255,0.6); }
.newsletter .btn-primary { background: var(--gold); color: var(--ink); }
.newsletter .btn-primary:hover { background: var(--gold-soft); }

/* ------------------------------------------------------------------ */
/* Footer                                                              */
/* ------------------------------------------------------------------ */
.site-footer { background: var(--ink); color: var(--blush-soft); padding-block: clamp(3rem, 6vw, 4.5rem) 2rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2rem; }
.site-footer .brand { color: #fff; }
.site-footer .brand span { color: var(--rose); }
.footer-col h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.8rem; letter-spacing: 0.16em; text-transform: uppercase; color: #fff; margin-bottom: 1.1rem; }
.footer-col a { display: block; color: var(--blush-soft); opacity: 0.75; font-size: 0.9rem; padding: 0.3rem 0; transition: opacity .2s ease; }
.footer-col a:hover { opacity: 1; }
.footer-about p { opacity: 0.75; font-size: 0.92rem; margin: 1rem 0; max-width: 34ch; }
.socials { display: flex; gap: 0.6rem; }
.socials a { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.2); display: grid; place-items: center; opacity: 0.8; }
.socials a:hover { opacity: 1; background: rgba(255,255,255,0.08); }
.socials .ic { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 2.6rem; padding-top: 1.6rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; font-size: 0.8rem; opacity: 0.7; }
.pay-icons { display: flex; gap: 0.5rem; align-items: center; }
.pay-icons span { font-size: 0.7rem; letter-spacing: 0.08em; padding: 0.25rem 0.55rem; border: 1px solid rgba(255,255,255,0.2); border-radius: 4px; }

/* ------------------------------------------------------------------ */
/* Image fallback (art-directed placeholder)                          */
/* ------------------------------------------------------------------ */
.img-ph {
  width: 100%; height: 100%; display: grid; place-items: center; position: relative;
  background: linear-gradient(150deg, var(--blush-soft), var(--blush));
}
.img-ph[data-tone="2"] { background: linear-gradient(150deg, #F0E2DA, #E4C9C0); }
.img-ph[data-tone="3"] { background: linear-gradient(150deg, #EDE0E2, #D9B9C0); }
.img-ph[data-tone="4"] { background: linear-gradient(150deg, #E9E2D6, #D8C7AE); }
.img-ph .ic { width: 34%; max-width: 88px; height: auto; color: var(--wine); opacity: 0.5; }
.img-ph .lbl { position: absolute; bottom: 12%; left: 0; right: 0; text-align: center; font-family: var(--font-display); font-style: italic; color: var(--wine); opacity: 0.65; font-size: 0.95rem; padding-inline: 1rem; }

/* ------------------------------------------------------------------ */
/* Breadcrumb                                                          */
/* ------------------------------------------------------------------ */
.breadcrumb { display: flex; gap: 0.5rem; align-items: center; font-size: 0.8rem; color: var(--ink-faint); letter-spacing: 0.04em; padding-block: 1.4rem; }
.breadcrumb a:hover { color: var(--wine); }
.breadcrumb .sep { opacity: 0.5; }

/* ------------------------------------------------------------------ */
/* Shop layout                                                         */
/* ------------------------------------------------------------------ */
.shop-layout { display: grid; grid-template-columns: 248px 1fr; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-group { border-bottom: 1px solid var(--line-soft); padding-block: 1.3rem; }
.filter-group:first-child { padding-top: 0; }
.filter-group h4 { font-family: var(--font-body); font-weight: 600; font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; margin-bottom: 1rem; }
.filter-list { display: flex; flex-direction: column; gap: 0.2rem; }
.filter-opt { display: flex; align-items: center; gap: 0.6rem; cursor: pointer; padding: 0.4rem 0; font-size: 0.9rem; color: var(--ink-soft); transition: color .15s ease; }
.filter-opt:hover { color: var(--ink); }
.filter-opt input { accent-color: var(--wine); width: 16px; height: 16px; }
.filter-opt .ct { margin-left: auto; font-size: 0.78rem; color: var(--ink-faint); }
.size-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.4rem; }
.size-grid label { display: grid; place-items: center; min-height: 40px; border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 0.82rem; cursor: pointer; transition: all .15s ease; }
.size-grid input { position: absolute; opacity: 0; pointer-events: none; }
.size-grid label:hover { border-color: var(--ink); }
.size-grid input:checked + span, .size-grid label.active { }
.size-grid label:has(input:checked) { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.shop-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.6rem; flex-wrap: wrap; }
.shop-toolbar .count { font-size: 0.86rem; color: var(--ink-soft); }
.select {
  appearance: none; -webkit-appearance: none;
  padding: 0.7rem 2.4rem 0.7rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-pill);
  background: var(--ivory) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236E5F58' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 1rem center;
  font-size: 0.86rem; cursor: pointer; min-height: 44px;
}
.filter-toggle { display: none; }

/* ------------------------------------------------------------------ */
/* Product detail (PDP)                                               */
/* ------------------------------------------------------------------ */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.gallery { display: flex; flex-direction: column; gap: 0.8rem; }
.gallery .main { aspect-ratio: 3/4; border-radius: var(--r-lg); overflow: hidden; background: var(--blush-soft); }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; }
.gallery .thumbs button { aspect-ratio: 1; border-radius: var(--r-sm); overflow: hidden; background: var(--blush-soft); border: 2px solid transparent; }
.gallery .thumbs button.active { border-color: var(--wine); }
.gallery .thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pdp-info { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp-info .cat-label { font-size: 0.72rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--wine); }
.pdp-info h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 400; margin: 0.5rem 0 0.7rem; }
.pdp-rating { display: flex; align-items: center; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-soft); }
.pdp-rating .stars { display: flex; color: var(--gold); }
.pdp-rating .stars .ic { width: 15px; height: 15px; }
.pdp-price { display: flex; align-items: baseline; gap: 0.8rem; margin: 1.2rem 0; }
.pdp-price .now { font-family: var(--font-display); font-size: 1.9rem; color: var(--ink); }
.pdp-price .was { font-size: 1.1rem; color: var(--ink-faint); text-decoration: line-through; }
.pdp-price .save { font-size: 0.76rem; font-weight: 600; color: var(--wine); background: var(--blush); padding: 0.25rem 0.6rem; border-radius: var(--r-pill); letter-spacing: 0.06em; }
.pdp-desc { color: var(--ink-soft); line-height: 1.7; margin-bottom: 1.6rem; }
.opt-block { margin-bottom: 1.5rem; }
.opt-block .opt-label { display: flex; justify-content: space-between; font-size: 0.82rem; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.7rem; font-weight: 500; }
.opt-label .chosen { color: var(--ink-soft); text-transform: none; letter-spacing: 0.02em; }
.color-opts { display: flex; gap: 0.7rem; flex-wrap: wrap; }
.color-opt { width: 38px; height: 38px; border-radius: 50%; border: 1px solid rgba(0,0,0,0.12); position: relative; box-shadow: inset 0 0 0 3px var(--cream); cursor: pointer; transition: transform .15s ease; }
.color-opt:hover { transform: scale(1.08); }
.color-opt.active { box-shadow: inset 0 0 0 3px var(--cream), 0 0 0 2px var(--wine); }
.size-opts { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.size-opt { min-width: 52px; min-height: 48px; padding: 0 0.6rem; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--ivory); font-size: 0.88rem; letter-spacing: 0.04em; transition: all .15s ease; }
.size-opt:hover { border-color: var(--ink); }
.size-opt.active { background: var(--ink); color: var(--cream); border-color: var(--ink); }
.size-opt:disabled { opacity: 0.35; text-decoration: line-through; cursor: not-allowed; }
.size-guide-link { font-size: 0.78rem; color: var(--ink-soft); text-decoration: underline; }
.size-guide-link:hover { color: var(--wine); }
.pdp-actions { display: flex; gap: 0.7rem; margin: 1.8rem 0 1.4rem; }
.qty-stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-pill); overflow: hidden; }
.qty-stepper button { width: 46px; height: 48px; display: grid; place-items: center; font-size: 1.1rem; color: var(--ink-soft); }
.qty-stepper button:hover { color: var(--wine); background: var(--blush-soft); }
.qty-stepper .val { width: 42px; text-align: center; font-weight: 500; }
.pdp-meta { display: flex; flex-direction: column; gap: 0.7rem; padding-top: 1.4rem; border-top: 1px solid var(--line-soft); }
.pdp-meta .row { display: flex; align-items: center; gap: 0.7rem; font-size: 0.86rem; color: var(--ink-soft); }
.pdp-meta .ic { width: 18px; height: 18px; color: var(--wine); flex-shrink: 0; }
.accordion { margin-top: 1.6rem; border-top: 1px solid var(--line-soft); }
.accordion details { border-bottom: 1px solid var(--line-soft); }
.accordion summary { display: flex; justify-content: space-between; align-items: center; padding: 1.1rem 0; cursor: pointer; font-weight: 500; font-size: 0.95rem; list-style: none; }
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .ic { width: 18px; height: 18px; transition: transform .2s ease; color: var(--ink-soft); }
.accordion details[open] summary .ic { transform: rotate(45deg); }
.accordion .acc-body { padding-bottom: 1.2rem; color: var(--ink-soft); font-size: 0.92rem; line-height: 1.7; }
.accordion .acc-body ul { display: flex; flex-direction: column; gap: 0.5rem; }
.accordion .acc-body li { display: flex; gap: 0.6rem; }
.accordion .acc-body li::before { content: ''; width: 5px; height: 5px; border-radius: 50%; background: var(--rose); margin-top: 0.6rem; flex-shrink: 0; }

/* ------------------------------------------------------------------ */
/* Cart & checkout pages                                              */
/* ------------------------------------------------------------------ */
.page-head { padding-block: clamp(2rem, 5vw, 3.5rem) 0; }
.page-head h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); font-weight: 400; }
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.cart-line { display: grid; grid-template-columns: 96px 1fr auto; gap: 1.2rem; padding: 1.4rem 0; border-bottom: 1px solid var(--line-soft); }
.cart-line .thumb { width: 96px; height: 120px; border-radius: var(--r-md); overflow: hidden; background: var(--blush-soft); }
.cart-line .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart-line .nm { font-family: var(--font-display); font-size: 1.12rem; }
.cart-line .va { font-size: 0.82rem; color: var(--ink-faint); margin-top: 0.3rem; letter-spacing: 0.03em; }
.cart-line .line-actions { display: flex; align-items: center; gap: 1rem; margin-top: 0.9rem; }
.cart-line .remove { font-size: 0.8rem; color: var(--ink-faint); text-decoration: underline; }
.cart-line .remove:hover { color: var(--danger); }
.cart-line .line-price { text-align: right; }
.cart-line .line-price .now { font-weight: 500; }
.cart-line .line-price .each { font-size: 0.76rem; color: var(--ink-faint); margin-top: 0.2rem; }

.summary { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.7rem; position: sticky; top: calc(var(--header-h) + 16px); }
.summary h3 { font-size: 1.3rem; margin-bottom: 1.2rem; }
.summary .line { display: flex; justify-content: space-between; padding: 0.5rem 0; font-size: 0.92rem; color: var(--ink-soft); }
.summary .line.total { border-top: 1px solid var(--line); margin-top: 0.7rem; padding-top: 1rem; font-size: 1.15rem; color: var(--ink); align-items: baseline; }
.summary .line.total strong { font-family: var(--font-display); font-size: 1.5rem; font-weight: 500; }
.promo { display: flex; gap: 0.5rem; margin: 1.1rem 0; }
.promo input { flex: 1; }

.field { margin-bottom: 1.1rem; }
.field label { display: block; font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 500; margin-bottom: 0.5rem; color: var(--ink-soft); }
.field .req { color: var(--wine); }
.input {
  width: 100%; padding: 0.85rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-md);
  background: var(--ivory); transition: border-color .15s ease, box-shadow .15s ease; min-height: 48px;
}
.input:focus { outline: none; border-color: var(--wine); box-shadow: 0 0 0 3px rgba(110,42,60,0.1); }
.input::placeholder { color: var(--ink-faint); }
.input.err { border-color: var(--danger); }
.field .hint { font-size: 0.76rem; color: var(--danger); margin-top: 0.35rem; display: none; }
.field.invalid .hint { display: block; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
textarea.input { resize: vertical; min-height: 90px; }

.checkout-layout { display: grid; grid-template-columns: 1fr 400px; gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.checkout-section { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: clamp(1.3rem, 3vw, 2rem); margin-bottom: 1.4rem; }
.checkout-section .sec-title { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 1.4rem; }
.checkout-section .sec-num { width: 30px; height: 30px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-size: 0.85rem; font-weight: 600; flex-shrink: 0; }
.checkout-section h3 { font-size: 1.2rem; }
.pay-methods { display: flex; flex-direction: column; gap: 0.7rem; }
.pay-opt { display: flex; align-items: center; gap: 0.9rem; padding: 1rem 1.2rem; border: 1px solid var(--line); border-radius: var(--r-md); cursor: pointer; transition: all .15s ease; }
.pay-opt:hover { border-color: var(--ink); }
.pay-opt input { accent-color: var(--wine); width: 18px; height: 18px; }
.pay-opt:has(input:checked) { border-color: var(--wine); background: var(--blush-soft); }
.pay-opt .pay-ic { width: 34px; height: 34px; border-radius: var(--r-sm); background: var(--cream-deep); display: grid; place-items: center; color: var(--wine); }
.pay-opt .pay-ic .ic { width: 18px; height: 18px; }
.pay-opt .pay-name { font-weight: 500; font-size: 0.95rem; }
.pay-opt .pay-sub { font-size: 0.78rem; color: var(--ink-faint); }
.pay-opt .pay-logos { margin-left: auto; display: flex; gap: 0.3rem; }
.pay-opt .pay-logos span { font-size: 0.6rem; letter-spacing: 0.06em; padding: 0.2rem 0.4rem; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-faint); }

.mini-summary-item { display: flex; gap: 0.9rem; padding: 0.8rem 0; border-bottom: 1px solid var(--line-soft); }
.mini-summary-item .thumb { width: 56px; height: 70px; border-radius: var(--r-sm); overflow: hidden; background: var(--blush-soft); position: relative; flex-shrink: 0; }
.mini-summary-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini-summary-item .thumb .q { position: absolute; top: -8px; right: -8px; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 0.72rem; display: grid; place-items: center; }
.mini-summary-item .nm { font-size: 0.88rem; font-weight: 500; line-height: 1.3; }
.mini-summary-item .va { font-size: 0.74rem; color: var(--ink-faint); margin-top: 2px; }
.mini-summary-item .pr { margin-left: auto; font-size: 0.86rem; font-weight: 500; white-space: nowrap; }

/* success */
.success-box { max-width: 540px; margin-inline: auto; text-align: center; padding-block: clamp(2.5rem, 6vw, 5rem); }
.success-box .check { width: 84px; height: 84px; border-radius: 50%; background: var(--blush); color: var(--wine); display: grid; place-items: center; margin: 0 auto 1.6rem; }
.success-box .check .ic { width: 40px; height: 40px; }
.success-box h1 { font-size: clamp(2rem, 5vw, 3rem); font-weight: 400; }
.success-box p { color: var(--ink-soft); margin: 1rem 0; }
.order-ref { display: inline-block; background: var(--ivory); border: 1px dashed var(--line); border-radius: var(--r-md); padding: 0.8rem 1.4rem; margin: 1rem 0 2rem; font-family: var(--font-display); font-size: 1.2rem; letter-spacing: 0.05em; }

/* ------------------------------------------------------------------ */
/* Admin                                                               */
/* ------------------------------------------------------------------ */
.admin-body { background: var(--cream-deep); }
.admin-shell { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.admin-side { background: var(--ink); color: var(--blush-soft); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; }
.admin-side .brand { color: #fff; padding: 1.5rem var(--gutter); font-size: 1.3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
.admin-side .brand span { color: var(--rose); }
.admin-nav { flex: 1; padding: 1.2rem 0.8rem; display: flex; flex-direction: column; gap: 0.2rem; }
.admin-nav a { display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 1rem; border-radius: var(--r-md); font-size: 0.9rem; color: var(--blush-soft); opacity: 0.75; transition: all .15s ease; }
.admin-nav a .ic { width: 19px; height: 19px; }
.admin-nav a:hover { opacity: 1; background: rgba(255,255,255,0.06); }
.admin-nav a.active { opacity: 1; background: var(--wine); color: #fff; }
.admin-side .side-foot { padding: 1rem var(--gutter); border-top: 1px solid rgba(255,255,255,0.1); font-size: 0.8rem; opacity: 0.6; }
.admin-side .side-foot a { color: var(--rose); }
.admin-main { padding: clamp(1.3rem, 3vw, 2.4rem); overflow-x: hidden; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.admin-topbar h1 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); font-weight: 500; }
.admin-topbar .sub { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.2rem; }
.admin-user { display: flex; align-items: center; gap: 0.7rem; }
.admin-user .av { width: 40px; height: 40px; border-radius: 50%; background: var(--wine); color: #fff; display: grid; place-items: center; font-family: var(--font-display); }
.admin-user .nm { font-size: 0.88rem; font-weight: 500; }
.admin-user .rl { font-size: 0.74rem; color: var(--ink-faint); }

.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-bottom: 1.6rem; }
.stat-card { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.4rem; }
.stat-card .top { display: flex; align-items: center; justify-content: space-between; }
.stat-card .ic-tile { width: 42px; height: 42px; border-radius: var(--r-md); display: grid; place-items: center; color: #fff; }
.stat-card .ic-tile .ic { width: 21px; height: 21px; }
.stat-card .ic-tile.a { background: var(--wine); }
.stat-card .ic-tile.b { background: var(--gold); }
.stat-card .ic-tile.c { background: var(--ink); }
.stat-card .ic-tile.d { background: var(--wine-soft); }
.stat-card .delta { font-size: 0.76rem; font-weight: 600; padding: 0.25rem 0.5rem; border-radius: var(--r-pill); }
.stat-card .delta.up { color: var(--success); background: rgba(79,122,82,0.12); }
.stat-card .delta.down { color: var(--danger); background: rgba(178,59,59,0.1); }
.stat-card .val { font-family: var(--font-display); font-size: 1.9rem; margin-top: 1rem; }
.stat-card .lbl { font-size: 0.82rem; color: var(--ink-soft); letter-spacing: 0.03em; margin-top: 0.2rem; }

.panel { background: var(--ivory); border: 1px solid var(--line-soft); border-radius: var(--r-lg); padding: 1.5rem; margin-bottom: 1.6rem; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.3rem; flex-wrap: wrap; }
.panel-head h3 { font-size: 1.2rem; }
.admin-grid-2 { display: grid; grid-template-columns: 1.6fr 1fr; gap: 1.6rem; align-items: start; }

/* bar chart (CSS) */
.chart { display: flex; align-items: flex-end; gap: clamp(0.4rem, 1.5vw, 1rem); height: 230px; padding-top: 1rem; }
.chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 0.6rem; height: 100%; justify-content: flex-end; }
.chart .bar { width: 100%; max-width: 42px; background: linear-gradient(to top, var(--wine), var(--wine-soft)); border-radius: 6px 6px 0 0; transition: height .6s cubic-bezier(.22,.61,.36,1); position: relative; }
.chart .bar:hover { background: linear-gradient(to top, var(--wine-deep), var(--wine)); }
.chart .bar:hover .bar-val { opacity: 1; transform: translateY(0); }
.chart .bar-val { position: absolute; top: -1.6rem; left: 50%; transform: translate(-50%, 4px); background: var(--ink); color: #fff; font-size: 0.68rem; padding: 0.2rem 0.45rem; border-radius: 4px; white-space: nowrap; opacity: 0; transition: all .2s ease; }
.chart .bar-lbl { font-size: 0.72rem; color: var(--ink-soft); }

/* table */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 560px; }
table.data th { text-align: left; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; padding: 0.8rem 0.9rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 0.9rem; border-bottom: 1px solid var(--line-soft); font-size: 0.9rem; white-space: nowrap; vertical-align: middle; }
table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover { background: var(--blush-soft); }
.cell-prod { display: flex; align-items: center; gap: 0.8rem; }
.cell-prod .thumb { width: 44px; height: 54px; border-radius: var(--r-sm); overflow: hidden; background: var(--blush-soft); flex-shrink: 0; }
.cell-prod .thumb img { width: 100%; height: 100%; object-fit: cover; }
.cell-prod .nm { font-weight: 500; white-space: normal; }
.cell-prod .sku { font-size: 0.74rem; color: var(--ink-faint); }
.status-pill { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.74rem; font-weight: 600; padding: 0.3rem 0.65rem; border-radius: var(--r-pill); letter-spacing: 0.03em; }
.status-pill::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.st-paid { color: var(--success); background: rgba(79,122,82,0.12); }
.st-pending { color: var(--warning); background: rgba(176,123,46,0.12); }
.st-shipped { color: var(--wine); background: var(--blush); }
.st-cancel { color: var(--danger); background: rgba(178,59,59,0.1); }
.st-instock { color: var(--success); background: rgba(79,122,82,0.12); }
.st-low { color: var(--warning); background: rgba(176,123,46,0.12); }
.st-out { color: var(--danger); background: rgba(178,59,59,0.1); }
.row-actions { display: flex; gap: 0.4rem; }
.row-actions button { width: 36px; height: 36px; border-radius: var(--r-sm); border: 1px solid var(--line); display: grid; place-items: center; color: var(--ink-soft); transition: all .15s ease; }
.row-actions button:hover { border-color: var(--ink); color: var(--ink); }
.row-actions button.danger:hover { border-color: var(--danger); color: var(--danger); }
.row-actions .ic { width: 16px; height: 16px; }
.admin-search { display: flex; align-items: center; gap: 0.6rem; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 1rem; background: var(--ivory); min-height: 44px; }
.admin-search input { border: none; outline: none; background: none; min-width: 0; width: 200px; }
.admin-search .ic { width: 17px; height: 17px; color: var(--ink-faint); }

/* modal */
.modal-overlay { position: fixed; inset: 0; z-index: 120; background: rgba(42,33,29,0.6); display: flex; align-items: center; justify-content: center; padding: 1rem; opacity: 0; visibility: hidden; transition: opacity .2s ease; }
.modal-overlay.open { opacity: 1; visibility: visible; }
.modal { width: 100%; max-width: 560px; max-height: 90vh; overflow-y: auto; background: var(--cream); border-radius: var(--r-lg); padding: clamp(1.4rem, 3vw, 2rem); transform: translateY(12px); transition: transform .25s ease; }
.modal-overlay.open .modal { transform: translateY(0); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.4rem; }
.modal-head h3 { font-size: 1.4rem; }

/* ------------------------------------------------------------------ */
/* Toast                                                               */
/* ------------------------------------------------------------------ */
.toast-wrap { position: fixed; bottom: 1.4rem; right: 1.4rem; z-index: 200; display: flex; flex-direction: column; gap: 0.6rem; pointer-events: none; }
.toast {
  display: flex; align-items: center; gap: 0.8rem; background: var(--ink); color: var(--cream);
  padding: 0.9rem 1.2rem; border-radius: var(--r-md); box-shadow: var(--shadow-lg); min-width: 260px; max-width: 360px;
  transform: translateX(120%); transition: transform .3s cubic-bezier(.22,.61,.36,1); pointer-events: auto;
}
.toast.show { transform: translateX(0); }
.toast .ic { width: 20px; height: 20px; flex-shrink: 0; color: var(--gold-soft); }
.toast.success .ic { color: #9CC79F; }
.toast .msg { font-size: 0.88rem; }
.toast .msg strong { font-weight: 600; }

/* ------------------------------------------------------------------ */
/* Skeleton                                                            */
/* ------------------------------------------------------------------ */
.skeleton { position: relative; overflow: hidden; background: var(--cream-deep); border-radius: var(--r-md); }
.skeleton::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,0.5), transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { 100% { transform: translateX(100%); } }
.sk-card { aspect-ratio: 3/4; }
.sk-line { height: 12px; border-radius: 4px; margin-top: 0.6rem; }
.sk-line.w60 { width: 60%; }
.sk-line.w40 { width: 40%; }

/* ------------------------------------------------------------------ */
/* Reveal on load / scroll                                             */
/* ------------------------------------------------------------------ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ------------------------------------------------------------------ */
/* Utilities                                                           */
/* ------------------------------------------------------------------ */
.hide { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
.mt-2 { margin-top: 2rem; } .mt-1 { margin-top: 1rem; }
.text-wine { color: var(--wine); }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */
@media (max-width: 1080px) {
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .hamburger { display: inline-flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-media { min-height: 380px; order: -1; }
  .split { grid-template-columns: 1fr; }
  .split .media { order: -1; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-info { position: static; }
  .checkout-layout { grid-template-columns: 1fr; }
  .checkout-layout .summary-col { order: -1; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { position: fixed; left: 0; top: 0; z-index: 100; transform: translateX(-100%); transition: transform .3s ease; width: 250px; }
  .admin-side.open { transform: translateX(0); }
  .admin-grid-2 { grid-template-columns: 1fr; }
  .admin-menu-btn { display: inline-flex !important; }
}
@media (max-width: 760px) {
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: fixed; top: 0; left: 0; height: 100%; width: min(320px, 88vw); background: var(--cream); z-index: 95; transform: translateX(-100%); transition: transform .3s ease; overflow-y: auto; padding: 1.4rem var(--gutter); box-shadow: 10px 0 30px rgba(42,33,29,0.12); }
  .filters.open { transform: translateX(0); }
  .filter-toggle { display: inline-flex; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-layout .summary { position: static; order: 2; }
  .quote-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: 1fr; }
  .cat-card.tall { grid-row: span 1; }
}
@media (max-width: 560px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 1rem; }
  .pillars { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-about { grid-column: 1 / -1; }
  .product-card .name { font-size: 0.98rem; }
  .toast-wrap { left: 1rem; right: 1rem; bottom: 1rem; }
  .toast { min-width: 0; width: 100%; }
}
@media (max-width: 380px) {
  .stat-grid { grid-template-columns: 1fr; }
}
