        /* CSS Variables for Consistent Design */
        :root {
            --primary-color: #03f4f8;
            --primary-dark: #02d8dc;
            --dark-blue: #062b3d;
            --light-blue: #5d5bdd;
            --success-color: #28a745;
            --warning-color: #ffc107;
            --danger-color: #dc3545;
            --light-gray: #f8f9fa;
            --medium-gray: #ececed;
            --dark-gray: #6c757d;
            --text-color: #333;
            --border-radius: 8px;
            --box-shadow: 0 2px 8px rgba(0,0,0,0.1);
            --transition: all 0.3s ease;
        }

        /* Base Styles */
        * {
            box-sizing: border-box;
            margin: 0;
            padding: 0;
        }

        body {
            padding-top: 140px;
            font-family: 'Poppins', Arial, sans-serif;
            background-color: var(--light-gray);
            color: var(--text-color);
            line-height: 1.6;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            /*margin-top: 2%;*/
        }

        /* Typography */
        h1, h2, h3, h4, h5, h6 {
            font-weight: 600;
            margin-bottom: 0.5rem;
        }

        /* Layout Components */
        .fixed-navbar {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 1050;
            background: var(--dark-blue);
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            padding: 10px 0;
            transition: var(--transition);
        }

        .navbar-container {
            display: flex;
            flex-wrap: wrap;
            justify-content: space-between;
            align-items: center;
            width: 100%;
            padding: 0 15px;
            max-width: 1200px;
            margin: 0 auto;
        }

        .navbar-brand-container {
            display: flex;
            align-items: center;
            flex: 0 0 auto;
            min-width: 120px;
        }

        .navbar-brand {
            font-weight: 700;
            font-size: clamp(18px, 2vw, 28px);
            color: var(--light-blue);
            text-decoration: none;
            white-space: nowrap;
        }

        .navbar-logo {
            height: 60px;
            width: 60px;
            margin-right: 8px;
            object-fit: contain;
        }

        .search-container-wrapper {
            flex: 1 1 auto;
            min-width: 150px;
            max-width: 700px;
            padding: 0 15px;
            margin: 8px 0;
            position: relative;
        }

        .search-container {
            position: relative;
            width: 100%;
        }

        .search-input {
            width: 100%;
            padding: 10px 45px 10px 15px;
            border-radius: 25px;
            border: 1px solid #ddd;
            font-size: 14px;
            background: #fff;
            transition: var(--transition);
        }

        .search-input:focus {
            border-color: var(--primary-color);
            box-shadow: 0 0 0 0.2rem rgba(3, 244, 248, 0.25);
            outline: none;
        }

        .search-button {
            position: absolute;
            right: 10px;
            top: 50%;
            transform: translateY(-50%);
            background: none;
            border: none;
            color: var(--dark-gray);
            cursor: pointer;
            padding: 5px;
        }

        .user-actions {
            display: flex;
            align-items: center;
            justify-content: flex-end;
            flex: 0 0 auto;
            gap: 12px;
        }

        .user-action-item {
            display: flex;
            align-items: center;
            color: white;
            text-decoration: none;
            font-size: 14px;
            transition: color 0.3s ease;
            white-space: nowrap;
            position: relative;
        }

        .user-action-item:hover {
            color: var(--primary-color);
        }

        .user-action-icon {
            font-size: 20px;
            margin-right: 5px;
        }

        /* Cart Badge */
        .cart-badge {
            position: absolute;
            top: -5px;
            right: -10px;
            background: #e63946;
            color: #fff;
            font-size: 12px;
            font-weight: bold;
            border-radius: 50%;
            padding: 3px 6px;
            line-height: 1;
        }

        /* Secondary Navbar */
         .secondary-navbar {
            background-color: #1b3148;
            padding: 10px 0;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: fixed;
            top: 80px;
            left: 0;
            right: 0;
            z-index: 1020;
            border-top: 1px solid rgba(255,255,255,0.1);
        }
        
        .secondary-navbar.shrink {
    top: 0;               /* moves inside main navbar */
    height: 40px;         /* shrinks height */
    padding: 5px 0;       
    font-size: 0.9rem;    /* optional smaller text */
}

        .secondary-navbar-container {
            display: flex;
            justify-content: space-between;
            align-items: center;
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 20px;
            flex-wrap: wrap;
            gap: 10px;
        }

        .secondary-brand-container {
            display: flex;
            align-items: center;
            gap: 10px;
            flex: 1;
            min-width: 0;
        }

        /* Icon Scroll Container */
        .icon-scroll-container {
            display: flex;
            overflow-x: auto;
            scrollbar-width: none;
            -ms-overflow-style: none;
            padding-bottom: 5px;
            width: 80%;
            flex: 1;
        }

        .icon-scroll-container::-webkit-scrollbar {
            display: none;
        }

        .icon-row {
            display: flex;
            flex-wrap: nowrap;
            gap: 2px;
            justify-content: flex-start;
            min-width: max-content;
            padding: 0 5px;
        }

        .icon-item {
            flex: 0 0 auto;
            text-align: center;
        }

        .icon-item a {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-decoration: none;
            color: #f3efef;
            transition: transform 0.3s ease, color 0.3s ease;
            width: 80px;
            padding: 5px;
        }

        .icon-item a:hover {
            transform: translateY(-3px);
            color: var(--primary-color);
        }

        .icon-item img {
            max-width: 50px;
            height: auto;
            border-radius: 8px;
            margin-bottom: 5px;
            object-fit: contain;
        }

        .icon-label {
            display: inline-block;    /* ensures wrapping happens */
            white-space: normal;      /* allow breaking on spaces */
            text-align: center;       /* center each line */
            font-size: 12px;          /* adjust as needed */
            line-height: 1.2;         /* spacing between lines */
            max-width: 60px;          /* optional: force width for wrapping */
            word-break: break-word;   /* fallback for long words */
        }

        .location-container {
            display: flex;
            align-items: center;
            gap: 8px;
            background-color: rgba(255,255,255,0.15);
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            transition: background-color 0.3s ease;
            color: white;
            white-space: nowrap;
            flex-shrink: 0;
            margin-left: auto;
        }

        .location-container:hover {
            background-color: rgba(255,255,255,0.25);
        }

        .location-icon {
            color: #ff6b6b;
            font-size: 18px;
            flex-shrink: 0;
        }

        .location-text {
            font-weight: 500;
            /* font-size: 14px; */
            font-size: 10px;
            overflow: hidden;
            text-overflow: ellipsis;
            /* max-width: 150px; */
            max-width: 300px;
        }

        /* Content Sections */
        .content-wrapper {
            flex: 1;
            padding-bottom: 20px;
        }

        .section-title {
            margin: 20px 0 15px;
            font-size: clamp(16px, 2vw, 20px);
            font-weight: 600;
            color: var(--text-color);
            padding-left: 15px;
            position: relative;
        }

        .section-title::after {
            content: '';
            position: absolute;
            left: 15px;
            bottom: -5px;
            width: 50px;
            height: 3px;
            background: var(--primary-color);
        }

        /* Product Grid */
        .products-grid {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
            gap: 15px;
            padding: 0 15px;
        }

        .product-card {
            position: relative;
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .product-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }
        
        /* OUT OF STOCK CARD DISABLE */
        .out-of-stock-card {
            pointer-events: none;  
            opacity: 0.5;       
            filter: grayscale(100%);/* color removed */
            cursor: not-allowed;
        }
        .out-of-stock-card::after {
            content: "OUT OF STOCK";
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            background: rgba(0,0,0,0.7);
            color: #fff;
            font-size: 10px;
            padding: 6px 10px;
            border-radius: 20px;
        }

        .product-badge {
            position: absolute;
            top: 10px;
            left: 10px;
            font-size: 12px;
            z-index: 1;
            padding: 3px 8px;
            border-radius: 4px;
            background-color: var(--success-color);
            color: white;
        }

        .product-image-container {
            position: relative;
            overflow: hidden;
            height: 0;
            padding-bottom: 100%;
            flex-shrink: 0;
        }

        .product-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: contain;
            padding: 15px;
            transition: transform 0.3s ease;
            background: white;
        }

        .product-card:hover .product-image {
            transform: scale(1.05);
        }

        .product-info {
            padding: 12px;
            text-align: center;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .product-price {
            font-weight: 600;
            color: var(--success-color);
            font-size: 16px;
            margin-bottom: 5px;
        }

        .product-original-price {
            text-decoration: line-through;
            color: var(--dark-gray);
            font-size: 12px;
            margin-left: 5px;
        }

        .product-title {
            font-size: 14px;
            margin: 5px 0;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 25px;
            line-height: 1.3;
            color: black;
        }

        .product-vendor {
            font-size: 12px;
            color: var(--dark-gray);
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
            margin-top: auto;
        }

        .product-rating {
            color: var(--warning-color);
            font-size: 12px;
            margin-bottom: 5px;
        }

        /* Product Actions */
        .product-actions {
            margin-top: 10px;
            display: flex;
            justify-content: center;
        }

        .add-btn {
            background-color: var(--primary-color);
            color: #000;
            border: none;
            border-radius: 20px;
            padding: 5px 15px;
            font-weight: 500;
            transition: var(--transition);
            cursor: pointer;

             position: relative;   /* allows top adjustment */
             bottom: 4px;           /* moves button 4px upwards */
        }

        .add-btn:hover {
            background-color: var(--primary-dark);
        }

        .quantity-controller {
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .quantity-controller button {
            width: 25px;
            height: 25px;
            border-radius: 50%;
            border: 1px solid #ddd;
            background: white;
            display: flex;
            align-items: center;
            justify-content: center;
            cursor: pointer;
            transition: var(--transition);
        }

        .quantity-controller button:hover {
            background: #f5f5f5;
        }

        .quantity {
            font-weight: 500;
            min-width: 20px;
            text-align: center;
        }

        /* Carousel */
        .online-shop-carousel {
            padding: 0 15px;
            margin-bottom: 20px;
        }

        .shop-item {
            background: #fff;
            border-radius: var(--border-radius);
            padding: 10px;
            margin: 0 5px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
            transition: var(--transition);
            display: flex;
            justify-content: center;
            align-items: center;
            height: 80px;
        }

        .shop-item:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .shop-item img {
            max-width: 100%;
            max-height: 60px;
            object-fit: contain;
        }

        .owl-nav {
            position: absolute;
            top: 50%;
            width: 100%;
            transform: translateY(-50%);
            display: flex;
            justify-content: space-between;
            pointer-events: none;
        }

        .owl-prev, .owl-next {
            visibility: hidden;
            /*position: relative;*/
            /*background: rgba(255,255,255,0.9) !important;*/
            /*border-radius: 50% !important;*/
            /*width: 30px;*/
            /*height: 30px;*/
            /*box-shadow: 0 2px 5px rgba(0,0,0,0.2);*/
            /*display: flex;*/
            /*align-items: center;*/
            /*justify-content: center;*/
            /*pointer-events: all;*/
            /*margin: 0 10px;*/
        }

        .owl-nav button span {
            font-size: 20px;
            line-height: 1;
        }

        /* Offers Carousel */
        #offersCarousel {
            margin: 20px 15px;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
        }

        .carousel-item {
            height: auto;
            padding: 15px 0;
        }

        .carousel-item .card {
            margin: 0 auto;
            max-width: 18rem;
        }

        /* Links */
        .see-all-link {
            display: block;
            padding: 12px;
            background: var(--medium-gray);
            border-radius: var(--border-radius);
            margin: 20px 15px 0;
            text-decoration: none;
            color: var(--text-color);
            transition: var(--transition);
            text-align: center;
            font-weight: 500;
        }

        .see-all-link:hover {
            background: #ddd;
            color: #000;
        }

        /* Modal */
        .pincode-modal .modal-content {
            border-radius: 10px;
            border: none;
        }

        .pincode-modal .modal-header {
            border-bottom: 1px solid #dee2e6;
            padding: 1rem;
        }

        .pincode-modal .modal-header .btn-close {
            margin: 0;
        }

        .pincode-modal .modal-body {
            padding: 1.5rem;
        }

        .pincode-input {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 5px;
            margin-bottom: 15px;
            font-size: 16px;
        }

        .pincode-btn {
            width: 100%;
            padding: 10px;
            background: var(--primary-color);
            border: none;
            border-radius: 5px;
            color: #000;
            font-weight: bold;
            transition: background 0.3s ease;
            cursor: pointer;
        }

        .pincode-btn:hover {
            background: var(--primary-dark);
        }

        /* Loading Spinner */
        .loading-spinner {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-color: rgba(0,0,0,0.5);
            z-index: 9999;
            justify-content: center;
            align-items: center;
        }

        .spinner {
            width: 20px;
            height: 20px;
            border: 5px solid #f3f3f3;
            border-top: 5px solid var(--primary-color);
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% { transform: rotate(0deg); }
            100% { transform: rotate(360deg); }
        }

        /* Search Results */
        .search-results-container {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            right: 0;
            background: white;
            border-radius: 0 0 8px 8px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
            z-index: 1000;
            max-height: 400px;
            overflow-y: auto;
        }

        .search-result-item {
            padding: 10px 15px;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            transition: background 0.2s;
        }

        .search-result-item:hover {
            background: #f8f9fa;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }

        .search-result-title {
            font-weight: 500;
            margin-bottom: 3px;
        }

        .search-result-category {
            font-size: 12px;
            color: var(--dark-gray);
        }

        .no-results {
            padding: 15px;
            text-align: center;
            color: var(--dark-gray);
        }

        /* Mobile Menu Toggle */
        .mobile-menu-toggle {
            display: none;
            background: none;
            border: none;
            color: white;
            font-size: 24px;
            margin-right: 10px;
            padding: 5px;
        }

        /* Footer */
        footer {
            background-color: var(--dark-blue);
            color: white;
            padding: 20px 0;
            margin-top: auto;
        }

        .footer-content {
            max-width: 1200px;
            margin: 0 auto;
            padding: 0 15px;
            text-align: center;
        }

        /* OFFERS CAROUSEL STYLES */
        .offers-container {
            padding: 0 15px;
            margin: 20px 0;
        }

        .offers-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 15px;
        }

        .offer-card {
            background: white;
            border-radius: var(--border-radius);
            overflow: hidden;
            box-shadow: var(--box-shadow);
            transition: var(--transition);
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .offer-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 5px 15px rgba(0,0,0,0.1);
        }

        .offer-image-container {
            position: relative;
            overflow: hidden;
            height: 0;
            padding-bottom: 60%;
            flex-shrink: 0;
        }

        .offer-image {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        .offer-info {
            padding: 15px;
            text-align: center;
            flex-grow: 1;
            display: flex;
            flex-direction: column;
            justify-content: space-between;
        }

        .offer-title {
            font-size: 16px;
            font-weight: 600;
            margin-bottom: 8px;
            display: -webkit-box;
            -webkit-line-clamp: 2;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 48px;
        }

        .offer-description {
            font-size: 14px;
            color: var(--dark-gray);
            margin-bottom: 10px;
            display: -webkit-box;
            -webkit-line-clamp: 3;
            -webkit-box-orient: vertical;
            overflow: hidden;
            text-overflow: ellipsis;
            min-height: 66px;
        }

        .offer-price {
            font-weight: 600;
            color: var(--success-color);
            font-size: 18px;
            margin-bottom: 5px;
        }

        .offer-original-price {
            text-decoration: line-through;
            color: var(--dark-gray);
            font-size: 14px;
            margin-left: 5px;
        }

        .offer-badge {
            position: absolute;
            top: 10px;
            right: 10px;
            background: var(--danger-color);
            color: white;
            padding: 5px 10px;
            border-radius: 4px;
            font-size: 12px;
            font-weight: bold;
        }

        /* Brand Center */
        .brand-center {
            -webkit-text-fill-color: #3e3cc9ff;
            -webkit-text-stroke-width: 0.2px;
            -webkit-text-stroke-color: #fffefeff;
        }

        /* Responsive Design */
        @media (min-width: 576px) {
            body {
                padding-top: 110px;
            }
            
            .navbar-container {
                flex-wrap: nowrap;
            }
            
            .search-container-wrapper {
                margin: 0 15px;
            }
            
            .secondary-navbar {
                top: 70px;
            }
            
            .icon-item a {
                flex-direction: row;
                width: auto;
                padding: 5px 10px;
            }
            
            .icon-item img {
                margin-right: 8px;
                margin-bottom: 0;
            }
        }

        @media (min-width: 768px) {
            .user-action-item span {
                display: inline;
            }
            
            .products-grid {
                grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
            }
        }

        @media (min-width: 992px) {
            .product-title {
                font-size: 15px;
            }
            
            .products-grid {
                gap: 20px;
            }
        }

        @media (max-width: 992px) {
            .secondary-navbar {
                /* top: 120px; */
                top: 75px;
            }
            
            .secondary-navbar-container {
                flex-direction: column;
                align-items: stretch;
                gap: 15px;
            }
            
            .secondary-brand-container {
                width: 100%;
            }
            
            .location-container {
                align-self: center;
                margin-left: 0;
                order: -1;
                width: 100%;
                justify-content: center;
                max-width: 280px;
            }
            
            .location-text {
                max-width: 200px;
            }
        }

        @media (max-width: 767px) {
            .icon-item {
                flex: 0 0 calc(33.333% - 10px);
                text-align: center;
            }

            .icon-item a {
                width: 100%;
            }

            .location-text {
                font-size: 13px;
            }

        }

        @media (max-width: 576px) {
            .navbar-logo {
                height: 45px;
                width: 45px;
            }

            .search-input {
                font-size: 13px;
                padding: 8px 40px 8px 12px;
            }

            .user-action-icon {
                margin-right: 0;
            }
        }

         /* Mobile and Small Device */
@media (max-width: 480px) {
    body {
        padding-top: 150px; /* make room for fixed navbar */
        margin-top: 30%;
    }
    
    /* Navbar container adjustments */
    .navbar-container {
        flex-direction: column;
        align-items: stretch;
        padding: 0 10px;
    }
    
    /* Top row: logo + user actions in same line */
    .navbar-top-row {
        display: flex;
        justify-content: space-between;
        align-items: center;
        width: 100%;
        order: 1;
        padding: 5px 0;
    }
    
    .navbar-brand-container {
        display: flex;
        align-items: center;
        flex: 1;
    }
    
    .navbar-brand {
        font-size: 20px;
        margin-right: 0;
        color: #fcfcfc;
        white-space: nowrap;
    }

    .navbar-logo {
        height: 40px;
        width: 40px;
        margin-right: 8px;
    }

    /* User action icons (cart, profile) */
     .user-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-left: auto; /* pushes icons to right edge */
  }
    
    .user-action-item {
        font-size: 18px;
        color: white;
    }

    /* Search container - full width on next line */
    .search-container-wrapper {
        width: 100%;
        order: 2;
        margin: 8px 0;
        padding: 0;
    }

    .search-input {
        width: 100%;
        padding: 10px 15px;
        font-size: 14px;
    }

    /* Secondary navbar position */
    .secondary-navbar {
        top: 120px;
        padding: 10px 0;
    }

    /* Product grid for small screens */
    /*.products-grid {*/
    /*    grid-template-columns: repeat(2, 1fr);*/
    /*    gap: 10px;*/
    /*    padding: 0 10px;*/
    /*}*/
    
       /* Card itself */
.product-card {
  border-radius: 8px;
  width: 100%;
  height: 100%;                 
}
    
    .product-price {
            font-weight: 600;
            color: var(--success-color);
            font-size: 11px;
            margin-bottom: 5px;
        }

        .product-original-price {
            text-decoration: line-through;
            color: var(--dark-gray);
            font-size: 11px;
            margin-left: 5px;
        }
    
    
    .product-badge {
  background-color: #28a745;   /* your badge color */
  color: #fff;
  font-size: 0.65rem;          /* smaller text */
  padding: 3px 6px;            /* tighter background */
  border-radius: 4px;          /* small rounded corners */
  line-height: 1;              /* tighter height */
  display: inline-block;       /* shrink to content */
}

.product-title {
  font-size: 9px;          /* small font */
  font-weight: 600;         /* semi-bold */
  color: #0f1002ff;           
}
    
    .products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 10px 5px; /* added top padding */
  }

  /* make the product image bigger */
 .products-grid .product-image {
    width: 110%;
    height: auto;
    max-height: 130px; /* increase to whatever looks good */
    object-fit: cover;
    object-fit: contain;
    border-radius: 10px;
    padding-top: 15px; /* padding above image */
  }

    /* Section title */
    .section-title {
        padding-left: 10px;
        font-size: 18px;
        margin: 15px 0 10px;
    }

    .section-title::after {
        left: 10px;
    }

    /* Icons (categories, etc.) */
    .icon-item {
        flex: 0 0 calc(20% - 8px);
        box-sizing: border-box;
        text-align: center;
    }

    .icon-item img {
        max-width: 40px;
        height: auto;
        border-radius: 8px;
        margin-bottom: 2px;
    }

    /* Location text */
    .location-container {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 6px 10px;
    }

    .location-text {
        font-size: 12px;
    }

    /* Container padding */
    /*.container-fluid {*/
    /*    padding-top: 100px;*/
    /*}*/

    .offcanvas-body {
        padding-top: 80px;
    }
    
    /* Hide mobile menu toggle if not needed */
    .mobile-menu-toggle {
        display: none;
    }
    
    /* Adjust carousel for mobile */
    .online-shop-carousel .owl-stage {
        display: flex;
    }
    
    .shop-item {
        height: 70px;
        margin: 0 5px;
    }
    
    .shop-item img {
        max-height: 50px;
    }
    
}

        /* Mobile view - 1 item per row */
        @media (max-width: 768px) {
            .offers-grid {
                grid-template-columns: 1fr;
            }
        }

        /* Tablet view - 2 items per row */
        @media (min-width: 769px) and (max-width: 1024px) {
            .offers-grid {
                grid-template-columns: repeat(2, 1fr);
            }
        }

        /* Accessibility improvements */
        @media (prefers-reduced-motion: reduce) {
            * {
                animation-duration: 0.01ms !important;
                animation-iteration-count: 1 !important;
                transition-duration: 0.01ms !important;
            }
        }

        /* Focus styles for accessibility */
        button:focus,
        input:focus,
        a:focus {
            outline: 2px solid var(--primary-color);
            outline-offset: 2px;
        }

        /* High contrast mode support */
        @media (prefers-contrast: high) {
            :root {
                --primary-color: #0000ff;
                --primary-dark: #0000cc;
                --dark-blue: #000000;
                --light-blue: #0000ff;
                --success-color: #008000;
                --warning-color: #ffa500;
                --danger-color: #ff0000;
                --light-gray: #ffffff;
                --medium-gray: #d3d3d3;
                --dark-gray: #696969;
                --text-color: #000000;
            }
            
            .product-card {
                border: 1px solid #000;
            }
        }

        .wrap-text {
  font-size: 0.85rem;
  line-height: 1.2;
}

.imgsize {
  max-width: 80px;
  height: auto;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 8px; /* optional */
}

.imgsize:hover {
  transform: scale(1.3); /* slightly enlarge */
  box-shadow: 0 4px 12px rgba(0,0,0,0.15); /* add shadow */
  cursor: pointer; /* show hand cursor */
}


/* Navheader icons under style */
.carousel-inner img {
  transition: transform 0.4s ease;
}
.carousel-inner img:hover {
  transform: scale(1.05);
}
.carousel-indicators [data-bs-target] {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

/* === Responsive Carousel Styling === */

#topSection {
  overflow: hidden;
  margin: 1rem 0;
}

#topSection .carousel-item {
  height: 260px;
  transition: transform 0.5s ease-in-out;
}

#topSection .carousel-item > a > div {
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row;
  border-radius: 20px;
  overflow: hidden;
}

#topSection .carousel-item h3 {
  font-size: 1.6rem;
}

#topSection .carousel-item p {
  font-size: 1rem;
  margin-bottom: 1rem;
}

#topSection .carousel-inner img {
  max-height: 200px;
  width: auto;
  object-fit: contain;
  transition: transform 0.4s ease;
}

#topSection .carousel-inner img:hover {
  transform: scale(1.05);
}

@media (max-width: 768px) {
  #topSection .carousel-item {
    height: auto;
    margin-top: -20px;
  }

  #topSection .carousel-item > a > div {
    flex-direction: column;
    text-align: center;
    padding: 1.5rem 1rem;
  }

  #topSection .carousel-inner img {
    max-height: 160px;
    margin-top: 1rem;
  }

  #topSection .carousel-item h3 {
    font-size: 1.3rem;
  }

  #topSection .carousel-item p {
    font-size: 0.9rem;
  }

  #topSection .btn {
    padding: 0.4rem 1rem;
    font-size: 0.9rem;
  }
}
