@font-face {
  font-family: Cairo;
  src: url("assets/cairo-arabic.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0600-06FF, U+0750-077F, U+0870-089F, U+08A0-08FF, U+200C-200E, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FEFF;
}

@font-face {
  font-family: Cairo;
  src: url("assets/cairo-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193, U+2212, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --paper: #fffcfa;
  --ink: #3d272d;
  --subtle: #6c5057;
  --berry: #8b3c52;
  --berry-dark: #6c2940;
  --pink: #f5e2e4;
  --pearl: #fff5f4;
  --line: #ead9d9;
  --width: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font: 500 1rem/1.75 Cairo, Tahoma, system-ui, sans-serif; }
[hidden] { display: none !important; }
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p, figure, blockquote, dl, dd { margin: 0; }
h1, h2, h3 { line-height: 1.32; text-wrap: balance; }
h2 { font-size: clamp(1.7rem, 3.3vw, 2.65rem); font-weight: 850; }
h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); font-weight: 800; }
section[id] { scroll-margin-top: 1rem; }
:focus-visible { outline: 3px solid var(--berry); outline-offset: 3px; }
.frame { width: min(var(--width), calc(100% - 4rem)); margin-inline: auto; }
.skip { position: fixed; z-index: 10; inset: .5rem .5rem auto auto; padding: .5rem 1rem; background: white; transform: translateY(-200%); }
.skip:focus { transform: none; }

.masthead { border-bottom: 1px solid var(--line); background: white; }
.masthead-inner { min-height: 83px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; }
.brand { display: inline-flex; place-content: center; width: fit-content; }
.brand img { width: 105px; height: 62px; object-fit: contain; }
.top-links { display: flex; gap: clamp(.8rem, 2vw, 1.65rem); color: var(--subtle); }
.top-links a, .top-shop { font-size: .9rem; font-weight: 750; text-decoration: none; }
.top-links a:hover { text-decoration: underline; }
.top-shop { justify-self: end; border: 1px solid #b77a85; border-radius: 999px; padding: .4rem 1.05rem; color: var(--berry-dark); }
.top-shop:hover { background: var(--pearl); }

.reviews { padding: .7rem 0 1rem; background: #fffaf7; border-bottom: 1px solid var(--line); }
.reviews-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: .45rem; }
.reviews h2 { font-size: 1.06rem; }
.controls { display: flex; gap: .25rem; }
.controls button { width: 32px; height: 32px; padding: 0; line-height: 1; background: white; border: 1px solid var(--line); border-radius: 50%; font-family: system-ui, sans-serif; font-size: .95rem; color: var(--berry-dark); }
.controls button:hover { background: var(--pink); }
.reviews-track { display: grid; position: relative; grid-auto-flow: column; grid-auto-columns: calc((100% - 1.4rem) / 3); gap: .7rem; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.reviews-track::-webkit-scrollbar { display: none; }
.review-card {
  display: flex;
  flex-direction: column;
  gap: .36rem;
  min-width: 0;
  padding: .7rem .9rem .62rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  scroll-snap-align: start;
}
.review-rating { display: flex; align-items: center; gap: .32rem; min-height: 1.25rem; line-height: 1.25; }
.stars { color: #986629; font-size: .83rem; letter-spacing: .12em; }
.review-rating-label { color: var(--subtle); font-size: .78rem; font-weight: 700; }
.review-text { font-size: .95rem; line-height: 1.55; font-weight: 650; overflow-wrap: anywhere; }
.review-name { margin-top: auto; padding-top: .34rem; border-top: 1px solid var(--line); color: var(--subtle); font-size: .875rem; font-weight: 800; }

.hero {
  padding-block: clamp(1.8rem, 4vw, 3rem) clamp(2rem, 5vw, 3.75rem);
  background: radial-gradient(ellipse at 50% 68%, #f7dee2 0%, #fdf4f2 56%, #fffaf7 100%);
  border-bottom: 1px solid var(--line);
}
.hero-copy { text-align: center; margin: 0 auto clamp(1.2rem, 3vw, 2rem); }
.hero h1 { font-size: clamp(1.85rem, 4.7vw, 3.65rem); font-weight: 900; letter-spacing: -.025em; }

.hero-collage {
  display: grid;
  grid-template-areas: "scent bath" "family bath" "repeat bath";
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: .72rem clamp(.8rem, 3vw, 2rem);
  max-width: 695px;
  margin-inline: auto;
}
.hero-message {
  position: relative;
  z-index: 1;
  display: block;
  height: fit-content;
  overflow: hidden;
  border: 1px solid #fffaf8;
  border-radius: 16px;
  box-shadow: 0 12px 32px #4826302b;
  cursor: zoom-in;
}
.hero-message img { width: 100%; }
.hero-message:hover { box-shadow: 0 15px 35px #48263042; }
.hero-message-bath { grid-area: bath; justify-self: start; width: min(100%, 278px); background: #101519; }
.hero-message-scent { grid-area: scent; justify-self: end; width: min(100%, 302px); background: #fffdfa; }
.hero-message-family { grid-area: family; justify-self: end; width: min(calc(100% - 1rem), 280px); margin-inline-end: .65rem; background: #fffdfa; }
.hero-message-repeat { grid-area: repeat; justify-self: end; width: min(100%, 320px); background: #fffdfa; }
.hero-hint { margin-top: 1rem; color: var(--subtle); font-size: .875rem; text-align: center; }

.message-dialog {
  width: min(94vw, 750px);
  max-height: 91dvh;
  padding: 0;
  overflow: auto;
  background: #fffcfa;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.message-dialog::backdrop { background: #291319bc; }
.message-dialog-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .5rem;
  padding: .55rem .8rem;
  background: #fffcfa;
  border-bottom: 1px solid var(--line);
}
.message-dialog-header h2 { font-size: 1rem; }
.message-dialog-header button {
  padding: .18rem .72rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: 99px;
}
.message-dialog-image { width: auto; max-width: 100%; margin-inline: auto; }

.purchase { padding-block: clamp(1.75rem, 5vw, 3.5rem); background: var(--pearl); border-block: 1px solid var(--line); }
.section-intro { margin-bottom: clamp(1.25rem, 3vw, 2rem); text-align: center; }
.purchase-inner { max-width: 790px; }
.gallery { max-width: 465px; margin-inline: auto; }
.gallery figure { border-radius: 24px; background: var(--pink); overflow: hidden; }
.gallery figure img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery-thumbnails { display: flex; justify-content: center; gap: .55rem; margin-top: .72rem; }
.gallery-thumbnails button { background: transparent; border: 2px solid transparent; border-radius: 12px; padding: 3px; }
.gallery-thumbnails button img { width: clamp(54px, 12vw, 70px); border-radius: 7px; }
.gallery-thumbnails button[aria-pressed="true"] { border-color: var(--berry); }

.guarantee { margin: clamp(1.15rem, 3vw, 1.85rem) auto; padding: .9rem 1rem; background: #fff5e6; border: 1px solid #ebd7b8; border-radius: 16px; text-align: center; }
.guarantee-badge { display: inline-block; margin-bottom: .35rem; padding: .12rem .7rem; border-radius: 999px; background: #f6e5c7; color: #694114; font-size: .86rem; font-weight: 800; }
.guarantee h2 { font-size: clamp(1.18rem, 2.7vw, 1.5rem); }

.purchase-options { min-inline-size: 0; display: grid; gap: .62rem; margin: 0; padding: 0; border: 0; }
.purchase-options legend { padding: 0; font-size: clamp(1.4rem, 3.5vw, 1.9rem); font-weight: 900; }
.purchase-options p { margin-top: -.12rem; margin-bottom: .42rem; color: var(--subtle); }
.purchase-option {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  grid-template-areas: "radio copy saving pricing";
  align-items: center;
  gap: .72rem;
  min-height: 86px;
  padding: .75rem 1rem;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: white;
  cursor: pointer;
}
.purchase-option:has(input:checked) { border-color: var(--berry); background: #fff1f0; box-shadow: inset 0 0 0 1px var(--berry); }
.purchase-option:focus-within { outline: 2px solid var(--berry); outline-offset: 2px; }
.purchase-option input { grid-area: radio; width: 1.2rem; height: 1.2rem; margin: 0; accent-color: var(--berry); cursor: pointer; }
.purchase-option-copy { grid-area: copy; min-width: 0; }
.purchase-option-copy strong, .purchase-option-copy small, .purchase-option-prices strong, .purchase-option-prices del { display: block; }
.purchase-option-copy strong { font-size: clamp(1rem, 2.4vw, 1.22rem); line-height: 1.45; font-weight: 850; }
.purchase-option-copy small, .purchase-option-prices del { color: var(--subtle); font-size: .86rem; }
.purchase-option-prices { grid-area: pricing; color: var(--berry-dark); text-align: end; white-space: nowrap; }
.purchase-option-prices strong { font-size: clamp(1.1rem, 2.8vw, 1.43rem); font-weight: 900; line-height: 1.4; }
.purchase-saving { grid-area: saving; width: fit-content; padding: .1rem .6rem; border-radius: 99px; background: #f3e3d0; color: #634431; font-size: .83rem; font-weight: 800; white-space: nowrap; }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .5rem 1.2rem; border: 0; border-radius: 999px; text-align: center; text-decoration: none; font-weight: 850; transition: background .3s; }
.button-primary { background: var(--berry); color: white; }
.button-primary:hover { background: var(--berry-dark); }
.purchase-submit { width: 100%; gap: .8rem; margin-top: .9rem; }
.purchase-submit > span + span { padding-inline-start: .8rem; border-inline-start: 1px solid #ffffff6b; white-space: nowrap; }

.learn { padding-block: clamp(2.8rem, 6vw, 5rem); }
.ingredients { padding-block: clamp(2.4rem, 5vw, 4rem); background: #f5e6e5; }
.ingredient-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.ingredient-grid div { padding: .45rem 1rem; text-align: center; }
.ingredient-grid div + div { border-inline-start: 1px solid #d6b8be; }
.ingredient-grid dt { font-size: 1.1rem; font-weight: 850; color: var(--berry-dark); }
.ingredient-grid dd { margin-top: .2rem; color: var(--subtle); }

.learn-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(1.5rem, 7vw, 6rem); max-width: 1100px; margin-inline: auto; }
.learn-grid h3 { margin-bottom: .75rem; }
.steps { margin: 0; padding-inline-start: 1.35rem; }
.steps li { padding: .3rem .35rem .3rem 0; }
.steps li::marker { color: var(--berry); font-weight: 850; }
details { border-bottom: 1px solid var(--line); }
summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; gap: .55rem; padding: .56rem 0; font-weight: 750; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; color: var(--berry-dark); line-height: 1; }
details[open] summary::after { content: "−"; }
details p { padding-bottom: .65rem; color: var(--subtle); }

.footer { padding: 2rem 0 6.2rem; background: #f8eeeb; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: .6fr .8fr 1.4fr; gap: 1.2rem; align-items: start; }
.footer h2 { font-size: 1rem; margin-bottom: .4rem; }
.footer a { font-size: .92rem; text-underline-offset: .19em; }
.payments { width: min(100%, 365px); }
.copyright { border-top: 1px solid #e8d7d7; margin-top: 1.2rem; padding-top: .65rem; color: var(--subtle); font-size: .82rem; text-align: center; }
.sticky { position: fixed; z-index: 3; inset: auto 0 0; background: #fffcfaf7; backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -4px 24px #55263814; padding: .55rem 0 max(.55rem, env(safe-area-inset-bottom)); }
.sticky-inner { display: flex; justify-content: space-between; gap: .55rem; align-items: center; }
.sticky-info { display: flex; align-items: baseline; gap: .85rem; }
.sticky-info span { white-space: nowrap; font-weight: 900; color: var(--berry-dark); }
.sticky-info small { font-size: .76rem; color: var(--subtle); }
.sticky .button { white-space: nowrap; }

@media (max-width: 820px) {
  .reviews-track { grid-auto-columns: calc((100% - .7rem) / 2); }
}

@media (max-width: 600px) {
  .frame { width: calc(100% - 1.7rem); }
  .masthead-inner { min-height: 64px; gap: .35rem; }
  .masthead .brand { grid-column: 2; }
  .brand img { width: 80px; height: 51px; }
  .top-links { display: none; }
  .top-shop { grid-column: 3; max-width: 100%; padding: .24rem .45rem; font-size: .72rem; white-space: nowrap; }
  .reviews { padding-block: .46rem .65rem; }
  .reviews-track { grid-auto-columns: min(83%, 320px); }
  .review-card { padding: .56rem .65rem; }
  .hero { padding-block: 1.35rem 1.7rem; }
  .hero h1 { font-size: clamp(1.7rem, 7vw, 2.5rem); }
  .hero-collage { gap: .55rem; max-width: 460px; }
  .hero-message { width: 100%; margin: 0; border-radius: 11px; }
  .learn-grid { grid-template-columns: 1fr; gap: 1.15rem; }
  .purchase-option { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "radio copy pricing"; gap: .45rem .6rem; padding: .62rem .66rem; }
  .purchase-option:has(.purchase-saving) { grid-template-areas: "radio copy pricing" "radio saving pricing"; }
  .purchase-saving { padding-inline: .45rem; }
  .ingredient-grid { grid-template-columns: 1fr; }
  .ingredient-grid div + div { border-inline-start: 0; border-top: 1px solid #d6b8be; }
  .ingredient-grid div { padding-block: .58rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 1 / -1; }
  .sticky-info { display: grid; line-height: 1.35; gap: 0; }
  .sticky-info strong { font-size: .79rem; }
  .sticky .button { min-height: 41px; padding-inline: .62rem; font-size: .85rem; }
}

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