:root {
    --brand-red: #D90429;
    --brand-red-dark: #B00321;
    --brand-dark: #0F172A;
    --surface-card: #FFFFFF;
    --surface-muted: #F8FAFC;
    --border-subtle: #E2E8F0;
}

html, body {
    max-width: 100%;
    overflow-x: clip;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #F4F6F9;
    color: #0F172A;
}

/* ==========================================
   HERO SLIDER — DESKTOP & MOBILE POLISH
   ========================================== */
.hero-swiper {
    border-radius: 18px;
    overflow: hidden;
    background: #0b0f19;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.hero-dynamic-slide {
    position: relative;
    width: 100%;
    height: 390px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-dynamic-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(11, 15, 25, 0.88) 0%,
        rgba(11, 15, 25, 0.52) 56%,
        rgba(11, 15, 25, 0.14) 100%
    );
    z-index: 1;
}

.hero-dynamic-slide .hero-content {
    position: relative;
    z-index: 2;
    padding: 2.5rem 3rem;
    color: #ffffff;
    max-width: 640px;
    width: 100%;
}

@media (max-width: 767px) {
    .hero-swiper {
        border-radius: 14px;
    }

    .hero-dynamic-slide {
        height: 190px;
        align-items: flex-end;
    }

    .hero-dynamic-slide::before {
        background: linear-gradient(
            180deg,
            rgba(11, 15, 25, 0.06) 0%,
            rgba(11, 15, 25, 0.86) 100%
        );
    }

    .hero-dynamic-slide .hero-content {
        padding: 0.85rem 1rem 1.2rem 1rem;
        max-width: 96%;
    }

    .hero-dynamic-slide .badge {
        font-size: 0.58rem;
        padding: 2px 7px;
    }

    .hero-dynamic-slide h1 {
        font-size: 0.96rem !important;
        line-height: 1.25;
        margin-bottom: 0.35rem !important;
    }

    .hero-dynamic-slide p.lead {
        display: none !important;
    }

    .hero-dynamic-slide .btn {
        padding: 0.28rem 0.78rem;
        font-size: 0.68rem;
    }
}

/* ==========================================
   VEHICLE FINDER & TRUST CARDS
   ========================================== */
.finder-box {
    background: var(--surface-card);
    border-radius: 16px;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    border: 1px solid var(--border-subtle);
}

.feature-card {
    background: var(--surface-card);
    border: 1px solid var(--border-subtle);
    border-radius: 14px;
    padding: 1rem 1.1rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
    height: 100%;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(15, 23, 42, 0.06);
}

/* ==========================================
   HORIZONTAL PRODUCT SLIDER
   ========================================== */
.slider-container-wrap {
    position: relative;
}

.horizontal-product-slider {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px 8px;
}

.horizontal-product-slider::-webkit-scrollbar {
    display: none;
}

.slider-item-card {
    min-width: 265px;
    max-width: 265px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

@media (min-width: 992px) {
    .slider-item-card {
        min-width: calc(25% - 11px);
        max-width: calc(25% - 11px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .slider-item-card {
        min-width: calc(33.333% - 10px);
        max-width: calc(33.333% - 10px);
    }
}

@media (max-width: 767px) {
    .slider-item-card {
        min-width: 172px;
        max-width: 172px;
    }
}

.slider-arrow {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1);
    z-index: 10;
    cursor: pointer;
    transition: all 0.2s ease;
    color: var(--brand-dark);
}

.slider-arrow:hover {
    background: var(--brand-red);
    color: #ffffff;
    border-color: var(--brand-red);
}

.slider-arrow-left { left: -18px; }
.slider-arrow-right { right: -18px; }

@media (max-width: 992px) {
    .slider-arrow { display: none; }
}

/* ==========================================
   PRODUCT CARDS & UNIFORM CART BUTTONS
   ========================================== */
.product-card {
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
    border-radius: 14px !important;
    background: var(--surface-card);
    border: 1px solid var(--border-subtle) !important;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08) !important;
    border-color: rgba(217, 4, 41, 0.45) !important;
}

.product-thumb-container {
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: var(--surface-muted);
    position: relative;
}

.product-thumb-container img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.product-badge-pill {
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    border-radius: 6px;
}

.price-text {
    font-size: 1.02rem;
    font-weight: 800;
    color: #0F172A;
}

.mrp-text {
    font-size: 0.78rem;
    color: #94A3B8;
    text-decoration: line-through;
    white-space: nowrap;
}

/* Identical size before & after click */
.cart-control-container {
    height: 36px;
    width: 100%;
}

.cart-control-container > .btn,
.cart-control-container > div {
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    width: 100%;
    box-sizing: border-box;
    border-radius: 9px !important;
}

.btn-qty-control {
    width: 28px;
    height: 28px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    flex-shrink: 0;
}

.hover-link { transition: opacity 0.2s; }
.hover-link:hover { opacity: 0.75; }

/* ==========================================
   TOAST NOTIFICATION
   ========================================== */
.cart-toast {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 9999;
    background: #059669;
    color: #FFF;
    padding: 10px 18px;
    border-radius: 10px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.18);
    font-weight: 600;
    font-size: 0.85rem;
    display: none;
}

@media (max-width: 576px) {
    .product-thumb-container {
        height: 145px;
        padding: 8px;
    }

    .price-text {
        font-size: 0.92rem;
    }

    .mrp-text {
        font-size: 0.7rem;
    }

    .cart-control-container,
    .cart-control-container > .btn,
    .cart-control-container > div {
        height: 34px !important;
        min-height: 34px !important;
        max-height: 34px !important;
    }

    .cart-toast {
        left: 12px;
        right: 12px;
        top: 12px;
        text-align: center;
    }
}