/* Kids Mall Master Design Tokens & Variables */
:root {
    --primary-color: var(--theme-primary, #EF233C);      /* Kids Mall Primary Red */
    --primary-dark: #D4162E;
    --primary-light: #FFECEF;
    --km-red: #EF233C;
    --km-navy: #123B70;                                  /* Deep navy */
    --km-blue: #1688F8;                                  /* Bright blue */
    --km-yellow: #FFC928;                                /* Yellow accent */
    --km-mint: #2CCB83;                                  /* Mint green */
    --km-green: #2CCB83;
    --km-pink: #F45AA8;
    --km-bg: #F5F9FF;                                    /* Light background */
    --km-card: #FFFFFF;                                  /* Card background */
    --km-text: #17365F;                                  /* Primary text */
    --km-text-muted: #64748B;                            /* Secondary text */
    --km-border: #E3EAF4;                                /* Borders */
    --accent-color: #1688F8;
    --accent-red: #EF233C;
    --dark-color: #123B70;
    --gray-light: #F5F9FF;
    --font-base: 'Inter', sans-serif;
    --font-heading: 'Outfit', sans-serif;
    --transition-smooth: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Base resets & typography */
body {
    font-family: var(--font-base);
    color: var(--dark-color);
    -webkit-font-smoothing: antialiased;
    background-color: #fcfcfc;
}

.font-outfit {
    font-family: var(--font-heading);
}

/* Utilities */
.hover-success {
    transition: var(--transition-smooth);
}
.hover-success:hover {
    color: var(--primary-color) !important;
}

.cursor-pointer {
    cursor: pointer;
}

/* Primary Button Enhancements */
.btn-success {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition-smooth);
    font-weight: 500;
}
.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: var(--primary-dark) !important;
    border-color: var(--primary-dark) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(12, 131, 31, 0.2);
}

/* Outline Button styling */
.btn-outline-success {
    color: var(--primary-color);
    border-color: var(--primary-color);
    transition: var(--transition-smooth);
}
.btn-outline-success:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
    box-shadow: 0 4px 12px rgba(12, 131, 31, 0.15);
}

/* Announcement Bar overlay text */
.announcement-bar {
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.3px;
}

/* Sticky Header Styling with glassmorphism blur */
.navbar-sticky {
    position: sticky;
    top: 0;
    z-index: 1020;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

/* Search bar styling */
.search-input-group .form-control {
    font-size: 0.9rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.search-input-group .btn {
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* Timings Badge Glow */
.badge-timing-open {
    background-color: rgba(12, 131, 31, 0.1);
    color: var(--primary-color);
    border: 1px solid rgba(12, 131, 31, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-timing-closed {
    background-color: rgba(234, 44, 54, 0.1);
    color: var(--accent-red);
    border: 1px solid rgba(234, 44, 54, 0.2);
    font-size: 0.75rem;
    font-weight: 600;
}

/* Horizontal Categories Scroll (Blinkit-style) */
.category-scroll-container {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    display: flex;
    gap: 1.25rem;
    overflow-x: auto;
    padding-bottom: 0.5rem;
}
.category-scroll-container::-webkit-scrollbar {
    display: none; /* Chrome, Safari */
}

.category-scroll-item {
    transition: var(--transition-smooth);
}
.category-scroll-item:hover {
    transform: translateY(-3px);
}

/* Premium Card hover-lift effect */
.hover-lift {
    transition: var(--transition-smooth);
}
.hover-lift:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
}

/* Product Card design */
.product-card {
    transition: var(--transition-smooth);
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}
.product-card:hover {
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08) !important;
    border-color: rgba(12, 131, 31, 0.15) !important;
}
.product-card .img-container {
    width: 100%;
    aspect-ratio: 1 / 1;
    height: auto;
    background-color: #f8f9fa;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    padding: 0;
}
.product-card .img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.product-card:hover .img-container img {
    transform: scale(1.06);
}

/* Discount Badge styling */
.badge-discount {
    background-color: var(--accent-red);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.35rem 0.6rem;
    border-top-left-radius: 4px;
    border-bottom-right-radius: 12px;
}

/* Timing stock indicator badges */
.badge-stock-low {
    font-size: 0.7rem;
    background-color: rgba(247, 188, 6, 0.15);
    color: #b25e00;
}
.badge-stock-out {
    font-size: 0.7rem;
    background-color: rgba(234, 44, 54, 0.1);
    color: var(--accent-red);
}

/* WhatsApp Floating widget button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    z-index: 1000;
    box-shadow: 0 4px 16px rgba(12, 131, 31, 0.3);
    transition: var(--transition-smooth);
}
.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: 0 6px 20px rgba(12, 131, 31, 0.45);
}

/* Custom Scrollbars */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #f9f9f9; 
}
::-webkit-scrollbar-thumb {
    background: #dcdcdc; 
    border-radius: 6px;
}
::-webkit-scrollbar-thumb:hover {
    background: #c1c1c1; 
}

/* Testimonial slider cards */
.review-card {
    border-radius: 16px;
    border: 1px solid rgba(0,0,0,0.04);
    background-color: #fff;
    padding: 1.5rem;
    transition: var(--transition-smooth);
}
.review-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.04);
}

/* Responsiveness & Scroll Overflows Prevention */
html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
}

/* Desktop Search Bar UI Adjustments */
.search-input-group {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center;
    background: #f8f9fa;
}

/* Hover Dropdown */
@media (min-width: 992px) {
    .dropdown-hover:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}
.search-input-group .form-control {
    font-size: 0.9rem;
    padding-top: 0.65rem;
    padding-bottom: 0.65rem;
}
.search-input-group .form-control:focus {
    box-shadow: none;
}
.search-input-group .btn-success {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 50px !important;
    border-bottom-right-radius: 50px !important;
}

/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    height: 60px;
    border-top: 1px solid rgba(0, 0, 0, 0.08) !important;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
}
.nav-tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 1;
    font-size: 0.65rem;
    color: #6c757d;
    transition: color 0.2s ease-in-out;
    padding: 6px 0;
}
.nav-tab-item i {
    font-size: 1.3rem;
    margin-bottom: 1px;
    transition: transform 0.2s ease;
}
.nav-tab-item.active-tab {
    color: var(--primary-color) !important;
    font-weight: 600;
}
.nav-tab-item.active-tab i {
    transform: translateY(-2px);
    color: var(--primary-color) !important;
}

/* Left Sidebar Menu Drawer (Offcanvas) */
.offcanvas-start {
    width: 295px !important;
    border-right: none;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
}
.drawer-profile-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: #fff;
    padding: 1.5rem;
    border-bottom-left-radius: 18px;
    border-bottom-right-radius: 18px;
}
.drawer-menu-list .list-group-item {
    border: none;
    padding: 0.8rem 1.25rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark-color);
    transition: var(--transition-smooth);
    border-radius: 8px;
    margin-bottom: 2px;
}
.drawer-menu-list .list-group-item:hover,
.drawer-menu-list .list-group-item.active {
    background-color: var(--primary-light) !important;
    color: var(--primary-color) !important;
}
.drawer-menu-list .list-group-item i {
    font-size: 1.15rem;
    margin-right: 0.75rem;
    width: 24px;
    display: inline-block;
    text-align: center;
}

@media (max-width: 991px) {
    body {
        padding-bottom: 70px; /* Space for fixed bottom tabs */
    }
}

/* Global Theme Transition */
body, .bg-white, .card, .dropdown-menu, .offcanvas, .modal-content, h1, h2, h3, h4, h5, h6, .text-dark, .text-secondary, .text-muted, .border, .list-group-item {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Dark Mode Palette Overrides (Tailored Slate Theme) */
body.dark-theme {
    background-color: #0f172a !important;
    color: #cbd5e1 !important;
}
body.dark-theme .bg-white,
body.dark-theme .card,
body.dark-theme .dropdown-menu,
body.dark-theme .offcanvas,
body.dark-theme .modal-content,
body.dark-theme .modal-header,
body.dark-theme .modal-footer {
    background-color: #1e293b !important;
    color: #e2e8f0 !important;
}
body.dark-theme .navbar {
    background-color: #1e293b !important;
}
body.dark-theme .text-dark,
body.dark-theme .navbar-brand,
body.dark-theme h1,
body.dark-theme h2,
body.dark-theme h3,
body.dark-theme h4,
body.dark-theme h5,
body.dark-theme h6 {
    color: #f8fafc !important;
}
body.dark-theme .text-secondary,
body.dark-theme .text-muted {
    color: #94a3b8 !important;
}
body.dark-theme .border,
body.dark-theme .border-top,
body.dark-theme .border-bottom,
body.dark-theme .border-start,
body.dark-theme .border-end,
body.dark-theme .dropdown-divider {
    border-color: #334155 !important;
}
body.dark-theme .list-group-item {
    background-color: transparent !important;
    color: #94a3b8 !important;
}
body.dark-theme .list-group-item:hover {
    background-color: rgba(12, 131, 31, 0.12) !important;
    color: #4ade80 !important;
}
body.dark-theme .search-input-group {
    background: #1e293b !important;
    border-color: #475569 !important;
}
body.dark-theme .search-input-group input {
    color: #f8fafc !important;
}
body.dark-theme .bg-light {
    background-color: #334155 !important;
}
body.dark-theme .btn-light {
    background-color: #334155 !important;
    border-color: #475569 !important;
    color: #cbd5e1 !important;
}
body.dark-theme .btn-light:hover {
    background-color: #475569 !important;
    color: #f8fafc !important;
}
body.dark-theme .mobile-bottom-nav {
    background: rgba(30, 41, 59, 0.95) !important;
    border-top-color: #334155 !important;
}
body.dark-theme .nav-tab-item {
    color: #94a3b8;
}
body.dark-theme .nav-tab-item.active-tab {
    color: #4ade80 !important;
}
body.dark-theme .nav-tab-item.active-tab i {
    color: #4ade80 !important;
}

/* Premium Social Sign-in Buttons */
.btn-google {
    background-color: #ffffff;
    color: #3c4043;
    border: 1px solid #dadce0;
    transition: all 0.25s ease;
    font-weight: 600;
    font-size: 0.9rem;
    border-radius: 50px;
    padding: 0.6rem 1.25rem;
}
.btn-google:hover {
    background-color: #f8fafe;
    box-shadow: 0 1px 3px rgba(60,64,67,0.3), 0 4px 8px 3px rgba(60,64,67,0.15);
}
body.dark-theme .btn-google {
    background-color: #1e293b;
    color: #f1f5f9;
    border-color: #475569;
}
body.dark-theme .btn-google:hover {
    background-color: #334155;
}

/* Safe Area Spacers & Padding */
@media (max-width: 991px) {
    .mobile-header-sticky-wrapper {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 1020;
        background: #fff;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    }
    body.dark-theme .mobile-header-sticky-wrapper {
        background: #1e293b !important;
        border-bottom: 1px solid #334155;
        box-shadow: none;
    }
    body {
        padding-top: 0 !important;
        padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 68px) !important;
    }

    /* Transition layout to single line when scrolled */
    .scrolled-header {
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08) !important;
    }
    .scrolled-header .mobile-header-container {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        padding: 6px 10px !important;
        gap: 6px !important;
    }
    .scrolled-header .header-top-row {
        display: contents !important;
        border-bottom: none !important;
        padding: 0 !important;
    }
    .scrolled-header .header-menu-logo-wrapper {
        order: 1 !important;
        flex-shrink: 0 !important;
    }
    .scrolled-header .header-brand-name {
        display: none !important;
    }
    
    /* Shrink search input container to ~22% width on scroll */
    .scrolled-header .header-search-row {
        order: 2 !important;
        width: 22% !important;
        max-width: 96px !important;
        padding: 0 !important;
        border-bottom: none !important;
        box-shadow: none !important;
        flex-shrink: 0 !important;
    }
    .scrolled-header .header-search-row button[type="submit"],
    .scrolled-header .header-search-row button[onclick="startVoiceSearch()"] {
        display: none !important;
    }
    .scrolled-header .search-input-group {
        border-radius: 30px !important;
        border-color: #cbd5e1 !important;
    }
    .scrolled-header .search-input-group input {
        font-size: 0.72rem !important;
        padding: 0.3rem 0.4rem !important;
        text-align: center !important;
    }
    .scrolled-header .search-input-group .input-group-text {
        padding: 0.3rem 0.2rem 0.3rem 0.4rem !important;
        font-size: 0.72rem !important;
    }
    
    /* Keep location selector on header single line */
    .scrolled-header .header-location-box {
        order: 3 !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        flex-grow: 1 !important;
        min-width: 0 !important;
        justify-content: center !important;
    }
    .scrolled-header .header-location-box .btn {
        display: flex !important;
        align-items: center !important;
        gap: 3px !important;
        padding: 0 !important;
        margin: 0 !important;
        min-width: 0 !important;
        width: 100% !important;
        justify-content: center !important;
    }
    .scrolled-header .header-location-box .bi-geo-alt-fill {
        font-size: 1.1rem !important;
        margin-top: -2px !important;
        flex-shrink: 0 !important;
    }
    .scrolled-header .header-location-box #headerMobileLocationLabel {
        font-size: 0.72rem !important;
        max-width: 70px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        display: inline-block !important;
    }

    /* Cart at the far right */
    .scrolled-header .header-cart-box {
        order: 4 !important;
        flex-shrink: 0 !important;
        margin-left: auto !important;
    }
}

/* Skeleton Loader & Shimmer Animation */
.shimmer-bg {
    background: #f6f7f8;
    background-image: linear-gradient(to right, #f6f7f8 0%, #edeef1 20%, #f6f7f8 40%, #f6f7f8 100%);
    background-repeat: no-repeat;
    background-size: 800px 100%;
    animation: shimmerEffect 1.4s infinite linear;
}
@keyframes shimmerEffect {
    0% { background-position: -468px 0; }
    100% { background-position: 468px 0; }
}

/* Touch Feedback Active Press animations */
.btn-success:active, 
.btn-outline-success:active, 
.nav-tab-item:active,
.category-scroll-item:active,
.pdp-variant-chip:active {
    transform: scale(0.95) !important;
    opacity: 0.85;
}

/* Premium smooth transitions */
.carousel-item {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

/* Fallback Splash Screen Fade Out (Prevents infinite loading loops if JS fails) */
#pwa-splash-screen {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}


/* Mobile Bottom Navigation Bar */
.mobile-bottom-nav {
    display: flex;
    justify-content: space-around;
    align-items: center;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    z-index: 1000;
    padding: 8px 0;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #4b5563;
    font-size: 0.7rem;
    font-weight: 500;
    transition: color 0.2s ease;
}

.mobile-bottom-nav-item i {
    font-size: 1.3rem;
    margin-bottom: 2px;
}

.mobile-bottom-nav-item.active {
    color: var(--primary-color);
}

/* Mobile Sticky Bottom Action Bar for PDP */
.mobile-sticky-action-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #ffffff;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    padding: 12px 16px;
    z-index: 1010;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Category Grid Layout styling */
.jbola-category-grid {
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    grid-auto-flow: column;
    grid-auto-columns: minmax(80px, 1fr);
    gap: 16px;
    padding: 16px 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.jbola-category-grid::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .jbola-category-grid {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 32px;
    }
}

.jbola-category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    color: var(--dark-color);
}

.jbola-category-img-box {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--gray-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (min-width: 768px) {
    .jbola-category-img-box {
        width: 100px;
        height: 100px;
    }
}

.jbola-category-item:hover .jbola-category-img-box {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.jbola-category-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.jbola-category-title {
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.2;
    color: #4b5563;
}
@media (min-width: 768px) {
    .jbola-category-title {
        font-size: 0.95rem;
        font-weight: 700;
    }
}

/* Horizontal Product Sliders (Native App Feel) */
.horizontal-product-slider {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 1rem;
    padding-bottom: 1rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    width: 100%;
}
.horizontal-product-slider::-webkit-scrollbar {
    display: none;
}
.horizontal-product-slider > div {
    min-width: 240px;
    max-width: 240px;
    flex: 0 0 auto;
    scroll-snap-align: start;
}
@media (max-width: 767px) {
    .horizontal-product-slider > div {
        min-width: 160px;
        max-width: 160px;
    }
}

/* Flash Deals Timer */
.flash-timer-box {
    background-color: #fff9c4;
    color: #f57f17;
    padding: 0.3rem 0.6rem;
    border-radius: 6px;
    font-weight: bold;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.flash-timer-box span {
    background: #fff;
    padding: 0.1rem 0.3rem;
    border-radius: 4px;
    color: #f57f17;
}

/* Jbola specific layouts */
.jbola-header-search-container {
    background: #f3f4f6;
    border-radius: 9999px;
    display: flex;
    align-items: center;
    padding: 4px 16px;
    width: 100%;
}

/* Mobile Native App Layout Overrides */
@media (max-width: 991.98px) {
    /* Categories Grid to Horizontal Scroll */
    .jbola-category-grid {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 0.8rem;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Firefox */
    }
    .jbola-category-grid::-webkit-scrollbar {
        display: none; /* Safari and Chrome */
    }
    .jbola-category-item {
        flex: 0 0 auto;
        width: 80px;
        scroll-snap-align: start;
    }

    /* Product Cards Horizontal Slider */
    .horizontal-product-slider {
        display: flex;
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 1rem;
        padding-bottom: 1rem;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        margin-left: -1rem; /* Edge to edge */
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
    }
    .horizontal-product-slider::-webkit-scrollbar {
        display: none;
    }
    .horizontal-product-slider .slider-item {
        flex: 0 0 auto;
        width: 160px; /* Mobile product card width */
        scroll-snap-align: start;
    }
}

/* Desktop Fallbacks for horizontal slider */
@media (min-width: 992px) {
    .horizontal-product-slider {
        display: flex;
        flex-wrap: wrap;
        gap: 1.5rem;
    }
    .horizontal-product-slider .slider-item {
        flex: 0 0 calc(25% - 1.125rem);
    }
}

/* Perfecting Bottom Nav for Mobile App feel */
.mobile-bottom-nav {
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 8px) !important;
}
.mobile-bottom-nav-item {
    color: #6b7280;
    transition: all 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.mobile-bottom-nav-item i {
    font-size: 1.35rem;
    transition: transform 0.2s;
}
.mobile-bottom-nav-item span {
    font-size: 0.65rem;
    font-weight: 600;
}
.mobile-bottom-nav-item.active {
    color: var(--primary-color) !important;
    background: rgba(12, 131, 31, 0.08);
    box-shadow: 0 4px 12px rgba(12, 131, 31, 0.12);
    padding: 6px 16px;
    border-radius: 18px;
    margin: -6px 0;
    backdrop-filter: blur(5px);
}
.mobile-bottom-nav-item.active i {
    transform: scale(1.15);
}
.mobile-bottom-nav-item:active {
    transform: scale(0.9);
}

/* Hide breadcrumbs on mobile */
@media (max-width: 991.98px) {
    .breadcrumb, nav[aria-label="breadcrumb"] {
        display: none !important;
    }
}

/* Global override to hide number input spinners everywhere */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
input[type="number"] {
  -moz-appearance: textfield;
}

/* ========================================================
   FLY-TO-CART & CART BOUNCE ANIMATION EFFECTS
   ======================================================== */
@keyframes cartBouncePulse {
    0% { transform: scale(1); box-shadow: 0 0 0 rgba(22, 163, 74, 0); }
    30% { transform: scale(1.35) rotate(-6deg); color: var(--theme-primary) !important; }
    50% { transform: scale(1.4) rotate(6deg); box-shadow: 0 0 20px rgba(22, 163, 74, 0.6); }
    75% { transform: scale(1.15) rotate(-3deg); }
    100% { transform: scale(1); box-shadow: 0 0 0 rgba(22, 163, 74, 0); }
}

@keyframes badgePopEffect {
    0% { transform: scale(1); }
    40% { transform: scale(1.6); background-color: #22c55e !important; }
    100% { transform: scale(1); }
}

.cart-bounce-effect {
    animation: cartBouncePulse 0.65s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
}

.badge-pop-effect {
    animation: badgePopEffect 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* Premium Floating Glassmorphic Toast */
#cart-toast-container {
    pointer-events: none;
}
#cart-toast-container .toast-notification {
    pointer-events: auto;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(34, 197, 94, 0.45);
    background: rgba(17, 24, 39, 0.94) !important;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.35), 0 0 20px rgba(22, 163, 74, 0.25);
}

/* ==========================================================================
   KIDS MALL DESIGN SYSTEM & THEME
   ========================================================================== */

:root {
    --km-primary: #e11d48;
    --km-primary-hover: #be123c;
    --km-yellow: #f59e0b;
    --km-blue: #0284c7;
    --km-indigo: #4f46e5;
    --km-green: #10b981;
    --km-pink: #ec4899;
    --km-purple: #8b5cf6;
    --km-bg-soft: #f8fafc;
    --km-border: #f1f5f9;
}

body {
    overflow-x: hidden !important;
    background-color: #ffffff;
}

/* 1. TOP UTILITY STRIP */
.km-top-utility {
    background: linear-gradient(90deg, #0284c7 0%, #0369a1 100%);
    color: #ffffff;
    font-size: 0.8rem;
    padding: 0.4rem 0;
    font-weight: 500;
}
.km-top-utility a {
    color: #ffffff;
    text-decoration: none;
    transition: opacity 0.2s;
}
.km-top-utility a:hover {
    opacity: 0.85;
}

/* 2. MULTICOLOR WORDMARK LOGO */
.km-logo-container {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    text-decoration: none;
    line-height: 1;
}
.km-logo-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 2.2rem;
    letter-spacing: -0.5px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.km-letter-k { color: #E5232A; }
.km-letter-i { color: #FFC928; }
.km-letter-d { color: #2D9CDB; }
.km-letter-s { color: #F45AA8; }
.km-letter-m { color: #E5232A; margin-left: 3px; }
.km-letter-a { color: #FFC928; }
.km-letter-l1 { color: #35C76F; }
.km-letter-l2 { color: #2D9CDB; }
.km-word-mall { color: #2D9CDB; margin-left: 3px; }
.km-logo-tagline {
    font-family: 'Outfit', sans-serif;
    font-size: 0.72rem;
    color: #17345F;
    font-weight: 600;
    letter-spacing: 0.4px;
    margin-top: 1px;
}

/* 3. NAVIGATION BAR */
.km-main-nav {
    background-color: #ffffff;
    border-bottom: 1px solid #f1f5f9;
    padding: 0.4rem 0;
}
.btn-all-categories {
    background-color: #e11d48 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.9rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}
.btn-all-categories:hover {
    background-color: #be123c !important;
}
.btn-visit-store {
    background-color: #f59e0b !important;
    color: #0f172a !important;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    padding: 0.5rem 1.25rem;
    font-size: 0.85rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}
.btn-visit-store:hover {
    background-color: #d97706 !important;
    color: #ffffff !important;
}
.km-nav-link {
    color: #1e293b;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 0.88rem;
    padding: 0.5rem 0.65rem;
    text-decoration: none;
    transition: color 0.15s ease;
    white-space: nowrap;
}
.km-nav-link:hover {
    color: #e11d48;
}

/* 4. HERO SECTION WITH CLOUD ACCENTS */
.km-hero-wrapper,
.km-hero-cloud {
    background: linear-gradient(180deg, #e0f2fe 0%, #fdf2f8 60%, #ffffff 100%);
    border-radius: 2rem;
    padding: 3rem 2rem 2rem 2rem;
    position: relative;
    overflow: hidden;
    margin-top: 0.75rem;
    border: 1px solid rgba(2, 132, 199, 0.08);
}
.km-badge-branded,
.km-badge-pill {
    background: #ffffff;
    color: #0f172a;
    font-weight: 700;
    font-size: 0.8rem;
    border-radius: 50px;
    padding: 0.45rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.km-hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 1.12;
    letter-spacing: -1px;
}
.km-title-blue { color: #1e40af; }
.km-title-pink { color: #db2777; }
.km-title-green { color: #059669; }
.btn-km-primary {
    background-color: #e11d48 !important;
    color: #ffffff !important;
    font-weight: 700;
    font-family: 'Outfit', sans-serif;
    border-radius: 50px;
    padding: 0.75rem 2rem;
    font-size: 1rem;
    border: none;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: 0 8px 20px rgba(225, 29, 72, 0.35);
    transition: all 0.25s ease;
}
.btn-km-primary:hover {
    background-color: #be123c !important;
    transform: translateY(-2px);
    box-shadow: 0 12px 25px rgba(225, 29, 72, 0.45);
    color: #fff !important;
}

/* Trust chips inside Hero */
.km-trust-chip {
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid #e2e8f0;
    border-radius: 50px;
    padding: 0.4rem 0.85rem;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

/* 5. 10 CATEGORY CARDS ROW */
.km-cat-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 1rem 0;
    scrollbar-width: none;
}
.km-cat-row::-webkit-scrollbar { display: none; }
.km-cat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    text-decoration: none;
    min-width: 82px;
    flex: 1;
    transition: transform 0.2s ease;
}
.km-cat-item:hover {
    transform: translateY(-4px);
}
.km-cat-thumb {
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid #f1f5f9;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
    margin-bottom: 0.5rem;
    overflow: hidden;
    position: relative;
}
.km-cat-thumb img {
    width: 80%;
    height: 80%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.km-cat-item:hover .km-cat-thumb img {
    transform: scale(1.1);
}
.km-cat-label {
    font-family: 'Outfit', sans-serif;
    font-size: 0.78rem;
    font-weight: 600;
    color: #1e293b;
    line-height: 1.25;
}

/* 6. BRAND CARDS */
.km-brand-grid {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.5rem 0;
    scrollbar-width: none;
}
.km-brand-grid::-webkit-scrollbar { display: none; }
.km-brand-card {
    min-width: 100px;
    height: 60px;
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    text-decoration: none;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
}
.km-brand-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}
.km-brand-card img {
    max-height: 34px;
    max-width: 85px;
    object-fit: contain;
}

/* 7. AGE GROUPS & SHOP FOR CARDS */
.km-age-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 0.5rem;
    text-align: center;
    text-decoration: none;
    color: #0f172a;
    display: block;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
    transition: all 0.2s ease;
}
.km-age-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.08);
    border-color: #cbd5e1;
}
.km-age-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    margin: 0 auto 0.4rem;
    overflow: hidden;
    border: 2px solid #f1f5f9;
}
.km-age-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.km-age-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.75rem;
    color: #1e293b;
    line-height: 1.1;
}
.km-age-arrow {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f1f5f9;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #e11d48;
    font-size: 0.65rem;
    margin-top: 0.25rem;
}

/* 8. FEATURED COLLECTION BANNERS */
.km-campaign-banner {
    border-radius: 20px;
    padding: 1.5rem;
    color: #ffffff;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 190px;
    transition: transform 0.2s ease;
}
.km-campaign-banner:hover {
    transform: translateY(-3px);
}
.km-banner-lego {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
}
.km-banner-barbie {
    background: linear-gradient(135deg, #ec4899 0%, #db2777 100%);
}
.km-banner-marvel {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

/* 9. PRODUCT GRID (5 COLUMNS DESKTOP, 2 MOBILE) */
@media (min-width: 992px) {
    .col-km-5 {
        flex: 0 0 20% !important;
        max-width: 20% !important;
        width: 20% !important;
    }
}
@media (min-width: 576px) and (max-width: 991.98px) {
    .col-km-5 {
        flex: 0 0 33.333% !important;
        max-width: 33.333% !important;
        width: 33.333% !important;
    }
}
@media (max-width: 575.98px) {
    .col-km-5 {
        flex: 0 0 50% !important;
        max-width: 50% !important;
        width: 50% !important;
    }
}

.km-product-card {
    background: #ffffff;
    border: 1px solid #f1f5f9;
    border-radius: 16px;
    padding: 0.85rem;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    transition: all 0.2s ease;
}
.km-product-card:hover {
    border-color: #e2e8f0;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}
.km-product-thumb {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    margin-bottom: 0.65rem;
    background: #ffffff;
    border-radius: 12px;
    padding: 0;
    overflow: hidden;
}
.km-product-thumb img,
.km-prod-img-box img,
.km-card-photo {
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    object-fit: cover;
    object-position: center;
    transform: scale(1.08); /* Default slight side crop */
    transition: transform 0.25s ease;
}
.km-product-card:hover .km-product-thumb img,
.km-master-prod-card:hover .km-prod-img-box img,
.km-prod-card:hover .km-card-photo {
    transform: scale(1.15);
}
.km-product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 0.25rem 0.5rem;
    border-radius: 6px;
    z-index: 2;
}
.km-wishlist-btn {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #f1f5f9;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    z-index: 2;
    transition: all 0.15s ease;
}
.km-wishlist-btn:hover {
    color: #e11d48;
    background: #fff1f2;
}
.km-product-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.88rem;
    color: #1e293b;
    line-height: 1.25;
    margin-bottom: 0.35rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 2.2rem;
}
.btn-km-add-cart {
    background-color: transparent !important;
    color: #e11d48 !important;
    border: 1.5px solid #e11d48 !important;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 0.4rem 0.75rem;
    width: 100%;
    font-family: 'Outfit', sans-serif;
    transition: all 0.2s ease;
}
.btn-km-add-cart:hover {
    background-color: #e11d48 !important;
    color: #ffffff !important;
}

/* 10. VALUE PROPOSITION BAR */
.km-value-chip {
    background: #f8fafc;
    border: 1px solid #f1f5f9;
    border-radius: 14px;
    padding: 0.85rem 1rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

/* 11. VISIT OUR STORE SECTION */
.km-store-box {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}
.km-store-img {
    height: 160px;
    border-radius: 14px;
    overflow: hidden;
    position: relative;
}
.km-store-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 12. RESPONSIVE BREAKPOINTS ENFORCEMENT */
@media (max-width: 991.98px) {
    .km-hero-title {
        font-size: 2.2rem;
    }
}
@media (max-width: 575.98px) {
    .km-hero-title {
        font-size: 1.85rem;
    }
    .km-cat-thumb {
        width: 60px;
        height: 60px;
    }
}

/* 13. KIDS MALL 5-COLUMN PRODUCT GRID & BOX SYSTEM */
@media (min-width: 1200px) {
    .col-km-5 {
        flex: 0 0 20%;
        max-width: 20%;
    }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .col-km-5 {
        flex: 0 0 25%;
        max-width: 25%;
    }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .col-km-5 {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}
@media (max-width: 767.98px) {
    .col-km-5 {
        flex: 0 0 50%;
        max-width: 50%;
    }
}

/* Sticky Mobile Bottom Navigation */
.km-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 58px;
    background: #ffffff;
    border-top: 1px solid #E7EEF5;
    box-shadow: 0 -4px 16px rgba(18, 59, 114, 0.08);
    z-index: 1040;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 0 0.5rem;
}
.km-mob-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #64748B;
    text-decoration: none;
    font-size: 0.68rem;
    font-weight: 600;
    font-family: 'Outfit', sans-serif;
    padding: 0.25rem 0.5rem;
    transition: color 0.15s ease;
    position: relative;
}
.km-mob-nav-item i {
    font-size: 1.25rem;
    line-height: 1.1;
    margin-bottom: 2px;
}
.km-mob-nav-item.active,
.km-mob-nav-item:hover {
    color: #E5232A;
}
.km-mob-nav-badge {
    position: absolute;
    top: 0;
    right: 4px;
    background-color: #E5232A;
    color: #ffffff;
    font-size: 0.6rem;
    font-weight: 700;
    border-radius: 50%;
    padding: 1px 4px;
}

/* ========================================================= */
/* KIDS MALL PREMIUM PRODUCT DETAIL PAGE (PDP) DESIGN SYSTEM */
/* ========================================================= */
/* KIDS MALL PDP REFERENCE DESIGN SYSTEM (PIXEL-PERFECT)     */
/* ========================================================= */
.km-pdp-page {
    background-color: #FFFFFF;
    min-height: 100vh;
    padding-bottom: 60px;
}
/* Breadcrumbs */
.km-pdp-breadcrumb {
    font-size: 13px;
    color: #64748B;
}
.km-pdp-breadcrumb a {
    color: #64748B;
    text-decoration: none;
    transition: color 0.15s;
}
.km-pdp-breadcrumb a:hover {
    color: #E5232A;
}

/* Left Gallery Structure */
.km-pdp-gallery-wrap {
    display: flex;
    gap: 14px;
    align-items: flex-start;
}
.km-pdp-thumbs-v {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 70px;
    flex-shrink: 0;
}
.km-pdp-thumb-item {
    width: 68px;
    height: 68px;
    border-radius: 8px;
    border: 1.5px solid #E5E7EB;
    background: #FFFFFF;
    padding: 4px;
    cursor: pointer;
    object-fit: contain;
    transition: border-color 0.2s, box-shadow 0.2s;
    position: relative;
}
.km-pdp-thumb-item.active,
.km-pdp-thumb-item:hover {
    border-color: #E5232A;
}
.km-pdp-thumb-video-box {
    position: relative;
    cursor: pointer;
}
.km-pdp-thumb-video-badge {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 24px;
    height: 24px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    pointer-events: none;
}

/* Main Image Box */
.km-pdp-stage {
    position: relative;
    flex: 1;
    min-width: 0;
    width: 100%;
    height: 490px;
    max-height: 490px;
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    overflow: hidden;
}
.km-pdp-stage-img {
    max-width: 100% !important;
    max-height: 440px !important;
    width: auto !important;
    height: auto !important;
    object-fit: contain !important;
    display: block;
    margin: 0 auto;
    transition: transform 0.25s ease;
}
.km-pdp-bestseller-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background-color: #E5232A;
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 700;
    border-radius: 20px;
    padding: 4px 12px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.km-pdp-expand-btn {
    position: absolute;
    bottom: 16px;
    right: 16px;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    color: #64748B;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 2;
    transition: background-color 0.15s, color 0.15s;
}
.km-pdp-expand-btn:hover {
    background: #F8FAFC;
    color: #0F172A;
}

/* Right Column Details */
.km-pdp-brand-pill {
    background-color: #E0F2FE;
    color: #0284C7;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    display: inline-block;
    text-decoration: none;
}
.km-pdp-circle-action {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.15s;
    color: #64748B;
}
.km-pdp-circle-action:hover {
    background: #F8FAFC;
}
.km-pdp-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 1.48rem;
    color: #0F172A;
    line-height: 1.35;
}
.km-pdp-price-red {
    font-size: 2.15rem;
    font-weight: 800;
    color: #E5232A;
    font-family: 'Outfit', sans-serif;
    line-height: 1;
}
.km-pdp-price-mrp {
    font-size: 1.15rem;
    color: #94A3B8;
    text-decoration: line-through;
    font-family: 'Outfit', sans-serif;
}
.km-pdp-discount-pill {
    background-color: #FFE4E6;
    color: #E11D48;
    font-size: 12px;
    font-weight: 800;
    padding: 3px 9px;
    border-radius: 20px;
}

/* 4 Product Attribute Badges */
.km-pdp-attr-card {
    background: #F8FAFC;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    padding: 10px 4px;
    text-align: center;
}
.km-pdp-attr-icon {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    margin-bottom: 4px;
}
.km-pdp-attr-label {
    font-size: 11px;
    color: #64748B;
    margin-bottom: 2px;
}
.km-pdp-attr-val {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
    font-family: 'Outfit', sans-serif;
}

/* Stepper & Buttons */
.km-pdp-stepper {
    display: inline-flex;
    align-items: center;
    border: 1px solid #E2E8F0;
    border-radius: 8px;
    background: #FFFFFF;
    height: 44px;
    overflow: hidden;
}
.km-pdp-stepper-btn {
    width: 36px;
    height: 44px;
    border: none;
    background: transparent;
    font-size: 16px;
    font-weight: 700;
    color: #64748B;
    cursor: pointer;
}
.km-pdp-stepper-input {
    width: 40px;
    height: 44px;
    border: none;
    text-align: center;
    font-weight: 700;
    font-size: 14.5px;
    color: #0F172A;
    background: transparent;
}
.km-btn-add-cart-solid {
    background-color: #E5232A !important;
    color: #FFFFFF !important;
    border: none !important;
    font-weight: 700;
    font-size: 14px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.15s;
}
.km-btn-add-cart-solid:hover {
    background-color: #cc1b21 !important;
}
.km-btn-buy-now-outline {
    background-color: #FFF1F2 !important;
    border: 1.5px solid #FDA4AF !important;
    color: #E11D48 !important;
    font-weight: 700;
    font-size: 14px;
    height: 44px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 140px;
    transition: background-color 0.15s;
}
.km-btn-buy-now-outline:hover {
    background-color: #FFE4E6 !important;
}
.km-btn-chat-wa {
    background-color: #ECFDF5 !important;
    border: 1.5px solid #A7F3D0 !important;
    color: #059669 !important;
    font-weight: 700;
    font-size: 13.5px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    flex: 1;
}
.km-btn-chat-wa:hover {
    background-color: #D1FAE5 !important;
    color: #047857 !important;
}
.km-btn-call-now {
    background-color: #FFF1F2 !important;
    border: 1.5px solid #FECDD3 !important;
    color: #E11D48 !important;
    font-weight: 700;
    font-size: 13.5px;
    height: 42px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none;
    flex: 1;
}
.km-btn-call-now:hover {
    background-color: #FFE4E6 !important;
}

/* 4 Trust Micro Icons Row */
.km-pdp-trust-pill {
    display: flex;
    align-items: center;
    gap: 8px;
}
.km-pdp-trust-icon {
    font-size: 18px;
}
.km-pdp-trust-title {
    font-size: 11px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.2;
}
.km-pdp-trust-sub {
    font-size: 10px;
    color: #64748B;
    line-height: 1.2;
}

/* 4 Feature Highlight Cards */
.km-pdp-feat-card {
    border-radius: 12px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    height: 100%;
}
.km-pdp-feat-icon {
    font-size: 26px;
    line-height: 1;
    flex-shrink: 0;
}
.km-pdp-feat-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
}
.km-pdp-feat-sub {
    font-size: 11px;
    color: #64748B;
}

/* Reference Tabs */
.km-pdp-ref-tabs {
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    gap: 32px;
    margin-bottom: 24px;
}
.km-pdp-ref-tab-btn {
    border: none;
    background: transparent;
    font-family: 'Outfit', sans-serif;
    font-size: 14.5px;
    font-weight: 600;
    color: #64748B;
    padding: 10px 0 14px 0;
    position: relative;
    cursor: pointer;
    text-decoration: none;
}
.km-pdp-ref-tab-btn.active {
    color: #E5232A;
    font-weight: 700;
    border-bottom: 3px solid #E5232A;
}
.km-pdp-check-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13.5px;
    color: #334155;
    margin-bottom: 10px;
}
.km-pdp-check-icon {
    color: #16A34A;
    font-size: 15px;
    flex-shrink: 0;
}

/* Video Preview Card */
.km-pdp-video-box {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 260px;
    background: #000;
    display: flex;
    align-items: center;
    justify-content: center;
}
.km-pdp-video-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.85;
}
.km-pdp-video-play-btn {
    position: absolute;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.65);
    border: 2px solid #fff;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    cursor: pointer;
    transition: transform 0.2s, background-color 0.2s;
}
.km-pdp-video-play-btn:hover {
    transform: scale(1.1);
    background: #E5232A;
    border-color: #E5232A;
}
.km-pdp-video-tag {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

/* "You May Also Like" Related Products */
.km-pdp-rel-card {
    background: #FFFFFF;
    border: 1px solid #F1F5F9;
    border-radius: 12px;
    padding: 12px;
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.km-pdp-rel-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}
.km-pdp-rel-img-box {
    width: 100%;
    aspect-ratio: 1/1;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    overflow: hidden;
}
.km-pdp-rel-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.km-pdp-rel-title {
    font-size: 13px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.3;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Bottom 5 Pillars Trust Strip */
.km-pdp-bottom-trust {
    background-color: #F0F7FF;
    border-top: 1px solid #E0EDFB;
    padding: 24px 0;
    margin-top: 40px;
}
.km-pdp-pillar-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.km-pdp-pillar-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #BAE6FD;
    color: #0284C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.km-pdp-pillar-title {
    font-size: 12.5px;
    font-weight: 700;
    color: #0F172A;
    line-height: 1.25;
}
.km-pdp-pillar-sub {
    font-size: 11px;
    color: #64748B;
    line-height: 1.25;
}

/* Gallery Navigation Arrows */
.km-pdp-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #E2E8F0;
    color: #1E293B;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    transition: all 0.2s ease;
    opacity: 0.85;
}
.km-pdp-gallery-nav:hover {
    background: #FFFFFF;
    color: #E5232A;
    opacity: 1;
    transform: translateY(-50%) scale(1.08);
}
.km-pdp-gallery-nav.prev {
    left: 12px;
}
.km-pdp-gallery-nav.next {
    right: 12px;
}

/* Variant Selector Chips */
.km-pdp-variant-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.km-pdp-variant-chip {
    padding: 7px 14px;
    border-radius: 20px;
    border: 1.5px solid #E2E8F0;
    background: #FFFFFF;
    color: #1E293B;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    user-select: none;
}
.km-pdp-variant-chip:hover {
    border-color: #29A9E8;
    color: #0284C7;
    background: #F0F9FF;
}
.km-pdp-variant-chip.active {
    border-color: #E5232A;
    background: #FFF1F2;
    color: #E5232A;
    font-weight: 700;
    box-shadow: 0 2px 6px rgba(229, 35, 42, 0.15);
}

/* Pincode Checker */
.km-pdp-pincode-card {
    background: #F8FAFC;
    border: 1px solid #E2E8F0;
    border-radius: 12px;
    padding: 12px 14px;
}
.km-pdp-pincode-input-group {
    display: flex;
    gap: 8px;
    align-items: center;
}
.km-pdp-pincode-input {
    border: 1.5px solid #CBD5E1;
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    max-width: 150px;
    background: #FFFFFF;
}
.km-pdp-pincode-input:focus {
    border-color: #0284C7;
    outline: none;
    box-shadow: 0 0 0 3px rgba(2, 132, 199, 0.12);
}
.km-pdp-pincode-btn {
    background: #123B72;
    color: #FFFFFF;
    border: none;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.2s ease;
}
.km-pdp-pincode-btn:hover {
    background: #0d2a52;
}

/* Benefit Links */
.km-pdp-benefit-card {
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 10px;
    transition: all 0.2s ease;
}
.km-pdp-benefit-card:hover {
    border-color: #29A9E8;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

/* Star Rating Picker */
.km-star-picker {
    display: inline-flex;
    flex-direction: row-reverse;
    gap: 4px;
}
.km-star-picker input {
    display: none;
}
.km-star-picker label {
    font-size: 22px;
    color: #CBD5E1;
    cursor: pointer;
    transition: color 0.15s;
}
.km-star-picker input:checked ~ label,
.km-star-picker label:hover,
.km-star-picker label:hover ~ label {
    color: #FFC928;
}

/* Mobile Sticky Bottom Bar */
.km-pdp-mobile-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    padding: 10px 16px;
    padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 1050;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.08);
    display: none;
}

@media (max-width: 767.98px) {
    .km-pdp-gallery-wrap {
        flex-direction: column-reverse;
    }
    .km-pdp-thumbs-v {
        flex-direction: row;
        width: 100%;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .km-pdp-stage {
        height: 360px;
        max-height: 360px;
    }
    .km-pdp-stage-img {
        max-height: 310px !important;
    }
    .km-pdp-mobile-sticky-bar {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }
    .km-pdp-page {
        padding-bottom: 75px;
    }
}

/* ========================================================
   PIXEL-PERFECT REFERENCE MATCH CLASSES FOR KIDS MALL PDP
   ======================================================== */
.km-pdp-thumb-wrap {
    position: relative;
    display: inline-block;
    cursor: pointer;
    border-radius: 10px;
    overflow: hidden;
}
.km-pdp-thumb-wrap.active .km-pdp-thumb-item {
    border-color: #E5232A !important;
    box-shadow: 0 0 0 2px rgba(229, 35, 42, 0.2);
}
.km-pdp-thumb-video-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #FFFFFF;
    font-size: 18px;
    pointer-events: none;
}

/* 4 Spec Highlight Pills in a Single Horizontal Row */
.km-pdp-spec-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid rgba(0, 0, 0, 0.04);
    flex: 1;
    min-width: 0;
}
.km-pdp-spec-pill-icon {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 15px;
    flex-shrink: 0;
}
.km-pdp-spec-pill-label {
    font-size: 10px;
    color: #64748B;
    line-height: 1.1;
    margin-bottom: 2px;
}
.km-pdp-spec-pill-val {
    font-size: 12px;
    font-weight: 700;
    color: #123B72;
    line-height: 1.1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Buy Box Buttons Matching Reference */
.km-pdp-btn-buy-now {
    background-color: #FFFFFF !important;
    color: #E5232A !important;
    border: 1.5px solid #E5232A !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14.5px;
    padding: 9px 20px;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.km-pdp-btn-buy-now:hover {
    background-color: #FFF1F2 !important;
    color: #E5232A !important;
}

.km-pdp-btn-wa-soft {
    background-color: #DCFCE7 !important;
    color: #16A34A !important;
    border: 1px solid #86EFAC !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    transition: all 0.2s ease;
}
.km-pdp-btn-wa-soft:hover {
    background-color: #BBF7D0 !important;
    color: #15803D !important;
}

.km-pdp-btn-call-soft {
    background-color: #FFE4E6 !important;
    color: #E5232A !important;
    border: 1px solid #FECDD3 !important;
    border-radius: 10px;
    font-weight: 700;
    font-size: 13.5px;
    padding: 9px 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    flex: 1;
    transition: all 0.2s ease;
}
.km-pdp-btn-call-soft:hover {
    background-color: #FFE4E8 !important;
    color: #BE123C !important;
}

/* 4 Mini Trust Badges Under Buttons */
.km-pdp-mini-trust {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    flex: 1;
}
.km-pdp-mini-trust-icon {
    font-size: 18px;
    flex-shrink: 0;
}
.km-pdp-mini-trust-title {
    font-size: 11px;
    font-weight: 700;
    color: #123B72;
    line-height: 1.15;
}
.km-pdp-mini-trust-sub {
    font-size: 10px;
    color: #64748B;
    line-height: 1.1;
}

/* Middle Feature Highlights Cards */
.km-pdp-feat-card-clean {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    background: #FFFFFF;
    transition: all 0.2s ease;
}
.km-pdp-feat-card-clean:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
}
.km-pdp-feat-icon-bubble {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.km-pdp-feat-clean-title {
    font-size: 13px;
    font-weight: 700;
    color: #123B72;
    margin-bottom: 2px;
}
.km-pdp-feat-clean-sub {
    font-size: 11px;
    color: #64748B;
}

/* Video Showcase Box in Description Tab */
.km-pdp-video-showcase {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    background: #000000;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    cursor: pointer;
}
.km-pdp-video-img {
    width: 100%;
    height: 260px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.km-pdp-video-showcase:hover .km-pdp-video-img {
    transform: scale(1.03);
}
.km-pdp-video-play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    padding-left: 4px;
    border: 2px solid rgba(255, 255, 255, 0.85);
    transition: all 0.2s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}
.km-pdp-video-showcase:hover .km-pdp-video-play-btn {
    transform: translate(-50%, -50%) scale(1.1);
    background: #E5232A;
    border-color: #FFFFFF;
}
.km-pdp-video-badge-pill {
    position: absolute;
    bottom: 12px;
    left: 14px;
    background: rgba(0, 0, 0, 0.7);
    color: #FFFFFF;
    font-size: 11.5px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Bottom Trust Strip with 5 Circle Icons */
.km-pdp-bottom-trust-strip {
    background: #F0F9FF;
    border-top: 1px solid #E0F2FE;
    border-bottom: 1px solid #E0F2FE;
    padding: 24px 0;
    margin-top: 40px;
}
.km-pdp-trust-circle-item {
    display: flex;
    align-items: center;
    gap: 12px;
}
.km-pdp-trust-circle-icon {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #BAE6FD;
    color: #0284C7;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.km-pdp-trust-circle-title {
    font-size: 13px;
    font-weight: 700;
    color: #123B72;
    line-height: 1.2;
    margin-bottom: 2px;
}
.km-pdp-trust-circle-sub {
    font-size: 11px;
    color: #64748B;
    line-height: 1.15;
}

/* Carousel Controls & Scroll Row for "You May Also Like" */
.km-pdp-carousel-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #CBD5E1;
    background: #FFFFFF;
    color: #475569;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
}
.km-pdp-carousel-btn:hover {
    background: #123B72;
    color: #FFFFFF;
    border-color: #123B72;
}
.km-pdp-products-carousel {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    gap: 16px;
    padding-bottom: 8px;
    scrollbar-width: none;
}
.km-pdp-products-carousel::-webkit-scrollbar {
    display: none;
}
/* =========================================================
   HOMEPAGE REFERENCE REDESIGN (CARD 1) STYLING TOKENS
   ========================================================= */
.km-home-hero-wrap {
    background: linear-gradient(135deg, #FEF9C3 0%, #FFFBEB 40%, #E0F2FE 100%);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, 0.8);
    overflow: hidden;
    position: relative;
    padding: 32px 40px;
    box-shadow: 0 4px 20px rgba(18, 59, 114, 0.04);
}
@media (max-width: 767.98px) {
    .km-home-hero-wrap {
        padding: 24px 20px;
    }
}
.km-home-hero-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    color: #123B72;
    font-size: 2.8rem;
    line-height: 1.12;
    letter-spacing: -0.5px;
    margin-bottom: 12px;
}
@media (max-width: 991.98px) {
    .km-home-hero-title {
        font-size: 2.2rem;
    }
}
@media (max-width: 575.98px) {
    .km-home-hero-title {
        font-size: 1.75rem;
    }
}
.km-home-hero-sub {
    font-size: 1.05rem;
    color: #53647B;
    max-width: 440px;
    line-height: 1.5;
    margin-bottom: 24px;
}
.km-home-hero-btn {
    background-color: #E5232A !important;
    color: #FFFFFF !important;
    border: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    border-radius: 50px;
    padding: 10px 28px;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(229, 35, 42, 0.3);
    transition: all 0.2s ease;
    text-decoration: none;
}
.km-home-hero-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(229, 35, 42, 0.4);
    color: #FFFFFF !important;
}

/* 4 Top Trust Badges Under Hero */
.km-home-trust-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-top: 20px;
}
@media (max-width: 991.98px) {
    .km-home-trust-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .km-home-trust-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
}
.km-home-trust-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 14px;
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.2s ease;
}
.km-home-trust-card:hover {
    transform: translateY(-2px);
}
.km-home-trust-icon-wrap {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}
.km-home-trust-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #123B72;
    line-height: 1.2;
    margin-bottom: 2px;
}
.km-home-trust-desc {
    font-size: 11px;
    color: #64748B;
    line-height: 1.15;
}

/* Shop by Category (6 Rounded Cards) */
.km-home-cat-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
@media (max-width: 991.98px) {
    .km-home-cat-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 575.98px) {
    .km-home-cat-grid-6 {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }
}
.km-home-cat-item {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px 12px 14px;
    text-align: center;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 10px rgba(18, 59, 114, 0.03);
    transition: all 0.2s ease;
}
.km-home-cat-item:hover {
    transform: translateY(-4px);
    border-color: #E5232A;
    box-shadow: 0 6px 18px rgba(229, 35, 42, 0.12);
}
.km-home-cat-thumb {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 10px;
    overflow: hidden;
    padding: 8px;
    transition: transform 0.2s ease;
}
.km-home-cat-item:hover .km-home-cat-thumb {
    transform: scale(1.08);
}
.km-home-cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.km-home-cat-label {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13px;
    color: #123B72;
    line-height: 1.25;
}

/* Best Selling 4-Column Product Cards */
.km-home-prod-grid-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
}
@media (max-width: 991.98px) {
    .km-home-prod-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 575.98px) {
    .km-home-prod-grid-4 {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}
.km-home-prod-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    transition: all 0.2s ease;
    height: 100%;
}
.km-home-prod-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: rgba(229, 35, 42, 0.3);
}
.km-home-prod-wish-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #E5232A;
    font-size: 14px;
    cursor: pointer;
    z-index: 5;
    transition: all 0.15s ease;
}
.km-home-prod-wish-btn:hover {
    background: #FFF0F7;
    transform: scale(1.1);
}
.km-home-prod-img-stage {
    width: 100%;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #FFFFFF;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 10px;
    cursor: pointer;
}
.km-home-prod-img-stage img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.25s ease;
}
.km-home-prod-card:hover .km-home-prod-img-stage img {
    transform: scale(1.06);
}
.km-home-prod-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 13.5px;
    color: #123B72;
    line-height: 1.3;
    margin-bottom: 6px;
    height: 2.6rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.km-home-prod-add-btn {
    background-color: #E5232A !important;
    color: #FFFFFF !important;
    border: none;
    border-radius: 50px;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 12.5px;
    padding: 6px 14px;
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
}
.km-home-prod-add-btn:hover {
    background-color: #C81E24 !important;
    box-shadow: 0 4px 12px rgba(229, 35, 42, 0.25);
}

/* Fashion Promo Box */
.km-home-promo-wrap {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    position: relative;
    cursor: pointer;
}
.km-home-promo-wrap img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 320px;
}

/* ========================================================
   KIDS MALL — MASTER COMPONENT ENHANCEMENTS
   ======================================================== */

/* 1. Mobile Sticky Purchase Bar */
.km-pdp-sticky-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-top: 1px solid #E3EAF4;
    box-shadow: 0 -4px 20px rgba(18, 59, 112, 0.12);
    z-index: 1040;
    padding: 10px 16px;
    display: none;
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
@media (max-width: 767.98px) {
    .km-pdp-sticky-bar.visible {
        display: block;
        animation: slideUpSticky 0.3s ease-out;
    }
}
@keyframes slideUpSticky {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

/* 2. Mini-Cart Slide-In Drawer */
.km-cart-drawer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(18, 59, 112, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1060;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.km-cart-drawer-backdrop.active {
    opacity: 1;
    visibility: visible;
}
.km-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 420px;
    background: #FFFFFF;
    z-index: 1070;
    box-shadow: -8px 0 30px rgba(18, 59, 112, 0.2);
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.km-cart-drawer.active {
    transform: translateX(0);
}
.km-cart-drawer-header {
    padding: 18px 20px;
    background: #F5F9FF;
    border-bottom: 1px solid #E3EAF4;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.km-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
}
.km-cart-drawer-footer {
    padding: 18px 20px;
    background: #FFFFFF;
    border-top: 1px solid #E3EAF4;
    box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.03);
}

/* 3. Product Comparison Bottom Drawer & Modal */
.km-compare-drawer-bar {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #123B70;
    color: #FFFFFF;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 8px 24px rgba(18, 59, 112, 0.35);
    z-index: 1030;
    display: none;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.km-compare-drawer-bar:hover {
    transform: scale(1.03);
}
.km-compare-drawer-bar.active {
    display: flex;
}

/* 4. Brand Directory Cards */
.km-brand-card {
    background: #FFFFFF;
    border: 1px solid #E3EAF4;
    border-radius: 16px;
    padding: 24px 20px;
    text-align: center;
    transition: all 0.25s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    text-decoration: none !important;
}
.km-brand-card:hover {
    transform: translateY(-4px);
    border-color: #1688F8;
    box-shadow: 0 10px 24px rgba(22, 136, 248, 0.12);
}
.km-brand-card-img {
    height: 70px;
    width: 140px;
    object-fit: contain;
    margin-bottom: 16px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.06));
}

/* 5. Frequently Bought Together (FBT) Bundle */
.km-fbt-bundle-box {
    background: #F5F9FF;
    border: 1px solid #E3EAF4;
    border-radius: 16px;
    padding: 24px;
    margin-top: 32px;
}
.km-fbt-bundle-item {
    background: #FFFFFF;
    border: 1px solid #E3EAF4;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.km-fbt-plus {
    font-size: 20px;
    font-weight: 700;
    color: #1688F8;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 6. Image Zoom */
.km-zoom-wrap {
    position: relative;
    overflow: hidden;
    cursor: crosshair;
}
.km-zoom-wrap img {
    transition: transform 0.1s ease-out;
    transform-origin: center center;
}

/* 7. Luxury Cart Drawer & Celebration Styles (Hamleys / Apple Caliber) */
.km-cart-drawer {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-width: 440px;
    background: #FFFFFF;
    z-index: 1000000;
    box-shadow: -8px 0 32px rgba(18, 59, 114, 0.16);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.km-cart-drawer.active {
    transform: translateX(0);
}
.km-cart-drawer-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(18, 59, 114, 0.45);
    backdrop-filter: blur(4px);
    z-index: 999999;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.km-cart-drawer-backdrop.active {
    opacity: 1;
}
.km-cart-drawer-header {
    padding: 16px 20px;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #FFFFFF;
}
.km-cart-drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px 20px;
    background: #F8FAFD;
}
.km-cart-drawer-footer {
    padding: 16px 20px;
    background: #FFFFFF;
    border-top: 1px solid #E2E8F0;
    box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.05);
}
.km-drawer-item-card {
    transition: all 0.2s ease;
}
.km-drawer-item-card:hover {
    border-color: #CBD5E1 !important;
    box-shadow: 0 4px 12px rgba(18, 59, 114, 0.06);
}
.km-card-buy-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.km-card-buy-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 35, 60, 0.35) !important;
}
.km-btn-drawer-checkout {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.km-btn-drawer-checkout:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(239, 35, 60, 0.4) !important;
}

/* 8. Myntra-Grade Card Elevation & Hover Micro-Interactions */
.km-prod-card {
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease !important;
}
.km-prod-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 30px rgba(18, 59, 114, 0.12) !important;
    border-color: #CBD5E1 !important;
}
.km-prod-card:hover .km-card-photo {
    transform: scale(1.12) !important;
}
.km-card-wishlist:hover {
    transform: scale(1.15);
    background-color: #FFF1F2 !important;
    border-color: #EF233C !important;
}


