/* =====================================================================
   SHINE BEAUTY PRODUCTS — DESIGN SYSTEM
   ===================================================================== */

:root {
  --purple: #59358f;
  --purple-deep: #40236f;
  --purple-ink: #2f1a54;
  --lavender: #ede1f7;
  --lavender-light: #f7f1fc;
  --blush: #f5e5f0;
  --white: #ffffff;
  --ink: #241a36;
  --muted: #71667d;
  --border: #e9e0f0;

  --font-serif: "Playfair Display", "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-sans: "Inter", "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-xl: 34px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(64, 35, 111, 0.06);
  --shadow-sm: 0 6px 18px rgba(64, 35, 111, 0.07);
  --shadow: 0 14px 38px rgba(64, 35, 111, 0.09);
  --shadow-lg: 0 26px 60px rgba(64, 35, 111, 0.14);

  --container: 1240px;
  --header-h: 84px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; font-family: var(--font-serif); font-weight: 600; line-height: 1.12; color: var(--ink); }
p { margin: 0; }

/* Guarantee the hidden attribute is honoured even over display:grid/flex rules */
[hidden] { 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; }

:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
  border-radius: 6px;
}

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 88px 0; }
.section--tight { padding: 60px 0; }
.section--lav { background: var(--lavender-light); }
.section--blush { background: linear-gradient(180deg, var(--white), var(--lavender-light)); }
.center { text-align: center; }
.stack > * + * { margin-top: 14px; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: 16px;
}
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.4vw, 46px); }
.section-head p { color: var(--muted); margin-top: 14px; }
.section-head .eyebrow { margin-bottom: 12px; }
.italic { font-style: italic; color: var(--purple); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 26px;
  border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--purple-deep); color: #fff; box-shadow: var(--shadow-sm); }
.btn--primary:hover { background: var(--purple); box-shadow: var(--shadow); }
.btn--outline { background: transparent; color: var(--purple-deep); border-color: #d9c9ea; }
.btn--outline:hover { background: #fff; border-color: var(--purple); color: var(--purple); }
.btn--light { background: #fff; color: var(--purple-deep); }
.btn--light:hover { background: var(--lavender); }
.btn--ghost { background: var(--lavender-light); color: var(--purple-deep); }
.btn--ghost:hover { background: var(--lavender); }
.btn--block { width: 100%; }
.btn--sm { padding: 10px 18px; font-size: 11px; }
.btn[disabled] { opacity: .55; pointer-events: none; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--purple-deep);
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  transition: gap .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.link-arrow:hover { gap: 14px; border-color: var(--purple); color: var(--purple); }

/* ---------- Badges / ratings ---------- */
.badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--purple-deep); color: #fff;
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 6px 11px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-xs);
}
.badge--sale { background: #fff; color: var(--purple-deep); }
.badge--new { background: var(--blush); color: var(--purple-deep); }
.stars { display: inline-flex; gap: 2px; color: #d9a441; }
.stars svg { width: 14px; height: 14px; }
.rating { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--muted); }

/* =====================================================================
   HEADER
   ===================================================================== */
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--purple-deep); color: #fff; padding: 10px 18px; border-radius: 0 0 10px 0;
}
.skip-link:focus { left: 0; }

.promo-bar {
  background: var(--purple-deep); color: #f3ecfb;
  font-size: 12px; letter-spacing: 0.06em; text-align: center;
  padding: 9px 16px;
}
.promo-bar b { color: #fff; }

.site-header {
  position: sticky; top: 0; z-index: 90;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); border-color: var(--border); }
.header-inner {
  display: flex; align-items: center; gap: 20px;
  min-height: var(--header-h);
}

/* Brand */
.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand__mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: linear-gradient(145deg, var(--purple), var(--purple-deep));
  display: grid; place-items: center; color: #fff; box-shadow: var(--shadow-sm);
}
.brand__mark svg { width: 24px; height: 24px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__name { font-family: var(--font-serif); font-size: 19px; font-weight: 700; letter-spacing: 0.01em; }
.brand__tag { font-size: 9.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--purple); margin-top: 3px; }
@media (min-width: 992px) { .brand__name { font-size: 20px; } }

/* Primary nav */
.main-nav { margin: 0 auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  position: relative; display: block;
  padding: 10px 14px; font-size: 13.5px; font-weight: 600; color: var(--ink);
  border-radius: var(--radius-pill);
  transition: color .22s var(--ease), background .22s var(--ease);
}
.main-nav a:hover { color: var(--purple); background: var(--lavender-light); }
.main-nav a.active { color: var(--purple-deep); }
.main-nav a.active::after {
  content: ""; position: absolute; left: 50%; bottom: 2px; transform: translateX(-50%);
  width: 18px; height: 2px; border-radius: 2px; background: var(--purple);
}

/* Actions */
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 50%;
  display: grid; place-items: center; color: var(--ink);
  transition: background .22s var(--ease), color .22s var(--ease), transform .22s var(--ease);
}
.icon-btn:hover { background: var(--lavender); color: var(--purple-deep); }
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn .count {
  position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; padding: 0 4px;
  background: var(--purple-deep); color: #fff; border-radius: var(--radius-pill);
  font-size: 10.5px; font-weight: 700; display: grid; place-items: center;
  border: 2px solid #fff;
}
.icon-btn .count[hidden] { display: none; }
.icon-btn.is-pop { animation: pop .45s var(--ease); }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }

.hamburger { display: none; }

/* Mobile drawer nav */
.mobile-nav {
  position: fixed; inset: 0; z-index: 120;
  background: #fff; transform: translateX(-100%);
  transition: transform .4s var(--ease);
  display: flex; flex-direction: column; padding: 22px 24px; overflow-y: auto;
}
.mobile-nav.open { transform: translateX(0); }
.mobile-nav__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 26px; }
.mobile-nav nav ul { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav nav a {
  display: block; padding: 16px 6px; font-size: 20px; font-family: var(--font-serif);
  border-bottom: 1px solid var(--border); color: var(--ink);
}
.mobile-nav nav a.active { color: var(--purple); }
.mobile-nav__foot { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }

.scrim {
  position: fixed; inset: 0; z-index: 110; background: rgba(36, 26, 54, 0.42);
  opacity: 0; visibility: hidden; transition: opacity .35s var(--ease), visibility .35s var(--ease);
  backdrop-filter: blur(2px);
}
.scrim.open { opacity: 1; visibility: visible; }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 130; display: flex; justify-content: center;
  padding: 12vh 20px 20px;
  background: rgba(36, 26, 54, 0.5); backdrop-filter: blur(6px);
  opacity: 0; visibility: hidden; transition: opacity .3s var(--ease), visibility .3s var(--ease);
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-overlay__panel {
  width: 100%; max-width: 680px; background: #fff; border-radius: var(--radius-lg);
  padding: 26px; box-shadow: var(--shadow-lg); align-self: flex-start;
  transform: translateY(-14px); transition: transform .35s var(--ease);
}
.search-overlay.open .search-overlay__panel { transform: translateY(0); }
.search-overlay__form { display: flex; align-items: center; gap: 12px; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 8px 8px 8px 20px; }
.search-overlay__form input { flex: 1; border: none; outline: none; background: none; font-size: 16px; padding: 8px 0; }
.search-results { margin-top: 18px; max-height: 52vh; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.search-result { display: flex; align-items: center; gap: 14px; padding: 8px; border-radius: 12px; transition: background .2s var(--ease); }
.search-result:hover { background: var(--lavender-light); }
.search-result img { width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.search-result__name { font-weight: 600; font-size: 14px; }
.search-result__meta { font-size: 12px; color: var(--muted); }
.search-empty { color: var(--muted); font-size: 14px; padding: 16px 8px; }

/* =====================================================================
   HERO
   ===================================================================== */
.hero { position: relative; background: var(--lavender-light); overflow: hidden; }
.hero__grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 30px; min-height: 620px; }
.hero__content { padding: 70px 0; max-width: 560px; }
.hero h1 { font-size: clamp(38px, 5.4vw, 68px); letter-spacing: -0.01em; }
.hero__desc { color: var(--muted); font-size: 17px; margin: 22px 0 30px; max-width: 460px; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero__benefits { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 42px; }
.hero__benefit { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.hero__benefit svg { width: 20px; height: 20px; color: var(--purple); flex-shrink: 0; }

.hero__visual { position: relative; height: 100%; min-height: 520px; }
.hero__visual img { width: 100%; height: 100%; min-height: 520px; object-fit: cover; object-position: center; border-radius: 42% 0 0 42% / 50% 0 0 50%; }
.hero__badge {
  position: absolute; left: 6%; bottom: 12%; width: 128px; height: 128px;
  background: #fff; border-radius: 50%; display: grid; place-items: center;
  box-shadow: var(--shadow); animation: spin 22s linear infinite;
}
.hero__badge__inner { display: block; width: 100%; height: 100%; }
.hero__badge__dot { position: absolute; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
@keyframes spin { to { transform: rotate(360deg); } }

/* =====================================================================
   CATEGORY GRID
   ===================================================================== */
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 22px; }
.category-tile {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px;
  padding: 30px 18px 26px; border-radius: var(--radius-lg);
  background: var(--lavender-light); border: 1px solid transparent;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), border-color .3s var(--ease);
}
.category-tile:hover { transform: translateY(-6px); background: #fff; border-color: var(--border); box-shadow: var(--shadow); }
.category-tile__icon {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
  background: #fff; color: var(--purple); box-shadow: var(--shadow-xs);
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.category-tile:hover .category-tile__icon { background: var(--purple); color: #fff; transform: rotate(-6deg); }
.category-tile__icon svg { width: 30px; height: 30px; }
.category-tile__name { font-family: var(--font-serif); font-size: 17px; font-weight: 600; }
.category-tile__blurb { font-size: 12.5px; color: var(--muted); }

/* =====================================================================
   PRODUCT CARDS
   ===================================================================== */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.product-grid--3 { grid-template-columns: repeat(3, 1fr); }
.product-card {
  position: relative; display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #ddd0ec; }
.product-card__media { position: relative; aspect-ratio: 4 / 5; background: var(--lavender-light); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-card__media img { transform: scale(1.06); }
.product-card__wish {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.92);
  display: grid; place-items: center; color: var(--muted); box-shadow: var(--shadow-xs);
  transition: color .2s var(--ease), transform .2s var(--ease), background .2s var(--ease);
}
.product-card__wish:hover { transform: scale(1.08); color: var(--purple); }
.product-card__wish.active { color: #e0478a; }
.product-card__wish svg { width: 18px; height: 18px; }
.product-card__wish.active svg { fill: #e0478a; }
.product-card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 3;
  opacity: 0; transform: translateY(10px);
  transition: opacity .3s var(--ease), transform .3s var(--ease);
}
.product-card:hover .product-card__quick { opacity: 1; transform: translateY(0); }
.product-card__body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.product-card__cat { font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); font-weight: 700; }
.product-card__name { font-family: var(--font-serif); font-size: 18px; font-weight: 600; line-height: 1.25; }
.product-card__name a:hover { color: var(--purple); }
.product-card__price { display: flex; align-items: baseline; gap: 9px; margin-top: auto; }
.price { font-size: 18px; font-weight: 700; color: var(--ink); }
.price--old { font-size: 13.5px; color: var(--muted); text-decoration: line-through; font-weight: 500; }
.product-card__actions { margin-top: 12px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; }
.carousel__track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 78px) / 4);
  gap: 26px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 6px 4px 18px; scrollbar-width: none; scroll-behavior: smooth;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track > * { scroll-snap-align: start; }
.carousel__nav { display: flex; gap: 10px; justify-content: center; margin-top: 4px; }
.carousel__nav .icon-btn { border: 1px solid var(--border); background: #fff; }
.carousel__nav .icon-btn:hover { border-color: var(--purple); }
@media (max-width: 1180px) { .carousel__track { grid-auto-columns: calc((100% - 52px) / 3); } }
@media (max-width: 768px) { .carousel__track { grid-auto-columns: 78%; gap: 16px; scroll-snap-type: x mandatory; } }

/* =====================================================================
   PROMO BANNER
   ===================================================================== */
.promo-banner {
  position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr;
  background: var(--lavender); border-radius: var(--radius-xl); overflow: hidden;
  min-height: 380px;
}
.promo-banner__content { padding: 60px; display: flex; flex-direction: column; justify-content: center; position: relative; z-index: 2; }
.promo-banner h2 { font-size: clamp(28px, 3.4vw, 44px); }
.promo-banner p { color: #574a68; margin: 18px 0 28px; max-width: 440px; }
.promo-banner__media { position: relative; overflow: hidden; }
.promo-banner__media img { width: 100%; height: 100%; object-fit: cover; }
.promo-banner__badge {
  position: absolute; top: 30px; right: 30px; z-index: 3;
  background: #fff; color: var(--purple-deep); text-align: center;
  padding: 16px 22px; border-radius: var(--radius); box-shadow: var(--shadow);
}
.promo-banner__badge strong { display: block; font-family: var(--font-serif); font-size: 26px; line-height: 1; }
.promo-banner__badge span { font-size: 10.5px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.promo-leaf { position: absolute; color: rgba(64, 35, 111, 0.14); z-index: 1; }
.promo-leaf--tl { top: -18px; left: -18px; width: 150px; }
.promo-leaf--bl { bottom: -26px; left: 180px; width: 130px; transform: rotate(20deg); }

/* =====================================================================
   TRUST STRIP
   ===================================================================== */
.trust-strip {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 34px 28px;
}
.trust-item { display: flex; align-items: center; gap: 15px; }
.trust-item__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--lavender-light); color: var(--purple); display: grid; place-items: center; flex-shrink: 0; }
.trust-item__icon svg { width: 22px; height: 22px; }
.trust-item__title { font-size: 12px; letter-spacing: 0.12em; font-weight: 700; text-transform: uppercase; }
.trust-item__text { font-size: 12.5px; color: var(--muted); }

/* =====================================================================
   FEATURED COLLECTIONS
   ===================================================================== */
.collection-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.collection-card {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  min-height: 420px; display: flex; flex-direction: column; justify-content: flex-end;
  color: #fff; isolation: isolate;
}
.collection-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s var(--ease); }
.collection-card::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(36,26,54,0) 30%, rgba(36,26,54,0.72) 100%); }
.collection-card:hover img { transform: scale(1.07); }
.collection-card__body { padding: 30px; }
.collection-card h3 { color: #fff; font-size: 26px; }
.collection-card p { color: rgba(255,255,255,0.85); font-size: 14px; margin: 10px 0 16px; }
.collection-card .link-arrow { color: #fff; border-color: transparent; }
.collection-card:hover .link-arrow { gap: 14px; border-color: #fff; }

/* =====================================================================
   BRAND STORY
   ===================================================================== */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.story__media { position: relative; }
.story__media img { width: 100%; border-radius: var(--radius-xl); box-shadow: var(--shadow); aspect-ratio: 4/5; object-fit: cover; }
.story__chip {
  position: absolute; right: -14px; bottom: 34px; background: #fff; border-radius: var(--radius);
  padding: 16px 20px; box-shadow: var(--shadow); max-width: 220px;
}
.story__chip strong { font-family: var(--font-serif); font-size: 24px; display: block; color: var(--purple-deep); }
.story__chip span { font-size: 12px; color: var(--muted); }
.story h2 { font-size: clamp(30px, 3.6vw, 48px); }
.story p { color: var(--muted); margin: 20px 0 28px; font-size: 16px; }

/* =====================================================================
   TESTIMONIALS
   ===================================================================== */
.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.testimonial {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 32px 28px; display: flex; flex-direction: column; gap: 16px;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.testimonial:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.testimonial__quote { font-family: var(--font-serif); font-size: 19px; line-height: 1.5; font-style: italic; color: var(--ink); }
.testimonial__foot { display: flex; align-items: center; gap: 12px; margin-top: auto; }
.testimonial__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--lavender); color: var(--purple-deep); display: grid; place-items: center; font-weight: 700; font-family: var(--font-serif); }
.testimonial__name { font-weight: 600; font-size: 14px; }
.testimonial__role { font-size: 11.5px; color: var(--muted); }

/* =====================================================================
   NEWSLETTER
   ===================================================================== */
.newsletter { background: var(--lavender); border-radius: var(--radius-xl); padding: 60px; text-align: center; position: relative; overflow: hidden; }
.newsletter h2 { font-size: clamp(28px, 3.4vw, 42px); }
.newsletter p { color: #574a68; margin: 16px auto 30px; max-width: 520px; }
.newsletter__form { display: flex; gap: 12px; max-width: 520px; margin: 0 auto; }
.field {
  flex: 1; min-width: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 14px 22px; font-size: 15px; outline: none; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field:focus { border-color: var(--purple); box-shadow: 0 0 0 3px rgba(89, 53, 143, 0.12); }
.field.invalid { border-color: #d6456f; box-shadow: 0 0 0 3px rgba(214, 69, 111, 0.12); }
.newsletter__consent { font-size: 12px; color: var(--muted); margin-top: 16px; }
.newsletter__consent a { color: var(--purple); text-decoration: underline; }
.form-msg { font-size: 13.5px; margin-top: 14px; min-height: 20px; font-weight: 600; }
.form-msg.ok { color: #2f7d54; }
.form-msg.err { color: #c23a63; }

/* =====================================================================
   DRAWERS (cart + wishlist)
   ===================================================================== */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(440px, 100%);
  background: #fff; z-index: 140; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .42s var(--ease);
  box-shadow: var(--shadow-lg);
}
.drawer.open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 24px; border-bottom: 1px solid var(--border); }
.drawer__head h2 { font-size: 22px; }
.drawer__body { flex: 1; overflow-y: auto; padding: 20px 24px; }
.drawer__foot { border-top: 1px solid var(--border); padding: 22px 24px; background: var(--lavender-light); }

.cart-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.cart-item:last-child { border-bottom: none; }
.cart-item img { width: 76px; height: 92px; border-radius: 12px; object-fit: cover; background: var(--lavender-light); }
.cart-item__name { font-weight: 600; font-size: 14.5px; }
.cart-item__variant { font-size: 12px; color: var(--muted); margin-top: 2px; }
.cart-item__price { font-size: 14px; font-weight: 700; margin-top: 6px; }
.cart-item__remove { color: var(--muted); font-size: 12px; margin-top: 8px; text-decoration: underline; }
.cart-item__remove:hover { color: #c23a63; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--radius-pill); overflow: hidden; }
.qty button { width: 32px; height: 34px; display: grid; place-items: center; color: var(--purple-deep); transition: background .2s var(--ease); }
.qty button:hover { background: var(--lavender-light); }
.qty span { min-width: 30px; text-align: center; font-size: 14px; font-weight: 600; }

.summary-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; color: var(--muted); }
.summary-row--total { font-size: 18px; font-weight: 700; color: var(--ink); margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--border); }

.empty-state { text-align: center; padding: 50px 16px; color: var(--muted); }
.empty-state svg { width: 56px; height: 56px; color: var(--lavender); margin-bottom: 16px; }
.empty-state h3 { font-size: 20px; margin-bottom: 8px; color: var(--ink); }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast {
  background: var(--purple-deep); color: #fff; padding: 13px 22px; border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  animation: toastIn .35s var(--ease);
}
.toast svg { width: 17px; height: 17px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

/* =====================================================================
   PAGE HERO / BREADCRUMB
   ===================================================================== */
.page-hero { background: var(--lavender-light); padding: 54px 0 46px; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(30px, 4vw, 48px); }
.page-hero p { color: var(--muted); margin-top: 12px; max-width: 560px; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 12.5px; color: var(--muted); margin-bottom: 18px; flex-wrap: wrap; }
.breadcrumb a:hover { color: var(--purple); }
.breadcrumb span.sep { opacity: 0.5; }

/* =====================================================================
   SHOP LAYOUT
   ===================================================================== */
.shop-layout { display: grid; grid-template-columns: 264px 1fr; gap: 40px; align-items: start; }
.filters { position: sticky; top: calc(var(--header-h) + 16px); }
.filter-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; background: #fff; }
.filter-card h3 { font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--purple); margin-bottom: 16px; }
.filter-list { display: flex; flex-direction: column; gap: 4px; }
.filter-radio, .filter-check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink); padding: 7px 0; cursor: pointer; }
.filter-radio input, .filter-check input { accent-color: var(--purple); width: 17px; height: 17px; }
.price-range { display: flex; flex-direction: column; gap: 12px; }
.price-range input[type="range"] { width: 100%; accent-color: var(--purple); }
.price-range__labels { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }

.shop-toolbar {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  justify-content: space-between; margin-bottom: 24px;
}
.shop-toolbar__search { position: relative; flex: 1; min-width: 200px; max-width: 340px; }
.shop-toolbar__search input { width: 100%; }
.shop-toolbar__search svg { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--muted); }
.shop-toolbar__search .field { padding-left: 44px; }
.toolbar-right { display: flex; align-items: center; gap: 14px; }
.result-count { font-size: 13.5px; color: var(--muted); }
.select {
  appearance: none; background: #fff 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='%2371667d' stroke-width='2.4'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center;
  border: 1px solid var(--border); border-radius: var(--radius-pill);
  padding: 12px 40px 12px 18px; font-size: 13.5px; font-weight: 600;
}
.mobile-filter-toggle { display: none; }

/* =====================================================================
   PRODUCT DETAIL
   ===================================================================== */
.pdp { display: grid; grid-template-columns: 1.05fr 1fr; gap: 54px; align-items: start; }
.pdp__gallery { position: sticky; top: calc(var(--header-h) + 20px); }
.pdp__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--lavender-light); aspect-ratio: 1/1; }
.pdp__main img { width: 100%; height: 100%; object-fit: cover; }
.pdp__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.pdp__thumb { border-radius: 14px; overflow: hidden; border: 2px solid transparent; background: var(--lavender-light); aspect-ratio: 1/1; transition: border-color .2s var(--ease); }
.pdp__thumb.active { border-color: var(--purple); }
.pdp__thumb img { width: 100%; height: 100%; object-fit: cover; }
.pdp__cat { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--purple); font-weight: 700; }
.pdp h1 { font-size: clamp(28px, 3.4vw, 42px); margin: 12px 0 14px; }
.pdp__price { display: flex; align-items: baseline; gap: 12px; margin: 18px 0; }
.pdp__price .price { font-size: 30px; }
.pdp__save { background: var(--blush); color: var(--purple-deep); font-size: 12px; font-weight: 700; padding: 5px 12px; border-radius: var(--radius-pill); }
.pdp__desc { color: var(--muted); margin: 18px 0 24px; }
.pdp__row { margin-bottom: 22px; }
.pdp__label { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; margin-bottom: 12px; color: var(--ink); }
.variants { display: flex; flex-wrap: wrap; gap: 10px; }
.variant {
  padding: 10px 18px; border: 1px solid var(--border); border-radius: var(--radius-pill);
  font-size: 13.5px; font-weight: 600; transition: all .2s var(--ease); background: #fff;
}
.variant.active { border-color: var(--purple); background: var(--lavender-light); color: var(--purple-deep); }
.pdp__actions { display: flex; gap: 14px; align-items: center; margin: 26px 0; flex-wrap: wrap; }
.pdp__actions .qty { padding: 2px; }
.pdp__actions .qty button { width: 40px; height: 42px; }
.pdp__actions .qty span { min-width: 40px; }
.pdp__meta { display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--border); padding-top: 24px; }
.pdp__meta-item { display: flex; gap: 12px; font-size: 14px; color: var(--muted); }
.pdp__meta-item svg { width: 20px; height: 20px; color: var(--purple); flex-shrink: 0; }
.pdp__meta-item strong { color: var(--ink); }

/* Accordion */
.accordion { border-top: 1px solid var(--border); }
.acc-item { border-bottom: 1px solid var(--border); }
.acc-trigger {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 20px 4px; text-align: left; font-size: 15.5px; font-weight: 600; color: var(--ink);
  font-family: var(--font-serif);
}
.acc-trigger:hover { color: var(--purple); }
.acc-trigger svg { width: 20px; height: 20px; color: var(--purple); transition: transform .3s var(--ease); flex-shrink: 0; }
.acc-item.open .acc-trigger svg { transform: rotate(45deg); }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.acc-panel__inner { padding: 0 4px 22px; color: var(--muted); font-size: 14.5px; }
.acc-item.open .acc-panel { max-height: 460px; }

/* Tabs */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid var(--border); margin-bottom: 24px; }
.tab { padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; transition: all .2s var(--ease); }
.tab:hover { color: var(--purple); }
.tab.active { color: var(--purple-deep); border-color: var(--purple); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeUp .4s var(--ease); }
.detail-list { display: flex; flex-direction: column; gap: 12px; }
.detail-list li { display: flex; gap: 12px; color: var(--muted); font-size: 14.5px; }
.detail-list li svg { width: 18px; height: 18px; color: var(--purple); flex-shrink: 0; margin-top: 3px; }

/* =====================================================================
   CONTACT / FAQ
   ===================================================================== */
.contact-layout { display: grid; grid-template-columns: 1fr 1.3fr; gap: 50px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-card { display: flex; gap: 16px; padding: 22px; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; }
.contact-card__icon { width: 46px; height: 46px; border-radius: 14px; background: var(--lavender-light); color: var(--purple); display: grid; place-items: center; flex-shrink: 0; }
.contact-card__icon svg { width: 22px; height: 22px; }
.contact-card h3 { font-family: var(--font-sans); font-size: 14px; font-weight: 700; }
.contact-card p { font-size: 13.5px; color: var(--muted); }
.social-row { display: flex; gap: 12px; }
.social-btn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border); display: grid; place-items: center; color: var(--purple-deep); transition: all .2s var(--ease); }
.social-btn:hover { background: var(--purple-deep); color: #fff; border-color: var(--purple-deep); }
.social-btn svg { width: 19px; height: 19px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 12.5px; font-weight: 600; color: var(--ink); }
.form-field .field { border-radius: var(--radius-sm); }
textarea.field { border-radius: var(--radius-sm); resize: vertical; min-height: 130px; padding: 14px 18px; }
.form-note { font-size: 12.5px; color: var(--muted); }

/* =====================================================================
   CHECKOUT
   ===================================================================== */
.checkout-layout { display: grid; grid-template-columns: 1.35fr 0.9fr; gap: 44px; align-items: start; }
.checkout-step { border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; margin-bottom: 22px; background: #fff; }
.checkout-step h2 { font-size: 22px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; }
.checkout-step h2 .step-num { width: 30px; height: 30px; border-radius: 50%; background: var(--purple-deep); color: #fff; display: grid; place-items: center; font-family: var(--font-sans); font-size: 13px; font-weight: 700; }
.order-summary { border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; background: var(--lavender-light); position: sticky; top: calc(var(--header-h) + 20px); }
.order-summary h2 { font-size: 22px; margin-bottom: 20px; }
.summary-items { max-height: 320px; overflow-y: auto; margin-bottom: 18px; }
.summary-item { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.summary-item img { width: 54px; height: 66px; border-radius: 10px; object-fit: cover; }
.summary-item__name { font-size: 13.5px; font-weight: 600; }
.summary-item__meta { font-size: 12px; color: var(--muted); }
.summary-item__price { margin-left: auto; font-size: 13.5px; font-weight: 700; white-space: nowrap; }
.notice {
  background: var(--blush); border: 1px solid #ecd3e6; color: var(--purple-ink);
  border-radius: var(--radius); padding: 16px 20px; font-size: 13.5px; display: flex; gap: 12px;
}
.notice svg { width: 20px; height: 20px; color: var(--purple); flex-shrink: 0; }

/* Order success */
.success-card { max-width: 620px; margin: 0 auto; text-align: center; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 54px 40px; background: #fff; box-shadow: var(--shadow-sm); }
.success-card__icon { width: 78px; height: 78px; border-radius: 50%; background: var(--lavender); color: var(--purple); display: grid; place-items: center; margin: 0 auto 24px; }
.success-card__icon svg { width: 38px; height: 38px; }

/* =====================================================================
   FOOTER
   ===================================================================== */
.site-footer { background: var(--purple-deep); color: #d8cdea; margin-top: 20px; position: relative; overflow: hidden; }
.footer-top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.4fr; gap: 40px; padding: 72px 0 54px; position: relative; z-index: 2; }
.footer-brand .brand__mark { background: rgba(255,255,255,0.12); }
.footer-brand .brand__name { color: #fff; }
.footer-brand .brand__tag { color: #b9a6d6; }
.footer-about { color: #b9a6d6; font-size: 13.5px; margin-top: 18px; max-width: 300px; }
.footer-col h4 { color: #fff; font-family: var(--font-sans); font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; }
.footer-col ul { display: flex; flex-direction: column; gap: 12px; }
.footer-col a { color: #c8b9df; font-size: 14px; transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-news p { color: #b9a6d6; font-size: 13.5px; margin-bottom: 16px; }
.footer-form { display: flex; gap: 8px; }
.footer-form .field { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.18); color: #fff; padding: 12px 18px; }
.footer-form .field::placeholder { color: #b9a6d6; }
.footer-form .field:focus { border-color: #fff; box-shadow: 0 0 0 3px rgba(255,255,255,0.15); }
.footer-form .btn { padding: 12px 16px; }
.footer-social { display: flex; gap: 12px; margin-top: 20px; }
.footer-social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,0.18); display: grid; place-items: center; color: #d8cdea; transition: all .2s var(--ease); }
.footer-social a:hover { background: #fff; color: var(--purple-deep); }
.footer-social svg { width: 18px; height: 18px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.12); padding: 24px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: #a292c4; position: relative; z-index: 2; }
.footer-bottom a:hover { color: #fff; }
.footer-leaf { position: absolute; color: rgba(255,255,255,0.06); z-index: 1; }
.footer-leaf--l { left: -30px; bottom: -20px; width: 300px; }
.footer-leaf--r { right: -40px; top: -30px; width: 260px; transform: rotate(180deg); }

/* =====================================================================
   ANIMATIONS
   ===================================================================== */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* =====================================================================
   RESPONSIVE
   ===================================================================== */
@media (max-width: 1180px) {
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 992px) {
  .main-nav { display: none; }
  .hamburger { display: grid; }
  .header-inner { gap: 8px; }

  .hero__grid { grid-template-columns: 1fr; min-height: 0; }
  .hero__content { padding: 48px 0 8px; max-width: 100%; }
  .hero__visual { min-height: 380px; order: -1; }
  .hero__visual img { border-radius: 0 0 40% 40% / 0 0 24% 24%; min-height: 380px; }

  .story { grid-template-columns: 1fr; gap: 40px; }
  .story__media img { aspect-ratio: 16/12; }
  .shop-layout { grid-template-columns: 1fr; }
  .filters { position: static; }
  .filters.collapsed { display: none; }
  .mobile-filter-toggle { display: inline-flex; }
  .pdp { grid-template-columns: 1fr; gap: 34px; }
  .pdp__gallery { position: static; }
  .contact-layout { grid-template-columns: 1fr; gap: 34px; }
  .checkout-layout { grid-template-columns: 1fr; }
  .order-summary { position: static; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); }
  .collection-grid { grid-template-columns: 1fr; }
  .collection-card { min-height: 320px; }
  .promo-banner { grid-template-columns: 1fr; }
  .promo-banner__content { padding: 40px; }
  .promo-banner__media { min-height: 260px; order: -1; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 34px; padding: 52px 0 40px; }
}
@media (max-width: 768px) {
  :root { --header-h: 72px; }
  .section { padding: 62px 0; }
  .container { padding: 0 18px; }
  .product-grid, .product-grid--3 { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .testimonial-grid { grid-template-columns: 1fr; }
  .newsletter { padding: 40px 24px; }
  .newsletter__form { flex-direction: column; }
  .newsletter__form .btn { width: 100%; }
  .brand__tag { display: none; }
  .promo-bar { font-size: 11px; }
  .footer-bottom { flex-direction: column; }
}
@media (max-width: 520px) {
  .brand__name { font-size: 15px; }
  .brand__mark { width: 38px; height: 38px; }
  .brand__mark svg { width: 20px; height: 20px; }
  .trust-strip { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .hero__benefits { gap: 14px; }
  .btn { padding: 13px 20px; }
  .hero__badge { width: 100px; height: 100px; left: 3%; bottom: 6%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
