@font-face {
	font-family: "Vazirmatn";
	src: url("../fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--brand: #15803d;
	--brand-d: #116532;
	--brand-t: #e7f4ec;
	--accent: #f59e0b;
	--accent-t: #fef3c7;
	--sale: #e11d48;
	--sale-t: #ffe4e9;
	--ink: #17231c;
	--ink-2: #4b5b52;
	--muted: #7b8a82;
	--line: #e3e9e5;
	--bg: #f5f7f4;
	--card: #fff;
	--r: 14px;
	--r-sm: 10px;
	--sh: 0 1px 2px rgba(23, 35, 28, .05), 0 6px 20px rgba(23, 35, 28, .05);
	--sh-lg: 0 18px 50px rgba(23, 35, 28, .18);
	--tab-h: 64px;
	--font: "Vazirmatn", system-ui, -apple-system, "Segoe UI", Tahoma, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 400 15px/1.75 var(--font);
	color: var(--ink);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.5; font-weight: 800; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; border-radius: 6px; }
.emoji { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; font-style: normal; line-height: 1; }
.ic { flex: none; }
.container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.skip { position: absolute; inset-inline-start: 8px; top: -80px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { top: 8px; }

/* Buttons */
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 46px; padding: 0 22px; border-radius: var(--r-sm);
	font-weight: 700; font-size: 15px; transition: background .15s, transform .1s;
}
.btn:active { transform: scale(.98); }
.btn--brand { background: var(--brand); color: #fff; }
.btn--brand:hover { background: var(--brand-d); }
.btn--soft { background: var(--brand-t); color: var(--brand-d); }
.btn--soft:hover { background: #d7ecdf; }
.btn--light { background: #fff; color: var(--brand-d); }
.btn--block { width: 100%; }
.iconbtn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%; color: var(--ink-2); }
.iconbtn:hover { background: var(--bg); }
.badge {
	min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
	background: var(--sale); color: #fff; font-size: 12px; font-weight: 700; line-height: 20px; text-align: center;
}

/* Top bar */
.topbar { background: var(--brand-d); color: #fff; font-size: 13px; }
.topbar .container { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 34px; }

/* Header */
.hdr { background: var(--card); position: sticky; top: 0; z-index: 40; box-shadow: 0 1px 0 var(--line); }
.hdr__row { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "logo act" "search search"; gap: 10px 12px; align-items: center; padding-block: 10px; }
.logo, .custom-logo-link { grid-area: logo; display: inline-flex; align-items: center; gap: 10px; }
.custom-logo { max-height: 44px; width: auto; }
.logo__txt { display: flex; flex-direction: column; line-height: 1.35; }
.logo__txt b { font-size: 18px; font-weight: 900; color: var(--brand-d); }
.logo__txt small { font-size: 11px; color: var(--muted); }
.hdr__act { grid-area: act; display: flex; gap: 8px; align-items: center; }
.hbtn { position: relative; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; border-radius: var(--r-sm); font-weight: 600; font-size: 14px; }
.hbtn--ghost { color: var(--ink-2); }
.hbtn--ghost:hover { background: var(--bg); }
.hbtn--cart { background: var(--brand-t); color: var(--brand-d); }
.hbtn--cart .badge { position: absolute; top: -6px; inset-inline-start: -6px; }
.hbtn span { display: none; }

.search { grid-area: search; position: relative; display: flex; }
.search__in {
	width: 100%; height: 46px; border: 1.5px solid transparent; border-radius: var(--r-sm);
	background: var(--bg); padding-inline: 16px 50px; outline: 0; transition: border-color .15s, background .15s;
}
.search__in::placeholder { color: var(--muted); }
.search__in:focus { border-color: var(--brand); background: #fff; }
.search__in::-webkit-search-cancel-button { display: none; }
.search__btn { position: absolute; inset-inline-end: 4px; top: 4px; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 8px; color: var(--brand-d); }
.search__res {
	position: absolute; top: calc(100% + 6px); inset-inline: 0; z-index: 50;
	background: #fff; border-radius: var(--r); box-shadow: var(--sh-lg); padding: 6px; max-height: 70vh; overflow: auto;
}
.sres { display: grid; grid-template-columns: 44px 1fr auto; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 10px; }
.sres:hover, .sres:focus { background: var(--bg); }
.sres__img { width: 44px; height: 44px; border-radius: 10px; background: var(--bg); display: grid; place-items: center; font-size: 22px; overflow: hidden; }
.sres__img img { width: 100%; height: 100%; object-fit: cover; }
.sres__name { font-size: 14px; font-weight: 600; line-height: 1.6; }
.sres__price { font-size: 13px; color: var(--brand-d); white-space: nowrap; }
.sres--cat .sres__name { color: var(--brand-d); }
.sres__none { padding: 18px; text-align: center; color: var(--muted); font-size: 14px; }
.sres__all { width: 100%; padding: 10px; margin-top: 4px; border-top: 1px solid var(--line); color: var(--brand-d); font-weight: 700; font-size: 14px; }

.nav { display: none; }

/* Hero */
.hero { padding-block: 16px 8px; }
.hero__grid { display: grid; gap: 12px; }
.hero__main {
	position: relative; overflow: hidden; border-radius: 20px; color: #fff; min-height: 220px;
	background: radial-gradient(120% 140% at 100% 0%, #22a55a 0%, var(--brand) 45%, #0c5a2b 100%);
	display: grid; align-items: center; padding: 24px 20px;
}
.hero__copy { position: relative; z-index: 2; max-width: 520px; }
.hero__kicker { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .16); border-radius: 99px; padding: 4px 12px; font-size: 12.5px; font-weight: 600; margin-bottom: 10px; }
.hero h1 { font-size: clamp(22px, 5.4vw, 40px); font-weight: 900; line-height: 1.45; margin-bottom: 8px; text-wrap: balance; }
.hero p { font-size: 14px; opacity: .92; margin-bottom: 16px; max-width: 420px; }
.hero__art { position: absolute; inset-block: 0; inset-inline-end: 0; width: 46%; pointer-events: none; }
.hero__art img { opacity: .3; }
.hero__e { display: none; }
.hero__art img { width: 100%; height: 100%; object-fit: cover; opacity: 1; }
.hero__blob { position: absolute; width: 320px; height: 320px; border-radius: 50%; background: rgba(255, 255, 255, .12); inset-inline-end: -80px; top: 50%; transform: translateY(-50%); }
.hero__e { position: absolute; font-size: 56px; filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .25)); }
.hero__e--1 { inset-inline-end: 36%; top: 12%; font-size: 74px; }
.hero__e--2 { inset-inline-end: 8%; top: 8%; }
.hero__e--3 { inset-inline-end: 52%; bottom: 8%; font-size: 64px; }
.hero__e--4 { inset-inline-end: 14%; bottom: 12%; font-size: 70px; }
.hero__e--5 { inset-inline-end: 30%; top: 48%; font-size: 46px; }
.hero__side { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.promo { border-radius: var(--r); padding: 14px; display: flex; flex-direction: column; gap: 2px; min-height: 120px; transition: transform .15s; }
.promo:hover { transform: translateY(-2px); }
.promo strong { font-size: 15px; font-weight: 800; }
.promo span { font-size: 12.5px; color: var(--ink-2); line-height: 1.7; }
.promo__ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 8px; background: #fff; }
.promo--1 { background: var(--brand-t); } .promo--1 .promo__ic { color: var(--brand); }
.promo--2 { background: var(--accent-t); } .promo--2 .promo__ic { color: #b45309; }

/* Section heads */
.sec__hd { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec__hd h2 { font-size: 18px; }
.sec__hd a { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--brand-d); }

/* Categories */
.cats { padding-block: 16px 4px; }
.cats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px 8px; }
.cat { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; }
.cat__ic { width: 100%; max-width: 84px; aspect-ratio: 1; border-radius: 22px; display: grid; place-items: center; font-size: 34px; overflow: hidden; transition: transform .15s; }
.cat__ic img { width: 100%; height: 100%; object-fit: cover; }
.cat:hover .cat__ic { transform: translateY(-3px); }
.cat__name { font-size: 12.5px; font-weight: 600; line-height: 1.5; }
.cat--1 .cat__ic { background: #e7f4ec; } .cat--2 .cat__ic { background: #fef3c7; } .cat--3 .cat__ic { background: #ffe4e9; }
.cat--4 .cat__ic { background: #e0f2fe; } .cat--5 .cat__ic { background: #f3e8ff; } .cat--6 .cat__ic { background: #ffedd5; }

/* Rails */
.rail { padding-block: 14px; }
.rail__hd { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rail__hd h2 { font-size: 18px; }
.rail__hd p { margin: 0; font-size: 12.5px; color: var(--muted); }
.rail__ctl { margin-inline-start: auto; display: flex; align-items: center; gap: 6px; }
.rail__all { display: inline-flex; align-items: center; gap: 2px; font-size: 13px; font-weight: 600; color: var(--brand-d); white-space: nowrap; }
.rail__arrow { display: none; width: 36px; height: 36px; border-radius: 50%; background: #fff; border: 1px solid var(--line); place-items: center; color: var(--ink-2); }
.rail__arrow:hover { border-color: var(--brand); color: var(--brand); }
.rail__track {
	display: grid; grid-auto-flow: column; grid-auto-columns: 152px; gap: 10px;
	overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none;
	margin-inline: -16px; padding-inline: 16px; padding-block: 2px 8px; scroll-padding-inline: 16px;
}
.rail__track::-webkit-scrollbar { display: none; }
.rail__track > * { scroll-snap-align: start; }
.rail--sale .rail__box { background: linear-gradient(135deg, #e11d48, #be123c); border-radius: 20px; padding: 16px; color: #fff; }
.rail--sale .rail__hd p { color: rgba(255, 255, 255, .8); }
.rail--sale .rail__all { color: #fff; }
.rail--sale .rail__track { margin-inline: -16px; }
.rail--sale .rail__arrow { background: rgba(255, 255, 255, .16); border-color: transparent; color: #fff; }
.timer { display: inline-flex; align-items: center; gap: 6px; background: rgba(255, 255, 255, .18); border-radius: 99px; padding: 4px 12px; font-weight: 700; font-size: 14px; font-variant-numeric: tabular-nums; direction: ltr; }

/* Product card */
.pcard { position: relative; background: var(--card); color: var(--ink); border-radius: var(--r); box-shadow: var(--sh); display: flex; flex-direction: column; overflow: hidden; min-width: 0; }
.pcard__media { position: relative; display: block; aspect-ratio: 1; background: #fafbfa; overflow: hidden; }
.pcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 8px; transition: transform .25s; }
.pcard:hover .pcard__media img { transform: scale(1.04); }
.pcard__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 58px; background: linear-gradient(160deg, #f4f8f5, #eaf1ec); }
.pcard__off { position: absolute; top: 8px; inset-inline-start: 8px; background: var(--sale); color: #fff; font-size: 12px; font-weight: 800; border-radius: 99px; padding: 1px 9px; }
.pcard__body { padding: 10px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.pcard__title { font-size: 13.5px; font-weight: 600; line-height: 1.65; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.3em; }
.pcard__unit { font-size: 12px; color: var(--muted); }
.pcard__foot { margin-top: auto; padding-top: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; min-height: 48px; }
.pcard.is-out .pcard__media { filter: grayscale(1); opacity: .6; }

.price { font-weight: 800; font-size: 14.5px; line-height: 1.5; display: flex; flex-direction: column; }
.price del { order: -1; color: var(--muted); font-weight: 400; font-size: 12px; text-decoration: line-through; }
.price ins { text-decoration: none; }
.price .woocommerce-Price-currencySymbol { font-size: 11px; font-weight: 500; color: var(--ink-2); }
.price del .woocommerce-Price-currencySymbol { display: none; }
.price { position: relative; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
.price__na { color: var(--muted); font-weight: 600; font-size: 13px; }

/* Quantity stepper */
.qty { flex: none; }
.qty__add { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--brand-t); color: var(--brand-d); transition: background .15s, color .15s; }
.qty__add:hover { background: var(--brand); color: #fff; }
.qty__step { display: inline-flex; align-items: center; height: 38px; border-radius: 11px; background: var(--brand); color: #fff; box-shadow: 0 4px 12px rgba(21, 128, 61, .3); }
.qty__step button { width: 32px; height: 38px; display: grid; place-items: center; color: #fff; }
.qty__step button:disabled { opacity: .4; cursor: default; }
.qty__step output { min-width: 22px; text-align: center; font-weight: 800; font-size: 15px; }
.qty__trash { display: none; }
.qty.is-one .qty__trash { display: block; }
.qty.is-one .qty__minus { display: none; }
.qty--lg { display: flex; }
.qty--lg .qty__add { width: auto; height: 50px; flex: 1; border-radius: var(--r-sm); background: var(--brand); color: #fff; display: inline-flex; }
.qty--lg .qty__step { height: 50px; width: 100%; justify-content: space-between; border-radius: var(--r-sm); }
.qty--lg .qty__step button { width: 56px; height: 50px; }
.qty--lg .qty__step output { font-size: 18px; }

/* Product grid */
.pgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }

/* Trust */
.trust { padding-block: 14px; }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.trust__i { background: var(--card); border-radius: var(--r); padding: 12px; display: flex; align-items: center; gap: 10px; box-shadow: var(--sh); color: var(--brand); }
.trust__i div { display: flex; flex-direction: column; line-height: 1.6; color: var(--ink); }
.trust__i b { font-size: 13.5px; }
.trust__i span { font-size: 12px; color: var(--muted); }

/* Shop archive */
.shop { padding-block: 12px 24px; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; white-space: nowrap; overflow-x: auto; scrollbar-width: none; }
.crumbs a:hover { color: var(--brand-d); }
.crumbs__sep { margin-inline: 6px; opacity: .5; }
.shop__hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.shop__hd h1 { font-size: 20px; }
.shop__count { font-size: 12.5px; color: var(--muted); }
.woocommerce-ordering { margin: 0; }
.woocommerce-ordering select, .orderby {
	height: 42px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding-inline: 12px; max-width: 170px; font-size: 13.5px;
}
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding: 2px 16px 12px; }
.chips::-webkit-scrollbar { display: none; }
.chips--wrap { flex-wrap: wrap; margin: 0; padding: 0; overflow: visible; }
.chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 38px; padding-inline: 14px; border-radius: 99px; background: #fff; border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.chip:hover { border-color: var(--brand); color: var(--brand-d); }
.chip.is-on { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip--up { background: var(--bg); color: var(--ink-2); }
.shop__desc { margin-top: 24px; background: #fff; border-radius: var(--r); padding: 16px; }

.pager { display: flex; justify-content: center; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.pager .page-numbers { min-width: 40px; height: 40px; padding-inline: 8px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.pager .current { background: var(--brand); border-color: var(--brand); color: #fff; }
.pager .dots { border: 0; background: none; }

/* Blank states */
.blank { text-align: center; padding: 48px 16px; max-width: 420px; margin-inline: auto; }
.blank__ic { font-size: 64px; display: block; margin-bottom: 12px; }
.blank h1, .blank h2 { font-size: 20px; margin-bottom: 6px; }
.blank p { color: var(--ink-2); font-size: 14px; }
.blank--sm { padding: 32px 12px; }
.blank--sm .blank__ic { font-size: 48px; }

/* Product page */
.pdp { padding-block: 12px 8px; }
.pdp__grid { display: grid; gap: 16px; }
.gal__stage { position: relative; background: #fff; border-radius: 20px; aspect-ratio: 1; overflow: hidden; box-shadow: var(--sh); }
.gal__stage img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }
.gal__stage .pcard__ph { font-size: 130px; }
.gal__stage .pcard__off { top: 14px; inset-inline-start: 14px; font-size: 13px; padding: 3px 12px; }
.gal__thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; scrollbar-width: none; }
.gal__t { flex: none; width: 64px; height: 64px; border-radius: 12px; overflow: hidden; background: #fff; border: 2px solid transparent; }
.gal__t.is-on { border-color: var(--brand); }
.gal__t img { width: 100%; height: 100%; object-fit: cover; }
.pdp__info { display: flex; flex-direction: column; gap: 8px; }
.pdp__cats { font-size: 12.5px; color: var(--brand-d); font-weight: 600; }
.pdp__info h1 { font-size: 21px; line-height: 1.6; }
.pdp__unit { align-self: flex-start; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 1px 12px; font-size: 13px; color: var(--ink-2); }
.pdp__short { font-size: 14px; color: var(--ink-2); }
.pdp__perks { display: grid; gap: 6px; margin-block: 4px; }
.pdp__perks li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink-2); }
.pdp__perks .ic { color: var(--brand); }
.buy {
	position: fixed; z-index: 35; inset-inline: 0; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom));
	background: #fff; box-shadow: 0 -6px 24px rgba(23, 35, 28, .1); padding: 10px 16px;
	display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: center;
}
.buy__price { font-size: 17px; }
.buy__out { grid-column: 1 / -1; text-align: center; color: var(--muted); font-weight: 700; padding: 10px; }
.buy__native { grid-column: 1 / -1; }
.single-product .main { padding-bottom: 80px; }
.pdp__sec { background: #fff; border-radius: var(--r); padding: 16px; margin-top: 14px; box-shadow: var(--sh); }
.pdp__sec h2 { font-size: 16px; margin-bottom: 10px; }
.woocommerce-product-attributes { width: 100%; border-collapse: collapse; font-size: 14px; }
.woocommerce-product-attributes th, .woocommerce-product-attributes td { padding: 9px 10px; text-align: start; border-bottom: 1px solid var(--line); }
.woocommerce-product-attributes tr:last-child > * { border-bottom: 0; }
.woocommerce-product-attributes th { width: 38%; color: var(--muted); font-weight: 500; }
.woocommerce-product-attributes p { margin: 0; }

/* Generic page / prose */
.page { padding-block: 18px 32px; }
.page__title { font-size: 22px; margin-bottom: 14px; }
.page__img { border-radius: var(--r); margin-bottom: 16px; }
.prose { line-height: 2; }
.prose h2 { font-size: 19px; margin: 1.4em 0 .5em; }
.prose h3 { font-size: 16.5px; margin: 1.2em 0 .4em; }
.prose a { color: var(--brand-d); text-decoration: underline; text-underline-offset: 4px; }
.prose ul, .prose ol { padding-inline-start: 1.4em; margin-bottom: 1em; list-style: revert; }
.prose img { border-radius: var(--r); }
.page > .prose { background: #fff; border-radius: var(--r); padding: 18px; box-shadow: var(--sh); }
.posts { display: grid; gap: 12px; }
.post { background: #fff; border-radius: var(--r); padding: 14px; box-shadow: var(--sh); display: grid; gap: 6px; }
.post span { font-size: 13.5px; color: var(--ink-2); }
.empty { color: var(--muted); }

/* Categories page */
.catlist { display: grid; gap: 12px; }
.catlist__g { background: #fff; border-radius: var(--r); padding: 12px; box-shadow: var(--sh); }
.catlist__top { display: grid; grid-template-columns: 56px 1fr auto auto; align-items: center; gap: 12px; }
.catlist__top .cat__ic { max-width: 56px; border-radius: 16px; font-size: 28px; }
.catlist__top small { color: var(--muted); font-size: 12.5px; }
.catlist__top .ic { color: var(--muted); }
.catlist__g .chips { margin-top: 12px; }

/* Shipping progress */
.shipbar { background: var(--accent-t); border-radius: var(--r-sm); padding: 10px 12px; font-size: 13.5px; }
.shipbar__txt { display: flex; align-items: center; gap: 8px; color: #92400e; }
.shipbar__track { height: 6px; border-radius: 3px; background: rgba(146, 64, 14, .15); margin-top: 8px; overflow: hidden; }
.shipbar__track i { display: block; height: 100%; border-radius: 3px; background: var(--accent); transition: width .3s; }
.shipbar.is-free { background: var(--brand-t); }
.shipbar.is-free .shipbar__txt { color: var(--brand-d); }
.shipbar.is-free .shipbar__track { background: rgba(21, 128, 61, .15); }
.shipbar.is-free .shipbar__track i { background: var(--brand); }

/* Drawer */
.scrim { position: fixed; inset: 0; z-index: 60; background: rgba(15, 25, 19, .5); opacity: 0; transition: opacity .2s; }
.drawer {
	position: fixed; z-index: 61; inset-block: 0; inset-inline-start: 0; width: min(420px, 100%);
	background: var(--bg); display: flex; flex-direction: column; box-shadow: var(--sh-lg);
	transform: translateX(100%); transition: transform .22s ease-out;
}
.drawer-open .scrim { opacity: 1; }
.drawer-open .drawer { transform: none; }
.drawer-open body { overflow: hidden; }
.drawer__hd { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--line); }
.drawer__hd strong { font-size: 16px; }
.drawer__hd small { color: var(--muted); font-weight: 500; font-size: 12.5px; }
.drawer__ship { padding: 12px 16px 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 12px 16px; display: grid; gap: 10px; align-content: start; }
.drawer__ft { background: #fff; border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); display: grid; gap: 8px; }
.drawer__sum { display: flex; justify-content: space-between; align-items: center; font-size: 15px; margin-bottom: 2px; }
.drawer__sum b { font-size: 17px; }
.ditem, .citem { background: #fff; border-radius: var(--r); padding: 10px; display: grid; grid-template-columns: 72px 1fr; gap: 12px; box-shadow: var(--sh); }
.ditem__img, .citem__img { position: relative; width: 72px; height: 72px; border-radius: 12px; background: var(--bg); overflow: hidden; display: grid; place-items: center; font-size: 34px; }
.ditem__img img, .citem__img img { width: 100%; height: 100%; object-fit: cover; }
.citem__img .pcard__ph { font-size: 34px; }
.ditem__body, .citem__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ditem__name, .citem__name { font-size: 13.5px; font-weight: 600; line-height: 1.6; }
.ditem__foot, .citem__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ditem__total { font-size: 14px; }
.ditem .qty__step button { font-size: 20px; font-weight: 700; line-height: 1; }

/* Toast */
.toast { position: fixed; z-index: 80; inset-inline: 16px; bottom: calc(var(--tab-h) + 16px + env(safe-area-inset-bottom)); margin-inline: auto; max-width: 420px; background: var(--ink); color: #fff; border-radius: var(--r-sm); padding: 12px 16px; font-size: 14px; text-align: center; box-shadow: var(--sh-lg); }

/* Footer */
.ftr { background: #fff; margin-top: 24px; border-top: 1px solid var(--line); }
.ftr__grid { display: grid; gap: 22px; padding-block: 26px; }
.ftr__about p { margin: 12px 0 0; font-size: 13.5px; color: var(--ink-2); max-width: 420px; }
.ftr h3 { font-size: 15px; margin-bottom: 10px; }
.ftr__menu { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; font-size: 14px; color: var(--ink-2); }
.ftr__menu a:hover { color: var(--brand-d); }
.ftr__contact { display: grid; gap: 8px; font-size: 14px; color: var(--ink-2); }
.ftr__contact li { display: flex; gap: 8px; align-items: flex-start; }
.ftr__contact .ic { color: var(--brand); margin-top: 4px; }
.ftr__copy { border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); text-align: center; padding-block: 14px; }

/* Bottom tab bar */
.tabbar {
	position: fixed; z-index: 45; inset-inline: 0; bottom: 0; height: calc(var(--tab-h) + env(safe-area-inset-bottom));
	padding-bottom: env(safe-area-inset-bottom);
	background: #fff; box-shadow: 0 -1px 0 var(--line), 0 -8px 24px rgba(23, 35, 28, .06);
	display: grid; grid-template-columns: repeat(5, 1fr);
}
.tabbar__i { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); }
.tabbar__i.is-on { color: var(--brand); }
.tabbar__fab { position: relative; width: 52px; height: 52px; margin-top: -26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(21, 128, 61, .4); border: 4px solid #fff; }
.tabbar__fab .badge { position: absolute; top: -4px; inset-inline-start: -4px; }
.tabbar__i--cart { color: var(--brand-d); }

/* ---------- Tablet ---------- */
@media (min-width: 640px) {
	.rail__track { grid-auto-columns: 176px; gap: 14px; }
	.pgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; }
	.cats__grid { grid-template-columns: repeat(6, 1fr); }
	.trust__grid { grid-template-columns: repeat(4, 1fr); }
	.ftr__grid { grid-template-columns: 1.4fr 1fr 1fr; }
	.catlist { grid-template-columns: 1fr 1fr; }
	.posts { grid-template-columns: 1fr 1fr; }
	.hbtn span { display: inline; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
	body { padding-bottom: 0; font-size: 15.5px; }
	.container { padding-inline: 24px; }
	.tabbar { display: none; }
	.toast { bottom: 24px; }

	.hdr__row { grid-template-columns: auto minmax(0, 620px) 1fr; grid-template-areas: "logo search act"; gap: 28px; padding-block: 14px; }
	.hdr__act { justify-content: flex-end; }
	.hbtn { padding: 0 16px; }
	.search__in { height: 50px; }
	.search__btn { top: 6px; inset-inline-end: 6px; }

	.nav { display: block; border-top: 1px solid var(--line); }
	.nav__row { display: flex; align-items: center; gap: 8px; height: 50px; }
	.nav__links { display: flex; gap: 2px; overflow: hidden; flex: 1; }
	.nav__links a { padding: 6px 12px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
	.nav__links a:hover { background: var(--bg); color: var(--brand-d); }
	.nav__sale { display: inline-flex; align-items: center; gap: 6px; color: var(--sale); font-weight: 700; font-size: 14px; padding: 6px 12px; border-radius: 8px; }
	.nav__sale:hover { background: var(--sale-t); }
	.mega { position: relative; }
	.mega__btn { display: inline-flex; align-items: center; gap: 8px; height: 50px; padding-inline: 4px 16px; font-weight: 700; font-size: 14.5px; border-inline-end: 1px solid var(--line); margin-inline-end: 8px; }
	.mega__panel {
		position: absolute; top: 100%; inset-inline-start: 0; width: min(920px, 90vw); z-index: 50;
		background: #fff; border-radius: 0 0 var(--r) var(--r); box-shadow: var(--sh-lg); padding: 20px;
		display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px 20px;
		opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s;
	}
	.mega:hover .mega__panel, .mega:focus-within .mega__panel, .mega.is-open .mega__panel { opacity: 1; visibility: visible; transform: none; }
	.mega__col { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--ink-2); }
	.mega__col a:hover { color: var(--brand-d); }
	.mega__top { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 14.5px; color: var(--ink); margin-bottom: 2px; }
	.mega__top .emoji { font-size: 20px; }

	.hero { padding-block: 24px 8px; }
	.hero__grid { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1fr); gap: 20px; }
	.hero__main { min-height: 360px; padding: 48px; border-radius: 24px; }
	.hero p { font-size: 16px; }
	.hero__art { width: 48%; }
	.hero__art img { opacity: 1; }
	.hero__e { display: block; font-size: 84px; }
	.hero__e--1 { font-size: 120px; } .hero__e--3 { font-size: 96px; } .hero__e--4 { font-size: 104px; } .hero__e--5 { font-size: 70px; }
	.hero__blob { width: 460px; height: 460px; }
	.hero__side { grid-template-columns: 1fr; gap: 20px; }
	.promo { padding: 24px; justify-content: center; border-radius: 24px; }
	.promo strong { font-size: 19px; }
	.promo span { font-size: 14px; }

	.sec__hd h2, .rail__hd h2 { font-size: 22px; }
	.cats { padding-block: 28px 8px; }
	.cats__grid { grid-template-columns: repeat(12, 1fr); gap: 16px; }
	.cat__ic { max-width: 96px; font-size: 40px; border-radius: 26px; }
	.cat__name { font-size: 13.5px; }

	.rail { padding-block: 22px; }
	.rail__arrow { display: grid; }
	.rail__track { grid-auto-columns: 204px; gap: 16px; margin-inline: 0; padding-inline: 0; scroll-padding-inline: 0; }
	.rail--sale .rail__box { padding: 24px; border-radius: 24px; }
	.rail--sale .rail__track { margin-inline: 0; }
	.pcard__body { padding: 14px; }
	.pcard__title { font-size: 14.5px; }
	.price { font-size: 16px; }
	.pgrid { grid-template-columns: repeat(5, 1fr); gap: 16px; }
	.trust { padding-block: 22px; }
	.trust__grid { gap: 16px; }
	.trust__i { padding: 18px; }

	.shop { padding-block: 20px 40px; }
	.shop__hd h1 { font-size: 26px; }
	.chips { margin-inline: 0; padding-inline: 0; flex-wrap: wrap; }

	.pdp { padding-block: 20px 8px; }
	.pdp__grid { grid-template-columns: minmax(0, 480px) minmax(0, 1fr); gap: 36px; align-items: start; }
	.pdp__info h1 { font-size: 26px; }
	.buy { position: static; box-shadow: none; border: 1px solid var(--line); border-radius: var(--r); padding: 18px; margin-top: 10px; max-width: 460px; grid-template-columns: 1fr; }
	.buy__price { font-size: 22px; }
	.single-product .main { padding-bottom: 0; }
	.pdp__sec { padding: 24px; }

	.page { padding-block: 28px 48px; }
	.page__title { font-size: 28px; }
	.catlist { grid-template-columns: repeat(3, 1fr); gap: 16px; }
	.posts { grid-template-columns: repeat(3, 1fr); }
	.ftr__grid { padding-block: 40px; gap: 40px; }
}

@media (min-width: 1024px) and (max-width: 1180px) {
	.pgrid { grid-template-columns: repeat(4, 1fr); }
	.cats__grid { grid-template-columns: repeat(6, 1fr); }
}

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