:root {
    --brand-red: #D90429;
    --brand-dark: #0F172A;
}

html, body {
    max-width: 100%;
    overflow-x: hidden;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
    background-color: #F8FAFC;
    color: #1E293B;
}

/* ==========================================
   HERO BANNER SLIDER (MOBILE & DESKTOP)
   ========================================== */
.hero-swiper {
    border-radius: 20px;
    overflow: hidden;
    background: #0F172A;
}

.hero-dynamic-slide {
    position: relative;
    width: 100%;
    height: 440px;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-radius: 20px;
}

.hero-dynamic-slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 23, 42, 0.85) 0%, rgba(15, 23, 42, 0.45) 60%, rgba(15, 23, 42, 0.12) 100%);
    z-index: 1;
    pointer-events: none;
}

.hero-dynamic-slide .hero-content {
    position: relative;
    z-index: 2;
    padding: 2.25rem 2.5rem 2.75rem;
    color: #ffffff;
    width: 100%;
    max-width: 650px;
}

@media (max-width: 991.98px) {
    .hero-dynamic-slide {
        height: 360px;
    }
    .hero-dynamic-slide .hero-content {
        padding: 1.5rem 1.75rem 2.25rem;
    }
}

/* MOBILE VIEW: Bada aur clear slider taaki image poori tarah dikhe */
@media (max-width: 767.98px) {
    .hero-swiper {
        border-radius: 14px;
    }

    .hero-dynamic-slide {
        height: 320px;
        align-items: flex-end;
        background-size: contain;
        background-color: #0b0f19;
        background-position: center 12px;
        border-radius: 14px;
    }

    .hero-dynamic-slide::before {
        background: linear-gradient(
            180deg,
            rgba(11, 15, 25, 0.0) 0%,
            rgba(11, 15, 25, 0.1) 48%,
            rgba(11, 15, 25, 0.90) 80%,
            rgba(11, 15, 25, 0.96) 100%
        );
    }

    .hero-dynamic-slide .hero-content {
        padding: 0.9rem 1rem 1.5rem;
        max-width: 100%;
    }

    .hero-dynamic-slide h1,
    .hero-dynamic-slide h2 {
        font-size: 1.1rem;
        line-height: 1.25;
        margin-bottom: 0.45rem;
    }

    .hero-dynamic-slide p.lead,
    .hero-dynamic-slide .hero-desc {
        display: none;
    }

    .hero-dynamic-slide .badge {
        font-size: 0.62rem;
        padding: 3px 8px;
    }

    .hero-dynamic-slide .btn {
        padding: 0.35rem 0.9rem;
        font-size: 0.75rem;
    }
}

/* VEHICLE BATTERY FINDER WIDGET */
.finder-box {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
    border: 1px solid #E2E8F0;
}

/* HORIZONTAL PRODUCT SLIDER */
.slider-container-wrap {
    position: relative;
}

.horizontal-product-slider {
    display: flex;
    gap: 16px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 4px 2px;
}

.horizontal-product-slider::-webkit-scrollbar {
    display: none;
}

.slider-item-card {
    min-width: 270px;
    max-width: 270px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}

@media (min-width: 992px) {
    .slider-item-card {
        min-width: calc(25% - 12px);
        max-width: calc(25% - 12px);
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .slider-item-card {
        min-width: calc(33.333% - 11px);
        max-width: calc(33.333% - 11px);
    }
}

@media (max-width: 767px) {
    .slider-item-card {
        min-width: 220px;
        max-width: 220px;
    }
}

/* Slider Navigation Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 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: -20px; }
.slider-arrow-right { right: -20px; }

@media (max-width: 992px) {
    .slider-arrow { display: none; }
}

/* PRODUCT CARDS */
.product-card {
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    border-radius: 16px;
    background: #ffffff;
    border: 1px solid #E2E8F0;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.08);
    border-color: var(--brand-red);
}

.product-thumb-container {
    height: 185px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    background-color: #F8FAFC;
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
    position: relative;
}

.product-thumb-container img {
    max-height: 100%;
    max-width: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

.quick-view-btn {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}

.product-card:hover .quick-view-btn { opacity: 1; }

.product-badge-pill {
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.3px;
    padding: 4px 8px;
    border-radius: 6px;
}

.price-text {
    font-size: 1.05rem;
    font-weight: 800;
    color: #0F172A;
}

.mrp-text {
    font-size: 0.8rem;
    color: #94A3B8;
    text-decoration: line-through;
    white-space: nowrap;
}

.btn-qty-control {
    width: 34px;
    height: 34px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.filter-btn-tab {
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 600;
    padding: 6px 18px;
}

.hover-link { transition: opacity 0.2s; }
.hover-link:hover { opacity: 0.75; }

/* FEATURE BADGES */
.feature-card {
    background: #ffffff;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 1.1rem;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.02);
}
.feature-card:hover { transform: translateY(-3px); }

/* CART TOAST NOTIFICATION */
.cart-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    background: #10B981;
    color: #FFF;
    padding: 12px 24px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    font-weight: bold;
    display: none;
    animation: fadeInOut 0.3s ease;
}

@keyframes fadeInOut {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 576px) {
    .product-thumb-container { height: 155px; padding: 10px; }
}