/* ============================================================
   mersha-beauty — styles.css
   House pattern: design tokens under [data-theme], logical
   properties only (RTL = default), zero dependencies.
   ============================================================ */

/* ============ TOKENS ============ */
:root {
  --font-body: 'Vazirmatn', 'Segoe UI', Tahoma, system-ui, sans-serif;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-1: 0 2px 10px rgb(0 0 0 / .06);
  --shadow-2: 0 14px 40px rgb(0 0 0 / .10);
  --speed: .28s;
}

[data-theme] {
  --scheme: light;
  --bg: #fdf8f6;
  --bg-2: #ffffff;
  --bg-3: #f7ecea;
  --ink: #3a272a;
  --ink-2: #7d6467;
  --ink-3: #ab9497;
  --accent: #c4564a;
  --accent-2: #9d6b83;
  --gold: #b98a4a;
  --img-filter: none;
}

[data-theme="rose-clay"] { --scheme: light; }

[data-theme="emerald-pharmacy"] {
  --scheme: light;
  --bg: #f4f8f5;
  --bg-2: #ffffff;
  --bg-3: #e9f1ea;
  --ink: #1f2d24;
  --ink-2: #5c6f62;
  --ink-3: #93a598;
  --accent: #2d6a4f;
  --accent-2: #5b8a72;
  --gold: #b08d3e;
}

[data-theme="midnight-orchid"] {
  --scheme: dark;
  --bg: #14101a;
  --bg-2: #1d1726;
  --bg-3: #282034;
  --ink: #f2ecf4;
  --ink-2: #b9abc1;
  --ink-3: #7d7089;
  --accent: #d98ca8;
  --accent-2: #9b8fd4;
  --gold: #d4a95c;
}

/* derived */
:root, [data-theme] {
  --line: color-mix(in srgb, var(--ink) 12%, transparent);
  --glass: color-mix(in srgb, var(--bg-2) 72%, transparent);
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --gold-soft: color-mix(in srgb, var(--gold) 16%, transparent);
  --ok: color-mix(in srgb, #2e9e6b 88%, var(--bg));
}

/* ============ BASE ============ */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; background: none; border: 0; }
input, textarea, select { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--bg-2); }

.container { width: min(1180px, 92%); margin-inline: auto; }
.section { padding-block: clamp(64px, 9vw, 110px); position: relative; }
.section--alt { background: var(--bg-3); }

.icon { width: 1.25em; height: 1.25em; stroke: currentColor; stroke-width: 1.8; fill: none; stroke-linecap: round; stroke-linejoin: round; }

.skip-link {
  position: absolute; inset-inline-start: -999px; top: 8px; z-index: 200;
  background: var(--accent); color: var(--bg-2); padding: 10px 18px; border-radius: var(--radius-sm);
}
.skip-link:focus { inset-inline-start: 8px; }

/* ============ SECTION HEADERS ============ */
.sec-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 56px); }
.sec-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg-2);
}
.sec-title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); font-weight: 800; line-height: 1.35; margin: 14px 0 10px; }
.sec-title em { font-style: normal; color: var(--accent); }
.sec-sub { color: var(--ink-2); margin: 0; }

/* ============ NAV ============ */
.nav {
  position: fixed; inset-block-start: 0; inset-inline: 0; z-index: 90;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 14px clamp(16px, 4vw, 40px);
  transition: background var(--speed), box-shadow var(--speed), padding var(--speed);
}
.nav.is-scrolled {
  background: var(--glass);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--shadow-1);
  padding-block: 10px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.06rem; }
.brand__mark {
  width: 40px; height: 40px; border-radius: 13px; flex: none;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff; font-size: 1.15rem; font-weight: 800;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--accent) 35%, transparent);
}
img.brand__mark { object-fit: cover; }
.brand small { display: block; font-size: .62rem; font-weight: 500; color: var(--ink-2); line-height: 1.4; letter-spacing: .04em; }
.brand b { line-height: 1.2; }

.nav-links { display: flex; gap: clamp(10px, 2vw, 26px); font-size: .92rem; font-weight: 600; }
.nav-links a { color: var(--ink-2); padding: 6px 2px; border-bottom: 2px solid transparent; transition: color var(--speed), border-color var(--speed); }
.nav-links a:hover, .nav-links a.is-active { color: var(--ink); border-color: var(--accent); }

.nav-tools { display: flex; align-items: center; gap: 10px; }
.tool-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 14px; border-radius: 999px; font-size: .85rem; font-weight: 700;
  border: 1px solid var(--line); background: var(--bg-2); color: var(--ink-2);
  transition: border-color var(--speed), color var(--speed), transform var(--speed);
}
.tool-btn:hover { border-color: var(--accent); color: var(--ink); }
.tool-btn .swatch {
  width: 14px; height: 14px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.menu { position: relative; }
.menu__panel {
  position: absolute; inset-block-end: calc(-100% - 260px); inset-inline-end: 0;
  top: calc(100% + 8px);
  min-width: 190px; padding: 8px; border-radius: var(--radius-sm);
  background: var(--bg-2); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  opacity: 0; transform: translateY(6px); pointer-events: none;
  transition: opacity var(--speed), transform var(--speed);
}
.menu.is-open .menu__panel { opacity: 1; transform: none; pointer-events: auto; }
.menu__item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border-radius: 9px; font-size: .88rem; font-weight: 600; text-align: start;
}
.menu__item:hover { background: var(--accent-soft); }
.menu__item.is-active { background: var(--accent-soft); color: var(--accent); }
.menu__item .sw { display: flex; gap: 3px; }
.menu__item .sw i { width: 12px; height: 12px; border-radius: 50%; }

.cart-btn { position: relative; }
.cart-btn .count {
  position: absolute; top: -6px; inset-inline-end: -6px;
  min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 999px;
  background: var(--accent); color: #fff; font-size: .7rem; font-weight: 800;
  display: grid; place-items: center;
  transform: scale(0); transition: transform var(--speed);
}
.cart-btn.has-items .count { transform: scale(1); }

.burger { display: none; flex-direction: column; gap: 5px; padding: 10px; }
.burger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform var(--speed), opacity var(--speed); }
.burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.is-open span:nth-child(2) { opacity: 0; }
.burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0; z-index: 80; padding: 110px 8% 40px;
  background: var(--bg);
  display: flex; flex-direction: column; gap: 4px;
  opacity: 0; pointer-events: none; transition: opacity var(--speed);
}
.mobile-nav.is-open { opacity: 1; pointer-events: auto; }
.mobile-nav a { font-size: 1.25rem; font-weight: 700; padding: 12px 8px; border-bottom: 1px solid var(--line); }

/* ============ HERO ============ */
.hero {
  min-height: 100svh; display: flex; align-items: center;
  padding-block: 130px 70px; position: relative; overflow: hidden;
}
.hero__bg { position: absolute; inset: 0; z-index: -1; }
.orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .5; }
.orb--1 { width: 480px; height: 480px; background: var(--accent-soft); top: -120px; inset-inline-start: -100px; }
.orb--2 { width: 380px; height: 380px; background: var(--gold-soft); bottom: -80px; inset-inline-end: -60px; }
.orb--3 { width: 260px; height: 260px; background: color-mix(in srgb, var(--accent-2) 16%, transparent); top: 40%; inset-inline-start: 55%; }

.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(30px, 5vw, 70px); align-items: center; }
.hero__pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2);
  box-shadow: var(--shadow-1);
}
.hero__pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .4; } }

.hero__title { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; line-height: 1.5; margin: 22px 0 16px; }
.hero__title em { font-style: normal; color: var(--accent); }
.hero__desc { color: var(--ink-2); font-size: 1.05rem; max-width: 54ch; margin: 0 0 30px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 26px; border-radius: 999px; font-weight: 800; font-size: .95rem;
  transition: transform var(--speed), box-shadow var(--speed), background var(--speed), border-color var(--speed);
}
.btn:active { transform: scale(.97); }
.btn--primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 24px color-mix(in srgb, var(--accent) 38%, transparent); }
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 46%, transparent); }
.btn--ghost { border: 1.5px solid var(--line); color: var(--ink); background: var(--bg-2); }
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--block { width: 100%; justify-content: center; }
.btn--wa { background: #1faa53; color: #fff; }
.btn--tg { background: #279fd1; color: #fff; }
.btn--ig { background: linear-gradient(45deg, #f09433, #e6683c 30%, #dc2743 55%, #cc2366 80%, #bc1888); color: #fff; }
.btn--zp { background: #f6c244; color: #54420a; }
.btn--copy { border: 1.5px dashed var(--line); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 38px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 15px; border-radius: 999px; font-size: .82rem; font-weight: 700;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--ink-2); box-shadow: var(--shadow-1);
}
.chip .icon { color: var(--gold); }

/* hero visual: brand logo card */
.hero__visual { position: relative; display: grid; place-items: center; min-height: 420px; }
.tile-stack { position: relative; width: min(400px, 100%); aspect-ratio: 1; }
.hero__logo {
  position: absolute; inset: 5%; width: 90%; height: 90%; object-fit: cover;
  border-radius: 26px; transform: rotate(-2deg);
  border: 1px solid color-mix(in srgb, #fff 40%, transparent);
  box-shadow: var(--shadow-2); z-index: 3;
}
.hero__badge {
  position: absolute; bottom: 6%; inset-inline-end: 0; z-index: 4;
  display: flex; align-items: center; gap: 12px;
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 13px 18px; box-shadow: var(--shadow-2); font-size: .85rem; font-weight: 700;
}
.hero__badge .icon { width: 1.8em; height: 1.8em; color: var(--ok); }
.hero__badge small { display: block; color: var(--ink-2); font-weight: 500; }

/* ============ CATEGORIES ============ */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cat {
  position: relative; overflow: hidden; text-align: start; display: block;
  padding: 34px 28px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform var(--speed), box-shadow var(--speed), border-color var(--speed);
}
.cat:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); border-color: var(--accent); }
.cat__ico {
  width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); margin-bottom: 18px;
}
.cat__ico .icon { width: 30px; height: 30px; }
.cat h3 { margin: 0 0 6px; font-size: 1.2rem; font-weight: 800; }
.cat p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.cat .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; color: var(--accent); font-weight: 700; font-size: .88rem; }

/* ============ PRODUCTS ============ */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 36px; }
.filter {
  padding: 9px 20px; border-radius: 999px; font-weight: 700; font-size: .88rem;
  border: 1.5px solid var(--line); color: var(--ink-2); background: var(--bg-2);
  transition: all var(--speed);
}
.filter:hover { border-color: var(--accent); color: var(--ink); }
.filter.is-active { background: var(--accent); border-color: var(--accent); color: #fff; }
.filter .n { opacity: .65; font-weight: 500; font-size: .8em; margin-inline-start: 4px; }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }

.p-card {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform var(--speed), box-shadow var(--speed);
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-2); }
.p-card__tile {
  aspect-ratio: 1; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, var(--tile-a, #f3e3da), var(--tile-b, #e3c6bd));
  font-size: clamp(3rem, 5vw, 3.8rem);
}
.p-card__tile img { width: 100%; height: 100%; object-fit: cover; }
.p-card__badge {
  position: absolute; top: 12px; inset-inline-start: 12px;
  padding: 4px 12px; border-radius: 999px; font-size: .72rem; font-weight: 800;
  background: var(--accent); color: #fff; box-shadow: var(--shadow-1);
}
.p-card__badge--new { background: var(--accent-2); }
.p-card__badge--off { background: #c0392b; }
.p-card__badge--out { background: #6d6d6d; }
.p-card.is-soldout .p-card__tile { filter: grayscale(.75); opacity: .8; }
.p-card__desc {
  margin: 2px 0 0; font-size: .78rem; color: var(--ink-2); line-height: 1.7;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.add-btn.is-off { background: var(--bg-3); color: var(--ink-3); cursor: not-allowed; }
.p-card__body { padding: 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.p-card__brand { font-size: .76rem; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; }
.p-card__name { font-size: 1rem; font-weight: 800; line-height: 1.5; min-height: 3em; }
.p-card__unit { font-size: .78rem; color: var(--ink-3); }
.p-card__foot { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { display: flex; flex-direction: column; line-height: 1.3; }
.price b { font-size: 1.02rem; font-weight: 800; color: var(--accent); }
.price s { font-size: .78rem; color: var(--ink-3); }
.price small { font-size: .68rem; color: var(--ink-3); font-weight: 600; }
.add-btn {
  width: 44px; height: 44px; border-radius: 14px; flex: none;
  display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent);
  transition: background var(--speed), color var(--speed), transform var(--speed);
}
.add-btn:hover { background: var(--accent); color: #fff; }
.add-btn:active { transform: scale(.9); }
.add-btn.is-added { background: var(--ok); color: #fff; }

/* ============ WHY / FEATURES ============ */
.feat { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.feat__card {
  padding: 28px 24px; border-radius: var(--radius); text-align: center;
  background: var(--bg-2); border: 1px solid var(--line);
}
.feat__ico {
  width: 58px; height: 58px; margin: 0 auto 16px; border-radius: 50%;
  display: grid; place-items: center; background: var(--gold-soft); color: var(--gold);
}
.feat__card h3 { margin: 0 0 8px; font-size: 1.02rem; font-weight: 800; }
.feat__card p { margin: 0; color: var(--ink-2); font-size: .88rem; }

/* ============ STEPS + PAYMENT ============ */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: stretch; }
.panel {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: clamp(26px, 3vw, 38px);
}
.panel h3 { margin: 0 0 22px; font-size: 1.25rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.panel h3 .icon { color: var(--accent); }
.step { display: flex; gap: 16px; padding-block: 14px; }
.step + .step { border-top: 1px dashed var(--line); }
.step__n {
  width: 38px; height: 38px; flex: none; border-radius: 50%;
  display: grid; place-items: center; font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff;
}
.step b { display: block; font-size: .98rem; }
.step p { margin: 4px 0 0; color: var(--ink-2); font-size: .86rem; }

.pay-list { display: flex; flex-direction: column; gap: 12px; }
.pay {
  display: flex; align-items: center; gap: 14px;
  padding: 16px 18px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: var(--bg);
}
.pay__logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-weight: 900; flex: none; color: #fff; }
.pay__logo--zp { background: #f6c244; color: #54420a; }
.pay__logo--cc { background: #6d6d6d; }
.pay b { display: block; font-size: .95rem; }
.pay p { margin: 2px 0 0; font-size: .82rem; color: var(--ink-2); }

/* ============ REVIEWS ============ */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.rev {
  padding: 26px 24px; border-radius: var(--radius);
  background: var(--bg-2); border: 1px solid var(--line); position: relative;
}
.rev__stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 12px; }
.rev p { margin: 0 0 16px; color: var(--ink-2); font-size: .93rem; }
.rev__who { display: flex; align-items: center; gap: 12px; }
.rev__av {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 800;
}
.rev__who b { display: block; font-size: .9rem; }
.rev__who small { color: var(--ink-3); font-size: .76rem; }

/* ============ FAQ ============ */
.faq { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: 12px; }
.faq details {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: 18px 22px; transition: border-color var(--speed);
}
.faq details[open] { border-color: var(--accent); }
.faq summary {
  cursor: pointer; font-weight: 700; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 1.3rem; color: var(--accent); font-weight: 400; transition: transform var(--speed); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 12px 0 0; color: var(--ink-2); font-size: .92rem; }

/* ============ CONTACT ============ */
.contact-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.c-card {
  padding: 26px 20px; border-radius: var(--radius); text-align: center;
  background: var(--bg-2); border: 1px solid var(--line);
  transition: transform var(--speed), border-color var(--speed), box-shadow var(--speed);
}
.c-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow-1); }
.c-card .icon { width: 34px; height: 34px; margin: 0 auto 14px; color: var(--accent); }
.c-card b { display: block; margin-bottom: 4px; font-size: .95rem; }
.c-card span, .c-card dir { color: var(--ink-2); font-size: .86rem; word-break: break-word; }

.notice {
  margin-top: 40px; padding: 18px 22px; border-radius: var(--radius-sm);
  background: var(--gold-soft); border: 1px dashed var(--gold);
  font-size: .86rem; color: var(--ink-2); text-align: center;
}

/* ============ FOOTER ============ */
.footer { background: var(--bg-3); border-top: 1px solid var(--line); padding: 46px 0 28px; }
.footer__grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 26px; align-items: flex-start; }
.footer__brand { max-width: 320px; }
.footer__brand p { color: var(--ink-2); font-size: .88rem; margin: 12px 0 0; }
.footer__cols { display: flex; gap: clamp(30px, 6vw, 90px); }
.footer__cols h4 { margin: 0 0 12px; font-size: .95rem; }
.footer__cols a, .footer__cols span { display: block; color: var(--ink-2); font-size: .88rem; padding-block: 4px; }
.footer__cols a:hover { color: var(--accent); }
.footer__base {
  margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  color: var(--ink-3); font-size: .8rem;
}

/* ============ CART DRAWER ============ */
.drawer-veil {
  position: fixed; inset: 0; z-index: 110; background: rgb(20 12 14 / .45);
  opacity: 0; pointer-events: none; transition: opacity var(--speed);
  backdrop-filter: blur(2px);
}
.drawer-veil.is-open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; z-index: 120; inset-block: 0; inset-inline-end: 0;
  width: min(430px, 100%);
  background: var(--bg); border-inline-start: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  transform: translateX(calc(var(--dir-flip, 1) * 100%));
  transition: transform .34s cubic-bezier(.22,.8,.3,1);
  display: flex; flex-direction: column;
}
html[dir="rtl"] .drawer { --dir-flip: -1; }
.drawer.is-open { transform: none; }
.drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px; border-bottom: 1px solid var(--line);
}
.drawer__head h3 { margin: 0; font-size: 1.1rem; font-weight: 800; display: flex; align-items: center; gap: 10px; }
.drawer__close { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-3); }
.drawer__body { flex: 1; overflow-y: auto; padding: 18px 22px; }
.drawer__empty { text-align: center; padding: 60px 10px; color: var(--ink-3); }
.drawer__empty .icon { width: 46px; height: 46px; margin: 0 auto 14px; }

.c-item { display: flex; gap: 14px; padding-block: 14px; align-items: center; }
.c-item + .c-item { border-top: 1px dashed var(--line); }
.c-item__tile {
  width: 64px; height: 64px; border-radius: 14px; flex: none;
  display: grid; place-items: center; font-size: 1.8rem;
  background: linear-gradient(145deg, var(--tile-a, #f3e3da), var(--tile-b, #e3c6bd));
  overflow: hidden;
}
.c-item__tile img { width: 100%; height: 100%; object-fit: cover; }
.c-item__info { flex: 1; min-width: 0; }
.c-item__info b { display: block; font-size: .9rem; line-height: 1.45; }
.c-item__info small { color: var(--ink-3); font-size: .74rem; }
.c-item__price { font-weight: 800; color: var(--accent); font-size: .88rem; white-space: nowrap; }
.qty { display: inline-flex; align-items: center; gap: 2px; border: 1px solid var(--line); border-radius: 10px; padding: 3px; margin-top: 6px; }
.qty button { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-3); font-weight: 800; }
.qty button:hover { background: var(--accent); color: #fff; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .88rem; }
.c-item__rm { color: var(--ink-3); padding: 6px; }
.c-item__rm:hover { color: #c0392b; }

.drawer__foot { border-top: 1px solid var(--line); padding: 18px 22px 22px; background: var(--bg-2); }
.total-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 4px; }
.total-row b { font-size: 1.15rem; color: var(--accent); }
.total-hint { font-size: .74rem; color: var(--ink-3); margin-bottom: 14px; }
.drawer__actions { display: flex; flex-direction: column; gap: 10px; }

/* checkout form inside drawer */
.co-form { display: flex; flex-direction: column; gap: 12px; padding-block: 6px 10px; }
.field label { display: block; font-size: .8rem; font-weight: 700; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 14px; border-radius: 11px;
  border: 1.5px solid var(--line); background: var(--bg-2); outline: none;
  transition: border-color var(--speed);
  font-size: .9rem;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); }
.field input.is-bad, .field textarea.is-bad { border-color: #c0392b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.order-review {
  padding: 14px 16px; border-radius: 11px; background: var(--bg-3);
  font-size: .82rem; color: var(--ink-2); max-height: 180px; overflow-y: auto;
  white-space: pre-wrap; line-height: 1.9;
}
.pay-note {
  font-size: .78rem; color: var(--ink-2); text-align: center;
  padding: 10px; border-radius: 10px; background: var(--gold-soft);
}

/* toast */
.toast {
  position: fixed; bottom: 24px; inset-inline-start: 50%; transform: translate(-50%, 140%);
  z-index: 150; padding: 13px 22px; border-radius: 999px;
  background: var(--ink); color: var(--bg-2); font-weight: 700; font-size: .88rem;
  box-shadow: var(--shadow-2); transition: transform .34s cubic-bezier(.22,.8,.3,1);
  max-width: 90vw; text-align: center;
}
.toast.is-on { transform: translate(-50%, 0); }

/* ============ REVEAL ============ */
[data-reveal] { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1020px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .feat { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
  .nav-links { display: none; }
  .burger { display: flex; }
  .hero { padding-top: 110px; }
  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__desc { margin-inline: auto; }
  .hero__actions, .hero__trust { justify-content: center; }
  .hero__visual { min-height: 340px; order: -1; }
  .cats, .duo { grid-template-columns: 1fr; }
  .reviews { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .p-card__name { font-size: .9rem; }
  .feat { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .footer__cols { flex-wrap: wrap; gap: 26px 40px; }
}

/* ============ MOTION / PRINT ============ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
