/* =========================================================================
   Auto Parts Catalog — main.css (RTL, mobile-first, no external CDNs)
   Persian type uses locally installed fonts when available (Vazirmatn /
   IRANSans / IRANYekan), otherwise falls back to the system UI stack.
   No @font-face is declared: the theme ships no font binaries, so declaring
   one produced three 404 requests per page load.
   ========================================================================= */

/* ---------- Design tokens ---------- */
:root {
	--apc-primary: #0f4c81;
	--apc-accent: #f2a900;
	--apc-bg: #f7f8fa;
	--apc-surface: #ffffff;
	--apc-text: #1f2933;
	--apc-text-muted: #6b7280;
	--apc-border: #e5e7eb;
	--apc-radius: 10px;
	--apc-space: 1rem;
	--apc-shadow: 0 1px 3px rgba(15, 76, 129, .08), 0 4px 14px rgba(15, 76, 129, .06);
	--apc-font: 'Vazirmatn', 'Vazir', 'IRANSans', 'IRANYekan', 'Segoe UI', Tahoma, 'Noto Naskh Arabic', 'DejaVu Sans', sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
	margin: 0;
	font-family: var(--apc-font);
	font-size: 16px;
	line-height: 1.7;
	color: var(--apc-text);
	background: var(--apc-bg);
	direction: rtl;
}
img, video { max-width: 100%; height: auto; display: block; }

/* The img display rule above overrides the UA [hidden] style — restore it.
   Gallery switching, tab panels and the modal all rely on the hidden attribute. */
[hidden] { display: none !important; }
a { color: var(--apc-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .6em; font-weight: 700; }

.container {
	width: 100%;
	max-width: 1400px;
	margin-inline: auto;
	padding-inline: 20px;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; inset-inline-start: -9999px; top: 0;
	background: var(--apc-primary); color: #fff; padding: 8px 16px; z-index: 999;
}
.skip-link:focus { inset-inline-start: 0; color: #fff; }

/* ---------- Accessibility: focus ---------- */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
	outline: 2px solid var(--apc-accent);
	outline-offset: 2px;
}

/* ---------- Buttons ---------- */
.btn {
	display: inline-block;
	padding: 10px 18px;
	border-radius: var(--apc-radius);
	border: 1px solid transparent;
	font-family: inherit;
	font-size: 15px;
	font-weight: 500;
	line-height: 1.4;
	cursor: pointer;
	text-align: center;
	transition: background .15s, color .15s, border-color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--apc-primary); color: #fff; }
.btn--primary:hover { background: #0c3d68; }
.btn--outline { background: transparent; color: var(--apc-primary); border-color: var(--apc-primary); }
.btn--outline:hover { background: var(--apc-primary); color: #fff; }
.btn--ghost { background: transparent; color: var(--apc-text); border-color: var(--apc-border); }
.btn--whatsapp { background: #25d366; color: #fff; }
.btn--telegram { background: #229ed9; color: #fff; }
.btn--block { display: block; width: 100%; }

/* =========================================================================
   HEADER — row 1 contact strip, row 2 menu + search
   ========================================================================= */
.site-header {
	background: var(--apc-surface);
	border-bottom: 1px solid var(--apc-border);
	z-index: 50;
}
.site-header--sticky { position: sticky; top: 0; }
body.admin-bar .site-header--sticky { top: 32px; }

/* ---------- Row 1: contact strip ---------- */
.apc-topbar {
	background: linear-gradient(90deg, var(--apc-primary), #0b3a63);
	color: #dbe6f2;
	font-size: 13px;
	overflow: hidden;
	max-height: 60px;
	transition: max-height .25s ease, opacity .2s ease;
}
.site-header.is-compact .apc-topbar { max-height: 0; opacity: 0; }
.apc-topbar__inner {
	display: flex; align-items: center; flex-wrap: wrap;
	gap: 4px 10px; min-height: 40px; padding-block: 6px;
}
.apc-topbar__item {
	display: inline-flex; align-items: center; gap: 6px;
	color: inherit; font-size: 13px; white-space: nowrap;
}
.apc-topbar__item:hover { color: #fff; text-decoration: none; }
.apc-topbar__icon { flex: 0 0 auto; opacity: .8; }
.apc-topbar__label { opacity: .78; }
.apc-topbar__value { color: #fff; font-weight: 600; }
.apc-topbar__value--num,
.apc-topbar__value[dir="ltr"] {
	direction: ltr; unicode-bidi: isolate;
	font-variant-numeric: tabular-nums; letter-spacing: .3px;
}
.apc-topbar__sep { opacity: .45; }
.apc-topbar__note { margin-inline-start: auto; opacity: .8; font-size: 12.5px; }

/* ---------- Row 2: logo + menu + search ---------- */
.apc-navbar__inner {
	display: flex; align-items: center; gap: 14px;
	min-height: 66px; padding-block: 8px;
}
.site-branding { flex: 0 0 auto; display: flex; align-items: center; }
.site-branding img { max-height: 46px; width: auto; }
.site-branding .site-title { font-size: 20px; font-weight: 800; color: var(--apc-primary); }

.main-navigation { flex: 1 1 auto; min-width: 0; }
.apc-nav__list {
	display: flex; align-items: center; gap: 2px;
	list-style: none; margin: 0; padding: 0;
}
.apc-nav__item { position: relative; }

.apc-nav__link {
	display: inline-flex; align-items: center; gap: 7px;
	padding: 9px 11px; border-radius: 9px;
	font-size: 14px; font-weight: 600; color: var(--apc-text);
	white-space: nowrap; transition: background .15s, color .15s;
}
.apc-nav__link:hover,
.apc-nav__item.is-current > .apc-nav__link {
	background: #eef2f7; color: var(--apc-primary); text-decoration: none;
}
.apc-nav__icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 22px; height: 22px; border-radius: 6px;
	background: #eef2f7; color: var(--apc-primary);
	flex: 0 0 auto; overflow: hidden;
}
.apc-nav__icon img { width: 100%; height: 100%; object-fit: contain; }
.apc-nav__chev { display: inline-flex; opacity: .45; transition: transform .2s; }
.apc-nav__item:hover > .apc-nav__link .apc-nav__chev { transform: rotate(180deg); }
.apc-nav__toggle { display: none; }

/* ---------- Sub-menus (desktop: flat open panel, no box) ---------- */
/* NOTE: no max-height/overflow here — a scrolling panel would clip the
   level-2 hover fly-out that opens beside its parent item. */
.apc-submenu {
	position: absolute; inset-inline-start: 0; top: calc(100% + 4px);
	min-width: 232px;
	margin: 0; padding: 6px 0; list-style: none;
	background: var(--apc-surface);
	border-radius: 0 0 12px 12px;
	box-shadow: 0 14px 34px rgba(15, 23, 42, .14);
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .16s ease, transform .16s ease, visibility .16s;
	z-index: 60;
}
.apc-nav__item:hover > .apc-submenu,
.apc-nav__item:focus-within > .apc-submenu,
.apc-nav__item.is-open > .apc-submenu {
	opacity: 1; visibility: visible; transform: none;
}
.apc-submenu .apc-nav__item { position: relative; }
.apc-submenu .apc-nav__link {
	width: 100%; padding: 9px 16px; font-weight: 500; font-size: 13.5px;
	border-radius: 0;
}
.apc-submenu .apc-nav__icon { width: 20px; height: 20px; background: transparent; }

/* Level 2+ (desktop): hover fly-out beside the parent item.
   Hidden by default; the shared :hover/:focus-within reveal rule above
   opens it while the pointer is over the parent item or the fly-out. */
@media (min-width: 1024px) {
	.apc-submenu--l2 {
		top: -6px; inset-inline-start: 100%; inset-inline-end: auto;
		min-width: 208px;
		border-radius: 12px;
		box-shadow: 0 14px 34px rgba(15, 23, 42, .16);
		transform: translateX(-6px);
	}
}
.apc-submenu--l2 .apc-nav__chev { display: none; }

/* ---------- Search ---------- */
.apc-navbar__search { flex: 0 0 auto; width: 300px; }
.apc-search { position: relative; display: flex; align-items: center; }
.apc-search__input {
	width: 100%;
	padding: 10px 14px; padding-inline-end: 44px;
	border: 1px solid var(--apc-border); border-radius: 999px;
	background: var(--apc-bg);
	font-family: inherit; font-size: 13.5px; color: var(--apc-text);
	transition: border-color .15s, box-shadow .15s, background .15s;
}
.apc-search__input::placeholder { color: #98a2b3; }
.apc-search__input:focus {
	outline: none; background: #fff; border-color: var(--apc-primary);
	box-shadow: 0 0 0 3px rgba(15, 76, 129, .10);
}
.apc-search__btn {
	position: absolute; inset-inline-end: 4px; top: 50%;
	transform: translateY(-50%);
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; padding: 0;
	border: 0; border-radius: 999px;
	background: var(--apc-primary); color: #fff; cursor: pointer;
	transition: background .15s;
}
.apc-search__btn:hover { background: #0c3d68; }

/* ---------- Mobile controls ---------- */
.apc-burger, .apc-search-toggle {
	display: none;
	align-items: center; justify-content: center;
	width: 42px; height: 42px; padding: 0;
	background: none; border: 1px solid var(--apc-border);
	border-radius: 10px; color: var(--apc-text); cursor: pointer;
}
.apc-burger__bar {
	display: block; width: 18px; height: 2px; margin: 2px auto;
	background: currentColor; border-radius: 2px; transition: transform .2s, opacity .2s;
}
body.menu-open .apc-burger__bar:nth-child(2) { transform: translateY(4px) rotate(45deg); }
body.menu-open .apc-burger__bar:nth-child(3) { opacity: 0; }
body.menu-open .apc-burger__bar:nth-child(4) { transform: translateY(-4px) rotate(-45deg); }

/* ---------- Search results dropdown ---------- */
.apc-search__results {
	position: absolute; inset-inline: 0; top: calc(100% + 6px);
	background: var(--apc-surface); border: 1px solid var(--apc-border);
	border-radius: var(--apc-radius); box-shadow: var(--apc-shadow); z-index: 60;
	overflow: hidden;
}

.apc-search__item {
	display: grid;
	grid-template-columns: 40px 1fr;
	column-gap: 10px;
	row-gap: 2px;
	align-items: center;
	padding: 10px 14px; border-bottom: 1px solid var(--apc-border);
}
.apc-search__thumb {
	grid-row: 1 / span 3;
	width: 40px; height: 40px;
	object-fit: cover;
	border-radius: 6px;
	background: var(--apc-border);
}
.apc-search__item:last-child { border-bottom: 0; }
.apc-search__code { font-size: 12px; color: var(--apc-text-muted); }
.apc-search__price { font-size: 13px; color: var(--apc-primary); font-weight: 500; }
.apc-search__empty { padding: 12px 14px; font-size: 14px; color: var(--apc-text-muted); }

/* ---------- Breadcrumbs ---------- */
.apc-breadcrumbs {
	font-size: 13px; color: var(--apc-text-muted);
	margin-block: 14px;
}
.apc-breadcrumbs .sep { margin-inline: 6px; }
.apc-breadcrumbs .current { color: var(--apc-text); }

/* ---------- Archive layout ---------- */
.apc-archive__header { margin-block: 8px 20px; }
.apc-archive__title { font-size: 26px; color: var(--apc-primary); }
.apc-archive__desc { color: var(--apc-text-muted); margin-top: 6px; }

.apc-archive__layout {
	display: grid; grid-template-columns: 1fr; gap: 24px;
}
.apc-archive__sidebar {
	background: var(--apc-surface); border: 1px solid var(--apc-border);
	border-radius: var(--apc-radius); padding: 16px;
}
.apc-filter-group { margin-bottom: 16px; }
.apc-filter-group h3 { font-size: 14px; margin-bottom: 6px; }
.apc-filter-group input[type="search"],
.apc-filter-group input[type="number"],
.apc-filter-group select {
	width: 100%; padding: 9px 10px; border: 1px solid var(--apc-border);
	border-radius: 8px; font-family: inherit; font-size: 14px; background: #fff;
}
.apc-price-range { display: flex; gap: 8px; align-items: center; }
.apc-price-range input { flex: 1; }

/* ---------- Product card grid ---------- */
.apc-card-grid {
	display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px;
}
.apc-result-meta { font-size: 13px; color: var(--apc-text-muted); margin-bottom: 12px; }
.apc-empty { color: var(--apc-text-muted); padding: 24px; text-align: center; }

.product-card {
	background: var(--apc-surface); border: 1px solid var(--apc-border);
	border-radius: var(--apc-radius); overflow: hidden;
	display: flex; flex-direction: column; transition: box-shadow .15s;
}
.product-card:hover { box-shadow: var(--apc-shadow); }
.product-card__media { position: relative; aspect-ratio: 1/1; background: #f1f3f5; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; }
.product-card__stock {
	position: absolute; top: 8px; inset-inline-start: 8px;
	font-size: 11px; padding: 3px 8px; border-radius: 999px;
	background: #e6f4ea; color: #1e7e34;
}
.product-card__stock--pre_order { background: #fff4e0; color: #b26a00; }
.product-card__stock--unavailable { background: #fde8e8; color: #b42318; }
.product-card__body { padding: 12px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.product-card__code { font-size: 11px; color: var(--apc-text-muted); direction: ltr; text-align: start; }
.product-card__title { font-size: 14px; margin: 0; }
.product-card__brand { font-size: 12px; color: var(--apc-text-muted); }
.product-card__price { font-size: 15px; font-weight: 700; color: var(--apc-primary); margin-block-start: 4px; }
.product-card__cta { margin-block-start: 8px; }

/* ---------- Pagination ---------- */
.apc-pagination .page-numbers {
	display: inline-block; padding: 6px 12px; margin-inline: 3px;
	border: 1px solid var(--apc-border); border-radius: 8px; color: var(--apc-primary);
}
.apc-pagination .current { background: var(--apc-primary); color: #fff; border-color: var(--apc-primary); }

/* ---------- Single product ---------- */
.apc-product__layout { display: grid; grid-template-columns: 1fr; gap: 24px; }
.apc-gallery__main {
	background: #fff; border: 1px solid var(--apc-border); border-radius: var(--apc-radius);
	overflow: hidden; aspect-ratio: 1/1;
}
.apc-gallery__main img { width: 100%; height: 100%; object-fit: contain; }
.apc-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.apc-gallery__thumb {
	border: 1px solid var(--apc-border); border-radius: 8px; padding: 0;
	background: #fff; cursor: pointer; overflow: hidden;
}
.apc-gallery__thumb.is-active { border-color: var(--apc-primary); }
.apc-gallery__thumb img { width: 60px; height: 60px; object-fit: cover; }

.apc-product__code { font-size: 13px; color: var(--apc-text-muted); direction: ltr; text-align: start; display: inline-block; }
.apc-product__title { font-size: 22px; margin-block: 4px 10px; }
.apc-product__meta-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.apc-tag {
	font-size: 12px; padding: 3px 10px; border-radius: 999px;
	background: #eef2f7; color: var(--apc-primary);
}
.apc-tag--muted { background: #f1f3f5; color: var(--apc-text-muted); }

.apc-product__price-box { display: flex; align-items: center; gap: 12px; margin-block: 8px; }
.apc-product__price { font-size: 26px; font-weight: 700; color: var(--apc-primary); }
.apc-product__price--na { color: var(--apc-text-muted); font-size: 18px; }
.apc-product__stock { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: #e6f4ea; color: #1e7e34; }
.apc-product__stock--pre_order { background: #fff4e0; color: #b26a00; }
.apc-product__stock--unavailable { background: #fde8e8; color: #b42318; }

.apc-price-notice { font-size: 12px; color: var(--apc-text-muted); margin: 4px 0; }
.apc-price-warning { font-size: 12px; color: #b26a00; margin: 4px 0 12px; }
.apc-product__oem, .apc-product__moq { font-size: 13px; color: var(--apc-text-muted); }

.apc-product__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 16px; }
.apc-product__share { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.apc-product__share a, .apc-product__share button {
	background: #f1f3f5; border: 0; border-radius: 6px; padding: 4px 10px;
	font-family: inherit; font-size: 12px; cursor: pointer; color: var(--apc-text);
}

/* ---------- Tabs ---------- */
.apc-product__tabs { margin-block: 28px; }
.apc-tabs__nav { display: flex; gap: 4px; border-bottom: 2px solid var(--apc-border); flex-wrap: wrap; }
.apc-tab__btn {
	background: none; border: 0; padding: 10px 14px; cursor: pointer;
	font-family: inherit; font-size: 14px; color: var(--apc-text-muted);
	border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.apc-tab__btn.is-active { color: var(--apc-primary); border-bottom-color: var(--apc-primary); font-weight: 500; }
.apc-tab__panel { display: none; padding-block: 16px; }
.apc-tab__panel.is-active { display: block; }

.apc-specs-table { width: 100%; border-collapse: collapse; }
.apc-specs-table th, .apc-specs-table td {
	padding: 10px 12px; border-bottom: 1px solid var(--apc-border); text-align: start; font-size: 14px;
}
.apc-specs-table th { color: var(--apc-text-muted); font-weight: 500; width: 40%; }
.apc-compat-list { margin: 0; padding-inline-start: 20px; }

/* ---------- Related ---------- */
.apc-related { margin-block: 32px; }
.apc-related__title { font-size: 18px; margin-bottom: 14px; }

/* ---------- Modal (no-JS :target opens it) ---------- */
.apc-modal {
	position: fixed; inset: 0; z-index: 100;
	align-items: center; justify-content: center; padding: 16px;
}
.apc-modal[hidden], .apc-modal[hidden]:target { display: none !important; }
.apc-modal:not([hidden]) { display: flex; } /* JS-opened path */
.apc-modal:target { display: flex; }       /* no-JS anchor path */
.apc-modal__backdrop { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); }
.apc-modal__dialog {
	position: relative; background: #fff; border-radius: var(--apc-radius);
	padding: 22px; width: 100%; max-width: 460px; max-height: 90vh; overflow-y: auto;
}
.apc-modal__close {
	position: absolute; top: 10px; inset-inline-end: 12px;
	background: none; border: 0; font-size: 24px; cursor: pointer; color: var(--apc-text-muted);
}
.apc-inquiry-form p { margin: 0 0 12px; }
.apc-inquiry-form label { display: block; font-size: 13px; margin-bottom: 4px; }
.apc-inquiry-form input, .apc-inquiry-form textarea {
	width: 100%; padding: 9px 10px; border: 1px solid var(--apc-border);
	border-radius: 8px; font-family: inherit; font-size: 14px;
}
.apc-form-status { font-size: 13px; }
.apc-form-status.is-success { color: #1e7e34; }
.apc-form-status.is-error { color: #b42318; }

/* ---------- Footer ---------- */
.site-footer {
	background: #0f2740; color: #cbd5e1; margin-block-start: 40px; padding-block: 32px;
}
.site-footer a { color: #fff; }
.site-footer__widgets { display: grid; grid-template-columns: 1fr; gap: 20px; }
.site-footer__bottom { margin-top: 24px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px; }

/* ---------- AJAX pager ---------- */
.apc-ajax-pager {
	display: flex; align-items: center; justify-content: center; gap: 12px;
	margin-block: 24px; flex-wrap: wrap;
}
.apc-ajax-pager[hidden] { display: none; }
.apc-pager__info { font-size: 13px; color: var(--apc-text-muted); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Honeypot (hidden from humans, visible to bots) ---------- */
.apc-hp {
	position: absolute !important;
	inset-inline-start: -9999px;
	width: 1px; height: 1px;
	overflow: hidden;
	opacity: 0;
	pointer-events: none;
}

/* ---------- Tabs: visible keyboard focus ---------- */
.apc-tab__btn:focus-visible,
.apc-gallery__thumb:focus-visible,
.apc-modal__close:focus-visible {
	outline: 3px solid var(--apc-accent);
	outline-offset: 2px;
}

/* ---------- Loading state ---------- */
.apc-card-grid.is-loading { opacity: .55; pointer-events: none; }

/* =========================================================================
   Breakpoints (mobile-first)
   ========================================================================= */
@media (min-width: 600px) {
	.apc-card-grid { grid-template-columns: repeat(3, 1fr); }
	.site-footer__widgets { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 900px) {
	.apc-archive__layout { grid-template-columns: 260px 1fr; }
	.apc-product__layout { grid-template-columns: 1fr 1fr; align-items: start; }
	.apc-card-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1200px) {
	.apc-card-grid { grid-template-columns: repeat(4, 1fr); }
	.apc-archive__layout { grid-template-columns: 280px 1fr; }
	.apc-product__title { font-size: 28px; }
	.site-footer__widgets { grid-template-columns: repeat(4, 1fr); }
}

/* =========================================================================
   HEADER — mobile drawer (<= 1023px)
   ========================================================================= */
@media (max-width: 1023px) {
	.apc-navbar__inner { flex-wrap: wrap; row-gap: 0; min-height: 60px; }
	.apc-burger { display: inline-flex; flex-direction: column; margin-inline-start: auto; }
	.apc-search-toggle { display: inline-flex; }

	.main-navigation { display: none; order: 5; flex: 1 0 100%; }
	/* the drawer is the scroll container: touch-drags scroll the menu itself
	   and never chain through to the page (previously the page scrolled first
	   and a long menu could extend past the viewport inside the sticky header) */
	body.menu-open .main-navigation {
		display: block;
		max-height: calc(100dvh - 130px);
		overflow-y: auto;
		overscroll-behavior: contain;
		-webkit-overflow-scrolling: touch;
	}

	.apc-navbar__search {
		display: none; order: 4; flex: 1 0 100%; width: 100%;
		padding-block: 0 10px;
	}
	body.search-open .apc-navbar__search { display: block; }

	.apc-nav__list {
		flex-direction: column; align-items: stretch; gap: 0;
		border-top: 1px solid var(--apc-border); padding-block: 4px;
	}
	.apc-nav__item {
		display: flex; flex-wrap: wrap; align-items: center;
		border-bottom: 1px solid var(--apc-border);
	}
	.apc-nav__item:last-child { border-bottom: 0; }
	.apc-nav__link { flex: 1 1 auto; min-width: 0; width: auto; padding: 13px 8px; border-radius: 0; }
	.apc-nav__chev { display: none; }
	/* let the label shrink+ellipsis so the toggle never wraps to its own row */
	.apc-nav__label {
		min-width: 0; overflow: hidden;
		text-overflow: ellipsis; white-space: nowrap;
	}

	.apc-nav__toggle {
		flex: 0 0 auto;
		display: inline-flex; align-items: center; justify-content: center;
		width: 44px; height: 44px; padding: 0;
		background: none; border: 0; color: var(--apc-text-muted);
		cursor: pointer; transition: transform .2s, color .2s;
	}
	.apc-nav__item.is-open > .apc-nav__toggle { transform: rotate(180deg); color: var(--apc-primary); }

	.apc-submenu {
		position: static; display: none; flex: 1 0 100%; width: 100%;
		max-height: none; overflow: visible; margin: 0;
		opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-radius: 0;
		background: #f8fafc; padding: 0 0 8px;
	}
	.apc-nav__item.is-open > .apc-submenu { display: block; }
	/* the desktop fly-out sets width:100% on submenu links — inside the
	   drawer that eats the whole row and pushes the toggle to the next
	   line, so reset it to let link + toggle share one row */
	.apc-submenu .apc-nav__link { width: auto; padding: 11px 16px; }
	.apc-submenu--l2 { padding-inline-start: 14px; }
	.apc-submenu--l2 .apc-nav__chev { display: none; }
}

@media (max-width: 599px) {
	/* Two contact items don't fit one line at phone widths — stack them. */
	.apc-topbar__inner { flex-direction: column; gap: 2px; padding-block: 8px; }
	.apc-topbar__sep, .apc-topbar__note { display: none; }
	.site-branding img { max-height: 38px; }
	.apc-nav__icon { width: 20px; height: 20px; }
}

@media (max-width: 782px) {
	body.admin-bar .site-header--sticky { top: 46px; }
}

/* =========================================================================
   HOMEPAGE — hero slider
   ========================================================================= */
.apc-slider {
	position: relative;
	isolation: isolate;
	background: linear-gradient(135deg, var(--apc-primary), #0b3a63);
	overflow: hidden;
}

.apc-slider__viewport {
	position: relative;
	height: var(--apc-slider-h, 460px);
}

.apc-slide {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	will-change: opacity, transform;
}

.apc-slide.is-active {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	z-index: 2;
}

.apc-slide.is-out {
	visibility: visible;
	z-index: 1;
}

.apc-slide__media {
	position: absolute;
	inset: 0;
	overflow: hidden;
}

.apc-slide__media img,
.apc-slide__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.apc-slide__media--gradient {
	background:
		radial-gradient(1200px 400px at 85% 20%, rgba(242,169,0,.35), transparent 60%),
		linear-gradient(135deg, #0f4c81, #08243d);
}

.apc-slide__shade {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(to left, rgba(4,18,32,.92) 0%, rgba(4,18,32,.72) 34%, rgba(4,18,32,.18) 68%, rgba(4,18,32,.35) 100%);
	opacity: calc(var(--apc-slide-overlay, .38) + .25);
}

.apc-slide__content {
	position: relative;
	z-index: 3;
	color: #fff;
	max-width: 620px;
	margin-inline-start: 0;
	margin-inline-end: auto;
	padding-block: 20px 68px;   /* keeps copy clear of the slide dots */
	text-align: start;
}

.apc-slide__title {
	font-size: clamp(22px, 3.2vw, 40px);
	line-height: 1.28;
	margin: 0 0 12px;
	color: #fff;
	text-shadow: 0 2px 14px rgba(0,0,0,.35);
}

.apc-slide__subtitle {
	font-size: clamp(14px, 1.5vw, 17px);
	line-height: 1.9;
	margin: 0 0 22px;
	color: rgba(255,255,255,.88);
	max-width: 46ch;
}

.apc-slide__actions {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
}

.btn--accent {
	background: var(--apc-accent);
	color: #1c1206;
	border-color: var(--apc-accent);
	font-weight: 700;
}
.btn--accent:hover { background: #ffbe22; color: #1c1206; }

.apc-slide__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 999px;
	background: rgba(255,255,255,.92);
	box-shadow: 0 6px 18px rgba(0,0,0,.24);
	overflow: hidden;
	flex: 0 0 auto;
	transition: transform .2s ease;
}
.apc-slide__icon:hover { transform: translateY(-2px) scale(1.04); }
.apc-slide__icon img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- transition effects ---------- */
.apc-slide { transition: opacity .75s ease; }

[data-effect="fade"] .apc-slide { transition: opacity .8s ease; }

[data-effect="slide"] .apc-slide {
	opacity: 1;
	transform: translateX(100%);
	transition: transform .7s cubic-bezier(.4,0,.2,1);
}
[data-effect="slide"] .apc-slide.is-active { transform: translateX(0); }
[data-effect="slide"] .apc-slide.is-out { transform: translateX(-100%); }
[data-effect="slide"][data-dir="prev"] .apc-slide { transform: translateX(-100%); }
[data-effect="slide"][data-dir="prev"] .apc-slide.is-active { transform: translateX(0); }
[data-effect="slide"][data-dir="prev"] .apc-slide.is-out { transform: translateX(100%); }

[data-effect="zoom"] .apc-slide {
	opacity: 0;
	transform: scale(1.12);
	transition: opacity .8s ease, transform 1.2s ease;
}
[data-effect="zoom"] .apc-slide.is-active { opacity: 1; transform: scale(1); }
[data-effect="zoom"] .apc-slide.is-out { opacity: 0; transform: scale(.94); }

[data-effect="flip"] .apc-slider__viewport { perspective: 1600px; }
[data-effect="flip"] .apc-slide {
	opacity: 1;
	transform: rotateY(90deg);
	transform-origin: center;
	backface-visibility: hidden;
	transition: transform .8s cubic-bezier(.4,0,.2,1), opacity .4s ease;
}
[data-effect="flip"] .apc-slide.is-active { transform: rotateY(0deg); opacity: 1; }
[data-effect="flip"] .apc-slide.is-out { transform: rotateY(-90deg); opacity: 0; }
[data-effect="flip"][data-dir="prev"] .apc-slide { transform: rotateY(-90deg); }
[data-effect="flip"][data-dir="prev"] .apc-slide.is-out { transform: rotateY(90deg); }

[data-effect="kenburns"] .apc-slide { transition: opacity 1s ease; }
[data-effect="kenburns"] .apc-slide.is-active .apc-slide__img,
[data-effect="kenburns"] .apc-slide.is-active .apc-slide__media--gradient {
	animation: apc-kenburns 12s ease-out both;
}
@keyframes apc-kenburns {
	from { transform: scale(1) translate3d(0,0,0); }
	to   { transform: scale(1.12) translate3d(-1.5%, -1.5%, 0); }
}

/* ---------- slide dots (bottom centre, above the search card) ---------- */
.apc-slider__dots {
	position: absolute;
	bottom: 52px;            /* clears the floating search card (-34px) */
	inset-inline: 0;
	z-index: 7;
	display: flex;
	gap: 10px;
	justify-content: center;
	align-items: center;
	padding-inline: 16px;
}

.apc-slider__dot {
	width: 10px;
	height: 10px;
	border-radius: 999px;
	border: 0;
	padding: 0;
	background: rgba(255, 255, 255, .5);
	box-shadow: 0 0 0 1px rgba(0, 0, 0, .18);
	cursor: pointer;
	transition: background .25s, transform .25s;
}

.apc-slider__dot:hover { background: rgba(255, 255, 255, .8); }

.apc-slider__dot.is-active {
	background: var(--apc-accent);
	box-shadow: 0 0 0 3px rgba(242, 169, 0, .28);
	transform: scale(1.15);
}

/* ---------- hero search card ---------- */
.apc-hero-search { position: relative; z-index: 6; margin-top: -34px; }
.apc-hero-search__inner {
	background: var(--apc-surface);
	border: 1px solid var(--apc-border);
	border-radius: 14px;
	box-shadow: 0 10px 30px rgba(15,76,129,.14);
	padding: 14px 16px;
}
.apc-hero-search .apc-search { max-width: none; }
.apc-hero-search .apc-search__input { padding: 13px 16px; font-size: 15px; }

/* =========================================================================
   HOMEPAGE — blocks
   ========================================================================= */
.apc-home { padding-bottom: 24px; }
.apc-home-section { padding-block: 34px; }
.apc-home__html { padding-block: 24px; }

.apc-section-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 18px;
}
.apc-section-head__title {
	font-size: clamp(17px, 2vw, 22px);
	margin: 0;
	display: flex;
	align-items: center;
	gap: 10px;
}
.apc-section-head__title::before {
	content: "";
	width: 4px;
	height: 20px;
	border-radius: 2px;
	background: var(--apc-accent);
	display: inline-block;
}
.apc-section-head__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 13px;
	font-weight: 600;
	color: var(--apc-primary);
	white-space: nowrap;
}

/* ---------- brand tiles ---------- */
.apc-brand-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.apc-brand-tile {
	position: relative;
	border-radius: 14px;
	overflow: hidden;
	background: #0d2b45;
	aspect-ratio: 4 / 3;
	isolation: isolate;
	box-shadow: var(--apc-shadow);
}

.apc-brand-tile__media {
	position: absolute;
	inset: 0;
	display: block;
	color: #fff;
	text-decoration: none;
}
.apc-brand-tile__media:hover { text-decoration: none; }

.apc-brand-tile__img,
.apc-brand-tile .apc-term-image-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform .55s cubic-bezier(.2,.7,.3,1);
	transform: scale(1.01);
}
.apc-brand-tile .apc-term-image-fallback {
	font-size: 40px;
	font-weight: 800;
	color: rgba(255,255,255,.35);
	background: linear-gradient(135deg, #12456f, #0a2338);
}

/* dark gradient for legibility */
.apc-brand-tile__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(4,18,32,.85), rgba(4,18,32,.06) 55%);
	transition: opacity .35s;
}

.apc-brand-tile__name {
	position: absolute;
	inset-inline: 12px;
	bottom: 10px;
	z-index: 2;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,.5);
	transition: transform .35s ease, opacity .3s ease;
}

/* the reveal panel */
.apc-brand-tile__panel {
	position: absolute;
	inset: 0;
	z-index: 4;
	background: linear-gradient(to top, rgba(8,31,51,.97), rgba(8,31,51,.88));
	color: #fff;
	opacity: 0;
	visibility: hidden;
	transform: translateY(14px);
	transition: opacity .32s ease, transform .32s ease, visibility .32s;
	padding: 14px;
	display: flex;
	align-items: flex-end;
	overflow: hidden;
}

.apc-brand-tile__panel-inner {
	width: 100%;
	max-height: 100%;
	overflow-y: auto;
	scrollbar-width: thin;
}

.apc-brand-tile__panel-title {
	display: block;
	font-size: 11px;
	letter-spacing: .04em;
	color: rgba(255,255,255,.6);
	margin-bottom: 6px;
}

.apc-brand-tile__models {
	list-style: none;
	margin: 0 0 10px;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 7px;
}
.apc-brand-tile__models li { margin: 0; min-width: 0; }
.apc-brand-tile__models a {
	display: inline-block;
	max-width: 100%;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(255,255,255,.14);
	border: 1px solid rgba(255,255,255,.26);
	font-size: 14px;
	line-height: 1.45;
	color: #fff;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.apc-brand-tile__models a:hover,
.apc-brand-tile__models a:focus-visible {
	background: var(--apc-accent);
	border-color: var(--apc-accent);
	color: #08243d;
	text-decoration: none;
}

.apc-brand-tile__hint { font-size: 12px; color: rgba(255,255,255,.75); margin: 0 0 8px; }

.apc-brand-tile__all {
	display: inline-block;
	font-size: 11.5px;
	font-weight: 700;
	color: #08243d;
	background: var(--apc-accent);
	padding: 4px 10px;
	border-radius: 999px;
	text-decoration: none;
}
.apc-brand-tile__all:hover { text-decoration: none; background: #ffc536; }

/* hover (pointer devices only) */
@media (hover: hover) and (pointer: fine) {
	.apc-brand-tile:hover .apc-brand-tile__panel {
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
	}
	.apc-brand-tile:hover .apc-brand-tile__img,
	.apc-brand-tile:hover .apc-term-image-fallback { transform: translateY(-10%) scale(1.06); }
	.apc-brand-tile:hover .apc-brand-tile__name { opacity: 0; transform: translateY(6px); }
	.apc-brand-tile:hover .apc-brand-tile__media::after { opacity: .2; }
}

/* touch: tap the chevron */
.apc-brand-tile.is-open .apc-brand-tile__panel {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

/* ---------- «انتخاب خودرو» page: 2 large brand tiles per row ---------- */
.apc-brand-grid--duo {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 18px;
}
.apc-brand-grid--duo .apc-brand-tile {
	aspect-ratio: 3 / 2;
	border-radius: 16px;
}
.apc-brand-grid--duo .apc-brand-tile__name {
	font-size: 22px;
	bottom: 16px;
}
.apc-brand-grid--duo .apc-brand-tile .apc-term-image-fallback {
	font-size: 56px;
}
@media (max-width: 991px) {
	.apc-brand-grid--duo { gap: 12px; }
	.apc-brand-grid--duo .apc-brand-tile { aspect-ratio: 4 / 3; }
	.apc-brand-grid--duo .apc-brand-tile__name { font-size: 17px; }
}
@media (max-width: 599px) {
	.apc-brand-grid--duo { grid-template-columns: 1fr; }
	.apc-brand-grid--duo .apc-brand-tile { aspect-ratio: 16 / 9; }
	.apc-brand-grid--duo .apc-brand-tile__models { grid-template-columns: 1fr; }
}

/* ---------- product rail ---------- */
.apc-rail__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding-bottom: 8px;
	scrollbar-width: thin;
	-webkit-overflow-scrolling: touch;
}
.apc-rail__item {
	flex: 0 0 auto;
	width: clamp(200px, 21vw, 250px);
	scroll-snap-align: start;
}
.apc-rail__track::-webkit-scrollbar { height: 6px; }
.apc-rail__track::-webkit-scrollbar-thumb { background: var(--apc-border); border-radius: 999px; }

.apc-rail__controls {
	display: flex;
	gap: 8px;
	justify-content: flex-end;
	margin-top: 6px;
}
.apc-rail__btn {
	width: 34px;
	height: 34px;
	border-radius: 999px;
	border: 1px solid var(--apc-border);
	background: var(--apc-surface);
	color: var(--apc-primary);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .2s, color .2s;
}
.apc-rail__btn:hover:not(:disabled) { background: var(--apc-primary); color: #fff; }
.apc-rail__btn:disabled { opacity: .4; cursor: default; }

/* ---------- category tiles (same look as brand tiles) ---------- */
.apc-cat-grid {
	display: grid;
	grid-template-columns: repeat(var(--apc-cat-cols, 4), minmax(0, 1fr));
	gap: 14px;
}
.apc-cat-chip {
	position: relative;
	display: block;
	aspect-ratio: 4 / 3;
	border-radius: 14px;
	overflow: hidden;
	background: #0d2b45;
	isolation: isolate;
	text-decoration: none;
	color: #fff;
}
.apc-cat-chip:hover { text-decoration: none; }
.apc-cat-chip__img,
.apc-cat-chip .apc-term-image-fallback {
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.apc-cat-chip .apc-term-image-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 40px;
	font-weight: 800;
	color: #fff;
}
/* dark gradient for legibility */
.apc-cat-chip::after {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(to top, rgba(4,18,32,.85), rgba(4,18,32,.06) 55%);
}
.apc-cat-chip__name {
	position: absolute;
	inset-inline: 12px;
	bottom: 10px;
	z-index: 2;
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	text-shadow: 0 2px 8px rgba(0,0,0,.5);
}

/* ---------- homepage responsive ---------- */
@media (max-width: 1023px) {
	.apc-brand-grid { grid-template-columns: repeat(3, 1fr); }
	.apc-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.apc-slider__viewport { height: min(58vw, 420px); }
}

@media (max-width: 767px) {
	.apc-brand-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.apc-brand-tile { aspect-ratio: 1 / 1; }
	.apc-hero-search { margin-top: -18px; }
	.apc-slider__dots { bottom: 34px; gap: 8px; }
	.apc-slide__content { max-width: 100%; padding-block: 14px 54px; }
	.apc-slider__viewport { height: 62vw; min-height: 260px; }
	.apc-home-section { padding-block: 26px; }

	/* Model tags on phones: the sheet may cover most of the tile and the
	   pills shrink so a full brand list fits without scrolling. */
	.apc-brand-tile__panel {
		inset: auto 0 0 0;
		max-height: 92%;
		padding: 26px 8px 8px;
		background: linear-gradient(to top, rgba(6, 24, 40, .97) 62%, rgba(6, 24, 40, .72) 86%, rgba(6, 24, 40, 0));
		transform: translateY(10px);
	}
	.apc-brand-tile__panel-inner {
		overflow-y: auto;
		max-height: 100%;
	}
	.apc-brand-tile__panel-title {
		font-size: 10px;
		margin-bottom: 4px;
		color: rgba(255, 255, 255, .68);
	}
	.apc-brand-tile__models {
		gap: 4px;
		margin: 0 0 6px;
	}
	.apc-brand-tile__models a {
		padding: 2px 7px;
		border-radius: 999px;
		background: rgba(255, 255, 255, .15);
		border: 1px solid rgba(255, 255, 255, .24);
		font-size: 10.5px;
		line-height: 1.5;
	}
	.apc-brand-tile__models a:active {
		background: var(--apc-accent);
		border-color: var(--apc-accent);
		color: #08243d;
	}
	/* keep the name clear of the chip strip while open */
	.apc-brand-tile.is-open .apc-brand-tile__name { opacity: 0; }
	.apc-brand-tile__hint { font-size: 10.5px; margin-bottom: 6px; }
	.apc-brand-tile__all { font-size: 10.5px; padding: 3px 9px; }
}

/* «انتخاب خودرو» page: restore 1-column wide tiles on phones.
   (Must outrank the later .apc-brand-grid <=767px rule above.) */
@media (max-width: 599px) {
	.apc-brand-grid.apc-brand-grid--duo { grid-template-columns: 1fr; }
}

@media (max-width: 479px) {
	.apc-cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.apc-slide__subtitle { display: none; }
}

/* =========================================================================
   FOOTER
   ========================================================================= */
.site-footer {
	background: #0b2237;
	color: #c3d0dd;
	margin-block-start: 48px;
	padding-block: 40px 0;
	border-top: 3px solid var(--apc-accent);
}
.site-footer a { color: #e8eef5; text-decoration: none; }
.site-footer a:hover { color: var(--apc-accent); text-decoration: none; }

.site-footer__widgets { margin-bottom: 28px; }

.site-footer__grid {
	display: grid;
	grid-template-columns: 1.5fr 1fr 1fr;
	gap: 32px;
	align-items: start;
}

.site-footer__col { min-width: 0; }

.site-footer__title {
	font-size: 15px;
	font-weight: 700;
	color: #fff;
	margin: 0 0 16px;
	position: relative;
	padding-bottom: 10px;
}
.site-footer__title::after {
	content: "";
	position: absolute;
	bottom: 0;
	inset-inline-start: 0;
	width: 32px;
	height: 3px;
	border-radius: 2px;
	background: var(--apc-accent);
}

/* brand column */
.site-footer__brand {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 12px;
}
.site-footer__logo img { max-height: 44px; width: auto; display: block; }
.site-footer__about {
	font-size: 13px;
	line-height: 2;
	color: #a9bacb;
	margin: 0 0 18px;
	max-width: 42ch;
}

/* socials */
.site-footer__social-title {
	display: block;
	font-size: 12.5px;
	color: #93a7bb;
	margin-bottom: 8px;
}
.apc-socials {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.apc-socials__link {
	width: 36px;
	height: 36px;
	border-radius: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: rgba(255,255,255,.07);
	color: #dbe6f0;
	transition: background .2s, color .2s, transform .2s;
}
.apc-socials__link:hover {
	background: var(--apc-accent);
	color: #13202c;
	transform: translateY(-2px);
}

/* contact list */
.apc-footer-list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 12px;
	font-size: 13px;
	line-height: 1.9;
}
.apc-footer-list li {
	display: flex;
	align-items: flex-start;
	gap: 9px;
}
.apc-footer-list__icon {
	flex: 0 0 auto;
	width: 26px;
	height: 26px;
	border-radius: 8px;
	background: rgba(255,255,255,.06);
	color: var(--apc-accent);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: 2px;
}
.apc-footer-list__text { color: #c3d0dd; word-break: break-word; }
a.apc-footer-list__text:hover { color: var(--apc-accent); }

/* useful links */
.apc-footer-links {
	list-style: none;
	margin: 0;
	padding: 0;
	columns: 1;
	font-size: 13px;
}
.apc-footer-links__item { margin-bottom: 9px; }
.apc-footer-links__item a {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #c3d0dd;
}
.apc-footer-links__item a::before {
	content: "";
	width: 5px;
	height: 5px;
	border-radius: 999px;
	background: rgba(242,169,0,.7);
	flex: 0 0 auto;
	transition: background .2s;
}
.apc-footer-links__item a:hover::before { background: var(--apc-accent); }
.apc-footer-links__item--d2 { padding-inline-start: 14px; }
.apc-footer-links__item--d2 a { color: #9fb2c5; font-size: 12.5px; }

/* bottom bar */
.site-footer__bottom {
	margin-top: 34px;
	padding-block: 16px;
	background: #071a2a;
	border-top: 1px solid rgba(255,255,255,.08);
	font-size: 12.5px;
}
.site-footer__bottom-inner { text-align: center; }
.site-footer__copy { margin: 0; color: #9fb2c5; line-height: 1.9; }
.site-footer__copy strong { color: #fff; }

/* ---------- Visitor counter ---------- */
.apc-vc { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.apc-vc__item { white-space: nowrap; }
.apc-vc__item b { font-weight: 700; font-variant-numeric: tabular-nums; }
.apc-vc__sep { opacity: .5; }
.site-footer__visitors { margin: 6px 0 0; color: #9fb2c5; line-height: 1.9; }
.site-footer__visitors .apc-vc { justify-content: center; }
.site-footer__visitors b { color: #fff; }

.apc-vc-table { margin-block: 18px; overflow-x: auto; }
.apc-vc-table__loading { color: var(--apc-text-muted); font-size: 13px; margin: 0; }
.apc-vc-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.apc-vc-tbl th,
.apc-vc-tbl td { padding: 9px 10px; border-bottom: 1px solid var(--apc-border); text-align: start; }
.apc-vc-tbl thead th { font-weight: 700; background: #f3f5f8; }
.apc-vc-tbl tbody tr:hover { background: #fafbfc; }
.apc-vc-tbl__bar {
	display: inline-block; height: 6px; width: var(--w, 0%); max-width: 70px; min-width: 2px;
	background: var(--apc-primary); border-radius: 3px; margin-inline-end: 8px; vertical-align: middle;
}

@media (max-width: 1023px) {
	.site-footer__grid { grid-template-columns: 1fr 1fr; gap: 26px; }
	.site-footer__col--brand { grid-column: 1 / -1; }
}

@media (max-width: 639px) {
	.site-footer { padding-top: 28px; }
	.site-footer__grid { grid-template-columns: 1fr; gap: 24px; }
	.site-footer__about { max-width: none; }
	.apc-footer-links { columns: 2; column-gap: 16px; }
	.apc-footer-links__item { break-inside: avoid; }
}

/* ---------- FAQ page: accordion with scroll-open answer ---------- */
.apc-faq {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-block: 24px 48px;
}
.apc-faq__item {
	background: var(--apc-surface);
	border: 1px solid var(--apc-border);
	border-radius: 14px;
	overflow: hidden;
	transition: box-shadow .25s ease, border-color .25s ease;
}
.apc-faq__item.is-open {
	border-color: #c9d6e4;
	box-shadow: var(--apc-shadow);
}
.apc-faq__q { margin: 0; }
.apc-faq__btn {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	padding: 16px 20px;
	background: none;
	border: 0;
	cursor: pointer;
	text-align: start;
	font: inherit;
	font-size: 15.5px;
	font-weight: 700;
	color: var(--apc-text);
	line-height: 1.7;
}
.apc-faq__btn:hover { background: rgba(0,0,0,.02); }
.apc-faq__btn:focus-visible { outline: 2px solid var(--apc-primary); outline-offset: -2px; }
.apc-faq__chev {
	flex: 0 0 auto;
	color: var(--apc-primary);
	transition: transform .3s ease;
}
.apc-faq__item.is-open .apc-faq__chev { transform: rotate(180deg); }

/* scroll-open: grid rows 0fr -> 1fr gives a smooth height animation */
.apc-faq__answer {
	display: grid;
	grid-template-rows: 0fr;
	transition: grid-template-rows .35s ease;
}
.apc-faq__item.is-open .apc-faq__answer { grid-template-rows: 1fr; }
.apc-faq__answer-inner { overflow: hidden; min-height: 0; }
.apc-faq__text {
	margin: 0;
	padding: 0 20px 18px;
	/* small extra space on the start (right in RTL) side of the answer */
	padding-inline-start: 30px;
	font-size: 14.5px;
	color: var(--apc-text-muted);
	line-height: 1.9;
}
.apc-faq__text p { margin: 0; }
@media (max-width: 599px) {
	.apc-faq__btn { padding: 14px 16px; font-size: 14.5px; }
	.apc-faq__text { padding: 0 16px 16px; padding-inline-start: 26px; }
}
