/* Fashion Store — main stylesheet
 * RTL-first, token-driven, dark-mode aware. No build step required.
 */

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

/* --------------------------------------------------------------- Tokens */
:root {
	--font-app: "Vazirmatn", system-ui, -apple-system, "Segoe UI", sans-serif;

	/* Brand + accent fallbacks (overridden inline by the customizer). */
	--brand: #2563eb;
	--brand-50: #eff5ff;
	--brand-100: #dbe8fe;
	--brand-200: #bdd4fd;
	--brand-600: #2563eb;
	--brand-700: #1e4fbb;
	--brand-900: #16367d;
	--accent: #ec4899;
	--accent-600: #ec4899;
	--accent-700: #c33a7d;

	--ink-50: #f6f7f9;
	--ink-100: #eceef2;
	--ink-200: #d9dde4;
	--ink-300: #b4bac6;
	--ink-400: #7a8394;
	--ink-500: #5a6474;
	--ink-600: #454e5d;
	--ink-700: #333a46;
	--ink-800: #1f242e;
	--ink-900: #12161e;

	--bg: #ffffff;
	--surface: #ffffff;
	--surface-2: #f6f7f9;
	--text: #181c26;
	--muted: #6b7484;
	--border: #eceef2;
	--shadow: 0 10px 40px -18px rgba(18, 22, 30, 0.22);

	--radius: 16px;
	--radius-lg: 24px;
	--container: 1280px;
	--header-h: 72px;
	color-scheme: light;
}

html.dark {
	--bg: #0d0f16;
	--surface: #141824;
	--surface-2: #10131c;
	--text: #eef1f6;
	--muted: #9aa3b2;
	--border: #232838;
	--shadow: 0 18px 50px -20px rgba(0, 0, 0, 0.6);
	color-scheme: dark;
}

/* ---------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-app);
	background: var(--bg);
	color: var(--text);
	line-height: 1.75;
	font-size: 15px;
	-webkit-font-smoothing: antialiased;
}
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0 0 .5em; font-weight: 800; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
input, textarea, select { font: inherit; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; top: 8px; right: 8px; z-index: 999;
	background: var(--brand-600); color: #fff; padding: 10px 16px; border-radius: 10px;
	width: auto; height: auto; clip: auto; clip-path: none;
}

/* -------------------------------------------------------------- Layout */
.container-x { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: 72px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 32px; }
.section-title { font-size: clamp(1.4rem, 3vw, 2rem); margin: 0; }
.section-link { font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* ----------------------------------------------------------- Components */
.card-soft {
	background: var(--surface);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	box-shadow: var(--shadow);
}
.btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	border: 1px solid transparent; border-radius: 12px;
	padding: 11px 20px; font-weight: 700; line-height: 1;
	transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; border-radius: 14px; }
.btn-primary { background: var(--brand-600); color: #fff; }
.btn-primary:hover { background: var(--brand-700); color: #fff; }
.btn-outline { background: transparent; border-color: var(--brand-600); color: var(--brand-600); }
.btn-outline:hover { background: var(--brand-600); color: #fff; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--border); }
.btn-block { width: 100%; }
.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 12px;
	background: transparent; border: 1px solid transparent; color: var(--text);
	position: relative;
}
.icon-btn:hover { background: var(--surface-2); color: var(--brand-600); }
.fs-icon { width: 20px; height: 20px; }
.chip { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .75rem; font-weight: 600; }
.field {
	width: 100%; background: var(--surface); color: var(--text);
	border: 1px solid var(--border); border-radius: 12px; padding: 11px 14px;
}
.field:focus { outline: 2px solid var(--brand-200); border-color: var(--brand-600); }
.field-label { display: block; font-size: .85rem; font-weight: 600; margin: 12px 0 6px; }
.notice { border-radius: 12px; padding: 14px 16px; background: var(--surface-2); border: 1px solid var(--border); }
.notice.success { background: #e7f8ef; border-color: #b7e7cd; color: #0d6b3f; }
.notice.error { background: #fdeaea; border-color: #f6c6c6; color: #9b1c1c; }
.fs-hp { position: absolute; inset-inline-start: -9999px; opacity: 0; height: 0; }

/* --------------------------------------------------------------- Header */
.site-header { background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 50; }
.site-header.is-sticky { position: sticky; top: 0; backdrop-filter: saturate(180%) blur(10px); }
.header-inner { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.site-branding { display: flex; align-items: center; }
.brand-mark { display: inline-flex; align-items: center; gap: 10px; color: var(--text); }
.brand-badge { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--brand-600); color: #fff; }
.brand-name { display: block; font-weight: 800; line-height: 1.2; }
.brand-desc { display: block; font-size: .72rem; color: var(--muted); }
.site-logo img { max-height: 48px; width: auto; }

.main-navigation { margin-inline-start: 12px; }
.primary-menu { display: flex; align-items: center; gap: 4px; }
.primary-menu a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--text); font-weight: 600; font-size: .92rem; }
.primary-menu a:hover, .primary-menu .current-menu-item > a { background: var(--brand-50); color: var(--brand-700); }
.primary-menu .sub-menu {
	position: absolute; inset-inline-start: 0; min-width: 200px; background: var(--surface); border: 1px solid var(--border);
	border-radius: 12px; box-shadow: var(--shadow); padding: 8px; display: none;
}
.primary-menu li { position: relative; }
.primary-menu li:hover > .sub-menu { display: block; }

.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.cart-count {
	position: absolute; top: 2px; inset-inline-end: 2px;
	background: var(--accent-600); color: #fff; font-size: .68rem;
	min-width: 18px; height: 18px; border-radius: 999px;
	display: grid; place-items: center; padding: 0 4px; font-weight: 700;
}
.nav-toggle { display: none; }

.search-drawer { border-top: 1px solid var(--border); background: var(--surface); padding: 14px 0; }
.search-form { display: flex; gap: 8px; }

/* ---------------------------------------------------------------- Hero */
.hero-section { background: var(--ink-900); color: #fff; padding-block: 84px; overflow: hidden; position: relative; }
.hero-section::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(60% 80% at 85% 20%, rgba(37,99,235,.35), transparent 60%),
	            radial-gradient(50% 60% at 10% 90%, rgba(236,72,153,.28), transparent 60%);
	pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; position: relative; z-index: 1; }
.eyebrow { display: inline-block; margin-bottom: 14px; padding: 6px 14px; border-radius: 999px; background: rgba(255,255,255,.12); font-size: .8rem; font-weight: 600; }
.hero-title { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 18px; color: #fff; }
.hero-text { font-size: 1.05rem; color: rgba(255,255,255,.82); max-width: 46ch; margin-bottom: 28px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-visual { min-height: 380px; }
.hero-orb { position: relative; height: 380px; display: grid; place-items: center; color: #fff; }
.orb { position: absolute; border-radius: 50%; filter: blur(2px); opacity: .8; }
.orb-1 { width: 220px; height: 220px; background: radial-gradient(circle at 30% 30%, var(--brand-600), transparent 70%); animation: float 7s ease-in-out infinite; }
.orb-2 { width: 150px; height: 150px; background: radial-gradient(circle at 60% 40%, var(--accent-600), transparent 70%); transform: translate(80px, -60px); animation: float 9s ease-in-out infinite reverse; }
.orb-3 { width: 90px; height: 90px; border: 2px solid rgba(255,255,255,.35); transform: translate(-90px, 70px); }
.hero-orb .fs-icon { width: 56px; height: 56px; position: relative; z-index: 2; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

/* ------------------------------------------------------------ Products */
.product-grid, .posts-grid { display: grid; gap: 22px; }
.cols-3 { grid-template-columns: repeat(3, 1fr); }
.cols-4 { grid-template-columns: repeat(4, 1fr); }
.product-card { overflow: hidden; display: flex; flex-direction: column; }
.product-card-media { position: relative; display: block; aspect-ratio: 4/5; background: var(--surface-2); overflow: hidden; }
.product-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.product-card:hover .product-card-media img { transform: scale(1.05); }
.product-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-size: .72rem; color: var(--muted); }
.product-title { font-size: .98rem; margin: 0; }
.product-title a { color: var(--text); }
.product-price { font-weight: 800; color: var(--brand-700); font-size: 1rem; margin-top: auto; }
.product-price del { color: var(--muted); font-weight: 500; font-size: .85rem; margin-inline-start: 6px; }
.badge { position: absolute; top: 10px; border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 4px 10px; }
.badge-sale { inset-inline-start: 10px; background: var(--accent-600); color: #fff; }
.badge-3d { inset-inline-end: 10px; background: rgba(18,22,30,.72); color: #fff; backdrop-filter: blur(4px); }

/* ------------------------------------------------------------ Features */
.features-section { background: var(--surface-2); }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature-card { padding: 26px; text-align: center; }
.feature-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 16px; background: var(--brand-50); color: var(--brand-600); margin-bottom: 14px; }
.feature-title { font-size: 1rem; margin-bottom: 6px; }
.feature-text { font-size: .85rem; color: var(--muted); margin: 0; }

/* --------------------------------------------------------------- About */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-illustration { position: relative; aspect-ratio: 4/3; border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--brand-50), var(--surface-2)); display: grid; place-items: center; }
.about-badge { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 22px; background: var(--surface); color: var(--brand-600); box-shadow: var(--shadow); }
.about-badge.alt { color: var(--accent-600); position: absolute; top: 16%; inset-inline-start: 14%; transform: scale(.8); }
.about-badge.third { color: var(--brand-700); position: absolute; bottom: 14%; inset-inline-end: 16%; transform: scale(.7); }
.about-image { border-radius: var(--radius-lg); width: 100%; }
.about-text { color: var(--ink-600); }
html.dark .about-text { color: var(--ink-300); }

/* ------------------------------------------------------------- Contact */
.contact-section { background: var(--surface-2); }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact-info, .contact-form { padding: 28px; }
.contact-item { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--border); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .fs-icon { color: var(--brand-600); flex-shrink: 0; margin-top: 3px; }
.contact-label { display: block; font-size: .75rem; color: var(--muted); }

/* -------------------------------------------------------------- Footer */
.site-footer { background: var(--ink-900); color: rgba(255,255,255,.8); margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-block: 56px; }
.site-footer .brand-name { color: #fff; }
.footer-desc { color: rgba(255,255,255,.6); font-size: .88rem; margin-top: 14px; }
.footer-title { color: #fff; font-size: 1rem; margin-bottom: 16px; }
.footer-menu li { margin-bottom: 10px; }
.footer-menu a { color: rgba(255,255,255,.72); }
.footer-menu a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; color: rgba(255,255,255,.72); font-size: .88rem; }
.footer-contact .fs-icon { width: 18px; height: 18px; color: var(--brand-200); flex-shrink: 0; }
.social-row { display: flex; gap: 10px; margin-top: 18px; }
.social-link { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.08); color: #fff; }
.social-link:hover { background: var(--brand-600); color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); }
.footer-bottom-inner { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-block: 18px; font-size: .82rem; color: rgba(255,255,255,.55); }

/* ----------------------------------------------------- Posts / single */
.post-card { overflow: hidden; display: flex; flex-direction: column; }
.post-card-media { display: block; aspect-ratio: 16/9; background: var(--surface-2); overflow: hidden; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; }
.post-card-placeholder { display: grid; place-items: center; height: 100%; color: var(--brand-200); }
.post-card-body { padding: 18px; }
.post-card-title { font-size: 1.05rem; margin: 8px 0; }
.post-card-title a { color: var(--text); }
.post-card-excerpt { color: var(--muted); font-size: .88rem; }
.post-card-more { font-weight: 600; font-size: .85rem; }
.entry-meta { font-size: .78rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.page-header { margin-bottom: 28px; }
.page-title { font-size: clamp(1.6rem, 4vw, 2.4rem); }
.entry-hero { background: var(--surface-2); padding-block: 48px; border-bottom: 1px solid var(--border); }
.entry-title { font-size: clamp(1.6rem, 4vw, 2.6rem); margin: 0; }
.entry-content-wrap { max-width: 860px; padding-block: 48px; }
.entry-content { font-size: 1.02rem; }
.entry-content img { border-radius: var(--radius); }
.entry-content blockquote { border-inline-start: 4px solid var(--brand-600); margin: 0 0 1em; padding: 8px 18px; color: var(--muted); background: var(--surface-2); border-radius: 8px; }
.entry-thumb { margin-top: 24px; }
.entry-thumb img { border-radius: var(--radius-lg); }
.page-links { margin: 1em 0; }
.fs-pagination, .navigation.pagination { margin-top: 36px; }
.fs-pagination .nav-links, .pagination .nav-links { display: flex; gap: 8px; flex-wrap: wrap; }
.page-numbers { display: grid; place-items: center; min-width: 42px; height: 42px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); }
.page-numbers.current, .page-numbers:hover { background: var(--brand-600); color: #fff; border-color: var(--brand-600); }

/* -------------------------------------------------------------- Widgets */
.widget-area.sidebar { display: grid; gap: 20px; }
.widget { padding: 20px; }
.widget-title { font-size: 1rem; margin-bottom: 12px; }

/* --------------------------------------------------------------- 404 */
.error-404 { text-align: center; padding: 56px 28px; }
.error-404 .page-title { font-size: 4rem; color: var(--brand-600); }

/* --------------------------------------------------- WooCommerce base */
.woo-main { padding-block: 40px; }
.woocommerce .woocommerce-breadcrumb { color: var(--muted); font-size: .85rem; margin-bottom: 24px; }
.woocommerce ul.products { display: grid; gap: 22px; grid-template-columns: repeat(4, 1fr); margin: 0; padding: 0; list-style: none; }
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; }
.woocommerce ul.products li.product .woocommerce-loop-product__link { display: block; }
.woocommerce-result-count, .woocommerce-ordering { margin: 0 0 24px; }
.woocommerce-ordering select { padding: 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.woocommerce .products .star-rating { color: var(--accent-600); }
.woocommerce span.onsale { background: var(--accent-600); }

/* Single product */
.woocommerce div.product .woocommerce-product-gallery__wrapper { border-radius: var(--radius-lg); overflow: hidden; }
.woocommerce div.product .product_title { font-size: clamp(1.5rem, 4vw, 2.2rem); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--brand-700); font-weight: 800; font-size: 1.4rem; }
.woocommerce div.product form.cart .button,
.woocommerce #respond input#submit, .woocommerce a.button, .woocommerce button.button, .woocommerce input.button {
	background: var(--brand-600); color: #fff; border-radius: 12px; padding: 12px 22px; font-weight: 700;
}
.woocommerce a.button.alt, .woocommerce button.button.alt { background: var(--brand-600); }
.woocommerce div.product form.cart .button:hover { background: var(--brand-700); }
.woocommerce div.product form.cart div.quantity .qty { padding: 10px; border-radius: 10px; border: 1px solid var(--border); width: 70px; }
.woocommerce .quantity input { background: var(--surface); color: var(--text); }
.woocommerce div.product .woocommerce-tabs ul.tabs { padding: 0; margin: 0 0 20px; display: flex; gap: 6px; flex-wrap: wrap; }
.woocommerce div.product .woocommerce-tabs ul.tabs::before { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; margin: 0; padding: 0; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { padding: 10px 18px; color: var(--text); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--brand-600); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: #fff; }
.woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.related.products > h2, .upsells.products > h2 { font-size: 1.4rem; margin-bottom: 20px; }
.fs-open-3d { margin-top: 14px; }

/* Cart / checkout */
.woocommerce table.shop_table { border: 1px solid var(--border); border-radius: var(--radius); border-collapse: separate; border-spacing: 0; overflow: hidden; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--border); padding: 12px; }
.woocommerce table.shop_table thead th, .woocommerce table.shop_table tfoot th { background: var(--surface-2); }
.woocommerce .cart_totals, .woocommerce-checkout-review-order, .woocommerce form.checkout { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; }
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
	background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px; padding: 11px 14px;
}
.fs-shipping-notice { background: var(--brand-50); color: var(--brand-700); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.fs-shipping-notice.success { background: #e7f8ef; color: #0d6b3f; }
.woocommerce #payment { background: var(--surface-2); border-radius: 12px; }
.woocommerce-checkout .woocommerce-info, .woocommerce .woocommerce-message, .woocommerce .woocommerce-error { border-top-color: var(--brand-600); background: var(--surface-2); border-radius: 12px; }
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button, .woocommerce .wc-proceed-to-checkout a.checkout-button { background: var(--brand-600); border-radius: 12px; }

/* Order confirmation + account */
.woocommerce ul.order_details { display: flex; flex-wrap: wrap; gap: 12px; padding: 0; }
.woocommerce ul.order_details li { float: none; border: 1px solid var(--border); border-radius: 12px; padding: 12px; margin: 0; width: auto; }

/* ---------------------------------------------------------- 3D viewer */
.fs-3d {
	position: relative; width: 100%; border-radius: var(--radius-lg);
	background: var(--fs-3d-bg, #0d0f16); overflow: hidden;
}
.fs-3d-stage { position: absolute; inset: 0; }
.fs-3d-stage canvas { display: block; width: 100% !important; height: 100% !important; }
.fs-3d-tools { position: absolute; top: 12px; inset-inline-end: 12px; display: flex; gap: 8px; z-index: 3; }
.fs-3d-btn { width: 38px; height: 38px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: rgba(0,0,0,.35); color: #fff; font-size: 1.1rem; display: grid; place-items: center; }
.fs-3d-btn:hover { background: rgba(0,0,0,.6); }
.fs-3d-hint { position: absolute; bottom: 12px; inset-inline-start: 0; right: 0; left: 0; text-align: center; color: rgba(255,255,255,.6); font-size: .78rem; margin: 0; z-index: 2; pointer-events: none; }
.fs-3d-loader { position: absolute; inset: 0; display: grid; place-items: center; z-index: 2; }
.fs-3d-loader span { width: 44px; height: 44px; border-radius: 50%; border: 3px solid rgba(255,255,255,.2); border-top-color: #fff; animation: fs-spin 1s linear infinite; }
.fs-3d.is-ready .fs-3d-loader { display: none; }
.fs-3d-fallback { display: none; position: absolute; inset: 0; place-items: center; text-align: center; color: #fff; padding: 20px; z-index: 4; }
.fs-3d.has-error .fs-3d-loader { display: none; }
.fs-3d.has-error .fs-3d-fallback { display: grid; }
@keyframes fs-spin { to { transform: rotate(360deg); } }

.fs-3d-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(8,10,15,.85); display: grid; place-items: center; padding: 24px; }
.fs-3d-modal-inner { position: relative; width: min(1000px, 100%); }
.fs-3d-close { position: absolute; top: -44px; inset-inline-end: 0; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; font-size: 1.1rem; }
.fs-3d-mount { border-radius: var(--radius-lg); overflow: hidden; }

/* ----------------------------------------------------------- Dark bits */
html.dark .about-illustration { background: linear-gradient(135deg, #161b28, #10131c); }
html.dark .notice.success { background: #0f2a1d; border-color: #1c4d34; color: #7fe0ac; }
html.dark .notice.error { background: #2a1414; border-color: #5a2222; color: #f0a3a3; }

/* --------------------------------------------- WooCommerce blocks */
.wc-block-cart, .wc-block-checkout, .wc-block-components-sidebar { color: var(--text); }
.wc-block-components-title, .wc-block-cart__main .wc-block-components-product-name { color: var(--text); }
.wc-block-components-product-name { font-weight: 700; }
.wc-block-cart-items, .wc-block-components-order-summary, .wc-block-components-totals-wrapper { border-color: var(--border); }
.wc-block-components-order-summary, .wc-block-components-sidebar-layout .wc-block-components-sidebar,
.wp-block-woocommerce-cart-order-summary-block, .wp-block-woocommerce-checkout-order-summary-block {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
}
.wc-block-components-button, .wc-block-components-button:not(.is-link) {
	background: var(--brand-600); color: #fff; border-radius: 12px; font-weight: 700;
}
.wc-block-components-button:hover:not(:disabled) { background: var(--brand-700); color: #fff; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { background: var(--brand-600) !important; color: #fff !important; }
.wc-block-components-button.is-link { color: var(--brand-600); background: transparent; }
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-block-components-select .wc-blocks-components-select__select,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input {
	background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 10px;
}
.wc-block-components-radio-control__option input:checked + .wc-block-components-radio-control__label { color: var(--brand-700); }
.wc-block-components-quantity-selector { border-color: var(--border); background: var(--surface); }
.wc-block-components-quantity-selector input { background: var(--surface); color: var(--text); }
.wc-block-components-totals-item__value, .wc-block-components-product-price { color: var(--brand-700); font-weight: 700; }
.wc-block-components-sidebar-layout { gap: 28px; }
.wc-block-components-panel__button { color: var(--text); }
.wc-block-components-chip { border-color: var(--border); }
.wp-block-woocommerce-cart, .wp-block-woocommerce-checkout { margin-block: 8px; }
.wc-block-components-notice-banner { border-radius: 12px; }
.wc-block-mini-cart__button { color: var(--text); }
.woocommerce-store-notice { background: var(--brand-600); color: #fff; }

/* --------------------------------------------------------- Responsive */
@media (max-width: 1080px) {
	.features-grid, .product-grid.cols-4, .woocommerce ul.products { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
	.hero-grid, .about-grid, .contact-grid { grid-template-columns: 1fr; }
	.hero-visual { order: -1; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.entry-content-wrap { padding-block: 32px; }
}
@media (max-width: 782px) {
	:root { --header-h: 64px; }
	.nav-toggle { display: inline-grid; }
	.main-navigation {
		position: fixed; inset: var(--header-h) 0 auto 0; background: var(--surface);
		border-bottom: 1px solid var(--border); padding: 12px 20px; margin: 0;
		transform: translateY(-130%); transition: transform .25s ease; z-index: 40; box-shadow: var(--shadow);
	}
	.main-navigation.is-open { transform: translateY(0); }
	.primary-menu { flex-direction: column; align-items: stretch; }
	.primary-menu li { position: static; }
	.primary-menu .sub-menu { position: static; display: block; box-shadow: none; border: 0; padding-inline-start: 14px; }
	.features-grid, .product-grid, .posts-grid, .woocommerce ul.products { grid-template-columns: repeat(2, 1fr); }
	.header-actions { gap: 0; }
}
@media (max-width: 520px) {
	.section { padding-block: 48px; }
	.product-grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 14px; }
	.features-grid { grid-template-columns: 1fr 1fr; }
	.footer-grid { grid-template-columns: 1fr; }
	.product-card-body { padding: 12px; }
}
