/* ==========================================================================
   ZamenHome — base theme styles (header, footer, pages, components)
   Colors mirror the Next.js site (Tailwind @theme tokens).
   ========================================================================== */

@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2-variations"), url("../fonts/vazirmatn-arabic-wght-normal.woff2") format("woff2");
	unicode-range: U+0600-06FF, U+0750-077F, U+0870-088E, U+0890-0891, U+0897-08E1, U+08E3-08FF, U+200C-200E, U+2010-2011, U+204F, U+2E41, U+FB50-FDFF, U+FE70-FE74, U+FE76-FEFC;
}
@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/vazirmatn-latin-ext-wght-normal.woff2") format("woff2-variations"), url("../fonts/vazirmatn-latin-ext-wght-normal.woff2") format("woff2");
	unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
	font-family: "Vazirmatn";
	font-style: normal;
	font-display: swap;
	font-weight: 100 900;
	src: url("../fonts/vazirmatn-latin-wght-normal.woff2") format("woff2-variations"), url("../fonts/vazirmatn-latin-wght-normal.woff2") format("woff2");
	unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
	--zh-primary: #4a1520;
	--zh-accent: #b07550;
	--zh-cream: #f7f4ef;
	--zh-primary-dark: color-mix(in srgb, var(--zh-primary) 62%, #000);
	--zh-primary-soft: color-mix(in srgb, var(--zh-primary) 82%, #fff);
	--zh-accent-light: color-mix(in srgb, var(--zh-accent) 82%, #fff);
	--zh-tan: #c8a88a;
	--zh-sand: #ede5da;
	--zh-beige: #efe6db;
	--zh-photo: #f3ede4;
	--zh-panel: #f3ece3;
	--zh-taupe: #735a4e;
	--zh-ink: #2a1a1d;
	--zh-white: #fff;
	--zh-green: #2f6b3a;
	--zh-red: #b42318;
	--zh-amber: #8a5a00;
	--zh-radius: 24px;
	--zh-radius-sm: 16px;
	--zh-shadow: 0 24px 60px -20px color-mix(in srgb, var(--zh-primary) 35%, transparent);
	--zh-font: "Vazirmatn", "Vazirmatn Variable", Tahoma, sans-serif;
	--zh-font-brand: "EB Garamond", "Times New Roman", Times, Georgia, serif;
	--zh-header-h: 64px;
}

/* ---------- Reset / base ---------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--zh-font);
	font-size: 15px;
	line-height: 1.75;
	background: var(--zh-cream);
	color: var(--zh-ink);
	-webkit-font-smoothing: antialiased;
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}
img, svg, video { max-width: 100%; height: auto; }
svg { vertical-align: middle; }
a { color: inherit; text-decoration: none; transition: color .2s, background-color .2s, border-color .2s; }
a:hover { color: var(--zh-accent); }
h1, h2, h3, h4, h5, h6 { color: var(--zh-primary); font-weight: 900; line-height: 1.5; margin: 0 0 .6em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--zh-accent); outline-offset: 2px; }
.screen-reader-text, .zh-hp {
	position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.zh-skip-link { position: absolute; inset-inline-start: -9999px; top: 8px; z-index: 100; background: var(--zh-primary); color: #fff; padding: 8px 16px; border-radius: 99px; }
.zh-skip-link:focus { inset-inline-start: 8px; color: #fff; }
.zh-main { flex: 1; min-width: 0; }
/* Safety net: no sideways page scrolling (clip keeps the sticky header working, unlike hidden). */
html, body { overflow-x: clip; }
.zh-container { width: 100%; max-width: 1280px; margin-inline: auto; padding-inline: 16px; }
.zh-container--narrow { max-width: 896px; }
.zh-hide-md { display: none !important; }
@media (min-width: 1024px) { .zh-hide-md { display: list-item !important; } }
.zh-icon { flex-shrink: 0; }
.zh-cat-icon { color: var(--zh-primary); }
.zh-cat-icon .a { stroke: var(--zh-accent); }
.zh-cat-icon .f { fill: var(--zh-accent); stroke: none; }

/* ---------- Buttons / inputs ---------- */
.zh-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border-radius: 999px; padding: 12px 24px; font-size: 14px; font-weight: 700; line-height: 1.4;
	border: 1px solid transparent; transition: all .2s; text-align: center;
}
.zh-btn--primary { background: var(--zh-primary); color: var(--zh-cream); }
.zh-btn--primary:hover { background: var(--zh-primary-soft); color: var(--zh-cream); }
.zh-btn--outline { border-color: color-mix(in srgb, var(--zh-primary) 30%, transparent); color: var(--zh-primary); background: transparent; }
.zh-btn--outline:hover { background: var(--zh-primary); border-color: var(--zh-primary); color: var(--zh-cream); }
.zh-btn--accent { background: var(--zh-accent); color: #fff; box-shadow: 0 6px 14px -6px color-mix(in srgb, var(--zh-accent) 60%, transparent); }
.zh-btn--accent:hover { background: var(--zh-primary); color: #fff; }
.zh-btn[disabled] { opacity: .6; cursor: not-allowed; }
.zh-input,
.zh-searchform input[type="search"] {
	width: 100%; border-radius: 12px; border: 1px solid var(--zh-sand); background: #fff; padding: 12px 16px;
	font-size: 14px; outline: none; transition: border-color .2s, box-shadow .2s;
}
.zh-input:focus,
.zh-searchform input[type="search"]:focus { border-color: var(--zh-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--zh-accent) 20%, transparent); }
.zh-input::placeholder { color: color-mix(in srgb, var(--zh-taupe) 60%, transparent); }
textarea.zh-input { resize: vertical; }
.zh-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .3em; color: var(--zh-accent); }
.zh-card { background: #fff; border: 1px solid var(--zh-sand); border-radius: var(--zh-radius); }
.zh-alert { border-radius: 16px; padding: 12px 16px; font-size: 14px; }
.zh-alert--ok { background: color-mix(in srgb, var(--zh-sand) 70%, transparent); color: var(--zh-primary); }
.zh-alert--error { background: #fdecea; color: var(--zh-red); }
.zh-empty { border: 1px dashed var(--zh-sand); background: #fff; border-radius: var(--zh-radius); padding: 64px 16px; text-align: center; color: var(--zh-taupe); }

/* ---------- Icon buttons & badges ---------- */
.zh-iconbtn {
	position: relative; display: inline-flex; align-items: center; justify-content: center;
	padding: 4px; background: none; border: 0; color: var(--zh-primary);
}
.zh-iconbtn:hover { color: var(--zh-accent); }
.zh-badge {
	position: absolute; top: -6px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px;
	display: flex; align-items: center; justify-content: center; border-radius: 99px;
	background: var(--zh-accent); color: #fff; font-size: 10px; font-weight: 700; line-height: 1;
	box-shadow: 0 0 0 2px var(--zh-cream);
}
.zh-badge.is-empty { display: none; }
.zh-badge--sm { min-width: 16px; height: 16px; font-size: 9px; top: -6px; right: -10px; box-shadow: none; }

/* ---------- Header ---------- */
.zh-header {
	position: sticky; top: 0; z-index: 40;
	border-bottom: 1px solid color-mix(in srgb, var(--zh-sand) 70%, transparent);
	background: color-mix(in srgb, var(--zh-cream) 95%, transparent);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.admin-bar .zh-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .zh-header { top: 0; } }
.zh-topbar { display: none; background: var(--zh-primary); color: var(--zh-cream); font-size: 12px; }
.zh-topbar__inner { display: flex; align-items: center; justify-content: space-between; padding-block: 10px; }
.zh-topbar__info { display: flex; align-items: center; gap: 24px; }
.zh-topbar__info > span, .zh-topbar__link { display: inline-flex; align-items: center; gap: 6px; }
.zh-topbar__link:hover { color: var(--zh-tan); }

.zh-mhead { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; padding: 10px 16px; }
.zh-mhead__start { display: flex; align-items: center; gap: 12px; }
.zh-mhead__end { display: flex; justify-content: flex-end; }
.zh-mhead__logo { display: flex; justify-content: center; padding-block: 2px; }
.zh-mhead__logo svg, .zh-mhead__logo img { width: var(--zh-logo-w-m, 106px); height: auto; max-height: 52px; object-fit: contain; display: block; }

.zh-dhead { display: none; align-items: center; justify-content: space-between; gap: 24px; padding-block: 12px; }
.zh-dhead__logo { flex-shrink: 0; display: block; }
.zh-dhead__logo svg, .zh-dhead__logo img { width: var(--zh-logo-w-d, 150px); height: auto; max-height: 72px; object-fit: contain; display: block; }
.zh-dhead__icons { display: flex; align-items: center; gap: 16px; }

@media (min-width: 768px) {
	.zh-topbar { display: block; }
	.zh-mhead { display: none; }
	.zh-dhead { display: flex; }
}

/* Nav */
.zh-nav__list { display: flex; align-items: center; gap: 16px; margin: 0; padding: 0; list-style: none; }
@media (min-width: 1024px) { .zh-nav__list { gap: 36px; } }
.zh-nav__list > li { position: relative; }
.zh-nav__list > li > a {
	position: relative; display: flex; align-items: center; gap: 4px; padding-block: 12px;
	font-size: 14px; font-weight: 500; color: color-mix(in srgb, var(--zh-ink) 80%, transparent); white-space: nowrap;
}
.zh-nav__list > li > a:hover { color: var(--zh-accent); }
.zh-nav__list > li.is-active > a { font-weight: 700; color: var(--zh-accent); }
.zh-nav__list > li.is-active > a::after {
	content: ""; position: absolute; inset-inline: 0; bottom: 4px; height: 2px; border-radius: 2px; background: var(--zh-accent);
}
.zh-caret { opacity: .6; transition: transform .2s; }
.zh-nav__list > li:hover .zh-caret { transform: rotate(180deg); }

.zh-nav__list .sub-menu,
.zh-dropdown {
	position: absolute; top: 100%; right: 50%; transform: translateX(50%); z-index: 50;
	visibility: hidden; opacity: 0; transition: opacity .2s, visibility .2s;
	padding-top: 8px;
}
.zh-nav__list .sub-menu {
	width: 224px; margin: 0; list-style: none; padding: 8px;
	background: #fff; border: 1px solid var(--zh-sand); border-radius: var(--zh-radius); box-shadow: var(--zh-shadow);
	top: calc(100% + 8px);
}
.zh-nav__list .sub-menu::before { content: ""; position: absolute; inset-inline: 0; top: -10px; height: 10px; }
.zh-nav__list .sub-menu a { display: block; border-radius: 16px; padding: 10px 16px; font-size: 14px; color: var(--zh-ink); }
.zh-nav__list .sub-menu a:hover { background: var(--zh-cream); color: var(--zh-primary); }
.zh-nav__list > li:hover > .sub-menu,
.zh-nav__list > li:focus-within > .sub-menu,
.zh-nav__list > li:hover > .zh-dropdown,
.zh-nav__list > li:focus-within > .zh-dropdown { visibility: visible; opacity: 1; }
.zh-mega {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; width: min(600px, calc(100vw - 32px)); padding: 12px; box-sizing: border-box;
	background: #fff; border: 1px solid var(--zh-sand); border-radius: var(--zh-radius); box-shadow: var(--zh-shadow);
}
.zh-mega__item { position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; padding: 12px; border-radius: 16px; }
.zh-mega__item.has-subs { align-items: flex-start; }
/* Whole card opens the category; subcategory links sit above that layer. */
.zh-mega__link { color: inherit; }
.zh-mega__link::after, .zh-catlist__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.zh-mega__subs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 2px 10px; margin-top: 2px; }
.zh-mega__subs a { font-size: 12px; line-height: 1.8; color: var(--zh-taupe); }
.zh-mega__subs a:hover { color: var(--zh-accent); text-decoration: underline; text-underline-offset: 3px; }
.zh-mega__subs a.is-more { color: var(--zh-accent); font-weight: 700; }
.zh-mega__item:hover { background: var(--zh-cream); }
.zh-mega__icon { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex-shrink: 0; border-radius: 12px; background: var(--zh-beige); }
.zh-mega__text { min-width: 0; display: flex; flex-direction: column; }
.zh-mega__text strong { font-size: 14px; color: var(--zh-primary); }
.zh-mega__text strong { line-height: 1.6; }
/* Long descriptions wrap to at most two lines instead of pushing the panel wider. */
.zh-mega__text small { font-size: 11px; line-height: 1.7; color: var(--zh-taupe); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zh-mega__all {
	grid-column: span 2; margin-top: 4px; display: flex; align-items: center; justify-content: center; gap: 4px;
	padding: 10px; border-radius: 16px; background: var(--zh-cream); font-size: 12px; font-weight: 700; color: var(--zh-accent);
}

/* Search panel */
.zh-search { border-top: 1px solid var(--zh-sand); background: var(--zh-cream); padding: 12px 16px; }
.zh-search__form { position: relative; max-width: 672px; margin-inline: auto; }
.zh-search__form .zh-input { border-radius: 999px; padding-inline-end: 52px; }
.zh-search__btn {
	position: absolute; left: 6px; top: 50%; transform: translateY(-50%);
	display: flex; border: 0; border-radius: 999px; background: var(--zh-primary); color: var(--zh-cream); padding: 8px;
}

/* Live search results (header panel + shop sidebar) */
.zh-live-host { position: relative; }
.zh-live {
	position: absolute; inset-inline: 0; top: calc(100% + 8px); z-index: 45;
	max-height: min(70vh, 520px); overflow-y: auto; overscroll-behavior: contain;
	background: #fff; border: 1px solid var(--zh-sand); border-radius: var(--zh-radius-sm); box-shadow: var(--zh-shadow);
	text-align: right;
}
.zh-live[hidden] { display: none; }
.zh-live { container: zhlive / inline-size; }
/* Shop sidebar: the panel may grow over the product grid instead of squeezing into the column. */
.zh-searchform .zh-live { inset-inline-end: auto; width: max(100%, 400px); max-width: calc(100vw - 32px); }
@container zhlive (max-width: 300px) {
	.zh-live__item { flex-wrap: wrap; }
	.zh-live__body { flex-basis: calc(100% - 68px); }
	.zh-live__price { flex-basis: 100%; padding-inline-start: 68px; text-align: right; }
	.zh-live__price del { display: inline; margin-inline-end: 6px; }
}
.zh-live__list { list-style: none; margin: 0; padding: 6px; }
.zh-live__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 12px; color: var(--zh-ink); }
.zh-live__item:hover, [role="option"].is-active .zh-live__item { background: var(--zh-cream); }
.zh-live__img { width: 56px; height: 56px; flex-shrink: 0; object-fit: contain; border-radius: 10px; background: var(--zh-photo); }
.zh-live__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.zh-live__title { font-size: 13.5px; font-weight: 700; line-height: 1.7; color: var(--zh-primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.zh-live__title mark { background: color-mix(in srgb, var(--zh-accent) 22%, transparent); color: inherit; }
.zh-live__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11.5px; color: var(--zh-taupe); }
.zh-live__code b { font-weight: 700; color: var(--zh-ink); unicode-bidi: isolate; }
.zh-live__stock { border-radius: 99px; padding: 1px 8px; font-size: 11px; font-weight: 700; }
.zh-live__stock--out { background: #fdecea; color: var(--zh-red); }
.zh-live__stock--vip { background: var(--zh-primary); color: var(--zh-cream); }
.zh-live__price { flex-shrink: 0; font-size: 13px; font-weight: 800; color: var(--zh-primary); text-align: left; line-height: 1.5; }
.zh-live__price del { display: block; font-size: 11px; font-weight: 400; color: var(--zh-taupe); }
.zh-live__price ins { text-decoration: none; }
.zh-live__all {
	display: block; margin: 0 6px 6px; padding: 11px; border-radius: 12px; text-align: center;
	background: var(--zh-cream); font-size: 13px; font-weight: 700; color: var(--zh-accent);
}
.zh-live__all:hover { background: var(--zh-sand); color: var(--zh-primary); }
.zh-live__msg { padding: 18px 16px; font-size: 13px; color: var(--zh-taupe); text-align: center; }
.zh-live__msg.is-error { color: var(--zh-red); }
.is-searching .zh-search__btn, .is-searching > button[type="submit"] { opacity: .6; }
.is-searching .zh-search__btn svg, .is-searching > button[type="submit"] svg { animation: zh-pulse .8s ease-in-out infinite alternate; }
@keyframes zh-pulse { to { transform: scale(.75); } }
@media (max-width: 639px) {
	.zh-live { max-height: calc(100dvh - var(--zh-header-h) - 96px); }
	.zh-live__img { width: 48px; height: 48px; }
	.zh-live__price { font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) { .is-searching svg { animation: none !important; } }

/* Drawer */
.zh-drawer { position: fixed; inset: 0; z-index: 60; }
.zh-drawer[hidden] { display: none; }
.zh-drawer__backdrop { position: absolute; inset: 0; border: 0; background: color-mix(in srgb, var(--zh-primary-dark) 50%, transparent); }
.zh-drawer__panel {
	position: absolute; top: 0; bottom: 0; left: 0; width: 84%; max-width: 320px;
	display: flex; flex-direction: column; background: var(--zh-cream); box-shadow: 0 25px 50px -12px rgba(0,0,0,.25);
	animation: zh-slide-in .25s ease-out;
}
@keyframes zh-slide-in { from { transform: translateX(-100%); } to { transform: none; } }
.zh-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 16px; border-bottom: 1px solid var(--zh-sand); }
.zh-drawer__logo svg, .zh-drawer__logo img { height: 40px; width: auto; max-width: 180px; object-fit: contain; display: block; }
.zh-drawer__nav { flex: 1; overflow-y: auto; padding: 12px; }
.zh-drawer__list, .zh-drawer__cats { list-style: none; margin: 0; padding: 0; }
.zh-drawer__list a { display: block; border-radius: 12px; padding: 12px 16px; font-weight: 500; color: var(--zh-ink); }
.zh-drawer__list a:hover, .zh-drawer__cats a:hover { background: var(--zh-sand); }
.zh-drawer__list .sub-menu { list-style: none; padding-inline-start: 16px; margin: 0; }
.zh-drawer__list .sub-menu a { font-size: 14px; padding-block: 8px; }
.zh-drawer__heading { margin-top: 12px; border-top: 1px solid var(--zh-sand); padding: 16px 16px 4px; font-size: 12px; font-weight: 700; color: var(--zh-taupe); }
.zh-drawer__cats a { display: flex; align-items: center; gap: 12px; border-radius: 12px; padding: 10px 16px; font-size: 14px; color: var(--zh-ink); }
.zh-subtoggle {
	flex: 0 0 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 0; border-radius: 10px;
	background: transparent; color: var(--zh-taupe); cursor: pointer; transition: background .15s;
}
.zh-subtoggle:hover { background: var(--zh-cream); color: var(--zh-primary); }
.zh-subtoggle .zh-icon { transition: transform .2s; }
li.is-open > div > .zh-subtoggle .zh-icon { transform: rotate(180deg); }
.zh-drawer__subcats[hidden], .zh-shop__subcats[hidden] { display: none !important; }
.zh-drawer__cat-row { display: flex; align-items: center; gap: 4px; padding-inline-end: 8px; }
.zh-drawer__cat-row > a { flex: 1; min-width: 0; }
.zh-drawer__cat-row .zh-subtoggle { flex-basis: 36px; height: 36px; }
.zh-drawer__subcats { list-style: none; margin: 0 0 6px; padding: 0; margin-inline-start: 44px; border-inline-start: 2px solid var(--zh-sand); }
.zh-drawer__subcats a { padding: 8px 14px; font-size: 13px; color: var(--zh-taupe); }
.zh-drawer__foot { border-top: 1px solid var(--zh-sand); padding: 16px; font-size: 12px; line-height: 2; color: var(--zh-taupe); }
.zh-drawer__foot a { display: block; color: var(--zh-accent); }
.zh-drawer__foot .zh-drawer__phone { font-weight: 700; color: var(--zh-primary); }
body.zh-lock { overflow: hidden; }

/* ---------- Footer ---------- */
.zh-footer { margin-top: 48px; background: var(--zh-primary-dark); color: color-mix(in srgb, var(--zh-cream) 80%, transparent); }
@media (min-width: 768px) { .zh-footer { margin-top: 96px; } }
.zh-footer__grid { display: grid; gap: 40px; padding-block: 56px; }
@media (min-width: 768px) { .zh-footer__grid { grid-template-columns: 2fr 1fr 1fr; } }
.zh-footer__logo svg, .zh-footer__logo img { height: var(--zh-logo-h-f, 64px); width: auto; max-width: 260px; object-fit: contain; display: block; }
/* Uploaded logo without a light version: shown white on dark backgrounds. */
.zh-logo-img--whiten { filter: brightness(0) invert(1); }
.zh-footer__about p { max-width: 28rem; margin-top: 16px; font-size: 14px; line-height: 2; color: color-mix(in srgb, var(--zh-cream) 70%, transparent); }
.zh-footer__seals { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 16px; }
/* Trust seals (Enamad, Samandehi…): never let flexbox shrink them to zero width. */
.zh-footer__seals > *, .zh-footer__seals a { flex: 0 0 auto; display: inline-block; line-height: 0; }
.zh-footer__seals img { display: block; width: auto !important; height: auto !important; max-width: none !important; max-height: 125px; background: #fff; border-radius: 12px; padding: 4px; }
.zh-footer__seals .zh-widget { margin: 0; }
.zh-footer__title { margin-bottom: 16px; font-size: 15px; font-weight: 700; color: var(--zh-accent-light); }
.zh-footer__links { list-style: none; margin: 0; padding: 0; font-size: 14px; }
.zh-footer__links li { margin-bottom: 8px; }
.zh-footer__links a:hover { color: var(--zh-cream); }
.zh-footer__muted { color: color-mix(in srgb, var(--zh-cream) 60%, transparent); }
.zh-footer__socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; font-size: 12px; }
.zh-footer__socials a { border: 1px solid color-mix(in srgb, var(--zh-cream) 20%, transparent); border-radius: 99px; padding: 4px 12px; }
.zh-footer__socials a:hover { border-color: var(--zh-tan); color: var(--zh-tan); }
.zh-footer__bottom { border-top: 1px solid color-mix(in srgb, var(--zh-cream) 10%, transparent); }
.zh-footer__bottom-inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; gap: 8px; padding-block: 20px; font-size: 12px; color: color-mix(in srgb, var(--zh-cream) 50%, transparent); }
@media (min-width: 640px) { .zh-footer__bottom-inner { flex-direction: row; } }
.zh-footer__latin { letter-spacing: .4em; color: var(--zh-tan); }

/* ---------- Mobile bottom nav ---------- */
.zh-bottomnav {
	position: fixed; inset-inline: 0; bottom: 0; z-index: 40;
	border-top: 1px solid var(--zh-sand); background: color-mix(in srgb, var(--zh-cream) 95%, transparent);
	-webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
	padding-bottom: env(safe-area-inset-bottom);
}
.zh-bottomnav ul { display: grid; grid-template-columns: repeat(5, 1fr); margin: 0; padding: 0; list-style: none; }
.zh-bottomnav a { display: flex; flex-direction: column; align-items: center; gap: 4px; padding-block: 10px; font-size: 11px; line-height: 1.2; color: var(--zh-taupe); }
.zh-bottomnav a.is-active { font-weight: 700; color: var(--zh-primary); }
.zh-bottomnav__icon { position: relative; display: inline-flex; }
body.zh-has-bottom-nav { padding-bottom: 72px; }
@media (min-width: 768px) {
	.zh-bottomnav { display: none; }
	body.zh-has-bottom-nav { padding-bottom: 0; }
}

/* ---------- Toast ---------- */
.zh-toast {
	position: fixed; inset-inline: 0; bottom: 150px; z-index: 70; margin-inline: auto; width: max-content; max-width: calc(100% - 32px);
	border-radius: 999px; background: var(--zh-primary-dark); color: var(--zh-cream); padding: 12px 20px; font-size: 14px;
	box-shadow: 0 25px 50px -12px rgba(0,0,0,.35); pointer-events: none;
}
@media (min-width: 768px) { .zh-toast { bottom: 40px; } }

/* ---------- Pages ---------- */
.zh-page { padding-block: 24px; }
@media (min-width: 768px) { .zh-page { padding-block: 48px; } }
.zh-page-head { margin-bottom: 24px; }
@media (min-width: 768px) { .zh-page-head { margin-bottom: 40px; } }
.zh-page-head--center { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.zh-page-title { font-size: 24px; margin: 4px 0; }
@media (min-width: 768px) { .zh-page-title { font-size: 30px; } }
.zh-page-sub { color: var(--zh-taupe); margin: 0; max-width: 32rem; line-height: 2; }
.zh-divider { color: var(--zh-accent); }
.zh-content { line-height: 2.1; }
.zh-content a { color: var(--zh-accent); text-decoration: underline; text-underline-offset: 3px; }
.zh-content img { border-radius: 16px; }
.zh-content table { width: 100%; border-collapse: collapse; }
.zh-content th, .zh-content td { border: 1px solid var(--zh-sand); padding: 8px 12px; }

.zh-section { padding-top: 36px; }
@media (min-width: 768px) { .zh-section { padding-top: 56px; } }
.zh-section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 16px; }
@media (min-width: 768px) { .zh-section-head { margin-bottom: 24px; } }
.zh-section-head h2 { font-size: 18px; margin: 0; }
@media (min-width: 768px) { .zh-section-head h2 { font-size: 24px; } }
.zh-section-head__bar { display: block; width: 40px; height: 3px; margin-top: 8px; border-radius: 3px; background: var(--zh-accent); }
.zh-section-head > a { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; font-weight: 700; color: color-mix(in srgb, var(--zh-primary) 80%, transparent); }

/* Fallback home (without the kit plugin) */
.zh-fallback-hero { padding-top: 24px; }
.zh-fallback-hero__box { background: linear-gradient(90deg, #f3eadf, var(--zh-sand)); border-radius: var(--zh-radius); padding: 48px 24px; text-align: center; }
.zh-fallback-hero__box h1 { font-size: 32px; margin: 8px 0; }
.zh-quicklinks { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; padding-bottom: 8px; }
.zh-quicklinks::-webkit-scrollbar { display: none; }
.zh-quicklinks__item { flex: 0 0 84px; width: 84px; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
@media (min-width: 1024px) { .zh-quicklinks__item { flex: 1 1 0; width: auto; min-width: 96px; } }
.zh-quicklinks__icon { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 22px; background: var(--zh-beige); transition: all .2s; }
.zh-quicklinks__item:hover .zh-quicklinks__icon { transform: translateY(-4px); background: var(--zh-sand); }
.zh-quicklinks__label {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; max-width: 100%;
	font-size: 11.5px; font-weight: 500; line-height: 1.55; color: var(--zh-primary); white-space: normal; overflow-wrap: break-word; text-wrap: balance;
}

/* Categories page */
.zh-catlist { display: grid; gap: 12px; }
@media (min-width: 768px) { .zh-catlist { grid-template-columns: 1fr 1fr; } }
.zh-catlist__item { position: relative; display: flex; align-items: center; gap: 16px; padding: 16px; border-radius: var(--zh-radius); border: 1px solid var(--zh-sand); background: #fff; color: var(--zh-taupe); }
.zh-catlist__item:hover { border-color: var(--zh-accent); color: var(--zh-taupe); }
.zh-catlist__icon { display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; flex-shrink: 0; border-radius: 16px; background: var(--zh-beige); }
.zh-catlist__text { flex: 1; display: flex; flex-direction: column; }
.zh-catlist__text strong { color: var(--zh-primary); }
.zh-catlist__text small { font-size: 12px; line-height: 1.7; color: var(--zh-taupe); }
.zh-catlist__text em { font-style: normal; margin-top: 4px; font-size: 11px; font-weight: 700; color: var(--zh-accent); }
.zh-catlist__link { color: inherit; }
.zh-catlist__subs { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.zh-catlist__subs a {
	padding: 3px 10px; border-radius: 999px; border: 1px solid var(--zh-sand); background: var(--zh-cream);
	font-size: 12px; font-weight: 600; line-height: 1.8; color: var(--zh-primary); transition: border-color .15s, background .15s;
}
.zh-catlist__subs a:hover { border-color: var(--zh-accent); background: #fff; }
.zh-catlist__item.has-subs { align-items: flex-start; }
.zh-catlist__item--sale { background: var(--zh-primary); border-color: var(--zh-primary); color: var(--zh-cream); }
.zh-catlist__item--sale:hover { color: var(--zh-cream); }
.zh-catlist__item--sale .zh-catlist__icon { background: var(--zh-cream); }
.zh-catlist__item--sale strong { color: var(--zh-cream); }
.zh-catlist__item--sale small { color: color-mix(in srgb, var(--zh-cream) 70%, transparent); }
@media (min-width: 768px) { .zh-catlist__item--sale, .zh-catlist__all { grid-column: span 2; } }

/* Brands page */
.zh-brandgrid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .zh-brandgrid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 768px) { .zh-brandgrid { gap: 20px; } }
@media (min-width: 1024px) { .zh-brandgrid { grid-template-columns: repeat(5, 1fr); } }
.zh-brandcard { overflow: hidden; border-radius: var(--zh-radius); border: 1px solid var(--zh-sand); background: #fff; transition: all .3s; }
.zh-brandcard:hover { transform: translateY(-4px); border-color: var(--zh-accent); box-shadow: 0 10px 25px -10px rgba(0,0,0,.2); }
.zh-brandcard__media { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; background: var(--zh-photo); }
.zh-brandcard__media img { width: 100%; height: 100%; object-fit: contain; padding: 16px; mix-blend-mode: multiply; }
.zh-brandcard__name { font-size: 20px; font-weight: 900; color: var(--zh-primary); }
.zh-brandcard__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--zh-sand); padding: 12px 16px; color: var(--zh-accent); }
.zh-brandcard__foot span { display: flex; flex-direction: column; }
.zh-brandcard__foot strong { color: var(--zh-primary); }
.zh-brandcard__foot small { font-size: 11px; color: var(--zh-taupe); }

/* Contact page */
.zh-contact__grid { display: grid; gap: 32px; }
@media (min-width: 1024px) { .zh-contact__grid { grid-template-columns: 1fr 1.4fr; } }
.zh-contact__cards { display: flex; flex-direction: column; gap: 16px; }
.zh-contact__card { display: block; border-radius: var(--zh-radius); background: var(--zh-primary); color: var(--zh-cream); padding: 20px; }
a.zh-contact__card:hover { background: var(--zh-primary-soft); color: var(--zh-cream); }
.zh-contact__card small { display: block; font-size: 12px; color: var(--zh-accent-light); }
.zh-contact__card strong { display: block; margin-top: 8px; line-height: 1.8; text-align: right; }
.zh-contact-form { display: flex; flex-direction: column; gap: 12px; padding: 24px; height: fit-content; }
.zh-contact-form__title { font-size: 18px; margin: 0 0 4px; }
.zh-form-grid { display: grid; gap: 12px; }
@media (min-width: 640px) { .zh-form-grid { grid-template-columns: 1fr 1fr; } }

/* Wishlist page */
.zh-wishlist .products { margin-top: 0; }

/* Blog */
.zh-post-grid { display: grid; gap: 20px; }
@media (min-width: 640px) { .zh-post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .zh-post-grid { grid-template-columns: repeat(3, 1fr); } }
.zh-post-card { overflow: hidden; border-radius: var(--zh-radius); border: 1px solid var(--zh-sand); background: #fff; }
.zh-post-card__media { display: block; aspect-ratio: 16 / 10; background: var(--zh-photo); overflow: hidden; }
.zh-post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.zh-post-card:hover .zh-post-card__media img { transform: scale(1.04); }
.zh-post-card__ph { display: flex; height: 100%; align-items: center; justify-content: center; opacity: .25; }
.zh-post-card__ph svg, .zh-post-card__ph img { width: 80px; height: auto; }
.zh-post-card__body { padding: 16px 20px 20px; }
.zh-post-card__date { font-size: 12px; color: var(--zh-accent); }
.zh-post-card__title { font-size: 17px; margin: 4px 0 8px; }
.zh-post-card__body p { font-size: 14px; color: var(--zh-taupe); margin: 0; }
.zh-single { max-width: 860px; }
.zh-single__media img { border-radius: var(--zh-radius); margin-bottom: 24px; }
.zh-pagination { margin-top: 32px; }
.zh-pagination .nav-links, .woocommerce nav.woocommerce-pagination ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; border: 0 !important; }
.zh-pagination .page-numbers { display: inline-flex; min-width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 99px; background: #fff; border: 1px solid var(--zh-sand); }
.zh-pagination .page-numbers.current { background: var(--zh-primary); color: var(--zh-cream); border-color: var(--zh-primary); }
.zh-comments { padding: 24px; margin-top: 32px; }
.zh-comments__list { padding-inline-start: 20px; }

/* 404 */
.zh-404 { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding-block: 80px; }
.zh-404__mark svg, .zh-404__mark img { width: 120px; height: auto; display: inline-block; }
.zh-404__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 16px; }

/* Search form */
.zh-searchform { position: relative; }
.zh-searchform input[type="search"] { padding-inline-end: 48px; }
.zh-searchform button { position: absolute; left: 8px; top: 50%; transform: translateY(-50%); display: flex; border: 0; border-radius: 99px; padding: 8px; background: var(--zh-primary); color: var(--zh-cream); }

/* Widgets */
.zh-widget { margin-bottom: 24px; }
.zh-widget__title { font-size: 16px; }

/* Gutenberg alignment helpers */
.alignwide { max-width: 1280px; margin-inline: auto; }
.alignfull { width: 100vw; max-width: 100vw; margin-inline: calc(50% - 50vw); }
.wp-block-button__link { background: var(--zh-primary); color: var(--zh-cream); border-radius: 99px; }

/* Elementor: keep sections aligned with the 1280px grid. */
.elementor-section.elementor-section-boxed > .elementor-container { max-width: 1280px; }

/* ---------- Account icon + login (Digits) ---------- */
.zh-account-btn { position: relative; }
.zh-account-btn.is-logged-in::after {
	content: ""; position: absolute; top: 3px; inset-inline-end: 2px; width: 8px; height: 8px; border-radius: 99px;
	background: var(--zh-green, #157f3b); box-shadow: 0 0 0 2px var(--zh-cream);
}
.zh-mhead__end { gap: 6px; align-items: center; }
.zh-drawer__foot .zh-drawer__account { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; border-radius: 12px; background: var(--zh-primary); padding: 10px 14px; font-size: 14px; font-weight: 700; color: var(--zh-cream); }
.zh-drawer__foot .zh-drawer__account:hover { color: var(--zh-cream); background: var(--zh-primary-soft, #6b2632); }
.zh-login { max-width: 460px; margin: 8px auto 32px; border: 1px solid var(--zh-sand); border-radius: var(--zh-radius, 24px); background: #fff; padding: 28px 20px; }
@media (min-width: 768px) { .zh-login { padding: 36px 32px; } }
.zh-login__head { text-align: center; margin-bottom: 20px; }
.zh-login__icon { display: inline-flex; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 20px; background: var(--zh-cream); color: var(--zh-primary); }
.zh-login__title { margin: 12px 0 4px; font-size: 20px; font-weight: 900; color: var(--zh-primary); }
.zh-login__sub { margin: 0; font-size: 13px; line-height: 1.9; color: var(--zh-taupe); }
.zh-login__btn { width: 100%; gap: 8px; }
