/*
 * Aven — استایل اصلی قالب. منبع: design/index.html در ریشهٔ مخزن.
 * رنگ‌ها و فونت‌ها فقط از متغیرهای :root خوانده می‌شوند (docs/BRAND.md).
 * سایت فارسی و راست‌چین است؛ از ویژگی‌های منطقی (inline-start/end) استفاده شده تا جهت درست بماند.
 *
 * فهرست:
 *   ۱. متغیرها و پایه
 *   ۲. دکمه‌ها و فرم‌ها
 *   ۳. سربرگ، منو، جست‌وجو
 *   ۴. صفحهٔ اول (هیرو، دسته‌ها، جعبهٔ هدیه، خدمات، خبرنامه)
 *   ۵. کارت محصول
 *   ۶. پابرگ
 *   ۷. سبد کشویی
 *   ۸. برگه‌ها و ۴۰۴
 *   ۹. موبایل و تبلت
 */

/* ۱. متغیرها و پایه */
:root {
	color-scheme: light;
	--iv: #F4EFE6;      /* Ivory: زمینه */
	--wh: #FBF9F4;      /* کارت‌ها */
	--ink: #1A1A1A;     /* Ink: متن و بخش‌های تیره */
	--ch: #B9A77F;      /* Champagne: خطوط و روبان */
	--an: #7A6A48;      /* Antique: متن رنگی کوچک */
	--tp: #D9CFBD;      /* Taupe */
	--tile: #EAE3D6;    /* زمینهٔ تصویر محصول */
	--mute: #6B6357;    /* متن کم‌رنگ */
	--line: #DDD3C2;    /* خط جداکننده */
	--f-body: Jost, Vazirmatn, Tahoma, sans-serif;
	--f-logo: "Cormorant Garamond", Georgia, serif;
	--f-sub: Italiana, Georgia, serif;
}
*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--iv); color: var(--ink); font: 16px/1.8 var(--f-body); overflow-x: clip; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 1.5px solid var(--an); outline-offset: 3px; }
h1, h2, h3, h4 { font-weight: 300; line-height: 1.3; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(32px, 4.4vw, 50px); font-weight: 200; }
h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 200; }
.w { max-width: 1240px; margin-inline: auto; padding-inline: max(4vw, 16px); }
.band { padding-block: clamp(40px, 6vw, 88px); }
.pt0 { padding-top: 0; }
.en { font-family: var(--f-logo); font-style: italic; font-weight: 400; }
.ltr { direction: ltr; unicode-bidi: isolate; display: inline-block; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; background: var(--ink); color: var(--iv); padding: 8px 14px; z-index: 100; }
.skip:focus { top: 8px; }
.empty { text-align: center; color: var(--mute); padding: 60px 0; }

/* ۲. دکمه‌ها و فرم‌ها */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 30px; border: 1px solid var(--ink); background: var(--ink); color: var(--iv); text-decoration: none; font-weight: 400; transition: background .25s, color .25s; border-radius: 0; }
.btn:hover { background: transparent; color: var(--ink); }
.btn.lt { background: transparent; color: var(--ink); }
.btn.lt:hover { background: var(--ink); color: var(--iv); }
.btn.iv { background: var(--iv); border-color: var(--iv); color: var(--ink); }
.btn.iv:hover { background: transparent; color: var(--iv); }
.btn.ghost-iv { background: transparent; border-color: rgba(244, 239, 230, .5); color: var(--iv); }
.btn.ghost-iv:hover { border-color: var(--iv); }
.btns { display: flex; gap: 12px; flex-wrap: wrap; }
.field { min-height: 44px; padding: 0 14px; border: 1px solid var(--line); background: var(--wh); font-size: 16px; border-radius: 0; }

/* ۳. سربرگ */
.ann { background: var(--ink); color: var(--iv); text-align: center; font-size: 13.5px; font-weight: 300; padding: 7px 16px; }
.hd { position: sticky; top: 0; z-index: 30; background: color-mix(in srgb, var(--iv) 94%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.admin-bar .hd { top: 32px; }
.hd > .w { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; min-height: 76px; }
.menu-list { display: flex; gap: 26px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.menu-list a { text-decoration: none; font-size: 15px; font-weight: 300; }
.menu-list a:hover, .menu-list .current-menu-item > a { color: var(--an); }
.logo { direction: ltr; text-decoration: none; display: inline-grid; justify-items: center; line-height: 1; }
.logo .lg { font-family: var(--f-logo); font-style: italic; font-weight: 500; font-size: 36px; letter-spacing: -.01em; }
.logo .lc { font-family: var(--f-sub); font-size: 10.5px; letter-spacing: .55em; margin-top: 2px; padding-left: .55em; color: var(--an); }
.tools { display: flex; justify-content: flex-end; gap: 4px; }
.ib { width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; position: relative; text-decoration: none; color: inherit; padding: 0; }
.ib:hover { background: var(--tile); }
.ib .icon { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.3; }
.ib b { position: absolute; top: 4px; left: 2px; background: var(--ink); color: var(--iv); font-size: 11px; font-weight: 500; min-width: 18px; height: 18px; border-radius: 9px; display: grid; place-items: center; line-height: 1; padding: 0 4px; }
.ib b[hidden] { display: none; }
.mrow { display: none; }
.search-bar { border-top: 1px solid var(--line); padding-block: 12px; }
.search-bar form { display: flex; gap: 10px; }
.search-bar .field { flex: 1; }
.search-bar .btn { min-height: 44px; }

/* ۴. صفحهٔ اول */
.hero { background: var(--ink); color: var(--iv); overflow: hidden; }
.hero .w { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center; min-height: min(78svh, 700px); }
.hero .tx { position: relative; z-index: 2; padding-block: 48px; }
.hero .en { font-size: clamp(22px, 2.4vw, 30px); color: var(--ch); display: block; text-align: right; margin: 16px 0 18px; }
.hero p { font-weight: 300; opacity: .85; max-width: 30em; margin: 0 0 32px; }
.hero .fig { position: relative; align-self: stretch; min-height: 420px; }
.hero .fig svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero .hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ribbon { position: absolute; top: 0; bottom: 0; width: 46px; background: var(--ch); left: 30%; }
.cats { display: flex; justify-content: center; gap: clamp(16px, 4vw, 56px); flex-wrap: wrap; }
.cat { display: grid; justify-items: center; gap: 12px; text-decoration: none; }
.cat i { width: clamp(84px, 10vw, 124px); aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--ch); background: var(--iv); transition: transform .4s; }
.cat i.dk { background: var(--ink); border-color: var(--ink); }
.cat i svg { width: 36%; fill: none; stroke: var(--ink); stroke-width: 1.5; stroke-linejoin: round; }
.cat i.dk svg { stroke: var(--iv); }
.cat:hover i { transform: translateY(-4px); }
.cat span { font-size: 15px; }
.sh { display: flex; justify-content: space-between; align-items: end; gap: 16px; flex-wrap: wrap; margin-bottom: 32px; }
.sh a { font-size: 15px; color: var(--an); }
.edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.edit .fig { background: var(--tp); min-height: 420px; display: grid; place-items: center; padding: 24px; }
.edit .fig svg { width: min(100%, 460px); }
.edit .tx { background: var(--wh); padding: clamp(28px, 5vw, 72px); display: flex; flex-direction: column; justify-content: center; gap: 12px; position: relative; }
.edit .tx::after { content: ""; position: absolute; inset: 16px; border: 1px solid var(--ch); pointer-events: none; }
.edit p { font-weight: 300; max-width: 32em; margin: 0; }
.svc { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; }
.svc .icon { width: 30px; height: 30px; fill: none; stroke: var(--an); stroke-width: 1.2; }
.svc b { display: block; font-weight: 500; margin-top: 8px; }
.svc p { margin: 2px 0 0; font-size: 14.5px; color: var(--mute); font-weight: 300; }
.news { background: var(--ink); color: var(--iv); }
.news .w { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.news p { font-weight: 300; opacity: .8; margin: 8px 0 0; }
.news form { display: flex; gap: 10px; flex-wrap: wrap; }
.news input:not([type=hidden]) { flex: 1 1 220px; min-height: 50px; padding: 0 16px; font-size: 16px; background: transparent; border: 1px solid rgba(244, 239, 230, .35); color: var(--iv); }
.news input::placeholder { color: rgba(244, 239, 230, .55); }
.news .msg { min-height: 1.8em; color: var(--ch); font-size: 14.5px; opacity: 1; }

/* ۵. کارت محصول (فهرست‌ها) */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px) clamp(12px, 1.6vw, 22px); }
.pc { position: relative; }
.pc .ph { display: grid; place-items: center; aspect-ratio: 4 / 5; position: relative; overflow: hidden; background: var(--tile); }
.pc .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .9s cubic-bezier(.2, .7, .2, 1); }
.pc:hover .ph img { transform: scale(1.04); }
.pc .ph::after { content: ""; position: absolute; inset: 10px; border: 1px solid rgba(185, 167, 127, .55); pointer-events: none; }
.ph-empty svg { width: 64px; fill: none; stroke: var(--ink); stroke-width: 1.2; opacity: .5; }
.pc .badge { position: absolute; top: 18px; right: 18px; font-size: 12.5px; background: var(--iv); padding: 1px 10px; z-index: 2; }
.pi { padding-top: 12px; }
.pi h3 { font-size: 16px; font-weight: 400; }
.pi h3 a { text-decoration: none; }
.pi .m { display: flex; justify-content: space-between; gap: 10px; font-size: 14.5px; color: var(--mute); flex-wrap: wrap; }
.price { white-space: nowrap; color: var(--ink); }
.price del { color: var(--mute); margin-inline-end: 6px; }
.price ins { text-decoration: none; }

/* ۶. پابرگ */
.site-footer { background: var(--ink); color: #CFC7B9; font-weight: 300; font-size: 14.5px; border-top: 1px solid rgba(185, 167, 127, .25); }
.site-footer .cols { display: grid; grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr)); gap: 32px; }
.site-footer h4 { color: var(--iv); font-weight: 500; margin: 0 0 10px; font-size: 15px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--ch); }
.site-footer .logo { justify-items: start; color: var(--iv); }
.site-footer .logo .lc { color: var(--ch); }
.site-footer .en { margin-top: 14px; text-align: right; }
.fine { margin-top: 32px; padding-top: 16px; border-top: 1px solid rgba(185, 167, 127, .2); display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.trust { display: flex; gap: 12px; align-items: center; }
.trust img { max-height: 72px; width: auto; }

/* ۷. سبد کشویی */
.veil { position: fixed; inset: 0; background: rgba(26, 26, 26, .45); z-index: 45; }
.drawer { position: fixed; inset-block: 0; left: 0; width: min(420px, 100%); background: var(--iv); z-index: 50; transform: translateX(-100%); transition: transform .45s cubic-bezier(.2, .7, .2, 1); display: flex; flex-direction: column; visibility: hidden; }
.drawer.on { transform: none; visibility: visible; }
.dh { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); }
.dh h3 { font-size: 20px; }
.db { flex: 1; overflow: auto; padding: 0 22px 22px; }
.free-ship { padding: 14px 0 6px; font-size: 14px; color: var(--mute); }
.free-ship i { display: block; height: 3px; background: var(--line); margin-top: 8px; position: relative; }
.free-ship i::after { content: ""; position: absolute; inset-block: 0; right: 0; width: var(--p); background: var(--an); }
body.drawer-open { overflow: hidden; }

/* ۸. برگه‌ها و ۴۰۴ */
.page-title { margin-bottom: 28px; }
.entry-content { max-width: 70ch; }
.entry-content > * + * { margin-top: 1em; }
.woocommerce-cart .entry-content, .woocommerce-checkout .entry-content, .woocommerce-account .entry-content { max-width: none; }
.empty-page { text-align: center; display: grid; justify-items: center; gap: 16px; padding-block: 120px; }
.empty-page p { color: var(--mute); margin: 0; }

/* ۸-ب. حرکت و جزئیات (۰.۵.۰) */
/* عکس دوم کارت محصول با رفتن موس */
.pc .ph img.alt { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; }
@media (hover: hover) { .pc:hover .ph img.alt { opacity: 1; } }
/* ظاهر شدن نرم هنگام اسکرول (کلاس rv را main.js فقط به عناصر پایین‌تر از صفحه می‌دهد) */
.js .rv { opacity: 0; transform: translateY(18px); transition: opacity .9s cubic-bezier(.2, .7, .2, 1), transform .9s cubic-bezier(.2, .7, .2, 1); }
.js .rv.in { opacity: 1; transform: none; }
.hero .fig { will-change: transform; }
/* دکمهٔ شناور مشاوره */
.consult { position: fixed; bottom: 20px; right: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px 0 16px; background: var(--ink); color: var(--iv); text-decoration: none; border-radius: 30px; font-size: 15px; box-shadow: 0 6px 20px rgba(26, 26, 26, .18); transition: transform .3s; }
.consult:hover { transform: translateY(-2px); }
.consult svg { width: 20px; height: 20px; fill: none; stroke: var(--ch); stroke-width: 1.5; stroke-linejoin: round; }
.single-product .consult { bottom: 88px; }
@media (min-width: 821px) { .single-product .consult { bottom: 20px; } }
@media (max-width: 600px) { .consult { width: 48px; padding: 0; justify-content: center; right: 14px; } .consult span { display: none; } }

/* ۹. موبایل و تبلت */
@media (max-width: 980px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.svc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.site-footer .cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 820px) {
	.menu { display: none; }
	.hd > .w { grid-template-columns: auto minmax(0, 1fr); }
	.mrow { display: flex; gap: 22px; overflow-x: auto; padding: 4px max(4vw, 16px) 10px; white-space: nowrap; font-size: 14.5px; }
	.mrow a { text-decoration: none; flex: none; }
	.hero .w, .edit, .news .w { grid-template-columns: minmax(0, 1fr); }
	.hero .fig { min-height: 360px; }
	.hero .tx { padding-bottom: 0; }
}
@media (max-width: 782px) { .admin-bar .hd { top: 46px; } }
@media (max-width: 600px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.svc, .site-footer .cols { grid-template-columns: minmax(0, 1fr); }
	.pi h3 { font-size: 15px; }
	.logo .lg { font-size: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.js .rv { opacity: 1; transform: none; }
	html { scroll-behavior: auto; }
}
