/* ============================================================
   GLOW THEORY SKINCARE — styles
   Palette: ivory #F7F2ED · rose #D9A9B3 · plum #4B1F3B
            beige #E8DDD3 · ink #292326
   ============================================================ */

:root {
  --ivory: #F7F2ED;
  --rose: #D9A9B3;
  --rose-deep: #C7899A;
  --plum: #4B1F3B;
  --plum-soft: #6A3459;
  --beige: #E8DDD3;
  --ink: #292326;
  --muted: #7C6B74;
  --white: #FFFFFF;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 4px 14px rgba(75, 31, 59, .06);
  --shadow-md: 0 14px 38px rgba(75, 31, 59, .10);
  --shadow-lg: 0 26px 60px rgba(75, 31, 59, .16);
  --ease: cubic-bezier(.22, .61, .36, 1);
  --maxw: 1240px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: "Jost", "Segoe UI", system-ui, -apple-system, sans-serif;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: "Cormorant Garamond", "Georgia", serif;
  font-weight: 600;
  color: var(--plum);
  line-height: 1.12;
  margin: 0;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

button { font-family: inherit; cursor: pointer; }

.section { max-width: var(--maxw); margin: 0 auto; padding: 82px 28px; }

.eyebrow {
  font-family: "Jost", sans-serif;
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: 11px;
  font-weight: 600;
  color: var(--rose-deep);
  margin: 0 0 12px;
}

.section-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.section-head h2 { font-size: clamp(30px, 4vw, 46px); letter-spacing: .01em; }
.section-head .sub { color: var(--muted); margin: 12px 0 0; font-size: 16px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 14px 30px;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: .04em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.btn-primary { background: var(--plum); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--plum-soft); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-ghost { background: transparent; border-color: var(--plum); color: var(--plum); }
.btn-ghost:hover { background: var(--plum); color: #fff; transform: translateY(-2px); }
.btn-light { background: #fff; color: var(--plum); }
.btn-light:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-block { width: 100%; }
.btn-small { padding: 10px 20px; font-size: 13px; }

/* ---------- Announcement ---------- */
.announcement {
  background: var(--plum);
  color: var(--rose);
  text-align: center;
  padding: 9px 16px;
}
.announcement p { margin: 0; font-size: 12.5px; letter-spacing: .06em; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 242, 237, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.logo { display: flex; align-items: center; gap: 12px; margin-right: auto; }
.logo-mark {
  width: 42px; height: 42px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 25%, var(--rose), var(--plum));
  color: #fff;
  display: grid; place-items: center;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px; font-weight: 700;
}
.logo-text {
  display: flex; flex-direction: column; line-height: 1;
  font-family: "Cormorant Garamond", serif;
  font-size: 24px; font-weight: 700; letter-spacing: .06em; color: var(--plum);
}
.logo-text em { font-style: normal; color: var(--rose-deep); }
.logo-text small {
  font-family: "Jost", sans-serif;
  font-size: 9px; letter-spacing: .42em; font-weight: 500;
  color: var(--muted); margin-top: 3px;
}
.logo-text.light { color: #fff; }
.logo-text.light small { color: rgba(255,255,255,.6); }

.main-nav { display: flex; gap: 30px; }
.main-nav a {
  font-size: 14px; font-weight: 500; letter-spacing: .05em;
  color: var(--ink); position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ""; position: absolute; left: 0; bottom: 0;
  width: 0; height: 1.5px; background: var(--rose-deep);
  transition: width .3s var(--ease);
}
.main-nav a:hover::after { width: 100%; }

.header-actions { display: flex; align-items: center; gap: 8px; }

.header-search {
  display: flex; align-items: center;
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: 999px;
  padding: 4px 6px 4px 16px;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.header-search:focus-within { border-color: var(--rose); box-shadow: 0 0 0 4px rgba(217,169,179,.22); }
.header-search input {
  border: 0; background: transparent; outline: none;
  font-size: 14px; width: 150px; color: var(--ink);
}
.header-search button {
  border: 0; background: var(--plum); color: #fff;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .3s var(--ease);
}
.header-search button:hover { background: var(--plum-soft); }

.icon-btn {
  position: relative;
  border: 1px solid var(--beige);
  background: var(--white);
  color: var(--plum);
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  transition: background .3s var(--ease), transform .3s var(--ease);
}
.icon-btn:hover { background: var(--beige); transform: translateY(-1px); }
.badge {
  position: absolute; top: -4px; right: -4px;
  min-width: 19px; height: 19px; padding: 0 5px;
  background: var(--rose-deep); color: #fff;
  font-size: 11px; font-weight: 600; border-radius: 999px;
  display: grid; place-items: center;
  font-family: "Jost", sans-serif;
}

.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; padding: 6px; }
.nav-toggle span { width: 24px; height: 2px; background: var(--plum); border-radius: 2px; transition: .3s var(--ease); }

/* ---------- Hero ---------- */
.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 56px 28px 70px;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-media {
  position: relative;
  border-radius: 260px 260px var(--radius) var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow-lg);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-copy h1 {
  font-size: clamp(46px, 7vw, 86px);
  letter-spacing: .01em;
  margin: 6px 0 20px;
}
.hero-copy h1 span { color: var(--rose-deep); }
.lede { color: var(--muted); font-size: 17px; max-width: 44ch; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-points {
  list-style: none; display: flex; gap: 26px; padding: 0; margin: 34px 0 0;
  font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
}
.hero-points li { position: relative; padding-left: 18px; }
.hero-points li::before {
  content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%);
  width: 8px; height: 8px; border-radius: 50%; background: var(--rose);
}

/* ---------- Categories ---------- */
.category-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}
.category-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-sm);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.category-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.category-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.category-card:hover img { transform: scale(1.06); }
.category-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(43,17,34,.72) 0%, rgba(43,17,34,.05) 55%, transparent 100%);
}
.category-label {
  position: absolute; left: 18px; right: 18px; bottom: 18px; z-index: 2;
  color: #fff;
}
.category-label h3 { color: #fff; font-size: 21px; }
.category-label span { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .82; }

/* ---------- Products ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.product-card {
  background: var(--white);
  border: 1px solid var(--beige);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .4s var(--ease), box-shadow .4s var(--ease), border-color .4s var(--ease);
}
.product-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: var(--rose); }
.product-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: var(--ivory); }
.product-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.product-card:hover .product-media img { transform: scale(1.05); }
.tag {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: var(--plum); color: #fff;
  font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase;
  padding: 5px 11px; border-radius: 999px;
}
.tag.rose { background: var(--rose-deep); }
.wish {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--beige); background: rgba(255,255,255,.92);
  color: var(--plum); display: grid; place-items: center;
  transition: transform .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
}
.wish:hover { transform: scale(1.08); }
.wish.active { background: var(--rose-deep); color: #fff; border-color: var(--rose-deep); }
.wish svg path { transition: fill .25s var(--ease); }
.wish.active svg path { fill: currentColor; }

.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; flex: 1; }
.product-cat { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--rose-deep); margin: 0 0 6px; }
.product-name { font-size: 21px; margin: 0 0 6px; }
.product-brand { font-size: 12px; color: var(--muted); margin: 0 0 12px; }
.product-brand em { font-style: normal; color: var(--rose-deep); }
.product-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-size: 18px; font-weight: 600; color: var(--plum); font-family: "Jost", sans-serif; }
.price s { color: var(--muted); font-weight: 400; font-size: 13px; margin-left: 6px; }
.add-btn {
  border: 1px solid var(--plum); background: transparent; color: var(--plum);
  border-radius: 999px; padding: 9px 18px; font-size: 13px; font-weight: 500;
  transition: background .3s var(--ease), color .3s var(--ease), transform .3s var(--ease);
}
.add-btn:hover { background: var(--plum); color: #fff; transform: translateY(-1px); }
.add-btn.added { background: var(--rose-deep); border-color: var(--rose-deep); color: #fff; }

/* ---------- Brands ---------- */
.brands { text-align: center; }
.brand-grid {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  max-width: 900px; margin: 0 auto;
}
.brand-chip {
  border: 1px solid var(--beige); background: var(--white);
  border-radius: 999px; padding: 14px 26px;
  font-family: "Cormorant Garamond", serif; font-size: 21px; font-weight: 600;
  color: var(--plum); letter-spacing: .01em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.brand-chip:hover, .brand-chip.active {
  transform: translateY(-3px); box-shadow: var(--shadow-sm);
  border-color: var(--rose-deep); background: var(--plum); color: #fff;
}
.disclaimer { max-width: 760px; margin: 34px auto 0; font-size: 12.5px; color: var(--muted); line-height: 1.7; }

/* ---------- Promo ---------- */
.promo { background: var(--beige); }
.promo-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
.promo-media { position: relative; min-height: 380px; }
.promo-media img { width: 100%; height: 100%; object-fit: cover; }
.promo-copy {
  background: var(--plum); color: #fff;
  padding: 60px 54px;
  display: flex; flex-direction: column; justify-content: center;
}
.promo-copy .eyebrow { color: var(--rose); }
.promo-copy h2 { color: #fff; font-size: clamp(30px, 3.6vw, 44px); margin-bottom: 14px; }
.promo-copy p { color: rgba(255,255,255,.82); margin: 0 0 26px; max-width: 42ch; }
.promo-copy .btn { align-self: flex-start; }

/* ---------- Filters ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px;
  padding: 18px 20px; background: var(--white);
  border: 1px solid var(--beige); border-radius: var(--radius);
  margin-bottom: 22px;
}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-group::before {
  content: attr(data-label);
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); margin-right: 4px;
}
.chip {
  border: 1px solid var(--beige); background: var(--ivory);
  color: var(--ink); border-radius: 999px; padding: 8px 16px; font-size: 13px;
  transition: all .25s var(--ease);
}
.chip:hover { border-color: var(--rose); }
.chip.active { background: var(--plum); border-color: var(--plum); color: #fff; }
#clearFilters { margin-left: auto; }
.result-count { color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.empty-state { text-align: center; color: var(--muted); padding: 40px 0; }

/* ---------- Benefits ---------- */
.benefits { text-align: center; }
.benefit-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px;
}
.benefit {
  background: var(--white); border: 1px solid var(--beige);
  border-radius: var(--radius); padding: 34px 26px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.benefit:hover { transform: translateY(-5px); box-shadow: var(--shadow-sm); }
.benefit-ico {
  width: 58px; height: 58px; border-radius: 50%;
  background: var(--beige); color: var(--plum);
  display: grid; place-items: center; margin: 0 auto 18px;
}
.benefit h3 { font-size: 22px; margin-bottom: 8px; }
.benefit p { color: var(--muted); font-size: 14.5px; margin: 0; }

/* ---------- Newsletter ---------- */
.newsletter {
  background: linear-gradient(135deg, var(--plum), var(--plum-soft));
  color: #fff; margin-top: 20px;
}
.newsletter-inner { max-width: 660px; margin: 0 auto; padding: 74px 28px; text-align: center; }
.newsletter .eyebrow { color: var(--rose); }
.newsletter h2 { color: #fff; font-size: clamp(30px, 4vw, 44px); }
.newsletter p { color: rgba(255,255,255,.82); }
.newsletter-form { display: flex; gap: 10px; max-width: 520px; margin: 26px auto 0; }
.newsletter-form input {
  flex: 1; border: 1px solid transparent; border-radius: 999px;
  padding: 15px 22px; font-size: 14px; font-family: inherit; outline: none;
  background: rgba(255,255,255,.96); color: var(--ink);
}
.newsletter-form input:focus { box-shadow: 0 0 0 4px rgba(217,169,179,.4); }
.newsletter-form.error input { box-shadow: 0 0 0 3px #e0567a; }
.form-msg { min-height: 20px; font-size: 13.5px; margin: 14px 0 0; }
.form-msg.ok { color: #ffe1ea; }
.form-msg.err { color: #ffb3c6; }

/* ---------- Footer ---------- */
.site-footer { background: #2E1224; color: rgba(255,255,255,.78); padding: 66px 28px 26px; }
.footer-grid {
  max-width: var(--maxw); margin: 0 auto;
  display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 34px;
}
.footer-brand p { margin: 16px 0 0; max-width: 34ch; font-size: 14px; }
.footer-col h4 { color: #fff; font-family: "Jost", sans-serif; font-size: 13px; letter-spacing: .18em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col a { display: block; color: rgba(255,255,255,.78); font-size: 14.5px; margin-bottom: 10px; transition: color .25s var(--ease); }
.footer-col a:hover { color: var(--rose); }
.footer-col address { font-style: normal; font-size: 14.5px; line-height: 1.7; margin-top: 4px; }
.footer-bottom {
  max-width: var(--maxw); margin: 44px auto 0; padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.14);
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255,255,255,.55);
}
.footer-bottom p { margin: 0; }

/* ---------- Drawers ---------- */
.overlay {
  position: fixed; inset: 0; background: rgba(41,35,38,.5);
  backdrop-filter: blur(2px); z-index: 90; opacity: 0; transition: opacity .3s var(--ease);
}
.overlay.show { opacity: 1; }
.drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(420px, 92vw);
  background: var(--ivory); z-index: 100; display: flex; flex-direction: column;
  transform: translateX(100%); transition: transform .38s 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(--beige);
}
.drawer-head h3 { font-size: 26px; }
.close-btn { background: none; border: 0; font-size: 30px; line-height: 1; color: var(--plum); padding: 0 4px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.drawer-empty { padding: 40px 24px; text-align: center; color: var(--muted); }
.cart-item, .wish-item {
  display: grid; grid-template-columns: 68px 1fr auto; gap: 14px;
  padding: 14px 0; border-bottom: 1px solid var(--beige);
}
.cart-item img, .wish-item img { width: 68px; height: 84px; object-fit: cover; border-radius: var(--radius-sm); background: var(--white); }
.cart-item h4, .wish-item h4 { font-family: "Jost", sans-serif; font-size: 15px; font-weight: 500; color: var(--ink); margin: 0 0 4px; }
.cart-item .ci-price, .wish-item .ci-price { font-size: 14px; color: var(--plum); font-weight: 600; }
.qty { display: inline-flex; align-items: center; gap: 0; border: 1px solid var(--beige); border-radius: 999px; overflow: hidden; margin-top: 8px; }
.qty button { width: 30px; height: 30px; border: 0; background: var(--white); color: var(--plum); font-size: 16px; }
.qty button:hover { background: var(--beige); }
.qty span { min-width: 30px; text-align: center; font-size: 14px; }
.remove-btn { border: 0; background: none; color: var(--muted); font-size: 12px; text-decoration: underline; align-self: start; }
.remove-btn:hover { color: var(--rose-deep); }
.wish-item .to-cart { align-self: start; }
.drawer-foot { padding: 20px 24px; border-top: 1px solid var(--beige); background: var(--white); }
.cart-total { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 16px; }
.cart-total strong { font-size: 22px; color: var(--plum); }
.drawer-note { text-align: center; font-size: 12px; color: var(--muted); margin: 12px 0 0; }

/* ---------- Toasts ---------- */
.toast-wrap { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 12px; }
.toast {
  background: var(--plum); color: #fff; padding: 14px 20px; border-radius: 12px;
  box-shadow: var(--shadow-md); font-size: 14px; min-width: 240px;
  display: flex; align-items: center; gap: 10px;
  transform: translateY(14px); opacity: 0; transition: transform .35s var(--ease), opacity .35s var(--ease);
}
.toast.show { transform: translateY(0); opacity: 1; }
.toast .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rose); flex: 0 0 auto; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 34px; text-align: center; }
  .hero-media { border-radius: var(--radius); aspect-ratio: 16 / 12; max-width: 560px; margin: 0 auto; }
  .hero-copy .eyebrow, .hero-points { justify-content: center; }
  .hero-cta { justify-content: center; }
  .hero-points { justify-content: center; }
  .lede { margin-left: auto; margin-right: auto; }
  .category-grid { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .section { padding: 58px 20px; }
  .header-inner { padding: 14px 18px; gap: 12px; flex-wrap: wrap; }
  .nav-toggle { display: flex; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--ivory); border-bottom: 1px solid var(--beige);
    flex-direction: column; gap: 0; padding: 8px 18px;
    max-height: 0; overflow: hidden; transition: max-height .35s var(--ease);
  }
  .main-nav.open { max-height: 320px; }
  .main-nav a { padding: 14px 0; border-bottom: 1px solid var(--beige); }
  .header-search { order: 5; width: 100%; }
  .header-search input { width: 100%; }
  .logo-text { font-size: 20px; }
  .category-grid { grid-template-columns: repeat(2, 1fr); }
  .category-card:last-child { grid-column: span 2; aspect-ratio: 16 / 9; }
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .product-body { padding: 14px; }
  .product-name { font-size: 18px; }
  .add-btn { padding: 8px 12px; font-size: 12px; }
  .promo-inner { grid-template-columns: 1fr; }
  .promo-media { min-height: 240px; }
  .promo-copy { padding: 44px 26px; }
  .benefit-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; }
  #clearFilters { margin-left: 0; }
  .toast-wrap { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; }
}

@media (max-width: 400px) {
  .product-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
}
