/* ═══════════════════════════════════════════════════
   Homepage Styles — /css/homepage.css
   Consolidated from inline <style> tags in index.blade.php
   ═══════════════════════════════════════════════════ */

/* ─── Hero Full-Width Carousel — Mobile First ─── */

/* Wrapper: full-width container */
.hero-carousel-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 0;
    background: transparent;
}

/* Navigation Arrows — centered vertically on each side, hidden on mobile */
.hero-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: none;
    justify-content: space-between;
    padding: 0 0.5rem;
    z-index: 15;
    pointer-events: none;
}
.hero-nav-btn {
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.35);
    color: #fff;
    font-size: 0.75rem;
    cursor: pointer;
    pointer-events: auto;
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
    backdrop-filter: blur(4px);
}
.hero-nav-btn:hover {
    background: rgba(0,0,0,0.55);
    border-color: rgba(255,255,255,0.4);
    transform: scale(1.08);
}

/* Carousel Track — fade transitions */
.hero-carousel-track {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    pointer-events: none;
    z-index: 1;
}
.hero-slide.active {
    opacity: 1;
    transform: translateX(0);
    pointer-events: auto;
    z-index: 5;
}
.hero-slide.exiting {
    opacity: 0;
    transform: translateX(-12px);
    z-index: 4;
}
.hero-slide-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    color: #fff;
}
.hero-slide-card {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

/* Banner layout: text left, product image right */
.hero-slide-banner-layout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    padding: 1.25rem 1.5rem;
}
.hero-slide-text {
    flex: 1 1 55%;
    min-width: 0;
    z-index: 2;
}
.hero-slide-product-img {
    flex: 0 0 40%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}
.hero-slide-product-img img {
    max-height: 90%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,0.25));
    background-color: transparent;
    /* padding: 0.75rem; */
}
.hero-slide-card:hover .hero-slide-product-img img {
    transform: scale(1.06);
}

/* Slide text elements */
.hero-slide-category {
    display: inline-block;
    font-size: 0.55rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #ffce00;
    margin-bottom: 4px;
}
.hero-slide-title {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
    line-height: 1.2;
    text-shadow: 0 1px 6px rgba(0,0,0,0.3);
}
.hero-slide-subtitle {
    font-size: 0.7rem;
    font-weight: 400;
    color: rgba(255,255,255,0.78);
    margin: 2px 0 8px;
    line-height: 1.35;
}
.hero-slide-cta {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 14px;
    background: #ffce00;
    color: #0f172a;
    font-size: 0.62rem;
    font-weight: 700;
    border-radius: 50rem;
    transition: transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(255,206,0,0.3);
}
.hero-slide-card:hover .hero-slide-cta {
    transform: scale(1.05);
}

/* Pagination Dots — inside track, overlaid at bottom */
.hero-carousel-dots {
    position: absolute;
    bottom: 0.75rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
    padding: 4px 12px;
    border-radius: 50rem;
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(4px);
}
.carousel-dot {
    width: 8px;
    height: 8px;
    min-width: 8px;
    min-height: 8px;
    border: none;
    border-radius: 50rem;
    background: rgba(255,255,255,0.25);
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}
.carousel-dot:hover {
    background: rgba(255,255,255,0.6);
}
.carousel-dot.active {
    width: 24px;
    background: #ffce00;
}

/* Legacy full-bleed image styles (backward compat) */
.hero-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s ease;
}
.hero-slide-card:hover .hero-slide-img {
    transform: scale(1.04);
}
.hero-slide-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,14,57,0.70) 0%, transparent 55%);
}
.hero-slide-content {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.75rem 1rem;
    z-index: 2;
}

/* ── Tablet (576px+) ── */
@media (min-width: 576px) {
    .hero-carousel-nav { display: flex; }
    .hero-carousel-track { aspect-ratio: 16 / 8; }
    .hero-slide-banner-layout { padding: 1.5rem 2rem; }
    .hero-slide-title { font-size: 1.5rem; }
    .hero-slide-subtitle { font-size: 0.8rem; }
    .hero-slide-cta { font-size: 0.72rem; padding: 6px 16px; }
    .hero-slide-category { font-size: 0.6rem; }
    .hero-nav-btn { width: 40px; height: 40px; font-size: 0.85rem; }
    .hero-carousel-nav { padding: 0 0.75rem; }
}

/* ── Desktop (768px+) ── */
@media (min-width: 768px) {
    .hero-carousel-wrapper { border-radius: 0; }
    .hero-carousel-track { aspect-ratio: 21 / 8; }
    .hero-slide-banner-layout { padding: 2rem 3rem; }
    .hero-slide-title { font-size: 2rem; }
    .hero-slide-subtitle { font-size: 0.9rem; margin: 4px 0 12px; }
    .hero-slide-cta { font-size: 0.8rem; padding: 8px 20px; }
    .hero-slide-category { font-size: 0.65rem; margin-bottom: 6px; }
    .hero-nav-btn { width: 44px; height: 44px; font-size: 0.9rem; }
    .hero-carousel-nav { padding: 0 1rem; }
}

/* ── Large Desktop (992px+) ── */
@media (min-width: 992px) {
    .hero-carousel-track { aspect-ratio: 21 / 7; }
    .hero-slide-banner-layout { padding: 2.5rem 4rem; }
    .hero-slide-title { font-size: 2.5rem; }
    .hero-slide-subtitle { font-size: 1rem; margin: 6px 0 14px; }
    .hero-slide-cta { font-size: 0.85rem; padding: 10px 24px; }
    .hero-nav-btn { width: 48px; height: 48px; font-size: 1rem; }
    .hero-carousel-nav { padding: 0 1.5rem; }
    /* .hero-slide-product-img img { padding: 1rem; } */
}

/* ── Extra-Large (1200px+) ── */
@media (min-width: 1200px) {
    .hero-carousel-track { aspect-ratio: 21 / 6; }
    .hero-slide-banner-layout { padding: 3rem 5rem; }
    .hero-slide-title { font-size: 3rem; }
    .hero-slide-subtitle { font-size: 1.1rem; margin: 8px 0 16px; }
    .hero-slide-cta { font-size: 0.9rem; padding: 10px 28px; }
    .hero-carousel-nav { padding: 0 2rem; }
    /* .hero-slide-product-img img { padding: 1.25rem; } */
}

/* Keep .btn-warning global */
.btn-warning {
    background-color: #ffe000 !important;
    border-color: #ffe000 !important;
    color: #0f172a;
    font-weight: 600;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

#newsletter.section {
    margin-top: 0 !important;
}

/* ─── Installment Banner - Mobile First ─── */
.installment-title {
    font-size: 0.85rem;
}
.installment-desc {
    font-size: 0.7rem;
}
.installment-cta {
    font-size: 0.6rem;
    padding: 0.2rem 0.5rem;
}

/* Extra-small devices (320px-374px) */
@media (max-width: 374.98px) {
    .installment-title { font-size: 0.75rem; }
    .installment-desc { font-size: 0.6rem; }
    .installment-cta { font-size: 0.55rem; padding: 0.15rem 0.4rem; }
}

/* Small mobile (375px-575px) */
@media (min-width: 375px) and (max-width: 575.98px) {
    .installment-title { font-size: 0.8rem; }
    .installment-desc { font-size: 0.65rem; }
    .installment-cta { font-size: 0.6rem; padding: 0.18rem 0.45rem; }
}

@media (min-width: 576px) {
    .installment-title { font-size: 1.1rem; }
    .installment-desc { font-size: 0.875rem; }
    .installment-cta { font-size: 0.875rem; }
}
@media (min-width: 768px) {
    .installment-title { font-size: 1.5rem; }
    .installment-desc { font-size: 1rem; }
    .installment-cta { font-size: 1rem; }
}

.installment-banner-wrap {
    isolation: isolate;
}
.installment-banner-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}
.installment-banner-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center center;
    display: block;
}
.installment-banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(0deg, rgb(5 60 30 / 24%) 0%, rgba(22, 163, 74, 0.68) 55%, rgb(10 80 40 / 26%) 100%);
    z-index: 1;
}

/* ─── Section Headers - Mobile First ─── */
.section-header-title {
    font-size: 0.85rem;
}
.section-view-all {
    font-size: 0.7rem;
}

/* Extra-small devices (320px-374px) */
@media (max-width: 374.98px) {
    .section-header-title { font-size: 0.75rem; }
    .section-view-all { font-size: 0.6rem; }
}

/* Small mobile (375px-575px) */
@media (min-width: 375px) and (max-width: 575.98px) {
    .section-header-title { font-size: 0.8rem; }
    .section-view-all { font-size: 0.65rem; }
}

@media (min-width: 576px) {
    .section-header-title { font-size: 0.95rem; }
    .section-view-all { font-size: 0.8rem; }
}
@media (min-width: 768px) {
    .section-header-title { font-size: 1rem; }
    .section-view-all { font-size: 0.875rem; }
}

/* ─── Shop by Category - Mobile First ─── */
.category-circle-size {
    width: 50px;
    height: 50px;
}
.category-label-text {
    font-size: 0.65rem;
}
.category-dropdown {
    font-size: 0.75rem;
}
.category-scroll::-webkit-scrollbar { display: none; }

/* Extra-small devices (320px-374px) */
@media (max-width: 374.98px) {
    .category-circle-size { width: 44px; height: 44px; }
    .category-label-text { font-size: 0.55rem; }
    .category-dropdown { font-size: 0.65rem; }
}

/* Small mobile (375px-575px) */
@media (min-width: 375px) and (max-width: 575.98px) {
    .category-circle-size { width: 48px; height: 48px; }
    .category-label-text { font-size: 0.6rem; }
    .category-dropdown { font-size: 0.7rem; }
}

@media (min-width: 576px) {
    .category-circle-size { width: 58px; height: 58px; }
    .category-label-text { font-size: 0.7rem; }
    .category-dropdown { font-size: 0.8rem; }
}
@media (min-width: 768px) {
    .category-circle-size { width: 64px; height: 64px; }
    .category-label-text { font-size: 0.75rem; }
    .category-dropdown { font-size: 0.875rem; }
}

/* ─── Deals & Collections - Mobile Adjustments ─── */
@media (max-width: 575.98px) {
    .hp-deal-card {
        min-height: 120px;
    }
    .hp-deal-overlay {
        padding: 0.65rem 0.75rem;
    }
    .hp-deal-title {
        font-size: 0.9rem;
    }
    .hp-deal-cta {
        font-size: 0.65rem;
    }
    .hp-deal-label {
        font-size: 0.55rem;
        padding: 0.2em 0.5em;
    }
}

/* ─── Browse All CTA - Mobile First ─── */
.cta-heading {
    font-size: 0.9rem;
}
.cta-browse-btn {
    font-size: 0.75rem;
}
@media (min-width: 576px) {
    .cta-heading { font-size: 1rem; }
    .cta-browse-btn { font-size: 0.85rem; }
}
@media (min-width: 768px) {
    .cta-heading { font-size: 1.25rem; }
    .cta-browse-btn { font-size: 1rem; }
}

/* ═══ Financing Plan Cards - Mobile First ═══ */
.fp-card {
    background: #fff;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}
@media (hover: hover) {
    .fp-card:hover {
        box-shadow: 0 12px 28px rgba(0,0,0,0.12);
        transform: translateY(-3px);
    }
    .fp-card:hover .fp-card-img {
        transform: scale(1.05);
    }
}
.fp-card-img-wrap {
    position: relative;
    width: 100%;
    height: 120px;
    overflow: hidden;
    background: #f8fafc;
    aspect-ratio: 1 / 0.85;
}
.fp-card-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.5s ease;
    padding: 0.75rem !important;
}
/* Extra-small devices (320px - 374px) */
@media (max-width: 374.98px) {
    .fp-card-img-wrap {
        height: 100px;
        aspect-ratio: 1 / 0.9;
    }
    .fp-card-img {
        padding: 0.5rem !important;
    }
    .fp-card {
        border-radius: 0.75rem;
    }
    .fp-card-body {
        padding: 8px;
    }
    .fp-card-title {
        font-size: 0.7rem;
        margin-bottom: 3px;
    }
    .fp-spec-pill {
        font-size: 0.5rem;
        padding: 0px 4px;
    }
    .fp-installment-label {
        font-size: 0.5rem;
    }
    .fp-term-select {
        font-size: 0.55rem;
        padding: 1px 14px 1px 3px;
        max-width: 80px;
        height: 20px;
    }
    .fp-price-main {
        font-size: 1.15rem;
    }
    .fp-price-suffix {
        font-size: 0.55rem;
    }
    .fp-downpayment,
    .fp-cash-price {
        font-size: 0.55rem;
    }
    .fp-buy-btn {
        width: 28px;
        height: 28px;
        flex: 0 0 28px;
    }
    .fp-buy-btn i {
        font-size: 0.5rem;
    }
    .fp-apply-btn {
        font-size: 0.6rem;
        padding: 6px;
    }
    .fp-btn-group {
        gap: 4px;
    }
}
.fp-card-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border-radius: 50rem;
    padding: 2px 8px;
    font-size: 0.6rem;
    font-weight: 600;
    color: #334155;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.fp-card-body {
    padding: 10px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.fp-card-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: #0f172a;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}
.fp-card-specs {
    display: flex;
    flex-wrap: wrap;
    gap: 3px;
    margin-bottom: 4px;
}
.fp-spec-pill {
    background: #f1f5f9;
    color: #475569;
    font-size: 0.55rem;
    font-weight: 500;
    padding: 1px 6px;
    border-radius: 50rem;
    white-space: nowrap;
}
.fp-card-divider {
    margin: 6px 0;
    border-color: #e2e8f0;
    opacity: 0.6;
}
.fp-installment-section {
    margin-bottom: 8px;
}

.fp-installment-label {
    font-size: 0.55rem;
    font-weight: 700;
    color: #0046be;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.fp-term-select {
    font-size: 0.6rem;
    padding: 2px 18px 2px 6px;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    color: #334155;
    background: #fff;
    cursor: pointer;
    appearance: auto;
    max-width: 110px;
}
.fp-term-select:focus {
    outline: none;
    border-color: #0046be;
    box-shadow: 0 0 0 2px rgba(0,70,190,0.15);
}
.fp-price-main {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0046be;
    line-height: 1.1;
    margin-top: 2px;
}
.fp-price-suffix {
    font-size: 0.6rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 4px;
}
.fp-downpayment {
    font-size: 0.6rem;
    color: #475569;
    margin-bottom: 2px;
}
.fp-cash-price {
    font-size: 0.6rem;
    color: #94a3b8;
    margin-bottom: 6px;
}
.fp-strikethrough {
    text-decoration: line-through;
}
.fp-btn-group {
    display: flex;
    gap: 6px;
    margin-top: auto;
}
.fp-buy-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex: 0 0 32px;
    width: 32px;
    height: 32px;
    padding: 0;
    background: #ffc107;
    color: #0f172a;
    font-size: 0;
    font-weight: 600;
    border: 1.5px solid #ffc107;
    border-radius: 50%;
    text-decoration: none;
    text-align: center;
    transition: all 0.2s ease;
    cursor: pointer;
    white-space: nowrap;
}
.fp-buy-btn:hover {
    border-color: #e0a800;
    color: #0f172a;
    background: #e0a800;
}
.fp-buy-btn i {
    font-size: 0.6rem;
    margin: 0;
}
.fp-apply-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex: 1;
    padding: 8px;
    background: #16a34a;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    border: none;
    border-radius: 10px;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s ease;
    cursor: pointer;
}
.fp-apply-btn:hover {
    background: #15803d;
    color: #fff;
}
.fp-apply-btn i {
    font-size: 0.55rem;
    transition: transform 0.2s;
}
.fp-apply-btn:hover i {
    transform: translateX(2px);
}
.fp-layaway-note {
    text-align: center;
    font-size: 0.55rem;
    color: #94a3b8;
    margin-top: 6px;
}
.fp-layaway-note i {
    margin-right: 2px;
}

/* Small mobile (375px - 575px) */
@media (min-width: 375px) and (max-width: 575.98px) {
    .fp-card-img-wrap {
        height: 130px;
        aspect-ratio: 1 / 0.8;
    }
    .fp-card-img {
        padding: 0.75rem !important;
    }
    .fp-card {
        border-radius: 0.875rem;
    }
    .fp-card-body {
        padding: 10px;
    }
    .fp-card-title {
        font-size: 0.75rem;
    }
    .fp-price-main {
        font-size: 1.25rem;
    }
}

/* FP Cards — Tablet (576px+) */
@media (min-width: 576px) {
    .fp-card-img-wrap { height: 170px; aspectratio: auto; }
    .fp-card-body { padding: 12px; }
    .fp-card-title { font-size: 0.85rem; }
    .fp-spec-pill { font-size: 0.6rem; padding: 2px 8px; }
    .fp-card-badge { font-size: 0.65rem; padding: 3px 10px; }
    .fp-installment-label { font-size: 0.6rem; }
    .fp-term-select { font-size: 0.6rem; max-width: 90px; height: 22px; padding: 1px 16px 1px 5px; }
    .fp-price-main { font-size: 1.5rem; }
    .fp-price-suffix { font-size: 0.65rem; }
    .fp-downpayment { font-size: 0.65rem; }
    .fp-cash-price { font-size: 0.65rem; }
    .fp-buy-btn { font-size: 0; width: 36px; height: 36px; padding: 0; flex: 0 0 36px; border-radius: 50%; gap: 0; }
    .fp-buy-btn i { font-size: 0.65rem; margin: 0; }
    .fp-apply-btn { font-size: 0.75rem; padding: 10px; border-radius: 12px; }
    .fp-layaway-note { font-size: 0.6rem; }
}

/* FP Cards — Desktop (768px+) */
@media (min-width: 768px) {
    .fp-card-img-wrap { height: 190px; }
    .fp-card-body { padding: 14px; }
    .fp-card-title { font-size: 0.9rem; }
    .fp-spec-pill { font-size: 0.65rem; }
    .fp-card-badge { font-size: 0.7rem; }
    .fp-installment-label { font-size: 0.65rem; }
    .fp-term-select { font-size: 0.7rem; padding: 3px 20px 3px 8px; }
    .fp-price-main { font-size: 1.65rem; }
    .fp-price-suffix { font-size: 0.7rem; }
    .fp-downpayment { font-size: 0.7rem; }
    .fp-cash-price { font-size: 0.7rem; }
    .fp-buy-btn { font-size: 0; width: 40px; height: 40px; padding: 0; flex: 0 0 40px; border-radius: 50%; gap: 0; }
    .fp-buy-btn i { font-size: 0.7rem; margin: 0; }
    .fp-apply-btn { font-size: 0.8rem; padding: 10px 14px; }
    .fp-layaway-note { font-size: 0.65rem; }
}

/* FP Cards — Large Desktop (992px+) */
@media (min-width: 992px) {
    .fp-card-img-wrap { height: 210px; }
    .fp-card-body { padding: 16px; }
    .fp-card-title { font-size: 0.95rem; }
    .fp-price-main { font-size: 1.8rem; }
    .fp-buy-btn { font-size: 0; width: 40px; height: 40px; padding: 0; flex: 0 0 40px; border-radius: 50%; gap: 0; }
    .fp-buy-btn i { font-size: 0.75rem; margin: 0; }
    .fp-apply-btn { font-size: 0.85rem; padding: 12px 16px; }
}

/* FP Cards — XL Desktop: restore full text button (1024px+) */
@media (min-width: 1024px) {
    .fp-buy-btn { font-size: 0.75rem; width: auto; height: auto; padding: 10px 16px; flex: 0 0 auto; border-radius: 10px; gap: 4px; }
    .fp-buy-btn i { font-size: 0.5rem; }
}

/* ─── Hot Deals Section - Mobile First ─── */
.hot-deal-section {
    padding: 1rem 0;
}
.hot-deal-title {
    font-size: 1rem;
}
.hot-deal-desc {
    font-size: 0.75rem;
}
.hot-deal-btn {
    font-size: 0.75rem;
    padding: 0.4rem 1rem;
}
@media (min-width: 576px) {
    .hot-deal-section { padding: 1.5rem 0; }
    .hot-deal-title { font-size: 1.25rem; }
    .hot-deal-desc { font-size: 0.875rem; }
    .hot-deal-btn { font-size: 0.875rem; padding: 0.5rem 1.25rem; }
}
@media (min-width: 768px) {
    .hot-deal-section { padding: 2rem 0; }
    .hot-deal-title { font-size: 1.5rem; }
    .hot-deal-desc { font-size: 1rem; }
    .hot-deal-btn { font-size: 1rem; padding: 0.625rem 1.5rem; }
}

/* ─── Product Cards - Extra-Small Mobile (320px - 374px) ─── */
@media (max-width: 374.98px) {
    .product-card-body {
        padding: 8px;
    }
    .product-card-title {
        font-size: 11px;
        min-height: 30px;
        max-height: 44px;
        margin: 4px 0 3px;
    }
    .product-card-price {
        font-size: 14px;
    }
    .product-card-price-section {
        margin-bottom: 6px;
    }
    .product-rating-display {
        font-size: 9px;
    }
    .rating-value {
        font-size: 9px;
    }
    .review-count {
        font-size: 8px;
    }
    .product-badge {
        top: 4px;
        left: 4px;
        padding: 2px 5px;
        font-size: 7px;
    }
    .product-wishlist-btn {
        top: 4px;
        right: 4px;
        width: 24px;
        height: 24px;
    }
    .product-wishlist-btn i {
        font-size: 0.6rem;
    }
}

/* ─── Product Cards - Small Mobile (375px - 575px) ─── */
@media (min-width: 375px) and (max-width: 575.98px) {
    .product-card-body {
        padding: 9px;
    }
    .product-card-title {
        font-size: 12px;
        min-height: 33px;
        max-height: 48px;
        margin: 5px 0 3px;
    }
    .product-card-price {
        font-size: 15px;
    }
    .product-card-price-section {
        margin-bottom: 7px;
    }
    .product-rating-display {
        font-size: 10px;
    }
    .rating-value {
        font-size: 10px;
    }
    .review-count {
        font-size: 9px;
    }
    .product-badge {
        top: 5px;
        left: 5px;
        padding: 2px 6px;
        font-size: 8px;
    }
    .product-wishlist-btn {
        top: 5px;
        right: 5px;
        width: 26px;
        height: 26px;
    }
    .product-wishlist-btn i {
        font-size: 0.65rem;
    }
}

/* ─── Product Cards - Mobile Compact (576px - baseline) ─── */
@media (max-width: 575.98px) {
    .product-card-body {
        padding: 10px;
    }
    .product-card-title {
        font-size: 13px;
        min-height: 36px;
        max-height: 52px;
        margin: 6px 0 4px;
    }
    .product-card-price {
        font-size: 16px;
    }
    .product-card-price-section {
        margin-bottom: 8px;
    }
    .product-rating-display {
        font-size: 11px;
    }
    .rating-value {
        font-size: 11px;
    }
    .review-count {
        font-size: 10px;
    }
    .product-badge {
        top: 6px;
        left: 6px;
        padding: 3px 8px;
        font-size: 9px;
    }
    .product-wishlist-btn {
        top: 6px;
        right: 6px;
        width: 28px;
        height: 28px;
    }
    .product-wishlist-btn i {
        font-size: 0.7rem;
    }
}

/* Hot Deal Countdown - Mobile */
@media (max-width: 575.98px) {
    .hot-deal-countdown li div h3 {
        font-size: 1.2rem;
    }
    .hot-deal-countdown li div span {
        font-size: 0.6rem;
    }
}

/* ─── View Toggle Buttons ─── */
.view-toggle {
    color: #6c757d;
    border: none !important;
    background: transparent;
    padding: 0.25rem 0.5rem;
    border-radius: 0.375rem !important;
    transition: all 0.2s ease;
    -webkit-tap-highlight-color: rgba(0,70,190,0.1);
    touch-action: manipulation;
    cursor: pointer;
}
.view-toggle.active {
    background: #0046be !important;
    color: #fff !important;
    box-shadow: 0 1px 3px rgba(0,70,190,0.3);
}
.view-toggle:hover:not(.active) {
    color: #0046be;
    background: rgba(0,70,190,0.08);
}
.view-toggle:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,70,190,0.25);
}

/* ═══ Financing Plan Cards — List View ═══ */
#products-container.list-view {
    display: flex !important;
    flex-direction: column !important;
}
#products-container.list-view > .col-6,
#products-container.list-view > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
#products-container.list-view .fp-card {
    flex-direction: row;
    border-radius: 0.75rem;
}
#products-container.list-view .fp-card-img-wrap {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    height: auto;
    min-height: 130px;
    flex-shrink: 0;
    border-radius: 0.75rem 0 0 0.75rem;
}
#products-container.list-view .fp-card-img {
    height: 100%;
    padding: 0.75rem !important;
}
#products-container.list-view .fp-card-badge {
    font-size: 0.55rem;
    padding: 2px 6px;
    top: 4px;
    left: 4px;
}
#products-container.list-view .fp-card-body {
    padding: 10px;
    flex: 1;
}
#products-container.list-view .fp-card-title {
    font-size: 0.8rem;
    -webkit-line-clamp: 1;
    margin-bottom: 2px;
}
#products-container.list-view .fp-card-divider {
    margin: 4px 0;
}
#products-container.list-view .fp-installment-section {
    margin-bottom: 4px;
}
#products-container.list-view .fp-price-main {
    font-size: 1.15rem;
}
#products-container.list-view .fp-price-suffix {
    font-size: 0.55rem;
    margin-bottom: 2px;
}
#products-container.list-view .fp-downpayment,
#products-container.list-view .fp-cash-price {
    font-size: 0.55rem;
    margin-bottom: 1px;
}
#products-container.list-view .fp-btn-group {
    gap: 4px;
}
#products-container.list-view .fp-buy-btn {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
}
#products-container.list-view .fp-apply-btn {
    padding: 6px 8px;
    font-size: 0.65rem;
    border-radius: 8px;
}
#products-container.list-view .fp-layaway-note {
    font-size: 0.5rem;
    margin-top: 4px;
}
#products-container.list-view .fp-term-select {
    font-size: 0.55rem;
    padding: 1px 14px 1px 4px;
}
#products-container.list-view .fp-installment-label {
    font-size: 0.5rem;
}
@media (min-width: 576px) {
    #products-container.list-view .fp-card-img-wrap {
        width: 150px;
        min-width: 150px;
        max-width: 150px;
        min-height: 150px;
    }
    #products-container.list-view .fp-card-title { font-size: 0.85rem; }
    #products-container.list-view .fp-price-main { font-size: 1.3rem; }
    #products-container.list-view .fp-buy-btn { width: 34px; height: 34px; flex: 0 0 34px; }
    #products-container.list-view .fp-apply-btn { font-size: 0.7rem; padding: 8px 10px; }
}
@media (min-width: 768px) {
    #products-container.list-view .fp-card-img-wrap {
        width: 170px;
        min-width: 170px;
        max-width: 170px;
        min-height: 160px;
    }
    #products-container.list-view .fp-card-body { padding: 12px; }
    #products-container.list-view .fp-card-title { font-size: 0.9rem; -webkit-line-clamp: 2; }
    #products-container.list-view .fp-price-main { font-size: 1.45rem; }
    #products-container.list-view .fp-downpayment,
    #products-container.list-view .fp-cash-price { font-size: 0.6rem; }
    #products-container.list-view .fp-buy-btn { width: 36px; height: 36px; flex: 0 0 36px; }
    #products-container.list-view .fp-apply-btn { font-size: 0.75rem; }
}

/* ═══ Product Cards — List View (Homepage) ═══ */
#hp-products-container.list-view {
    display: flex !important;
    flex-direction: column !important;
}
#hp-products-container.list-view > .col-6,
#hp-products-container.list-view > [class*="col-"] {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
#hp-products-container.list-view .product-card-modern {
    flex-direction: row;
    height: auto;
    padding: 0.75rem;
    border-radius: 0.75rem;
}
#hp-products-container.list-view .product-card-image-wrapper {
    width: 130px;
    min-width: 130px;
    max-width: 130px;
    padding-top: 0;
    height: 130px;
    flex-shrink: 0;
    border-radius: 0.5rem;
    overflow: hidden;
    aspect-ratio: 1 / 1;
}
/* Extra-small devices (320px - 374px) */
@media (max-width: 374.98px) {
    #hp-products-container.list-view .product-card-image-wrapper {
        width: 90px;
        min-width: 90px;
        max-width: 90px;
        height: 90px;
    }
    #hp-products-container.list-view .product-card-body {
        padding: 0 0 0 0.5rem;
    }
    #hp-products-container.list-view .product-card-title {
        font-size: 0.75rem;
    }
    #hp-products-container.list-view .product-card-price {
        font-size: 0.9rem;
    }
    #hp-products-container.list-view .btn-buy-now,
    #hp-products-container.list-view .btn-add-cart {
        width: 26px !important;
        height: 26px !important;
        font-size: 0.5rem;
    }
}
/* Small mobile (375px - 575px) */
@media (min-width: 375px) and (max-width: 575.98px) {
    #hp-products-container.list-view .product-card-image-wrapper {
        width: 110px;
        min-width: 110px;
        max-width: 110px;
        height: 110px;
    }
    #hp-products-container.list-view .product-card-body {
        padding: 0 0 0 0.6rem;
    }
    #hp-products-container.list-view .product-card-title {
        font-size: 0.8rem;
    }
}
#hp-products-container.list-view .product-card-image {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #fff;
}
#hp-products-container.list-view .product-badge {
    font-size: 9px;
    padding: 2px 6px;
    top: 4px;
    left: 4px;
}
#hp-products-container.list-view .product-wishlist-btn {
    width: 26px;
    height: 26px;
    top: -10px;
    right: auto;
    left: 80px;
}
#hp-products-container.list-view .product-wishlist-btn i {
    font-size: 0.7rem;
}
#hp-products-container.list-view .product-card-body {
    padding: 0 0 0 0.75rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    flex: 1;
    border-top: #ffffff 1px solid;
}
#hp-products-container.list-view .product-rating-display {
    font-size: 0.7rem;
    margin-bottom: 0.25rem;
}
#hp-products-container.list-view .rating-value,
#hp-products-container.list-view .review-count {
    font-size: 0.65rem;
}
#hp-products-container.list-view .stock-badge {
    font-size: 9px;
    padding: 2px 6px;
}
#hp-products-container.list-view .product-card-title {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    min-height: auto;
    max-height: none;
    margin-bottom: 0.25rem;
}
#hp-products-container.list-view .product-card-title a {
    -webkit-line-clamp: 2;
}
#hp-products-container.list-view .product-card-price-actions-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
}
#hp-products-container.list-view .product-card-price-section {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
#hp-products-container.list-view .price-label {
    display: none;
}
#hp-products-container.list-view .product-card-price {
    font-size: 1rem;
    margin: 0;
}
#hp-products-container.list-view .product-card-actions {
    margin-top: 0;
    display: flex;
    gap: 8px;
}
#hp-products-container.list-view .btn-buy-now,
#hp-products-container.list-view .btn-add-cart {
    width: 30px !important;
    height: 30px !important;
    min-width: 44px !important;
    padding: 0;
    flex: 0 0 30px;
    border-radius: 50% !important;
}
#hp-products-container.list-view .btn-buy-now i,
#hp-products-container.list-view .btn-add-cart i {
    margin: 0 !important;
    font-size: 0.7rem;
}
#hp-products-container.list-view .btn-buy-now span,
#hp-products-container.list-view .btn-add-cart span {
    display: none !important;
}
#hp-products-container.list-view .product-card-price-actions-wrapper {
    order: 1;
}
#hp-products-container.list-view .product-card-body > small.text-muted {
    order: 3;
    font-size: 10px;
    margin-top: 0.25rem;
}
@media (min-width: 768px) {
    #hp-products-container.list-view .product-card-image-wrapper {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        height: 120px;
    }
    #hp-products-container.list-view .product-wishlist-btn {
        width: 28px;
        height: 28px;
        left: 88px;
    }
    #hp-products-container.list-view .product-card-title {
        font-size: 1rem;
    }
    #hp-products-container.list-view .btn-buy-now,
    #hp-products-container.list-view .btn-add-cart {
        width: 32px !important;
        height: 32px !important;
        flex: 0 0 32px;
    }
}
@media (max-width: 480px) {
    #hp-products-container.list-view .product-card-image-wrapper {
        width: 120px;
        min-width: 120px;
        max-width: 120px;
        height: 160px;
    }
    #hp-products-container.list-view .product-wishlist-btn {
        width: 24px;
        height: 24px;
        left: 90px !important;
    }
    #hp-products-container.list-view .product-card-title {
        font-size: 0.8rem;
    }
    #hp-products-container.list-view .product-card-price {
        font-size: 0.9rem;
    }
    #hp-products-container.list-view .product-rating-display {
        font-size: 0.6rem;
    }
    #hp-products-container.list-view .stock-badge {
        font-size: 8px;
        padding: 2px 4px;
    }
}

/* ─── Pulse Animation ─── */
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.8; transform: scale(1.05); }
}

/* ─── Homepage Deals Strip ─── */
.hp-deals-strip {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 0.35rem;
    scroll-snap-type: x mandatory;
}
.hp-deals-strip::-webkit-scrollbar { display: none; }

/* ── Base card — mobile-first ── */
.hp-deal-card {
    position: relative;
    flex: 0 0 100%;
    min-height: 160px;
    aspect-ratio: 2 / 1;
    border-radius: 0.875rem;
    overflow: hidden;
    text-decoration: none;
    background: linear-gradient(135deg, #0f172a, #1e3a5f);
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    -webkit-tap-highlight-color: transparent;
    scroll-snap-align: start;
}
.hp-deal-card:active { transform: scale(0.98); }
@media (hover: hover) {
    .hp-deal-card:hover {
        transform: translateY(-3px);
        box-shadow: 0 10px 28px rgba(0,0,0,0.18);
    }
    .hp-deal-card:hover .hp-deal-bg { transform: scale(1.05); }
    .hp-deal-card:hover .hp-deal-cta i { transform: translateX(3px); }
}

.hp-deal-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: 70% center;
    transition: transform 0.5s ease;
}
.hp-deal-noimg {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: rgba(255,255,255,0.15);
}

.hp-deal-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to right,
        rgba(0,0,0,0.88) 0%,
        rgba(0,0,0,0.55) 55%,
        rgba(0,0,0,0.08) 100%
    );
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1rem 1.1rem;
    gap: 0.2rem;
}

.hp-deal-label {
    display: inline-flex;
    align-self: flex-start;
    padding: 0.25em 0.7em;
    border-radius: 50rem;
    font-size: 0.65rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    box-shadow: 0 2px 6px rgba(0,0,0,0.25);
    margin-bottom: 0.2rem;
}
.hp-deal-title {
    color: #fff;
    font-weight: 800;
    font-size: 1.15rem;
    line-height: 1.2;
    text-shadow: 0 1px 4px rgba(0,0,0,0.4);
}
.hp-deal-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: #ffce00;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    margin-top: 0.15rem;
}
.hp-deal-cta i { font-size: 0.6rem; transition: transform 0.2s; }

/* ── 1 card: full-width banner (mobile already 100%) ── */

/* ── 2 cards on mobile: side-by-side ── */
.hp-deals-strip[data-count="2"] .hp-deal-card {
    flex: 0 0 calc(50% - 0.375rem);
    aspect-ratio: 3 / 2;
}
.hp-deals-strip[data-count="2"] .hp-deal-title { font-size: 0.92rem; }
.hp-deals-strip[data-count="2"] .hp-deal-overlay {
    padding: 0.75rem 0.8rem;
}

/* ── 3+ cards on mobile: scrollable peek ── */
.hp-deals-strip[data-count="3"] .hp-deal-card,
.hp-deals-strip[data-count="4"] .hp-deal-card,
.hp-deals-strip[data-count="5"] .hp-deal-card,
.hp-deals-strip[data-count="6"] .hp-deal-card {
    flex: 0 0 72%;
    aspect-ratio: 3 / 2;
}

/* ── Tablet (576px+) ── */
@media (min-width: 576px) {
    .hp-deal-card {
        min-height: 200px;
    }
    .hp-deal-title { font-size: 1.2rem; }
    .hp-deal-label { font-size: 0.7rem; }
    .hp-deal-overlay { padding: 1.15rem 1.25rem; }

    /* 1 card — stays full-width landscape */

    /* 2 cards — half-and-half */
    .hp-deals-strip[data-count="2"] .hp-deal-card {
        flex: 0 0 calc(50% - 0.375rem);
        aspect-ratio: 16 / 9;
    }
    .hp-deals-strip[data-count="2"] .hp-deal-title { font-size: 1.15rem; }

    /* 3+ cards — scrollable, wider peek */
    .hp-deals-strip[data-count="3"] .hp-deal-card,
    .hp-deals-strip[data-count="4"] .hp-deal-card,
    .hp-deals-strip[data-count="5"] .hp-deal-card,
    .hp-deals-strip[data-count="6"] .hp-deal-card {
        flex: 0 0 46%;
        aspect-ratio: 3 / 2;
    }
}

/* ── Desktop (992px+) — grid layout ── */
@media (min-width: 992px) {
    .hp-deals-strip {
        overflow-x: visible;
        flex-wrap: wrap;
        scroll-snap-type: none;
        gap: 0.875rem;
    }

    .hp-deal-bg { object-position: center right; }
    .hp-deal-overlay { padding: 1.25rem 1.35rem; }

    /* 1 card — full-width banner */
    .hp-deals-strip[data-count="1"] .hp-deal-card {
        flex: 0 0 100%;
        aspect-ratio: 21 / 7;
        min-height: 220px;
    }
    .hp-deals-strip[data-count="1"] .hp-deal-title { font-size: 1.5rem; }
    .hp-deals-strip[data-count="1"] .hp-deal-label { font-size: 0.78rem; padding: 0.3em 0.9em; }
    .hp-deals-strip[data-count="1"] .hp-deal-cta { font-size: 0.88rem; }
    .hp-deals-strip[data-count="1"] .hp-deal-overlay {
        padding: 1.75rem 2rem;
        background: linear-gradient(
            to right,
            rgba(0,0,0,0.85) 0%,
            rgba(0,0,0,0.50) 50%,
            rgba(0,0,0,0.05) 100%
        );
        max-width: 50%;
    }

    /* 2 cards — half-and-half */
    .hp-deals-strip[data-count="2"] .hp-deal-card {
        flex: 0 0 calc(50% - 0.4375rem);
        aspect-ratio: 16 / 9;
    }
    .hp-deals-strip[data-count="2"] .hp-deal-title { font-size: 1.25rem; }

    /* 3 cards — thirds */
    .hp-deals-strip[data-count="3"] .hp-deal-card {
        flex: 0 0 calc(33.333% - 0.584rem);
        aspect-ratio: 4 / 3;
    }

    /* 4+ cards — quarters */
    .hp-deals-strip[data-count="4"] .hp-deal-card,
    .hp-deals-strip[data-count="5"] .hp-deal-card,
    .hp-deals-strip[data-count="6"] .hp-deal-card {
        flex: 0 0 calc(25% - 0.656rem);
        aspect-ratio: 4 / 3;
    }
    .hp-deals-strip[data-count="4"] .hp-deal-title,
    .hp-deals-strip[data-count="5"] .hp-deal-title,
    .hp-deals-strip[data-count="6"] .hp-deal-title { font-size: 1.05rem; }
}

/* ═══════════════════════════════════════════════════
   Homepage Hero Banner (Installment Promotion)
   Enhanced as main hero banner
   ═══════════════════════════════════════════════════ */

/* Make the banner a proper hero section */
.installment-banner-wrap {
    min-height: 160px;
}

@media (min-width: 576px) {
    .installment-banner-wrap {
        min-height: 200px;
    }
}

@media (min-width: 768px) {
    .installment-banner-wrap {
        min-height: 240px;
    }
    .installment-title { font-size: 1.75rem; }
    .installment-desc { font-size: 1.1rem; }
}

@media (min-width: 992px) {
    .installment-banner-wrap {
        min-height: 280px;
    }
    .installment-title { font-size: 2rem; }
    .installment-desc { font-size: 1.15rem; }
}

/* ─── Hero Feature Badges ─── */
.hp-hero-badges {
    gap: 0.4rem;
}

.hp-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.3rem 0.65rem;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 50rem;
    font-size: 0.6rem;
    font-weight: 600;
    color: #fff;
    white-space: nowrap;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hp-hero-badge i {
    color: #81ea98;
    font-size: 0.55rem;
}

.hp-hero-badge:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

@media (min-width: 576px) {
    .hp-hero-badges {
        gap: 0.5rem;
    }
    .hp-hero-badge {
        padding: 0.35rem 0.75rem;
        font-size: 0.65rem;
        gap: 0.4rem;
    }
    .hp-hero-badge i {
        font-size: 0.6rem;
    }
}

@media (min-width: 768px) {
    .hp-hero-badges {
        gap: 0.65rem;
    }
    .hp-hero-badge {
        padding: 0.4rem 0.9rem;
        font-size: 0.75rem;
    }
    .hp-hero-badge i {
        font-size: 0.7rem;
    }
}

@media (min-width: 992px) {
    .hp-hero-badges {
        gap: 0.75rem;
    }
    .hp-hero-badge {
        padding: 0.5rem 1rem;
        font-size: 0.8rem;
    }
    .hp-hero-badge i {
        font-size: 0.75rem;
    }
}
