/* --- GOOGLE FONTS --- */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300;400;500;600;700&display=swap');

/* --- GLOBAL VARIABLES & RESET --- */
:root {
    --krrimpex-red: #c01920;
    --krrimpex-dark: #121212;
    --text-dark: #333;
    --border-color: #dee2e6;
}

a {color:unset; text-decoration:none;}
body {
           font-family: 'Barlow', sans-serif;
    background-color: #f8f9fa;
    padding: 0;
    color: var(--text-dark);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {max-width:100%;}

section {padding:0px 10px;}
/* --- TOP ANNOUNCEMENT BAR --- */
.top-bar {
    background-color: var(--krrimpex-dark);
    color: white;
    text-align: center;
    padding: 8px 15px;
}
.top-bar-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: 0 auto;
    font-size: 14px;
}
.text-red { color: var(--krrimpex-red); }
.font-bold { font-weight: 700; }
.top-bar-btn {
    background-color: white;
    color: var(--krrimpex-red);
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    margin-top: 8px;
    transition: 0.2s;
}
.top-bar-btn:hover {
    background-color: #f1f1f1;
}

/* --- MAIN NAVIGATION HEADER --- */
.main-header {
        background-color: white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    padding: 5px 20px;
}
.sticky-header {
           position: sticky;
    top: 0;
    z-index: 1000;
}

/* CSS Grid layout for mobile (2 rows) */
.nav-container {
        display: grid;
    grid-template-columns: auto auto;
    grid-template-areas: "logo actions"
        "search search";
    gap: 0;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}



/* Header Grid Areas */
.nav-logo { grid-area: logo; }
.nav-location { grid-area: location; display: none; }
.nav-search { grid-area: search; }
.nav-actions { grid-area: actions; justify-self: end; }

/* --- AJAX SEARCH DROPDOWN --- */
.search-results-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-top: none;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 15px 30px rgba(0,0,0,0.15);
    max-height: 400px;
    overflow-y: auto;
    z-index: 1050;
    margin-top: 5px; /* slight gap below the input */
}

/* Custom Scrollbar for dropdown */
.search-results-dropdown::-webkit-scrollbar {
    width: 6px;
}
.search-results-dropdown::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 10px;
}

.search-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 12px 15px;
    text-decoration: none;
    color: var(--text-dark);
    border-bottom: 1px solid #f8f9fa;
    transition: 0.2s;
}

.search-item:last-child {
    border-bottom: none;
}

.search-item:hover {
    background: #fdf0f0; /* Light red tint on hover */
}

.search-item:hover h4 {
    color: var(--krrimpex-red);
}

.search-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 4px;
    padding: 2px;
}

.search-item-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.search-item-info h4 {
    margin: 0;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: 0.2s;
}

.search-item-info span {
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 700;
}

.search-empty {
    padding: 20px;
    text-align: center;
    color: #888;
    font-size: 14px;
}

.search-empty i {
    display: block;
    font-size: 24px;
    color: #ddd;
    margin-bottom: 8px;
}
/* Logo Styling */
.nav-logo a {
    color: var(--krrimpex-red);
    font-weight: 700;
    font-size: 28px;
    text-decoration: none;
    margin: 0;
    letter-spacing: -0.5px; /* Gives the logo a tighter, cleaner look */
}


/* --- HEADER MULTI-LEVEL CATEGORY MENU --- */
.header-category-menu {
       background: #fff;
    border-bottom: 1px solid var(--border-color);
    width: -webkit-fill-available;
    
}

.nav-primary-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    position: relative;
}



.nav-item-dropdown {
    position: relative;
}

.nav-primary-link {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 15px 10px;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: color 0.2s;
}

.nav-primary-link img {
        width: 60px;
    height: 60px;
    object-fit: contain;
}

.nav-primary-link .arrow-icon {
    font-size: 10px;
    color: #888;
    transition: transform 0.2s;
}

.nav-primary-link:hover, .nav-item-dropdown:hover > .nav-primary-link {
    color: var(--krrimpex-red);
}
.nav-item-dropdown:hover > .nav-primary-link .arrow-icon {
    transform: rotate(180deg);
    color: var(--krrimpex-red);
}

/* Secondary Dropdown Box */
.nav-secondary-dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 6px;
    min-width: 220px;
    display: none;
    z-index: 1000;
}

.nav-item-dropdown:hover .nav-secondary-dropdown {
    display: block;
}

.nav-sec-item {
    position: relative;
}

.nav-sec-link {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    color: #444;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: 0.15s;
}

.nav-sec-link .sub-arrow {
    font-size: 10px;
    color: #888;
}

.nav-sec-link:hover, .nav-sec-item:hover > .nav-sec-link {
    background: #fdf0f0;
    color: var(--krrimpex-red);
}

/* Sub-Categories Sub-Dropdown Box */
.nav-sub-dropdown {
    list-style: none;
    margin: 0;
    padding: 8px 0;
    position: absolute;
    top: 0;
    left: 100%;
    background: #fff;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    border-radius: 6px;
    min-width: 200px;
    display: none;
    z-index: 1010;
}

.nav-sec-item:hover .nav-sub-dropdown {
    display: block;
}

.nav-sub-link {
    display: block;
    padding: 8px 18px;
    color: #555;
    font-size: 13px;
    text-decoration: none;
    transition: 0.15s;
}

.nav-sub-link:hover {
    background: #fdf0f0;
    color: var(--krrimpex-red);
}
/* Search Bar Styling */
.search-group {
    display: flex;
    width: 100%;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
}
.search-input {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    outline: none;
    font-size: 14px;
    font-family: 'Barlow', sans-serif; /* Ensure inputs use the font too */
}
.search-input::placeholder {
    font-weight: 400;
    color: #888;
}
.search-btn {
    background-color: var(--krrimpex-red);
    color: white;
    border: none;
    padding: 0 20px;
    cursor: pointer;
}
.search-btn:hover { background-color: #a0141a; }

/* Actions (Login, Track, Cart) */
.nav-actions {
    display: flex;
    gap: 20px;
    align-items: center;
}
.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
}
.action-item i {
    font-size: 22px;
    margin-bottom: 4px;
}
.action-text {
    font-size: 13px;
    font-weight: 500;
    display: none; 
}

/* Cart Badge */
.cart-action { position: relative; }
.cart-badge {
    position: absolute;
    top: -5px;
    right: -10px;
    background-color: #dc3545;
    color: white;
    font-size: 10px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 10px;
}



@media screen and (max-width:700px){
	.nav-logo {
    
    display: flex;
}
}
/* --- MOBILE MENU BUTTON --- */
.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--text-dark);
    cursor: pointer;
    padding: 5px 10px;
}

/* --- MOBILE OFF-CANVAS DRAWER --- */
.mobile-menu-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9998;
    display: none;
}

.mobile-menu-drawer {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: 280px;
    background: #fff;
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    box-shadow: 2px 0 15px rgba(0,0,0,0.1);
}

.mobile-menu-drawer.open {
    transform: translateX(0);
}

.mobile-menu-header {
          display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    background: #f8f9fa;
}

.mobile-menu-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.mobile-menu-close {
    background: none;
    border: none;
    font-size: 20px;
    color: #666;
    cursor: pointer;
}

.mobile-menu-body {
    flex-grow: 1;
    overflow-y: auto;
    padding: 10px 0;
}

/* Mobile Nav Lists */
.mob-nav-list, .mob-submenu {
    list-style: none;
    margin: 0;
    padding: 0;
}

.mob-submenu {
    display: none; /* Hidden by default for accordion */
    background: #fdfdfd;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.nested-sub {
    background: #f9f9f9;
}

.mob-link-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f1f1f1;
}

.mob-nav-link, .mob-sec-link, .mob-sub-link {
        display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--text-dark) !important;
    font-weight: 600  !important;
    font-size: 15px !important;
    flex-grow: 1;
}

.mob-nav-link img {
    width: 20px; height: 20px; object-fit: contain;
}

.mob-sec-link {     font-size: 14px !important;
    padding-left: 30px;
    font-weight: 500 !important; }
.mob-sub-link {     font-size: 13px  !important;
    padding-left: 45px;
    color: #555 !important; }

/* Accordion Toggle Button */
.mob-toggle-btn {
    background: none;
    border: none;
    border-left: 1px solid #f1f1f1;
    padding: 15px 20px;
    color: #888;
    cursor: pointer;
    transition: 0.3s;
}

.mob-toggle-btn.expanded {
    background: var(--krrimpex-red);
    color: #fff;
}

.mob-toggle-btn.expanded i {
    transform: rotate(180deg);
}

/* --- RESPONSIVE BREAKPOINTS --- */
@media (max-width: 991px) {
    .header-category-menu { display: none; } /* Hide Desktop Menu */
    .mobile-menu-btn { display: block; }     /* Show Hamburger */
}

@media (min-width: 992px) {
    /* Ensure Mobile Menu is hidden on Desktop even if resized while open */
    .mobile-menu-drawer, .mobile-menu-overlay, .mobile-menu-btn { 
        display: none !important; 
    }
}
/* --- CATEGORIES ROW --- */
.categories-section {
    background-color: white;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.02);
}
.category-scroll {
    display: flex;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding: 15px;
    gap: 25px;
    max-width: 1400px;
    margin: 0 auto;
    justify-content: flex-start;
}
.category-scroll::-webkit-scrollbar { display: none; } /* Chrome/Safari */

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: var(--text-dark);
    min-width: 90px;
    transition: transform 0.2s;
}
.category-item:hover { transform: translateY(-3px); }
.category-item img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    margin-bottom: 8px;
}
.category-icon-wrapper {
    width: 45px;
    height: 45px;
    background-color: #f8f9fa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
}
.category-icon-wrapper i { font-size: 20px; color: #6c757d; }
.category-item span {
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    line-height: 1.2;
}

/* --- DESKTOP RESPONSIVE QUERIES (Min 992px) --- */
@media (min-width: 992px) {
    .top-bar-container { flex-direction: row; }
    .top-bar-btn { margin-top: 0; margin-left: 15px; }

    .nav-container {
        grid-template-columns: auto auto 1fr auto; 
        grid-template-areas: "logo location search actions";
        padding: 5px 15px;
    }

    .nav-location {
        display: flex;
        align-items: center;
        margin-left: 20px;
    }
    .location-icon {
        color: var(--krrimpex-red);
        font-size: 24px;
        margin-right: 10px;
    }
    .location-text-box { font-size: 13px; line-height: 1.3; }
    .location-title { font-weight: 600; color: var(--text-dark); }
    .location-link { color: #0d6efd; text-decoration: none; font-weight: 500; }
    .arrow-small { font-size: 10px; margin-left: 4px; }

    .nav-search { padding: 0 40px; }

    .action-text { display: block; }
    .action-item i { font-size: 20px; }
    
    .category-scroll { justify-content: center; }
}

@media (max-width: 576px) {
    .hide-on-small-mobile { display: none; }
}

/* --- HERO SLIDER SECTION --- */
.hero-slider-section {
    width: 100%;
    max-width: 1400px;
    margin: 20px auto;
    position: relative;
    padding: 0 15px; /* Side spacing */
}

.slider-container {
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    background-color: #eee;
    aspect-ratio: 21 / 7; /* Ultra-wide rectangle */
    max-height: 450px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.08);
}

.slider-track {
    display: flex;
    width: 100%;
    height: 100%;
    /* Smooth slide effect */
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1); 
}

.slide {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.slide a {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Prevents image stretching */
    display: block;
}

/* Banner Text Overlay */
.slide-overlay {
    position: absolute;
    bottom: 20%;
    left: 5%;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 15px 30px;
    border-radius: 4px;
    max-width: 50%;
}

.slide-overlay h2 {
    margin: 0;
    font-size: 26px;
    font-weight: 600;
    line-height: 1.3;
}

/* Navigation Arrows */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    color: var(--krrimpex-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.3s;
    opacity: 0; /* Hidden by default */
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.slider-container:hover .slider-btn {
    opacity: 1; /* Appears on mouse hover */
}

.slider-btn:hover {
    background: var(--krrimpex-red);
    color: white;
}

.slider-btn.prev { left: 20px; }
.slider-btn.next { right: 20px; }

/* Navigation Dots */
.slider-dots {
    position: absolute;
    bottom: 15px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
}

.dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.dot:hover { background: rgba(255, 255, 255, 0.8); }

.dot.active {
    background: white;
    width: 25px; /* Stretches the active dot into a pill shape */
    border-radius: 5px;
}

/* --- MOBILE RESPONSIVENESS --- */
@media (max-width: 768px) {
    .slider-container {
        aspect-ratio: 16 / 9; /* Taller on mobile so images don't get too thin */
        border-radius: 4px;
    }
    .slide-overlay {
        padding: 10px 15px;
        bottom: 10%;
        max-width: 85%;
    }
    .slide-overlay h2 { font-size: 16px; }
    
    /* Always show arrows on mobile, but make them smaller */
    .slider-btn { 
        opacity: 1; 
        width: 35px; 
        height: 35px; 
        font-size: 14px; 
    }
    .slider-btn.prev { left: 10px; }
    .slider-btn.next { right: 10px; }
}

/* --- PRODUCT SECTIONS --- */
.product-section {
    max-width: 1400px;
    margin: 50px auto;
    padding: 0 15px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}

.section-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0;
    text-transform: capitalize;
}

.view-all-btn {
    background-color: transparent;
    color: var(--krrimpex-red);
    font-weight: 600;
    text-decoration: none;
    font-size: 13px;
    padding: 6px 16px;
    border: 1px solid var(--krrimpex-red);
    border-radius: 4px;
    transition: 0.3s;
    display: inline-flex;
    align-items: center;
}

.view-all-btn:hover {
    background-color: var(--krrimpex-red);
    color: #fff;
}

/* Horizontal Scrollable Row */
.product-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scrollbar-width: none; /* Firefox */
    padding-bottom: 20px; /* Space for hover shadows */
    scroll-behavior: smooth; /* For smooth swiping */
}

.product-row::-webkit-scrollbar { 
    display: none; /* Chrome/Safari */
}

/* Product Card Styling */
.product-card {
    min-width: 200px;
    max-width: 200px;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    position: relative;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.product-card:hover {
    box-shadow: 0 8px 16px rgba(0,0,0,0.08);
    transform: translateY(-4px);
    border-color: #d1d5db;
}

.discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #28a745;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 6px;
    border-radius: 3px;
    z-index: 2;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-img-wrapper {
    width: 100%;
    height: 180px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 6px 6px 0 0;
}

.product-img-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05); /* Slight zoom on hover */
}

.product-info {
    padding: 12px 15px 15px 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    border-top: 1px solid #f8f9fa;
}

.product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0 0 8px 0;
    line-height: 1.4;
    
    /* Truncates text with an ellipsis (...) after 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 38px; /* Fixed height so buttons align perfectly */
}

.product-title:hover {
    color: var(--krrimpex-red);
}

.product-offer {
        font-size: 11px;
    color: #249529;
    background-color: #e4ffe3;
    padding: 3px 6px;
    border-radius: 3px;
    display: inline-block;
    margin-bottom: 8px;
    font-weight: 600;
    width: fit-content;
}

.product-price-row {
    margin-top: auto; /* Pushes price to bottom */
    margin-bottom: 12px;
    display: flex;
    align-items: baseline;
    gap: 6px;
    flex-wrap: wrap;
}

.price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.mrp {
    font-size: 12px;
    color: #888;
    text-decoration: line-through;
    font-weight: 400;
}

.add-to-cart-btn {
    width: 100%;
    padding: 8px;
    background: #fff;
    color: var(--krrimpex-red);
    border: 1px solid var(--krrimpex-red);
    border-radius: 4px;
    font-weight: 600;
    font-size: 13px;
    cursor: pointer;
    transition: 0.3s;
    font-family: 'Barlow', sans-serif;
}

.add-to-cart-btn:hover {
    background: var(--krrimpex-red);
    color: #fff;
}

/* --- MOBILE SPECIFIC FOR PRODUCTS --- */
@media (max-width: 576px) {
    .product-section { margin: 30px auto; }
    .section-title { font-size: 18px; }
    .view-all-btn { font-size: 12px; padding: 4px 10px; }
    
    .product-card {
        min-width: 160px; /* Smaller cards on phones to show more */
        max-width: 160px;
    }
    .product-img-wrapper { height: 140px; padding: 10px; }
    .product-title { font-size: 13px; height: 36px; }
    .price { font-size: 16px; }
}



/* ==========================================================================
   DYNAMIC CATEGORY SHOWCASE (NEW LAYOUT)
   ========================================================================== */
.cs-section {
    margin: 40px 0;
}

/* Header */
.cs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.cs-title {
    font-size: 20px;
    font-weight: 800;
    color: #333;
    margin: 0;
    letter-spacing: 0.5px;
}

.cs-view-all {
    background: #ffe3e3;
    color: var(--krrimpex-red, #c8102e);
    font-weight: 800;
    font-size: 13px;
    padding: 6px 16px;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s;
}

.cs-view-all:hover {
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
}

/* Inner Tinted Container */
.cs-container {
    background: #f4f5f9; /* Light grey/purple tint */
    border-radius: 12px;
    padding: 20px;
}

/* Top Row Layout */
.cs-top-row {
        display: flex;
    gap: 20px;
    margin-bottom: 25px;
	        overflow: auto;
    background: #ffffff;
}

/* Brands Box (Left) */
.cs-brands-box {
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    flex: 0 0 340px; /* Fixed width */
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
}

.cs-brands-box h4 {
       font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0 0 15px 0;
}

.cs-brands-flex {
    display: flex;
    justify-content: space-between;
    gap: 10px;
}

.cs-brand-item {
        display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    gap: 8px;
    width: auto;
}

.cs-brand-circle {
       width: 100px;
    height: 100px;
    border-radius: 50%;
    border: 1px solid #eaeaea;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    transition: 0.2s;
    overflow: hidden;
}

.cs-brand-item:hover .cs-brand-circle {
    border-color: var(--krrimpex-red, #c8102e);
    box-shadow: 0 4px 10px rgba(200, 16, 46, 0.1);
}

.cs-brand-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cs-brand-item span {
    font-size: 11px;
    color: #666;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

/* Subcategories Flex (Right) */
.cs-subcats-wrap {
    display: flex;
    gap: 15px;
    flex-grow: 1;
    overflow-x: auto;
    scrollbar-width: none; /* Hide scrollbar */
}
.cs-subcats-wrap::-webkit-scrollbar { display: none; }

.cs-subcat-card {
    background: #ffecd6; /* Soft beige/yellow */
    border-radius: 10px;
    padding: 15px;
    flex: 0 0 180px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    transition: transform 0.2s;
}

.cs-subcat-card:hover {
    transform: translateY(-4px);
}

.cs-subcat-img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 12px;
    mix-blend-mode: multiply; /* Helps remove white background from standard JPEGs */
}

.cs-subcat-card h5 {
    font-size: 14px;
    font-weight: 800;
    color: #222;
    margin: 0 0 4px 0;
    text-align: center;
}

.cs-subcat-card span {
    font-size: 12px;
    color: #666;
}

/* Products Row (Bottom) */
.cs-products-row {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}
.cs-products-row::-webkit-scrollbar { height: 6px; }
.cs-products-row::-webkit-scrollbar-thumb { background: #ccc; border-radius: 10px; }

.cs-product-card {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    flex: 0 0 220px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    border: 1px solid transparent;
    transition: 0.2s;
}

.cs-product-card:hover {
    border-color: #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

.cs-prod-img-wrap {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.cs-prod-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cs-prod-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Rating Badge Area */
.cs-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.cs-rating-badge {
    background: #1f893e; /* Green matching image */
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 3px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}
.cs-card-brand-logo img {    width: auto;
    height: 70px;
    object-fit: contain;}

.cs-review-count {
    font-size: 11px;
    color: #777;
	display:none;
}

.cs-prod-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}

.cs-prod-title:hover {
    color: var(--krrimpex-red, #c8102e);
}

/* Pricing Area */
.cs-price-wrap {
    margin-top: auto;
}

.cs-current-price {
    font-size: 18px;
    font-weight: 800;
    color: #222;
    margin-bottom: 2px;
}

.cs-mrp-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
}

.cs-mrp {
    color: #888;
    text-decoration: line-through;
}

.cs-discount {
    color: #1f893e; /* Green discount text */
    font-weight: 700;
}

/* Responsive */
@media (max-width: 991px) {
    .cs-top-row {
        flex-direction: column;
    }
    .cs-brands-box {
        flex: auto;
        width: 100%;
    }
    .cs-subcat-card {
        flex: 0 0 140px;
    }
    .cs-subcat-img {
        width: 90px;
        height: 90px;
    }
}

@media (max-width: 576px) {
    .cs-container {
        padding: 15px;
        border-radius: 0; /* Edge to edge on mobile */
    }
    .cs-product-card {
        flex: 0 0 160px;
        padding: 10px;
    }
    .cs-prod-img-wrap {
        height: 120px;
    }
}
/* --- PRODUCT DETAILS PAGE --- */
.page-container {
          max-width: 1400px;
    margin: 0 auto;
    background: white;
    padding: 20px 0px;
    width: 100%;
    overflow: clip;
}

@media screen and (max-width:700px){
	.page-container {
   
    padding: 20px 0px;
}
}

/* Breadcrumbs */
.breadcrumb-nav {
    font-size: 13px;
    color: #666;
    margin-bottom: 25px;
}
.breadcrumb-nav a {
    color: var(--krrimpex-red);
    text-decoration: none;
    font-weight: 500;
}
.breadcrumb-nav .separator {
    font-size: 10px;
    margin: 0 8px;
    color: #ccc;
}
.breadcrumb-nav .current-page {
    color: var(--text-dark);
    font-weight: 600;
}

/* Grid Layout */
.product-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    margin-bottom: 40px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
}

/* Left: Gallery */
.product-gallery { display: flex; flex-direction: column; gap: 15px; }
.main-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fdfdfd;
}
.main-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: opacity 0.2s ease;
}
.thumbnail-list {
        display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-top: 10px;
    scrollbar-width: none;
}
.thumbnail-list::-webkit-scrollbar { display: none; }
.thumbnail-wrapper {
    width: 80px;
    height: 80px;
    border: 2px solid var(--border-color);
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    flex-shrink: 0;
    transition: all 0.3s ease;
    background: #fff;
}
.thumbnail-wrapper.active, 
.thumbnail-wrapper:hover {
    border-color: var(--krrimpex-red);
    transform: translateY(-2px);
}
.thumbnail-wrapper img { width: 100%; height: 100%; object-fit: contain; }

/* Right: Info Panel */
.product-info-panel { display: flex; flex-direction: column; }

.product-meta {
       font-size: 13px;
    color: #666;
    margin-bottom: 15px;
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-meta img {    width: 70px;
    height: 70px;
    object-fit: contain;}
.highlight-offer {
    background: #fff5f5;
    color: #c01920;
    font-weight: 600;
    padding: 8px 12px;
    border-radius: 4px;
    border-left: 3px solid #c01920;
    margin-bottom: 20px;
    display: inline-block;
    width: fit-content;
    font-size: 14px;
}

/* Pricing */
.pricing-block {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}
.main-price { font-size: 32px; font-weight: 700; color: var(--text-dark); }
.mrp-price { font-size: 16px; color: #888; text-decoration: line-through; margin-left: 10px; }
.discount-tag {
    background: #28a745;
    color: white;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 4px;
    margin-left: 10px;
    vertical-align: middle;
}
.tax-info { font-size: 12px; color: #777; margin-top: 5px; font-weight: 500; }

/* ==========================================================================
   PRODUCT DETAILS PRICING BLOCK (PREMIUM)
   ========================================================================== */
.pricing-block-premium {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin: 15px 0 25px 0;
}

/* Main Price */
.pb-main-row {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.pb-main-price {
        font-size: 26px;
    font-weight: 800;
    color: #2b2b2b;
    line-height: 1;
}

.pb-tax-text {
    font-size: 16px;
    color: #666;
    font-weight: 400;
}

/* Base Price + GST */
.pb-tax-breakup {
       font-size: 14px;
    color: #666;
    font-weight: 400;
}

/* MRP & Discount */
.pb-mrp-row {
        display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.pb-mrp-label {
    color: #666;
}

.pb-mrp-label del {
    text-decoration: line-through;
}

.pb-discount-tag {
    color: #007a1b; /* Exact dark green from your image */
    font-weight: 700;
}

/* Variants */
.variants-block { margin-bottom: 25px; display: flex; flex-wrap: wrap; gap: 15px; }
.variant-item {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    padding: 8px 15px;
    border-radius: 4px;
    font-size: 14px;
}
.variant-label { color: #666; margin-right: 5px; }
.variant-value { font-weight: 700; color: var(--text-dark); }

/* --- PRODUCT VARIANT PILLS --- */
.variants-block {
    margin-bottom: 25px;
}
.variant-label-title {
    display: block;
    font-size: 13px;
    color: #666;
    font-weight: 600;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.variant-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.variant-pill {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-dark);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}
.variant-pill:hover {
    border-color: var(--krrimpex-red);
    color: var(--krrimpex-red);
}
.variant-pill.active {
    background-color: var(--krrimpex-red);
    color: #fff;
    border-color: var(--krrimpex-red);
    box-shadow: 0 2px 6px rgba(192, 25, 32, 0.3);
}

/* Actions */
.action-block {
    display: flex;
    gap: 15px;
    align-items: center;
    margin-bottom: 15px;
    flex-wrap: wrap;
}
.qty-selector {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    height: 45px;
}
.qty-selector button {
    background: #f8f9fa;
    border: none;
    width: 40px;
    font-size: 18px;
    cursor: pointer;
    color: #333;
    transition: 0.2s;
}
.qty-selector button:hover { background: #e2e6ea; }
.qty-selector input {
    width: 50px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    outline: none;
    font-family: 'Barlow', sans-serif;
}
.btn-add-cart, .btn-buy-now, .btn-out-of-stock {
    height: 45px;
    padding: 0 30px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    font-family: 'Barlow', sans-serif;
    transition: 0.3s;
}
.btn-add-cart { background: #fff; color: var(--krrimpex-red); border: 1px solid var(--krrimpex-red); }
.btn-add-cart:hover { background: #fff5f5; }
.btn-buy-now { background: var(--krrimpex-red); color: #fff; border: none; }
.btn-buy-now:hover { background: #a0141a; }
.btn-out-of-stock { background: #e2e6ea; color: #6c757d; border: none; cursor: not-allowed; }
.stock-status { font-size: 14px; font-weight: 600; }
.in-stock { color: #28a745; }


@media screen and (max-width:700px){
	.btn-buy-now {
   
      
    width: stretch;
    max-width: 308px;
    margin: 0 auto;
}
}

/* --- BULK OFFERS BLOCK --- */

.col-info {padding:10px 10px;}
.mt-4 { margin-top: 25px; }
.bulk-offers-container {
    background: #fdfdfd;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 15px;
}
.bulk-offer-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0 0 12px 0;
    color: var(--text-dark);
}
.bulk-offer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
}
.bulk-offer-card {
    background: #fff;
    border: 1px dashed var(--krrimpex-red);
    padding: 10px;
    border-radius: 4px;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.qty-trigger {      font-size: 16px;
    color: #000000;
    font-weight: 500;
    margin-bottom: 4px;}
.discount-value {     font-size: 16px;
    font-weight: 700;
    color: #1c9921;}

/* --- DESCRIPTION & SPECS TABS --- */
.content-section {
           background: #fff;
    padding: 10px 20px;
    border-radius: 8px;
    border: 0px solid var(--border-color);
    margin-bottom: 25px;
}
.section-heading {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    color: var(--text-dark);
}
.section-heading i { color: var(--krrimpex-red); margin-right: 8px; }
.text-content { font-size: 15px; line-height: 1.7; color: #444; }

/* Specs Table */
.table-responsive { overflow-x: auto; }
.specs-table {
    width: 100%;
    border-collapse: collapse;
}
.specs-table td {
        padding: 6px 15px;
    font-size: 15px;
}

.specs-table tr:nth-child(2n+1) {
    background: #f8f9fa;
}


.specs-table .spec-key {
  
    width: 35%;
    font-weight: 600;
    color: #444;
}
.specs-table .spec-value { width: 65%; color: #333; }

/* --- MOBILE RESPONSIVENESS FOR DETAILS PAGE --- */
@media (max-width: 991px) {
    .product-grid {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 25px;
    }
	.action-block {
    justify-content: center;
}
    .main-image-wrapper { padding: 10px; }
  
    
    .qty-selector { justify-content: center; }
    .specs-table .spec-key { width: 45%; }
}

/* --- COMPARISON TABLE MATRIX --- */
.comparison-table-wrapper {
        width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    margin-top: 15px;
    height: 492px;
}

.comparison-matrix {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    min-width: 700px; /* Ensures table doesn't cramp up on smaller screens */
}

.comparison-matrix th, 
.comparison-matrix td {
    padding: 15px;
    border-bottom: 1px solid var(--border-color);
    border-right: 1px solid #f0f0f0;
    font-size: 14px;
    vertical-align: middle;
}

.comparison-matrix th:last-child, 
.comparison-matrix td:last-child {
    border-right: none;
}

/* Label Column (Left Sidebar inside Table) */
.spec-label-col {
    width: 180px;
    background-color: #fafafa;
    font-weight: 600;
    color: #555;
    white-space: nowrap;
}

/* Product Column Header Cards */
.product-col-cell {
    width: 240px;
    vertical-align: top;
    background-color: #fff;
}

.comp-card-top {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    padding: 10px 0;
}

/* Current Product Column Highlighting (Matching reference image) */
.current-product-header {
    background-color: #fff3f3 !important;
    border-left: 2px solid var(--krrimpex-red);
    border-right: 2px solid var(--krrimpex-red);
}

.current-product-col {
    background-color: #fff3f3 !important;
    border-left: 2px solid var(--krrimpex-red);
    border-right: 2px solid var(--krrimpex-red);
}

/* Current Product Badge */
.current-badge {
    position: absolute;
    top: -5px;
    left: 10px;
    background-color: #333;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 3px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Comp Card Elements */
.comp-img-link {
    width: 120px;
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    background: #fff;
    border-radius: 6px;
    border: 1px solid #eee;
    padding: 5px;
}

.comp-img-link img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.comp-title-link {
    text-decoration: none;
    color: var(--text-dark);
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.comp-title-link h4 {
    font-size: 13px;
    font-weight: 500;
    margin: 0;
    line-height: 1.4;
}

.comp-title-link:hover h4 {
    color: var(--krrimpex-red);
}

.comp-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Table body row hover effect */
.comparison-matrix tbody tr:hover td {
    background-color: rgba(0,0,0,0.01);
}
.comparison-matrix tbody tr:hover td.current-product-col {
    background-color: #fde8e8 !important; /* Slightly deeper pink tint on row hover for current column */
}

/* --- RETURN & WARRANTY POLICY BOX --- */
.policy-container {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    background: #fff;
}

.policy-title {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 12px;
}

.policy-card {
    display: flex;
    align-items: center;
    border: 1px solid #f0f0f0;
    padding: 10px;
    border-radius: 6px;
    background: #fff;
    transition: 0.2s ease;
}

.policy-card:hover {
    border-color: #ddd;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

.policy-icon {
    background: #fff0f0; /* Matches the soft pink background from the image */
    color: #d32f2f;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    margin-right: 12px;
    flex-shrink: 0;
    font-size: 15px;
}

.policy-text {
    font-size: 12px;
    font-weight: 500;
    line-height: 1.2;
    color: #444;
}




/* --- BULK PURCHASE INQUIRY BOX --- */
.bulk-inquiry-box {
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 25px;
    background: #fff;
    display: flex;
    align-items: center;
    gap: 20px;
}

.bulk-img-wrapper {
    width: 70px;
    height: 70px;
    flex-shrink: 0;
}

.bulk-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.bulk-text {
    flex-grow: 1;
}

.bulk-text h4 {
    font-size: 16px;
    font-weight: 700;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #333;
}

.bulk-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.bulk-list li {
    font-size: 13px;
    color: #444;
    margin-bottom: 5px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.text-success {
    color: #0b8e36; /* Distinct green checkmark from image */
    margin-top: 2px;
}

/* Action Buttons wrapped in gray box (Matching image) */
.bulk-actions-wrapper {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 180px;
    background: #f4f4f4; /* Gray backdrop from the image */
    padding: 12px;
    border-radius: 8px;
}

.btn-raise-request {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: #fff;
    padding: 8px 12px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    text-decoration: none;
    transition: 0.2s ease;
    text-transform: uppercase;
}

/* Red WhatsApp Button Style */
.btn-raise-request.wtsp-btn {
    color: var(--krrimpex-red);
    border: 1px solid var(--krrimpex-red);
}
.btn-raise-request.wtsp-btn:hover {
    background: #fff5f5;
    box-shadow: 0 2px 4px rgba(192,25,32,0.1);
}

/* Secondary Email Button Style */
.btn-raise-request.mail-btn {
    color: #555;
    border: 1px solid #ccc;
}
.btn-raise-request.mail-btn:hover {
    background: #f9f9f9;
    color: #333;
    border-color: #999;
}

/* Mobile Adjustments */
@media(max-width: 768px) {
    .bulk-inquiry-box {
        flex-direction: column;
        align-items: flex-start;
    }
    .bulk-actions-wrapper {
        width: 100%;
        flex-direction: row; /* Puts buttons side by side on mobile */
    }
    .btn-raise-request {
        flex: 1;
        font-size: 11px;
    }
    .policy-grid {
        grid-template-columns: 1fr 1fr; /* 2 cards per row on mobile */
    }
}

/* --- GLOBAL FIXED ALERT BOX --- */
.custom-alert-box {
    position: fixed;
    top: 80px; /* Sits just below your header */
    right: 20px;
    z-index: 9999;
    padding: 15px 20px;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    font-family: 'Barlow', sans-serif;
    box-shadow: 0 4px 15px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 280px;
    max-width: 400px;
}

.custom-alert-box i {
    font-size: 22px;
}

/* Success State */
.custom-alert-box.alert-success {
    background-color: #fff;
    color: var(--text-dark);
    border-left: 4px solid #28a745;
}
.custom-alert-box.alert-success i {
    color: #28a745;
}

/* Error State */
.custom-alert-box.alert-error {
    background-color: #fff;
    color: var(--text-dark);
    border-left: 4px solid var(--krrimpex-red);
}
.custom-alert-box.alert-error i {
    color: var(--krrimpex-red);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .custom-alert-box {
        top: auto;
        bottom: 20px; /* Moves to bottom on mobile so it doesn't block navigation */
        right: 15px;
        left: 15px;
        min-width: auto;
    }
}

/* --- PINCODE CHECKER --- */
/* ==========================================================================
   PINCODE CHECKER
   ========================================================================== */
.pincode-checker-wrapper {
    background: #fdfdfd;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px 20px;
    margin: 20px 0;
}

.pincode-title {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    margin: 0 0 12px 0;
}

.pincode-input-group {
    display: flex;
    align-items: center;
    position: relative;
    border: 1px solid #ccc;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
}

.pincode-input-group:focus-within {
    border-color: var(--krrimpex-red, #c8102e);
}

.map-icon {
    position: absolute;
    left: 12px;
    color: #888;
    font-size: 14px;
}

.pincode-input-group input {
    flex-grow: 1;
    border: none;
    padding: 12px 10px 12px 35px;
    font-size: 14px;
    outline: none;
    color: #333;
}

.btn-check-pin {
       background: var(--krrimpex-red, #c8102e);
    color: #fff;
    border: none;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: 0.2s;
    height: 100%;
    align-self: center;
    padding: 13px 22px;
}

.btn-check-pin:hover {
    background: #a0141a;
}

.pincode-msg {
    font-size: 13px;
    margin-top: 10px;
    font-weight: 600;
}

.pincode-success {
    color: #1f893e; /* Green */
}

.pincode-error {
    color: #d32f2f; /* Red */
}

/* --- LOCATION POPUP MODAL --- */
.location-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1050; /* Keeps it above the sticky header */
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(3px); /* Modern blur effect */
}

.location-modal-box {
    background-color: #fff;
    width: 90%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    overflow: hidden;
    animation: modalPopIn 0.3s ease-out;
}

@keyframes modalPopIn {
    0% { transform: scale(0.9); opacity: 0; }
    100% { transform: scale(1); opacity: 1; }
}

.location-modal-header {
    background-color: #f8f9fa;
    padding: 15px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.location-modal-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: #888;
    cursor: pointer;
    transition: 0.2s;
}

.close-modal-btn:hover {
    color: var(--krrimpex-red);
}

.location-modal-body {
    padding: 25px 20px;
}

.location-desc {
    font-size: 13px;
    color: #666;
    margin: 0 0 20px 0;
    line-height: 1.4;
}

/* Auto Detect Button */
.btn-detect-location {
    width: 100%;
    background-color: #e6f2ff;
    color: #0056b3;
    border: 1px solid #b8daff;
    padding: 12px;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: 'Barlow', sans-serif;
}

.btn-detect-location:hover {
    background-color: #cce5ff;
}

.btn-detect-location i {
    margin-right: 8px;
}

/* Divider styling */
.location-divider {
    text-align: center;
    margin: 20px 0;
    position: relative;
}

.location-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
    z-index: 1;
}

.location-divider span {
    background-color: #fff;
    padding: 0 15px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 2;
}

/* Input Group */
.location-input-group {
    display: flex;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    overflow: hidden;
    height: 45px;
}

.location-input-group input {
    flex-grow: 1;
    border: none;
    padding: 10px 15px;
    font-size: 15px;
    outline: none;
    font-family: 'Barlow', sans-serif;
    font-weight: 600;
}

.btn-apply-pincode {
    background-color: var(--krrimpex-red);
    color: #fff;
    border: none;
    padding: 0 20px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    font-family: 'Barlow', sans-serif;
}

.btn-apply-pincode:hover {
    background-color: #a0141a;
}

.location-msg {
    margin-top: 15px;
    font-size: 14px;
    font-weight: 600;
    padding: 10px;
    border-radius: 4px;
}


/* ==========================================================================
   PRODUCT DETAILS - 3 COLUMN LAYOUT
   ========================================================================== */
.product-layout-3col {
        display: grid;
    grid-template-columns: 32% 40% 25%;
    gap: 10px;
    align-items: flex-start;
}

/* COLUMN 1: Image Gallery */
.col-gallery {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    position: relative;
}
.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.main-image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}
.gallery-actions {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.ga-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: #f8f9fa;
    border: 1px solid #eee;
    color: #555;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: 0.2s;
}
.ga-btn:hover { background: #fff; box-shadow: 0 2px 5px rgba(0,0,0,0.1); color: #c8102e; }

/* COLUMN 2: Info Middle */
.product-title-main {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    line-height: 1.4;
    margin-bottom: 15px;
}

/* Pill Variants */
.variant-pills-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}
.variant-pill {
    padding: 6px 14px;
    border: 1px solid #ccc;
    border-radius: 4px;
    color: #444;
    font-size: 13px;
    text-decoration: none;
    background: #fff;
    transition: 0.2s;
}
.variant-pill:hover { border-color: #999; }
.variant-pill.active {
    border-color: var(--krrimpex-red, #c8102e);
    color: var(--krrimpex-red, #c8102e);
    background: #fffcfc;
}

/* Bulk Offers */
.bulk-offer-grid {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: none;
}
.bulk-offer-grid::-webkit-scrollbar { display: none; }
.bulk-offer-card {
    flex: 0 0 100px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px;
    text-align: center;
    cursor: pointer;
    background: #fff;
    transition: 0.2s;
}
.bulk-offer-card.active, .bulk-offer-card:hover {
    border-color: #28a745;
    box-shadow: 0 2px 8px rgba(40,167,69,0.1);
}
.boc-qty { font-size: 13px; font-weight: 600; color: #444; margin-bottom: 5px; }
.boc-price { font-size: 15px; font-weight: 800; color: #222; }
.boc-discount { font-size: 12px; font-weight: 700; color: #28a745; margin-top: 5px; }

/* Promo Banners */
.promo-banner {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-radius: 6px;
    border: 1px solid #eee;
    background: #fff;
}
.pb-green { border-color: #c3e6cb; background: #f1fbf3; }
.pb-gradient { background: linear-gradient(90deg, #fff, #e8f4f8); }
.pb-grey { background: #f8f9fa; }
.pb-icon { width: 40px; font-size: 20px; text-align: center; }
.pb-text { flex-grow: 1; display: flex; flex-direction: column; font-size: 13px; color: #333; }
.pb-text span { color: #666; font-size: 12px; }
.pb-arrow { color: #999; font-size: 14px; }

/* Trust Badges */
.trust-badge-block {
    background: #f4f5f9;
    border-radius: 8px;
    overflow: hidden;
}
.tb-header { background: #e8e9f1; padding: 10px 15px; font-size: 13px; font-weight: 700; color: #333; text-align: center; }
.tb-body { display: flex; justify-content: space-around; padding: 15px; }
.tb-stat { display: flex; flex-direction: column; align-items: center; font-size: 12px; color: #555; }
.tb-stat strong { font-size: 15px; color: #222; margin-bottom: 2px; }

/* COLUMN 3: Right Sidebar */
.col-sidebar {
            position: sticky;
    top: 85px;
}
.sidebar-box {
    background: #fff;
    border: 1px solid #eaeaea;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
}
.delivery-box {
    background: linear-gradient(180deg, #fff5e6 0%, #ffffff 40%);
}

/* Sidebar Buttons & Qty */
.qty-update-row { display: flex; align-items: center; justify-content: space-between; font-size: 14px; }
.qty-selector-small { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 4px; overflow: hidden; }
.qty-selector-small button { background: #f8f9fa; border: none; width: 30px; height: 30px; font-weight: 700; cursor: pointer; }
.qty-selector-small input { width: 40px; height: 30px; border: none; border-left: 1px solid #ccc; border-right: 1px solid #ccc; text-align: center; font-weight: 700; }

.btn-add-cart-blue { width: 100%; background: #007bff; color: #fff; border: none; padding: 12px; border-radius: 4px; font-weight: 700; font-size: 14px; cursor: pointer; transition: 0.2s; }
.btn-add-cart-blue:hover { background: #0056b3; }
.btn-buy-now-red {    width: 100%;
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
    height: fit-content;}
.btn-buy-now-red:hover { background: #b02a37; }



/* Delivery Pincode Input */
.pincode-input-wrapper {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: #fff;
    padding: 0;
    position: relative;
}
.map-pin-icon { padding: 0 10px; color: #dc3545; }
.pincode-input-wrapper input {
    flex-grow: 1;
    border: none;
    padding: 10px 0;
    outline: none;
    font-size: 14px;
}
.btn-update-pin {
    background: transparent;
    border: none;
    color: #dc3545;
    font-weight: 700;
    padding: 0 15px;
    cursor: pointer;
    font-size: 13px;
}
.btn-update-pin:hover { text-decoration: underline; }

/* Delivery Features List */
.delivery-features-list {
    list-style: none;
    padding: 0; margin: 0;
}
.delivery-features-list li {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 12px;
    color: #555;
    line-height: 1.4;
}
.delivery-features-list li i { font-size: 16px; margin-top: 2px; width: 16px; text-align: center; }
.delivery-features-list li strong { color: #333; font-size: 13px; }

/* Mobile Breakdown */
@media screen and (max-width: 700px) {
	
.button_floting_holder {    position: fixed;
    width: 100%;
    background: #ffffff;
    display: flex;
    left: 0;
    bottom: 0;
    padding: 6px;
    gap: 5px;
    z-index: 3;}
	
	.pricing_data_bottom {
		display:none;
	}
}
@media (max-width: 991px) {
    .product-layout-3col {     grid-template-columns: 100%;
    gap: 15px;}
    .col-sidebar {     position: static;
    z-index: 1; }
}


/* --- CART PAGE STYLES --- */
.page-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}
.page-title i { color: var(--krrimpex-red); }

/* Empty Cart */
.empty-cart-container {
    text-align: center;
    padding: 60px 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.empty-cart-icon {
    font-size: 60px;
    color: #ddd;
    margin-bottom: 20px;
}
.empty-cart-container h2 { font-size: 22px; font-weight: 700; margin-bottom: 10px; }
.empty-cart-container p { color: #666; margin-bottom: 25px; }
.btn-continue-shopping {
    display: inline-block;
    background: var(--krrimpex-red);
    color: #fff;
    padding: 12px 30px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    transition: 0.2s;
}
.btn-continue-shopping:hover { background: #a0141a; color: #fff; }

/* Cart Grid Layout */
.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Left side is wider */
    gap: 30px;
    align-items: start; /* Prevents summary box from stretching vertically */
}

/* Items List */
.cart-items-column {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
}
.cart-header-row {
    display: flex;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
    margin-bottom: 20px;
    font-weight: 700;
    color: #555;
    font-size: 14px;
    text-transform: uppercase;
}
.cart-item-row {
    display: flex;
    align-items: center;
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}
.cart-item-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

/* Columns setup */
.col-product { flex: 2; display: flex; gap: 15px; align-items: center; }
.col-price { flex: 1; font-weight: 600; }
.col-qty { flex: 1; }
.col-subtotal { flex: 1; font-weight: 700; color: var(--krrimpex-red); text-align: right;}
.col-action { width: 50px; text-align: right; }

.col-product img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 5px;
}
.cart-item-info { display: flex; flex-direction: column; }
.cart-item-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    line-height: 1.3;
}
.cart-item-name:hover { color: var(--krrimpex-red); }
.cart-stock-warning { font-size: 12px; color: #dc3545; margin-top: 5px; font-weight: 600; }

.cart-qty-box { height: 35px; width: 100px; } /* Reuses qty-selector class but smaller */

.btn-remove-item {
    background: #fff5f5;
    color: var(--krrimpex-red);
    border: 1px solid #ffcccc;
    width: 35px;
    height: 35px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-remove-item:hover { background: var(--krrimpex-red); color: #fff; }

/* Summary Sidebar */
.cart-summary-column {
    position: sticky;
    top: 90px; /* Sticks to screen when scrolling down */
}
.summary-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.summary-card h3 {
    margin: 0 0 20px 0;
    font-size: 18px;
    font-weight: 700;
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 12px;
}
.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
    font-size: 15px;
    color: #444;
}
.summary-divider {
    height: 1px;
    background: var(--border-color);
    margin: 15px 0;
}
.summary-total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
}
.btn-checkout {
    display: block;
    width: 100%;
    background: #28a745;
    color: #fff;
    text-align: center;
    padding: 14px;
    border-radius: 4px;
    font-weight: 700;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s;
}
.btn-checkout:hover { background: #218838; color: #fff; transform: translateY(-2px); }
.secure-checkout-badges {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 15px;
}
.secure-checkout-badges i { color: #666; margin-right: 5px; }

/* Mobile Adjustments */
@media (max-width: 991px) {
    .cart-grid { grid-template-columns: 1fr; }
    .cart-summary-column { position: relative; top: 0; }
    
    .d-none-mobile { display: none; } /* Hide table headers on mobile */
    
    .cart-item-row {
        flex-wrap: wrap; /* Allows wrapping on mobile */
        position: relative;
    }
    .col-product { flex: 0 0 100%; margin-bottom: 15px; padding-right: 40px; } /* Leave space for absolute trash icon */
    .col-price { flex: 0 0 33%; font-size: 14px; }
    .col-qty { flex: 0 0 33%; display: flex; justify-content: center; }
    .col-subtotal { flex: 0 0 33%; }
    
    .col-action {
        position: absolute;
        top: 0;
        right: 0;
    }
}

/* --- CHECKOUT PAGE --- */
.checkout-grid {
    display: grid;
    grid-template-columns: 1.8fr 1.2fr;
    gap: 40px;
    align-items: start;
}

.checkout-section {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.checkout-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
}

/* Forms */
.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; }
.form-row-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; }
.form-group { margin-bottom: 15px; }
.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: #555;
    margin-bottom: 6px;
}
.chk-input {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    font-family: 'Barlow', sans-serif;
    outline: none;
    transition: 0.2s;
}
.chk-input:focus {
    border-color: var(--krrimpex-red);
    box-shadow: 0 0 0 3px rgba(192, 25, 32, 0.1);
}
.checkbox-group {
    display: flex;
    align-items: center;
    gap: 8px;
}
.checkbox-group label { margin: 0; font-size: 14px; font-weight: 500; cursor: pointer; }
.mt-3 { margin-top: 15px; }

/* Payment Methods */
.payment-methods { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.payment-option {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    padding: 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: 0.2s;
}
.payment-option:hover { border-color: var(--krrimpex-red); background: #fff5f5; }
.payment-option input[type="radio"] { margin-right: 12px; transform: scale(1.2); accent-color: var(--krrimpex-red); }
.pay-text { font-weight: 600; font-size: 15px; color: var(--text-dark); }
.pay-text i { margin-right: 8px; color: var(--krrimpex-red); }

.payment-details-block {
    background: #f9f9f9;
    border: 1px dashed #ccc;
    padding: 20px;
    border-radius: 6px;
}
.pay-instruction { font-size: 13px; color: #555; margin-bottom: 15px; line-height: 1.5; }

/* QR Code & Bank Box */
.qr-code-wrapper { text-align: center; margin-bottom: 15px; }
.qr-code-wrapper img { width: 180px; height: 180px; border: 1px solid #ddd; padding: 5px; background: #fff; border-radius: 6px; }
.bank-details-box { background: #fff; padding: 15px; border-left: 4px solid var(--krrimpex-red); border-radius: 4px; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.bank-details-box p { margin: 0 0 8px 0; font-size: 14px; color: #444; }

/* Order Summary (Right Column) */
.sticky-summary { position: sticky; top: 90px; }
.checkout-item-list { max-height: 350px; overflow-y: auto; margin-bottom: 20px; padding-right: 10px; }
.chk-item { display: flex; align-items: center; gap: 15px; margin-bottom: 15px; }
.chk-img-wrap { position: relative; width: 60px; height: 60px; border: 1px solid #eee; border-radius: 6px; padding: 4px; background: #fff; }
.chk-img-wrap img { width: 100%; height: 100%; object-fit: contain; }
.chk-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #555;
    color: #fff;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
}
.chk-item-name { flex: 1; font-size: 13px; font-weight: 600; color: #333; line-height: 1.3; }
.chk-item-price { font-weight: 700; font-size: 14px; }
.btn-place-order {
    display: block;
    width: 100%;
    background: var(--krrimpex-red);
    color: #fff;
    text-align: center;
    padding: 15px;
    border: none;
    border-radius: 4px;
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Barlow', sans-serif;
}
.btn-place-order:hover { background: #a0141a; }
.text-success { color: #28a745; font-weight: 600; }

/* Mobile */
@media (max-width: 991px) {
    .checkout-grid { grid-template-columns: 1fr; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
    .sticky-summary { position: relative; top: 0; }
}

/* --- TRACKING PAGE STYLES --- */
.tracking-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px 15px;
}
.text-center { text-align: center; }
.mt-5 { margin-top: 40px; }

/* Form Card */
.tracking-form-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}
.tracking-instruction {
    text-align: center;
    color: #666;
    margin-bottom: 25px;
}
.tracking-input-row {
    display: flex;
    gap: 15px;
}
.tracking-input-row .form-group {
    flex: 1;
    margin-bottom: 0;
}
.btn-track {
    background: var(--krrimpex-red);
    color: #fff;
    border: none;
    padding: 0 30px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    white-space: nowrap;
}
.btn-track:hover { background: #a0141a; }

/* Results Card */
.tracking-results-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
}
.tracking-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.tracking-header h3 { margin: 0; font-size: 18px; color: var(--text-dark); }
.order-date { font-size: 13px; color: #888; font-weight: 500; }

/* Visual Progress Bar */
.progress-track {
    display: flex;
    justify-content: space-between;
    position: relative;
    margin-bottom: 40px;
    padding: 0 20px;
}
.track-step {
    text-align: center;
    position: relative;
    flex: 1;
    z-index: 2;
}
/* The connecting line behind the icons */
.track-step::before {
    content: '';
    position: absolute;
    top: 20px;
    left: -50%;
    width: 100%;
    height: 4px;
    background: #eee;
    z-index: -1;
    transition: background 0.4s ease;
}
.track-step:first-child::before { display: none; }

.track-icon {
    width: 40px;
    height: 40px;
    background: #eee;
    color: #aaa;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    margin-bottom: 10px;
    transition: all 0.4s ease;
    border: 3px solid #fff;
}
.track-text {
    font-size: 13px;
    font-weight: 600;
    color: #888;
}

/* Active State for Progress Bar */
.track-step.active .track-icon {
    background: var(--krrimpex-red);
    color: #fff;
    box-shadow: 0 0 0 3px rgba(192, 25, 32, 0.2);
}
.track-step.active .track-text { color: var(--text-dark); }
.track-step.active::before { background: var(--krrimpex-red); }

/* Courier Details Box */
.courier-details-box {
    background: #fdfdfd;
    border: 1px dashed #ccc;
    padding: 20px;
    border-radius: 6px;
}
.courier-details-box h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    color: var(--text-dark);
}
.courier-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: center;
}
.c-item { flex: 1; min-width: 200px; display: flex; flex-direction: column; }
.c-label { font-size: 12px; color: #666; text-transform: uppercase; margin-bottom: 5px; }
.c-value { font-size: 16px; color: var(--text-dark); }
.font-weight-bold { font-weight: 700; }

.btn-live-track {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 10px 15px;
    border-radius: 4px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 700;
    text-align: center;
}
.btn-live-track:hover { background: #218838; }

.alert-info-box {
    background: #e9f7fe;
    border-color: #b6e0fe;
    color: #31708f;
    font-size: 14px;
    line-height: 1.5;
}
.cancelled-banner {
    background: #f8d7da;
    color: #721c24;
    padding: 15px;
    border-radius: 6px;
    font-weight: 600;
    text-align: center;
}

/* Mobile Adjustments for Tracking */
@media (max-width: 768px) {
    .tracking-input-row { flex-direction: column; }
    .btn-track { padding: 12px; }
    
    .progress-track { padding: 0; }
    .track-step::before { top: 15px; }
    .track-icon { width: 30px; height: 30px; font-size: 12px; }
    .track-text { font-size: 11px; }
}

/* --- ORDER SUCCESS PAGE --- */
.success-container {
    max-width: 650px;
    margin: 40px auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.success-icon-box {
    font-size: 65px;
    color: #28a745;
    margin-bottom: 20px;
}

.success-title {
    font-size: 26px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.success-subtitle {
    color: #666;
    font-size: 15px;
    margin-bottom: 30px;
    line-height: 1.5;
}

/* Receipt Card */
.order-receipt-card {
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    text-align: left;
    margin-bottom: 30px;
    overflow: hidden;
}

.receipt-header {
    background: #f1f3f5;
    padding: 12px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #444;
}

.receipt-body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: #555;
}

.receipt-total-row {
    border-top: 1px dashed var(--border-color);
    padding-top: 12px;
    margin-top: 5px;
}

/* Action Buttons */
.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-primary-action, 
.btn-secondary-action {
    padding: 12px 25px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: 0.2s;
    font-family: 'Barlow', sans-serif;
}

.btn-primary-action {
    background: var(--krrimpex-red);
    color: #fff;
}

.btn-primary-action:hover {
    background: #a0141a;
    color: #fff;
}

.btn-secondary-action {
    background: #fff;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-secondary-action:hover {
    background: #f8f9fa;
    border-color: #bbb;
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .success-container {
        padding: 25px 15px;
    }
    .success-actions {
        flex-direction: column;
    }
    .btn-primary-action, 
    .btn-secondary-action {
        width: 100%;
        justify-content: center;
    }
    .receipt-header {
        flex-direction: column;
        gap: 5px;
    }
}

/* --- USER AUTHENTICATION PAGES (LOGIN / REGISTER) --- */
.auth-wrapper {
    max-width: 450px;
    margin: 40px auto;
}

.auth-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 35px 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03);
}

.auth-header {
    text-align: center;
    margin-bottom: 25px;
}

.auth-header h2 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 8px 0;
}

.auth-header h2 i {
    color: var(--krrimpex-red);
    margin-right: 8px;
}

.auth-header p {
    font-size: 14px;
    color: #666;
    margin: 0;
}

/* Alert Error */
.auth-alert-error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    margin-bottom: 25px;
}

.remember-me {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #555;
    cursor: pointer;
}

.forgot-link {
    color: var(--krrimpex-red);
    text-decoration: none;
    font-weight: 600;
}

.forgot-link:hover {
    text-decoration: underline;
}

.btn-auth-submit {
    display: block;
    width: 100%;
    background: var(--krrimpex-red);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Barlow', sans-serif;
}

.btn-auth-submit:hover {
    background: #a0141a;
}

/* Divider */
.auth-divider {
    text-align: center;
    margin: 25px 0;
    position: relative;
}

.auth-divider::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: 1px;
    background-color: var(--border-color);
}

.auth-divider span {
    background-color: #fff;
    padding: 0 15px;
    color: #888;
    font-size: 12px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

/* Google Sign-In button alignment wrapper */
.g_id_signin {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-bottom: 20px;
}

.auth-footer-text {
    text-align: center;
    font-size: 14px;
    color: #666;
    margin-top: 20px;
}

.auth-footer-text a {
    color: var(--krrimpex-red);
    font-weight: 700;
    text-decoration: none;
}

.auth-footer-text a:hover {
    text-decoration: underline;
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    .auth-wrapper {
        margin: 20px 10px;
    }
    .auth-card {
        padding: 25px 20px;
    }
}

/* --- ACCOUNT DASHBOARD STYLES --- */
.account-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}
.account-header-flex .page-title { margin-bottom: 0; }

.btn-logout {
    background: #fff5f5;
    color: var(--krrimpex-red);
    border: 1px solid #ffcccc;
    padding: 8px 16px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 14px;
    text-decoration: none;
    transition: 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-logout:hover { background: var(--krrimpex-red); color: #fff; }

.auth-alert-success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
    padding: 12px 15px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.account-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: 30px;
    align-items: start;
}

.account-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

.account-section-heading {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 20px 0;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.account-section-heading i { color: var(--krrimpex-red); }

.sub-heading {
    font-size: 14px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    margin: 15px 0 10px 0;
    letter-spacing: 0.5px;
}

.account-divider {
    border: none;
    border-top: 1px dashed var(--border-color);
    margin: 20px 0;
}

.btn-save-account {
    background: var(--krrimpex-red);
    color: #fff;
    border: none;
    padding: 12px 20px;
    border-radius: 4px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    font-family: 'Barlow', sans-serif;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.btn-save-account:hover { background: #a0141a; }

/* Order History Cards */
.order-history-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 5px;
}

.order-history-item {
    background: #fdfdfd;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 15px;
    transition: 0.2s;
}
.order-history-item:hover { border-color: #bbb; }

.oh-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}
.oh-id { font-size: 14px; color: var(--text-dark); }

/* Status Badges */
.oh-status {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}
.badge-pending { background: #fff3cd; color: #856404; }
.badge-processing { background: #cce5ff; color: #004085; }
.badge-shipped { background: #d1ecf1; color: #0c5460; }
.badge-delivered { background: #d4edda; color: #155724; }
.badge-cancelled { background: #f8d7da; color: #721c24; }

.oh-details {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    color: #666;
    margin-bottom: 12px;
}

.oh-footer {
    border-top: 1px dashed #eee;
    padding-top: 8px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 12px;
}
.oh-courier { color: #777; }
.oh-track-link {
    color: var(--krrimpex-red);
    font-weight: 700;
    text-decoration: none;
}
.oh-track-link:hover { text-decoration: underline; }

.empty-orders {
    text-align: center;
    padding: 40px 20px;
    color: #888;
}
.empty-orders i { font-size: 40px; color: #ddd; margin-bottom: 15px; }
.empty-orders p { margin-bottom: 15px; font-size: 14px; }
.btn-shop-now {
    display: inline-block;
    background: var(--krrimpex-red);
    color: #fff;
    padding: 8px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .account-grid { grid-template-columns: 1fr; }
    .form-row-2, .form-row-3 { grid-template-columns: 1fr; }
}

/* --- NEW KR-PRODUCTS CATALOG STYLES --- */
.kr-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-bottom: 45px;
}

.kr-product-card {
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.kr-product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.07);
}

.kr-product-thumb {
    height: 210px;
    background: #fcfcfc;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    position: relative;
}

.kr-product-thumb img {
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.kr-product-card:hover .kr-product-thumb img {
    transform: scale(1.06);
}

.kr-product-content {
    padding: 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.kr-product-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 42px;
}

.kr-product-title:hover {
    color: var(--krrimpex-red);
}

.kr-product-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.kr-product-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Stock status tags */
.kr-stock-pill {
    font-size: 11px;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: 4px;
    text-transform: uppercase;
}
.kr-stock-pill.available { background: #e6f4ea; color: #137333; }
.kr-stock-pill.exhausted { background: #fce8e6; color: #c5221f; }

/* Product card action buttons */
.kr-product-btns {
    display: flex;
    gap: 10px;
    margin-top: auto;
}

.kr-btn-details {
    flex-grow: 1;
    background: #f8f9fa;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    text-align: center;
    padding: 10px;
    border-radius: 5px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    transition: 0.2s;
}

.kr-btn-details:hover {
    background: var(--text-dark);
    color: #fff;
    border-color: var(--text-dark);
}

.kr-btn-cart-quick {
        background: var(--krrimpex-red);
    color: #fff;
    border: none;
    width: -webkit-fill-available;
    border-radius: 5px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
}

.kr-btn-cart-quick:hover {
    background: #a0141a;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
    .kr-products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .kr-product-thumb { height: 150px; padding: 10px; }
    .kr-product-content { padding: 12px; }
    .kr-product-title { font-size: 13px; height: 36px; }
    .kr-product-price { font-size: 16px; }
}

/* ==========================================================================
   CATEGORY PRODUCTS PAGE (PREMIUM LAYOUT)
   ========================================================================== */

/* Category Header Area */
.cat-page-header {
        margin-bottom: 25px;
    padding: 20px;
}
@media (max-width: 576px) {
	.cat-page-header {
        margin-bottom: 25px;
    padding: 0px;
}
}

.cat-page-title {
    font-size: 26px;
    font-weight: 800;
    color: #333;
    margin-bottom: 10px;
}

.cat-page-desc {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    max-width: 900px;
}

/* Reusable Section Box */
.cat-section-box {
    background: #ffffff;
    border-radius: 12px;
    padding: 25px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.03);
    border: 1px solid #f1f1f1;
}

.cat-section-box.tinted-box {
    background: #ececf7; /* Matches the light purple tint in the image */
    border: none;
}

.cat-section-title {
    font-size: 18px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}

/* 1. Shop by Brands Scroll */
/* 1. Shop by Brands Scroll */
.cat-brand-scroll {
    display: flex;
    gap: 25px; /* Increased gap to match the spacious image layout */
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #e0e0e0 transparent;
}
.cat-brand-scroll::-webkit-scrollbar { height: 6px; }
.cat-brand-scroll::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 10px; }

.cat-brand-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    flex: 0 0 120px; /* Increased width to accommodate larger circles */
    scroll-snap-align: start;
}

.cat-brand-circle {
    width: 110px; /* Increased to match the large circles in the image */
    height: 110px;
    border-radius: 50%;
    border: 1px solid #e0e0e0; /* Crisp, clean light grey border */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px; /* Ensures the logo breathes inside the circle */
    margin-bottom: 12px;
    background: #fff;
    transition: 0.2s ease-in-out;
}

.cat-brand-item:hover .cat-brand-circle,
.cat-brand-item.active .cat-brand-circle {
    border-color: var(--krrimpex-red, #c8102e);
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.cat-brand-circle img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cb-name {
    font-size: 14px;
    font-weight: 600;
    color: #222;
    text-align: center;
    margin-bottom: 2px;
    line-height: 1.2;
}

.cb-cat {
    font-size: 13px;
    color: #555; /* Darkened slightly to match the readable grey in image */
    text-align: center;
    line-height: 1.2;
}

/* Mobile Adjustments for Brands */
@media (max-width: 768px) {
    .cat-brand-item { flex: 0 0 90px; }
    .cat-brand-circle { width: 85px; height: 85px; padding: 12px; }
    .cb-name { font-size: 12px; }
    .cb-cat { font-size: 11px; }
}



/* 2. Trending Searches Scroll */
.cat-trending-scroll {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 15px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}
.cat-trending-scroll::-webkit-scrollbar { height: 6px; }
.cat-trending-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.cat-trending-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    flex: 0 0 180px;
    scroll-snap-align: start;
    display: flex;
    flex-direction: column;
    text-decoration: none;
    transition: 0.2s;
    overflow: hidden;
}

.cat-trending-card:hover {
    border-color: #ccc;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}

.ct-img-wrap {
    height: 140px;
    padding: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ct-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.ct-info {
    border-top: 1px solid #f5f5f5;
    padding: 12px;
    text-align: center;
    background: #fafafa;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ct-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    margin: 0 0 5px 0;
    line-height: 1.3;
}

.ct-info span {
    font-size: 12px;
    color: #0066cc; /* Blue text for pricing */
    font-weight: 600;
}

/* 3. Bestsellers Product Card Overrides */
.cs-card-override {
    position: relative;
    background: #fff;
    border: none !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.top-seller-badge {
    position: absolute;
    top: 0;
    left: 15px;
    background: #007bff; /* Blue badge matching image */
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 10px;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    z-index: 2;
    text-transform: uppercase;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .cat-section-box { padding: 15px; }
    .cat-brand-item { flex: 0 0 80px; }
    .cat-brand-circle { width: 70px; height: 70px; }
    .cat-trending-card { flex: 0 0 140px; }
    .ct-img-wrap { height: 110px; }
}

/* --- BRAND SCROLL SNAP FILTER BAR --- */
.brand-scroll-container {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding: 5px 0 20px 0;
    margin-bottom: 25px;
    scrollbar-width: thin;
    scrollbar-color: #ccc transparent;
}

.brand-scroll-container::-webkit-scrollbar {
    height: 5px;
}

.brand-scroll-container::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 3px;
}

.brand-pill {
       scroll-snap-align: start;
    flex: 0 0 auto;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    padding: 8px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-decoration: none;
    color: var(--text-dark);
    font-weight: 600;
    font-size: 14px;
    transition: 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.02);
}

.brand-pill img {
       width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 20px;
}

.brand-pill:hover {
    border-color: var(--krrimpex-red);
    background: #fff5f5;
    color: var(--krrimpex-red);
}

.brand-pill.active {
       background: #ffffff;
    border-color: var(--krrimpex-red);
}
/* --- 2-COLUMN SECONDARY CATEGORY GRID --- */
.sec-categories-grid-2col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

.sec-category-card-2col {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 20px;
    text-decoration: none;
    transition: 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}

.sec-category-card-2col:hover {
    border-color: var(--krrimpex-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.06);
}

.sec-card-img {
    width: 80px;
    height: 80px;
    background: #fcfcfc;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    flex-shrink: 0;
    border: 1px solid #eee;
}

.sec-card-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.sec-card-info h3 {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 0 0 6px 0;
}

.sec-card-info span {
    font-size: 13px;
    color: var(--krrimpex-red);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

/* Mobile responsiveness */
@media (max-width: 768px) {
    .sec-categories-grid-2col {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   CONTACT US PAGE STYLES
   ========================================================================== */
.contact-page-header {
    margin-top: 10px;
}

.contact-info-card, .contact-form-card {
    background: #fff;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 10px;
    padding: 35px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.03);
}

.contact-info-card {
    background: linear-gradient(145deg, #ffffff, #fdfdfd);
}

.contact-heading {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark, #222);
    margin-bottom: 10px;
}

.contact-subtext {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
    line-height: 1.5;
}

.contact-info-list {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.contact-info-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.contact-info-item .icon-box {
    width: 44px;
    height: 44px;
    background: var(--krrimpex-red-light, #fff5f5);
    color: var(--krrimpex-red, #c8102e);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: 0.3s;
}

.contact-info-item:hover .icon-box {
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
}

.info-details h5 {
    margin: 0 0 4px 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--text-dark, #222);
}

.info-details a, .info-details span {
    color: #555;
    text-decoration: none;
    font-size: 14px;
    transition: 0.2s;
}

.info-details a:hover {
    color: var(--krrimpex-red, #c8102e);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: #f8f9fa;
    color: var(--text-dark, #222);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 16px;
    transition: 0.2s;
}

.social-icon:hover {
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
    transform: translateY(-3px);
}

.btn-submit-contact {
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
    border: none;
    padding: 13px 20px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.btn-submit-contact:hover {
    background: var(--krrimpex-red-hover, #a0141a);
}

/* Mobile Adjustments for Contact Page */
@media (max-width: 576px) {
    .contact-info-card, .contact-form-card {
        padding: 22px;
    }
}

/* ==========================================================================
   ABOUT US PAGE STYLES
   ========================================================================== */
.about-hero {
    padding: 20px 0;
}

.about-title {
    font-size: 42px;
    font-weight: 800;
    color: var(--text-dark, #222);
    line-height: 1.2;
    margin-bottom: 20px;
}

.about-subtitle {
    font-size: 18px;
    color: var(--text-muted, #666);
    line-height: 1.6;
}

.about-hero-img {
    border-radius: 12px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    max-height: 400px;
    object-fit: cover;
    width: 100%;
}

.about-hero-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap;
}

/* Custom Buttons for Hero */
.btn-primary-custom {
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--krrimpex-red, #c8102e);
}

.btn-primary-custom:hover {
    background: var(--krrimpex-red-hover, #a0141a);
    border-color: var(--krrimpex-red-hover, #a0141a);
    color: #fff;
}

.btn-outline-custom {
    background: transparent;
    color: var(--text-dark, #222);
    padding: 12px 24px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 15px;
    text-decoration: none;
    transition: 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid var(--border-color, #e5e5e5);
}

.btn-outline-custom:hover {
    border-color: var(--text-dark, #222);
    background: var(--text-dark, #222);
    color: #fff;
}

/* Core Values Grid */
.value-card {
    background: #fff;
    border: 1px solid var(--border-color, #e5e5e5);
    border-radius: 10px;
    padding: 30px 20px;
    text-align: center;
    height: 100%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.value-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.06);
    border-color: var(--krrimpex-red-light, #ffcccc);
}

.value-icon {
    width: 65px;
    height: 65px;
    background: var(--krrimpex-red-light, #fff5f5);
    color: var(--krrimpex-red, #c8102e);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 26px;
    margin-bottom: 20px;
    transition: 0.3s;
}

.value-card:hover .value-icon {
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
}

.value-card h4 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark, #222);
    margin-bottom: 12px;
}

.value-card p {
    font-size: 14px;
    color: var(--text-muted, #666);
    line-height: 1.5;
    margin: 0;
}

.line-height-lg {
    line-height: 1.8;
}

/* Responsive Adjustments */
@media (max-width: 991px) {
    .about-title { font-size: 34px; }
    .about-hero { text-align: center; }
    .about-hero-actions { justify-content: center; }
    .about-hero-img { margin-top: 30px; }
}

@media (max-width: 576px) {
    .about-title { font-size: 28px; }
    .btn-primary-custom, .btn-outline-custom { width: 100%; justify-content: center; }
}

/* ==========================================================================
   PROMOTIONAL OFFERS BANNER SECTION
   ========================================================================== */
.offers-banner-section {
    margin: 30px 0 45px 0;
    width: 100%;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.offer-banner-link {
    display: block;
    border-radius: 8px;
    overflow: hidden;
    background: #f8f9fa;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color, #e5e5e5);
}

.offer-banner-link:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
}

.offer-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    aspect-ratio: 21 / 9; /* Ensures a nice wide banner look */
}

/* --- RESPONSIVE ADJUSTMENTS --- */

/* Tablets (iPad, smaller laptops) */
@media (max-width: 991px) {
    .offers-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
}

/* Mobile Devices */
@media (max-width: 576px) {
    .offers-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px; /* Space for the invisible scrollbar */
        gap: 12px;
        
        /* Hide scrollbar for a cleaner look */
        scrollbar-width: none; /* Firefox */
    }
    
    .offers-grid::-webkit-scrollbar {
        display: none; /* Chrome, Safari, Edge */
    }

    .offer-banner-link {
        /* Shows one full banner and a peek of the next one to indicate scrolling */
        flex: 0 0 88%; 
        scroll-snap-align: center;
    }
}

/* ==========================================================================
   RECENTLY VIEWED SECTION (CONTINUE YOUR JOURNEY)
   ========================================================================== */
.recently-viewed-section {
    /* Gradient matching your design: Light blue fading into soft pink/purple */
    background: linear-gradient(100deg, #d3dfed 0%, #e8d0dd 60%, #cc90a9 100%);
    border-radius: 8px;
    padding: 20px;
    margin: 30px 0 45px 0;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.rv-header {
    margin-bottom: 15px;
}

.rv-title {
    font-size: 18px;
    font-weight: 700;
    color: #334155; /* Dark grey-blue */
    margin: 0;
}

.rv-scroll-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px; /* Space for the scrollbar */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.rv-scroll-container::-webkit-scrollbar {
    height: 6px;
}

.rv-scroll-container::-webkit-scrollbar-thumb {
    background: rgba(0,0,0,0.2);
    border-radius: 10px;
}

/* Individual Item Wrapper */
.rv-item {
    flex: 0 0 115px; /* Fixed width matching the square design */
    scroll-snap-align: start;
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* The White Box */
.rv-card-box {
    background: #ffffff;
    border: 1px solid transparent; /* Transparent default to prevent jumping on hover */
    border-radius: 6px;
    width: 100%;
    height: 115px;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    transition: 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.rv-item:hover .rv-card-box,
.rv-item:active .rv-card-box {
    border-color: var(--krrimpex-red, #c8102e); /* Red border on hover */
}

/* Image Wrapper */
.rv-img-wrapper {
    flex-grow: 1;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.rv-img-wrapper img {
    max-width: 100%;
    max-height: 70px;
    object-fit: contain;
}

/* Dark Overlay Bar at Bottom of Image */
.rv-view-bar {
    background: #4b4b4b;
    color: #ffffff;
    font-size: 11px;
    font-weight: 600;
    text-align: center;
    padding: 5px 0;
    width: 100%;
}

.rv-view-bar i {
    margin-right: 3px;
}

/* Product Text (Outside and below the box) */
.rv-item-name {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 700;
    color: #334155;
    text-align: center;
    line-height: 1.3;
    
    /* Truncate to maximum 2 lines */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    width: 100%;
    transition: color 0.2s;
}

.rv-item:hover .rv-item-name {
    color: var(--krrimpex-red, #c8102e);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .recently-viewed-section {
        padding: 15px;
        border-radius: 0; /* Full width edge-to-edge on mobile */
    }
    
    .rv-item {
        flex: 0 0 100px; /* Slightly smaller on mobile */
    }
    
    .rv-card-box {
        height: 100px;
    }
    
    .rv-img-wrapper img {
        max-height: 55px;
    }
}

/* ==========================================================================
   CUSTOMER REVIEWS SECTION
   ========================================================================== */
.customer-reviews-section {
    position: relative;
    padding: 40px 0 60px 0;
    margin-bottom: 40px;
    background: linear-gradient(180deg, rgba(255,255,255,0) 60%, rgba(243,215,219,0.5) 100%);
}

.reviews-container-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 15px;
}

.reviews-header-flex {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 25px;
    border-bottom: 2px solid #f1f1f1;
    padding-bottom: 15px;
}

.reviews-title {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    margin: 0 0 5px 0;
}

.reviews-subtitle {
    font-size: 15px;
    color: #666;
    margin: 0;
}

.btn-write-review {
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-write-review:hover {
    background: var(--krrimpex-red-hover, #a0141a);
    color: #fff;
}

.btn-write-review.outline {
    background: #fff;
    color: var(--text-dark, #333);
    border: 1px solid var(--border-color, #e5e5e5);
}

.btn-write-review.outline:hover {
    background: #f8f9fa;
    color: var(--krrimpex-red, #c8102e);
    border-color: var(--krrimpex-red, #c8102e);
}

/* Write Review Form Area */
.review-form-collapse {
    display: none; /* Hidden by default */
    margin-bottom: 30px;
}
.review-form-collapse.show {
    display: block;
    animation: fadeInDown 0.3s ease;
}

.review-form-card {
    background: #fdfdfd;
    border: 1px solid #eee;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
}

/* Horizontal Scrolling Slider */
.reviews-slider-container {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 15px; /* space for shadow and scrollbar */
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: rgba(200, 16, 46, 0.3) transparent;
}

.reviews-slider-container::-webkit-scrollbar { height: 6px; }
.reviews-slider-container::-webkit-scrollbar-thumb { background: rgba(200, 16, 46, 0.3); border-radius: 10px; }

/* Review Card Styling (Matching the Image) */
.review-card {
    flex: 0 0 350px; /* Fixed width */
    scroll-snap-align: start;
    background: #ffffff;
    border: 1px solid #f1f1f1;
    border-radius: 10px;
    padding: 25px 25px 20px 25px;
    position: relative;
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
}

/* Top Right Badge */
.review-badge {
    position: absolute;
    top: -1px;
    right: -1px;
    background: #faeacc;
    color: #cc8d1a;
    font-weight: 700;
    font-size: 12px;
    padding: 6px 15px;
    border-bottom-left-radius: 10px;
    border-top-right-radius: 10px;
}

/* Pink Quote Icon */
.review-quote-icon {
    font-family: Georgia, serif;
    font-size: 60px;
    color: #f69fae;
    line-height: 0.5;
    margin-top: 10px;
    margin-bottom: 15px;
}

.review-text {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    flex-grow: 1; /* Pushes footer to the bottom */
    min-height: 80px;
}

.review-footer {
    border-top: 1px solid #f5f5f5;
    padding-top: 15px;
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.reviewer-name {
    font-weight: 800;
    color: #333;
    font-size: 15px;
}

.review-stars {
    color: #f7941d; /* Standard Star Orange */
    font-size: 13px;
    display: flex;
    gap: 2px;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .reviews-header-flex {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    .review-card {
        flex: 0 0 85%; /* Shows a peek of the next card */
    }
}

/* ==========================================================================
   MOBILE ONLY: TRENDING CATEGORIES
   ========================================================================== */
/* Hide entirely on Desktop */
.mobile-trending-categories {
    display: none;
}

/* Show and style only on Mobile / Tablet */
@media (max-width: 991px) {
    .mobile-trending-categories {
        display: block;
        margin: 20px 0 35px 0;
        padding: 0 15px; /* Matches standard container padding */
    }

    .trending-header {
        margin-bottom: 12px;
    }

    .trending-title {
        font-size: 17px;
        font-weight: 700;
        color: #333;
        margin: 0;
    }

    .trending-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .trending-card {
        background: #f2f3f5; /* Light gray matching the image */
        border: 1px solid #eaebee;
        border-radius: 8px;
        padding: 12px 6px;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        text-decoration: none;
        transition: transform 0.15s ease;
    }

    .trending-card:active {
        transform: scale(0.96); /* Subtle click effect for mobile users */
    }

    .trending-img-wrapper {
        width: 100%;
        height: 55px;
        display: flex;
        align-items: center;
        justify-content: center;
        margin-bottom: 8px;
    }

    .trending-img-wrapper img {
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
        /* Optional: mix-blend-mode removes white backgrounds from jpegs if needed */
        mix-blend-mode: multiply; 
    }

    .trending-name {
        font-size: 11px;
        font-weight: 500;
        color: #444;
        text-align: center;
        line-height: 1.3;
        
        /* Forces text to max 2 lines to prevent uneven card heights */
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }
}

/* Make it slightly tighter on extremely small phones */
@media (max-width: 360px) {
    .trending-grid {
        gap: 8px;
    }
    .trending-card {
        padding: 10px 4px;
    }
    .trending-name {
        font-size: 10px;
    }
}


/* ==========================================================================
   BULK INQUIRY WHATSAPP MODAL
   ========================================================================== */
.bulk-trigger-btn {
    width: 100%;
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
    border: none;
    padding: 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: 0.2s;
}
.bulk-trigger-btn:hover { background: #a0141a; }

.bm-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.6);
    z-index: 9999;
    display: none;
    opacity: 0;
    transition: opacity 0.3s;
}

.bm-modal {
    position: fixed;
    z-index: 10000;
    background: #fff;
    display: none;
    flex-direction: column;
    overflow: hidden;
    transition: transform 0.3s ease-out;
}

/* Mobile: Bottom Sheet Setup */
@media (max-width: 768px) {
    .bm-modal {
        bottom: 0; left: 0; width: 100%;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        transform: translateY(100%);
        max-height: 90vh;
    }
}
/* Desktop: Centered Setup */
@media (min-width: 769px) {
    .bm-modal {
        top: 50%; left: 50%;
        width: 500px;
        border-radius: 12px;
        transform: translate(-50%, -50%) scale(0.95);
        max-height: 90vh;
        opacity: 0;
    }
}

/* Modal Open States */
.bm-overlay.show { opacity: 1; display: block; }
@media (max-width: 768px) {
    .bm-modal.show { transform: translateY(0); display: flex; }
}
@media (min-width: 769px) {
    .bm-modal.show { transform: translate(-50%, -50%) scale(1); opacity: 1; display: flex; }
}

/* Header */
.bm-header {
    background: #f8f9fa;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
}
.bm-header-text h3 { font-size: 16px; font-weight: 800; color: #333; margin: 0 0 8px 0; }
.bm-product-title { font-size: 14px; color: #444; margin: 0 0 3px 0; line-height: 1.3; }
.bm-brand-title { font-size: 12px; color: #777; margin: 0; }
.bm-close-btn { background: none; border: none; font-size: 20px; color: #333; cursor: pointer; }

/* Body */
.bm-body {
    padding: 20px;
    overflow-y: auto;
    flex-grow: 1;
}

/* Quantity Row */
.bm-qty-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 14px;
    color: #444;
}
.bm-qty-controls {
    display: flex;
    align-items: center;
}
.bm-qty-controls button {
    background: #f0f4f8;
    border: 1px solid #dcdfe4;
    color: #0066cc;
    width: 34px; height: 34px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.bm-qty-controls input {
    width: 50px; height: 34px;
    text-align: center;
    border: 1px solid #333; /* Bold border from image */
    margin: 0 8px;
    border-radius: 4px;
    font-weight: 700;
}

/* Outline Inputs (Material Look) */
.bm-input-wrap {
    position: relative;
    margin-bottom: 20px;
}
.bm-input-wrap label {
    position: absolute;
    top: -9px;
    left: 12px;
    background: #fff;
    padding: 0 5px;
    font-size: 11px;
    color: #666;
    z-index: 1;
}
.bm-input-wrap input, .bm-input-wrap textarea {
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 14px;
    font-size: 14px;
    color: #333;
    outline: none;
    box-sizing: border-box;
}
.bm-input-wrap input:focus, .bm-input-wrap textarea:focus { border-color: #555; }
.bm-input-wrap.no-label input, .bm-input-wrap.no-label textarea { padding: 14px; }
.bm-input-wrap textarea { resize: none; font-family: inherit; }

/* Mobile Prefix Field */
.bm-mobile-wrap { display: flex; align-items: center; border: 1px solid #ccc; border-radius: 8px; padding: 0; }
.bm-mobile-wrap .bm-country-code { padding: 14px; border-right: 1px solid #ccc; font-size: 14px; color: #666; background: #fdfdfd; border-top-left-radius: 8px; border-bottom-left-radius: 8px; }
.bm-mobile-wrap input { border: none; padding: 14px; border-radius: 0 8px 8px 0; }

.bm-row-split { display: flex; gap: 15px; }
.bm-row-split .bm-input-wrap { flex: 1; }

/* Checkboxes */
.bm-check-row { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; }
.bm-check-row input[type="checkbox"] { width: 18px; height: 18px; cursor: pointer; }
.bm-check-row label { font-size: 14px; font-weight: 700; color: #333; cursor: pointer; }

.bm-business-row { align-items: flex-start; }
.bm-business-row label { display: flex; flex-direction: column; }
.bm-b-title { font-size: 14px; font-weight: 700; color: #333; }
.bm-b-sub { font-size: 12px; font-weight: 400; color: #777; }

/* Footer */
.bm-footer { padding: 15px; border-top: 1px solid #eee; background: #fff; }
.bm-submit-red {
    width: 100%;
    background: #d32f2f; /* Red from image */
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    padding: 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

/* ==========================================================================
   VIEW A: SIDEBAR & GRID (SUBCATEGORY LAYOUT)
   ========================================================================== */
.catalog-layout {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

/* Sidebar Filters */
.catalog-sidebar {
       flex: 0 0 260px;
    background: #fdfdfd;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.02);
    position: sticky;
    top: 85px;
}

.filter-block {
    border-bottom: 1px solid #f1f1f1;
    padding: 18px;
}
.filter-block:last-child {
    border-bottom: none;
}

.filter-title {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 12px;
}

.filter-search {
    position: relative;
    margin-bottom: 12px;
}
.filter-search i {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 13px;
}
.filter-search input {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 10px 8px 30px;
    font-size: 13px;
    outline: none;
}
.brand-list-container {
    max-height: 180px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Custom Checkbox */
.custom-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
    cursor: pointer;
    font-size: 13px;
    color: #555;
    margin-bottom: 10px;
    user-select: none;
}
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}
.checkmark {
    height: 16px;
    width: 16px;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.custom-checkbox:hover input ~ .checkmark { border-color: #999; }
.custom-checkbox input:checked ~ .checkmark {
    background-color: var(--krrimpex-red, #c8102e);
    border-color: var(--krrimpex-red, #c8102e);
}
.checkmark:after {
    content: "";
    position: absolute;
    display: none;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}
.custom-checkbox input:checked ~ .checkmark:after { display: block; }

/* Subcategory Product Grid */
.catalog-main {
    flex-grow: 1;
}

.catalog-product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.cat-prod-card {
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, border-color 0.2s;
}

.cat-prod-card:hover {
    border-color: #ddd;
    box-shadow: 0 5px 15px rgba(0,0,0,0.06);
}

.cpc-img-wrap {
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
}
.cpc-img-wrap img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.cpc-info { display: flex; flex-direction: column; flex-grow: 1; }

.cpc-rating-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}
.cpc-badge {
    background: #1f893e;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 3px;
}
.cpc-reviews { font-size: 11px; color: #777; }

.cpc-title {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
    margin-bottom: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 36px;
}
.cpc-title:hover { color: var(--krrimpex-red, #c8102e); }

.cpc-brand { font-size: 11px; color: #777; margin-bottom: 12px; }

.cpc-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
}
.cpc-price { font-size: 18px; font-weight: 800; color: #222; }
.cpc-mrp { font-size: 12px; color: #888; }
.cpc-discount { font-size: 12px; color: #1f893e; font-weight: 700; }

.cpc-delivery {
    margin-top: auto;
    font-size: 11px;
    color: #555;
    display: flex;
    align-items: center;
    gap: 5px;
    padding-top: 12px;
    border-top: 1px dashed #eee;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .catalog-layout { flex-direction: column; }
    .catalog-sidebar {     width: 100%;
    flex: auto;
    margin-bottom: 20px;
    position: relative;
    top: 0;}
	
}
@media (max-width: 576px) {
    .catalog-product-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
    .cat-prod-card { padding: 10px; }
    .cpc-img-wrap { height: 120px; }
    .cpc-price { font-size: 16px; }
}

/* ==========================================================================
   PAGINATION COMPONENT
   ========================================================================== */
.kr-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eaeaea;
}

.page-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    color: #444;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    transition: 0.2s ease;
}

.page-btn:hover {
    background: #f8f9fa;
    border-color: #bbb;
    color: var(--krrimpex-red, #c8102e);
}

.page-btn.active {
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
    border-color: var(--krrimpex-red, #c8102e);
}

.page-dots {
    color: #888;
    font-weight: 700;
    letter-spacing: 2px;
    padding: 0 5px;
}

/* ==========================================================================
   SHOP BY CATEGORIES SECTION (With Product Count)
   ========================================================================== */
.shop-by-cat-scroll {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 10px;
    scrollbar-width: thin;
    scrollbar-color: #ddd transparent;
}
.shop-by-cat-scroll::-webkit-scrollbar { height: 6px; }
.shop-by-cat-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 10px; }

.sbc-card {
    flex: 0 0 140px; /* Fixed width to match image */
    text-decoration: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    scroll-snap-align: start;
    transition: transform 0.2s ease;
}

.sbc-card:hover {
    transform: translateY(-4px);
}

.sbc-img-box {
    width: 100%;
    height: 140px;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
}

.sbc-img-box img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    mix-blend-mode: multiply; /* Helps remove white background on jpegs */
    margin-bottom: 15px; /* Pushes image up slightly so bar doesn't cover it */
}

.sbc-count-bar {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(90, 90, 90, 0.9); /* Dark grey matching image */
    color: #ffffff;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    padding: 6px 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
}

.sbc-name {
    font-size: 13px;
    font-weight: 700;
    color: #333;
    text-align: center;
    line-height: 1.3;
}

.sbc-card:hover .sbc-name {
    color: var(--krrimpex-red, #c8102e);
}

/* Mobile Adjustments */
@media (max-width: 576px) {
    .sbc-card { flex: 0 0 110px; }
    .sbc-img-box { height: 110px; }
    .sbc-name { font-size: 12px; }
    .sbc-count-bar { font-size: 11px; padding: 4px 0; }
}

/* ==========================================================================
   COUPONS MODAL & CARDS
   ========================================================================== */
.coupon-card {
    background: #fff;
    border-radius: 8px;
    display: flex;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid #e0e0e0;
    overflow: hidden;
}

.cc-left {
    padding: 15px;
    flex-grow: 1;
    border-right: 2px dashed #eaeaea;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cc-discount {
    font-size: 20px;
    font-weight: 800;
    color: #1f893e; /* Green */
    line-height: 1.2;
}

.cc-desc {
    font-size: 12px;
    color: #555;
    margin-top: 6px;
    line-height: 1.4;
}

.cc-right {
    padding: 15px;
    width: 130px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #fafafa;
}

.cc-code {
    font-size: 13px;
    font-weight: 700;
    color: #222;
    border: 1px dashed #ccc;
    padding: 6px 8px;
    border-radius: 4px;
    background: #fff;
    margin-bottom: 10px;
    width: 100%;
    text-align: center;
    text-transform: uppercase;
}

.cc-copy-btn {
    background: #ffebee; /* Light Red */
    color: var(--krrimpex-red, #c8102e);
    border: none;
    padding: 6px 10px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    transition: 0.2s ease;
}

.cc-copy-btn:hover {
    background: var(--krrimpex-red, #c8102e);
    color: #fff;
}

/* ==========================================================================
   CART - COUPON BLOCK
   ========================================================================== */
.cart-coupon-block {
    background: #fcfcfc;
    border: 1px dashed #dcdcdc;
    padding: 15px;
    border-radius: 6px;
    margin-bottom: 25px;
}
.cart-coupon-block h4 {
    font-size: 14px;
    margin-bottom: 10px;
    font-weight: 700;
    color: #333;
}
.coupon-input-group {
    display: flex;
    gap: 10px;
}
.coupon-input-group input {
    flex-grow: 1;
    border: 1px solid #ccc;
    padding: 10px 12px;
    border-radius: 4px;
    outline: none;
    text-transform: uppercase;
    font-size: 13px;
    color: #333;
}
.coupon-input-group input:focus {
    border-color: #555;
}
.coupon-input-group input:disabled {
    background: #e9ecef;
    color: #495057;
    border-color: #ced4da;
}
.btn-apply-coupon {
    background: #222;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}
.btn-apply-coupon:hover {
    background: var(--krrimpex-red, #c8102e);
}
.btn-remove-coupon {
    background: #dc3545;
    color: #fff;
    border: none;
    padding: 0 20px;
    font-weight: 700;
    font-size: 13px;
    border-radius: 4px;
    cursor: pointer;
}
.btn-remove-coupon:hover {
    background: #b02a37;
}