﻿/* ============================================================
   AUTOMOTIVE PLUGIN — Professional Storefront Stylesheet
   Mobile-first. Min-width breakpoints: 640 px, 960 px.
   ============================================================ */

@import url("https://fonts.googleapis.com/css2?family=Barlow:wght@500;600;700&family=Source+Sans+3:wght@400;500;600;700&display=swap");

/* ── Variables ─────────────────────────────────────────────── */
:root {
--automotive-ink: #172036;
--automotive-muted: #596377;
--automotive-header-bg: #0f1f34;
--automotive-bg: #f5f1e9;
--automotive-surface: #ffffff;
--automotive-accent: #cc6a28;
--automotive-accent-dark: #a94f16;
--automotive-border: #ddd2c3;
--automotive-line: rgba(24, 35, 52, 0.12);
--automotive-shadow: 0 2px 10px rgba(20, 31, 48, 0.09);
--automotive-shadow-md: 0 10px 26px rgba(20, 31, 48, 0.16);
--automotive-radius: 6px;
--automotive-radius-lg: 10px;

/* Legacy aliases — keep WooCommerce surface tint references valid */
--automotive-rust: #cc6a28;
--automotive-rust-dark: #a94f16;
--automotive-steel: #596377;
--automotive-cream: #f5f1e9;
--automotive-sand: #f5f1e9;
}

/* ── Base ──────────────────────────────────────────────────── */
body {
background: var(--automotive-bg);
color: var(--automotive-ink);
font-family: "Source Sans 3", "Barlow", "Segoe UI", sans-serif;
margin: 0;
}

/* ── Shell ─────────────────────────────────────────────────── */
.automotive-shell {
box-sizing: border-box;
margin: 0 auto;
max-width: 1200px;
padding-left: 16px;
padding-right: 16px;
width: 100%;
}

/* ── Elementor full-bleed section resets ─────────────────────
   Strip default Elementor section/column/widget-container
   padding so full-bleed outer wrappers reach the viewport
   edge inside Elementor Canvas pages.                         */
.elementor-section:has(.automotive-header-outer),
.elementor-section:has(.automotive-trust-bar),
.elementor-section:has(.automotive-hero-outer),
.elementor-section:has(.automotive-browse-outer),
.elementor-section:has(.automotive-proof-outer),
.elementor-section:has(.automotive-footer-outer) {
padding: 0 !important;
}

.elementor-section:has(.automotive-header-outer) > .elementor-container,
.elementor-section:has(.automotive-trust-bar) > .elementor-container,
.elementor-section:has(.automotive-hero-outer) > .elementor-container,
.elementor-section:has(.automotive-browse-outer) > .elementor-container,
.elementor-section:has(.automotive-proof-outer) > .elementor-container,
.elementor-section:has(.automotive-footer-outer) > .elementor-container {
max-width: 100% !important;
padding: 0 !important;
}

.elementor-section:has(.automotive-header-outer) .elementor-widget-container,
.elementor-section:has(.automotive-trust-bar) .elementor-widget-container,
.elementor-section:has(.automotive-hero-outer) .elementor-widget-container,
.elementor-section:has(.automotive-browse-outer) .elementor-widget-container,
.elementor-section:has(.automotive-proof-outer) .elementor-widget-container,
.elementor-section:has(.automotive-footer-outer) .elementor-widget-container {
padding: 0 !important;
}

/* ── Header ────────────────────────────────────────────────── */
.automotive-header-outer {
background: var(--automotive-header-bg);
border-bottom: 1px solid rgba(255, 255, 255, 0.07);
position: sticky;
top: 0;
z-index: 100;
}

.automotive-header {
align-items: center;
display: flex;
gap: 8px;
height: 60px;
padding-block: 0;
}

.automotive-brand {
color: #ffffff;
flex-shrink: 0;
font-size: 0.95rem;
font-weight: 800;
letter-spacing: 0.12em;
text-decoration: none;
text-transform: uppercase;
}

/* Nav hidden on mobile; shown via JS on ≥ 960 px */
.automotive-primary-nav {
display: none;
}

.automotive-primary-nav a,
.automotive-footer-links a,
.automotive-brand-tile {
text-decoration: none;
}

/* Mobile dropdown */
.automotive-primary-nav.is-open {
background: var(--automotive-header-bg);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: var(--automotive-radius-lg);
display: flex;
flex-direction: column;
left: 12px;
padding: 10px;
position: absolute;
right: 12px;
top: calc(100% + 4px);
z-index: 200;
}

.automotive-primary-nav.is-open a {
border-radius: var(--automotive-radius);
display: block;
padding: 10px 14px;
width: 100%;
}

.automotive-primary-nav a {
border-radius: var(--automotive-radius);
color: rgba(255, 255, 255, 0.72);
font-size: 0.9rem;
font-weight: 500;
padding: 6px 10px;
transition: background 150ms, color 150ms;
}

.automotive-primary-nav a:hover,
.automotive-primary-nav a:focus-visible {
background: rgba(255, 255, 255, 0.1);
color: #ffffff;
}

/* Desktop CTA in header — hidden on mobile */
.automotive-header-cta {
display: none;
flex-shrink: 0;
margin-left: auto;
}

.automotive-mobile-toggle {
background: transparent !important;
border: 1px solid rgba(255, 255, 255, 0.22) !important;
border-radius: var(--automotive-radius);
color: #ffffff !important;
cursor: pointer;
display: flex;
font: inherit;
font-size: 0.82rem;
font-weight: 600;
margin-left: auto;
padding: 7px 14px;
}

body.automotive-nav-open {
overflow: hidden;
}

/* ── Trust Bar ─────────────────────────────────────────────── */
.automotive-trust-bar {
background: var(--automotive-accent);
}

.automotive-trust-bar-inner {
align-items: center;
display: flex;
flex-wrap: wrap;
gap: 10px 20px;
justify-content: center;
padding: 9px 16px;
}

.automotive-trust-item {
color: #ffffff;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.07em;
text-transform: uppercase;
}

/* ── Hero ──────────────────────────────────────────────────── */
.automotive-hero-outer {
background: linear-gradient(155deg, #0d1117 0%, #1a2636 100%);
border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.automotive-hero {
padding: 52px 16px 60px;
}

.automotive-eyebrow {
color: var(--automotive-accent);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.16em;
margin: 0 0 14px;
text-transform: uppercase;
}

.automotive-hero h1,
.automotive-page-intro h1 {
font-size: clamp(1.9rem, 5vw, 3.2rem);
line-height: 1.08;
margin: 0;
}

.automotive-hero h1 {
color: #ffffff;
margin-bottom: 16px;
max-width: 640px;
}

.automotive-hero p,
.automotive-footer p {
font-size: 1rem;
line-height: 1.7;
}

.automotive-hero p {
color: rgba(255, 255, 255, 0.58);
margin: 0 0 28px;
max-width: 520px;
}

.automotive-hero-actions,
.automotive-search-actions,
.automotive-footer-links {
display: flex;
flex-wrap: wrap;
gap: 10px;
}

/* ── Browse Strip ──────────────────────────────────────────── */
.automotive-browse-outer {
background: var(--automotive-surface);
border-bottom: 1px solid var(--automotive-border);
}

.automotive-browse-strip {
display: grid;
gap: 0;
grid-template-columns: 1fr;
}

.automotive-browse-panel {
border-bottom: 1px solid var(--automotive-border);
padding: 24px 16px;
}

.automotive-browse-panel:last-child {
border-bottom: none;
}

.automotive-browse-copy {
margin-bottom: 14px;
}

.automotive-browse-title {
color: var(--automotive-ink);
font-size: 0.95rem;
font-weight: 700;
line-height: 1.2;
margin: 0;
}

/* Summary is hidden on mobile for compactness */
.automotive-browse-summary {
display: none;
}

.automotive-browse-grid {
display: grid;
gap: 8px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.automotive-brand-tile {
align-items: center;
background: var(--automotive-bg);
border: 1px solid var(--automotive-border);
border-radius: var(--automotive-radius);
color: var(--automotive-ink);
display: flex;
font-size: 0.78rem;
font-weight: 700;
justify-content: center;
letter-spacing: 0.08em;
min-height: 44px;
padding: 8px;
text-transform: uppercase;
transition: background 150ms, border-color 150ms, color 150ms;
}

.automotive-brand-tile:hover,
.automotive-brand-tile:focus-visible {
background: var(--automotive-accent);
border-color: var(--automotive-accent);
color: #ffffff;
}

/* ── Page Intro ────────────────────────────────────────────── */
.automotive-page-intro {
padding: 36px 16px 24px;
}

.automotive-page-intro h1 {
color: var(--automotive-ink);
margin-bottom: 10px;
}

.automotive-page-intro p,
.automotive-footer p {
color: var(--automotive-muted);
max-width: 600px;
}

.automotive-page-intro p {
font-size: 0.95rem;
margin: 0;
}

/* ── Search ────────────────────────────────────────────────── */
.automotive-search {
background: var(--automotive-surface);
border: 1px solid var(--automotive-border);
border-radius: var(--automotive-radius-lg);
box-shadow: var(--automotive-shadow);
margin: 0 16px 20px;
padding: 20px;
}

.automotive-search-grid {
display: grid;
gap: 12px;
grid-template-columns: 1fr;
}

.automotive-search label {
color: var(--automotive-muted);
display: block;
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.1em;
margin-bottom: 5px;
text-transform: uppercase;
}

.automotive-search select,
.automotive-search input {
background: var(--automotive-bg);
border: 1px solid var(--automotive-border);
border-radius: var(--automotive-radius);
box-sizing: border-box;
color: var(--automotive-ink);
font: inherit;
font-size: 0.92rem;
height: 44px;
padding: 0 12px;
transition: border-color 150ms;
width: 100%;
}

.automotive-search select:focus,
.automotive-search input:focus {
border-color: var(--automotive-accent);
outline: none;
}

.automotive-search-actions {
margin-top: 14px;
}

.automotive-search-status {
color: var(--automotive-muted);
font-size: 0.85rem;
margin: 10px 0 0;
}

.automotive-search-status.is-error {
color: #b91c1c;
}

/* ── Buttons ───────────────────────────────────────────────── */
/* Qualify with element tag (specificity 0,1,1) to beat Elementor's
   [type=submit], button reset (specificity 0,1,0) that loads after us. */
a.automotive-button,
button.automotive-button,
input.automotive-button,
.automotive-button {
align-items: center;
background-color: transparent;
border: none !important;
border-radius: var(--automotive-radius);
cursor: pointer;
display: inline-flex;
font: inherit;
font-size: 0.88rem;
font-weight: 700;
justify-content: center;
letter-spacing: 0.02em;
min-height: 44px;
padding: 0 20px;
text-decoration: none;
transition: background 150ms, box-shadow 150ms, transform 150ms;
white-space: nowrap;
}

a.automotive-button:hover,
button.automotive-button:hover,
.automotive-button:hover,
a.automotive-button:focus-visible,
button.automotive-button:focus-visible,
.automotive-button:focus-visible {
box-shadow: var(--automotive-shadow-md);
transform: translateY(-1px);
}

a.automotive-button-primary,
button.automotive-button-primary,
.automotive-button-primary {
background: var(--automotive-accent) !important;
border: none !important;
color: #ffffff !important;
}

a.automotive-button-primary:hover,
button.automotive-button-primary:hover,
.automotive-button-primary:hover,
a.automotive-button-primary:focus-visible,
button.automotive-button-primary:focus-visible,
.automotive-button-primary:focus-visible {
background: var(--automotive-accent-dark) !important;
color: #ffffff !important;
}

a.automotive-button-secondary,
button.automotive-button-secondary,
.automotive-button-secondary {
background: var(--automotive-surface);
border: 1px solid var(--automotive-border) !important;
color: var(--automotive-ink) !important;
}

a.automotive-button-secondary:hover,
button.automotive-button-secondary:hover,
.automotive-button-secondary:hover,
a.automotive-button-secondary:focus-visible,
button.automotive-button-secondary:focus-visible,
.automotive-button-secondary:focus-visible {
background: var(--automotive-bg);
color: var(--automotive-ink) !important;
}

a.automotive-button-ghost,
button.automotive-button-ghost,
.automotive-button-ghost {
background: transparent !important;
border: 1px solid rgba(255, 255, 255, 0.3) !important;
color: #ffffff !important;
}

a.automotive-button-ghost:hover,
button.automotive-button-ghost:hover,
.automotive-button-ghost:hover,
a.automotive-button-ghost:focus-visible,
button.automotive-button-ghost:focus-visible,
.automotive-button-ghost:focus-visible {
background: rgba(255, 255, 255, 0.1) !important;
color: #ffffff !important;
}

/* ── Proof / Testimonials ──────────────────────────────────── */
.automotive-proof-outer {
background: var(--automotive-header-bg);
}

.automotive-proof-strip {
background: transparent;
border: none;
border-radius: 0;
box-shadow: none;
margin: 0;
padding: 48px 16px 56px;
}

.automotive-proof-head {
margin-bottom: 32px;
}

.automotive-proof-head .automotive-eyebrow {
color: var(--automotive-accent);
}

.automotive-proof-head h2 {
color: #ffffff;
font-size: clamp(1.4rem, 3vw, 2rem);
font-weight: 800;
line-height: 1.1;
margin: 0 0 8px;
}

.automotive-proof-head p:last-child {
color: rgba(255, 255, 255, 0.48);
font-size: 0.9rem;
margin: 0;
max-width: 520px;
}

.automotive-proof-grid {
display: grid;
gap: 12px;
grid-template-columns: 1fr;
margin-top: 0;
}

.automotive-proof-card {
background: rgba(255, 255, 255, 0.05);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: var(--automotive-radius-lg);
padding: 20px;
}

.automotive-proof-rating {
color: var(--automotive-accent);
font-size: 0.72rem;
font-weight: 700;
letter-spacing: 0.14em;
margin: 0 0 10px;
text-transform: uppercase;
}

.automotive-proof-card h3 {
color: #ffffff;
font-size: 0.97rem;
font-weight: 700;
line-height: 1.4;
margin: 0 0 8px;
}

.automotive-proof-card p {
color: rgba(255, 255, 255, 0.52);
font-size: 0.88rem;
line-height: 1.6;
margin: 0 0 12px;
}

.automotive-proof-card span {
color: rgba(255, 255, 255, 0.38);
font-size: 0.8rem;
font-weight: 600;
}

/* Author row with avatar */
.automotive-proof-author {
align-items: center;
border-top: 1px solid rgba(255, 255, 255, 0.08);
display: flex;
gap: 12px;
margin-top: 16px;
padding-top: 14px;
}

.automotive-proof-avatar {
align-items: center;
background: var(--automotive-accent);
border-radius: 50%;
color: #ffffff;
display: flex;
flex-shrink: 0;
font-size: 0.72rem;
font-weight: 800;
height: 38px;
justify-content: center;
letter-spacing: 0.04em;
width: 38px;
}

.automotive-proof-name {
color: rgba(255, 255, 255, 0.55);
font-size: 0.8rem;
font-weight: 600;
line-height: 1.3;
}

/* ── Footer ────────────────────────────────────────────────── */
.automotive-footer-outer {
background: var(--automotive-header-bg);
border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.automotive-footer {
background: transparent;
border: none;
border-radius: 0;
box-shadow: none;
display: grid;
gap: 24px;
align-items: start;
grid-template-columns: 1fr;
margin: 0;
padding: 40px 16px 24px;
}

.automotive-footer-brand-block {
align-content: start;
display: grid;
gap: 10px;
}

.automotive-footer-logo {
color: #ffffff;
font-size: 1rem;
font-weight: 800;
letter-spacing: 0.1em;
text-transform: uppercase;
}

.automotive-footer-blurb {
color: rgba(255, 255, 255, 0.48);
font-size: 0.88rem;
line-height: 1.6;
margin: 0;
}

.automotive-footer-badges {
display: flex;
flex-wrap: wrap;
gap: 8px;
}

.automotive-footer-badges span {
background: rgba(255, 255, 255, 0.06);
border: 1px solid rgba(255, 255, 255, 0.1);
border-radius: 999px;
color: rgba(255, 255, 255, 0.6);
font-size: 0.72rem;
font-weight: 700;
padding: 5px 10px;
}

.automotive-footer-columns {
align-content: start;
display: grid;
gap: 24px;
grid-template-columns: 1fr;
}

.automotive-footer-column {
align-content: start;
display: grid;
gap: 12px;
}

.automotive-footer-column h3 {
color: #ffffff;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.14em;
margin: 0;
text-transform: uppercase;
}

.automotive-footer-contact-column {
gap: 16px;
scroll-margin-top: 84px;
}

.automotive-footer-contact-list {
display: grid;
gap: 14px;
}

.automotive-footer-contact-item {
align-items: center;
display: grid;
gap: 12px;
grid-template-columns: 22px minmax(0, 1fr);
}

.automotive-footer-contact-icon {
align-items: center;
color: var(--automotive-accent);
display: inline-flex;
height: 22px;
justify-content: center;
width: 22px;
}

.automotive-footer-contact-icon svg,
.automotive-footer-social-link svg {
display: block;
height: 20px;
width: 20px;
}

.automotive-footer-contact-copy {
min-width: 0;
}

.automotive-footer-nav {
display: grid;
gap: 10px;
}

.automotive-footer-nav a,
.automotive-footer-contact-copy a,
.automotive-footer-contact-copy span {
color: rgba(255, 255, 255, 0.6);
font-size: 0.95rem;
line-height: 1.55;
text-decoration: none;
transition: color 150ms;
}

.automotive-footer-nav a:hover,
.automotive-footer-nav a:focus-visible,
.automotive-footer-contact-copy a:hover,
.automotive-footer-contact-copy a:focus-visible {
color: #ffffff;
}

.automotive-footer-social {
display: grid;
gap: 12px;
margin-top: 4px;
}

.automotive-footer-social h4 {
color: #ffffff;
font-size: 0.78rem;
font-weight: 800;
letter-spacing: 0.14em;
margin: 0;
text-transform: uppercase;
}

.automotive-footer-social-links {
display: flex;
flex-wrap: wrap;
gap: 12px;
}

.automotive-footer-social-link {
align-items: center;
background: rgba(255, 255, 255, 0.08);
border: 1px solid rgba(255, 255, 255, 0.08);
border-radius: 999px;
color: #ffffff;
display: inline-flex;
height: 44px;
justify-content: center;
transition: background 150ms, border-color 150ms, color 150ms;
width: 44px;
}

.automotive-footer-social-link:hover,
.automotive-footer-social-link:focus-visible {
background: rgba(255, 255, 255, 0.14);
border-color: rgba(255, 255, 255, 0.18);
color: #ffffff;
}

.automotive-footer-bottom {
border-top: 1px solid rgba(255, 255, 255, 0.06);
padding: 18px 0 0;
text-align: center;
}

.automotive-footer-bottom p {
color: rgba(255, 255, 255, 0.3);
font-size: 0.76rem;
margin: 0;
max-width: none;
}

/* ── WooCommerce Surface ───────────────────────────────────── */
.automotive-woocommerce-surface {
background: var(--automotive-surface);
border: 1px solid var(--automotive-border);
border-radius: var(--automotive-radius-lg);
box-shadow: var(--automotive-shadow);
margin: 0 16px 20px;
padding: 20px;
}

.automotive-woocommerce-shell-frame {
padding-bottom: 20px;
}

.automotive-woocommerce-breadcrumb {
color: var(--automotive-muted);
font-size: 0.88rem;
margin-bottom: 16px;
}

.automotive-woocommerce-surface .woocommerce-breadcrumb,
.automotive-woocommerce-surface .woocommerce-result-count,
.automotive-woocommerce-surface .woocommerce-ordering {
margin-bottom: 16px;
}

.automotive-woocommerce-surface .woocommerce-ordering select,
.automotive-woocommerce-surface .quantity .qty,
.automotive-woocommerce-surface .variations select {
border: 1px solid var(--automotive-border);
border-radius: var(--automotive-radius);
height: 40px;
padding: 0 10px;
}

/* Product grid — 2 cols on mobile */
.automotive-woocommerce-surface ul.products,
.woocommerce .automotive-woocommerce-surface ul.products,
.elementor-widget-shortcode ul.products.columns-4 {
display: grid;
gap: 14px;
grid-template-columns: repeat(2, minmax(0, 1fr));
margin: 0 auto;
padding: 0;
width: 100%;
}

/* Suppress WooCommerce clearfix pseudo-elements */
.automotive-woocommerce-surface ul.products::before,
.automotive-woocommerce-surface ul.products::after,
.woocommerce .automotive-woocommerce-surface ul.products::before,
.woocommerce .automotive-woocommerce-surface ul.products::after,
.elementor-widget-shortcode ul.products.columns-4::before,
.elementor-widget-shortcode ul.products.columns-4::after {
content: none;
display: none;
}

.automotive-woocommerce-surface ul.products li.product,
.woocommerce .automotive-woocommerce-surface ul.products li.product,
.elementor-widget-shortcode ul.products.columns-4 li.product {
background: var(--automotive-surface);
border: 1px solid var(--automotive-border);
border-radius: var(--automotive-radius-lg);
box-shadow: var(--automotive-shadow);
box-sizing: border-box;
clear: none;
display: flex;
flex-direction: column;
float: none;
justify-self: stretch;
list-style: none;
margin: 0;
max-width: none;
overflow: hidden;
padding: 0;
width: 100%;
}

/* WooCommerce global float reset — also kill the 768 px float rule */
.woocommerce ul.products li.product,
.woocommerce-page ul.products li.product,
.elementor-widget-shortcode .woocommerce ul.products li.product {
box-sizing: border-box;
clear: none;
float: none !important;
margin: 0 !important;
max-width: none;
width: 100% !important;
}

/* ── Product card inner layout ───────────────────────────── */

/* Primary link wraps image + title + rating + price */
.automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link,
.woocommerce .automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link,
.elementor-widget-shortcode ul.products.columns-4 li.product a.woocommerce-LoopProduct-link {
display: flex;
flex-direction: column;
flex: 1;
text-decoration: none;
color: inherit;
}

/* Product image — full width, fixed square, no gap below */
.automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link img,
.woocommerce .automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link img,
.elementor-widget-shortcode ul.products.columns-4 li.product a.woocommerce-LoopProduct-link img {
aspect-ratio: 1 / 1;
display: block;
object-fit: cover;
width: 100%;
border-radius: var(--automotive-radius-lg) var(--automotive-radius-lg) 0 0;
}

/* Text area below image */
.automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link h2,
.automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link .woocommerce-loop-product__title,
.woocommerce .automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link h2,
.elementor-widget-shortcode ul.products.columns-4 li.product a.woocommerce-LoopProduct-link h2 {
font-size: 0.88rem;
font-weight: 600;
line-height: 1.35;
margin: 12px 14px 4px;
color: var(--automotive-ink);
}

.automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link .star-rating,
.woocommerce .automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link .star-rating,
.elementor-widget-shortcode ul.products.columns-4 li.product a.woocommerce-LoopProduct-link .star-rating {
margin: 0 14px 6px;
}

.automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link .price,
.woocommerce .automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link .price,
.elementor-widget-shortcode ul.products.columns-4 li.product a.woocommerce-LoopProduct-link .price {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 4px;
margin: 4px 14px 12px;
font-size: 0.95rem;
font-weight: 700;
color: var(--automotive-accent);
}

.automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link .price del,
.woocommerce .automotive-woocommerce-surface ul.products li.product a.woocommerce-LoopProduct-link .price del,
.elementor-widget-shortcode ul.products.columns-4 li.product a.woocommerce-LoopProduct-link .price del {
color: var(--automotive-muted);
font-size: 0.8rem;
font-weight: 400;
}

/* Sale badge */
.automotive-woocommerce-surface ul.products li.product .onsale,
.woocommerce .automotive-woocommerce-surface ul.products li.product .onsale,
.elementor-widget-shortcode ul.products.columns-4 li.product .onsale {
background: var(--automotive-accent);
border-radius: 4px;
color: #fff;
font-size: 0.7rem;
font-weight: 700;
left: 10px;
padding: 2px 7px;
position: absolute;
top: 10px;
z-index: 1;
}

.automotive-woocommerce-surface ul.products li.product,
.woocommerce .automotive-woocommerce-surface ul.products li.product,
.elementor-widget-shortcode ul.products.columns-4 li.product {
position: relative;
}

/* Add to cart button — pinned to card bottom */
.automotive-woocommerce-surface ul.products li.product .button,
.woocommerce .automotive-woocommerce-surface ul.products li.product .button,
.elementor-widget-shortcode ul.products.columns-4 li.product .button {
background: var(--automotive-accent);
border: none;
border-radius: 0 0 var(--automotive-radius-lg) var(--automotive-radius-lg);
color: #ffffff;
cursor: pointer;
display: block;
font-size: 0.82rem;
font-weight: 700;
margin-top: auto;
padding: 10px 14px;
text-align: center;
text-decoration: none;
transition: background 0.15s;
width: 100%;
}

.automotive-woocommerce-surface ul.products li.product .button:hover,
.woocommerce .automotive-woocommerce-surface ul.products li.product .button:hover,
.elementor-widget-shortcode ul.products.columns-4 li.product .button:hover {
background: var(--automotive-accent-dark);
}

/* ── Single Product ────────────────────────────────────────── */
.automotive-single-product-surface .product {
display: grid;
gap: 20px;
grid-template-columns: 1fr;
}

.automotive-single-product-surface .woocommerce-product-gallery,
.automotive-single-product-surface .summary.entry-summary {
background: var(--automotive-surface);
border: 1px solid var(--automotive-border);
border-radius: var(--automotive-radius-lg);
padding: 18px;
}

.automotive-single-product-surface .summary.entry-summary .price {
color: var(--automotive-accent);
font-size: 1.4rem;
font-weight: 800;
}

.automotive-single-product-surface .single_add_to_cart_button,
.automotive-woocommerce-surface .return-to-shop .button,
.automotive-woocommerce-surface .woocommerce-pagination .page-numbers.current,
.automotive-woocommerce-surface .woocommerce-pagination a.page-numbers {
background: var(--automotive-accent);
border-radius: var(--automotive-radius);
color: #ffffff;
text-decoration: none;
}

.automotive-single-product-surface .product_meta,
.automotive-single-product-surface .woocommerce-tabs,
.automotive-single-product-surface .related.products {
grid-column: 1 / -1;
margin-top: 24px;
}

/* ── Tablet ≥ 640 px ───────────────────────────────────────── */
@media (min-width: 640px) {
.automotive-browse-strip {
grid-template-columns: 1fr 1fr;
}

.automotive-browse-panel {
border-bottom: none;
border-right: 1px solid var(--automotive-border);
padding: 28px 24px;
}

.automotive-browse-panel:last-child {
border-right: none;
}

.automotive-browse-summary {
color: var(--automotive-muted);
display: block;
font-size: 0.83rem;
line-height: 1.55;
margin: 6px 0 14px;
}

.automotive-browse-grid {
grid-template-columns: repeat(4, minmax(0, 1fr));
}

.automotive-search-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.automotive-proof-grid {
gap: 14px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}

.automotive-footer-columns {
gap: 28px 32px;
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}

/* ── Desktop ≥ 960 px ──────────────────────────────────────── */
@media (min-width: 960px) {
.automotive-primary-nav {
align-items: center;
display: flex;
flex: 1;
gap: 2px;
margin-left: 28px;
}

/* Reset mobile dropdown positioning when at desktop width */
.automotive-primary-nav.is-open {
background: transparent;
border: none;
border-radius: 0;
flex-direction: row;
left: auto;
padding: 0;
position: static;
right: auto;
top: auto;
z-index: auto;
}

.automotive-primary-nav.is-open a {
display: inline-flex;
padding: 6px 10px;
width: auto;
}

button.automotive-mobile-toggle,
.automotive-mobile-toggle {
display: none !important;
}

.automotive-header-cta {
display: inline-flex;
}

.automotive-browse-panel {
padding: 32px 28px;
}

.automotive-search {
margin: 0 auto 24px;
width: min(1200px, calc(100% - 32px));
}

.automotive-search-grid {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.automotive-woocommerce-surface {
margin: 0 auto 24px;
width: min(1200px, calc(100% - 32px));
}

.automotive-woocommerce-surface ul.products,
.woocommerce .automotive-woocommerce-surface ul.products,
.elementor-widget-shortcode ul.products.columns-4 {
gap: 20px;
grid-template-columns: repeat(4, minmax(0, 1fr));
}

.elementor-widget-shortcode ul.products.columns-4 {
width: min(1200px, calc(100% - 32px));
}

.automotive-single-product-surface .product {
grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
}

.automotive-footer {
gap: 40px;
grid-template-columns: minmax(260px, 0.95fr) minmax(0, 2fr);
}

.automotive-footer-columns {
grid-template-columns: repeat(3, minmax(0, 1fr));
}

.automotive-proof-grid {
gap: 16px;
grid-template-columns: repeat(3, minmax(0, 1fr));
}
}
