/* DriveLine Parts — AutoParts Pro Theme Styles */

/* ── Global body texture ─────────────────────────────────── */
.bg-body-texture {
	background-color: #f4f2ef;
	background-image:
		url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
	background-attachment: fixed;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero-section {
	background: #0d1117;
}

.hero-bg-image {
	position: absolute;
	inset: 0;
	background-image: var(--hero-bg-image, url('https://images.unsplash.com/photo-1486262715619-67b85e0b08d3?w=1920&h=1080&fit=crop&q=75'));
	background-size: cover;
	background-position: center 40%;
	transform: scale(1.02);
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background:
		linear-gradient(105deg, rgba(13,17,23,0.94) 0%, rgba(13,17,23,0.82) 45%, rgba(26,35,50,0.55) 100%),
		linear-gradient(to top, rgba(13,17,23,0.6) 0%, transparent 40%);
}

.hero-grid-pattern {
	background-image:
		linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
	background-size: 48px 48px;
	mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 80%);
	-webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.5) 0%, transparent 80%);
}

.hero-glow {
	background: radial-gradient(ellipse 60% 50% at 20% 80%, color-mix(in srgb, var(--color-primary, #e85d04) 9%, transparent) 0%, transparent 70%);
}

.hero-deco-image {
	position: absolute;
	right: -4%;
	top: 50%;
	transform: translateY(-50%);
	width: 42%;
	max-width: 520px;
	pointer-events: none;
	z-index: 1;
}

.hero-deco-img {
	width: 100%;
	height: auto;
	border-radius: 1.25rem;
	opacity: 0.22;
	filter: saturate(0.7) contrast(1.1);
	mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 20%, transparent 95%);
	-webkit-mask-image: linear-gradient(to left, rgba(0,0,0,0.9) 20%, transparent 95%);
}

/* ── Section textures & backgrounds ──────────────────────── */
.section-textured {
	background-color: #f4f2ef;
}

.section-bg-fade {
	display: none;
}

.section-bg-fade--warm {
	display: block;
	position: absolute;
	inset: 0;
	background-image: url('https://images.unsplash.com/photo-1492144534655-ae79c964c9d7?w=1400&h=800&fit=crop&q=60');
	background-size: cover;
	background-position: center;
	opacity: 0.05;
}

.bg-section-cream {
	background-color: #faf8f5;
	background-image: linear-gradient(180deg, #faf8f5 0%, #f6f3ef 100%);
}

.section-trust-bg {
	background-color: #f4f2ef;
	background-image: url('https://images.unsplash.com/photo-1581092918484-8313e1f5474d?w=1600&h=600&fit=crop&q=50');
	background-size: cover;
	background-position: center;
}

.section-trust-bg::before {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(244,242,239,0.92) 0%, rgba(244,242,239,0.97) 100%);
}

.section-brands-bg {
	background-color: #faf8f5;
	background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%231a2332' fill-opacity='0.025'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.section-corner-image {
	position: absolute;
	width: 380px;
	height: 380px;
	border-radius: 50%;
	background-size: cover;
	background-position: center;
	opacity: 0.07;
	filter: grayscale(30%);
	pointer-events: none;
}

.section-corner-image--left {
	left: -120px;
	bottom: -80px;
	background-image: url('https://images.unsplash.com/photo-1558618666-fcd25c85cd64?w=600&h=600&fit=crop&q=70');
}

.section-corner-image--right {
	right: -100px;
	top: -60px;
	background-image: url('https://images.unsplash.com/photo-1487754180451-c256904b1238?w=600&h=600&fit=crop&q=70');
}

/* ── Promo banner ────────────────────────────────────────── */
.promo-banner {
	background: #1a2332;
	min-height: 280px;
}

.promo-bg-image {
	position: absolute;
	inset: 0;
	background-image: var(--promo-bg-image, url('https://images.unsplash.com/photo-1487754180451-c256904b1238?w=1200&h=600&fit=crop&q=80'));
	background-size: cover;
	background-position: center;
}

.promo-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(105deg, rgba(13,17,23,0.92) 0%, rgba(26,35,50,0.75) 50%, rgba(13,17,23,0.5) 100%);
}

/* ── Fitment form selects ─────────────────────────────────── */
.fitment-select {
	appearance: none;
	background: rgba(255,255,255,0.07) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='rgba(255,255,255,0.5)' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	border: 1px solid rgba(255,255,255,0.1);
	border-radius: 0.75rem;
	color: #fff;
	font-size: 0.875rem;
	padding: 0.625rem 2rem 0.625rem 0.875rem;
	transition: border-color 0.2s, background-color 0.2s;
}

.fitment-select:focus {
	outline: none;
	border-color: rgba(232,93,4,0.5);
	background-color: rgba(255,255,255,0.1);
}

.fitment-select option {
	background: #1a2332;
	color: #fff;
}

.fitment-card-texture {
	background-image:
		linear-gradient(135deg, rgba(255,255,255,0.08) 0%, rgba(255,255,255,0.03) 100%),
		url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.02'%3E%3Cpath d='M0 0h20v20H0V0zm20 20h20v20H20V20z'/%3E%3C/g%3E%3C/svg%3E");
}

/* ── Category cards ──────────────────────────────────────── */
.category-card {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	padding: 1.5rem 1rem;
	background: rgba(255,255,255,0.72);
	backdrop-filter: blur(8px);
	border: 1px solid rgba(26,35,50,0.06);
	border-radius: 1rem;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
	text-decoration: none;
	color: inherit;
}

.category-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 40px -12px rgba(13,17,23,0.14);
	border-color: color-mix(in srgb, var(--color-primary, #e85d04) 20%, transparent);
	background: rgba(255,255,255,0.9);
}

.category-icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 3rem;
	height: 3rem;
	border-radius: 0.875rem;
	background: color-mix(in srgb, var(--color-primary, #e85d04) 8%, transparent);
	color: var(--color-primary, #e85d04);
	margin-bottom: 0.75rem;
	transition: background-color 0.25s ease;
}

.group:hover .category-icon {
	background: color-mix(in srgb, var(--color-primary, #e85d04) 15%, transparent);
}

.category-label {
	font-family: var(--font-display, "Clash Display", system-ui, sans-serif);
	font-weight: 600;
	font-size: 0.9375rem;
	margin-bottom: 0.25rem;
}

.category-count {
	font-size: 0.75rem;
	color: #6b7280;
}

/* ── Product cards ───────────────────────────────────────── */
.product-card {
	background: #fff;
	border-radius: 1rem;
	border: 1px solid rgba(26,35,50,0.06);
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.product-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 16px 48px -16px rgba(13,17,23,0.14);
}

.product-image-wrap {
	position: relative;
	aspect-ratio: 5 / 4;
	overflow: hidden;
	background: #f4f2ef;
}

.product-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.product-card:hover .product-image {
	transform: scale(1.04);
}

.product-badge {
	position: absolute;
	top: 0.75rem;
	left: 0.75rem;
	padding: 0.25rem 0.625rem;
	border-radius: 9999px;
	font-size: 0.6875rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	z-index: 2;
}

.product-badge.sale { background: var(--color-primary, #e85d04); color: #fff; }
.product-badge.new  { background: #1a2332; color: #fff; }

.product-actions {
	position: absolute;
	top: 0.75rem;
	right: 0.75rem;
	display: flex;
	flex-direction: column;
	gap: 0.375rem;
	opacity: 0;
	transform: translateX(6px);
	transition: opacity 0.25s ease, transform 0.25s ease;
	z-index: 2;
}

.product-card:hover .product-actions {
	opacity: 1;
	transform: translateX(0);
}

.product-actions button {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border-radius: 9999px;
	background: #fff;
	border: none;
	cursor: pointer;
	box-shadow: 0 2px 12px -2px rgba(13,17,23,0.15);
	color: #1a2332;
	transition: background-color 0.2s, color 0.2s;
}

.product-actions button:hover {
	background: var(--color-primary, #e85d04);
	color: #fff;
}

.product-stock {
	position: absolute;
	bottom: 0.75rem;
	left: 0.75rem;
	padding: 0.2rem 0.5rem;
	border-radius: 9999px;
	font-size: 0.625rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	z-index: 2;
}

.product-stock.in-stock {
	background: rgba(255,255,255,0.95);
	color: #166534;
}

/* ── WooCommerce overrides ───────────────────────────────── */
.woocommerce-breadcrumb {
	font-size: 0.8125rem;
	color: #6b7280;
	margin-bottom: 1.5rem;
}

.woocommerce-breadcrumb a {
	color: #6b7280;
	text-decoration: none;
}

.woocommerce-breadcrumb a:hover {
	color: var(--color-primary, #e85d04);
}

.woocommerce ul.products {
	margin: 0 !important;
	padding: 0 !important;
}

.woocommerce ul.products li.product {
	list-style: none;
	padding: 0;
	margin: 0;
	float: none;
	width: auto;
}

.woocommerce .woocommerce-ordering select,
.woocommerce .woocommerce-result-count {
	font-size: 0.875rem;
	color: #4b5563;
}

/* Rank Math breadcrumb */
.rank-math-breadcrumb {
	font-size: 0.8125rem;
	color: #6b7280;
	margin-bottom: 1.25rem;
}

.rank-math-breadcrumb a {
	color: #6b7280;
}

.rank-math-breadcrumb a:hover {
	color: var(--color-primary, #e85d04);
}

/* ── Trust items ─────────────────────────────────────────── */
.trust-item {
	padding: 1.5rem;
	border-radius: 1rem;
	border: 1px solid rgba(26,35,50,0.06);
	background: rgba(255,255,255,0.65);
	backdrop-filter: blur(6px);
}

.trust-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--color-primary, #e85d04) 8%, transparent);
	color: var(--color-primary, #e85d04);
	margin-bottom: 1rem;
}

/* ── Brand logos ─────────────────────────────────────────── */
.brand-logo {
	font-family: var(--font-display, "Clash Display", system-ui, sans-serif);
	font-weight: 600;
	font-size: 0.875rem;
	letter-spacing: 0.15em;
	color: #1a2332;
}

/* ── Stat cards ──────────────────────────────────────────── */
.stat-card {
	display: flex;
	flex-direction: column;
	padding: 1.25rem;
	background: #fff;
	border-radius: 1rem;
	border: 1px solid rgba(26,35,50,0.06);
}

.stat-number {
	font-family: var(--font-display, "Clash Display", system-ui, sans-serif);
	font-size: 1.75rem;
	font-weight: 600;
	color: var(--color-primary, #e85d04);
	line-height: 1.2;
}

.stat-label {
	font-size: 0.8125rem;
	color: #6b7280;
	margin-top: 0.25rem;
}

/* ── Payment badges ──────────────────────────────────────── */
.payment-badge {
	display: inline-flex;
	align-items: center;
	padding: 0.375rem 0.75rem;
	font-size: 0.6875rem;
	font-weight: 600;
	letter-spacing: 0.03em;
	text-transform: uppercase;
	background: #f4f2ef;
	border: 1px solid rgba(26,35,50,0.08);
	border-radius: 0.5rem;
	color: #1a2332;
}

/* ── Scrolling car brand strips ─────────────────────────── */
@keyframes scrollLeft {
	from { background-position: 0 center; }
	to   { background-position: -2000px center; }
}

@keyframes scrollRight {
	from { background-position: 0 center; }
	to   { background-position: 2000px center; }
}

.brands-strip {
	background-size: auto 70%;
	background-position: 0 center;
	opacity: 0.75;
	filter: grayscale(40%) contrast(0.9);
}

.scrolling-bg-left {
	animation: scrollLeft 35s linear infinite;
}

.scrolling-bg-right {
	animation: scrollRight 38s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.scrolling-bg-left,
	.scrolling-bg-right {
		animation: none;
	}
}

/* ── Cookie consent banner ───────────────────────────────── */
@keyframes cookieSlideUp {
	from {
		transform: translateY(100%);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

.cookie-banner {
	position: fixed;
	bottom: 0;
	left: 0;
	right: 0;
	z-index: 9999;
	padding: 1.125rem 1.5rem;
	background: rgba(250, 248, 245, 0.98);
	backdrop-filter: blur(16px);
	-webkit-backdrop-filter: blur(16px);
	border-top: 1px solid rgba(26, 35, 50, 0.12);
	box-shadow: 0 -8px 32px -8px rgba(13, 17, 23, 0.18);
}

.cookie-banner.hidden { display: none !important; }

.cookie-banner:not(.hidden) {
	animation: cookieSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.cookie-banner-inner {
	max-width: 72rem;
	margin: 0 auto;
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
}

@media (min-width: 640px) {
	.cookie-banner-inner {
		flex-direction: row;
		align-items: center;
		justify-content: space-between;
	}
}

.cookie-accept-btn {
	flex-shrink: 0;
	padding: 0.625rem 1.75rem;
	background: #1a2332;
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	border: none;
	border-radius: 9999px;
	cursor: pointer;
	box-shadow: 0 4px 14px -3px rgba(26, 35, 50, 0.3);
	transition: background-color 0.2s, transform 0.2s;
}

.cookie-accept-btn:hover {
	background: var(--color-primary, #e85d04);
	transform: translateY(-1px);
}

/* ── Policy / inner page content ─────────────────────────── */
.page-hero {
	padding: 3rem 0 2rem;
	background: #faf8f5;
	border-bottom: 1px solid rgba(26,35,50,0.06);
}

.policy-content { max-width: 42rem; }

.policy-content h2 {
	font-family: var(--font-display, "Clash Display", system-ui, sans-serif);
	font-size: 1.25rem;
	font-weight: 600;
	margin-top: 2rem;
	margin-bottom: 0.75rem;
	color: #1a2332;
}

.policy-content h3 {
	font-size: 1rem;
	font-weight: 600;
	margin-top: 1.5rem;
	margin-bottom: 0.5rem;
}

.policy-content p,
.policy-content li {
	font-size: 0.9375rem;
	line-height: 1.7;
	color: #4b5563;
}

.policy-content ul,
.policy-content ol {
	margin: 0.75rem 0 1rem 1.25rem;
}

.policy-content li { margin-bottom: 0.375rem; }

.policy-content a {
	color: var(--color-primary, #e85d04);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.policy-updated {
	font-size: 0.8125rem;
	color: #6b7280;
}

/* ── Contact page ────────────────────────────────────────── */
.contact-card {
	background: #fff;
	border: 1px solid rgba(26,35,50,0.08);
	border-radius: 1rem;
	padding: 1.5rem;
}

.contact-hero-card {
	background: #fff;
	border: 1px solid rgba(26,35,50,0.08);
	border-radius: 1rem;
	padding: 1.25rem 1.5rem;
	display: flex;
	gap: 1rem;
	align-items: flex-start;
	transition: border-color 0.2s, box-shadow 0.2s;
	text-decoration: none;
	color: inherit;
}

.contact-hero-card:hover {
	border-color: rgba(232,93,4,0.25);
	box-shadow: 0 4px 28px -8px rgba(13,17,23,0.1);
}

.contact-hero-icon {
	flex-shrink: 0;
	width: 2.5rem;
	height: 2.5rem;
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--color-primary, #e85d04) 10%, transparent);
	color: var(--color-primary, #e85d04);
	display: flex;
	align-items: center;
	justify-content: center;
}

.contact-form-label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.375rem;
}

.contact-input {
	width: 100%;
	height: 2.75rem;
	padding: 0 1rem;
	font-size: 0.875rem;
	border: 1px solid rgba(26,35,50,0.1);
	border-radius: 0.625rem;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.contact-input:focus {
	outline: none;
	border-color: rgba(232,93,4,0.45);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #e85d04) 12%, transparent);
}

.contact-textarea {
	min-height: 8rem;
	padding: 0.75rem 1rem;
	height: auto;
	resize: vertical;
}

/* ── About page ──────────────────────────────────────────── */
.about-hero {
	background: linear-gradient(145deg, #0d1117 0%, #1a2332 55%, #243044 100%);
}

.about-image-card {
	border-radius: 1rem;
	overflow: hidden;
	box-shadow: 0 16px 48px -16px rgba(13,17,23,0.2);
}

.value-card {
	padding: 1.5rem;
	background: #fff;
	border: 1px solid rgba(26,35,50,0.06);
	border-radius: 1rem;
	height: 100%;
}

.value-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	height: 2.75rem;
	border-radius: 0.75rem;
	background: color-mix(in srgb, var(--color-primary, #e85d04) 8%, transparent);
	color: var(--color-primary, #e85d04);
	margin-bottom: 1rem;
}

/* ── Utilities ───────────────────────────────────────────── */
.line-clamp-2 {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

html { scroll-behavior: smooth; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
	outline: 2px solid var(--color-primary, #e85d04);
	outline-offset: 2px;
}

/* ── Shop filter sidebar ─────────────────────────────────── */
.filter-section-toggle:focus-visible {
	outline: 2px solid var(--color-primary, #e85d04);
	outline-offset: 2px;
	border-radius: 4px;
}

/* Price range dual slider */
#price-track {
	position: relative;
	height: 20px;
	display: flex;
	align-items: center;
}

#price-track > .absolute { /* the grey track line */
	pointer-events: none;
}

#price-range-fill {
	position: absolute;
	height: 4px;
	background: var(--color-primary, #e85d04);
	border-radius: 9999px;
	pointer-events: none;
}

.price-range-input {
	position: absolute;
	left: 0;
	width: 100%;
	height: 4px;
	-webkit-appearance: none;
	appearance: none;
	background: transparent;
	pointer-events: none;
	margin: 0;
	padding: 0;
	cursor: pointer;
}

.price-range-input::-webkit-slider-thumb {
	-webkit-appearance: none;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--color-primary, #e85d04);
	border: 2px solid #fff;
	box-shadow: 0 1px 6px color-mix(in srgb, var(--color-primary, #e85d04) 40%, transparent);
	pointer-events: all;
	cursor: grab;
	transition: transform 0.15s, box-shadow 0.15s;
}

.price-range-input::-webkit-slider-thumb:active {
	cursor: grabbing;
	transform: scale(1.2);
	box-shadow: 0 2px 10px rgba(232,93,4,0.5);
}

.price-range-input::-moz-range-thumb {
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: var(--color-primary, #e85d04);
	border: 2px solid #fff;
	box-shadow: 0 1px 6px color-mix(in srgb, var(--color-primary, #e85d04) 40%, transparent);
	pointer-events: all;
	cursor: grab;
}

.price-range-input:focus-visible::-webkit-slider-thumb {
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #e85d04) 30%, transparent);
}

/* Scrollable attribute list */
.filter-section ul.max-h-48 {
	scrollbar-width: thin;
	scrollbar-color: rgba(26,35,50,0.15) transparent;
}

.filter-section ul.max-h-48::-webkit-scrollbar { width: 4px; }
.filter-section ul.max-h-48::-webkit-scrollbar-thumb {
	background: rgba(26,35,50,0.15);
	border-radius: 4px;
}

/* WooCommerce sort dropdown */
.woocommerce-ordering select {
	height: 2.5rem;
	padding: 0 2.25rem 0 0.875rem;
	font-size: 0.875rem;
	border: 1px solid rgba(26,35,50,0.1);
	border-radius: 9999px;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	-webkit-appearance: none;
	appearance: none;
	color: #1a2332;
	cursor: pointer;
}

.woocommerce-ordering select:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--color-primary, #e85d04) 40%, transparent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #e85d04) 12%, transparent);
}

/* WC result count */
.woocommerce-result-count {
	font-size: 0.8125rem;
	color: #6b7280;
	margin: 0.25rem 0 0;
}

/* ── Single product page ─────────────────────────────────── */

/* Gallery */
.product-gallery-main {
	aspect-ratio: 1 / 1;
	background: #f4f2ef;
}

.product-gallery-main img,
.woocommerce-product-gallery__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

/* WC gallery wrapper inside our rounded container */
.woocommerce-product-gallery {
	width: 100% !important;
	margin: 0 !important;
	float: none !important;
}

.woocommerce-product-gallery .flex-viewport {
	border-radius: 1rem;
	overflow: hidden;
}

/* Product detail price */
.product-detail-price {
	font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
	font-size: 2rem;
	font-weight: 600;
	line-height: 1.1;
	color: #1a2332;
}

/* Out-of-stock badge variant */
.product-stock.out-of-stock {
	background: rgba(239, 68, 68, 0.1);
	color: #dc2626;
}

/* Policy links row */
.product-policy-links {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	font-size: 0.8125rem;
	color: #6b7280;
}

.product-policy-links a {
	color: #6b7280;
	text-decoration: none;
	transition: color 0.2s;
}

.product-policy-links a:hover { color: var(--color-primary, #e85d04); }

/* Trust badge grid */
.product-summary .rounded-xl i[data-lucide] {
	display: block;
}

/* ── Product tabs ────────────────────────────────────────── */
.product-tab-btn {
	position: relative;
	color: #6b7280;
	border-bottom: 2px solid transparent;
	margin-bottom: -1px;
	transition: color 0.2s;
	background: none;
	border-top: none;
	border-left: none;
	border-right: none;
	cursor: pointer;
}

.product-tab-btn:hover { color: #1a2332; }

.product-tab-btn.active {
	color: var(--color-primary, #e85d04);
	border-bottom-color: var(--color-primary, #e85d04);
	font-weight: 600;
}

.product-tab-panel { min-height: 120px; }

/* Specs table */
.product-specs-table { border-collapse: collapse; }

.product-specs-table tr:last-child th,
.product-specs-table tr:last-child td { border-bottom: none; }

/* WooCommerce single add-to-cart */
.woocommerce .quantity input.qty {
	width: 4.5rem;
	height: 3rem;
	text-align: center;
	border: 1.5px solid rgba(26,35,50,0.12);
	border-radius: 0.75rem;
	font-size: 0.9375rem;
	font-weight: 600;
	padding: 0 0.5rem;
	background: #fff;
	transition: border-color 0.2s;
}
.woocommerce .quantity input.qty:focus {
	outline: none;
	border-color: var(--color-primary, #e85d04);
}

/* Add to cart + Order Now sit on one row */
.woocommerce form.cart {
	display: flex;
	align-items: stretch;
	gap: 0.625rem;
	margin-bottom: 1rem;
	flex-wrap: nowrap;
}

.woocommerce .single_add_to_cart_button,
.woocommerce button.button.alt {
	flex: 1;
	height: 3rem;
	padding: 0 1.5rem;
	background: var(--color-primary, #e85d04) !important;
	color: #fff !important;
	font-family: var(--font-body, 'Satoshi', system-ui, sans-serif);
	font-size: 0.9375rem;
	font-weight: 600;
	border-radius: 0.875rem !important;
	border: none !important;
	cursor: pointer;
	transition: background-color 0.2s, transform 0.15s;
	white-space: nowrap;
}

.woocommerce .single_add_to_cart_button:hover,
.woocommerce button.button.alt:hover {
	background: var(--color-primary-dark, #c44d03) !important;
	transform: translateY(-1px);
}

/* Order Now button — secondary action, same row */
.single-product-order-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.375rem;
	height: 3rem;
	padding: 0 1.25rem;
	background: var(--color-secondary, #1a2332);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 0.875rem;
	border: none;
	cursor: pointer;
	white-space: nowrap;
	transition: background-color 0.2s, transform 0.15s;
	font-family: var(--font-body, 'Satoshi', system-ui, sans-serif);
}

.single-product-order-btn:hover {
	background: var(--color-primary, #e85d04);
	transform: translateY(-1px);
}

/* On small screens, stack buttons below the qty */
@media (max-width: 479px) {
	.woocommerce form.cart {
		flex-wrap: wrap;
	}
	.woocommerce .quantity {
		width: 100%;
	}
	.woocommerce .single_add_to_cart_button,
	.woocommerce button.button.alt,
	.single-product-order-btn {
		flex: 1;
	}
}

/* WC rating stars */
.woocommerce .star-rating span::before,
.star-rating::before {
	color: var(--color-primary, #e85d04);
}

.woocommerce-product-rating .woocommerce-review-link {
	font-size: 0.875rem;
	color: #6b7280;
}

/* Related products */
.related-products .products {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 1.25rem !important;
}

@media (min-width: 1024px) {
	.related-products .products {
		grid-template-columns: repeat(4, 1fr) !important;
	}
}

/* WC notices */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	padding: 0.875rem 1.25rem;
	border-radius: 0.75rem;
	font-size: 0.875rem;
	margin-bottom: 1.5rem;
	list-style: none;
}

.woocommerce-message { background: #f0fdf4; color: #15803d; border: 1px solid #bbf7d0; }
.woocommerce-error   { background: #fef2f2; color: #dc2626; border: 1px solid #fecaca; }
.woocommerce-info    { background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe; }

.woocommerce-message .button,
.woocommerce-error .button {
	float: right;
	font-size: 0.8125rem;
	color: var(--color-primary, #e85d04);
	font-weight: 600;
	text-decoration: underline;
}

/* ── Side cart ───────────────────────────────────────────── */
#side-cart-overlay { transition: none; }

#side-cart-overlay.is-open {
	pointer-events: all !important;
}

#side-cart-overlay.is-open #side-cart-backdrop {
	opacity: 1;
}

#side-cart-overlay.is-open #side-cart-panel {
	transform: translateX(0);
}

/* Item loading state */
.side-cart-item.is-loading {
	opacity: 0.5;
	pointer-events: none;
}

/* ── Cart page ───────────────────────────────────────────── */
.cart-item { transition: opacity 0.2s; }
.cart-item.is-loading { opacity: 0.5; pointer-events: none; }

.woocommerce .quantity {
	display: inline-flex;
	align-items: center;
}

.woocommerce .quantity .qty {
	width: 4.5rem !important;
	height: 2.5rem !important;
	text-align: center;
	border: 1px solid rgba(26,35,50,0.1);
	border-radius: 0.625rem;
	font-size: 0.875rem;
	padding: 0 0.5rem;
	background: #fff;
}

/* Cart totals */
.cart_totals h2,
.woocommerce-billing-fields h3,
.woocommerce-shipping-fields h3,
.woocommerce-additional-fields h3 {
	font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
	font-size: 1.125rem;
	font-weight: 600;
	margin-bottom: 1rem;
}

/* ── Checkout page ───────────────────────────────────────── */
.checkout-section label {
	display: block;
	font-size: 0.875rem;
	font-weight: 500;
	margin-bottom: 0.375rem;
	color: #1a2332;
}

.checkout-section .required { color: var(--color-primary, #e85d04); }

.checkout-section input[type=text],
.checkout-section input[type=email],
.checkout-section input[type=tel],
.checkout-section input[type=number],
.checkout-section input[type=password],
.checkout-section select,
.checkout-section textarea,
.woocommerce-checkout input[type=text],
.woocommerce-checkout input[type=email],
.woocommerce-checkout input[type=tel],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	width: 100%;
	height: 2.75rem;
	padding: 0 1rem;
	font-size: 0.875rem;
	border: 1px solid rgba(26,35,50,0.1);
	border-radius: 0.625rem;
	background: #fff;
	transition: border-color 0.2s, box-shadow 0.2s;
	color: #1a2332;
}

.woocommerce-checkout textarea {
	height: auto;
	min-height: 5rem;
	padding: 0.75rem 1rem;
	resize: vertical;
}

.woocommerce-checkout input:focus,
.woocommerce-checkout select:focus,
.woocommerce-checkout textarea:focus {
	outline: none;
	border-color: color-mix(in srgb, var(--color-primary, #e85d04) 40%, transparent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-primary, #e85d04) 12%, transparent);
}

.woocommerce-checkout .form-row {
	margin-bottom: 1rem;
}

.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last {
	width: calc(50% - 0.5rem);
	display: inline-block;
	vertical-align: top;
}

.woocommerce-checkout .form-row-first { margin-right: 1rem; }

/* Payment methods */
.wc_payment_methods li {
	border: 1px solid rgba(26,35,50,0.1);
	border-radius: 0.75rem;
	padding: 1rem;
	list-style: none;
	cursor: pointer;
	transition: border-color 0.2s;
}

.wc_payment_methods li.payment_method_selected,
.wc_payment_methods li:has(input[type=radio]:checked) {
	border-color: rgba(232,93,4,0.5);
	background: rgba(232,93,4,0.03);
}

.wc_payment_methods li label {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	cursor: pointer;
	font-weight: 500;
	margin: 0;
}

.wc_payment_methods .payment_box {
	margin-top: 0.75rem;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(26,35,50,0.06);
	font-size: 0.875rem;
	color: #6b7280;
}

/* Place order button */
.place-order-btn {
	height: 3.25rem;
}

/* Checkout steps */
.checkout-step.active span {
	background: var(--color-primary, #e85d04);
	color: #fff;
}

/* WC field validation */
.woocommerce-invalid input,
.woocommerce-invalid select {
	border-color: #ef4444 !important;
}

.woocommerce-invalid-required-field label::after {
	content: ' *';
	color: #ef4444;
}

/* Order received / thank you page */
.woocommerce-order { max-width: 640px; margin: 0 auto; }

.woocommerce-order-overview {
	display: flex;
	flex-wrap: wrap;
	gap: 1rem;
	list-style: none;
	padding: 0;
	margin: 1.5rem 0;
}

.woocommerce-order-overview li {
	background: #fff;
	border: 1px solid rgba(26,35,50,0.08);
	border-radius: 0.875rem;
	padding: 1rem 1.25rem;
	font-size: 0.875rem;
	color: #6b7280;
}

.woocommerce-order-overview strong {
	display: block;
	font-size: 1rem;
	font-weight: 600;
	color: #1a2332;
	margin-top: 0.25rem;
}

/* ── Product placeholder image ───────────────────────────── */
.product-placeholder {
	width: 100%;
	height: 100%;
	object-fit: cover;
	background: #f4f2ef;
}

/* WC generated placeholder (fallback if SVG filter not active) */
.woocommerce-placeholder {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 1.5rem;
	background: #f4f2ef;
}

/* ── WooCommerce Order Modal ─────────────────────────────── */
.order-modal-backdrop {
	position: fixed;
	inset: 0;
	z-index: 10000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
	background-color: rgba(15, 23, 42, 0.65);
	backdrop-filter: blur(8px);
	-webkit-backdrop-filter: blur(8px);
	animation: fadeInModal 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.order-modal-backdrop.hidden {
	display: none !important;
}

@keyframes fadeInModal {
	from { opacity: 0; }
	to { opacity: 1; }
}

.order-modal-card {
	position: relative;
	width: 100%;
	max-width: 520px;
	max-height: 90vh;
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	border-radius: 1.25rem;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
	border: 1px solid rgba(0, 0, 0, 0.08);
	overflow: hidden;
	animation: slideUpModal 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideUpModal {
	from { opacity: 0; transform: translateY(20px) scale(0.97); }
	to { opacity: 1; transform: translateY(0) scale(1); }
}

.order-modal-header {
	padding: 1.25rem 1.5rem 1rem;
	background-color: #fdfcfa;
	border-bottom: 1px solid #f0ede6;
}

.modal-stepper {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.5rem;
	padding-top: 0.5rem;
}

.stepper-tab {
	display: flex;
	align-items: center;
	gap: 0.375rem;
	opacity: 0.45;
	transition: opacity 0.2s ease;
}

.stepper-tab.active {
	opacity: 1;
}

.stepper-tab.completed .tab-num {
	background-color: #10b981;
	color: #ffffff;
}

.tab-num {
	width: 1.375rem;
	height: 1.375rem;
	border-radius: 9999px;
	background-color: #1b263b;
	color: #ffffff;
	font-size: 0.75rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tab-text {
	font-size: 0.75rem;
	font-weight: 600;
	color: #1b263b;
}

.stepper-line {
	flex: 1;
	height: 2px;
	background-color: #e5e7eb;
	border-radius: 9999px;
}

.order-modal-body {
	padding: 1.25rem 1.5rem 1.5rem;
	overflow-y: auto;
}

.payment-option-card {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	border-radius: 0.875rem;
	border: 1.5px solid #e5e7eb;
	background-color: #ffffff;
	cursor: pointer;
	transition: all 0.2s ease;
}

.payment-option-card:hover {
	border-color: #e65100;
	background-color: #fffaf7;
}

.payment-option-card.selected {
	border-color: #e65100;
	background-color: #fff7ed;
	box-shadow: 0 0 0 1px #e65100;
}

.payment-radio {
	accent-color: #e65100;
	width: 1.125rem;
	height: 1.125rem;
	margin-top: 0.125rem;
}

.modal-input {
	width: 100%;
	padding: 0.625rem 0.875rem;
	font-size: 0.8125rem;
	border: 1px solid #d1d5db;
	border-radius: 0.625rem;
	background-color: #ffffff;
	color: #111827;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.modal-input:focus {
	border-color: #e65100;
	box-shadow: 0 0 0 3px rgba(230, 81, 0, 0.15);
}

/* ── Testimonial cards ───────────────────────────────────── */
.testimonial-card {
	background: #fff;
	border: 1px solid rgba(26,35,50,0.07);
	border-radius: 1.25rem;
	padding: 1.75rem;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.testimonial-card:hover {
	box-shadow: 0 12px 40px -12px rgba(13,17,23,0.12);
	transform: translateY(-2px);
}

.testimonial-card--featured {
	background: linear-gradient(135deg, #faf8f5 0%, #fff 100%);
	border-color: color-mix(in srgb, var(--color-primary, #e85d04) 15%, transparent);
}

/* ── Product no-image icon placeholder ──────────────────── */
.product-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #f4f2ef;
}

/* ── Logo containment ────────────────────────────────────── */
.site-branding,
.site-branding a {
	display: flex;
	align-items: center;
	overflow: hidden;
	max-height: 4.5rem; /* matches header height */
}

.site-branding img {
	display: block !important;
	height: 40px !important;
	width: auto !important;
	max-width: 160px !important;
	max-height: 40px !important;
	object-fit: contain;
	flex-shrink: 0;
}

.site-footer .site-footer-logo img,
.site-footer a > img {
	display: block !important;
	height: 32px !important;
	width: auto !important;
	max-width: 120px !important;
	max-height: 32px !important;
	object-fit: contain;
	flex-shrink: 0;
}

/* ── Primary nav dropdowns ───────────────────────────────── */
.nav-item,
.site-header nav .nav-item,
.site-header nav .menu-item-has-children,
.site-header nav li.menu-item-has-children {
	position: relative !important;
	list-style: none !important;
}

.nav-link,
.site-header nav .nav-link,
.site-header nav a {
	display: inline-flex;
	align-items: center;
	font-size: 0.875rem;
	font-weight: 500;
	color: rgba(26,35,50,0.75);
	text-decoration: none;
	padding: 0.25rem 0;
	white-space: nowrap;
}

.nav-link--parent .nav-chevron,
.site-header nav .menu-item-has-children > a .nav-chevron {
	transition: transform 0.2s ease;
}

.nav-item.has-dropdown:hover .nav-chevron,
.site-header nav .menu-item-has-children:hover > a .nav-chevron {
	transform: rotate(180deg);
}

/* Dropdown panel */
.nav-dropdown,
.site-header nav ul.sub-menu,
.site-header nav .sub-menu,
.site-header nav li ul,
nav ul.sub-menu,
nav .sub-menu,
nav li ul,
ul.sub-menu {
	position: absolute !important;
	top: 100% !important;
	left: 50% !important;
	transform: translateX(-50%) translateY(6px) !important;
	min-width: 220px !important;
	background: #ffffff !important;
	border: 1px solid rgba(26,35,50,0.1) !important;
	border-radius: 0.875rem !important;
	box-shadow: 0 16px 40px -12px rgba(13,17,23,0.18) !important;
	padding: 0.5rem !important;
	list-style: none !important;
	margin: 0 !important;
	z-index: 9999 !important;
	opacity: 0 !important;
	visibility: hidden !important;
	pointer-events: none !important;
	transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease !important;
}

.nav-dropdown::before,
.site-header nav ul.sub-menu::before,
.site-header nav li ul::before,
nav ul.sub-menu::before,
nav li ul::before {
	content: '' !important;
	position: absolute !important;
	top: -6px !important;
	left: 50% !important;
	transform: translateX(-50%) rotate(45deg) !important;
	width: 10px !important;
	height: 10px !important;
	background: #ffffff !important;
	border-left: 1px solid rgba(26,35,50,0.1) !important;
	border-top: 1px solid rgba(26,35,50,0.1) !important;
}

.nav-item.has-dropdown:hover > .nav-dropdown,
.group:hover > .nav-dropdown,
.site-header nav .menu-item-has-children:hover > .sub-menu,
.site-header nav li:hover > ul,
nav .menu-item-has-children:hover > .sub-menu,
nav li:hover > ul {
	opacity: 1 !important;
	visibility: visible !important;
	pointer-events: auto !important;
	transform: translateX(-50%) translateY(0) !important;
}

.nav-dropdown-item,
.site-header nav ul.sub-menu a,
.site-header nav .sub-menu a,
nav ul.sub-menu a,
nav .sub-menu a {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.5rem 0.75rem;
	font-size: 0.875rem;
	color: #4b5563;
	text-decoration: none;
	border-radius: 0.5rem;
	transition: background-color 0.15s, color 0.15s;
}

.nav-dropdown-item:hover,
.site-header nav ul.sub-menu a:hover,
.site-header nav .sub-menu a:hover,
nav ul.sub-menu a:hover,
nav .sub-menu a:hover {
	background: color-mix(in srgb, var(--color-primary, #e85d04) 6%, transparent);
	color: var(--color-primary, #e85d04);
}

.nav-dropdown-count {
	margin-left: auto;
	font-size: 0.6875rem;
	color: #9ca3af;
	background: #f4f2ef;
	padding: 0.1rem 0.4rem;
	border-radius: 9999px;
}

.nav-dropdown-footer {
	border-top: 1px solid rgba(26,35,50,0.06);
	margin-top: 0.25rem;
	padding-top: 0.25rem;
}

.nav-dropdown-item--all {
	font-weight: 600;
	color: #1a2332;
}

/* ── Cookie banner text fix ──────────────────────────────── */
.cookie-banner p {
	color: #4b5563;
	font-size: 0.875rem;
	line-height: 1.6;
}

.cookie-banner p.font-semibold {
	color: #1a2332;
	font-weight: 600;
	margin-bottom: 0.2rem;
}

/* ── Blog archive ────────────────────────────────────────── */
.blog-cat-pill {
	display: inline-flex;
	align-items: center;
	padding: 0.35rem 0.9rem;
	font-size: 0.8rem;
	font-weight: 500;
	border-radius: 9999px;
	border: 1px solid rgba(26,35,50,0.12);
	background: #fff;
	color: #6b7280;
	text-decoration: none;
	transition: all 0.15s ease;
}

/* ── Scrolling car brand strips ─────────────────────────── */
@keyframes scrollLeft {
	from { background-position: 0 center; }
	to   { background-position: -2000px center; }
}

@keyframes scrollRight {
	from { background-position: 0 center; }
	to   { background-position: 2000px center; }
}

.brands-strip {
	background-size: auto 70%;
	background-position: 0 center;
	opacity: 0.75;
	filter: grayscale(40%) contrast(0.9);
}

.scrolling-bg-left {
	animation: scrollLeft 35s linear infinite;
}

.scrolling-bg-right {
	animation: scrollRight 38s linear infinite;
}

@media (prefers-reduced-motion: reduce) {
	.scrolling-bg-left,
	.scrolling-bg-right {
		animation: none;
	}
}

.blog-cat-pill:hover,
.blog-cat-pill.active {
	background: var(--color-primary, #e85d04);
	border-color: var(--color-primary, #e85d04);
	color: #fff;
}

/* Post card */
.post-card {
	background: #fff;
	border: 1px solid rgba(26,35,50,0.08);
	border-radius: 1rem;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 32px rgba(26,35,50,0.1);
}

.post-card-image-wrap {
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #f4f2ef;
	display: block;
}

.post-card--featured .post-card-image-wrap { aspect-ratio: 16 / 9; }

@media (min-width: 640px) {
	.post-card--featured { grid-column: span 2; }
	.post-card--featured .post-card-image-wrap { aspect-ratio: 21 / 9; }
}

.post-card-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
	display: block;
}

.post-card:hover .post-card-image,
.post-card:hover .post-card-image-wrap img { transform: scale(1.04); }

.post-card-no-image {
	width: 100%;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f4f2ef 0%, #ebebea 100%);
}

.post-card-body {
	padding: 1.25rem 1.4rem 1.4rem;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.post-card-cat {
	display: inline-block;
	font-size: 0.7rem;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--color-primary, #e85d04);
	text-decoration: none;
	margin-bottom: 0.5rem;
}

.post-card-title {
	font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.35;
	color: #1a2332;
	margin: 0 0 0.6rem;
}

.post-card-title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.15s ease;
}

.post-card-title a:hover {
	color: var(--color-primary, #e85d04);
}

.post-card--featured .post-card-title { font-size: 1.25rem; }

.post-card-excerpt {
	font-size: 0.85rem;
	line-height: 1.65;
	color: #6b7280;
	flex: 1;
	margin: 0 0 1rem;
}

.post-card-meta {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	font-size: 0.75rem;
	color: #9ca3af;
	margin-top: auto;
}

.post-card-meta-sep { opacity: 0.4; }

/* Pagination */
.blog-pagination {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
}

.blog-pagination ul.page-numbers {
	display: flex;
	gap: 0.4rem;
	flex-wrap: wrap;
	list-style: none;
	margin: 0;
	padding: 0;
}

.blog-pagination ul.page-numbers li {
	display: inline-flex;
	margin: 0;
	padding: 0;
}

.blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.blog-pagination a.page-numbers,
.blog-pagination span.page-numbers,
.blog-pagination .nav-links a,
.blog-pagination .nav-links span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.25rem;
	height: 2.25rem;
	padding: 0 0.75rem;
	border-radius: 0.5rem;
	border: 1px solid rgba(26,35,50,0.12);
	font-size: 0.82rem;
	font-weight: 500;
	color: #6b7280;
	background: #fff;
	text-decoration: none;
	transition: all 0.15s ease;
}

.blog-pagination a.page-numbers:hover,
.blog-pagination .nav-links a:hover {
	border-color: var(--color-primary, #e85d04);
	color: var(--color-primary, #e85d04);
}

.blog-pagination .current,
.blog-pagination .page-numbers.current {
	background: var(--color-primary, #e85d04) !important;
	border-color: var(--color-primary, #e85d04) !important;
	color: #fff !important;
}

/* Sidebar */
.blog-sidebar-widget {
	background: #fff;
	border: 1px solid rgba(26,35,50,0.08);
	border-radius: 1rem;
	padding: 1.4rem;
}

.blog-sidebar-widget.bg-deep { border-color: transparent; }

.blog-sidebar-title {
	font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
	font-size: 0.9rem;
	font-weight: 600;
	color: #1a2332;
	margin: 0 0 1rem;
	padding-bottom: 0.6rem;
	border-bottom: 1px solid rgba(26,35,50,0.08);
}

/* ── Single post ─────────────────────────────────────────── */
.post-hero {
	position: relative;
	overflow: hidden;
}

.post-hero-image-wrap {
	position: absolute;
	inset: 0;
}

.post-hero-image {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
}

.post-hero-overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(to bottom, rgba(13,17,23,0.7) 0%, rgba(13,17,23,0.88) 100%);
}

/* Blog content typography */
.blog-content { font-size: 1rem; line-height: 1.8; color: #374151; }

.blog-content h2 {
	font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
	font-size: 1.375rem;
	font-weight: 700;
	color: #1a2332;
	margin: 2.25rem 0 0.875rem;
	line-height: 1.3;
}

.blog-content h3 {
	font-family: var(--font-display, 'Clash Display', system-ui, sans-serif);
	font-size: 1.125rem;
	font-weight: 600;
	color: #1a2332;
	margin: 1.75rem 0 0.625rem;
}

.blog-content p { margin: 0 0 1.25rem; }

.blog-content ul, .blog-content ol {
	margin: 0 0 1.25rem 1.5rem;
	space-y: 0.375rem;
}

.blog-content li { margin-bottom: 0.375rem; }

.blog-content a { color: var(--color-primary, #e85d04); text-decoration: underline; text-underline-offset: 2px; }
.blog-content a:hover { color: var(--color-primary-dark, #c44d03); }

.blog-content strong { font-weight: 600; color: #1a2332; }

.blog-content img {
	max-width: 100%;
	border-radius: 0.75rem;
	margin: 1.5rem 0;
	display: block;
}

.blog-content blockquote {
	border-left: 3px solid var(--color-primary, #e85d04);
	padding-left: 1.25rem;
	margin: 1.5rem 0;
	color: #4b5563;
	font-style: italic;
}

.blog-content table {
	width: 100%;
	border-collapse: collapse;
	font-size: 0.9375rem;
	margin: 1.5rem 0;
}

.blog-content th, .blog-content td {
	padding: 0.625rem 0.875rem;
	border: 1px solid rgba(26,35,50,0.08);
	text-align: left;
}

.blog-content th { background: #f4f2ef; font-weight: 600; color: #1a2332; }

/* Post nav */
.post-nav-link {
	display: flex;
	flex-direction: column;
	gap: 0.25rem;
	padding: 1rem;
	border: 1px solid rgba(26,35,50,0.08);
	border-radius: 0.875rem;
	text-decoration: none;
	transition: border-color 0.2s, box-shadow 0.2s;
}

.post-nav-link:hover {
	border-color: rgba(232,93,4,0.35);
	box-shadow: 0 4px 16px -8px color-mix(in srgb, var(--color-primary, #e85d04) 20%, transparent);
}

.post-nav-link--next { text-align: right; }
.post-nav-dir { font-size: 0.75rem; color: #9ca3af; }
.post-nav-title { font-size: 0.875rem; font-weight: 600; color: #1a2332; line-height: 1.3; }

/* ── Sticky add-to-cart bar ──────────────────────────────── */
.sticky-atc {
	position: fixed;
	bottom: -80px;
	left: 0;
	right: 0;
	z-index: 150;
	background: #1a2332;
	padding: 0.875rem 0;
	box-shadow: 0 -4px 24px rgba(13,17,23,0.25);
	transition: bottom 0.3s ease;
}

.sticky-atc.is-visible {
	bottom: 0;
}

.sticky-atc-btn {
	display: inline-flex;
	align-items: center;
	gap: 0.5rem;
	padding: 0.625rem 1.25rem;
	background: var(--color-primary, #e85d04);
	color: #fff;
	font-size: 0.875rem;
	font-weight: 700;
	border-radius: 9999px;
	text-decoration: none;
	transition: background-color 0.2s;
	border: none;
	cursor: pointer;
}

.sticky-atc-btn:hover { background: var(--color-primary-dark, #c44d03); color: #fff; }

/* Buy now button */
.buy-now-btn { cursor: pointer; }

/* Add-to-cart notice */
.wc-atc-notice { display: inline; }
.wc-atc-link { font-weight: 600; text-decoration: underline; margin-left: 4px; }
.wc-atc-checkout { color: var(--color-primary, #e85d04); }

/* ── Checkout UX ─────────────────────────────────────────── */

/* Inline validation highlight */
.woocommerce-invalid input,
.woocommerce-invalid select,
.woocommerce-invalid textarea {
	border-color: #ef4444 !important;
	box-shadow: 0 0 0 3px rgba(239,68,68,0.1) !important;
}

.woocommerce-validated input,
.woocommerce-validated select {
	border-color: #16a34a !important;
}

/* Express checkout area */
.woocommerce-express-checkout {
	padding: 1.25rem;
	background: #f4f2ef;
	border-radius: 0.875rem;
	margin-bottom: 1.5rem;
	text-align: center;
}

.woocommerce-express-checkout p {
	font-size: 0.8125rem;
	color: #6b7280;
	margin: 0.5rem 0 0;
}

/* Place order button loading state */
.place-order-btn.loading {
	opacity: 0.7;
	pointer-events: none;
}

.place-order-btn.loading::after {
	content: '';
	display: inline-block;
	width: 16px;
	height: 16px;
	border: 2px solid rgba(255,255,255,0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: spin 0.7s linear infinite;
	margin-left: 8px;
	vertical-align: middle;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Free shipping progress in cart */
.cart-free-shipping-bar {
	background: linear-gradient(90deg, var(--color-primary, #e85d04), #f97316);
	height: 4px;
	border-radius: 9999px;
	transition: width 0.5s ease;
}


/* ── Shop page fixes ─────────────────────────────────────── */

/* Category filter list — scrollable when there are many categories */
.filter-cat-list {
	scrollbar-width: thin;
	scrollbar-color: color-mix(in srgb, var(--color-primary, #e85d04) 30%, transparent) transparent;
}
.filter-cat-list::-webkit-scrollbar {
	width: 4px;
}
.filter-cat-list::-webkit-scrollbar-thumb {
	background: color-mix(in srgb, var(--color-primary, #e85d04) 30%, transparent);
	border-radius: 9999px;
}

/* Sticky sidebar scrollbar */
.sticky::-webkit-scrollbar { width: 4px; }
.sticky::-webkit-scrollbar-thumb { background: rgba(26,35,50,0.1); border-radius: 9999px; }

/* Ensure WooCommerce product grid uses our Tailwind classes and never floats */
.woocommerce ul.products,
.woocommerce-page ul.products {
	display: grid !important;
	grid-template-columns: repeat(2, 1fr) !important;
	gap: 1rem !important;
	margin: 0 !important;
	padding: 0 !important;
	float: none !important;
}

@media (min-width: 1024px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(3, 1fr) !important;
		gap: 1.25rem !important;
	}
}

@media (min-width: 1280px) {
	.woocommerce ul.products,
	.woocommerce-page ul.products {
		grid-template-columns: repeat(4, 1fr) !important;
	}
}

/* Override WC's per-row inline style that fights the grid */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
}

/* Product card — consistent height so grid rows align */
.woocommerce ul.products li.product .product-card,
.woocommerce ul.products li.product > article {
	height: 100%;
	display: flex;
	flex-direction: column;
}

/* Mobile: tighter padding on product card text */
@media (max-width: 639px) {
	.product-card .p-4 { padding: 0.75rem; }
	.product-image-wrap { aspect-ratio: 4 / 3; }
}

/* Filter drawer — ensure it sits above everything on mobile */
#filter-drawer { z-index: 400; }

/* Shop header — stack nicely on mobile */
@media (max-width: 639px) {
	.woocommerce-result-count { display: block; font-size: 0.8125rem; margin-top: 0.25rem; }
}
