/* VIMA Yadaki — Automotive spare parts theme */
:root {
	--brand-50: #eff1ff;
	--brand-100: #e0e4ff;
	--brand-200: #c7cdfe;
	--brand-300: #a5abfc;
	--brand-400: #8182f8;
	--brand-500: #465fff;
	--brand-600: #3641f5;
	--brand-700: #2c33d8;
	--brand-800: #252cae;
	--brand-950: #161950;
	--gray-50: #f9fafb;
	--gray-100: #f3f4f6;
	--gray-200: #e5e7eb;
	--gray-300: #d1d5db;
	--gray-400: #9ca3af;
	--gray-500: #6b7280;
	--gray-600: #4b5563;
	--gray-700: #374151;
	--gray-800: #1f2937;
	--gray-900: #111827;
	--gray-950: #030712;
	--success-500: #12b76a;
	--error-500: #f04438;
	--warning-500: #f79009;
	--orange-500: #fb6514;
	--orange-600: #ea580c;

	--vima-bg: var(--gray-50);
	--vima-surface: #ffffff;
	--vima-text: var(--gray-900);
	--vima-muted: var(--gray-500);
	--vima-border: var(--gray-200);
	--vima-primary: var(--brand-600);
	--vima-primary-dark: var(--brand-800);
	--vima-primary-light: var(--brand-400);
	--vima-accent: var(--orange-500);
	--vima-radius: 14px;
	--vima-radius-lg: 22px;
	--vima-shadow: 0 12px 40px rgba(22, 25, 80, 0.1);
	--vima-gradient: linear-gradient(135deg, var(--brand-600) 0%, var(--brand-400) 100%);
	--vima-gradient-dark: linear-gradient(160deg, var(--brand-950) 0%, var(--brand-800) 50%, var(--brand-600) 100%);
	--vima-font: "Vazir", system-ui, sans-serif;
	--vima-section-gap: clamp(3rem, 8vw, 5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html {
	-webkit-text-size-adjust: 100%;
	overflow-x: clip;
}
body.vima-body {
	margin: 0;
	font-family: var(--vima-font);
	background: var(--vima-bg);
	color: var(--vima-text);
	line-height: 1.65;
	direction: rtl;
	overflow-x: clip;
	max-width: 100%;
}
#primary,
.vima-home,
.vima-header,
.vima-footer {
	max-width: 100%;
}
img, video, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-700); text-decoration: none; }
a:hover { color: var(--brand-500); }
.screen-reader-text {
	position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

.vima-container {
	width: 100%;
	max-width: 1200px;
	margin-inline: auto;
	padding-inline: clamp(1rem, 4vw, 1.5rem);
}

/* Buttons */
.vima-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 0.4rem;
	padding: 0.65rem 1.25rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem;
	border: 2px solid transparent; cursor: pointer; transition: transform 0.2s, box-shadow 0.2s;
}
.vima-btn--primary {
	background: var(--vima-gradient); color: #fff; box-shadow: 0 8px 24px rgba(54, 65, 245, 0.28);
}
.vima-btn--primary:hover { transform: translateY(-2px); color: #fff; }
.vima-btn--accent { background: var(--vima-accent); color: #fff; }
.vima-btn--outline { border-color: var(--brand-400); color: var(--brand-800); background: transparent; }
.vima-btn--ghost { background: rgba(255,255,255,0.12); color: #fff; border-color: rgba(255,255,255,0.35); }
.vima-btn--sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.vima-btn--lg { padding: 0.85rem 1.6rem; font-size: 1rem; }
.vima-btn--cart { width: 100%; margin-top: 0.5rem; }

.vima-icon { width: 1.25rem; height: 1.25rem; fill: currentColor; flex-shrink: 0; }
.vima-badge {
	display: inline-block; padding: 0.35rem 0.85rem; border-radius: 999px;
	background: var(--brand-100); color: var(--brand-700); font-size: 0.8rem; font-weight: 600;
	border: 1px solid var(--brand-200);
}

/* Header */
.vima-header {
	position: sticky; top: 0; z-index: 100;
	background: rgba(255,255,255,0.92); backdrop-filter: blur(12px);
	border-bottom: 1px solid var(--vima-border);
}
.vima-header__inner {
	display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 0;
	flex-wrap: nowrap; min-width: 0;
}
.vima-header__brand { flex-shrink: 0; min-width: 0; }
.vima-logo { display: flex; flex-direction: column; line-height: 1.1; }
.vima-logo__mark {
	font-weight: 800; font-size: 1.35rem;
	background: var(--vima-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.vima-logo__sub { font-size: 0.72rem; color: var(--vima-muted); }
.vima-header__nav { flex: 1; display: none; }
.vima-nav { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
.vima-nav a { color: var(--vima-text); font-weight: 500; font-size: 0.92rem; }
.vima-header__actions {
	display: flex; align-items: center; gap: 0.6rem;
	margin-inline-start: auto; min-width: 0; flex-shrink: 1;
}
.vima-search {
	display: flex; align-items: center; background: var(--vima-bg); border-radius: 999px;
	border: 1px solid var(--vima-border); overflow: hidden;
}
.vima-search input {
	border: 0; background: transparent; padding: 0.5rem 0.85rem;
	min-width: 0; width: 100%; max-width: 160px; font-family: inherit;
}
.vima-search button { border: 0; background: transparent; padding: 0.5rem; cursor: pointer; color: var(--brand-700); flex-shrink: 0; }
.vima-header-cart { position: relative; color: var(--brand-800); padding: 0.35rem; flex-shrink: 0; }
.vima-header-cart-count {
	position: absolute; top: -4px; inset-inline-start: -4px;
	background: var(--vima-accent); color: #fff; font-size: 0.65rem; font-weight: 700;
	min-width: 1.1rem; height: 1.1rem; border-radius: 999px; display: grid; place-items: center;
}
.vima-header__toggle { display: flex; border: 0; background: transparent; padding: 0.35rem; cursor: pointer; }
.vima-header__cta { display: none; }

body.vima-menu-open { overflow: hidden; }

.vima-mobile-drawer[hidden] { display: none; }
.vima-mobile-drawer {
	position: fixed;
	inset: 0;
	z-index: 9999;
	pointer-events: none;
}
.vima-mobile-drawer.is-open { pointer-events: auto; }
.vima-mobile-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(22, 25, 80, 0.65);
	opacity: 0;
	transition: opacity 0.28s ease;
}
.vima-mobile-drawer.is-open .vima-mobile-drawer__backdrop { opacity: 1; }
.vima-mobile-drawer__panel {
	position: absolute;
	inset-block: 0;
	inset-inline-end: 0;
	width: min(320px, 88vw);
	background: var(--vima-surface);
	box-shadow: -8px 0 40px rgba(22, 25, 80, 0.2);
	display: flex;
	flex-direction: column;
	transform: translateX(100%);
	transition: transform 0.28s ease;
	overflow-y: auto;
}
.vima-mobile-drawer.is-open .vima-mobile-drawer__panel { transform: translateX(0); }
[dir="rtl"] .vima-mobile-drawer__panel { transform: translateX(-100%); }
[dir="rtl"] .vima-mobile-drawer.is-open .vima-mobile-drawer__panel { transform: translateX(0); }
.vima-mobile-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 1.25rem 1.25rem 1rem;
	background: var(--vima-gradient);
	color: #fff;
}
.vima-mobile-drawer__head .vima-logo__mark {
	background: none;
	color: #fff;
	font-size: 1.25rem;
	-webkit-text-fill-color: #fff;
}
.vima-mobile-drawer__close {
	border: 0;
	background: rgba(255,255,255,0.15);
	color: #fff;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 999px;
	cursor: pointer;
	display: grid;
	place-items: center;
}
.vima-mobile-contact {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	padding: 1rem 1.25rem;
	background: var(--brand-50);
	border-bottom: 1px solid var(--brand-100);
}
.vima-mobile-contact a {
	color: var(--brand-800);
	font-weight: 700;
	font-size: 0.95rem;
}
.vima-mobile-drawer__nav {
	flex: 1;
	padding: 0.5rem 1.25rem 1.5rem;
	overflow-y: auto;
}
.vima-mobile-nav { list-style: none; padding: 0; margin: 0; }
.vima-mobile-nav a {
	display: block;
	padding: 0.9rem 0.75rem;
	font-weight: 600;
	color: var(--vima-text);
	border-radius: 10px;
	margin-bottom: 0.25rem;
}
.vima-mobile-nav a:hover,
.vima-mobile-nav .current-menu-item > a {
	background: var(--brand-50);
	color: var(--brand-700);
}

@media (min-width: 992px) {
	.vima-header__nav { display: block; }
	.vima-header__toggle { display: none; }
	.vima-header__cta { display: inline-flex; }
	.vima-search input { max-width: 220px; }
}

@media (max-width: 991px) {
	.vima-header__nav { display: none; }
	.vima-search { display: none; }
}

/* Category banner image */
.vima-cat-banner {
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--vima-radius);
}
.vima-placeholder { margin: 0; width: 100%; }
.vima-placeholder__frame {
	aspect-ratio: var(--ratio, 16/9);
	background: var(--gray-100);
	border-radius: var(--vima-radius);
	border: 1px solid var(--vima-border);
}

/* Global image helpers */
.vima-img { max-width: 100%; height: auto; display: block; }
.vima-img--contain,
.vima-img.vima-img--contain {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center;
}

/* Hero banners — boxed */
.vima-hero-banners {
	padding: 1.25rem 0;
	margin-bottom: var(--vima-section-gap);
}
.vima-hero-banners__box {
	background: var(--vima-surface);
	border: none;
	border-radius: 20px;
	box-shadow: 0 10px 40px rgba(22, 25, 80, 0.1);
	overflow: hidden;
	padding: 0.5rem;
}
.vima-hero-banners__main {
	margin: 0;
	border-radius: 16px;
	overflow: hidden;
	line-height: 0;
	background: linear-gradient(145deg, var(--brand-50), var(--gray-50));
}
.vima-hero-banners__main .vima-hero-banners__img--main {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
	border-radius: 16px;
}
.vima-hero-banners__row {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 0.5rem;
	margin-top: 0.5rem;
	padding: 0;
	background: transparent;
	border: none;
}
.vima-hero-banners__sub {
	margin: 0;
	padding: 0;
	border: none;
	background: transparent;
	border-radius: 14px;
	overflow: hidden;
	line-height: 0;
	aspect-ratio: 640 / 300;
}
/* !important: overrides .vima-img { height: auto } which blocks object-fit */
.vima-hero-banners__sub .vima-hero-banners__img.vima-img {
	width: 100% !important;
	height: 100% !important;
	max-height: none !important;
	display: block;
	object-fit: fill !important;
	object-position: center;
	border-radius: 14px;
}

/* Category grid — shop by category */
.vima-cat-grid-section {
	padding-bottom: var(--vima-section-gap);
	margin-bottom: var(--vima-section-gap);
}
.vima-cat-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 0.5rem 0.4rem;
	list-style: none;
	margin: 0;
	padding: 0;
	max-width: 960px;
	margin-inline: auto;
}
@media (min-width: 992px) {
	.vima-cat-grid {
		grid-template-columns: repeat(6, 1fr);
		max-width: none;
		gap: 0.65rem 0.5rem;
	}
}
.vima-cat-grid__link {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	color: var(--vima-text);
	padding: 0.2rem;
	border-radius: var(--vima-radius);
	transition: color 0.2s, transform 0.2s;
	box-shadow: none;
}
.vima-cat-grid__link:hover {
	color: var(--brand-700);
	transform: translateY(-2px);
	background: transparent;
}
.vima-cat-grid__icon {
	width: 76px;
	height: 76px;
	border-radius: 14px;
	overflow: hidden;
	border: 1px solid var(--gray-200);
	background: #fff;
	display: block;
	margin-bottom: 0.4rem;
	box-shadow: none;
}
@media (min-width: 768px) {
	.vima-cat-grid__icon { width: 88px; height: 88px; }
}
.vima-cat-grid__icon .vima-cat-banner,
.vima-cat-grid__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.vima-cat-grid__name {
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
@media (min-width: 768px) {
	.vima-cat-grid__name { font-size: 0.85rem; }
}

/* Home — check purchase promo */
.vima-home-check {
	padding-bottom: var(--vima-section-gap);
	margin-bottom: var(--vima-section-gap);
}
.vima-home-check__card {
	display: grid;
	gap: 1.5rem;
	align-items: center;
	padding: clamp(1.25rem, 3vw, 2rem);
	border-radius: var(--vima-radius-lg);
	background:
		radial-gradient(circle at 100% 0%, rgba(59, 130, 246, 0.14), transparent 42%),
		radial-gradient(circle at 0% 100%, rgba(124, 58, 237, 0.1), transparent 38%),
		linear-gradient(135deg, #ffffff 0%, #f8fbff 55%, #f3f7ff 100%);
	border: 1px solid var(--brand-100);
	box-shadow: var(--vima-shadow);
	overflow: hidden;
	position: relative;
}
@media (min-width: 900px) {
	.vima-home-check__card {
		grid-template-columns: minmax(0, 1.15fr) minmax(240px, 0.85fr);
		gap: 2rem;
		padding: clamp(1.5rem, 3vw, 2.5rem);
	}
}
.vima-home-check__eyebrow {
	display: inline-block;
	margin-bottom: 0.65rem;
	padding: 0.28rem 0.75rem;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid var(--brand-100);
	font-size: 0.78rem;
	font-weight: 700;
	color: var(--brand-700);
}
.vima-home-check__content h2 {
	margin: 0 0 0.75rem;
	font-size: clamp(1.35rem, 3vw, 1.95rem);
	line-height: 1.4;
	font-weight: 800;
	color: var(--brand-950);
}
.vima-home-check__lead {
	margin: 0 0 1rem;
	color: var(--vima-muted);
	line-height: 1.85;
	font-size: 0.95rem;
	max-width: 52ch;
}
.vima-home-check__points {
	list-style: none;
	margin: 0 0 1.35rem;
	padding: 0;
	display: grid;
	gap: 0.55rem;
}
.vima-home-check__points li {
	position: relative;
	padding-inline-start: 1.35rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--brand-900);
	line-height: 1.55;
}
.vima-home-check__points li::before {
	content: "";
	position: absolute;
	inset-inline-start: 0;
	top: 0.55em;
	width: 0.55rem;
	height: 0.55rem;
	border-radius: 999px;
	background: var(--vima-gradient);
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}
.vima-home-check__visual {
	display: grid;
	place-items: center;
	min-height: 180px;
}
.vima-home-check__img {
	width: min(100%, 320px);
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.14));
	animation: vimaHomeCheckFloat 4.2s ease-in-out infinite;
}
@keyframes vimaHomeCheckFloat {
	0%, 100% { transform: translateY(0); }
	50% { transform: translateY(-8px); }
}

/* Section head */
.vima-section-head { margin-bottom: 2rem; }
.vima-section-head--center { text-align: center; }
.vima-section-head__eyebrow {
	display: inline-block; font-size: 0.8rem; font-weight: 700; color: var(--brand-600);
	text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.35rem;
}
.vima-section-head__title { font-size: clamp(1.35rem, 3vw, 1.85rem); margin: 0 0 0.5rem; font-weight: 800; }
.vima-section-head__desc { color: var(--vima-muted); max-width: 40rem; margin: 0; }
.vima-section-head--center .vima-section-head__desc { margin-inline: auto; }

/* Education — horizontal cards */
.vima-edu {
	padding: var(--vima-section-gap) 0;
	margin-bottom: var(--vima-section-gap);
	overflow: hidden;
}
.vima-edu__layout {
	display: grid;
	gap: 2rem;
	align-items: start;
}
@media (min-width: 900px) {
	.vima-edu__layout { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
}
.vima-edu__info-inner {
	background: var(--vima-surface);
	border-radius: var(--vima-radius-lg);
	padding: 2rem;
	border: 1px solid var(--brand-100);
	box-shadow: var(--vima-shadow);
	height: 100%;
}
.vima-edu__info h3 { margin-top: 0; font-size: 1.5rem; }
.vima-edu__excerpt { color: var(--vima-muted); margin-bottom: 1.25rem; }

.vima-edu__slider-wrap {
	min-width: 0;
	max-width: 100%;
}
.vima-edu__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: visible;
	scroll-snap-type: x mandatory;
	padding: 0.5rem 0.25rem 1rem;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}
.vima-edu__track::-webkit-scrollbar { height: 6px; }
.vima-edu__track::-webkit-scrollbar-thumb { background: var(--brand-200); border-radius: 999px; }

.vima-edu-card {
	flex: 0 0 min(280px, 85vw);
	scroll-snap-align: center;
	background: var(--vima-surface);
	border: 2px solid var(--brand-100);
	border-radius: var(--vima-radius-lg);
	overflow: hidden;
	box-shadow: var(--vima-shadow);
	transition: border-color 0.2s, box-shadow 0.2s;
	display: flex;
	flex-direction: column;
}
.vima-edu-card.is-active {
	border-color: var(--brand-500);
	box-shadow: 0 12px 32px rgba(54, 65, 245, 0.18);
}
.vima-edu-card__link {
	color: inherit;
	display: flex;
	flex-direction: column;
	height: 100%;
}
.vima-edu-card__media {
	flex-shrink: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--gray-50);
	min-height: 160px;
	max-height: 200px;
	padding: 0.5rem;
}
.vima-edu-card__media img,
.vima-edu-card__img {
	width: 100%;
	max-height: 180px;
	object-fit: contain !important;
}
.vima-edu-card__body {
	padding: 1rem 1.1rem 1.25rem;
	flex: 1;
}
.vima-edu-card__body h3 {
	margin: 0.35rem 0;
	font-size: 1rem;
	line-height: 1.4;
}
.vima-edu-card__body p {
	margin: 0;
	font-size: 0.85rem;
	color: var(--vima-muted);
	line-height: 1.5;
}
.vima-edu-card__body time {
	font-size: 0.75rem;
	color: var(--brand-600);
}
.vima-edu__empty {
	padding: 2rem;
	color: var(--vima-muted);
	text-align: center;
}
.vima-edu__nav {
	display: flex;
	gap: 0.5rem;
	margin-top: 0.75rem;
}

.vima-product-fallback,
.vima-post-fallback {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1rem;
	background: var(--gray-50);
}

/* Category sections */
.vima-categories {
	padding-bottom: var(--vima-section-gap);
	overflow: hidden;
}
.vima-categories > .vima-container {
	margin-bottom: var(--vima-section-gap);
}
.vima-cat-section {
	padding: var(--vima-section-gap) 0;
	overflow: hidden;
}
.vima-cat-section--alt { background: linear-gradient(180deg, var(--brand-50), transparent); }
.vima-cat-section__head {
	display: grid; gap: 1.5rem; margin-bottom: 2rem;
}
.vima-cat-section__visual {
	border-radius: var(--vima-radius);
	overflow: hidden;
	border: 1px solid var(--brand-100);
	aspect-ratio: 4/3;
	max-height: 220px;
}
.vima-cat-section__visual .vima-cat-banner {
	width: 100%;
	height: 100%;
	object-fit: contain;
	border-radius: 0;
}
.vima-cat-section__empty {
	grid-column: 1 / -1;
	text-align: center;
	color: var(--vima-muted);
	padding: 2rem;
}
@media (min-width: 768px) {
	.vima-cat-section__head { grid-template-columns: min(280px, 38%) 1fr; align-items: center; }
	.vima-cat-section__visual { max-height: none; }
}
.vima-cat-section__intro h3 { margin: 0 0 0.5rem; font-size: 1.35rem; }
.vima-cat-section__intro h3 a { color: var(--vima-text); }
.vima-cat-section__badges {
	display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0.75rem 0;
}
.vima-cat-section__badges li {
	font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.65rem;
	border-radius: 999px; background: var(--brand-50); color: var(--brand-800);
	border: 1px solid var(--brand-100);
}
.vima-link-arrow { font-weight: 600; }
.vima-link-arrow::after { content: " ←"; }

/* Product carousel */
.vima-product-carousel {
	position: relative;
	display: flex;
	align-items: center;
	gap: 0.35rem;
	min-width: 0;
	max-width: 100%;
	overflow: hidden;
}
.vima-product-carousel__track {
	display: flex;
	gap: 1rem;
	overflow-x: auto;
	overflow-y: hidden;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 0.5rem 0.25rem 1rem;
	flex: 1;
	min-width: 0;
	max-width: 100%;
	-ms-overflow-style: none;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
}
.vima-product-carousel__track::-webkit-scrollbar { display: none; }
.vima-carousel-btn {
	width: 2.5rem; height: 2.5rem; border-radius: 999px; border: 1px solid var(--vima-border);
	background: var(--vima-surface); cursor: pointer; display: grid; place-items: center;
	flex-shrink: 0; box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}
.vima-carousel-btn--edge { z-index: 2; }

/* Product card */
.vima-product-card {
	flex: 0 0 min(200px, calc(100vw - 5rem)); scroll-snap-align: start;
	max-width: 220px;
	background: var(--vima-surface); border-radius: var(--vima-radius);
	border: 1px solid var(--vima-border); padding: 0.75rem;
	transition: transform 0.2s, box-shadow 0.2s;
}
.vima-product-card:hover { transform: translateY(-4px); box-shadow: var(--vima-shadow); }
.vima-product-card__link { color: inherit; }
.vima-product-card__img {
	position: relative; border-radius: 10px; overflow: hidden; margin-bottom: 0.65rem;
	background: var(--vima-bg); aspect-ratio: 1;
	max-width: 100%;
}
.vima-product-card__img img {
	width: 100%;
	max-width: 100%;
	height: 100%;
	object-fit: cover;
}
.vima-product-card__img--dimmed img,
.vima-product-card--dimmed .vima-product-card__img img {
	filter: grayscale(1);
	opacity: 0.72;
}
.vima-product-card__badges {
	position: absolute;
	top: 8px;
	inset-inline-start: 8px;
	inset-inline-end: 8px;
	display: flex;
	flex-wrap: wrap;
	gap: 0.3rem;
	z-index: 1;
}
.vima-product-card__badge {
	background: var(--vima-accent);
	color: #fff;
	font-size: 0.68rem;
	padding: 0.2rem 0.45rem;
	border-radius: 6px;
	font-weight: 700;
	line-height: 1.3;
}
.vima-product-card__badge--sale {
	background: var(--vima-accent);
}
.vima-product-card__badge--out {
	background: var(--gray-700);
}
.vima-product-card__badge--no-price {
	background: #b45309;
}
.vima-product-card__badge--backorder {
	background: #0369a1;
}
.vima-product-card__badge--unavailable {
	background: var(--gray-600);
}
.vima-product-card__title {
	font-size: 0.9rem; margin: 0 0 0.35rem; line-height: 1.4;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.vima-price { font-weight: 700; color: var(--brand-800); font-size: 0.95rem; }
.vima-price del { color: var(--vima-muted); font-weight: 400; font-size: 0.85rem; margin-inline-start: 0.35rem; }

.vima-products-grid,
.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 1rem;
	list-style: none;
	margin: 0;
	padding: 0;
}
@media (min-width: 640px) {
	.vima-products-grid,
	.woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.woocommerce ul.products li.vima-product-loop-item {
	margin: 0 !important;
	width: auto !important;
	min-width: 0;
}
.woocommerce ul.products::before,
.woocommerce ul.products::after { display: none !important; }

/* CTA check */
.vima-cta-check {
	padding: var(--vima-section-gap) 0 0;
	margin-bottom: 0;
	background: var(--vima-gradient-dark);
	color: #fff;
	overflow: hidden;
}
.vima-home + .vima-footer,
.home .vima-footer {
	margin-top: 0;
}
.vima-cta-check__visual {
	border-radius: var(--vima-radius);
	overflow: hidden;
	border: 1px solid rgba(255,255,255,0.15);
}
.vima-cta-check__img { border-radius: var(--vima-radius); }
.vima-cta-check__inner {
	display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 768px) {
	.vima-cta-check__inner { grid-template-columns: 1fr 1fr; }
}
.vima-cta-check h2 { margin-top: 0; font-size: 1.75rem; }
.vima-cta-check p { opacity: 0.9; }

/* Footer */
.vima-footer {
	background: var(--brand-950); color: rgba(255,255,255,0.88);
	padding: 3rem 0 1.5rem; margin-top: var(--vima-section-gap);
}
.vima-footer a { color: var(--brand-200); }
.vima-contact-list { list-style: none; padding: 0; margin: 0; }
.vima-contact-list li { margin-bottom: 0.5rem; font-size: 0.9rem; }
.vima-contact-list__address {
	line-height: 1.6;
	color: rgba(255,255,255,0.75);
}
.vima-contact-list__address span {
	display: block;
	font-weight: 600;
	color: #fff;
	margin-bottom: 0.15rem;
}
.vima-footer__grid {
	display: grid; gap: 2rem;
	grid-template-columns: 1fr;
}
@media (min-width: 768px) {
	.vima-footer__grid { grid-template-columns: 1.2fr repeat(3, 1fr); }
}
.vima-footer h4 { color: #fff; margin-top: 0; }
.vima-footer ul { list-style: none; padding: 0; margin: 0; }
.vima-footer li { margin-bottom: 0.4rem; font-size: 0.9rem; }
.vima-trust-list li { display: flex; gap: 0.5rem; align-items: flex-start; margin-bottom: 0.65rem; }
.vima-footer__bottom {
	margin-top: 2rem; padding-top: 1rem; border-top: 1px solid rgba(255,255,255,0.12);
	display: flex; flex-wrap: wrap; gap: 1rem; justify-content: space-between; font-size: 0.85rem;
}
.vima-footer-menu { display: flex; gap: 1rem; list-style: none; margin: 0; padding: 0; }

/* Shop */
.vima-shop-main { padding: 2rem 0 3rem; }
.vima-cat-hero {
	background: var(--vima-gradient-dark); color: #fff; padding: 2rem 0; margin-bottom: 1.5rem;
}
.vima-cat-hero__grid {
	display: grid; gap: 1.5rem; align-items: center;
}
@media (min-width: 768px) {
	.vima-cat-hero__grid { grid-template-columns: 320px 1fr; }
}
.vima-cat-hero__badges { display: flex; gap: 0.5rem; list-style: none; padding: 0; }
.vima-cat-hero__badges li {
	padding: 0.3rem 0.75rem; border-radius: 999px;
	background: rgba(255,255,255,0.12); font-size: 0.8rem;
}
.vima-shop-toolbar {
	display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center;
	gap: 1rem; margin-bottom: 1rem; padding: 0.75rem 1rem;
	background: var(--vima-surface); border-radius: var(--vima-radius); border: 1px solid var(--vima-border);
}
.vima-page-head { padding: 2rem 0 1rem; }
.vima-page-head h1 { margin: 0; font-size: 1.75rem; }

/* WooCommerce overrides (layout in pages.css) */
.woocommerce .star-rating { color: var(--vima-accent); }
.woocommerce div.product .product_title { font-size: 1.5rem; }
.woocommerce div.product p.price { font-size: 1.35rem; color: var(--brand-800); font-weight: 700; }
.woocommerce #respond input#submit,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
	background: var(--vima-gradient) !important; color: #fff !important;
	border-radius: 999px !important; font-weight: 600; border: 0 !important;
}
.woocommerce-tabs { margin-top: 2rem; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border-radius: var(--vima-radius); border-top: 0 !important;
	border-inline-start: 4px solid var(--brand-500) !important;
}

/* Home page section rhythm */
.vima-home > section + section {
	margin-top: 0;
}
@media (max-width: 767px) {
	.vima-edu__layout { gap: 1.5rem; }
	.vima-edu__info-inner { padding: 1.25rem; }
	.vima-cat-section__intro { margin-bottom: 0.5rem; }
	.vima-hero-banners__sub { min-height: 80px; }
}

/* 404 */
.vima-404 { padding: 3rem 0; }
.vima-404__inner {
	display: grid; gap: 2rem; align-items: center;
}
@media (min-width: 768px) {
	.vima-404__inner { grid-template-columns: 1fr 1fr; }
}
.vima-404__code {
	font-size: 4rem; font-weight: 800;
	background: var(--vima-gradient); -webkit-background-clip: text; background-clip: text; color: transparent;
	line-height: 1;
}
.vima-search--lg { flex-wrap: wrap; border-radius: var(--vima-radius); margin: 1rem 0; }
.vima-search--lg input { flex: 1; min-width: 200px; }
.vima-404__actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Blog */
.vima-post-grid {
	display: grid; gap: 1.25rem;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.vima-post-card {
	background: var(--vima-surface); border-radius: var(--vima-radius);
	border: 1px solid var(--vima-border); overflow: hidden;
}
.vima-post-card a { color: inherit; display: block; padding-bottom: 1rem; }
.vima-post-card h2 { font-size: 1rem; padding: 0 1rem; margin: 0.75rem 0 0.35rem; }
.vima-post-card p { padding: 0 1rem; margin: 0; font-size: 0.88rem; color: var(--vima-muted); }
.vima-prose { line-height: 1.8; }
.vima-prose img { border-radius: var(--vima-radius); }

/* Pagination */
.navigation.pagination { margin-top: 2rem; }
.navigation.pagination .nav-links { display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; }
.navigation.pagination a,
.navigation.pagination span {
	padding: 0.5rem 0.85rem; border-radius: 8px; border: 1px solid var(--vima-border);
	background: var(--vima-surface);
}
