/*
Theme Name: Ballos Auto Parts Pro
Theme URI: https://ballosautoparts.com
Author: Ballos Engineering
Author URI: https://ballosautoparts.com
Description: Dark automotive theme built for a WhatsApp-first auto parts catalog. Pairs with WooCommerce in catalog mode (no cart or checkout), adds a per-product "Order via WhatsApp" button, vehicle fitment tables, part-number lookup and AutoPartsStore structured data. Elementor compatible, no page builder required.
Version: 1.0.0
Requires at least: 6.2
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ballos-auto
Tags: e-commerce, dark, custom-colors, custom-logo, custom-menu, featured-images, translation-ready, rtl-language-support
*/

/* ---------------------------------------------------------
   1. Design tokens
   --------------------------------------------------------- */
:root {
	--ballos-bg: #0b0d10;
	--ballos-surface: #14171d;
	--ballos-surface-2: #1a1e26;
	--ballos-border: #262b35;
	--ballos-text: #f2f4f7;
	--ballos-muted: #9aa3af;
	--ballos-accent: #e63946;
	--ballos-accent-dark: #c22b38;
	--ballos-wa: #25d366;
	--ballos-wa-dark: #128c7e;
	--ballos-radius: 10px;
	--ballos-radius-sm: 6px;
	--ballos-container: 1240px;
	--ballos-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
	--ballos-font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, "Helvetica Neue", Arial, sans-serif;
}

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

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

body {
	margin: 0;
	background-color: var(--ballos-bg);
	color: var(--ballos-text);
	font-family: var(--ballos-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0 0 0.6em;
	line-height: 1.2;
	font-weight: 800;
	letter-spacing: -0.01em;
	color: #fff;
}

h1 { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 1.2rem + 1.3vw, 2.2rem); }
h3 { font-size: clamp(1.15rem, 1rem + 0.6vw, 1.45rem); }

p { margin: 0 0 1.1em; }

a {
	color: var(--ballos-accent);
	text-decoration-thickness: 1px;
	text-underline-offset: 2px;
}

a:hover,
a:focus { color: #fff; }

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

hr {
	border: 0;
	border-top: 1px solid var(--ballos-border);
	margin: 2.5rem 0;
}

blockquote {
	margin: 0 0 1.4em;
	padding: 1rem 1.4rem;
	border-left: 3px solid var(--ballos-accent);
	background: var(--ballos-surface);
	color: var(--ballos-muted);
}

code,
kbd,
pre {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 0.9em;
	background: var(--ballos-surface-2);
	border-radius: 4px;
}

code { padding: 0.15em 0.4em; }

pre {
	padding: 1.1rem 1.25rem;
	overflow-x: auto;
	border: 1px solid var(--ballos-border);
}

pre code { padding: 0; background: none; }

table {
	width: 100%;
	border-collapse: collapse;
	margin: 0 0 1.5rem;
	font-size: 0.95rem;
}

th,
td {
	padding: 0.7rem 0.85rem;
	text-align: left;
	border-bottom: 1px solid var(--ballos-border);
	vertical-align: top;
}

th {
	color: #fff;
	background: var(--ballos-surface-2);
	font-weight: 700;
}

/* Accessibility helpers */
.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;
}

.screen-reader-text:focus {
	display: block;
	width: auto;
	height: auto;
	padding: 0.75rem 1rem;
	margin: 0;
	clip: auto;
	background: #fff;
	color: #000;
	font-weight: 700;
	z-index: 100000;
	position: fixed;
	top: 0.5rem;
	left: 0.5rem;
	border-radius: 4px;
}

.skip-link:focus { outline: 3px solid var(--ballos-accent); }

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

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*,
	*::before,
	*::after {
		animation-duration: 0.001ms !important;
		transition-duration: 0.001ms !important;
	}
}

/* ---------------------------------------------------------
   3. Layout
   --------------------------------------------------------- */
.ballos-container {
	width: 100%;
	max-width: var(--ballos-container);
	margin: 0 auto;
	padding: 0 20px;
}

.ballos-section { padding: 72px 0; }
.ballos-section--tight { padding: 44px 0; }
.ballos-section--surface { background: var(--ballos-surface); }

.ballos-section__head {
	max-width: 720px;
	margin: 0 auto 40px;
	text-align: center;
}

.ballos-section__head p {
	color: var(--ballos-muted);
	margin-bottom: 0;
}

.ballos-eyebrow {
	display: inline-block;
	margin-bottom: 0.7rem;
	color: var(--ballos-wa);
	font-size: 0.75rem;
	font-weight: 700;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ballos-grid {
	display: grid;
	gap: 20px;
}

.ballos-grid--brands { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.ballos-grid--cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.ballos-grid--split { grid-template-columns: 1.1fr 0.9fr; gap: 32px; align-items: start; }

.site-main { min-height: 40vh; }

.ballos-page {
	padding: 56px 0 72px;
}

.ballos-page__header {
	max-width: 820px;
	margin-bottom: 32px;
}

.ballos-entry { max-width: 820px; }
.ballos-entry--full { max-width: none; }

/* ---------------------------------------------------------
   4. Top bar and header
   --------------------------------------------------------- */
.ballos-topbar {
	background: #07080a;
	border-bottom: 1px solid var(--ballos-border);
	font-size: 13px;
	color: var(--ballos-muted);
}

.ballos-topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 24px;
	padding: 9px 0;
}

.ballos-topbar a {
	color: #e9ecf1;
	text-decoration: none;
	font-weight: 500;
}

.ballos-topbar a:hover { color: var(--ballos-wa); }

.ballos-topbar__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.ballos-topbar__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
}

.site-header {
	background: #000;
	border-bottom: 1px solid var(--ballos-border);
	position: sticky;
	top: 0;
	z-index: 900;
	transition: box-shadow 0.2s ease;
}

.site-header.is-stuck { box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5); }

.ballos-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding: 14px 0;
}

.custom-logo-link { display: inline-flex; }

.ballos-logo {
	font-size: 1.4rem;
	font-weight: 800;
	letter-spacing: 0.02em;
	color: #fff;
	text-decoration: none;
	line-height: 1.1;
	white-space: nowrap;
}

.ballos-logo:hover { color: #fff; }
.ballos-logo span { color: var(--ballos-accent); }

.ballos-logo__tag {
	display: block;
	font-size: 0.62rem;
	font-weight: 600;
	letter-spacing: 0.16em;
	text-transform: uppercase;
	color: var(--ballos-muted);
	margin-top: 3px;
}

.ballos-header__nav {
	display: flex;
	align-items: center;
	gap: 26px;
	margin-left: auto;
}

.ballos-menu,
.ballos-menu ul {
	display: flex;
	align-items: center;
	gap: 22px;
	list-style: none;
	margin: 0;
	padding: 0;
}

.ballos-menu li { position: relative; }

.ballos-menu a {
	color: #dfe3ea;
	font-size: 0.94rem;
	font-weight: 600;
	text-decoration: none;
	padding: 6px 0;
	display: inline-block;
}

.ballos-menu a:hover,
.ballos-menu .current-menu-item > a,
.ballos-menu .current_page_item > a { color: var(--ballos-wa); }

.ballos-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	display: none;
	flex-direction: column;
	align-items: stretch;
	gap: 0;
	min-width: 210px;
	padding: 8px 0;
	background: var(--ballos-surface-2);
	border: 1px solid var(--ballos-border);
	border-radius: var(--ballos-radius-sm);
	box-shadow: var(--ballos-shadow);
	z-index: 950;
}

.ballos-menu li:hover > .sub-menu,
.ballos-menu li:focus-within > .sub-menu { display: flex; }

.ballos-menu .sub-menu a { padding: 8px 16px; display: block; }
.ballos-menu .sub-menu a:hover { background: rgba(255, 255, 255, 0.05); }

.ballos-header__actions {
	display: flex;
	align-items: center;
	gap: 12px;
}

.ballos-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	background: var(--ballos-surface-2);
	border: 1px solid var(--ballos-border);
	border-radius: var(--ballos-radius-sm);
	color: #fff;
	cursor: pointer;
}

.ballos-nav-toggle svg { width: 22px; height: 22px; fill: currentColor; }

/* Part-number lookup */
.ballos-lookup {
	display: flex;
	align-items: stretch;
	gap: 0;
	max-width: 330px;
	width: 100%;
}

.ballos-lookup input[type="search"] {
	flex: 1 1 auto;
	min-width: 0;
	padding: 10px 12px;
	background: var(--ballos-surface-2);
	border: 1px solid var(--ballos-border);
	border-right: 0;
	border-radius: var(--ballos-radius-sm) 0 0 var(--ballos-radius-sm);
	color: var(--ballos-text);
	font-size: 0.88rem;
}

.ballos-lookup input[type="search"]::placeholder { color: #6f7783; }

.ballos-lookup button {
	flex: 0 0 auto;
	padding: 0 14px;
	background: var(--ballos-accent);
	border: 1px solid var(--ballos-accent);
	border-radius: 0 var(--ballos-radius-sm) var(--ballos-radius-sm) 0;
	color: #fff;
	font-size: 0.85rem;
	font-weight: 700;
	cursor: pointer;
}

.ballos-lookup button:hover { background: var(--ballos-accent-dark); }

/* ---------------------------------------------------------
   5. Buttons
   --------------------------------------------------------- */
.ballos-btn,
.ballos-wa-btn,
.ballos-wa-wrapper .ballos-wa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 24px;
	border: 1px solid transparent;
	border-radius: var(--ballos-radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

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

.ballos-btn--primary:hover {
	background: var(--ballos-accent-dark);
	color: #fff;
	transform: translateY(-1px);
}

.ballos-btn--ghost {
	background: transparent;
	border-color: #3a4150;
	color: #e9ecf1;
}

.ballos-btn--ghost:hover {
	border-color: #5a6373;
	background: rgba(255, 255, 255, 0.04);
	color: #fff;
}

.ballos-btn--wa,
.ballos-wa-btn {
	background: var(--ballos-wa);
	color: #fff !important;
	box-shadow: 0 6px 18px rgba(37, 211, 102, 0.25);
}

.ballos-btn--wa:hover,
.ballos-wa-btn:hover {
	background: var(--ballos-wa-dark);
	color: #fff !important;
	transform: translateY(-1px);
}

.ballos-btn--sm { padding: 9px 16px; font-size: 0.85rem; }
.ballos-btn--block { width: 100%; }

.ballos-btn svg,
.ballos-wa-btn svg { width: 18px; height: 18px; fill: currentColor; flex: 0 0 auto; }

/* WhatsApp action cluster on product pages */
.ballos-wa-wrapper { margin: 22px 0 8px; }

.ballos-wa-wrapper .ballos-wa-btn {
	width: 100%;
	max-width: 380px;
	padding: 15px 26px;
	font-size: 1rem;
	border-radius: 8px;
}

.ballos-wa-note {
	margin: 10px 0 0;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--ballos-muted);
	display: flex;
	align-items: flex-start;
	gap: 7px;
}

.ballos-wa-note svg { width: 15px; height: 15px; fill: var(--ballos-wa); flex: 0 0 auto; margin-top: 3px; }

/* ---------------------------------------------------------
   6. Hero
   --------------------------------------------------------- */
.ballos-hero {
	position: relative;
	padding: 88px 0 76px;
	background:
		radial-gradient(1100px 460px at 78% -10%, rgba(230, 57, 70, 0.20), transparent 62%),
		radial-gradient(760px 420px at 8% 110%, rgba(37, 211, 102, 0.10), transparent 60%),
		linear-gradient(180deg, #0e1117 0%, #0b0d10 100%);
	border-bottom: 1px solid var(--ballos-border);
	overflow: hidden;
}

.ballos-hero::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.028) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
	background-size: 58px 58px;
	mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
	-webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.9), transparent 85%);
	pointer-events: none;
}

.ballos-hero__inner {
	position: relative;
	max-width: 760px;
}

.ballos-hero h1 { margin-bottom: 0.45em; }
.ballos-hero h1 em { color: var(--ballos-accent); font-style: normal; }

.ballos-hero__sub {
	font-size: clamp(1rem, 0.95rem + 0.4vw, 1.15rem);
	color: #b9c0cb;
	max-width: 640px;
	margin-bottom: 30px;
}

.ballos-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
}

.ballos-hero__badges {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 26px;
	margin-top: 34px;
	padding-top: 24px;
	border-top: 1px solid var(--ballos-border);
	font-size: 0.84rem;
	color: var(--ballos-muted);
}

.ballos-hero__badges span {
	display: inline-flex;
	align-items: center;
	gap: 7px;
}

.ballos-hero__badges svg { width: 16px; height: 16px; fill: var(--ballos-wa); }

/* ---------------------------------------------------------
   7. Brand and category tiles
   --------------------------------------------------------- */
.ballos-tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 4px;
	padding: 22px 14px;
	background: var(--ballos-surface);
	border: 1px solid var(--ballos-border);
	border-radius: var(--ballos-radius);
	color: #fff;
	text-decoration: none;
	text-align: center;
	font-weight: 700;
	letter-spacing: 0.02em;
	transition: border-color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.ballos-tile:hover {
	border-color: var(--ballos-accent);
	background: var(--ballos-surface-2);
	color: #fff;
	transform: translateY(-2px);
}

.ballos-tile__count {
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--ballos-muted);
}

.ballos-tile--tall { align-items: flex-start; text-align: left; padding: 26px 24px; }
.ballos-tile--tall p { margin: 6px 0 0; font-size: 0.88rem; font-weight: 400; color: var(--ballos-muted); }

/* Value proposition cards */
.ballos-card {
	padding: 26px 24px;
	background: var(--ballos-surface);
	border: 1px solid var(--ballos-border);
	border-radius: var(--ballos-radius);
}

.ballos-card--accent { border-top: 3px solid var(--ballos-wa); }
.ballos-card h3 { margin-bottom: 0.4em; }
.ballos-card p { margin-bottom: 0; color: var(--ballos-muted); font-size: 0.93rem; }

.ballos-card__icon {
	width: 42px;
	height: 42px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 14px;
	border-radius: 9px;
	background: rgba(37, 211, 102, 0.12);
}

.ballos-card__icon svg { width: 22px; height: 22px; fill: var(--ballos-wa); }

/* CTA band */
.ballos-cta {
	padding: 44px 36px;
	background:
		linear-gradient(120deg, rgba(230, 57, 70, 0.18), rgba(11, 13, 16, 0.2) 55%),
		var(--ballos-surface);
	border: 1px solid var(--ballos-border);
	border-radius: 14px;
	text-align: center;
}

.ballos-cta h2 { margin-bottom: 0.35em; }
.ballos-cta p { color: var(--ballos-muted); max-width: 620px; margin: 0 auto 24px; }

/* ---------------------------------------------------------
   8. Single product extras
   --------------------------------------------------------- */
.ballos-badges {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 14px;
}

.ballos-badge {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 5px 11px;
	border-radius: 999px;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	border: 1px solid transparent;
}

.ballos-badge--condition {
	background: rgba(37, 211, 102, 0.12);
	border-color: rgba(37, 211, 102, 0.35);
	color: #7ff0a8;
}

.ballos-badge--brand {
	background: rgba(230, 57, 70, 0.12);
	border-color: rgba(230, 57, 70, 0.35);
	color: #ff8a93;
}

.ballos-badge--sku {
	background: var(--ballos-surface-2);
	border-color: var(--ballos-border);
	color: #cfd5df;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	letter-spacing: 0.02em;
	text-transform: none;
}

.ballos-fitment-notice {
	display: flex;
	gap: 12px;
	margin: 22px 0;
	padding: 16px 18px;
	background: rgba(37, 211, 102, 0.06);
	border: 1px solid rgba(37, 211, 102, 0.28);
	border-left-width: 3px;
	border-radius: var(--ballos-radius-sm);
	font-size: 0.9rem;
	color: #cfd8e3;
}

.ballos-fitment-notice svg { width: 20px; height: 20px; fill: var(--ballos-wa); flex: 0 0 auto; margin-top: 2px; }
.ballos-fitment-notice p { margin: 0; }
.ballos-fitment-notice strong { color: #fff; }

/* ---------------------------------------------------------
   9. Footer
   --------------------------------------------------------- */
.site-footer {
	background: #07080a;
	border-top: 1px solid var(--ballos-border);
	padding: 56px 0 22px;
	font-size: 0.9rem;
	color: var(--ballos-muted);
}

.ballos-footer__grid {
	display: grid;
	grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
	gap: 32px;
	margin-bottom: 40px;
}

.site-footer h4 {
	margin: 0 0 14px;
	padding-left: 10px;
	border-left: 3px solid var(--ballos-accent);
	font-size: 0.95rem;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}

.site-footer p { margin: 0 0 0.7em; }
.site-footer a { color: #dfe3ea; text-decoration: none; }
.site-footer a:hover { color: var(--ballos-wa); }

.ballos-footer__menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.ballos-footer__menu li { margin-bottom: 8px; }

.ballos-footer__map {
	border: 1px solid var(--ballos-border);
	border-radius: var(--ballos-radius-sm);
	overflow: hidden;
	line-height: 0;
}

.ballos-footer__map iframe { width: 100%; min-height: 190px; border: 0; filter: grayscale(0.35) contrast(1.05); }

.ballos-footer__bottom {
	display: flex;
	flex-wrap: wrap;
	justify-content: space-between;
	gap: 10px 24px;
	padding-top: 20px;
	border-top: 1px solid #16191f;
	font-size: 0.82rem;
	color: #6f7783;
}

/* ---------------------------------------------------------
   10. Floating WhatsApp
   --------------------------------------------------------- */
.ballos-floating-wa {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9990;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 58px;
	height: 58px;
	background: var(--ballos-wa);
	border-radius: 50%;
	color: #fff;
	text-decoration: none;
	box-shadow: 0 8px 22px rgba(0, 0, 0, 0.45);
	transition: transform 0.2s ease, background-color 0.2s ease;
}

.ballos-floating-wa:hover { background: var(--ballos-wa-dark); transform: scale(1.06); color: #fff; }
.ballos-floating-wa svg { width: 30px; height: 30px; fill: #fff; }

.ballos-floating-wa__label {
	position: absolute;
	right: calc(100% + 12px);
	white-space: nowrap;
	padding: 7px 12px;
	background: #fff;
	color: #111;
	font-size: 0.78rem;
	font-weight: 700;
	border-radius: 6px;
	opacity: 0;
	transform: translateX(6px);
	pointer-events: none;
	transition: opacity 0.18s ease, transform 0.18s ease;
}

.ballos-floating-wa:hover .ballos-floating-wa__label,
.ballos-floating-wa:focus-visible .ballos-floating-wa__label { opacity: 1; transform: translateX(0); }

/* ---------------------------------------------------------
   11. Forms
   --------------------------------------------------------- */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="search"],
input[type="password"],
select,
textarea {
	width: 100%;
	padding: 11px 13px;
	background: var(--ballos-surface-2);
	border: 1px solid var(--ballos-border);
	border-radius: var(--ballos-radius-sm);
	color: var(--ballos-text);
	font-family: inherit;
	font-size: 0.95rem;
}

input:focus,
select:focus,
textarea:focus {
	border-color: var(--ballos-accent);
	outline: none;
	box-shadow: 0 0 0 3px rgba(230, 57, 70, 0.18);
}

label { display: block; margin-bottom: 6px; font-size: 0.85rem; font-weight: 600; color: #cfd5df; }

button,
input[type="submit"] {
	font-family: inherit;
}

/* ---------------------------------------------------------
   12. Entry content
   --------------------------------------------------------- */
.ballos-entry img { border-radius: var(--ballos-radius-sm); }
.ballos-entry h2 { margin-top: 1.8em; }
.ballos-entry h2:first-child,
.ballos-entry h3:first-child { margin-top: 0; }
.ballos-entry ul li { margin-bottom: 0.5em; }

.ballos-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin-bottom: 24px;
	font-size: 0.82rem;
	color: var(--ballos-muted);
}

/* Pagination */
.ballos-pagination { margin: 40px 0 0; }
.ballos-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	margin-right: 6px;
	padding: 0 10px;
	background: var(--ballos-surface);
	border: 1px solid var(--ballos-border);
	border-radius: var(--ballos-radius-sm);
	color: #dfe3ea;
	text-decoration: none;
	font-size: 0.88rem;
}

.ballos-pagination .page-numbers:hover,
.ballos-pagination .page-numbers.current {
	background: var(--ballos-accent);
	border-color: var(--ballos-accent);
	color: #fff;
}

/* 404 */
.ballos-404 { text-align: center; padding: 110px 0; }
.ballos-404 h1 { font-size: clamp(3rem, 2rem + 5vw, 6rem); margin-bottom: 0.1em; color: var(--ballos-accent); }
.ballos-404 p { color: var(--ballos-muted); max-width: 520px; margin: 0 auto 28px; }

/* ---------------------------------------------------------
   13. Responsive
   --------------------------------------------------------- */
@media (max-width: 1080px) {
	.ballos-header__nav { gap: 16px; }
	.ballos-menu { gap: 16px; }
	.ballos-lookup { max-width: 230px; }
}

@media (max-width: 960px) {
	.ballos-grid--split { grid-template-columns: 1fr; }
	.ballos-footer__grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 860px) {
	.ballos-nav-toggle { display: inline-flex; }

	.ballos-header__nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		display: none;
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 10px 20px 20px;
		background: #000;
		border-bottom: 1px solid var(--ballos-border);
		box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
	}

	.ballos-header__nav.is-open { display: flex; }

	.ballos-menu,
	.ballos-menu ul {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		width: 100%;
	}

	.ballos-menu li { width: 100%; border-bottom: 1px solid #16191f; }

	.ballos-menu a { display: block; padding: 13px 2px; font-size: 1rem; }

	.ballos-menu .sub-menu {
		position: static;
		display: flex;
		box-shadow: none;
		border: 0;
		border-radius: 0;
		padding: 0 0 0 14px;
		background: transparent;
		min-width: 0;
	}

	.ballos-menu .sub-menu a { padding: 9px 2px; font-size: 0.92rem; color: #b9c0cb; }

	.ballos-lookup { max-width: none; margin: 16px 0 4px; }

	.ballos-topbar__inner { font-size: 12px; }
	.ballos-topbar__meta { gap: 6px 14px; }

	.ballos-hero { padding: 56px 0 48px; }
	.ballos-section { padding: 52px 0; }
	.ballos-cta { padding: 32px 22px; }
}

@media (max-width: 560px) {
	.ballos-footer__grid { grid-template-columns: 1fr; }
	.ballos-hero__actions .ballos-btn,
	.ballos-hero__actions .ballos-wa-btn { width: 100%; }
	.ballos-floating-wa { right: 16px; bottom: 16px; width: 52px; height: 52px; }
	.ballos-floating-wa svg { width: 27px; height: 27px; }
	.ballos-topbar__meta--secondary { display: none; }
	.ballos-page { padding: 36px 0 52px; }
}

/* ---------------------------------------------------------
   14. Print
   --------------------------------------------------------- */
@media print {
	.site-header,
	.ballos-topbar,
	.site-footer,
	.ballos-floating-wa,
	.ballos-wa-wrapper { display: none !important; }
	body { background: #fff; color: #000; }
}

/* ---------------------------------------------------------
   15. Icon sizing and component fixes
   --------------------------------------------------------- */
.ballos-icon {
	width: 18px;
	height: 18px;
	fill: currentColor;
	flex: 0 0 auto;
}

.ballos-topbar__item svg {
	width: 13px;
	height: 13px;
	fill: var(--ballos-wa);
	flex: 0 0 auto;
}

.ballos-badge svg {
	width: 13px;
	height: 13px;
	fill: currentColor;
}

.ballos-card__icon svg {
	width: 22px;
	height: 22px;
	fill: var(--ballos-wa);
}

.ballos-search .ballos-lookup { max-width: 440px; }

/* Blog cards */
.ballos-card__media {
	display: block;
	margin: -26px -24px 18px;
	overflow: hidden;
	border-radius: var(--ballos-radius) var(--ballos-radius) 0 0;
}

.ballos-card__media img {
	width: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	border-radius: 0;
	transition: transform 0.25s ease;
}

.ballos-card__media:hover img { transform: scale(1.03); }

.ballos-card__title {
	margin: 0 0 0.4em;
	font-size: 1.1rem;
}

.ballos-card__title a {
	color: #fff;
	text-decoration: none;
}

.ballos-card__title a:hover { color: var(--ballos-wa); }

.ballos-card .wp-block-post-excerpt__excerpt,
.ballos-card p:last-child { margin-bottom: 0; }

/* Entry media */
.ballos-entry__media {
	margin: 0 0 28px;
}

.ballos-entry__media img { border-radius: var(--ballos-radius); }

/* Footer widget row */
.ballos-footer__widgets {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 28px;
	padding-top: 32px;
	margin-bottom: 32px;
	border-top: 1px solid #16191f;
}

.ballos-footer__widgets .widget { font-size: 0.9rem; }
.ballos-footer__widgets .widget-title { color: #fff; font-size: 0.95rem; margin-bottom: 12px; }

/* Sidebar */
.ballos-sidebar .widget {
	margin-bottom: 28px;
	padding: 22px;
	background: var(--ballos-surface);
	border: 1px solid var(--ballos-border);
	border-radius: var(--ballos-radius);
}

/* Editor alignment helpers used by page content */
.ballos-entry--full > .wp-block-group,
.ballos-entry--full > .wp-block-columns { max-width: none; }

/* Long words in product titles should never overflow the card */
.woocommerce-loop-product__title,
.ballos-card__title,
.ballos-hero h1 { overflow-wrap: anywhere; }

/* Header CTA shrinks before the menu wraps */
@media (max-width: 1180px) {
	.ballos-header__cta span { display: none; }
	.ballos-header__cta { padding: 11px 12px; }
}

@media (max-width: 860px) {
	.ballos-header__cta span { display: inline; }
	.ballos-header__cta { width: 100%; margin-top: 12px; }
	.ballos-card__media { margin: -26px -24px 18px; }
}
