:root {
  --bg: #fbf7f6;
  --surface: #ffffff;
  --text: #2d2529;
  --muted: #7c6d74;
  --line: #eadfe3;
  --accent: #7a4058;
  --accent-dark: #563044;
  --accent-light: #f3e6eb;
  --rose: #c58fa3;
  --cream: #f5eee9;
  --radius: 24px;
  --shadow: 0 24px 70px rgba(82, 45, 61, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
body.locked { overflow: hidden; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }

.topbar { padding: 9px 20px; background: var(--accent-dark); color: #fff; text-align: center; font-size: 12px; letter-spacing: .04em; }
.header { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 24px; padding: 17px max(24px, calc((100vw - 1180px) / 2)); background: rgba(251,247,246,.92); border-bottom: 1px solid rgba(234,223,227,.85); backdrop-filter: blur(16px); }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #fff; font-family: Georgia, serif; font-size: 21px; font-style: italic; }
.brand-name em { color: var(--accent); font-family: Georgia, serif; font-weight: 500; }
.nav { display: flex; gap: 25px; font-size: 13px; color: #665860; }
.nav a:hover { color: var(--accent); }
.cart-button { justify-self: end; display: inline-flex; align-items: center; gap: 10px; padding: 9px 11px 9px 16px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); }
.cart-button strong { display: grid; place-items: center; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 999px; background: var(--accent); color: #fff; font-size: 12px; }

main { max-width: 1240px; margin: 0 auto; padding: 0 30px 70px; }
.hero { min-height: 640px; display: grid; grid-template-columns: 1.04fr .96fr; align-items: center; gap: 64px; padding: 66px 0 58px; }
.eyebrow { color: var(--accent); font-size: 11px; font-weight: 850; letter-spacing: .19em; }
.hero h1 { max-width: 720px; margin: 17px 0 22px; font-size: clamp(50px, 6vw, 80px); line-height: .98; letter-spacing: -.055em; }
.hero h1 span { color: var(--accent); font-family: Georgia, "Times New Roman", serif; font-style: italic; font-weight: 500; }
.hero p { max-width: 620px; color: var(--muted); font-size: 17px; line-height: 1.7; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 31px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 49px; padding: 0 23px; border: 1px solid transparent; border-radius: 999px; font-weight: 750; transition: .2s ease; }
.btn.primary { background: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost { border-color: var(--line); background: rgba(255,255,255,.38); }
.btn.ghost:hover { background: #fff; border-color: #ddcbd2; }
.btn.light { background: #fff; color: var(--accent-dark); }
.hero-stats { display: flex; gap: 38px; margin-top: 44px; }
.hero-stats div { display: flex; flex-direction: column; gap: 3px; }
.hero-stats strong { font-size: 18px; }
.hero-stats span { color: var(--muted); font-size: 11px; }

.hero-card { position: relative; min-height: 530px; overflow: hidden; border-radius: 42px 42px 110px 42px; background: linear-gradient(145deg, #f3dce4 0%, #e5bdca 50%, #c98fa4 100%); box-shadow: var(--shadow); }
.hero-glow { position: absolute; border-radius: 50%; background: rgba(255,255,255,.32); filter: blur(2px); }
.glow-one { width: 300px; height: 300px; right: -80px; top: -80px; }
.glow-two { width: 230px; height: 230px; left: -85px; bottom: -70px; }
.hero-badge { position: absolute; z-index: 2; top: 28px; left: 30px; padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.82); color: var(--accent-dark); font-size: 10px; font-weight: 850; letter-spacing: .13em; }
.hero-product-img { position: absolute; width: 82%; height: 72%; left: 9%; top: 11%; object-fit: contain; filter: drop-shadow(0 30px 25px rgba(82,45,61,.18)); }
.hero-product-copy { position: absolute; left: 34px; bottom: 30px; z-index: 2; }
.hero-product-copy small { display: block; color: rgba(70,41,53,.68); font-size: 12px; }
.hero-product-copy strong { display: block; margin: 1px 0 2px; color: #4d2b3a; font-size: 28px; }
.hero-product-copy span { color: rgba(70,41,53,.72); font-size: 11px; }

.category-showcase { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; padding: 18px 0 10px; }
.category-showcase a { min-height: 120px; display: flex; flex-direction: column; justify-content: flex-end; padding: 20px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: .2s ease; }
.category-showcase a:hover { transform: translateY(-3px); box-shadow: 0 12px 34px rgba(82,45,61,.08); border-color: #ddcbd2; }
.category-showcase span { margin-bottom: auto; color: var(--rose); font-family: Georgia,serif; font-style: italic; }
.category-showcase strong { font-size: 17px; }
.category-showcase small { margin-top: 2px; color: var(--muted); }

.section { padding: 78px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 28px; }
.section-head h2, .cta h2, .routine h2 { margin: 8px 0 5px; font-size: clamp(35px,4vw,52px); letter-spacing: -.045em; }
.section-head p { margin: 0; color: var(--muted); }
.search-wrap input { width: min(320px,75vw); height: 48px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; background: #fff; color: var(--text); outline: none; }
.search-wrap input:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(122,64,88,.08); }
.filters { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 29px; }
.filter-button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: #6c5e65; }
.filter-button.active { background: var(--accent-dark); color: #fff; border-color: var(--accent-dark); }

.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 20px; }
.product-card { overflow: hidden; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product-media { position: relative; display: grid; place-items: center; aspect-ratio: 1/1; padding: 24px; background: linear-gradient(145deg,#fbf7f5,#f1e5e9); }
.product-media img { width: 88%; height: 88%; object-fit: contain; transition: transform .25s ease; }
.product-card:hover .product-media img { transform: scale(1.03); }
.product-badge { position: absolute; left: 14px; top: 14px; z-index: 2; padding: 6px 9px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--accent-dark); font-size: 9px; font-weight: 850; letter-spacing: .03em; }
.product-body { padding: 18px; }
.product-category { color: var(--accent); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.product-name { margin: 6px 0 5px; font-size: 17px; }
.product-description { min-height: 36px; margin: 0 0 14px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.product-price strong { display: block; font-size: 17px; }
.product-price s { color: #aa9aa1; font-size: 11px; }
.add-button { width: 40px; height: 40px; border: 0; border-radius: 50%; background: var(--accent); color: #fff; font-size: 23px; line-height: 1; }
.add-button:hover { background: var(--accent-dark); }
.empty-state { padding: 50px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius); }
.hidden { display: none !important; }

.routine { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; align-items: center; margin: 20px 0; padding: 62px; border-radius: 34px; background: var(--accent-light); }
.routine-copy p { color: var(--muted); line-height: 1.65; }
.text-link { display: inline-flex; gap: 8px; margin-top: 14px; color: var(--accent); font-weight: 800; }
.routine-steps { display: grid; gap: 10px; }
.routine-steps article { display: grid; grid-template-columns: 46px 1fr; gap: 16px; align-items: center; padding: 16px; border-bottom: 1px solid rgba(122,64,88,.12); }
.routine-steps article:last-child { border-bottom: 0; }
.routine-steps article > span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #fff; color: var(--accent); font-family: Georgia,serif; font-style: italic; }
.routine-steps strong { font-size: 16px; }
.routine-steps p { margin: 2px 0 0; color: var(--muted); font-size: 13px; }

.benefits { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.benefits article { padding: 30px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.benefits article > span { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--accent-light); color: var(--accent); font-weight: 900; font-size: 18px; }
.benefits h3 { margin: 22px 0 8px; font-size: 20px; }
.benefits p { margin: 0; color: var(--muted); line-height: 1.6; }

.cta { display: flex; align-items: center; justify-content: space-between; gap: 40px; margin-top: 25px; padding: 50px; border-radius: 32px; background: var(--accent-dark); color: #fff; }
.cta .eyebrow { color: #e5b9c9; }
.cta p { color: #eadde2; }
.footer { max-width: 1240px; margin: 0 auto; padding: 35px 30px 50px; display: flex; align-items: end; justify-content: space-between; gap: 30px; border-top: 1px solid var(--line); }
.footer p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.footer-links { display: flex; gap: 20px; color: var(--muted); font-size: 13px; }

.overlay { position: fixed; inset: 0; z-index: 49; background: rgba(45,29,36,.42); opacity: 0; visibility: hidden; transition: .25s; }
.overlay.open { opacity: 1; visibility: visible; }
.cart-drawer { position: fixed; top: 0; right: 0; z-index: 50; width: min(440px,100%); height: 100dvh; display: grid; grid-template-rows: auto 1fr auto; padding: 24px; background: #fdf9fa; transform: translateX(100%); transition: transform .28s ease; box-shadow: -30px 0 70px rgba(45,29,36,.15); }
.cart-drawer.open { transform: translateX(0); }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.cart-head small { color: var(--accent); font-weight: 800; letter-spacing: .12em; }
.cart-head h2 { margin: 3px 0 0; font-size: 30px; }
.icon-button { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: #fff; font-size: 24px; }
.cart-items { overflow-y: auto; padding: 10px 0; }
.cart-item { display: grid; grid-template-columns: 74px 1fr auto; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-thumb { display: grid; place-items: center; width: 74px; height: 74px; border-radius: 14px; background: var(--cream); }
.cart-thumb img { width: 82%; height: 82%; object-fit: contain; }
.cart-item h4 { margin: 0 0 5px; font-size: 14px; }
.cart-item p { margin: 0 0 8px; color: var(--muted); font-size: 12px; }
.qty { display: inline-flex; align-items: center; gap: 10px; padding: 4px; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 25px; height: 25px; border: 0; border-radius: 50%; background: var(--accent-light); }
.remove-button { border: 0; background: transparent; color: #a64f69; font-size: 11px; }
.cart-empty { align-self: center; padding: 40px 20px; text-align: center; color: var(--muted); }
.cart-empty > span { font-size: 45px; color: var(--rose); }
.cart-empty h3 { margin: 14px 0 4px; color: var(--text); }
.cart-empty p { margin: 0; }
.cart-footer { padding-top: 18px; border-top: 1px solid var(--line); }
.subtotal { display: flex; justify-content: space-between; margin-bottom: 14px; font-size: 17px; }
.checkout { width: 100%; }
.cart-footer small { display: block; margin-top: 10px; color: var(--muted); text-align: center; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; transform: translate(-50%,30px); opacity: 0; pointer-events: none; padding: 12px 18px; border-radius: 999px; background: var(--accent-dark); color: #fff; transition: .25s; box-shadow: var(--shadow); font-size: 13px; }
.toast.show { transform: translate(-50%,0); opacity: 1; }

@media (max-width: 1050px) {
  .nav { display: none; }
  .header { grid-template-columns: 1fr 1fr; }
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .hero-card { min-height: 470px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .category-showcase { grid-template-columns: repeat(2,1fr); }
  .routine { grid-template-columns: 1fr; gap: 35px; }
}
@media (max-width: 640px) {
  .topbar { font-size: 10px; }
  .header { padding: 14px 18px; }
  .brand-name { font-size: 17px; }
  .cart-button span { display: none; }
  main { padding: 0 18px 50px; }
  .hero { min-height: auto; padding: 42px 0 50px; gap: 35px; }
  .hero h1 { font-size: 48px; }
  .hero p { font-size: 15px; }
  .hero-stats { gap: 18px; flex-wrap: wrap; }
  .hero-card { min-height: 400px; border-radius: 28px 28px 70px 28px; }
  .category-showcase { grid-template-columns: 1fr 1fr; }
  .category-showcase a { min-height: 105px; padding: 16px; }
  .section { padding: 55px 0; }
  .section-head { align-items: stretch; flex-direction: column; }
  .search-wrap input { width: 100%; }
  .product-grid { grid-template-columns: 1fr; }
  .routine { padding: 32px 22px; border-radius: 26px; }
  .benefits { grid-template-columns: 1fr; }
  .cta { align-items: flex-start; flex-direction: column; padding: 34px 24px; }
  .footer { align-items: flex-start; flex-direction: column; padding: 30px 18px 45px; }
  .footer-links { flex-wrap: wrap; }
}
