/* ==========================================================================
   AutoParts — stiluri de bază
   1. Tokens        2. Reset       3. Tipografie   4. Layout
   5. Butoane       6. Formulare   7. Topbar/Header 8. Meniu mobil
   9. Hero          10. Secțiuni   11. Blog        12. Widget-uri
   13. Footer       14. 404        15. Utilitare
   ========================================================================== */

/* 1. Tokens ---------------------------------------------------------------- */
:root {
	--ap-accent: #ff0505;
	--ap-accent-rgb: 255, 5, 5;
	--ap-accent-dark: #d10404;

	--ap-ink: #12131a;
	--ap-ink-soft: #4a4f5c;
	--ap-ink-muted: #7b818f;

	--ap-bg: #ffffff;
	--ap-bg-alt: #f4f5f8;
	--ap-bg-dark: #0e0f14;
	--ap-bg-dark-2: #16181f;

	--ap-line: #e3e5ea;
	--ap-line-strong: #cfd3db;

	--ap-success: #128a4a;
	--ap-warning: #b26a00;

	--ap-radius: 10px;
	--ap-radius-lg: 16px;
	--ap-shadow: 0 1px 2px rgba(16, 18, 26, .06), 0 4px 14px rgba(16, 18, 26, .06);
	--ap-shadow-lg: 0 12px 40px rgba(16, 18, 26, .14);

	--ap-container: 1240px;
	--ap-gap: 24px;

	--ap-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* 2. Reset ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

body {
	margin: 0;
	font-family: var(--ap-font);
	font-size: 16px;
	line-height: 1.6;
	color: var(--ap-ink);
	background: var(--ap-bg);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; }
img { display: block; }

a { color: var(--ap-accent); text-decoration: none; }
a:hover { color: var(--ap-accent-dark); }

ul, ol { padding-left: 1.2em; }

/* 3. Tipografie ------------------------------------------------------------ */
h1, h2, h3, h4, h5, h6 {
	margin: 0 0 .5em;
	line-height: 1.2;
	font-weight: 700;
	color: var(--ap-ink);
	letter-spacing: -.01em;
}
h1 { font-size: clamp(1.75rem, 1.3rem + 2vw, 2.75rem); }
h2 { font-size: clamp(1.4rem, 1.1rem + 1.3vw, 2rem); }
h3 { font-size: 1.15rem; }

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

/* 4. Layout ---------------------------------------------------------------- */
.ap-site { display: flex; flex-direction: column; min-height: 100vh; }
.ap-site > footer { margin-top: auto; }

.ap-container {
	width: 100%;
	max-width: var(--ap-container);
	margin: 0 auto;
	padding: 0 20px;
}

.ap-layout {
	display: grid;
	grid-template-columns: 1fr;
	gap: 40px;
	padding: 40px 20px 64px;
}
.ap-layout--sidebar { grid-template-columns: minmax(0, 1fr) 300px; }

.ap-page--fullwidth .ap-layout { max-width: none; padding-left: 0; padding-right: 0; }
.ap-page--fullwidth .ap-layout__main > .ap-entry > .ap-entry-content { max-width: none; }

.ap-section { padding: 56px 0; }
.ap-section:nth-of-type(even) { background: var(--ap-bg-alt); }

.ap-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 28px;
}
.ap-section__title { margin: 0; }
.ap-section__sub { color: var(--ap-ink-soft); margin: 0; }
.ap-section__link {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-weight: 600;
	font-size: .95rem;
}
.ap-section__link .ap-icon { width: 16px; height: 16px; }

.ap-page-header {
	background: var(--ap-bg-alt);
	border-bottom: 1px solid var(--ap-line);
	padding: 28px 0;
}
.ap-page-header__title { margin: 6px 0 0; }
.ap-page-header__desc { color: var(--ap-ink-soft); margin-top: 8px; }

.ap-breadcrumb {
	font-size: .85rem;
	color: var(--ap-ink-muted);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
}
.ap-breadcrumb a { color: var(--ap-ink-soft); }
.ap-breadcrumb a:hover { color: var(--ap-accent); }
.ap-breadcrumb__sep { color: var(--ap-line-strong); }

/* 5. Butoane --------------------------------------------------------------- */
.ap-btn,
button, input[type="submit"], input[type="button"] {
	font-family: inherit;
	font-size: 1rem;
}

.ap-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 12px 22px;
	border: 1px solid transparent;
	border-radius: var(--ap-radius);
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.ap-btn:active { transform: translateY(1px); }

.ap-btn--primary {
	background: var(--ap-accent);
	color: #fff;
}
.ap-btn--primary:hover { background: var(--ap-accent-dark); color: #fff; }

.ap-btn--ghost {
	background: transparent;
	border-color: var(--ap-line-strong);
	color: var(--ap-ink);
}
.ap-btn--ghost:hover { border-color: var(--ap-ink); color: var(--ap-ink); }

.ap-btn--dark { background: var(--ap-bg-dark); color: #fff; }
.ap-btn--dark:hover { background: #000; color: #fff; }

/* 6. Formulare ------------------------------------------------------------- */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
textarea, select {
	width: 100%;
	padding: 11px 14px;
	font-family: inherit;
	font-size: 1rem;
	color: var(--ap-ink);
	background: #fff;
	border: 1px solid var(--ap-line-strong);
	border-radius: var(--ap-radius);
	transition: border-color .15s ease, box-shadow .15s ease;
}
input:focus, textarea:focus, select:focus {
	outline: none;
	border-color: var(--ap-accent);
	box-shadow: 0 0 0 3px rgba(var(--ap-accent-rgb), .15);
}

/* Căutare după cod piesă */
.ap-code-search {
	position: relative;
	display: flex;
	align-items: center;
	background: #fff;
	border: 1px solid var(--ap-line-strong);
	border-radius: var(--ap-radius);
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease;
}
.ap-code-search:focus-within {
	border-color: var(--ap-accent);
	box-shadow: 0 0 0 3px rgba(var(--ap-accent-rgb), .15);
}
.ap-code-search__icon {
	display: flex;
	padding-left: 14px;
	color: var(--ap-ink-muted);
}
.ap-code-search__icon .ap-icon { width: 18px; height: 18px; }
.ap-code-search__input {
	flex: 1 1 auto;
	min-width: 0;
	border: 0;
	border-radius: 0;
	padding: 11px 12px;
	background: transparent;
}
.ap-code-search__input:focus { box-shadow: none; }
.ap-code-search__input::-webkit-search-cancel-button { cursor: pointer; }
.ap-code-search__submit {
	flex: 0 0 auto;
	border: 0;
	background: var(--ap-accent);
	color: #fff;
	font-weight: 600;
	padding: 12px 20px;
	cursor: pointer;
	transition: background-color .15s ease;
}
.ap-code-search__submit:hover { background: var(--ap-accent-dark); }

.ap-code-search--large { border-radius: var(--ap-radius-lg); }
.ap-code-search--large .ap-code-search__input { padding: 16px 12px; font-size: 1.05rem; }
.ap-code-search--large .ap-code-search__submit { padding: 17px 28px; }

.ap-searchform { display: flex; gap: 8px; }
.ap-searchform__submit {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 46px;
	border: 0;
	border-radius: var(--ap-radius);
	background: var(--ap-bg-dark);
	color: #fff;
	cursor: pointer;
}

/* 7. Topbar + Header ------------------------------------------------------- */
.ap-topbar {
	background: var(--ap-bg-dark);
	color: #c9ccd4;
	font-size: .82rem;
}
.ap-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	min-height: 38px;
}
.ap-topbar__promo { margin: 0; }
.ap-topbar__menu {
	display: flex;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ap-topbar__menu a { color: #c9ccd4; }
.ap-topbar__menu a:hover { color: #fff; }

.ap-header {
	position: sticky;
	top: 0;
	z-index: 60;
	background: #fff;
	border-bottom: 1px solid var(--ap-line);
	transition: box-shadow .2s ease;
}
.ap-header.is-scrolled { box-shadow: var(--ap-shadow); }

.ap-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: 76px;
	padding-top: 10px;
	padding-bottom: 10px;
}

.ap-header__burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	background: #fff;
	color: var(--ap-ink);
	cursor: pointer;
}

.ap-header__brand { flex: 0 0 auto; }
.ap-header__brand img { max-height: 48px; width: auto; }
.ap-header__logo-text {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1.25rem;
	font-weight: 800;
	letter-spacing: -.02em;
	color: var(--ap-ink);
	text-transform: uppercase;
}
.ap-header__logo-text .ap-icon { width: 28px; height: 28px; color: var(--ap-accent); }

.ap-header__search { flex: 1 1 auto; max-width: 560px; }

.ap-header__actions {
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-left: auto;
}

.ap-header__phone,
.ap-header__account,
.ap-header__cart {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 8px 12px;
	border-radius: var(--ap-radius);
	color: var(--ap-ink);
	line-height: 1.2;
	transition: background-color .15s ease;
}
.ap-header__phone:hover,
.ap-header__account:hover,
.ap-header__cart:hover { background: var(--ap-bg-alt); color: var(--ap-ink); }

.ap-header__phone .ap-icon,
.ap-header__account .ap-icon,
.ap-header__cart .ap-icon { width: 22px; height: 22px; color: var(--ap-accent); }

.ap-header__phone-meta { display: flex; flex-direction: column; }
.ap-header__phone-meta strong { font-size: .95rem; }
.ap-header__phone-meta small { font-size: .72rem; color: var(--ap-ink-muted); }

.ap-header__account-label { font-size: .9rem; font-weight: 600; }

.ap-header__cart { position: relative; }
.ap-header__cart-meta { display: flex; flex-direction: column; }
.ap-header__cart-label { font-size: .72rem; color: var(--ap-ink-muted); }
.ap-header__cart-total { font-size: .92rem; font-weight: 700; }
.ap-header__cart-total .amount { color: var(--ap-ink); }
.ap-header__cart-count {
	position: absolute;
	top: 2px;
	left: 26px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	border-radius: 999px;
	background: var(--ap-accent);
	color: #fff;
	font-size: .7rem;
	font-weight: 700;
	line-height: 19px;
	text-align: center;
}

/* Meniu principal */
.ap-nav { border-top: 1px solid var(--ap-line); background: #fff; }
.ap-nav__menu {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	list-style: none;
	margin: 0;
	padding: 0;
}
.ap-nav__menu li { position: relative; }
.ap-nav__menu > li > a {
	display: block;
	padding: 13px 14px;
	font-size: .93rem;
	font-weight: 600;
	color: var(--ap-ink);
	border-bottom: 2px solid transparent;
}
.ap-nav__menu > li > a:hover,
.ap-nav__menu > li.current-menu-item > a {
	color: var(--ap-accent);
	border-bottom-color: var(--ap-accent);
}
.ap-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 230px;
	margin: 0;
	padding: 6px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.ap-nav__menu li:hover > .sub-menu,
.ap-nav__menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.ap-nav__menu .sub-menu a {
	display: block;
	padding: 9px 12px;
	border-radius: 6px;
	font-size: .9rem;
	color: var(--ap-ink);
}
.ap-nav__menu .sub-menu a:hover { background: var(--ap-bg-alt); color: var(--ap-accent); }
.ap-nav__menu .sub-menu .sub-menu { top: 0; left: 100%; }

/* 8. Meniu mobil ----------------------------------------------------------- */
.ap-mobile-nav {
	position: fixed;
	top: 0;
	left: 0;
	z-index: 100;
	width: min(88vw, 340px);
	height: 100%;
	padding: 16px;
	background: #fff;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	transform: translateX(-100%);
	transition: transform .25s ease;
}
body.ap-drawer-open .ap-mobile-nav { transform: translateX(0); }
body.ap-drawer-open { overflow: hidden; }

.ap-mobile-nav__overlay {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba(10, 11, 15, .5);
	opacity: 0;
	transition: opacity .25s ease;
}
body.ap-drawer-open .ap-mobile-nav__overlay { opacity: 1; }

.ap-mobile-nav__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding-bottom: 14px;
	margin-bottom: 14px;
	border-bottom: 1px solid var(--ap-line);
}
.ap-mobile-nav__title { font-weight: 800; text-transform: uppercase; }
.ap-mobile-nav__close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border: 0;
	border-radius: var(--ap-radius);
	background: var(--ap-bg-alt);
	color: var(--ap-ink);
	cursor: pointer;
}
.ap-mobile-nav__search { margin-bottom: 16px; }

.ap-mobile-nav__menu {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
}
.ap-mobile-nav__menu li { position: relative; border-bottom: 1px solid var(--ap-line); }
.ap-mobile-nav__menu a {
	display: block;
	padding: 13px 44px 13px 4px;
	font-weight: 600;
	color: var(--ap-ink);
}
.ap-mobile-nav__toggle {
	position: absolute;
	top: 4px;
	right: 0;
	width: 40px;
	height: 40px;
	border: 0;
	background: transparent;
	color: var(--ap-ink-soft);
	font-size: 1.3rem;
	line-height: 1;
	cursor: pointer;
}
.ap-mobile-nav__menu .sub-menu {
	display: none;
	list-style: none;
	margin: 0;
	padding: 0 0 6px 14px;
}
.ap-mobile-nav__menu li.is-open > .sub-menu { display: block; }
.ap-mobile-nav__menu .sub-menu li { border-bottom: 0; }
.ap-mobile-nav__menu .sub-menu a { padding: 9px 4px; font-weight: 500; font-size: .93rem; }

.ap-mobile-nav__phone {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-weight: 700;
	color: var(--ap-ink);
}
.ap-mobile-nav__phone .ap-icon { color: var(--ap-accent); }

/* 9. Hero ------------------------------------------------------------------ */
.ap-hero {
	position: relative;
	color: #fff;
	background: var(--ap-bg-dark);
	overflow: hidden;
}
.ap-hero__bg {
	position: absolute;
	inset: 0;
	background:
		radial-gradient(120% 90% at 12% 0%, rgba(var(--ap-accent-rgb), .55) 0%, rgba(var(--ap-accent-rgb), 0) 55%),
		linear-gradient(135deg, var(--ap-accent) -20%, #1a0405 42%, var(--ap-bg-dark) 100%);
}
.ap-hero__bg::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 22px);
	opacity: .7;
}
.ap-hero__inner {
	position: relative;
	padding: 56px 20px 48px;
	text-align: center;
}

.ap-hero__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin: 0 0 14px;
	padding: 6px 14px;
	border: 1px solid rgba(255, 255, 255, .2);
	border-radius: 999px;
	background: rgba(255, 255, 255, .08);
	font-size: .82rem;
	font-weight: 600;
	letter-spacing: .01em;
}
.ap-hero__eyebrow .ap-icon { width: 15px; height: 15px; color: #fff; }

.ap-hero__title { color: #fff; margin: 0 0 12px; }
.ap-hero__subtitle {
	max-width: 660px;
	margin: 0 auto 28px;
	color: rgba(255, 255, 255, .78);
	font-size: 1.05rem;
}

.ap-hero__panel {
	max-width: 980px;
	margin: 0 auto;
	padding: 20px;
	background: rgba(255, 255, 255, .96);
	border-radius: var(--ap-radius-lg);
	box-shadow: var(--ap-shadow-lg);
	color: var(--ap-ink);
	text-align: left;
}

.ap-hero__fallback { text-align: center; }
.ap-hero__fallback-title { font-weight: 700; margin-bottom: 12px; }
.ap-hero__fallback-note {
	margin: 12px 0 0;
	font-size: .85rem;
	color: var(--ap-ink-muted);
}

.ap-hero__trust {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 10px 26px;
	list-style: none;
	margin: 26px 0 0;
	padding: 0;
	font-size: .88rem;
	color: rgba(255, 255, 255, .82);
}
.ap-hero__trust li { display: inline-flex; align-items: center; gap: 7px; }
.ap-hero__trust .ap-icon { width: 18px; height: 18px; color: #fff; }

/* 10. Secțiuni homepage ---------------------------------------------------- */
.ap-features__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
	gap: var(--ap-gap);
}
.ap-feature {
	display: flex;
	gap: 14px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
}
.ap-feature__icon {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: var(--ap-radius);
	background: rgba(var(--ap-accent-rgb), .1);
	color: var(--ap-accent);
}
.ap-feature__title { margin: 0 0 4px; font-size: 1rem; }
.ap-feature__text { margin: 0; font-size: .89rem; color: var(--ap-ink-soft); }

.ap-cats__grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
	gap: 16px;
}
.ap-cat-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 20px 14px;
	text-align: center;
	background: #fff;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	color: var(--ap-ink);
	transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ap-cat-card:hover {
	border-color: var(--ap-accent);
	transform: translateY(-2px);
	box-shadow: var(--ap-shadow);
	color: var(--ap-ink);
}
.ap-cat-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
}
.ap-cat-card__media img { max-height: 72px; width: auto; object-fit: contain; }
.ap-cat-card__fallback { width: 38px; height: 38px; color: var(--ap-ink-muted); }
.ap-cat-card__name { font-weight: 600; font-size: .95rem; line-height: 1.3; }
.ap-cat-card__count { font-size: .78rem; color: var(--ap-ink-muted); }

.ap-brands__inner { background: #fff; border-radius: var(--ap-radius-lg); }

/* 11. Blog ----------------------------------------------------------------- */
.ap-post-card {
	display: grid;
	grid-template-columns: 260px minmax(0, 1fr);
	gap: 22px;
	padding-bottom: 28px;
	margin-bottom: 28px;
	border-bottom: 1px solid var(--ap-line);
}
.ap-post-card:last-of-type { border-bottom: 0; }
.ap-post-card__thumb img { border-radius: var(--ap-radius); width: 100%; object-fit: cover; }
.ap-post-card__meta { font-size: .82rem; color: var(--ap-ink-muted); margin-bottom: 6px; }
.ap-post-card__title { font-size: 1.35rem; margin: 0 0 8px; }
.ap-post-card__title a { color: var(--ap-ink); }
.ap-post-card__title a:hover { color: var(--ap-accent); }
.ap-post-card__excerpt { color: var(--ap-ink-soft); font-size: .95rem; }
.ap-post-card__more { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: .9rem; }
.ap-post-card__more .ap-icon { width: 15px; height: 15px; }

.ap-entry__meta {
	display: flex;
	gap: 14px;
	font-size: .85rem;
	color: var(--ap-ink-muted);
	margin-bottom: 16px;
}
.ap-entry__thumb { margin-bottom: 24px; }
.ap-entry__thumb img { border-radius: var(--ap-radius-lg); width: 100%; }
.ap-entry__footer {
	margin-top: 28px;
	padding-top: 16px;
	border-top: 1px solid var(--ap-line);
	font-size: .88rem;
	color: var(--ap-ink-muted);
}

.ap-entry-content { max-width: 760px; }
.ap-page--fullwidth .ap-entry-content { max-width: none; }
.ap-entry-content img { border-radius: var(--ap-radius); }
.ap-entry-content blockquote {
	margin: 24px 0;
	padding: 4px 0 4px 20px;
	border-left: 3px solid var(--ap-accent);
	color: var(--ap-ink-soft);
	font-style: italic;
}
.ap-entry-content table { width: 100%; border-collapse: collapse; }
.ap-entry-content th, .ap-entry-content td {
	padding: 10px 12px;
	border: 1px solid var(--ap-line);
	text-align: left;
}
.ap-entry-content th { background: var(--ap-bg-alt); }

.ap-no-results { padding: 20px 0 40px; max-width: 620px; }
.ap-no-results__title { margin-bottom: 8px; }

.pagination, .woocommerce-pagination, .comments-pagination {
	margin-top: 36px;
}
.pagination .nav-links,
.woocommerce-pagination ul,
.comments-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: 0;
}
.pagination .page-numbers,
.woocommerce-pagination .page-numbers li,
.comments-pagination .page-numbers {
	border: 0;
}
.page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 12px;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	color: var(--ap-ink);
	font-weight: 600;
	background: #fff;
}
.page-numbers:hover { border-color: var(--ap-accent); color: var(--ap-accent); }
.page-numbers.current {
	background: var(--ap-accent);
	border-color: var(--ap-accent);
	color: #fff;
}

.post-navigation { margin-top: 36px; }
.post-navigation .nav-links {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}
.post-navigation a {
	display: block;
	padding: 16px;
	border: 1px solid var(--ap-line);
	border-radius: var(--ap-radius);
	color: var(--ap-ink);
	font-weight: 600;
}
.post-navigation a span {
	display: block;
	font-size: .78rem;
	font-weight: 500;
	color: var(--ap-ink-muted);
	margin-bottom: 4px;
}
.post-navigation a:hover { border-color: var(--ap-accent); }

.ap-comments { margin-top: 48px; }
.ap-comments__list { list-style: none; padding: 0; margin: 0 0 32px; }
.ap-comments__list .comment-body {
	padding: 16px 0;
	border-bottom: 1px solid var(--ap-line);
}
.ap-comments__list .children { list-style: none; padding-left: 28px; }

/* 12. Widget-uri ----------------------------------------------------------- */
.widget { margin-bottom: 32px; }
.widget:last-child { margin-bottom: 0; }
.widget-title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: .04em;
	margin-bottom: 14px;
	padding-bottom: 10px;
	border-bottom: 2px solid var(--ap-line);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget ul li {
	padding: 7px 0;
	border-bottom: 1px solid var(--ap-line);
	font-size: .93rem;
}
.widget ul li:last-child { border-bottom: 0; }
.widget ul li a { color: var(--ap-ink); }
.widget ul li a:hover { color: var(--ap-accent); }
.widget ul .children { padding-left: 14px; }

/* 13. Footer --------------------------------------------------------------- */
.ap-footer {
	background: var(--ap-bg-dark);
	color: #a7acb8;
	margin-top: 64px;
}
.ap-footer a { color: #d5d8de; }
.ap-footer a:hover { color: #fff; }

.ap-footer__cols {
	display: grid;
	grid-template-columns: minmax(0, 1.4fr) repeat(auto-fit, minmax(170px, 1fr));
	gap: 40px var(--ap-gap);
	padding-top: 52px;
	padding-bottom: 44px;
}
.ap-footer__brand img { max-height: 44px; width: auto; filter: brightness(0) invert(1); }
.ap-footer__logo-text {
	display: block;
	font-size: 1.2rem;
	font-weight: 800;
	color: #fff;
	text-transform: uppercase;
	margin-bottom: 12px;
}
.ap-footer__about { font-size: .9rem; margin-top: 12px; }

.ap-footer__social { display: flex; gap: 10px; margin-top: 18px; }
.ap-footer__social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: var(--ap-radius);
	background: rgba(255, 255, 255, .07);
	color: #fff;
}
.ap-footer__social a:hover { background: var(--ap-accent); }

.ap-footer .widget-title {
	color: #fff;
	border-bottom-color: rgba(255, 255, 255, .12);
	font-size: .9rem;
}
.ap-footer .widget ul li { border-bottom-color: rgba(255, 255, 255, .07); }
.ap-footer .widget ul li a { color: #a7acb8; }
.ap-footer .widget ul li a:hover { color: #fff; }

.ap-footer__bar {
	border-top: 1px solid rgba(255, 255, 255, .09);
	background: #0a0b0f;
	font-size: .85rem;
}
.ap-footer__bar-inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding-top: 18px;
	padding-bottom: 18px;
}
.ap-footer__copyright { margin: 0; }
.ap-footer__menu ul {
	display: flex;
	flex-wrap: wrap;
	gap: 18px;
	list-style: none;
	margin: 0;
	padding: 0;
}

/* 14. 404 ------------------------------------------------------------------ */
.ap-404__inner {
	max-width: 620px;
	padding-top: 72px;
	padding-bottom: 88px;
	text-align: center;
}
.ap-404__code {
	font-size: 5rem;
	font-weight: 800;
	line-height: 1;
	color: var(--ap-accent);
	margin: 0 0 8px;
}
.ap-404__text { color: var(--ap-ink-soft); margin-bottom: 20px; }
.ap-404__actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 12px;
	margin-top: 24px;
}

/* 15. Utilitare ------------------------------------------------------------ */
.ap-icon { display: inline-block; vertical-align: middle; width: 20px; height: 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:focus {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 200;
	clip: auto;
	width: auto;
	height: auto;
	padding: 12px 20px;
	background: #fff;
	color: var(--ap-ink);
	border-radius: var(--ap-radius);
	box-shadow: var(--ap-shadow-lg);
}

:focus-visible { outline: 2px solid var(--ap-accent); outline-offset: 2px; }

.alignwide { max-width: 1100px; margin-left: auto; margin-right: auto; }
.alignfull { max-width: none; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }

/* Responsive --------------------------------------------------------------- */
@media (max-width: 1080px) {
	.ap-layout--sidebar { grid-template-columns: minmax(0, 1fr); }
	.ap-layout__sidebar { border-top: 1px solid var(--ap-line); padding-top: 32px; }
	.ap-header__phone-meta { display: none; }
}

@media (max-width: 960px) {
	.ap-header__burger { display: inline-flex; }
	.ap-nav { display: none; }
	.ap-header__inner { flex-wrap: wrap; min-height: 0; }
	.ap-header__search { order: 3; flex-basis: 100%; max-width: none; margin-bottom: 4px; }
	.ap-header__actions { gap: 2px; }
	.ap-header__account-label { display: none; }
	.ap-header__cart-meta { display: none; }
	.ap-header__cart-count { left: auto; right: 4px; top: 2px; }
	.ap-topbar__nav { display: none; }
}

@media (max-width: 720px) {
	.ap-section { padding: 40px 0; }
	.ap-hero__inner { padding: 38px 16px 36px; }
	.ap-hero__panel { padding: 14px; }
	.ap-post-card { grid-template-columns: minmax(0, 1fr); }
	.ap-cats__grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
	.ap-footer__cols { grid-template-columns: minmax(0, 1fr); gap: 28px; }
	.ap-code-search__submit { padding: 12px 14px; }
	.ap-code-search--large .ap-code-search__submit { padding: 15px 16px; }
}

@media (max-width: 420px) {
	.ap-topbar__promo { font-size: .75rem; }
	.ap-header__brand img { max-height: 38px; }
}
