/* ==========================================================================
   BATRZ — design tokens
   ========================================================================== */
:root {
	--accent: #3b82f6;
	--accent-2: #60a5fa;
	--grad: linear-gradient(135deg, var(--accent), var(--accent-2));
	--radius-sm: 10px;
	--radius: 16px;
	--radius-lg: 24px;
	--container: 1280px;
	--header-h: 76px;
	--ease: cubic-bezier(.2, .8, .2, 1);
	--font: "Vazirmatn", Tahoma, system-ui, sans-serif;
}

:root,
[data-scheme="dark"] {
	color-scheme: dark;
	--bg: #1a1d24;
	--bg-2: #22262f;
	--surface: rgba(255, 255, 255, .05);
	--surface-2: rgba(255, 255, 255, .09);
	--surface-solid: #2a2f3a;
	--border: rgba(255, 255, 255, .10);
	--border-strong: rgba(255, 255, 255, .18);
	--text: #e8eaef;
	--muted: #9aa3b2;
	--shadow: 0 20px 60px -20px rgba(0, 0, 0, .55);
	--glass-blur: saturate(160%) blur(18px);
	--aurora-opacity: .55;
	--bat-a: #3a4050;
	--bat-b: #151820;
}

[data-scheme="light"] {
	color-scheme: light;
	--bg: #eef1f6;
	--bg-2: #ffffff;
	--surface: rgba(255, 255, 255, .78);
	--surface-2: rgba(255, 255, 255, .96);
	--surface-solid: #ffffff;
	--border: rgba(30, 40, 60, .10);
	--border-strong: rgba(30, 40, 60, .18);
	--text: #1a1f2a;
	--muted: #5f6b7c;
	--shadow: 0 20px 50px -24px rgba(30, 50, 90, .28);
	--aurora-opacity: .35;
	--bat-a: #3a4558;
	--bat-b: #151a24;
}

/* ==========================================================================
   Base
   ========================================================================== */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	font-family: var(--font);
	font-size: 15px;
	line-height: 1.85;
	color: var(--text);
	background: var(--bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
	transition: background-color .4s var(--ease), color .4s var(--ease);
}

img, svg, video { max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
h1, h2, h3, h4, h5, h6 { line-height: 1.4; margin: 0 0 .6em; font-weight: 800; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: #fff; }

.container { width: min(100% - 32px, var(--container)); margin-inline: auto; }

.screen-reader-text,
.skip-link:not(:focus) {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}
.skip-link:focus {
	position: fixed; z-index: 1000; inset-block-start: 12px; inset-inline-start: 12px;
	padding: 10px 16px; background: var(--accent); color: #fff; border-radius: var(--radius-sm);
}
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.icon { width: 20px; height: 20px; flex: none; }

.glass {
	background: var(--surface);
	border: 1px solid var(--border);
	-webkit-backdrop-filter: var(--glass-blur);
	backdrop-filter: var(--glass-blur);
	border-radius: var(--radius);
}

/* Neutral tech backdrop: dot grid + perspective floor + vignette */
.bg-grid {
	--line: rgba(255, 255, 255, .06);
	--dot: rgba(255, 255, 255, .08);
	--vignette: #12151c;
	position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
	background:
		radial-gradient(var(--dot) 1px, transparent 1.4px) 0 0 / 28px 28px,
		linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
}
[data-scheme="light"] .bg-grid {
	--line: rgba(20, 30, 50, .07);
	--dot: rgba(20, 30, 50, .10);
	--vignette: #d8dde6;
}
.bg-grid::before {
	content: ""; position: absolute; inset-inline: -50%; inset-block-end: -10%; height: 70%;
	background-image:
		linear-gradient(var(--line) 1px, transparent 1px),
		linear-gradient(90deg, var(--line) 1px, transparent 1px);
	background-size: 64px 64px;
	transform: perspective(600px) rotateX(62deg);
	transform-origin: bottom center;
	mask-image: linear-gradient(to top, #000 10%, transparent 85%);
	-webkit-mask-image: linear-gradient(to top, #000 10%, transparent 85%);
	animation: gridMove 18s linear infinite;
}
.bg-grid::after {
	content: ""; position: absolute; inset: 0;
	background: radial-gradient(ellipse 80% 60% at 50% 30%, transparent 40%, var(--vignette) 100%);
	opacity: .7;
}
.bg-grid span { display: none; }
@keyframes gridMove { to { background-position: 0 64px, 0 0; } }

/* ==========================================================================
   Buttons
   ========================================================================== */
.btn,
.button,
button.button,
input[type="submit"] {
	--btn-bg: var(--surface-2);
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 11px 22px; min-height: 44px;
	border: 1px solid var(--border); border-radius: 999px;
	background: var(--btn-bg); color: var(--text);
	font-weight: 700; font-size: 14px; line-height: 1.2; cursor: pointer;
	transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s, color .2s;
}
.btn:hover,
.button:hover,
input[type="submit"]:hover { transform: translateY(-2px); color: var(--text); }
.btn .icon { width: 18px; height: 18px; }

.btn-primary,
.button.alt,
.single_add_to_cart_button,
.checkout-button,
#place_order,
input[type="submit"] {
	background: var(--grad) !important; color: #fff !important; border-color: transparent !important;
	box-shadow: 0 10px 30px -10px color-mix(in srgb, var(--accent) 70%, transparent);
}
.btn-primary:hover,
.button.alt:hover { color: #fff; box-shadow: 0 16px 40px -12px color-mix(in srgb, var(--accent) 85%, transparent); }
.btn-ghost { background: transparent; border-color: var(--border-strong); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-lg { padding: 14px 28px; min-height: 52px; font-size: 15px; }

.icon-btn {
	display: inline-grid; place-items: center;
	width: 42px; height: 42px; border-radius: 12px;
	border: 1px solid transparent; background: transparent; cursor: pointer; color: var(--text);
	transition: background .2s, border-color .2s, transform .2s;
}
.icon-btn:hover { background: var(--surface-2); border-color: var(--border); color: var(--text); }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header { position: sticky; inset-block-start: 0; z-index: 50; }

.topbar { font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--border); background: color-mix(in srgb, var(--bg) 70%, transparent); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 36px; }
.topbar-text, .topbar-phone { display: inline-flex; align-items: center; gap: 6px; }
.topbar .icon { width: 15px; height: 15px; color: var(--accent); }
.topbar-nav ul { display: flex; gap: 18px; list-style: none; margin: 0; padding: 0; }
.site-header.is-scrolled .topbar { display: none; }

.header-main { padding-block: 10px; }
.header-inner {
	display: flex; align-items: center; gap: 20px;
	min-height: var(--header-h); padding-inline: 18px;
	border-radius: var(--radius-lg);
	box-shadow: var(--shadow);
	transition: min-height .3s var(--ease);
}
.site-header.is-scrolled .header-inner { min-height: 62px; }

.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-word { font: 900 28px/1 "Segoe UI", system-ui, sans-serif; letter-spacing: .5px; }
.brand-word b { color: var(--accent); font-weight: inherit; }
.brand-logo { max-height: 48px; width: auto; }
[data-scheme="dark"] .brand-logo { filter: invert(1) hue-rotate(180deg) brightness(1.1); }
.brand-mark { display: grid; place-items: center; width: 58px; perspective: 400px; }
.brand-mark .bat-mark { width: 58px; transition: transform .6s var(--ease); }
.brand:hover .bat-mark { transform: rotateY(-25deg) rotateX(12deg) scale(1.08); }
.brand-text { display: flex; flex-direction: column; line-height: 1; font-family: system-ui, sans-serif; }
.brand-text strong { font-size: 20px; letter-spacing: 1px; font-style: italic; font-weight: 900; }
.brand-text small { font-size: 11px; letter-spacing: 4px; color: var(--accent); font-weight: 800; }

.bat-mark { --bat-a: var(--text); --bat-b: var(--text); }
[data-scheme="dark"] .bat-mark { --bat-a: #f4f3ff; --bat-b: #b9b5d6; }
.bat-eye { fill: var(--accent); filter: drop-shadow(0 0 3px var(--accent)); }

.primary-nav { flex: 1; }
.primary-nav .menu,
.cats-nav .menu { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.primary-nav .menu > li { position: relative; }
.primary-nav .menu > li > a {
	display: block; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14.5px;
}
.primary-nav .menu > li > a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a { background: var(--surface-2); color: var(--text); }
.primary-nav .current-menu-item > a { box-shadow: inset 0 -2px 0 var(--accent); }

.primary-nav .sub-menu,
.primary-nav .children,
.cats-nav .sub-menu,
.cats-nav .children {
	position: absolute; inset-block-start: calc(100% + 8px); inset-inline-start: 0; z-index: 10;
	min-width: 220px; margin: 0; padding: 8px; list-style: none;
	background: var(--surface-solid); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: var(--shadow);
	opacity: 0; visibility: hidden; transform: translateY(8px) rotateX(-8deg); transform-origin: top;
	transition: all .25s var(--ease);
}
.primary-nav .sub-menu .sub-menu { inset-block-start: 0; inset-inline-start: 100%; }
.primary-nav li:hover > .sub-menu,
.primary-nav li:focus-within > .sub-menu,
.cats-nav li:hover > .sub-menu,
.cats-nav li:hover > .children,
.cats-nav li:focus-within > .sub-menu,
.cats-nav li:focus-within > .children { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a,
.cats-nav .sub-menu a,
.cats-nav .children a { display: block; padding: 8px 12px; border-radius: 8px; font-size: 14px; }
.primary-nav .sub-menu a:hover,
.cats-nav .sub-menu a:hover,
.cats-nav .children a:hover { background: var(--surface-2); }
.primary-nav .menu-item-has-children > a::after {
	content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-start: 7px;
	border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-3px) rotate(45deg); opacity: .6;
}

.header-actions { display: flex; align-items: center; gap: 4px; margin-inline-start: auto; }
.cart-btn {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 6px 8px 6px 14px; margin-inline-start: 6px;
	border-radius: 14px; background: var(--grad); color: #fff; font-weight: 700; font-size: 13.5px;
	box-shadow: 0 10px 30px -12px var(--accent);
	transition: transform .25s var(--ease);
}
.cart-btn:hover { color: #fff; transform: translateY(-2px); }
.cart-icon { position: relative; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: rgba(255,255,255,.18); }
.cart-count {
	position: absolute; inset-block-start: -6px; inset-inline-end: -6px;
	min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px;
	display: grid; place-items: center; font-size: 11px; line-height: 1;
	background: #fff; color: #111; font-weight: 800;
}
.cart-count.bump { animation: bump .5s var(--ease); }
@keyframes bump { 40% { transform: scale(1.45); } }
.cart-total .woocommerce-Price-currencySymbol { font-size: 11px; opacity: .85; }

.scheme-toggle { position: relative; overflow: hidden; }
.scheme-icon { position: absolute; inset: 0; display: grid; place-items: center; transition: transform .5s var(--ease), opacity .3s; }
[data-scheme="dark"] .scheme-icon--moon,
[data-scheme="light"] .scheme-icon--sun { transform: translateY(120%) rotate(90deg); opacity: 0; }

.menu-toggle { display: none; }

.header-cats { margin-block-end: 4px; }
.cats-nav { display: flex; align-items: center; gap: 10px; font-size: 13.5px; overflow-x: auto; scrollbar-width: none; }
.cats-nav::-webkit-scrollbar { display: none; }
.cats-label, .deals-link { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: 700; padding: 6px 4px; }
.cats-label .icon, .deals-link .icon { width: 17px; height: 17px; color: var(--accent); }
.deals-link { margin-inline-start: auto; }
.cats-nav .menu { gap: 2px; flex-wrap: nowrap; }
.cats-nav .menu > li { position: relative; flex: none; }
.cats-nav .menu > li > a { display: block; padding: 6px 12px; border-radius: 999px; color: var(--muted); white-space: nowrap; }
.cats-nav .menu > li > a:hover { color: var(--text); background: var(--surface-2); }
.site-header.is-scrolled .header-cats { display: none; }

/* Search overlay */
.search-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding-block-start: 14vh; visibility: hidden; }
.search-overlay.is-open { visibility: visible; }
.search-backdrop, .drawer-backdrop {
	position: absolute; inset: 0; background: rgba(5, 5, 10, .55);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
	opacity: 0; transition: opacity .3s;
}
.is-open > .search-backdrop, .is-open > .drawer-backdrop { opacity: 1; }
.search-box {
	position: relative; width: min(100% - 32px, 720px); padding: 14px;
	background: var(--surface-solid); box-shadow: var(--shadow);
	transform: translateY(-20px) scale(.97); opacity: 0; transition: all .35s var(--ease);
}
.search-overlay.is-open .search-box { transform: none; opacity: 1; }
.search-box form { display: flex; align-items: center; gap: 10px; padding-inline-end: 44px; }
.search-box form > .icon { color: var(--muted); margin-inline-start: 8px; }
.search-box input[type="search"] { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 18px; padding: 10px 0; outline: none; }
.search-close { position: absolute; inset-block-start: 50%; inset-inline-end: 8px; transform: translateY(-50%); }

/* Drawers */
.drawer { position: fixed; inset: 0; z-index: 100; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer-panel {
	position: absolute; inset-block: 0; inset-inline-start: 0;
	width: min(88vw, 380px); display: flex; flex-direction: column; gap: 16px;
	padding: 18px; overflow-y: auto;
	background: var(--surface-solid); border-radius: 0; border-block: 0; border-inline-start: 0;
	transform: translateX(100%); transition: transform .4s var(--ease);
}
.drawer--cart .drawer-panel { inset-inline-start: auto; inset-inline-end: 0; transform: translateX(-100%); }
[dir="ltr"] .drawer-panel { transform: translateX(-100%); }
[dir="ltr"] .drawer--cart .drawer-panel { transform: translateX(100%); }
.drawer.is-open .drawer-panel { transform: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-block-end: 12px; border-bottom: 1px solid var(--border); }
.mobile-nav .menu { list-style: none; margin: 0; padding: 0; }
.mobile-nav .menu a { display: block; padding: 10px 12px; border-radius: 10px; font-weight: 600; }
.mobile-nav .menu a:hover { background: var(--surface-2); }
.mobile-nav .sub-menu, .mobile-nav .children { list-style: none; padding-inline-start: 14px; margin: 0; border-inline-start: 1px dashed var(--border); }
.mobile-nav-title { margin: 18px 12px 6px; font-size: 13px; color: var(--muted); }
body.no-scroll { overflow: hidden; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { position: relative; padding-block: clamp(40px, 7vw, 90px) clamp(60px, 8vw, 110px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: clamp(24px, 4vw, 64px); }
.pill {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
	background: var(--surface); border: 1px solid var(--border);
}
.pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 25%, transparent); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px transparent; } }
.hero-title {
	margin: 18px 0 16px; font-size: clamp(34px, 5.4vw, 64px); line-height: 1.25; font-weight: 900; letter-spacing: -.5px;
	background: linear-gradient(120deg, var(--text) 30%, var(--accent) 60%, var(--accent-2));
	-webkit-background-clip: text; background-clip: text; color: transparent;
	background-size: 200% auto; animation: shine 8s linear infinite;
}
@keyframes shine { to { background-position: -200% center; } }
.hero-text { max-width: 560px; font-size: clamp(15px, 1.4vw, 17px); color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-block: 28px 36px; }
.hero-stats { display: flex; gap: clamp(18px, 3vw, 40px); margin: 0; }
.hero-stats div { display: flex; flex-direction: column-reverse; }
.hero-stats dt { color: var(--muted); font-size: 13px; }
.hero-stats dd { margin: 0; font-size: clamp(22px, 2.4vw, 30px); font-weight: 900; }

/* Hero logo: layered image extruded in 3D, tilted by pointer (see main.js) */
.hero-visual {
	position: relative; width: 100%; max-width: 520px; aspect-ratio: 1 / 1; margin-inline: auto;
	display: grid; place-items: center; perspective: 1100px;
}
.hero-ring {
	position: absolute; inset: 10%; border-radius: 50%;
	border: 1px solid var(--border);
	box-shadow: inset 0 0 0 18px color-mix(in srgb, var(--text) 2%, transparent);
}
.hero-ring::after {
	content: ""; position: absolute; inset: -1px; border-radius: 50%;
	background: conic-gradient(from 0deg, transparent 0 80%, var(--accent) 92%, transparent 100%);
	-webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
	mask: radial-gradient(farthest-side, transparent calc(100% - 2px), #000 calc(100% - 1px));
	animation: spin 7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.hero-floor {
	position: absolute; inset-inline: 22%; inset-block-end: 9%; height: 7%; border-radius: 50%;
	background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent);
	animation: floorPulse 6s ease-in-out infinite;
}
[data-scheme="light"] .hero-floor { background: radial-gradient(closest-side, rgba(0, 0, 0, .22), transparent); }
@keyframes floorPulse { 50% { transform: scaleX(.82); opacity: .6; } }

.hero-logo-stage { position: relative; z-index: 1; width: 64%; animation: floatLogo 6s ease-in-out infinite; }
@keyframes floatLogo {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-14px); }
}
.logo-tilt {
	--rx: 0deg; --ry: 0deg; --spin: 0deg; --gx: 50%; --gy: 30%;
	position: relative; display: grid; transform-style: preserve-3d;
	transform: rotateX(var(--rx)) rotateY(calc(var(--ry) + var(--spin)));
	transition: transform .6s var(--ease);
	cursor: pointer;
}
.logo-tilt.is-live { transition: transform .12s linear; }
.logo-tilt.is-spinning { transition: transform 1.1s cubic-bezier(.3, 1.4, .5, 1); }
.logo-layer {
	grid-area: 1 / 1; width: 100%; height: auto; display: block; object-fit: contain;
	transform: translateZ(calc(var(--z) * 1px));
	pointer-events: none; user-select: none;
}
.logo-layer--back { filter: brightness(0) opacity(.9); }
[data-scheme="dark"] .logo-layer--back { filter: invert(1) brightness(.28); }
[data-scheme="dark"] .logo-layer--front { filter: invert(1) brightness(1.05) drop-shadow(0 0 1px rgba(255, 255, 255, .4)); }
[data-scheme="light"] .logo-layer--front { filter: drop-shadow(0 1px 0 rgba(255, 255, 255, .6)); }
.logo-shine {
	grid-area: 1 / 1; transform: translateZ(9px); pointer-events: none;
	background: radial-gradient(circle at var(--gx) var(--gy), rgba(255, 255, 255, .55), transparent 38%);
	mix-blend-mode: overlay; opacity: 0; transition: opacity .4s;
	-webkit-mask: var(--logo-mask) center / contain no-repeat;
	mask: var(--logo-mask) center / contain no-repeat;
}
.logo-tilt.is-live .logo-shine { opacity: 1; }
.hero-logo-fallback .bat-mark { width: 100%; }
.logo3d { position: relative; width: 100%; height: 100%; display: grid; place-items: center; }
.logo3d canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; }
.logo3d-fallback { width: 72%; }

.scroll-cue { position: absolute; inset-block-end: 22px; inset-inline-start: 50%; translate: -50% 0; width: 26px; height: 42px; border: 2px solid var(--border-strong); border-radius: 14px; }
[dir="rtl"] .scroll-cue { translate: 50% 0; }
.scroll-cue span { position: absolute; inset-block-start: 8px; inset-inline-start: 50%; width: 4px; height: 8px; margin-inline-start: -2px; border-radius: 2px; background: var(--accent); animation: cue 1.8s infinite; }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(14px); } }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding-block: clamp(36px, 5vw, 64px); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-block-end: 26px; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .5px; }
.section-title { margin: 4px 0 0; font-size: clamp(22px, 2.6vw, 32px); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 14px; color: var(--muted); }
.link-more .icon { width: 18px; transition: transform .25s; }
.link-more:hover .icon { transform: translateX(-4px); }
[dir="ltr"] .link-more .icon, [dir="ltr"] .btn .icon-arrow { transform: scaleX(-1); }

.cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 16px; }
.cat-card {
	position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px;
	padding: 22px 14px 18px; overflow: hidden;
	transition: transform .4s var(--ease), border-color .3s, box-shadow .4s;
}
.js .cat-card.reveal.is-visible { transition-delay: calc(var(--i, 0) * 60ms), calc(var(--i, 0) * 60ms), 0s, 0s, 0s; }
.cat-card::before {
	content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .4s;
	background: radial-gradient(400px circle at var(--mx, 50%) var(--my, 0%), color-mix(in srgb, var(--accent) 22%, transparent), transparent 45%);
}
.cat-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: var(--shadow); color: var(--text); }
.cat-card:hover::before { opacity: 1; }
.cat-media { position: relative; display: grid; place-items: center; width: 92px; height: 92px; border-radius: 22px; background: var(--surface-2); overflow: hidden; }
.cat-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.cat-card:hover .cat-media img { transform: scale(1.1); }
.cat-media .icon { width: 36px; height: 36px; color: var(--accent); }
.cat-name { position: relative; font-weight: 800; font-size: 15px; }
.cat-count { position: relative; font-size: 12.5px; color: var(--muted); }

.cta {
	display: flex; align-items: center; gap: 24px; padding: clamp(22px, 3vw, 36px);
	border-radius: var(--radius-lg); position: relative; overflow: hidden;
}
.cta::after {
	content: ""; position: absolute; inset-block: -50%; inset-inline-end: -10%; width: 45%;
	background: var(--grad); filter: blur(80px); opacity: .25; pointer-events: none;
}
.cta-icon { display: grid; place-items: center; flex: none; width: 70px; height: 70px; border-radius: 20px; background: var(--grad); color: #fff; }
.cta-icon .icon { width: 34px; height: 34px; }
.cta-copy { flex: 1; }
.cta-copy h2 { margin: 0 0 4px; font-size: clamp(18px, 2vw, 24px); }
.cta-copy p { margin: 0; color: var(--muted); }

/* ==========================================================================
   Pages, posts
   ========================================================================== */
.page-wrap { padding-block: 28px 64px; }
.page-wrap--narrow { max-width: 900px; }
.page-hero { margin-block-end: 22px; }
.page-title { font-size: clamp(24px, 3vw, 36px); margin: 6px 0 0; }
.page-desc { color: var(--muted); }
.entry { padding: clamp(20px, 3vw, 40px); }
.entry-thumb { margin: calc(-1 * clamp(20px, 3vw, 40px)); margin-block-end: 24px; overflow: hidden; border-radius: var(--radius) var(--radius) 0 0; }
.entry-thumb img { width: 100%; display: block; }
.entry-content > *:last-child { margin-block-end: 0; }
.entry-content a { color: var(--accent); }
.entry-content img { border-radius: var(--radius-sm); }
.entry-content blockquote { margin: 1.5em 0; padding: 14px 20px; border-inline-start: 3px solid var(--accent); background: var(--surface); border-radius: var(--radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: 10px; border: 1px solid var(--border); }
.entry-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-block-start: 20px; }
.entry-tags a { padding: 4px 12px; border-radius: 999px; background: var(--surface-2); font-size: 13px; }
.post-meta { font-size: 13px; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }

.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.post-card { overflow: hidden; display: flex; flex-direction: column; transition: transform .4s var(--ease), box-shadow .4s; }
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.post-card-media { display: grid; place-items: center; aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface-2); }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.post-card:hover .post-card-media img { transform: scale(1.06); }
.bat-mark--placeholder { width: 40%; opacity: .25; }
.post-card-body { padding: 18px 20px 22px; }
.post-card-title { font-size: 17px; margin: 6px 0 8px; }
.post-card-body p { color: var(--muted); font-size: 14px; margin: 0; }

.nav-links { display: flex; justify-content: center; gap: 6px; margin-block-start: 32px; flex-wrap: wrap; }
.page-numbers {
	display: inline-grid; place-items: center; min-width: 42px; height: 42px; padding: 0 12px;
	border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-weight: 700;
}
.page-numbers.current { background: var(--grad); color: #fff; border-color: transparent; }
.post-navigation .nav-links { justify-content: space-between; }
.post-navigation a { display: block; padding: 14px 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.post-navigation span { display: block; font-size: 12px; color: var(--muted); }

.empty-state { display: grid; justify-items: center; gap: 14px; padding: 48px 20px; text-align: center; }
.bat-mark--empty { width: 140px; opacity: .5; }

.search-form { display: flex; gap: 8px; width: 100%; max-width: 480px; }
.search-form .btn { padding-inline: 16px; }

input[type="text"], input[type="email"], input[type="url"], input[type="password"], input[type="search"],
input[type="number"], input[type="tel"], input[type="date"], select, textarea {
	width: 100%; min-height: 46px; padding: 10px 14px;
	border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
	background: var(--surface); color: var(--text);
	transition: border-color .2s, box-shadow .2s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent); }
.search-overlay input[type="search"] { border: 0; box-shadow: none; background: transparent; min-height: 0; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: left 18px center, left 13px center; background-size: 5px 5px; background-repeat: no-repeat; padding-inline-end: 36px; }
[dir="ltr"] select { background-position: right 13px center, right 18px center; }
select option { background: var(--surface-solid); color: var(--text); }
label { font-weight: 600; font-size: 14px; }

.comments { margin-block-start: 28px; padding: clamp(20px, 3vw, 32px); }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-inline-start: 24px; }
.comment-body { padding: 14px 0; border-bottom: 1px solid var(--border); }
.comment-author img { border-radius: 50%; vertical-align: middle; margin-inline-end: 8px; }

.widget { margin-block-end: 26px; }
.widget-title { font-size: 16px; margin-block-end: 14px; }
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding-block: 4px; }

.builder-content { width: 100%; }

/* 404 */
.notfound { display: grid; justify-items: center; text-align: center; padding-block: 40px 80px; }
.logo3d--small { width: min(100%, 420px); aspect-ratio: 1.4 / 1; height: auto; }
.hero-logo-stage--small { width: min(200px, 50vw); margin-block-end: 16px; perspective: 900px; }
.notfound-code { font-size: clamp(64px, 12vw, 140px); line-height: 1; margin: 0; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound p { color: var(--muted); }
.notfound-actions { display: flex; gap: 10px; }

/* ==========================================================================
   Warranty page
   ========================================================================== */
.warranty-page { padding-block: 28px 72px; max-width: 760px; }
.warranty-page .container { width: min(100% - 32px, 760px); }
.warranty-hero {
	display: flex; align-items: center; gap: 20px;
	padding: clamp(20px, 3vw, 32px); margin-block-end: 20px; border-radius: var(--radius-lg);
}
.warranty-hero-icon {
	flex: none; display: grid; place-items: center;
	width: 72px; height: 72px; border-radius: 20px; background: var(--grad); color: #fff;
}
.warranty-hero-icon .icon { width: 34px; height: 34px; }
.warranty-hero-copy .page-title { margin: 4px 0 8px; font-size: clamp(22px, 3vw, 30px); }
.warranty-hero-copy p { margin: 0; color: var(--muted); }
.warranty-card { padding: clamp(22px, 3vw, 36px); border-radius: var(--radius-lg); }
.warranty-card h1,
.warranty-card h2,
.warranty-card h3 {
	text-align: center !important;
	color: var(--text) !important;
	font-size: clamp(16px, 2vw, 18px) !important;
	font-weight: 700;
	margin: 0 0 18px !important;
	line-height: 1.8;
}
.warranty-card h2:last-of-type { margin-block-start: 22px !important; margin-block-end: 0 !important; color: var(--muted) !important; font-size: 14px !important; font-weight: 500; }
.warranty-card h2 a,
.warranty-card h2 [dir] { color: var(--accent); }

#warranty-form,
#warranty-user-form,
#warranty-verify-form {
	max-width: 100% !important;
	margin: 0 auto !important;
	padding: 0 !important;
	background: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	text-align: center !important;
}
#warranty-form input[type="text"],
#warranty-form input[type="number"],
#warranty-user-form input[type="text"],
#warranty-verify-form input[type="text"] {
	width: 100% !important;
	min-height: 52px !important;
	margin: 0 0 14px !important;
	padding: 12px 18px !important;
	border: 1px solid var(--border-strong) !important;
	border-radius: 999px !important;
	background: var(--surface-2) !important;
	color: var(--text) !important;
	font-size: 16px !important;
	text-align: center;
}
#warranty-form input:focus,
#warranty-user-form input:focus,
#warranty-verify-form input:focus {
	border-color: var(--accent) !important;
	box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 20%, transparent) !important;
	outline: none !important;
}
#warranty-form button[type="submit"],
#warranty-user-form button[type="submit"],
#warranty-verify-form button[type="submit"] {
	width: 100% !important;
	min-height: 52px !important;
	padding: 12px 22px !important;
	border: 0 !important;
	border-radius: 999px !important;
	background: var(--grad) !important;
	color: #fff !important;
	font-size: 16px !important;
	font-weight: 800 !important;
	cursor: pointer;
	box-shadow: 0 12px 30px -12px var(--accent);
	transition: transform .25s var(--ease), box-shadow .25s;
}
#warranty-form button[type="submit"]:hover,
#warranty-user-form button[type="submit"]:hover,
#warranty-verify-form button[type="submit"]:hover {
	background: var(--grad) !important;
	transform: translateY(-2px);
	box-shadow: 0 16px 36px -12px var(--accent);
}
#warranty-result,
#warranty-verify-result,
#warranty-user-result {
	margin-top: 18px !important;
	padding: 16px 18px !important;
	border-radius: var(--radius) !important;
	background: var(--surface-2) !important;
	border: 1px solid var(--border) !important;
	color: var(--text) !important;
	font-size: 15px !important;
	text-align: center !important;
}
#warranty-result:empty,
#warranty-verify-result:empty,
#warranty-user-result:empty { display: none; }
.warranty-help {
	display: flex; align-items: flex-start; gap: 14px;
	margin-block-start: 18px; padding: 18px 20px; border-radius: var(--radius);
}
.warranty-help > .icon { color: var(--accent); margin-block-start: 2px; width: 24px; height: 24px; }
.warranty-help strong { display: block; margin-block-end: 4px; }
.warranty-help p { margin: 0; color: var(--muted); font-size: 14px; }
.warranty-help a { color: var(--accent); font-weight: 800; }

@media (max-width: 600px) {
	.warranty-hero { flex-direction: column; text-align: center; }
}

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer { margin-block-start: 40px; padding-block: 40px 20px; border-top: 1px solid var(--border); background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg-2) 80%, transparent)); }
.footer-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-block-end: 40px; }
.feature { display: flex; align-items: center; gap: 14px; padding: 18px; }
.feature > .icon { width: 44px; height: 44px; padding: 10px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 14%, transparent); color: var(--accent); }
.feature strong { display: block; font-size: 15px; }
.feature span { font-size: 13px; color: var(--muted); }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 32px; }
.footer-about p { color: var(--muted); margin-block: 14px; font-size: 14px; }
.footer-menu, .footer-menu ul { list-style: none; margin: 0; padding: 0; }
.footer-menu li { padding-block: 4px; }
.footer-menu a { color: var(--muted); font-size: 14px; }
.footer-menu a:hover { color: var(--accent); }
.footer-menu .children { display: none; }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.contact-list li { display: flex; gap: 10px; font-size: 14px; color: var(--muted); }
.contact-list .icon { color: var(--accent); margin-block-start: 3px; }
.social { display: flex; gap: 8px; }
.social a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--border); transition: transform .25s var(--ease), background .25s; }
.social a:hover { transform: translateY(-3px); background: var(--grad); color: #fff; }
.drawer-social { margin-block-start: auto; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-block-start: 36px; padding-block-start: 18px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.to-top { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.to-top .icon { transform: rotate(90deg); }
.to-top:hover { background: var(--grad); color: #fff; }

/* ==========================================================================
   Scroll reveal
   ========================================================================== */
/* Uses `translate` (not `transform`) so it composes with hover/tilt transforms. */
.js .reveal {
	opacity: 0; translate: 0 24px;
	transition: opacity .8s var(--ease), translate .8s var(--ease), transform .45s var(--ease), box-shadow .45s var(--ease), border-color .3s;
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }
.js .woocommerce ul.products li.product.reveal.is-tilting { transition: opacity .8s var(--ease), translate .8s var(--ease), transform .08s linear, box-shadow .4s, border-color .3s; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
	.primary-nav { display: none; }
	.menu-toggle { display: inline-grid; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
	.hero-grid { grid-template-columns: 1fr; text-align: center; }
	.hero-visual { order: -1; max-width: 340px; }
	.hero-logo-stage { width: 66%; }
	.hero-text { margin-inline: auto; }
	.hero-actions, .hero-stats { justify-content: center; }
	.scroll-cue { display: none; }
	.footer-features { grid-template-columns: 1fr; }
	.cta { flex-direction: column; text-align: center; }
	.topbar-nav { display: none; }
}

@media (max-width: 600px) {
	body { font-size: 14px; }
	.topbar-text { display: none; }
	.topbar-inner { justify-content: center; }
	.header-inner { gap: 6px; padding-inline: 8px; min-height: 64px; }
	.brand-mark, .brand-mark .bat-mark { width: 46px; }
	.brand-text strong { font-size: 17px; }
	.brand-word { font-size: 23px; }
	.brand-logo { max-height: 38px; }
	.cart-total { display: none; }
	.cart-btn { padding: 4px; }
	.account-link { display: none; }
	.hero-visual { max-width: 250px; }
	.hero-ring { inset: 6%; }
	.hero { padding-block-start: 20px; }
	.cat-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.cat-media { width: 72px; height: 72px; }
	.footer-grid { grid-template-columns: 1fr; }
	.section-head { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
	.js .reveal { opacity: 1; translate: none; }
}
