/* Greenleaf Beauty — стили */
:root {
  --g900: #143626; --g800: #1b4a33; --g700: #22603f; --g600: #2f7a50; --g500: #3f9662; --g400: #6fb887;
  --g300: #a3d3b3; --g200: #cfe8d6; --g100: #e6f2e9; --g50: #f1f8f3;
  --cream: #f8f5ee; --cream2: #efe9dc; --cream3: #e5dccb; --white: #fff;
  --ink: #17231c; --text: #22302a; --muted: #6a7a70; --line: #dfe6e1;
  --accent: #d97b4c; --accent-dark: #b9602f; --gold: #c9a24a; --rose: #e07b8c; --sky: #6fb3d9;
  --danger: #c94b4b; --ok: #2e9b5a;
  --radius: 18px; --radius-s: 10px;
  --shadow: 0 10px 30px -12px rgba(20, 54, 38, .25);
  --shadow-s: 0 4px 14px -6px rgba(20, 54, 38, .2);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --header-h: 76px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: clip; }  /* clip, а не hidden: hidden делает body прокручиваемым контейнером и ломает position: sticky */
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--cream); line-height: 1.55; font-size: 16px; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 600; line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }
.container { width: min(1240px, 100% - 40px); margin-inline: auto; }
.section { padding: 64px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 32px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; text-transform: uppercase; letter-spacing: .14em; font-size: .72rem; font-weight: 700; color: var(--g600); margin-bottom: 12px; }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--g400); border-radius: 2px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 24px; border-radius: 999px; border: 1.5px solid transparent; font-weight: 700; font-size: .95rem; transition: .2s; white-space: nowrap; line-height: 1.2; }
.btn-primary { background: var(--g700); color: #fff; border-color: var(--g700); }
.btn-primary:hover { background: var(--g800); border-color: var(--g800); transform: translateY(-1px); box-shadow: var(--shadow-s); }
.btn-accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--g800); border-color: var(--g300); }
.btn-outline:hover { background: var(--g100); border-color: var(--g500); }
.btn-ghost { background: transparent; color: var(--g700); padding-inline: 10px; }
.btn-ghost:hover { background: var(--g100); }
.btn-light { background: #fff; color: var(--g800); border-color: #fff; }
.btn-light:hover { background: var(--g100); }
.btn-sm { padding: 9px 16px; font-size: .85rem; }
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; box-shadow: none !important; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 0; background: transparent; display: inline-flex; align-items: center; justify-content: center; color: var(--g800); transition: .2s; }
.icon-btn:hover { background: var(--g100); }
.icon-btn svg { width: 22px; height: 22px; }
.icon-btn .count { position: absolute; top: 4px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: .68rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.icon-btn .count:empty, .icon-btn .count[data-zero] { display: none; }

/* header */
.topbar { background: var(--g900); color: #d5e8db; font-size: .8rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 34px; gap: 20px; }
.topbar a:hover { color: #fff; }
.topbar .tb-right { display: flex; gap: 20px; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(248, 245, 238, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(20, 54, 38, .08); }
.header-row { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 1.7rem; font-weight: 700; color: var(--g900); letter-spacing: -.02em; }
.logo svg { width: 38px; height: 38px; }
.logo span { color: var(--g500); font-style: italic; font-weight: 500; }
.main-nav { display: flex; gap: 4px; margin-left: 12px; }
.main-nav > a, .main-nav > .has-menu > a { padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .93rem; color: var(--g900); display: inline-block; transition: .2s; white-space: nowrap; }
.main-nav > a:hover, .main-nav > a.active, .main-nav .has-menu:hover > a { background: var(--g100); color: var(--g700); }
.has-menu { position: relative; }
.has-menu .menu { position: absolute; top: calc(100% + 6px); left: 0; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 10px; min-width: 260px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: .2s; }
.has-menu:hover .menu { opacity: 1; visibility: visible; transform: none; }
.has-menu .menu a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; font-size: .92rem; }
.has-menu .menu a:hover { background: var(--g50); }
.has-menu .menu .em { width: 34px; height: 34px; border-radius: 10px; background: var(--g100); display: grid; place-items: center; font-size: 1.1rem; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.header-search { display: flex; align-items: center; background: #fff; border: 1.5px solid var(--line); border-radius: 999px; padding: 0 6px 0 14px; height: 42px; width: 220px; transition: .2s; }
.header-search:focus-within { border-color: var(--g400); width: 280px; box-shadow: 0 0 0 4px var(--g100); }
.header-search input { border: 0; outline: 0; background: transparent; width: 100%; font-size: .9rem; }
.header-search button { border: 0; background: transparent; color: var(--g600); display: grid; place-items: center; width: 32px; height: 32px; }
.burger { display: none; }

/* mobile nav */
.offcanvas { position: fixed; inset: 0; z-index: 100; visibility: hidden; overflow: hidden; }
.offcanvas.open { visibility: visible; }
.offcanvas .backdrop { position: absolute; inset: 0; background: rgba(20, 35, 28, .45); opacity: 0; transition: .25s; }
.offcanvas.open .backdrop { opacity: 1; }
.offcanvas .panel { position: absolute; top: 0; bottom: 0; width: min(420px, 92vw); background: var(--cream); box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; }
.offcanvas.right .panel { right: 0; transform: translateX(100%); }
.offcanvas.left .panel { left: 0; transform: translateX(-100%); }
.offcanvas.open .panel { transform: none; }
.panel-head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel-head h3 { margin: 0; }
.panel-body { flex: 1; overflow: auto; padding: 16px 20px; }
.panel-foot { padding: 16px 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-nav a { display: block; padding: 14px 8px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 1.05rem; }
.mobile-nav .sub a { padding-left: 24px; font-weight: 500; font-size: .95rem; color: var(--muted); }

/* cart drawer */
.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: center; }
.cart-line img { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; background: var(--g50); }
.cart-line .name { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.cart-line .meta { font-size: .8rem; color: var(--muted); }
.cart-line .right { text-align: right; display: flex; flex-direction: column; align-items: end; gap: 6px; }
.cart-line .sum { font-weight: 800; }
.qty { display: inline-flex; align-items: center; border: 1.5px solid var(--line); border-radius: 999px; background: #fff; height: 36px; }
.qty button { width: 34px; height: 100%; border: 0; background: transparent; font-size: 1.1rem; color: var(--g700); border-radius: 999px; }
.qty button:hover { background: var(--g100); }
.qty input { width: 36px; text-align: center; border: 0; background: transparent; font-weight: 700; outline: 0; -moz-appearance: textfield; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
.remove { border: 0; background: transparent; color: var(--muted); font-size: .8rem; text-decoration: underline; padding: 0; }
.remove:hover { color: var(--danger); }
.totals-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: .95rem; }
.totals-row.total { font-size: 1.2rem; font-weight: 800; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 12px; }
.free-ship { font-size: .82rem; background: var(--g100); color: var(--g800); padding: 10px 14px; border-radius: 12px; margin-bottom: 10px; }
.free-ship .bar { height: 6px; background: #fff; border-radius: 3px; margin-top: 8px; overflow: hidden; }
.free-ship .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--g400), var(--g600)); border-radius: 3px; transition: width .4s; }
.empty { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty .big { font-size: 3rem; margin-bottom: 8px; }

/* hero */
.hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #e9f3ec 0%, #f8f5ee 55%, #f3ead8 100%); }
.hero .container { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; min-height: 560px; padding: 60px 0; }
.hero h1 { margin-bottom: 20px; }
.hero h1 em { font-style: italic; color: var(--g600); font-weight: 500; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 520px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 32px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats b { display: block; font-family: var(--display); font-size: 2rem; color: var(--g800); line-height: 1; }
.hero-stats span { font-size: .82rem; color: var(--muted); }
.hero-visual { position: relative; height: 480px; }
.hero-visual .blob { position: absolute; inset: 10% 5%; background: radial-gradient(circle at 40% 40%, #cfe8d6, #a3d3b3 60%, transparent 72%); filter: blur(10px); border-radius: 50%; }
.hero-visual .bottle { position: absolute; width: 31%; aspect-ratio: 1; border-radius: 26px; overflow: hidden; box-shadow: 0 30px 40px -18px rgba(20, 54, 38, .45); animation: float 6s ease-in-out infinite; background: #fff; transition: transform .3s; }
.hero-visual .bottle img { width: 100%; height: 100%; object-fit: cover; }
.hero-visual .bottle:hover { transform: scale(1.04); z-index: 5; }
.hero-visual .b1 { left: 0; top: 26%; }
.hero-visual .b2 { left: 31%; top: 4%; width: 38%; animation-delay: -2s; z-index: 2; }
.hero-visual .b3 { left: 70%; top: 34%; animation-delay: -4s; }
.hero-visual .leaf { position: absolute; color: var(--g400); opacity: .8; animation: sway 7s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) } 50% { transform: translateY(-14px) } }
@keyframes sway { 0%, 100% { transform: rotate(-6deg) } 50% { transform: rotate(8deg) } }
.leaf-bg { position: absolute; pointer-events: none; color: var(--g300); opacity: .45; }

/* marquee benefits */
.usp-strip { background: var(--g800); color: #eaf5ee; }
.usp-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 22px 0; }
.usp { display: flex; align-items: center; gap: 12px; font-size: .9rem; }
.usp svg { width: 28px; height: 28px; flex: none; color: var(--g300); }
.usp b { display: block; font-size: .95rem; }
.usp span { color: #b7d4c1; font-size: .8rem; }

/* categories */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cat-card { background: #fff; border-radius: var(--radius); padding: 26px 20px; text-align: center; transition: .25s; border: 1px solid transparent; position: relative; overflow: hidden; }
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--g200); }
.cat-card .em { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 20px; background: var(--g100); display: grid; place-items: center; font-size: 1.8rem; transition: .25s; }
.cat-card:hover .em { background: var(--g200); transform: rotate(-6deg) scale(1.05); }
.cat-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.cat-card p { font-size: .82rem; color: var(--muted); margin: 0; }

/* product grid & card */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.card { background: #fff; border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; position: relative; transition: .25s; border: 1px solid transparent; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--g200); }
.card-media { display: block; aspect-ratio: 1; background: linear-gradient(160deg, var(--g50), var(--cream2)); position: relative; overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card-media img { transform: scale(1.05); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 2; }
.badge { font-size: .68rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 9px; border-radius: 999px; background: var(--g700); color: #fff; }
.badge.hit { background: var(--accent); }
.badge.new { background: var(--g500); }
.badge.premium { background: var(--gold); }
.badge.sale { background: var(--rose); }
.badge.family { background: var(--sky); }
.badge.out { background: #8a9590; }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .85); color: var(--g700); display: grid; place-items: center; transition: .2s; }
.fav-btn:hover { background: #fff; transform: scale(1.08); }
.fav-btn svg { width: 20px; height: 20px; }
.fav-btn.active { color: var(--rose); }
.fav-btn.active svg path { fill: currentColor; }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; gap: 6px; }
.card-brand { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--g600); font-weight: 700; }
.card h3 { font-family: var(--font); font-size: .98rem; font-weight: 700; line-height: 1.35; margin: 0; color: var(--ink); }
.card h3 a:hover { color: var(--g600); }
.card-short { font-size: .82rem; color: var(--muted); margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-footer { margin-top: auto; padding-top: 12px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.price { font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.price small { color: var(--muted); text-decoration: line-through; font-weight: 500; font-size: .8rem; margin-left: 6px; }
.card .btn-add { padding: 10px 16px; }
.card .btn-add.in-cart { background: var(--g100); color: var(--g800); border-color: var(--g100); }

/* brands / benefits */
.brands { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.brand-card { background: #fff; border-radius: var(--radius); padding: 30px; border: 1px solid var(--line); transition: .25s; }
.brand-card:hover { box-shadow: var(--shadow); border-color: var(--g200); }
.brand-card .name { font-family: var(--display); font-size: 2rem; font-weight: 700; color: var(--g800); margin-bottom: 8px; }
.brand-card p { color: var(--muted); font-size: .92rem; margin-bottom: 16px; }
.why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.why-card { padding: 28px; border-radius: var(--radius); background: #fff; border: 1px solid var(--line); }
.why-card .ic { width: 52px; height: 52px; border-radius: 16px; background: var(--g100); color: var(--g700); display: grid; place-items: center; margin-bottom: 16px; }
.why-card .ic svg { width: 26px; height: 26px; }
.why-card h3 { font-size: 1.25rem; }
.why-card p { color: var(--muted); font-size: .92rem; margin: 0; }
.banner { border-radius: 28px; background: var(--g800); color: #fff; padding: 56px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; position: relative; overflow: hidden; }
.banner h2 { color: #fff; }
.banner p { color: #c6dccd; }
.banner .promo { display: inline-block; background: rgba(255, 255, 255, .12); border: 1px dashed rgba(255, 255, 255, .4); padding: 8px 16px; border-radius: 10px; font-weight: 800; letter-spacing: .1em; margin-top: 6px; }
.banner .leaf-bg { color: #2f7a50; opacity: .5; }
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.review { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.review .stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 10px; }
.review p { font-size: .95rem; margin-bottom: 14px; }
.review .who { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.review .who i { width: 36px; height: 36px; border-radius: 50%; background: var(--g200); color: var(--g800); display: grid; place-items: center; font-style: normal; font-weight: 800; }

/* catalog */
.page-head { padding: 40px 0 24px; }
.breadcrumbs { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.breadcrumbs a:hover { color: var(--g700); }
.catalog-layout { display: grid; grid-template-columns: 260px 1fr; gap: 32px; align-items: start; }
.filters { background: #fff; border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); position: sticky; top: calc(var(--header-h) + 16px); max-height: calc(100vh - var(--header-h) - 32px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--g200) transparent; }
.filters h4 { font-family: var(--font); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 18px 0 10px; }
.filters h4:first-child { margin-top: 0; }
.check { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: .92rem; cursor: pointer; }
.check input { accent-color: var(--g600); width: 17px; height: 17px; }
.check .n { margin-left: auto; color: var(--muted); font-size: .8rem; }
.range { display: flex; gap: 8px; }
.range input { width: 100%; }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.toolbar .found { color: var(--muted); font-size: .9rem; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { padding: 8px 14px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-size: .85rem; font-weight: 600; cursor: pointer; transition: .2s; }
.chip:hover, .chip.active { border-color: var(--g600); background: var(--g100); color: var(--g800); }
.filters-toggle { display: none; }
.catalog .grid { grid-template-columns: repeat(3, 1fr); }

/* forms */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: .85rem; font-weight: 700; color: var(--ink); }
.field .hint { font-size: .78rem; color: var(--muted); }
.input, select.input, textarea.input { width: 100%; padding: 13px 16px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; outline: 0; transition: .2s; }
.input:focus { border-color: var(--g500); box-shadow: 0 0 0 4px var(--g100); }
.input.error { border-color: var(--danger); }
textarea.input { min-height: 90px; resize: vertical; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.opt { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1.5px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; margin-bottom: 10px; transition: .2s; }
.opt:hover { border-color: var(--g300); }
.opt.active { border-color: var(--g600); background: var(--g50); box-shadow: 0 0 0 3px var(--g100); }
.opt input { accent-color: var(--g600); width: 18px; height: 18px; flex: none; }
.opt .t { flex: 1; }
.opt .t b { display: block; font-size: .95rem; }
.opt .t span { font-size: .8rem; color: var(--muted); }
.opt .p { font-weight: 800; white-space: nowrap; }
.opt .p.free { color: var(--ok); }
.form-error { background: #fdecec; color: var(--danger); padding: 12px 16px; border-radius: 12px; font-size: .9rem; margin-bottom: 16px; }
.form-error:empty { display: none; }

/* cart / checkout pages */
.cart-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.box { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.box h3 { margin-bottom: 16px; }
.sticky { position: sticky; top: calc(var(--header-h) + 16px); }
.promo-row { display: flex; gap: 8px; margin: 12px 0; }
.promo-row .input { flex: 1; padding: 11px 14px; }
.promo-ok { color: var(--ok); font-size: .85rem; }
.cart-table .cart-line { grid-template-columns: 90px 1fr auto; }
.cart-table img { width: 90px; height: 90px; }
.steps { display: flex; gap: 8px; align-items: center; margin-bottom: 26px; font-size: .85rem; color: var(--muted); flex-wrap: wrap; }
.steps b { color: var(--g800); }
.steps i { width: 24px; height: 1px; background: var(--line); }
.order-summary .cart-line { grid-template-columns: 56px 1fr auto; padding: 10px 0; }
.order-summary img { width: 56px; height: 56px; }
.success { text-align: center; padding: 60px 20px; }
.success .ic { width: 90px; height: 90px; border-radius: 50%; background: var(--g100); color: var(--g700); display: grid; place-items: center; margin: 0 auto 20px; }
.success .ic svg { width: 44px; height: 44px; }
.status-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; font-size: .82rem; font-weight: 700; background: var(--g100); color: var(--g800); }
.status-pill.paid, .status-pill.done { background: #e2f5e9; color: var(--ok); }
.status-pill.pending_payment { background: #fff4e0; color: #b9740f; }
.status-pill.cancelled { background: #fdecec; color: var(--danger); }
.status-pill.shipped, .status-pill.processing { background: #e5f0fa; color: #2d6ea3; }

/* product page */
.product-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.gallery { position: sticky; top: calc(var(--header-h) + 16px); }
.gallery .main { aspect-ratio: 1; border-radius: 24px; overflow: hidden; background: linear-gradient(160deg, var(--g50), var(--cream2)); position: relative; }
.gallery .main img { width: 100%; height: 100%; object-fit: cover; }
.p-brand { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: var(--g600); font-weight: 700; margin-bottom: 8px; }
.p-title { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-bottom: 8px; }
.p-meta { display: flex; gap: 16px; color: var(--muted); font-size: .9rem; margin-bottom: 20px; flex-wrap: wrap; }
.p-meta .stock { color: var(--ok); font-weight: 700; }
.p-meta .stock.out { color: var(--danger); }
.p-price { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.p-price small { font-size: 1rem; color: var(--muted); text-decoration: line-through; font-weight: 500; margin-left: 8px; }
.p-partner { font-size: .85rem; color: var(--muted); margin-bottom: 20px; }
.p-partner a { color: var(--g700); text-decoration: underline; }
.p-actions { display: flex; gap: 12px; align-items: center; margin-bottom: 24px; flex-wrap: wrap; }
.p-actions .qty { height: 50px; }
.p-actions .qty button { width: 44px; }
.p-actions .btn { height: 50px; }
.p-perks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 26px; }
.perk { display: flex; gap: 10px; align-items: center; font-size: .85rem; background: #fff; border: 1px solid var(--line); padding: 10px 12px; border-radius: 12px; }
.perk svg { width: 20px; height: 20px; color: var(--g600); flex: none; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { border: 0; background: transparent; padding: 12px 16px; font-weight: 700; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--g800); border-color: var(--g700); }
.tab-panel { display: none; font-size: .97rem; }
.tab-panel.active { display: block; }
.tab-panel ul { padding-left: 20px; }
.tab-panel li { margin-bottom: 6px; }

/* text pages */
.prose { max-width: 800px; font-size: 1.02rem; }
.prose h2 { margin-top: 1.6em; font-size: 1.8rem; }
.prose h3 { margin-top: 1.4em; }
.prose ul { padding-left: 22px; }
.prose li { margin-bottom: 6px; }
.info-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.info-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.info-card h3 { display: flex; align-items: center; gap: 10px; }
.info-card .price-tag { font-weight: 800; color: var(--g700); }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 10px; }
.faq summary { padding: 14px 0; font-weight: 700; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::after { content: "+"; font-size: 1.4rem; color: var(--g600); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 14px; margin: 0; }
.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.contact-list svg { width: 22px; height: 22px; color: var(--g600); flex: none; margin-top: 2px; }
.contact-list b { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.social { display: flex; gap: 10px; flex-wrap: wrap; }
.social a { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: #fff; border: 1.5px solid var(--line); font-weight: 700; font-size: .88rem; transition: .2s; }
.social a:hover { border-color: var(--g500); background: var(--g50); }
.map { border-radius: var(--radius); overflow: hidden; background: var(--g100); min-height: 320px; display: grid; place-items: center; color: var(--muted); }

/* footer */
.site-footer { background: var(--g900); color: #b9d0c1; margin-top: 60px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; padding: 56px 0 36px; }
.site-footer .logo { color: #fff; margin-bottom: 14px; }
.site-footer .logo span { color: var(--g300); }
.site-footer h4 { color: #fff; font-family: var(--font); font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 8px; font-size: .92rem; }
.site-footer a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); padding: 18px 0; font-size: .8rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.pay-icons { display: flex; gap: 8px; }
.pay-icons span { background: rgba(255, 255, 255, .08); padding: 4px 10px; border-radius: 6px; font-size: .72rem; font-weight: 700; color: #fff; }

/* toast */
.toast-wrap { position: fixed; bottom: 24px; left: 16px; right: 16px; z-index: 200; display: flex; flex-direction: column; align-items: center; gap: 8px; pointer-events: none; }
.toast { max-width: 100%; background: var(--g900); color: #fff; padding: 12px 20px; border-radius: 12px; box-shadow: var(--shadow); font-size: .9rem; display: flex; gap: 14px; align-items: center; animation: toastIn .3s; pointer-events: auto; }
.toast a { white-space: nowrap; }
.toast.err { background: var(--danger); }
.toast a { text-decoration: underline; font-weight: 700; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px) } }

/* admin */
.admin-login { max-width: 400px; margin: 80px auto; }
.admin-tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; background: #fff; border-radius: var(--radius); border: 1px solid var(--line); }
table.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.tbl th { background: var(--g50); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.tbl tr:hover td { background: #fbfcfb; }
.tbl select, .tbl input { padding: 6px 8px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.tbl input[type=number] { width: 90px; }
.tbl input[type=text] { width: 100%; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; }
.stat b { display: block; font-size: 1.6rem; font-family: var(--display); color: var(--g800); }
.stat span { font-size: .8rem; color: var(--muted); }
.modal { position: fixed; inset: 0; background: rgba(20, 35, 28, .5); z-index: 150; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.open { display: flex; }
.modal .box { width: min(760px, 100%); max-height: 90vh; overflow: auto; }

/* skeleton */
.skeleton { background: linear-gradient(90deg, #eee 25%, #f6f6f6 50%, #eee 75%); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: var(--radius); min-height: 340px; }
@keyframes sk { to { background-position: -200% 0 } }
.reveal { opacity: 0; transform: translateY(16px); transition: .6s; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1180px) {
  .header-row { gap: 12px; }
  .main-nav { margin-left: 0; }
  .main-nav > a, .main-nav > .has-menu > a { padding: 8px 10px; font-size: .88rem; }
  .header-search { width: 150px; }
  .header-search:focus-within { width: 200px; }
  .logo { font-size: 1.45rem; }
}
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
  .catalog .grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(3, 1fr); }
  .usp-strip .container { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1000px) {
  .main-nav, .header-search { display: none; }
  .burger { display: inline-flex; }
}
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; min-height: auto; padding: 40px 0 20px; }
  .hero-visual { height: 300px; }
  .catalog-layout { grid-template-columns: 1fr; }
  .filters { position: static; display: none; max-height: none; overflow: visible; }
  .filters.open { display: block; }
  .filters-toggle { display: inline-flex; }
  .cart-layout, .product-layout { grid-template-columns: 1fr; }
  .gallery { position: static; }
  .sticky { position: static; }
  .brands, .why, .reviews { grid-template-columns: 1fr; }
  .banner { grid-template-columns: 1fr; padding: 36px 28px; }
  .info-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 44px 0; }
}
@media (max-width: 600px) {
  .container { width: min(1240px, 100% - 28px); }
  .grid, .catalog .grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .card-body { padding: 12px; }
  .card h3 { font-size: .88rem; }
  .card-short { display: none; }
  .card-footer { flex-direction: column; align-items: stretch; }
  .card .btn-add { width: 100%; }
  .topbar .tb-right { display: none; }
  .row-2 { grid-template-columns: 1fr; }
  .usp-strip .container { grid-template-columns: 1fr; gap: 12px; }
  .hero-stats { gap: 20px; }
  .p-perks { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding: 40px 0 28px; }
}
