:root {
  --bg: #f6f0e8;
  --bg-strong: #efe6da;
  --surface: rgba(255, 252, 247, 0.82);
  --surface-solid: #fffaf4;
  --surface-contrast: #f1e7da;
  --line: rgba(71, 60, 52, 0.08);
  --text: #2f2925;
  --muted: #766b62;
  --accent: #c67c62;
  --accent-deep: #9e5f4a;
  --shadow: 0 18px 50px rgba(62, 43, 28, 0.09);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --max-width: 440px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.9), transparent 32%),
    linear-gradient(180deg, #fbf7f2 0%, var(--bg) 100%);
}

body.is-locked {
  overflow: hidden;
}

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

button,
input {
  font: inherit;
}

button {
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
}

.page-shell {
  max-width: var(--max-width);
  min-height: 100vh;
  margin: 0 auto;
  padding: 20px 18px 108px;
  position: relative;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.brand,
.product-info h1,
.hero h1,
.section-header h2,
.editorial-card h3 {
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}

.brand {
  font-size: 1.2rem;
  font-weight: 700;
}

.icon-button,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.icon-button span,
.icon-button span::before {
  content: "";
  display: block;
  position: absolute;
}

#searchToggle span {
  width: 14px;
  height: 14px;
  border: 2px solid var(--text);
  border-radius: 50%;
}

#searchToggle span::before {
  width: 8px;
  height: 2px;
  background: var(--text);
  transform: translate(9px, 11px) rotate(45deg);
  border-radius: 99px;
}

.close-button span,
.close-button span::before {
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 99px;
}

.close-button span {
  transform: rotate(45deg);
}

.close-button span::before {
  transform: rotate(90deg);
}

.heart,
.heart::before,
.heart::after {
  position: absolute;
  width: 10px;
  height: 16px;
  background: transparent;
  border: 2px solid var(--text);
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
  border-bottom: 0;
}

.heart {
  transform: rotate(-45deg) translateX(2px);
}

.heart::before,
.heart::after {
  content: "";
}

.heart::before {
  transform: rotate(90deg) translate(5px, -5px);
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.hero {
  padding: 26px;
  border-radius: 38px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.8), rgba(249, 238, 228, 0.88)),
    var(--surface-solid);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2.2rem, 8vw, 3.4rem);
  line-height: 0.98;
}

.hero-text,
.innovation-copy p,
.product-meta,
.accordion-group p,
.review-item p,
.entry-card span,
.ritual-card span {
  color: var(--muted);
  line-height: 1.55;
}

.hero-text {
  margin: 16px 0 0;
  max-width: 25ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.primary-button,
.round-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--text);
  color: #f8f4ef;
  font-weight: 700;
}

.secondary-link,
.section-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  color: var(--text);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  height: 300px;
  margin-top: 28px;
}

.orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.orb-one {
  width: 228px;
  height: 228px;
  right: -30px;
  top: 6px;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.94), rgba(232, 201, 184, 0.75));
}

.orb-two {
  width: 140px;
  height: 140px;
  left: 10px;
  bottom: 10px;
  background: radial-gradient(circle at 20% 20%, rgba(255, 250, 244, 0.96), rgba(215, 166, 142, 0.55));
}

.product-silhouette {
  position: absolute;
  inset: 18px 42px 0;
}

.cap,
.body,
.label {
  display: block;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.cap {
  top: 0;
  width: 92px;
  height: 52px;
  border-radius: 24px 24px 12px 12px;
  background: linear-gradient(180deg, #3a332f, #1d1816);
}

.body {
  top: 44px;
  width: 154px;
  height: 210px;
  border-radius: 38px;
  background: linear-gradient(180deg, rgba(255, 249, 241, 0.92), rgba(235, 219, 204, 0.88));
  border: 1px solid rgba(80, 63, 50, 0.08);
  box-shadow: 0 30px 35px rgba(95, 74, 57, 0.12);
}

.label {
  top: 114px;
  width: 104px;
  height: 54px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid rgba(48, 33, 22, 0.07);
}

.micro-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.micro-points span,
.panel-tags span,
.review-tags span {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.88rem;
}

.quick-entry,
.problem-grid,
.ritual-cards {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.entry-card,
.ritual-card,
.editorial-card,
.innovation-block,
.gallery-card,
.product-info,
.benefits-card,
.reviews-card {
  border-radius: var(--radius-xl);
  background: var(--surface);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow);
}

.entry-card {
  padding: 20px;
}

.entry-card strong,
.ritual-card p,
.editorial-card h3 {
  display: block;
  margin-bottom: 8px;
  font-size: 1.08rem;
}

.entry-accent {
  background: linear-gradient(145deg, rgba(204, 126, 98, 0.17), rgba(255, 252, 247, 0.9));
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin: 34px 0 18px;
}

.section-header h2 {
  margin: 0;
  font-size: 1.7rem;
  line-height: 1.02;
}

.catalog-count {
  color: var(--muted);
  font-size: 0.9rem;
}

.section-header.compact {
  margin-top: 0;
}

.product-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.catalog-block {
  margin-top: 34px;
}

.filter-shell {
  display: grid;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  border-radius: var(--radius-xl);
  background: rgba(255, 252, 247, 0.72);
  border: 1px solid var(--line);
  backdrop-filter: blur(14px);
}

.filter-group {
  display: grid;
  gap: 10px;
}

.filter-label {
  margin: 0;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.chip-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-chip {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
  color: var(--text);
}

.filter-chip.is-selected {
  background: var(--text);
  border-color: var(--text);
  color: #f8f4ef;
}

.catalog-grid {
  display: grid;
  gap: 14px;
}

.empty-state {
  margin: 16px 0 0;
  color: var(--muted);
}

.product-card {
  scroll-snap-align: start;
  padding: 18px;
  border-radius: var(--radius-xl);
  background: rgba(255, 250, 244, 0.9);
  border: 1px solid var(--line);
}

.product-art,
.gallery-main {
  width: 100%;
  border-radius: 28px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.86), transparent 32%),
    linear-gradient(180deg, rgba(222, 195, 177, 0.42), rgba(242, 234, 227, 0.98));
}

.product-art {
  height: 236px;
}

.gallery-main {
  height: 380px;
}

.tint {
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.9), transparent 28%),
    linear-gradient(180deg, rgba(212, 177, 153, 0.72), rgba(250, 242, 235, 0.98));
}

.blush {
  background:
    radial-gradient(circle at 50% 40%, rgba(255, 239, 240, 0.95), transparent 20%),
    linear-gradient(180deg, rgba(205, 134, 131, 0.74), rgba(248, 236, 233, 0.98));
}

.serum {
  background:
    radial-gradient(circle at 40% 24%, rgba(255, 255, 255, 0.88), transparent 26%),
    linear-gradient(180deg, rgba(174, 156, 133, 0.78), rgba(241, 234, 225, 0.98));
}

.texture {
  background:
    radial-gradient(circle at 42% 48%, rgba(255, 232, 219, 0.92), transparent 24%),
    linear-gradient(180deg, rgba(221, 193, 171, 0.86), rgba(246, 234, 221, 0.98));
}

.lifestyle {
  background:
    radial-gradient(circle at 56% 34%, rgba(255, 248, 240, 0.93), transparent 18%),
    linear-gradient(180deg, rgba(199, 160, 139, 0.74), rgba(242, 229, 216, 0.98));
}

.product-category {
  margin: 14px 0 6px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.74rem;
}

.product-card h3,
.product-page h1 {
  margin: 0;
  font-size: 1.28rem;
}

.product-footer,
.rating-row,
.sticky-cart-bar,
.search-panel-header,
.gallery-thumbs,
.topbar-subpage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.round-button {
  min-height: 44px;
  padding: 0 14px;
  font-size: 0.92rem;
}

.problem-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.problem-grid a {
  min-height: 104px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
  display: flex;
  align-items: end;
  font-weight: 700;
}

.innovation-block {
  padding: 22px;
  margin-top: 34px;
}

.innovation-panel {
  margin-top: 20px;
  padding: 18px;
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(240, 226, 214, 0.78));
}

.panel-face {
  position: relative;
  height: 250px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.44);
  overflow: hidden;
}

.face-outline {
  position: absolute;
  inset: 24px 70px;
  border-radius: 120px 120px 100px 100px;
  border: 1px solid rgba(77, 56, 42, 0.14);
}

.swatch {
  position: absolute;
  width: 92px;
  height: 20px;
  border-radius: 999px;
  left: 50%;
  transform: translateX(-50%);
}

.swatch-one {
  bottom: 88px;
  background: rgba(204, 130, 129, 0.68);
}

.swatch-two {
  bottom: 56px;
  background: rgba(184, 121, 95, 0.62);
}

.swatch-three {
  bottom: 24px;
  background: rgba(148, 86, 91, 0.68);
}

.panel-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.ritual-card,
.editorial-card,
.product-info,
.benefits-card,
.reviews-card {
  padding: 20px;
}

.editorial-card {
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.78), rgba(237, 226, 216, 0.9)),
    var(--surface-solid);
}

.editorial-tag {
  margin: 0 0 10px;
  text-transform: uppercase;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 404px);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding: 10px;
  border-radius: 28px;
  background: rgba(32, 27, 24, 0.94);
  box-shadow: 0 24px 44px rgba(27, 18, 14, 0.28);
}

.bottom-nav-item {
  min-height: 56px;
  border-radius: 20px;
  color: rgba(255, 246, 238, 0.72);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
}

.bottom-nav-item.is-active,
.bottom-nav-item.nav-emphasis {
  background: rgba(255, 255, 255, 0.08);
  color: #fff6ef;
}

.search-panel {
  position: fixed;
  inset: auto 0 0;
  max-width: var(--max-width);
  margin: 0 auto;
  left: 0;
  right: 0;
  padding: 20px 18px 30px;
  background: #fffaf4;
  border-radius: 28px 28px 0 0;
  box-shadow: 0 -18px 42px rgba(54, 35, 20, 0.12);
  transform: translateY(110%);
  transition: transform 240ms ease;
  z-index: 30;
}

.search-panel.is-open {
  transform: translateY(0);
}

.search-field {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  color: var(--muted);
}

.search-field input {
  height: 56px;
  padding: 0 18px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: rgba(247, 240, 233, 0.72);
  color: var(--text);
}

.search-suggestions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.search-suggestions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--surface-contrast);
  color: var(--text);
  cursor: pointer;
}

.overlay {
  position: fixed;
  inset: 0;
  background: rgba(24, 18, 15, 0.26);
  backdrop-filter: blur(4px);
  z-index: 20;
}

.product-shell {
  padding-bottom: 132px;
}

.gallery-card {
  padding: 18px;
}

.gallery-thumbs {
  margin-top: 14px;
}

.thumb {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  border: 1px solid transparent;
}

.thumb.is-selected {
  border-color: rgba(47, 41, 37, 0.24);
}

.product-page {
  display: grid;
  gap: 18px;
}

.product-info h1 {
  margin-top: 0;
  font-size: 2rem;
}

.product-meta.large {
  margin-top: 10px;
}

.rating-row {
  justify-content: flex-start;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.92rem;
  margin-top: 16px;
}

.price {
  display: block;
  margin-top: 14px;
  font-size: 1.6rem;
}

.swatch-section {
  padding: 0 4px;
}

.swatch-grid {
  display: grid;
  gap: 12px;
}

.shade {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 12px;
  align-items: center;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid transparent;
  text-align: left;
}

.shade.is-selected {
  border-color: rgba(47, 41, 37, 0.18);
  background: rgba(255, 255, 255, 0.8);
}

.shade-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  grid-row: span 2;
}

.fair {
  background: #efd7c5;
}

.beige {
  background: #d6b19c;
}

.honey {
  background: #b98d69;
}

.shade small {
  color: var(--muted);
}

.benefits-card {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.benefits-card span {
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
  display: inline-flex;
  align-items: center;
}

.accordion-group {
  display: grid;
  gap: 10px;
}

.accordion-group details {
  padding: 20px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.56);
  border: 1px solid var(--line);
}

.accordion-group summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}

.accordion-group summary::-webkit-details-marker {
  display: none;
}

.accordion-group p {
  margin: 14px 0 0;
}

.review-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.review-item + .review-item {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.sticky-cart-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  width: min(calc(100% - 28px), 404px);
  padding: 12px;
  border-radius: 28px;
  background: rgba(255, 250, 244, 0.95);
  border: 1px solid rgba(52, 39, 30, 0.08);
  box-shadow: 0 24px 44px rgba(27, 18, 14, 0.16);
  z-index: 15;
}

.sticky-cart-bar small {
  display: block;
  color: var(--muted);
}

@media (min-width: 768px) {
  .page-shell,
  .product-shell {
    max-width: 1200px;
    padding-left: 40px;
    padding-right: 40px;
  }

  .home-page {
    display: grid;
    gap: 26px;
  }

  .hero {
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 22px;
    align-items: center;
  }

  .hero-visual,
  .hero-copy {
    margin: 0;
  }

  .quick-entry {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-rail {
    grid-auto-flow: initial;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }

  .innovation-block {
    display: grid;
    grid-template-columns: 1fr 0.9fr;
    gap: 20px;
    align-items: center;
  }

  .ritual-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .product-page {
    grid-template-columns: 0.95fr 1.05fr;
    align-items: start;
  }

  .gallery-card {
    position: sticky;
    top: 24px;
  }

  .swatch-section,
  .benefits-card,
  .accordion-group,
  .reviews-card,
  .related-products {
    grid-column: 2;
  }
}
