/**
 * Components — Buttons, Cards, Badges, Forms, Homepage Sections
 *
 * Composants UI réutilisables du thème Bipauto.
 *
 * @package Bipauto
 * @since   1.0.0
 */

/* ══════════════════════════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════════════════════════ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 12px 28px;
    font-family: var(--font-body);
    font-size: var(--text-body-sm);
    font-weight: 600;
    line-height: 1;
    border: none;
    border-radius: var(--radius-full);
    cursor: pointer;
    text-decoration: none;
    transition: all var(--transition-smooth);
    white-space: nowrap;
}

/* Primary (green gradient) */
.btn-primary {
    background: var(--gradient-primary);
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(8, 159, 0, 0.25);
}

.btn-primary:hover {
    background: var(--color-green-light);
    box-shadow: var(--glow-md);
    transform: translateY(-2px);
    color: var(--color-white);
}

.btn-primary:active {
    transform: translateY(0);
    background: var(--color-green-dark);
}

/* Outline */
.btn-outline {
    background: transparent;
    color: var(--color-green);
    border: 2px solid var(--color-green);
    padding: 10px 26px;
}

.btn-outline:hover {
    background: rgba(8, 159, 0, 0.1);
    box-shadow: var(--glow-sm);
    border-color: var(--color-green-light);
    color: var(--color-green-light);
}

/* WhatsApp */
.btn-whatsapp {
    background: #25D366;
    color: var(--color-white);
    box-shadow: 0 2px 8px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
    background: #20BD5A;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    transform: translateY(-2px);
    color: var(--color-white);
}

.btn-whatsapp:active {
    transform: translateY(0);
}

/* Sizes */
.btn-lg {
    padding: 16px 36px;
    font-size: var(--text-body);
}

.btn-xl {
    padding: 18px 44px;
    font-size: 1.125rem;
}

.btn-sm {
    padding: 8px 20px;
    font-size: var(--text-caption);
}

/* ══════════════════════════════════════════════════════════
   HERO SLIDER
   ══════════════════════════════════════════════════════════ */

.hero-slider {
    position: relative;
    width: 100%;
    min-height: 600px;
    overflow: hidden;
    background: #040404;
}

@media (min-width: 768px) {
    .hero-slider {
        min-height: 680px;
    }
}

@media (min-width: 1024px) {
    .hero-slider {
        min-height: max(760px, 88vh);
    }
}

/* ── Slider Track ─────────────────────────────────────────── */
.hero-slider__track {
    position: relative;
    width: 100%;
    height: 100%;
}

/* ── Individual Slide ─────────────────────────────────────── */
.hero-slide {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    opacity: 0;
    visibility: hidden;
    z-index: 0;
    transition: opacity 800ms ease, visibility 800ms ease;
}

.hero-slide.is-active {
    position: relative;
    opacity: 1;
    visibility: visible;
    z-index: 1;
}

/* ── Slide Image ──────────────────────────────────────────── */
.hero-slide__image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center right;
    z-index: 0;
}

@media (max-width: 767px) {
    .hero-slide__image {
        object-position: 65% center;
    }
}

/* ── Overlay Gradient ─────────────────────────────────────── */
.hero-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, 0.88) 0%,
            rgba(0, 0, 0, 0.72) 35%,
            rgba(0, 0, 0, 0.35) 62%,
            rgba(0, 0, 0, 0.12) 100%
        ),
        linear-gradient(
            180deg,
            rgba(4, 4, 4, 0.25) 0%,
            transparent 25%,
            transparent 75%,
            rgba(4, 4, 4, 0.4) 100%
        );
    pointer-events: none;
}

/* Subtle green radial glow */
.hero-slide__overlay::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 50% 60% at 25% 50%,
        rgba(8, 159, 0, 0.06) 0%,
        transparent 70%
    );
    pointer-events: none;
}

/* ── Slide Content ────────────────────────────────────────── */
.hero-slide__content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    text-align: left;
    max-width: 560px;
    /* Override .container centering — push content to the left */
    margin-left: clamp(1.25rem, 7vw, 7rem);
    margin-right: auto;
    padding-top: var(--space-24);
    padding-bottom: var(--space-16);
    padding-inline: 1.25rem;
    min-height: 600px;
}

@media (max-width: 767px) {
    .hero-slide__content {
        align-items: center;
        text-align: center;
        max-width: 95%;
        margin-left: auto;
        margin-right: auto;
        justify-content: flex-end;
        min-height: 620px;
        padding-top: 0;
        padding-bottom: 4.5rem;
        padding-inline: 1.25rem;
    }

    .hero-slide__title {
        max-width: 15ch;
        margin-left: auto;
        margin-right: auto;
        margin-bottom: var(--space-5);
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        line-height: 1.05;
    }

    .hero-slide__eyebrow {
        text-align: center;
        margin-left: auto;
        margin-right: auto;
    }


    .hero-slide__actions {
        justify-content: center;
        width: 100%;
    }

    .hero-slide__actions .btn-whatsapp {
        display: none;
    }

    .hero-slide__actions .btn {
        width: min(100%, 260px);
        margin-inline: auto;
    }

    .hero-slide__description {
        display: none;
    }
}

/* ── Eyebrow ──────────────────────────────────────────────── */
.hero-slide__eyebrow {
    font-size: var(--text-overline);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--color-green);
    margin-bottom: var(--space-4);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease 200ms, transform 600ms ease 200ms;
}

.hero-slide.is-active .hero-slide__eyebrow {
    opacity: 1;
    transform: translateY(0);
}

/* ── Title ────────────────────────────────────────────────── */
.hero-slide__title {
    font-size: clamp(2.4rem, 5vw, 5.2rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: var(--tracking-tight);
    color: #FFFFFF;
    margin-bottom: var(--space-6);
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 600ms ease 350ms, transform 600ms ease 350ms;
}

.hero-slide.is-active .hero-slide__title {
    opacity: 1;
    transform: translateY(0);
}

/* ── Description ──────────────────────────────────────────── */
.hero-slide__description {
    font-size: 1.0625rem;
    line-height: var(--leading-relaxed);
    color: rgba(255, 255, 255, 0.75);
    max-width: 48ch;
    margin-bottom: var(--space-8);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease 500ms, transform 600ms ease 500ms;
}

.hero-slide.is-active .hero-slide__description {
    opacity: 1;
    transform: translateY(0);
}

@media (min-width: 1024px) {
    .hero-slide__description {
        font-size: 1.125rem;
    }
}

/* ── Actions ──────────────────────────────────────────────── */
.hero-slide__actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-4);
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 600ms ease 650ms, transform 600ms ease 650ms;
}

.hero-slide.is-active .hero-slide__actions {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 479px) {
    .hero-slide__actions {
        flex-direction: column;
    }

    .hero-slide__actions .btn {
        width: 100%;
        justify-content: center;
    }
}

/* ══════════════════════════════════════════════════════════
   HERO SLIDER CONTROLS (prev/next)
   ══════════════════════════════════════════════════════════ */

.hero-slider__control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--radius-full);
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: all var(--transition-smooth);
}

.hero-slider__control:hover {
    background: rgba(8, 159, 0, 0.2);
    border-color: rgba(8, 159, 0, 0.4);
    color: #FFFFFF;
    box-shadow: var(--glow-sm);
}

.hero-slider__control:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

.hero-slider__control--prev {
    left: var(--space-4);
}

.hero-slider__control--next {
    right: var(--space-4);
}

@media (min-width: 1024px) {
    .hero-slider__control {
        width: 52px;
        height: 52px;
    }

    .hero-slider__control--prev {
        left: var(--space-8);
    }

    .hero-slider__control--next {
        right: var(--space-8);
    }
}

/* Hide controls on very small screens — dots are enough */
@media (max-width: 479px) {
    .hero-slider__control {
        width: 40px;
        height: 40px;
    }
}

/* ══════════════════════════════════════════════════════════
   HERO SLIDER DOTS
   ══════════════════════════════════════════════════════════ */

.hero-slider__dots {
    position: absolute;
    bottom: var(--space-8);
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 12px;
}

.hero-slider__dot {
    width: 10px;
    height: 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.3);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all 350ms ease;
}

.hero-slider__dot:hover {
    background: rgba(255, 255, 255, 0.6);
    transform: scale(1.2);
}

.hero-slider__dot.is-active {
    background: var(--color-green);
    width: 28px;
    border-radius: 5px;
    box-shadow: 0 0 8px rgba(8, 159, 0, 0.5);
}

.hero-slider__dot:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 3px;
}

/* ══════════════════════════════════════════════════════════
   HERO SLIDER — REDUCED MOTION
   ══════════════════════════════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
    .hero-slide {
        transition: none;
    }

    .hero-slide__eyebrow,
    .hero-slide__title,
    .hero-slide__description,
    .hero-slide__actions {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .hero-slider__dot {
        transition: none;
    }

    .hero-slider__control {
        transition: none;
    }
}

/* ══════════════════════════════════════════════════════════
   HERO SLIDER — LIGHT MODE
   ══════════════════════════════════════════════════════════ */

html.light .hero-slider {
    background: var(--lm-surface-2);
}

html.light .hero-slide__overlay {
    background:
        linear-gradient(
            90deg,
            rgba(245, 245, 245, 0.95) 0%,
            rgba(245, 245, 245, 0.82) 30%,
            rgba(245, 245, 245, 0.5) 55%,
            rgba(245, 245, 245, 0.15) 75%,
            transparent 100%
        ),
        linear-gradient(
            180deg,
            rgba(245, 245, 245, 0.35) 0%,
            transparent 30%,
            transparent 70%,
            rgba(245, 245, 245, 0.55) 100%
        );
}

html.light .hero-slide__overlay::after {
    background: radial-gradient(
        ellipse 50% 60% at 25% 50%,
        rgba(8, 159, 0, 0.04) 0%,
        transparent 70%
    );
}

html.light .hero-slide__title {
    color: var(--lm-text);
}

html.light .hero-slide__description {
    color: var(--lm-text-secondary);
}

html.light .hero-slider__control {
    background: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.1);
    color: rgba(0, 0, 0, 0.6);
}

html.light .hero-slider__control:hover {
    background: rgba(8, 159, 0, 0.12);
    border-color: rgba(8, 159, 0, 0.3);
    color: var(--color-green);
}

html.light .hero-slider__dot {
    background: rgba(0, 0, 0, 0.2);
}

html.light .hero-slider__dot:hover {
    background: rgba(0, 0, 0, 0.4);
}

html.light .hero-slider__dot.is-active {
    background: var(--color-green);
}
@media (max-width: 767px) {
    .hero-slide__overlay {
        background:
            linear-gradient(
                0deg,
                rgba(0, 0, 0, 0.88) 0%,
                rgba(0, 0, 0, 0.68) 32%,
                rgba(0, 0, 0, 0.34) 62%,
                rgba(0, 0, 0, 0.08) 100%
            );
    }

    html.light .hero-slide__overlay {
        background:
            linear-gradient(
                0deg,
                rgba(245, 245, 245, 1.00) 0%,
                rgba(245, 245, 245, 0.95) 34%,
                rgba(245, 245, 245, 0.72) 55%,
                rgba(245, 245, 245, 0.22) 75%,
                rgba(245, 245, 245, 0.08) 100%
            );
    }
}

/* ══════════════════════════════════════════════════════════
   VEHICLE SEARCH
   ══════════════════════════════════════════════════════════ */

.section-search {
    background: var(--surface-1);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.search-form-wrapper {
    max-width: 800px;
    margin: var(--space-8) auto 0;
}

.vehicle-search-form .search-fields {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 768px) {
    .vehicle-search-form .search-fields {
        grid-template-columns: 1fr 1fr auto;
        align-items: end;
    }
}

.search-field label {
    display: block;
    font-size: var(--text-body-sm);
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: var(--space-2);
}

.search-field select {
    width: 100%;
    height: 48px;
    padding: 0 var(--space-4);
    background: var(--surface-3);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    color: var(--text);
    font-size: var(--text-body-sm);
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5l3 3 3-3' stroke='%236B6B6B' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    transition: border-color var(--transition-fast),
                box-shadow var(--transition-fast);
}

.search-field select:focus {
    border-color: var(--color-green);
    box-shadow: var(--glow-sm);
    outline: none;
}

.search-field select:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.vehicle-search-form .btn {
    height: 48px;
    width: 100%;
}

@media (min-width: 768px) {
    .vehicle-search-form .btn {
        width: auto;
    }
}

.search-field select.has-error {
    border-color: #ff4a4a;
    box-shadow: 0 0 0 1px rgba(255, 74, 74, 0.3);
}

/* ══════════════════════════════════════════════════════════
   BRANDS GRID
   ══════════════════════════════════════════════════════════ */

.section-brands {
    padding-block: clamp(4rem, 8vw, 7rem);
}

.brands-grid {
    width: min(100%, 1120px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: var(--space-8);
}

@media (min-width: 640px) {
    .brands-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .brands-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* ── Brand Card ───────────────────────────────────────────── */
.brand-card {
    min-height: 150px;
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        radial-gradient(circle at 50% 0%, rgba(8, 159, 0, 0.16), transparent 55%),
        rgba(255, 255, 255, 0.035);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.85rem;
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

/* Animated shine line — decorative top accent */
.brand-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(137, 240, 0, 0.12) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 500ms ease;
    pointer-events: none;
}

.brand-card:hover::before {
    transform: translateX(120%);
}

.brand-card:hover {
    transform: translateY(-4px);
    border-color: rgba(137, 240, 0, 0.45);
    box-shadow: 0 18px 45px rgba(8, 159, 0, 0.18);
    background:
        radial-gradient(circle at 50% 0%, rgba(8, 159, 0, 0.24), transparent 60%),
        rgba(255, 255, 255, 0.055);
}

.brand-card:active {
    transform: translateY(-1px);
}

.brand-card:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

/* ── Logo Wrapper ─────────────────────────────────────────── */
.brand-card__logo-wrap {width: 96px;
height: 64px;
display: flex;
align-items: center;
justify-content: center;
padding: 0.45rem;
border-radius: 16px;
background: rgba(255, 255, 255, 0.92);}
/* ── Logo Image ───────────────────────────────────────────── */
.brand-card__logo {
    display: block;
    max-width: 100%;
    max-height: 52px;
    object-fit: contain;
}

/* ── Logo Fallback ────────────────────────────────────────── */
.brand-card__logo-fallback {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: var(--radius-md);
    background: rgba(8, 159, 0, 0.08);
    color: var(--color-green);
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* ── Brand Name ───────────────────────────────────────────── */
.brand-card__name {
    color: var(--text, #ffffff);
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 200ms ease;
}

.brand-card:hover .brand-card__name {
    color: var(--color-green);
}

/* ── Disclaimer ───────────────────────────────────────────── */
.brands-disclaimer {
    margin-top: clamp(1.5rem, 4vw, 2.5rem);
    font-size: 0.6875rem;
    line-height: 1.5;
    color: var(--text-muted);
    text-align: center;
    max-width: 820px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Brands — Light Mode ──────────────────────────────────── */
html.light .brand-card {background: var(--lm-surface-1);border-color: var(--lm-border);}

html.light .brand-card {border-color: rgba(8, 159, 0, 0.3);box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);background: var(--lm-surface-2);}

html.light .brand-card__logo-wrap {background: rgba(0, 0, 0, 0.04);}

html.light .brand-card__name {color: var(--lm-text);}

html.light .brand-card .brand-card__name {color: var(--color-green);}

/* ── Brands — Reduced Motion ──────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .brand-card {
        transition: none;
    }

    .brand-card::before {
        display: none;
    }

    .brand-card:hover {
        transform: none;
    }
    
    .brand-card:active {
        transform: none;
    }
}

/* ══════════════════════════════════════════════════════════
   PRODUCT CARDS
   ══════════════════════════════════════════════════════════ */

.products-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 480px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.product-card {
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-smooth);
}

.product-card:hover {
    border-color: rgba(8, 159, 0, 0.3);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), var(--glow-md);
    transform: translateY(-4px);
}

/* Card Image */
.product-card-image {
    position: relative;
    aspect-ratio: 4 / 3;
    background: var(--surface-2);
    overflow: hidden;
}

.product-card-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    color: var(--text-muted);
}

.product-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px 12px;
    font-size: var(--text-overline);
    font-weight: 600;
    border-radius: var(--radius-full);
}

.product-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.product-badge--stock {
    background: rgba(8, 159, 0, 0.15);
    color: var(--color-success);
}

.product-badge--stock::before {
    background: var(--color-success);
}

.product-badge--order {
    background: rgba(229, 161, 0, 0.15);
    color: var(--color-warning);
}

.product-badge--order::before {
    background: var(--color-warning);
}

.product-badge--out {
    background: rgba(220, 53, 69, 0.15);
    color: var(--color-error);
}

.product-badge--out::before {
    background: var(--color-error);
}

/* Card Body */
.product-card-body {
    padding: var(--space-5);
}

.product-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.tag {
    display: inline-block;
    padding: 3px 10px;
    font-size: var(--text-overline);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-radius: var(--radius-sm);
}

.tag-brand {
    background: rgba(8, 159, 0, 0.08);
    color: var(--color-green);
    border: 1px solid rgba(8, 159, 0, 0.15);
}

.tag-model {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.product-card-title {
    font-size: var(--text-body);
    font-weight: 600;
    color: var(--text);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-card-sku {
    font-size: var(--text-caption);
    color: var(--text-muted);
    margin-top: var(--space-1);
    font-family: monospace;
}

.product-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: var(--space-4);
}

.product-card-year {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--text-caption);
    color: var(--text-muted);
}

.product-card-year svg {
    color: var(--text-muted);
}

/* Mini WhatsApp button on card */
.btn-wa-mini {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: #25D366;
    color: var(--color-white);
    border-radius: var(--radius-full);
    transition: all var(--transition-smooth);
}

.btn-wa-mini:hover {
    background: #20BD5A;
    transform: scale(1.15);
    color: var(--color-white);
}

/* ══════════════════════════════════════════════════════════
   WHOLESALE CTA
   ══════════════════════════════════════════════════════════ */

.wholesale-card {
    position: relative;
    padding: var(--space-12) var(--space-8);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    text-align: center;
}

.wholesale-content {
    position: relative;
    z-index: 1;
}

.wholesale-title {
    font-size: var(--text-h2);
    font-weight: 700;
    color: var(--text);
    margin-bottom: var(--space-4);
}

.wholesale-text {
    font-size: 1.125rem;
    color: var(--text-secondary);
    max-width: 50ch;
    margin: 0 auto var(--space-8);
}

/* Decorative glow orbs */
.wholesale-decoration {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
}

.glow-orb--1 {
    width: 300px;
    height: 300px;
    background: rgba(8, 159, 0, 0.1);
    top: -100px;
    right: -50px;
}

.glow-orb--2 {
    width: 200px;
    height: 200px;
    background: rgba(110, 220, 74, 0.06);
    bottom: -80px;
    left: -40px;
}

/* ══════════════════════════════════════════════════════════
   WHY CHOOSE BIPAUTO (Features)
   ══════════════════════════════════════════════════════════ */

.features-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
    margin-top: var(--space-8);
}

@media (min-width: 480px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.feature-card {
    text-align: center;
    padding: var(--space-8) var(--space-6);
    background: var(--surface-1);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    transition: all var(--transition-smooth);
}

.feature-card:hover {
    border-color: rgba(8, 159, 0, 0.2);
    transform: translateY(-3px);
    box-shadow: var(--glow-md);
}

.feature-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    background: rgba(8, 159, 0, 0.08);
    color: var(--color-green);
    border-radius: var(--radius-lg);
    margin-bottom: var(--space-5);
}

.feature-title {
    font-size: var(--text-h5);
    font-weight: 600;
    color: var(--text);
    margin-bottom: var(--space-3);
}

.feature-text {
    font-size: var(--text-body-sm);
    color: var(--text-secondary);
    max-width: 30ch;
    margin: 0 auto;
}

/* ══════════════════════════════════════════════════════════
   CONTACT CTA
   ══════════════════════════════════════════════════════════ */

.section-contact-cta {
    background: var(--surface-1);
    border-top: 1px solid var(--border);
}

.contact-cta-inner {
    text-align: center;
    padding: var(--space-8) 0;
}

.contact-cta-inner .section-title {
    margin-bottom: var(--space-3);
}

.contact-cta-inner .section-subtitle {
    margin: 0 auto var(--space-8);
}

/* ══════════════════════════════════════════════════════════
   404 PAGE
   ══════════════════════════════════════════════════════════ */

.section-404 {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 60vh;
    text-align: center;
}

.error-404-content {
    max-width: 500px;
}

.error-code {
    display: block;
    font-size: clamp(6rem, 15vw, 10rem);
    font-weight: 700;
    line-height: 1;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    opacity: 0.3;
    margin-bottom: var(--space-4);
}

.error-title {
    font-size: var(--text-h2);
    margin-bottom: var(--space-4);
}

.error-message {
    color: var(--text-secondary);
    margin-bottom: var(--space-8);
    max-width: 100%;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--space-4);
}

/* ══════════════════════════════════════════════════════════
   ACCESSOIRES AUTO SECTION
   ══════════════════════════════════════════════════════════ */

.section-accessories {
    padding-block: clamp(4rem, 8vw, 7rem);
}

/* ── Grid ─────────────────────────────────────────────────── */

.accessories-grid {
    width: min(100%, 1120px);
    margin-inline: auto;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: var(--space-8);
}

@media (min-width: 640px) {
    .accessories-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.25rem;
    }
}

@media (min-width: 1024px) {
    .accessories-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 1.5rem;
    }
}

/* ── Accessory Card ──────────────────────────────────────── */

.accessory-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    min-height: 160px;
    padding: 1.25rem 1rem;
    border-radius: 22px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background:
        radial-gradient(circle at 50% 0%, rgba(8, 159, 0, 0.10), transparent 55%),
        rgba(255, 255, 255, 0.035);
    text-align: center;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease, background 220ms ease;
}

/* Shine effect on hover */
.accessory-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, transparent 0%, rgba(137, 240, 0, 0.10) 45%, transparent 70%);
    transform: translateX(-120%);
    transition: transform 500ms ease;
    pointer-events: none;
}

.accessory-card:hover::before {
    transform: translateX(120%);
}

.accessory-card:hover {
    transform: translateY(-4px);
    border-color: rgba(137, 240, 0, 0.40);
    box-shadow: 0 18px 45px rgba(8, 159, 0, 0.15);
    background:
        radial-gradient(circle at 50% 0%, rgba(8, 159, 0, 0.20), transparent 60%),
        rgba(255, 255, 255, 0.055);
}

.accessory-card:active {
    transform: translateY(-1px);
}

.accessory-card:focus-visible {
    outline: 2px solid var(--color-green);
    outline-offset: 2px;
}

/* ── Icon Wrapper ────────────────────────────────────────── */

.accessory-card__icon-wrap {
    width: 72px;
    height: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    flex-shrink: 0;
}

.accessory-card__thumb {
    display: block;
    max-width: 56px;
    max-height: 56px;
    object-fit: contain;
    border-radius: 12px;
}

.accessory-card__fallback-icon {
    color: var(--color-green);
    opacity: 0.7;
}

/* ── Content ─────────────────────────────────────────────── */

.accessory-card__content {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    min-width: 0;
}

.accessory-card__name {
    color: var(--text, #ffffff);
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.01em;
    line-height: 1.3;
    overflow-wrap: break-word;
    word-break: break-word;
    transition: color 200ms ease;
}

.accessory-card:hover .accessory-card__name {
    color: var(--color-green);
}

.accessory-card__count {
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.accessory-card__count--empty {
    color: var(--text-muted);
    font-style: italic;
}

/* ── Arrow (hidden on mobile, visible on desktop/hover) ── */

.accessory-card__arrow {
    display: none;
    color: var(--text-muted);
    transition: transform 200ms ease, color 200ms ease;
}

@media (min-width: 768px) {
    .accessory-card {
        flex-direction: row;
        text-align: left;
        gap: 1rem;
        padding: 1.25rem;
        min-height: 100px;
    }

    .accessory-card__arrow {
        display: block;
        margin-left: auto;
        flex-shrink: 0;
    }

    .accessory-card:hover .accessory-card__arrow {
        transform: translateX(4px);
        color: var(--color-green);
    }

    .accessory-card__icon-wrap {
        width: 64px;
        height: 64px;
    }
}

/* ── Empty State ─────────────────────────────────────────── */

.accessories-empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 3rem 1rem;
}

.accessories-empty-state__icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 1rem;
    border-radius: 20px;
    background: rgba(8, 159, 0, 0.12);
    display: grid;
    place-items: center;
}

.accessories-empty-state__title {
    color: var(--text);
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
}

.accessories-empty-state__text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    max-width: 420px;
    margin: 0 auto;
}

/* ── Accessoires — Light Mode ────────────────────────────── */

html.light .accessory-card {
    background: var(--lm-surface-1);
    border-color: var(--lm-border);
}

html.light .accessory-card:hover {
    border-color: rgba(8, 159, 0, 0.3);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
    background: var(--lm-surface-2);
}

html.light .accessory-card__icon-wrap {
    background: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.06);
}

html.light .accessory-card__name {
    color: var(--lm-text);
}

html.light .accessory-card:hover .accessory-card__name {
    color: var(--color-green);
}

html.light .accessory-card__fallback-icon {
    color: var(--color-green);
}

/* ── Accessoires — Reduced Motion ────────────────────────── */

@media (prefers-reduced-motion: reduce) {
    .accessory-card {
        transition: none;
    }

    .accessory-card::before {
        display: none;
    }

    .accessory-card:hover {
        transform: none;
    }

    .accessory-card:active {
        transform: none;
    }
}
/* ==========================================================
   Mobile CTA button responsive fix
   ========================================================== */


@media (max-width: 480px) {
    .contact-cta-inner .btn-whatsapp,
    .section-contact-cta .btn-whatsapp,
    .contact-cta-inner .btn-xl,
    .section-contact-cta .btn-xl {
        max-width: 280px;
        width: min(100%, 280px);
        min-height: 54px;
        padding: 0.8rem 1.0rem;
        margin-inline: auto;
        font-size: 0.95rem;
        font-weight: 700;
        line-height: 1.2;
        border-radius: 999px;
        gap: 0.6rem;
        white-space: normal;
        text-align: center;
    }

    .contact-cta-inner .btn-whatsapp svg,
    .section-contact-cta .btn-whatsapp svg,
    .contact-cta-inner .btn-xl svg,
    .section-contact-cta .btn-xl svg {
        width: 20px;
        height: 20px;
        flex: 0 0 auto;
    }

    .contact-cta-inner {
        padding-inline: 0.5rem;
    }
}