/*
Theme Name: Bazarche
Theme URI: https://example.com/bazarche
Author: Bazarche
Description: بازارچه — قالب فروشگاهی فارسی و راست‌به‌چپ برای ووکامرس؛ سریع، سبک و کاملاً ریسپانسیو. جستجوی زنده، افزودن بدون رفرش، مگامنو، حالت تیره، پاپ‌آپ، فاکتور و برچسب پستی، چت هوشمند و دموی آماده.
Version: 1.1.3
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: bazarche
Tags: rtl-language-support, e-commerce, two-columns, custom-logo, custom-menu, translation-ready, threaded-comments, featured-images
*/

/*
Bazarche WordPress Theme, Copyright (C) 2026 Bazarche
Bazarche is distributed under the terms of the GNU General Public License, version 2 or later.

Bundled resources:
- Vazirmatn font, Copyright 2015 The Vazirmatn Project Authors (https://github.com/rastikerdar/vazirmatn), SIL Open Font License 1.1 (assets/fonts/OFL.txt)
- Demo images in assets/demo/ were created for this theme and are released under GPL v2 or later, like the theme.
- Icons are inline SVG paths created for this theme (GPL v2 or later).
*/

/* ========== فونت ========== */
@font-face {
	font-family: "Vazirmatn";
	src: url("assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
	font-weight: 100 900;
	font-display: swap;
}

/* ========== توکن‌ها ========== */
:root {
	--fz: #0b7a82;          /* فیروزه‌ای */
	--fz-dark: #075a61;
	--fz-deep: #08363b;
	--fz-soft: #e3f3f3;
	--saffron: #f4a300;     /* زعفرانی */
	--saffron-dark: #d48c00;
	--anar: #c2304a;        /* انار */
	--ink: #17222b;
	--muted: #5d6a74;
	--line: #e0e7ea;
	--bg: #f5f8f8;
	--card: #fff;
	--err-bg: #fff5f6;
	--sale-bg: #e3f3f3;
	--r-s: 8px;
	--r-m: 14px;
	--r-l: 22px;
	--shadow: 0 1px 2px rgba(23, 34, 43, .06), 0 8px 24px -12px rgba(23, 34, 43, .18);
	--maxw: 1240px;
	--font: "Vazirmatn", Tahoma, "Segoe UI", system-ui, sans-serif;
}

/* ========== پایه ========== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0; background: var(--bg); color: var(--ink);
	font-family: var(--font); font-size: 1rem; line-height: 1.9;
	-webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--fz-dark); text-decoration: none; }
a:hover { color: var(--fz); }
h1, h2, h3, h4, h5 { line-height: 1.55; margin: 0 0 .5em; font-weight: 800; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { padding-inline-start: 1.4em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--saffron); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; inset-block-start: -60px; inset-inline-start: 12px; background: var(--ink); color: #fff; padding: .5rem 1rem; z-index: 999; border-radius: var(--r-s); }
.skip-link:focus { inset-block-start: 8px; color: #fff; }
.wrap { width: min(100% - 2rem, var(--maxw)); margin-inline: auto; }
.ico { flex: none; }
.hide-sm { display: inline; }

/* ========== دکمه‌ها ========== */
.btn, .button, button.button, input[type="submit"], .woocommerce a.button, .woocommerce button.button, .woocommerce #respond input#submit {
	display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
	padding: .65rem 1.4rem; border-radius: var(--r-s); border: 1.5px solid transparent;
	font-weight: 700; font-size: .95rem; line-height: 1.6; cursor: pointer;
	background: var(--fz); color: #fff; transition: background .18s, color .18s, border-color .18s;
}
.btn:hover, .button:hover, input[type="submit"]:hover { background: var(--fz-dark); color: #fff; }
.btn-saffron { background: var(--saffron); color: #2b1d00; }
.btn-saffron:hover { background: #ffb829; color: #2b1d00; }
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }
.btn-primary { background: var(--fz); }
.button.alt, .woocommerce a.button.alt, .woocommerce button.button.alt, button.single_add_to_cart_button { background: var(--saffron) !important; color: #2b1d00 !important; font-size: 1.02rem; padding-block: .8rem; }
.button.alt:hover, button.single_add_to_cart_button:hover { background: #ffb829 !important; }
button:disabled, .button:disabled, .disabled { opacity: .5; cursor: not-allowed; }

/* ========== نوار بالا ========== */
.topbar { background: var(--fz-deep); color: #d5ecec; font-size: .85rem; }
.topbar-in { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: .4rem; }
.topbar .ico { width: 16px; height: 16px; }

/* ========== هدر ========== */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; inset-block-start: 0; z-index: 50; transition: box-shadow .2s; }
.site-header.is-stuck { box-shadow: 0 6px 20px -10px rgba(23, 34, 43, .25); }
.header-main { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.5rem; padding-block: .9rem; }
.brand { white-space: nowrap; display: inline-flex; align-items: center; gap: .6rem; color: var(--ink); font-weight: 900; font-size: 1.5rem; }
.brand:hover { color: var(--fz); }
.brand-mark {
	width: 30px; height: 30px; background: var(--fz);
	clip-path: polygon(50% 0, 62% 24%, 85% 15%, 76% 38%, 100% 50%, 76% 62%, 85% 85%, 62% 76%, 50% 100%, 38% 76%, 15% 85%, 24% 62%, 0 50%, 24% 38%, 15% 15%, 38% 24%);
}
.custom-logo-link img { max-height: 48px; width: auto; }
.search { position: relative; display: flex; }
.search input[type="search"] {
	width: 100%; padding: .7rem 1rem; padding-inline-end: 3rem; border: 1.5px solid var(--line); border-radius: var(--r-m);
	background: var(--bg); transition: border-color .15s, background .15s;
}
.search input[type="search"]:focus { outline: none; border-color: var(--fz); background: var(--card); box-shadow: 0 0 0 4px var(--fz-soft); }
.search button { position: absolute; inset-block: 4px; inset-inline-end: 4px; width: 42px; border: 0; background: var(--fz); color: #fff; border-radius: 10px; display: grid; place-items: center; cursor: pointer; }
.search button:hover { background: var(--fz-dark); }
.header-actions { display: flex; gap: .4rem; align-items: center; }
.icon-btn { position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .7rem; border-radius: var(--r-s); background: none; border: 0; color: var(--ink); cursor: pointer; font-weight: 600; font-size: .92rem; }
.icon-btn:hover { background: var(--fz-soft); color: var(--fz-dark); }
.cart-count { min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 10px; background: var(--anar); color: #fff; font-size: .75rem; font-weight: 700; line-height: 20px; text-align: center; }
.cart-count.is-empty { background: var(--muted); }
.menu-toggle { display: none; }

.primary-nav { border-top: 1px solid var(--line); background: var(--card); }
.menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .25rem; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a { display: block; padding: .7rem 1rem; color: var(--ink); font-weight: 600; font-size: .95rem; border-block-end: 3px solid transparent; }
.primary-nav .menu > li:hover > a, .primary-nav .menu > .current-menu-item > a { color: var(--fz-dark); border-color: var(--saffron); }
.menu .sub-menu { list-style: none; margin: 0; padding: .5rem; position: absolute; inset-inline-start: 0; inset-block-start: 100%; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: .18s; z-index: 20; }
.menu li:hover > .sub-menu, .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.sub-menu a { display: block; padding: .5rem .8rem; border-radius: var(--r-s); color: var(--ink); font-size: .92rem; }
.sub-menu a:hover { background: var(--fz-soft); }

/* منوی کشویی موبایل */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 24, .55); }
.drawer-panel { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(86vw, 340px); background: var(--card); overflow-y: auto; padding: 1rem; animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(100%); } to { transform: none; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding-block-end: .75rem; border-bottom: 1px solid var(--line); margin-block-end: .5rem; }
.drawer-menu { flex-direction: column; gap: 0; }
.drawer-menu a { display: block; padding: .8rem .5rem; color: var(--ink); font-weight: 600; border-bottom: 1px solid var(--line); }
.drawer-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0 1rem 0 0; }
body.drawer-open { overflow: hidden; }

/* ========== قهرمان صفحه نخست ========== */
.hero { background: var(--fz-deep); color: #fff; position: relative; overflow: hidden; isolation: isolate; }
.hero::before {
	content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80' fill='none' stroke='%23118a92' stroke-width='1' stroke-opacity='.45'%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3C/svg%3E");
	-webkit-mask-image: linear-gradient(to left, transparent 10%, #000 90%);
	mask-image: linear-gradient(to left, transparent 10%, #000 90%);
}
.hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); align-items: center; gap: 2rem; padding-block: clamp(2.5rem, 7vw, 5.5rem); }
.hero h1 { color: #fff; font-size: clamp(1.8rem, 4.2vw, 3rem); font-weight: 900; line-height: 1.6; max-width: 18ch; margin-block-end: .6em; }
.hero p { color: #bfdede; font-size: 1.08rem; max-width: 46ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-block-start: 1.6rem; }
.hero-art { display: grid; place-items: center; color: #2fb0b8; }
.hero-art img { max-height: 380px; width: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .35)); }
.khatam { width: min(100%, 340px); animation: spin 90s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ========== مزیت‌ها ========== */
.features { background: var(--card); border-bottom: 1px solid var(--line); }
.features-in { display: grid; grid-template-columns: repeat(4, 1fr); }
.feature { display: flex; gap: .9rem; align-items: center; padding: 1.25rem 1rem; }
.feature + .feature { border-inline-start: 1px solid var(--line); }
.feature-ico { width: 46px; height: 46px; border-radius: 50%; background: var(--fz-soft); color: var(--fz-dark); display: grid; place-items: center; flex: none; }
.feature strong { display: block; font-size: .98rem; line-height: 1.5; }
.feature span:not(.feature-ico) { color: var(--muted); font-size: .85rem; line-height: 1.5; display: block; }

/* ========== بخش‌ها ========== */
.section { padding-block: clamp(2rem, 5vw, 3.5rem); }
.section-tint { background: var(--fz-soft); }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin-block-end: 1.4rem; }
.section-head h2 { font-size: clamp(1.3rem, 2.5vw, 1.7rem); margin: 0; position: relative; padding-inline-start: 1rem; }
.section-head h2::before { content: ""; position: absolute; inset-inline-start: 0; inset-block: .25em; width: 5px; border-radius: 3px; background: var(--saffron); }
.more { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; font-size: .92rem; }
.more .ico { width: 18px; height: 18px; }

.cat-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1rem; }
.cat-grid a { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .15rem; padding: 1.2rem .8rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); color: var(--ink); transition: border-color .18s, transform .18s; }
.cat-grid a:hover { border-color: var(--fz); transform: translateY(-3px); }
.cat-thumb { width: 84px; height: 84px; border-radius: 50%; overflow: hidden; background: var(--fz-soft); display: grid; place-items: center; margin-block-end: .5rem; }
.cat-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cat-letter { font-size: 2rem; font-weight: 900; color: var(--fz); }
.cat-name { font-weight: 700; }
.cat-count { font-size: .8rem; color: var(--muted); }

/* ========== کارت محصول ========== */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
ul.products::before, ul.products::after { display: none; }
ul.products li.product { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: .9rem; display: flex; flex-direction: column; transition: border-color .18s, box-shadow .18s; }
ul.products li.product:hover { border-color: var(--fz); box-shadow: var(--shadow); }
ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; color: var(--ink); }
ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-s); background: var(--bg); margin-block-end: .75rem; }
.woocommerce-loop-product__title { font-size: .95rem; font-weight: 600; line-height: 1.8; margin: 0 0 .4rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 3.6em; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; font-weight: 800; color: var(--ink); margin-block: auto .75rem; }
.price del { order: 2; color: var(--muted); font-weight: 400; font-size: .82rem; opacity: .85; }
.price ins { order: 1; text-decoration: none; color: var(--anar); }
.price .woocommerce-Price-currencySymbol { font-size: .78rem; font-weight: 500; color: var(--muted); margin-inline-start: .25em; }
ul.products li.product .button { width: 100%; background: var(--fz-soft); color: var(--fz-dark); border-color: transparent; padding-block: .55rem; }
ul.products li.product .button:hover { background: var(--fz); color: #fff; }
ul.products li.product .added_to_cart { display: block; text-align: center; font-size: .85rem; margin-block-start: .4rem; font-weight: 700; }
span.onsale { position: absolute; inset-block-start: .7rem; inset-inline-start: .7rem; z-index: 2; background: var(--anar); color: #fff; font-size: .75rem; font-weight: 700; padding: .1rem .6rem; border-radius: 999px; line-height: 1.7; }
.star-rating { color: var(--saffron); font-size: .85rem; }

/* ========== وبلاگ ========== */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.post-grid-2 { grid-template-columns: repeat(2, 1fr); }
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; display: flex; flex-direction: column; }
.post-thumb { display: block; aspect-ratio: 16 / 10; background: var(--fz-soft); overflow: hidden; }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-ph { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, var(--fz-soft), var(--fz-soft) 12px, #d3ebeb 12px, #d3ebeb 24px); }
.post-body { padding: 1rem 1.1rem 1.25rem; }
.post-body time, .meta { color: var(--muted); font-size: .82rem; }
.post-body h3 { font-size: 1.05rem; margin: .25rem 0 .4rem; }
.post-body h3 a { color: var(--ink); }
.post-body h3 a:hover { color: var(--fz); }
.post-body p { color: var(--muted); font-size: .92rem; margin: 0; }

/* ========== صفحه‌ها ========== */
.page-wrap { padding-block: 1.75rem 3rem; }
.page-head { margin-block-end: 1.4rem; }
.page-head h1, .woocommerce-products-header__title { font-size: clamp(1.4rem, 3vw, 2rem); }
.meta { display: flex; gap: .6rem; align-items: center; }
.dot { width: 4px; height: 4px; border-radius: 50%; background: var(--muted); }
.has-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 2rem; align-items: start; }
.content-area { min-width: 0; }
.entry-content { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: clamp(1.1rem, 3vw, 2rem); }
.entry-content > :last-child { margin-bottom: 0; }
.entry-content img { border-radius: var(--r-s); }
.entry-content h2 { font-size: 1.4rem; margin-block-start: 1.6em; }
.entry-content h3 { font-size: 1.15rem; margin-block-start: 1.4em; }
.entry-content blockquote { margin: 1.2em 0; padding: .6em 1.2em; border-inline-start: 4px solid var(--saffron); background: var(--bg); border-radius: var(--r-s); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { border: 1px solid var(--line); padding: .55rem .8rem; text-align: start; }
.entry-thumb { margin: 0 0 1.2rem; border-radius: var(--r-m); overflow: hidden; }
.tags { margin-block-start: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.tags a { background: var(--fz-soft); padding: .1rem .8rem; border-radius: 999px; font-size: .85rem; }
.sidebar .widget { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.1rem 1.2rem; margin-block-end: 1rem; }
.widget-title { font-size: 1rem; padding-block-end: .6rem; border-bottom: 2px solid var(--fz-soft); margin-block-end: .8rem; }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding-block: .3rem; }
.notice { background: var(--card); border: 1px dashed var(--fz); border-radius: var(--r-m); padding: 1.5rem; }
.notfound { text-align: center; max-width: 520px; margin-inline: auto; padding-block: 3rem; }
.nf-code { font-size: clamp(5rem, 18vw, 9rem); font-weight: 900; line-height: 1.1; color: var(--fz); margin: 0; }
.search-inline { max-width: 420px; margin: 1.2rem auto; }
.pagination, .woocommerce-pagination { margin-block-start: 2rem; }
.pagination ul, .woocommerce-pagination ul { list-style: none; display: flex; gap: .4rem; justify-content: center; padding: 0; margin: 0; flex-wrap: wrap; border: 0 !important; }
.pagination li, .woocommerce-pagination li { border: 0 !important; float: none !important; overflow: visible !important; }
.pagination a, .pagination span, .woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; min-width: 40px; height: 40px; padding-inline: .8rem; align-items: center; justify-content: center; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-s); color: var(--ink); font-weight: 600; }
.pagination .current, .woocommerce-pagination .current { background: var(--fz); color: #fff; border-color: var(--fz); }
.comments { margin-block-start: 2rem; }
.comment-list { list-style: none; padding: 0; }
.comment-body { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem 1.2rem; margin-block-end: .8rem; }
.comment-list .children { list-style: none; padding-inline-start: 1.5rem; }
.comment-author img { float: inline-start; margin-inline-end: .8rem; border-radius: 50%; }

/* ========== ووکامرس: فروشگاه ========== */
.breadcrumb { color: var(--muted); font-size: .88rem; margin-block-end: 1rem; display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--fz); }
.shop-layout.with-filters { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1.75rem; align-items: start; }
.woocommerce-result-count { margin: 0 0 .6rem; color: var(--muted); font-size: .9rem; }
.woocommerce-ordering { margin: 0 0 1rem; }
.woocommerce-ordering select, select, input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="url"], textarea {
	width: 100%; padding: .65rem .9rem; border: 1.5px solid var(--line); border-radius: var(--r-s); background: var(--card); transition: border-color .15s, box-shadow .15s;
}
.woocommerce-ordering select { width: auto; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--fz); box-shadow: 0 0 0 4px var(--fz-soft); }
.woocommerce ul.products { clear: both; }
.woocommerce-products-header { margin-block-end: 1rem; }
.term-description { color: var(--muted); }

/* ========== ووکامرس: صفحه محصول ========== */
div.product { position: relative; }
.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 2.25rem; align-items: start; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); padding: clamp(1rem, 3vw, 2rem); }
.single-product div.product > .woocommerce-tabs, .single-product div.product > .related, .single-product div.product > .upsells { grid-column: 1 / -1; }
.woocommerce-product-gallery { position: relative; margin: 0; }
.woocommerce-product-gallery__wrapper { margin: 0; }
.woocommerce-product-gallery__image img { width: 100%; border-radius: var(--r-m); }
.woocommerce-product-gallery__trigger { position: absolute; inset-block-start: .7rem; inset-inline-end: .7rem; z-index: 5; width: 38px; height: 38px; background: var(--card); border-radius: 50%; display: grid; place-items: center; font-size: 0; box-shadow: var(--shadow); }
.woocommerce-product-gallery__trigger::before { content: "⤢"; font-size: 1.1rem; }
.flex-control-thumbs { list-style: none; display: grid; grid-template-columns: repeat(5, 1fr); gap: .5rem; padding: 0; margin: .6rem 0 0; }
.flex-control-thumbs img { border-radius: var(--r-s); cursor: pointer; opacity: .6; border: 2px solid transparent; }
.flex-control-thumbs img.flex-active, .flex-control-thumbs img:hover { opacity: 1; border-color: var(--fz); }
.summary .product_title { font-size: clamp(1.3rem, 2.6vw, 1.8rem); }
.summary .price { font-size: 1.5rem; margin-block: .6rem 1rem; }
.summary .woocommerce-product-details__short-description { color: var(--muted); }
form.cart { display: flex; flex-wrap: wrap; gap: .75rem; align-items: stretch; margin-block: 1.2rem; }
form.cart.variations_form { display: block; }
.single_variation_wrap .woocommerce-variation-add-to-cart, form.cart:not(.variations_form) { display: flex; gap: .75rem; flex-wrap: wrap; }
.quantity input.qty { width: 84px; text-align: center; padding-block: .8rem; }
table.variations { width: 100%; border-collapse: collapse; margin-block-end: 1rem; }
table.variations th, table.variations td { padding: .4rem 0; text-align: start; display: block; }
table.variations th label { font-weight: 700; }
.reset_variations { font-size: .85rem; color: var(--anar); }
.product_meta { border-top: 1px solid var(--line); padding-block-start: 1rem; font-size: .9rem; color: var(--muted); }
.product_meta > span { display: block; }
.stock.out-of-stock { color: var(--anar); font-weight: 700; }
.stock.in-stock { color: var(--fz-dark); font-weight: 700; }
.woocommerce-tabs ul.tabs { list-style: none; display: flex; gap: .3rem; padding: 0; margin: 0 0 1.2rem; border-bottom: 2px solid var(--line); flex-wrap: wrap; }
.woocommerce-tabs ul.tabs li a { display: block; padding: .7rem 1.2rem; color: var(--muted); font-weight: 700; border-bottom: 3px solid transparent; margin-block-end: -2px; }
.woocommerce-tabs ul.tabs li.active a { color: var(--fz-dark); border-color: var(--saffron); }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.related.products > h2, .upsells.products > h2 { font-size: 1.4rem; margin-block: 1rem; }
.woocommerce-Reviews-title { font-size: 1.1rem; }
.comment-form-rating select { width: auto; }
p.stars a { color: var(--saffron); }

/* ========== ووکامرس: سبد، تسویه‌حساب، حساب من ========== */
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 1.2rem; padding: .9rem 1.2rem; border-radius: var(--r-s); border-inline-start: 5px solid var(--fz); background: var(--card); display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.woocommerce-info { border-color: var(--saffron); }
.woocommerce-error { border-color: var(--anar); background: var(--err-bg); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; }
table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); overflow: hidden; }
table.shop_table th, table.shop_table td { padding: .9rem 1rem; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table thead th { background: var(--fz-soft); font-weight: 800; }
table.shop_table tr:last-child td { border-bottom: 0; }
table.cart img { width: 72px; border-radius: var(--r-s); }
td.product-remove a { color: var(--anar); font-size: 1.4rem; font-weight: 700; }
.cart-collaterals { margin-block-start: 1.5rem; display: flex; justify-content: flex-end; }
.cart_totals { width: min(100%, 420px); }
.cart_totals h2 { font-size: 1.2rem; }
.wc-proceed-to-checkout .checkout-button { display: flex; width: 100%; background: var(--saffron); color: #2b1d00; font-size: 1.05rem; padding-block: .9rem; }
.actions .coupon { display: flex; gap: .5rem; flex-wrap: wrap; }
.actions .coupon input { width: 200px; }
form.checkout { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 2rem; align-items: start; }
form.checkout .col2-set { grid-column: 1; }
form.checkout #order_review_heading, form.checkout #order_review { grid-column: 2; }
form.checkout #order_review_heading { margin: 0; grid-row: 1; }
form.checkout #order_review { grid-row: 2; }
#customer_details .col-1, #customer_details .col-2 { width: 100%; float: none; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, #order_review_heading { font-size: 1.2rem; }
.form-row { margin-block-end: 1rem; }
.form-row label { display: block; font-weight: 600; font-size: .92rem; margin-block-end: .25rem; }
.form-row .required { color: var(--anar); text-decoration: none; }
.form-row-first, .form-row-last { width: calc(50% - .5rem); display: inline-block; vertical-align: top; }
.form-row-first { margin-inline-end: 1rem; }
#payment { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1rem; }
#payment ul.payment_methods { list-style: none; padding: 0; margin: 0 0 1rem; }
#payment ul.payment_methods li { padding-block: .5rem; border-bottom: 1px solid var(--line); }
#payment .payment_box { background: var(--bg); padding: .8rem 1rem; border-radius: var(--r-s); font-size: .9rem; margin-block-start: .5rem; }
#place_order { width: 100%; background: var(--saffron); color: #2b1d00; font-size: 1.05rem; padding-block: .9rem; }
.woocommerce-account .woocommerce { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; align-items: start; }
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: .5rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); }
.woocommerce-MyAccount-navigation a { display: block; padding: .6rem .9rem; border-radius: var(--r-s); color: var(--ink); font-weight: 600; }
.woocommerce-MyAccount-navigation .is-active a, .woocommerce-MyAccount-navigation a:hover { background: var(--fz-soft); color: var(--fz-dark); }
.woocommerce-MyAccount-content { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.5rem; }
.u-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.u-column1, .u-column2 { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); padding: 1.5rem; }
.woocommerce-account:not(.logged-in) .woocommerce { display: block; }

/* ========== پاورقی ========== */
.site-footer { background: var(--fz-deep); color: #b6d3d4; margin-block-start: 2rem; }
.site-footer a { color: #e5f4f4; }
.site-footer a:hover { color: var(--saffron); }
.site-footer .brand { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1.1fr 1fr; gap: 2rem; padding-block: 3rem 2rem; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-block-end: .9rem; }
.f-menu { list-style: none; padding: 0; margin: 0; }
.f-menu li { padding-block: .25rem; font-size: .93rem; }
.f-about p { font-size: .93rem; margin-block-start: .8rem; max-width: 38ch; }
.social { display: flex; gap: .5rem; margin-block-start: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, .1); display: grid; place-items: center; }
.social a:hover { background: var(--saffron); color: #2b1d00; }
.trust-box { background: #fff; border-radius: var(--r-m); min-height: 110px; display: grid; place-items: center; padding: .8rem; text-align: center; color: var(--muted); font-size: .82rem; }
.trust-box img { max-height: 90px; width: auto; margin-inline: auto; }
.copy { border-top: 1px solid rgba(255, 255, 255, .12); padding-block: 1rem; font-size: .85rem; text-align: center; }


/* ========== حالت تیره ========== */
:root[data-theme="dark"] {
	--ink: #e8eef1; --muted: #9aabb5; --line: #27373f; --bg: #0e171b; --card: #152228;
	--fz-soft: #14333a; --err-bg: #2a1519; --fz: #2fb0b8; --fz-dark: #5fd0d7;
	--shadow: 0 1px 2px rgba(0,0,0,.4), 0 10px 28px -12px rgba(0,0,0,.7);
	color-scheme: dark;
}
:root[data-theme="dark"] a { color: var(--fz-dark); }
:root[data-theme="dark"] .btn, :root[data-theme="dark"] .button, :root[data-theme="dark"] input[type="submit"] { color: #062a2d; }
:root[data-theme="dark"] .btn-ghost { color: #fff; }
:root[data-theme="dark"] .search button, :root[data-theme="dark"] .page-numbers.current { color: #062a2d; }
:root[data-theme="dark"] .feature-ico, :root[data-theme="dark"] .cat-letter { color: var(--fz-dark); }
:root[data-theme="dark"] .thumb-ph { background: repeating-linear-gradient(45deg,#14333a,#14333a 12px,#102a30 12px,#102a30 24px); }
:root[data-theme="dark"] .section-tint { background: #101d22; }
:root[data-theme="dark"] .hero, :root[data-theme="dark"] .site-footer, :root[data-theme="dark"] .topbar { background: #07191c; }
:root[data-theme="dark"] .brand-mark { background: var(--fz); }
:root[data-theme="dark"] img { filter: brightness(.92); }

/* ========== واکنش‌گرا ========== */
@media (max-width: 1024px) {
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.has-sidebar { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.features-in { grid-template-columns: repeat(2, 1fr); }
	.feature:nth-child(3) { border-inline-start: 0; }
	.feature:nth-child(n+3) { border-top: 1px solid var(--line); }
	.post-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 860px) {
	.menu-toggle { display: inline-flex; }
	.primary-nav { display: none; }
	.header-main { grid-template-columns: auto 1fr auto; grid-template-areas: "menu brand actions" "search search search"; gap: .5rem 1rem; padding-block: .6rem; }
	.menu-toggle { grid-area: menu; }
	.brand-wrap { grid-area: brand; }
	.search { grid-area: search; }
	.header-actions { grid-area: actions; }
	.hide-sm { display: none; }
	.hero-in { grid-template-columns: 1fr; }
	.hero-art { display: none; }
	.single-product div.product { grid-template-columns: 1fr; }
	.shop-layout.with-filters, form.checkout, .woocommerce-account .woocommerce, .u-columns { grid-template-columns: 1fr; }
	form.checkout .col2-set, form.checkout #order_review_heading, form.checkout #order_review { grid-column: 1; grid-row: auto; }
}
@media (max-width: 680px) {
	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
	ul.products li.product { padding: .6rem; }
	.rail { margin-inline: -1rem; }
	.rail ul.products { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 62%; overflow-x: auto; scroll-snap-type: x mandatory; padding: .2rem 1rem 1rem; scrollbar-width: none; }
	.rail ul.products li.product { scroll-snap-align: start; }
	.post-grid, .post-grid-2 { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.topbar-in { justify-content: center; text-align: center; }
	.topbar-phone { display: none !important; }
	.features-in { grid-template-columns: 1fr; }
	.feature + .feature { border-inline-start: 0; border-top: 1px solid var(--line); }
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: .5rem 0; }
	table.shop_table_responsive td { display: flex; justify-content: space-between; border: 0; padding: .4rem 1rem; }
	table.shop_table_responsive td::before { content: attr(data-title); font-weight: 700; }
	table.shop_table_responsive td.product-remove::before, table.shop_table_responsive td.product-thumbnail::before { content: none; }
	.form-row-first, .form-row-last { width: 100%; margin-inline-end: 0; }
	.woocommerce-result-count { display: none; }
}

/* ================= افزوده‌ها: اجزای تعاملی ================= */
[hidden] { display: none !important; }
body.modal-open { overflow: hidden; }
.loading { opacity: .6; pointer-events: none; }
.entry-full { width: 100%; }

/* اطلاعیه‌های چرخشی */
.notices { position: relative; flex: 1; min-width: 0; }
.notice-item { display: none; }
.notice-item.is-on { display: block; animation: fadein .45s; }
.notice-item a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* تغییر حالت تیره/روشن */
.theme-toggle .ico:nth-child(2) { display: none; }
:root[data-theme="dark"] .theme-toggle .ico:nth-child(1) { display: none; }
:root[data-theme="dark"] .theme-toggle .ico:nth-child(2) { display: inline; }

/* مگامنو: به آیتم سطح اول در «فهرست‌ها» کلاس mega-menu بدهید */
.primary-nav .wrap { position: relative; }
.primary-nav .menu > li.mega-menu { position: static; }
.primary-nav .mega-menu > .sub-menu { inset-inline: 0; width: 100%; min-width: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1rem 1.6rem; padding: 1.4rem 1.6rem; }
.mega-menu > .sub-menu > li > a { font-weight: 800; color: var(--fz-dark); padding: .3rem 0 .5rem; border-bottom: 2px solid var(--fz-soft); margin-block-end: .4rem; border-radius: 0; }
.mega-menu > .sub-menu > li > a:hover { background: none; color: var(--fz); }
.mega-menu .sub-menu .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0; min-width: 0; background: none; }
.menu .sub-menu .sub-menu { inset-block-start: 0; inset-inline-start: 100%; }
.menu .sub-menu li { position: relative; }

/* جستجوی زنده */
.live { position: absolute; inset-inline: 0; inset-block-start: calc(100% + 6px); background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); z-index: 80; max-height: 70vh; overflow: auto; }
.live-cats { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding: .6rem .9rem; border-bottom: 1px solid var(--line); font-size: .85rem; color: var(--muted); }
.live-cats a { background: var(--fz-soft); color: var(--fz-dark); padding: .1rem .7rem; border-radius: 999px; font-weight: 700; }
.live-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .55rem .9rem; color: var(--ink); }
.live-item:hover, .live-item.is-active { background: var(--fz-soft); }
.live-item img, .live-ph { width: 48px; height: 48px; border-radius: var(--r-s); object-fit: cover; background: var(--bg); }
.live-t { font-size: .92rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-p { font-size: .85rem; margin: 0; }
.live-all { display: block; text-align: center; padding: .7rem; font-weight: 700; border-top: 1px solid var(--line); }
.live-empty { margin: 0; padding: 1rem; text-align: center; color: var(--muted); }

/* اسلایدر */
.slider { padding-block-start: 1rem; }
.slides { position: relative; border-radius: var(--r-l); overflow: hidden; aspect-ratio: 3 / 1; background: var(--fz-deep); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease; pointer-events: none; }
.slide.is-on { opacity: 1; pointer-events: auto; z-index: 1; }
.slide > img { width: 100%; height: 100%; object-fit: cover; }
.slide-cap { position: absolute; inset-block: 0; inset-inline-start: 0; width: min(62%, 560px); display: flex; flex-direction: column; justify-content: center; gap: .5rem; padding: 1.5rem 2.5rem; color: #fff; background: linear-gradient(to left, rgba(8, 54, 59, .88), rgba(8, 54, 59, 0)); }
.slide-cap h2 { color: #fff; font-size: clamp(1.2rem, 3vw, 2.2rem); margin: 0; }
.slide-cap p { margin: 0 0 .6rem; color: #d5ecec; }
.slide-cap .btn { align-self: flex-start; }
.slide-link { position: absolute; inset: 0; }
.slide-nav { position: absolute; z-index: 3; inset-block-start: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .9); color: #17222b; display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow); }
.slide-nav.next { inset-inline-end: .8rem; }
.slide-nav.prev { inset-inline-start: .8rem; }
.slide-nav.prev .ico { transform: scaleX(-1); }
.slide-dots { position: absolute; z-index: 3; inset-block-end: .8rem; inset-inline: 0; display: flex; justify-content: center; gap: .4rem; }
.slide-dots button { width: 9px; height: 9px; border-radius: 50%; border: 0; padding: 0; background: rgba(255, 255, 255, .55); cursor: pointer; }
.slide-dots button.is-on { width: 26px; border-radius: 6px; background: var(--saffron); transition: width .25s; }

/* بنرها */
.banners-sec { padding-block: 1rem 0; }
.banners { display: grid; gap: 1rem; }
.banners.n2 { grid-template-columns: repeat(2, 1fr); }
.banners.n3 { grid-template-columns: repeat(3, 1fr); }
.banner { display: block; border-radius: var(--r-m); overflow: hidden; border: 1px solid var(--line); transition: transform .2s, box-shadow .2s; }
.banner:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.banner img { width: 100%; aspect-ratio: 2 / 1; object-fit: cover; }

/* دکمه‌های شناور */
.fab { position: fixed; z-index: 60; width: 54px; height: 54px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px -6px rgba(0, 0, 0, .35); transition: transform .15s; }
.fab:hover { transform: scale(1.06); }
.fab-cart { inset-inline-end: 1rem; inset-block-end: 1.2rem; background: var(--saffron); color: #2b1d00; }
.fab-cart .cart-count { position: absolute; inset-block-start: -4px; inset-inline-start: -4px; }
.dial { position: fixed; inset-inline-start: 1rem; inset-block-end: 1.2rem; z-index: 60; }
.fab-dial { position: static; background: var(--fz); color: #fff; }
.dial-list { position: absolute; inset-block-end: 64px; inset-inline-start: 0; list-style: none; margin: 0; padding: .4rem; min-width: 220px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-m); box-shadow: var(--shadow); }
.dial-list a, .dial-list button { display: flex; width: 100%; align-items: center; gap: .7rem; padding: .6rem .8rem; border: 0; background: none; border-radius: var(--r-s); color: var(--ink); font-weight: 600; font-size: .92rem; cursor: pointer; text-align: start; }
.dial-list a:hover, .dial-list button:hover { background: var(--fz-soft); }

/* سبد کشویی */
.minicart { position: fixed; inset: 0; z-index: 110; }
.minicart-panel { position: absolute; inset-block: 0; inset-inline-end: 0; width: min(92vw, 410px); background: var(--card); display: flex; flex-direction: column; padding: 1rem; overflow-y: auto; animation: slidein-l .22s ease-out; }
@keyframes slidein-l { from { transform: translateX(-100%); } to { transform: none; } }
.minicart .widget_shopping_cart_content { display: flex; flex-direction: column; flex: 1; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; flex: 1; }
.woocommerce-mini-cart-item { position: relative; display: block; padding: .8rem 2rem .8rem 0; border-bottom: 1px solid var(--line); }
.woocommerce-mini-cart-item > a:not(.remove) { display: flex; align-items: center; gap: .8rem; font-weight: 600; font-size: .92rem; color: var(--ink); line-height: 1.7; }
.woocommerce-mini-cart-item img { flex: none; width: 60px; height: 60px; border-radius: var(--r-s); object-fit: cover; margin: 0; }
.woocommerce-mini-cart-item a.remove { position: absolute; inset-block-start: .9rem; inset-inline-end: 0; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--err-bg); color: var(--anar); font-weight: 700; }
.woocommerce-mini-cart-item .quantity { display: block; margin-block-start: .2rem; padding-inline-start: 72px; color: var(--muted); font-size: .85rem; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; font-weight: 800; padding-block: 1rem; margin: 0; border-top: 2px solid var(--line); }
.woocommerce-mini-cart__buttons { display: grid; gap: .5rem; margin: 0; }
.woocommerce-mini-cart__buttons .button { width: 100%; }
.woocommerce-mini-cart__buttons .button:not(.checkout) { background: var(--fz-soft); color: var(--fz-dark); }
.woocommerce-mini-cart__buttons .checkout { background: var(--saffron) !important; color: #2b1d00 !important; }
.woocommerce-mini-cart__empty-message { text-align: center; color: var(--muted); padding-block: 3rem; }

/* ناوبری پایین موبایل */
.bottom-nav { display: none; }
.bottom-nav a, .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: .5rem 0; background: none; border: 0; color: var(--muted); font-size: .72rem; font-weight: 600; cursor: pointer; position: relative; }
.bottom-nav a:hover, .bottom-nav button:hover { color: var(--fz); }
.bn-cart .cart-count { position: absolute; inset-block-start: 2px; inset-inline-start: calc(50% + 4px); }

/* پاپ‌آپ */
.popup { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 1rem; }
.popup-backdrop { position: absolute; inset: 0; background: rgba(8, 20, 24, .6); }
.popup-box { position: relative; width: min(100%, 460px); background: var(--card); border-radius: var(--r-l); overflow: hidden; animation: pop .28s ease-out; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.popup-x { position: absolute; inset-block-start: .6rem; inset-inline-end: .6rem; z-index: 2; background: rgba(0, 0, 0, .4); color: #fff; border-radius: 50%; }
.popup-img { width: 100%; max-height: 220px; object-fit: cover; }
.popup-body { padding: 1.6rem; text-align: center; }
.popup-body h2 { font-size: 1.4rem; }
.popup-code { display: flex; justify-content: space-between; align-items: center; width: 100%; border: 2px dashed var(--saffron); background: var(--bg); border-radius: var(--r-m); padding: .7rem 1.1rem; font-weight: 800; font-size: 1.2rem; letter-spacing: 1px; cursor: pointer; margin: .4rem 0 1.1rem; }
.popup-code small { font-size: .78rem; color: var(--muted); font-weight: 600; letter-spacing: 0; }

/* گفتگوی هوشمند */
.aichat { position: fixed; inset-inline-start: 1rem; inset-block-end: 5.6rem; width: min(92vw, 370px); height: min(72vh, 500px); display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-l); box-shadow: var(--shadow); z-index: 90; overflow: hidden; }
.aichat header { display: flex; justify-content: space-between; align-items: center; background: var(--fz); color: #fff; padding: .5rem .5rem .5rem 1rem; }
.aichat header .icon-btn { color: #fff; }
.aichat-log { flex: 1; overflow-y: auto; padding: .9rem; background: var(--bg); }
.msg { max-width: 86%; padding: .5rem .85rem; border-radius: 14px; margin: 0 0 .55rem; white-space: pre-wrap; font-size: .92rem; line-height: 1.8; }
.msg.bot { background: var(--card); border: 1px solid var(--line); }
.msg.me { background: var(--fz); color: #fff; margin-inline-start: auto; }
.msg.typing { opacity: .6; }
.aichat-form { display: flex; gap: .5rem; padding: .6rem; border-top: 1px solid var(--line); background: var(--card); }
.aichat-form input { flex: 1; }

.toast { position: fixed; inset-inline: 0; margin-inline: auto; width: max-content; max-width: 90vw; inset-block-end: 5.5rem; background: var(--ink); color: var(--bg); padding: .6rem 1.3rem; border-radius: 999px; z-index: 130; font-size: .9rem; font-weight: 600; box-shadow: var(--shadow); }

/* نوار افزودن به سبد در صفحه محصول */
.sticky-atc { position: fixed; inset-inline: 0; inset-block-end: 0; background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -8px 22px -12px rgba(0, 0, 0, .3); z-index: 65; padding-block: .6rem; }
.sticky-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.sticky-info { min-width: 0; display: flex; align-items: center; gap: 1rem; }
.sticky-info strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-info .price { margin: 0; flex: none; }

/* شمارنده، فوریت، نشان‌های اعتماد */
.countdown { display: inline-flex; align-items: center; gap: .4rem; background: var(--err-bg); color: var(--anar); border-radius: var(--r-s); padding: .1rem .7rem; font-size: .8rem; font-weight: 700; margin-block: 0 .6rem; font-variant-numeric: tabular-nums; }
.summary .countdown { font-size: .95rem; padding: .35rem .9rem; }
.countdown.is-ended { opacity: .5; }
.urgency { color: var(--anar); font-weight: 700; font-size: .92rem; margin: 0 0 .6rem; }
.trust-row { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem; padding: 0; margin: 1rem 0 0; }
.trust-row li { display: inline-flex; align-items: center; gap: .4rem; background: var(--fz-soft); color: var(--fz-dark); padding: .3rem .9rem; border-radius: 999px; font-size: .85rem; font-weight: 600; }
.trust-row .ico { width: 18px; height: 18px; }

/* نوار ابزار فروشگاه */
.shop-bar { clear: both; display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-block-end: 1rem; }
.chips { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-block: .15rem; }
.chip { white-space: nowrap; padding: .3rem .95rem; border: 1px solid var(--line); border-radius: 999px; background: var(--card); color: var(--ink); font-size: .88rem; font-weight: 600; }
.chip:hover { border-color: var(--fz); color: var(--fz-dark); }
.chip.is-active { background: var(--fz); border-color: var(--fz); color: #fff; }
.view-toggle { display: flex; border: 1px solid var(--line); border-radius: var(--r-s); overflow: hidden; background: var(--card); flex: none; }
.view-toggle button { width: 40px; height: 38px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; }
.view-toggle button[aria-pressed="true"] { background: var(--fz-soft); color: var(--fz-dark); }
.shop-cols-3.archive .content-area ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
ul.products.is-list { grid-template-columns: 1fr; }
ul.products.is-list li.product { flex-direction: row; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; }
ul.products.is-list li.product a.woocommerce-LoopProduct-link { flex: 1 1 340px; display: grid; grid-template-columns: 120px minmax(0, 1fr); column-gap: 1.1rem; align-items: center; }
ul.products.is-list li.product img { grid-row: 1 / 4; margin: 0; }
ul.products.is-list .price { margin-block: 0; }
ul.products.is-list li.product .button { width: auto; flex: none; padding-inline: 1.6rem; }
ul.products.is-list .woocommerce-loop-product__title { min-height: 0; }

/* پنل کاربری */
.acc-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .8rem; margin-block-end: 1.4rem; }
.acc-card { display: flex; flex-direction: column; gap: .2rem; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--bg); color: var(--ink); transition: border-color .15s, transform .15s; }
.acc-card:hover { border-color: var(--fz); transform: translateY(-2px); }
.acc-card span { color: var(--muted); font-size: .85rem; }

@media (max-width: 860px) {
	.brand { font-size: 1.2rem; }
	.brand-wrap { text-align: center; }
	.has-bottom-nav .header-actions .icon-btn:not(.theme-toggle) { display: none; }
	.bottom-nav { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; inset-inline: 0; inset-block-end: 0; z-index: 70; background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0); }
	body.has-bottom-nav { padding-bottom: 62px; }
	.has-bottom-nav .fab-cart { display: none; }
	.has-bottom-nav .dial { inset-block-end: 4.6rem; }
	.has-bottom-nav .aichat { inset-block-end: 9rem; }
	.has-bottom-nav .sticky-atc { inset-block-end: 62px; }
	.has-bottom-nav .toast { inset-block-end: 5.5rem; }
	.slides { aspect-ratio: 16 / 9; }
	.slide-cap { width: 100%; inset-block-start: auto; padding: 1rem 1.2rem 2.4rem; background: linear-gradient(to top, rgba(8, 54, 59, .9), rgba(8, 54, 59, 0)); }
	.banners.n3 { grid-template-columns: 1fr; }
}
@media (max-width: 680px) {
	.banners.n2 { grid-template-columns: 1fr; }
	.sticky-info .price { display: none; }
	.slide-nav { display: none; }
	.view-toggle { display: none; }
	.shop-cols-3.archive .content-area ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
	* { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media print { .topbar, .site-header, .site-footer, .drawer { display: none; } }

/* زیردسته‌ها در ابزارک دسته‌بندی */
.widget ul ul, .widget ul.children { padding-inline-start: 1rem; margin: 0; }
.widget_product_categories li > ul.children { border-inline-start: 2px solid var(--fz-soft); margin-block: .2rem; }
