:root {
    --primary-color: #ff6b6b;
    --secondary-color: #4ecdc4;
    --accent-color: #ffe66d;
    --dark-color: #2d3436;
    --light-color: #f8f9fa;
    --gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f5f5f5;
    color: var(--dark-color);
}

/* Top Bar */
.top-bar {
    background: var(--gradient);
    color: #fff;
    padding: 8px 0;
    font-size: 13px;
}

.top-bar a {
    color: #fff;
    text-decoration: none;
}

.top-bar a:hover {
    text-decoration: underline;
}

/* Main Header */
.main-header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
    text-decoration: none;
}

.logo span {
    color: var(--secondary-color);
}

.logo img {
    display: inline-block;
    vertical-align: middle;
}

.logo .site-name-text {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    display: inline-block;
    vertical-align: middle;
    margin-left: 8px;
}

/* Search Bar */
.search-bar {
    position: relative;
    flex: 1;
    max-width: 600px;
}

.search-bar input {
    width: 100%;
    padding: 12px 90px 12px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 25px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-bar input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 107, 0.1);
}

.search-bar button:not(.voice-search):not(.image-search-btn) {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
    z-index: 2;
}

.search-bar .voice-search {
    position: absolute;
    right: 50px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    z-index: 2;
}

.search-bar .image-search-btn {
    position: absolute;
    right: 90px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #666;
    cursor: pointer;
    font-size: 18px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    z-index: 3;
    pointer-events: auto;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.3s ease;
}

.search-bar .image-search-btn:hover {
    color: var(--primary-color);
    background: rgba(102, 126, 234, 0.1);
}

/* Header Icons */
.header-icons {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header-icon {
    position: relative;
    text-decoration: none;
    color: var(--dark-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    font-size: 12px;
}

.header-icon i {
    font-size: 22px;
    margin-bottom: 3px;
}

.header-icon .badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    padding: 2px 6px;
    border-radius: 10px;
}

.header-icon:hover {
    color: var(--primary-color);
}

/* Header Coin Balance */
.header-coin-balance .coin-icon-wrap {
    display: flex;
    align-items: center;
    gap: 4px;
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    transition: transform 0.2s ease;
}

.header-coin-balance .coin-icon-wrap i {
    font-size: 14px;
    margin-bottom: 0;
}

.header-coin-balance .coin-count {
    line-height: 1;
}

.header-coin-balance:hover .coin-icon-wrap {
    transform: scale(1.05);
}

.header-coin-balance:hover {
    color: var(--dark-color);
}

/* Mega Menu */
.mega-menu-wrapper {
    background: #fff;
    border-bottom: 1px solid #eee;
}

.mega-menu {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
    /* NOTE: do NOT set overflow-x here — it forces overflow-y to auto
       (CSS spec) and clips the absolutely-positioned .mega-dropdown
       that extends below the menu on hover. Scrolling is enabled only
       on mobile via the @media block below. */
}

.mega-menu > li {
    position: relative;
    flex-shrink: 0;
}

.mega-menu > li > a {
    display: block;
    padding: 15px 20px;
    color: var(--dark-color);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: all 0.3s ease;
}

.mega-menu > li:hover > a {
    color: var(--primary-color);
    background: #f8f9fa;
}

.mega-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 250px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    border-radius: 0 0 10px 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.mega-menu > li:hover .mega-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-dropdown a {
    display: block;
    padding: 12px 20px;
    color: #666;
    text-decoration: none;
    font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s ease;
}

.mega-dropdown a:hover {
    background: #f8f9fa;
    color: var(--primary-color);
    padding-left: 25px;
}

/* Product Cards - Meesho Style */
.product-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.product-card .product-image {
    position: relative;
    padding-top: 100%;
    overflow: hidden;
    background: #f9f9f9;
}

.product-card .product-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 0;
    transition: transform 0.3s ease;
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.product-card .discount-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: var(--primary-color);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 600;
}

/* Out of Stock Overlay */
.product-card.out-of-stock .product-image img {
    opacity: 0.5;
    filter: grayscale(30%);
}

/* Product Card Video */
.product-card-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    pointer-events: none;
}
.product-card:hover .product-card-video {
    z-index: 3;
}
.product-card .product-image a {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
.product-card .out-of-stock-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
}
.product-card .out-of-stock-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 4px;
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.4);
}

.product-card .gift-float-wrapper {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.product-card .gift-float-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    animation: giftRotate 4s linear infinite;
}
.product-card .gift-float-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.product-card .gift-float-icon {
    font-size: 22px;
    color: #ff6b6b;
    text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}
.product-card .gift-float-label {
    background: linear-gradient(135deg, #ff6b6b, #ee5a24);
    color: #fff;
    font-size: 8px;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 8px;
    margin-top: 3px;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}
@keyframes giftRotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.product-card .gift-float-circle:hover {
    animation-play-state: paused;
    transform: scale(1.2);
    transition: transform 0.3s;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.product-card .wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #999;
    transition: all 0.3s ease;
    opacity: 0;
}

.product-card:hover .wishlist-btn {
    opacity: 1;
}

.product-card .wishlist-btn:hover {
    background: #fff;
    color: #e91e63;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}

.product-card .wishlist-btn.active {
    background: #e91e63;
    color: #fff;
    opacity: 1;
}

.product-card .product-info {
    padding: 15px;
}

.product-card .product-title {
    font-size: 14px;
    font-weight: 500;
    color: var(--dark-color);
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-decoration: none;
}

.product-card .product-title:hover {
    color: var(--primary-color);
}

.product-card .product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.product-card .current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--dark-color);
}

.product-card .original-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.product-card .discount-percent {
    font-size: 12px;
    color: #28a745;
    font-weight: 600;
}

.product-card .prepaid-discount {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 11px;
    margin-bottom: 10px;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    margin-bottom: 10px;
}

.product-card .product-rating .rating-badge {
    background: #388e3c;
    color: #fff;
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

.product-card .product-rating .rating-badge i {
    font-size: 10px;
}

.product-card .product-rating .review-count {
    color: #878787;
    font-size: 12px;
}

.product-card .product-actions {
    display: flex;
    gap: 10px;
}

.product-card .btn-add-cart,
.product-card .btn-buy-now {
    flex: 1;
    padding: 10px;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.product-card .btn-add-cart {
    background: #f0f0f0;
    color: var(--dark-color);
}

.product-card .btn-add-cart:hover {
    background: #e0e0e0;
}

.product-card .btn-buy-now {
    background: var(--gradient);
    color: #fff;
}

.product-card .btn-buy-now:hover {
    opacity: 0.9;
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
}

.section-header h2 {
    font-size: 24px;
    font-weight: 700;
    position: relative;
    padding-left: 15px;
}

.section-header h2::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 4px;
    height: 25px;
    background: var(--gradient);
    border-radius: 2px;
}

.section-header .view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.section-header .view-all:hover {
    text-decoration: underline;
}

/* Banner Slider */
.banner-slider {
    border-radius: 15px;
    overflow: hidden;
}

.banner-slider img {
    width: 100%;
    height: auto;
}

/* Category Cards */
.category-card {
    text-align: center;
    padding: 20px;
    background: #fff;
    border-radius: 15px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--dark-color);
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-card img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 50%;
    margin-bottom: 15px;
}

.category-card h5 {
    font-size: 14px;
    font-weight: 600;
    margin: 0;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: #25d366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 30px;
    box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    color: #fff;
}

/* Footer */
.footer {
    background: linear-gradient(180deg, #1a1a2e 0%, #0f3460 100%);
    color: #e0e0e0;
    padding: 60px 0 20px;
    margin-top: 50px;
}

.footer .footer-brand {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #fff;
}

.footer .footer-brand::after {
    display: none;
}

.footer .footer-desc {
    color: #c0c0d0;
    font-size: 14px;
    line-height: 1.6;
}

.footer h5 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #fff;
    position: relative;
    padding-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.footer h5::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 35px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 3px;
}

.footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer ul li {
    margin-bottom: 12px;
    font-size: 14px;
}

.footer ul li a {
    color: #c0c0d0;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.footer ul li a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer ul li i {
    color: var(--primary-color);
    font-size: 13px;
    margin-right: 8px;
}

.footer .footer-contact li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 14px;
}

.footer .footer-contact li i {
    margin-top: 4px;
    flex-shrink: 0;
}

.footer .footer-contact li a {
    color: #c0c0d0;
}

.footer .footer-contact li a:hover {
    color: var(--primary-color);
    padding-left: 0;
}

.footer .footer-address {
    color: #c0c0d0;
    line-height: 1.5;
}

.footer .footer-address span {
    display: inline-block;
}

.footer .social-links {
    display: flex;
    gap: 12px;
}

.footer .social-links a {
    width: 38px;
    height: 38px;
    background: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    transition: all 0.3s ease;
    font-size: 15px;
}

.footer .social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
    text-align: center;
    color: #9090a0;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 991px) {
    .mega-menu-wrapper {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
    }

    .mega-menu-wrapper::-webkit-scrollbar {
        height: 4px;
    }

    .mega-menu-wrapper::-webkit-scrollbar-thumb {
        background: #ccc;
        border-radius: 2px;
    }

    /* On mobile, hover dropdowns don't work — show subcategories inline
       as a collapsible list under each parent category. */
    .mega-dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        min-width: 0;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.3s ease;
    }

    .mega-menu > li.open .mega-dropdown {
        max-height: 500px;
    }

    .mega-menu > li > a {
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
    }

    /* Hide the desktop search bar inside the header on mobile */
    .main-header .search-bar {
        display: none;
    }

    /* But keep the mobile search bar (outside .main-header) visible */
    .d-lg-none > .search-bar,
    .d-lg-none .search-bar {
        display: block;
    }

    .header-icons {
        gap: 15px;
    }
}

/* Toastr override */
.toast {
    font-family: 'Poppins', sans-serif !important;
}

/* Compare table */
.compare-table th, .compare-table td {
    vertical-align: middle;
    text-align: center;
}
.compare-table th:first-child, .compare-table td:first-child {
    text-align: left;
}
.compare-product-header {
    background: #fff;
}

/* Gift animations */
@keyframes giftFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
}
@keyframes giftRotate {
    0% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.1); }
    100% { transform: rotate(360deg) scale(1); }
}
.gift-overlay {
    animation: giftFloat 3s ease-in-out infinite;
}

/* Flash sale countdown */
.countdown-timer {
    display: flex;
    gap: 10px;
    justify-content: center;
}
.countdown-timer .timer-box {
    background: var(--dark-color);
    color: #fff;
    padding: 10px 15px;
    border-radius: 8px;
    text-align: center;
    min-width: 60px;
}
.countdown-timer .timer-box .time {
    font-size: 20px;
    font-weight: 700;
    display: block;
}
.countdown-timer .timer-box .label {
    font-size: 10px;
    text-transform: uppercase;
}

/* Order tracking timeline */
.tracking-timeline {
    position: relative;
    padding: 20px 0;
}
.tracking-timeline::before {
    content: '';
    position: absolute;
    left: 20px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: #e0e0e0;
}
.tracking-item {
    position: relative;
    padding-left: 50px;
    margin-bottom: 30px;
}
.tracking-item::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 0;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #e0e0e0;
    border: 2px solid #fff;
}
.tracking-item.active::before {
    background: var(--primary-color);
}
.tracking-item.completed::before {
    background: #28a745;
}

/* Product detail gallery */
.thumbnail-img.active {
    border-color: #667eea !important;
}
.variant-btn.active {
    background: #667eea;
    color: white;
}

/* Loading spinner */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
}

/* Main Content */
main {
    min-height: 500px;
}

/* Section spacing */
section {
    background: #f5f5f5;
}

section.bg-white {
    background: #fff;
}

/* Product Slider (Swiper) */
.product-slider {
    padding: 10px 5px 20px;
}

.product-slider .swiper-slide {
    width: auto;
}

.product-slider .swiper-button-next,
.product-slider .swiper-button-prev {
    color: var(--primary-color);
    background: #fff;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.product-slider .swiper-button-next::after,
.product-slider .swiper-button-prev::after {
    font-size: 16px;
    font-weight: 700;
}

/* Banner Slider */
.banner-slider {
    border-radius: 15px;
    overflow: hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.banner-slider::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.banner-slider .swiper-wrapper {
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.banner-slider .swiper-wrapper::-webkit-scrollbar {
    display: none !important;
    width: 0 !important;
    height: 0 !important;
}

.banner-slider .swiper-slide {
    text-align: center;
}

.banner-slider .swiper-slide img,
.banner-slider .banner-img {
    width: 100%;
    height: 300px;
    display: block;
    object-fit: cover;
    border-radius: 15px;
}

.banner-slider .swiper-button-next,
.banner-slider .swiper-button-prev {
    display: none !important;
}

.banner-slider .swiper-pagination {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex !important;
    justify-content: center;
    gap: 6px;
}

.banner-slider .swiper-pagination-bullet {
    display: inline-block !important;
    width: 10px;
    height: 10px;
    background: rgba(255,255,255,0.7);
    opacity: 1;
    border-radius: 50%;
    transition: all 0.3s ease;
    cursor: pointer;
}

.banner-slider .swiper-pagination-bullet-active {
    background: var(--primary-color);
    width: 24px;
    border-radius: 5px;
}

.banner-slider .swiper-scrollbar,
.banner-slider .swiper-scrollbar-drag,
.swiper-scrollbar.banner-slider {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* Feature Items */
.feature-item {
    padding: 20px;
    border-radius: 15px;
    transition: all 0.3s ease;
}

.feature-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
}

.feature-item h5 {
    font-weight: 600;
    margin-bottom: 5px;
}

/* Payment Methods */
.payment-methods {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.payment-methods img {
    display: inline-block;
}

/* Search Suggestions */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none;
}

.search-suggestions.active {
    display: block;
}

.search-suggestion-item {
    display: flex;
    align-items: center;
    padding: 10px 20px;
    text-decoration: none;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.search-suggestion-item:hover {
    background: #f8f9fa;
}

.search-suggestion-item img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 12px;
}

.search-suggestion-item .suggestion-info {
    flex: 1;
}

.search-suggestion-item .suggestion-name {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 2px;
}

.search-suggestion-item .suggestion-price {
    font-size: 13px;
    color: var(--primary-color);
    font-weight: 600;
}

/* Flash Sale Section */
.flash-timer {
    display: inline-block;
}

/* ========================================
   Video Reels Section
   ======================================== */
.video-reels-section {
    background: #f8f9fa;
}

.video-reels-slider {
    position: relative;
    overflow: hidden;
}

.video-reels-wrapper {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding: 10px 5px;
}

.video-reels-wrapper::-webkit-scrollbar {
    display: none;
}

.video-reel-card {
    flex: 0 0 280px;
    min-width: 280px;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
}

.video-reel-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.video-reel-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.video-reel-media {
    position: relative;
    aspect-ratio: 9/16;
    background: #000;
    overflow: hidden;
}

.reel-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-discount-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #ff4444 0%, #cc0000 100%);
    color: #fff;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(255,68,68,0.4);
}

.reel-views-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 5px 10px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(5px);
}

.reel-views-badge i {
    font-size: 10px;
}

.video-reel-info {
    padding: 12px;
    background: #fff;
}

.reel-title {
    font-size: 13px;
    font-weight: 600;
    color: var(--dark-color);
    margin: 0 0 8px 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.3;
}

.reel-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.reel-current-price {
    font-size: 14px;
    font-weight: 700;
    color: var(--dark-color);
}

.reel-compare-price {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
}

.reel-discount-text {
    font-size: 12px;
    color: #388e3c;
    font-weight: 600;
}

.reel-prepaid {
    background: #e8f5e9;
    color: #2e7d32;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 11px;
    margin-top: 8px;
    font-weight: 500;
}

.reel-prepaid i {
    color: #ff9800;
    margin-right: 4px;
}

/* Video Reel Popup */
.reel-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.85);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.reel-popup-container {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    max-width: 400px;
    width: 100%;
    position: relative;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}

.reel-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.reel-popup-close:hover {
    background: rgba(0,0,0,0.9);
}

.reel-popup-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 9/16;
    max-height: 70vh;
    background: #000;
}

.reel-popup-video-wrapper video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.reel-sound-btn {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(0,0,0,0.6);
    border: none;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
}

.reel-sound-btn:hover {
    background: rgba(0,0,0,0.9);
}

.reel-popup-info {
    padding: 16px;
}

.reel-popup-info h5 {
    font-size: 15px;
    font-weight: 600;
    color: #212121;
    margin: 0 0 10px 0;
    line-height: 1.4;
}

.reel-popup-price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.reel-popup-price {
    font-size: 20px;
    font-weight: 700;
    color: #212121;
}

.reel-popup-compare-price {
    font-size: 14px;
    color: #999;
    text-decoration: line-through;
}

.reel-popup-discount {
    font-size: 14px;
    color: #388e3c;
    font-weight: 600;
}

.reel-popup-buttons {
    display: flex;
    gap: 10px;
}

.reel-popup-btn {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: opacity 0.3s;
}

.reel-popup-btn:hover {
    opacity: 0.9;
}

.reel-add-cart-btn {
    background: #fff;
    color: #e91e63;
    border: 1.5px solid #e91e63;
}

.reel-buy-now-btn {
    background: #e91e63;
    color: #fff;
}

@media (max-width: 768px) {
    .reel-popup-container {
        max-width: 320px;
    }
    
    .reel-popup-video-wrapper {
        max-height: 60vh;
    }
    
    .reel-popup-info h5 {
        font-size: 14px;
    }
    
    .reel-popup-price {
        font-size: 18px;
    }
    
    .reel-popup-btn {
        font-size: 13px;
        padding: 10px;
    }
}

/* Reel Navigation Buttons */
.reel-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    border: none;
    box-shadow: 0 2px 10px rgba(0,0,0,0.15);
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--dark-color);
    transition: all 0.3s;
}

.reel-nav-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.reel-nav-prev {
    left: 10px;
}

.reel-nav-next {
    right: 10px;
}

/* Video autoplay on hover */
.video-reel-card .reel-video {
    opacity: 0.9;
}

.video-reel-card:hover .reel-video {
    opacity: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .video-reel-card {
        flex: 0 0 180px;
        min-width: 180px;
    }
    
    .reel-nav-btn {
        display: none;
    }
    
    .reel-discount-badge {
        padding: 4px 10px;
        font-size: 10px;
    }
    
    .reel-views-badge {
        padding: 4px 8px;
        font-size: 10px;
    }
    
    .reel-title {
        font-size: 12px;
    }
    
    .reel-current-price {
        font-size: 13px;
    }
}

/* Product card height fix */
.product-card {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.product-card .product-info {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-card .product-actions {
    margin-top: auto;
}

/* Container max-width */
.container {
    max-width: 1400px;
}

/* Footer payment methods spacing */
.footer .footer-we-accept {
    color: #c0c0d0;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer .payment-methods {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
}

.footer .payment-methods img {
    background: #fff;
    border-radius: 6px;
    padding: 4px 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    transition: transform 0.3s ease;
}

.footer .payment-methods img:hover {
    transform: translateY(-3px);
}

/* Map container */
.map-container {
    margin-top: 20px;
    border: 1px solid #eee;
    position: relative;
    width: 100%;
}

.map-container iframe {
    width: 100%;
    height: 250px;
    border: 0;
    display: block;
}

/* Image Search */
.image-search-banner {
    background: linear-gradient(135deg, #f0f4ff 0%, #e8ecff 100%);
    border-radius: 12px;
    padding: 15px 20px;
    border: 1px solid #d0d8ff;
}

.image-search-preview {
    width: 50px;
    height: 50px;
    border-radius: 10px;
    border: 2px solid #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
    flex-shrink: 0;
}

/* Responsive product grid */
@media (max-width: 575px) {
    .product-card .product-image {
        padding-top: 120%;
    }

    .product-card .product-title {
        font-size: 13px;
    }

    .product-card .current-price {
        font-size: 16px;
    }

    .header-icons {
        gap: 12px;
    }

    .header-icon span {
        display: none;
    }

    .header-icon i {
        font-size: 20px;
    }
}

/* =====================================================================
   FULL RESPONSIVE OPTIMIZATION (Udyamsales.com)
   - No horizontal scrolling on any page
   - Sticky bottom mobile navigation
   - Amazon/Flipkart/Meesho style clean modern UI
   - Accessible: readable fonts, proper button sizes, good contrast
   - Smooth animations, lazy-loaded images
   - Existing functionality untouched
   ===================================================================== */

:root {
    --us-bottom-nav-height: 60px;
    --us-touch-target: 44px;
    --us-ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Prevent horizontal scroll globally */
html, body {
    overflow-x: hidden;
    max-width: 100%;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

/* Ensure no element forces horizontal overflow */
img, video, iframe, svg, canvas {
    max-width: 100%;
    height: auto;
}

/* Better base typography & readability */
body {
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

/* Accessible focus styles */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
    outline: 3px solid rgba(102, 126, 234, 0.5);
    outline-offset: 2px;
    border-radius: 4px;
}

/* Touch-friendly buttons (min 44px target) */
.btn,
.header-icon,
.product-card .btn-add-cart,
.product-card .btn-buy-now,
.product-card .wishlist-btn {
    min-height: var(--us-touch-target);
    min-width: var(--us-touch-target);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.product-card .wishlist-btn {
    min-width: 36px;
    min-height: 36px;
}

/* Smooth scroll */
html {
    scroll-behavior: smooth;
}

/* Respect reduced motion preference */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.001ms !important;
        scroll-behavior: auto !important;
    }
}

/* Lazy image fade-in (progressive enhancement - images visible by default) */
img[loading="lazy"],
.us-lazy {
    transition: opacity 0.4s var(--us-ease);
}
/* Only hide if JS explicitly marks it as pending load */
.us-lazy.us-lazy-pending {
    opacity: 0;
}
.us-lazy.us-lazy-pending.loaded,
img.loaded {
    opacity: 1;
}

/* ===== Sticky Bottom Mobile Navigation ===== */
.us-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: var(--us-bottom-nav-height);
    background: #ffffff;
    border-top: 1px solid #e9e9e9;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: stretch;
    justify-content: space-around;
    z-index: 1050;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    display: none;
}

.us-bottom-nav__item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    color: #555;
    text-decoration: none;
    font-size: 11px;
    font-weight: 500;
    line-height: 1;
    position: relative;
    transition: color 0.2s var(--us-ease);
    padding: 6px 2px;
    min-height: var(--us-touch-target);
}

.us-bottom-nav__item i {
    font-size: 20px;
    transition: transform 0.2s var(--us-ease);
}

.us-bottom-nav__item.active {
    color: var(--primary-color);
}

.us-bottom-nav__item.active i {
    transform: translateY(-2px);
}

.us-bottom-nav__item:hover {
    color: var(--primary-color);
}

.us-bottom-nav__badge {
    position: absolute;
    top: 4px;
    right: 50%;
    transform: translateX(18px);
    background: var(--primary-color);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Move WhatsApp float above bottom nav on mobile */
.whatsapp-float {
    bottom: calc(30px + var(--us-bottom-nav-height));
}

/* ===== Responsive Header ===== */
.main-header .container {
    padding-left: 12px;
    padding-right: 12px;
}

.logo img {
    max-height: 32px !important;
    max-width: 120px !important;
}
.logo .site-name-text {
    font-size: 16px;
}

/* Top bar: hide secondary info on very small screens */
@media (max-width: 575px) {
    .top-bar .col-md-6:first-child {
        display: none;
    }
    .top-bar .col-md-6.text-end {
        text-align: center !important;
        font-size: 12px;
    }
    .top-bar .me-3 {
        margin-right: 0.5rem !important;
    }
}

/* Header icons: keep compact on mobile, always show cart */
@media (max-width: 991px) {
    .header-icons {
        gap: 14px;
    }
    .header-icon {
        font-size: 11px;
    }
    .header-icon i {
        font-size: 20px;
    }
    /* Hide wishlist text label on tablet, keep icon */
    .header-icon span {
        display: none;
    }
}

/* Mobile search bar tweaks */
.d-lg-none.bg-white .search-bar input {
    padding: 12px 50px 12px 18px;
    font-size: 16px; /* prevents iOS zoom */
}
.d-lg-none.bg-white {
    padding: 10px 12px !important;
}

/* ===== Product Cards / Grids ===== */
.product-card {
    border-radius: 10px;
}
.product-card .product-info {
    padding: 12px;
}
.product-card .product-title {
    font-size: 13px;
    line-height: 1.35;
}
.product-card .current-price {
    font-size: 16px;
}
.product-card .btn-add-cart,
.product-card .btn-buy-now {
    padding: 9px 8px;
    font-size: 12px;
}

/* Always show wishlist button on touch devices (no hover) */
@media (hover: none) {
    .product-card .wishlist-btn {
        opacity: 1;
    }
    .product-card:hover {
        transform: none;
    }
    .product-card:hover .product-image img {
        transform: none;
    }
}

/* Section header responsive */
@media (max-width: 767px) {
    .section-header h2 {
        font-size: 19px;
    }
    .section-header {
        margin-bottom: 15px;
    }
}

/* Countdown timer responsive */
@media (max-width: 575px) {
    .countdown-timer .timer-box {
        min-width: 48px;
        padding: 8px 10px;
    }
    .countdown-timer .timer-box .time {
        font-size: 16px;
    }
    .countdown-timer {
        gap: 6px;
    }
}

/* ===== Product Detail Page ===== */
.product-detail-gallery,
.product-detail-info {
    width: 100%;
}
@media (max-width: 767px) {
    .product-detail-gallery .main-image img {
        width: 100%;
        height: auto;
    }
    .thumbnail-img {
        width: 56px !important;
        height: 56px !important;
    }
}

/* Variant buttons touch friendly */
.variant-btn {
    min-height: 40px;
    min-width: 44px;
    padding: 8px 14px;
    margin: 4px;
}

/* ===== Cart / Checkout / Account ===== */
@media (max-width: 767px) {
    .cart-item,
    .checkout-item {
        flex-wrap: wrap;
        gap: 10px;
    }
    .cart-item img,
    .checkout-item img {
        width: 70px;
        height: 70px;
    }
}

/* Order summary sticky on desktop, normal flow on mobile */
.order-summary-sticky {
    position: sticky;
    top: 80px;
}
@media (max-width: 991px) {
    .order-summary-sticky {
        position: static;
    }
}

/* Forms: prevent iOS zoom, larger inputs */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
input[type="number"],
input[type="url"],
select,
textarea {
    font-size: 16px;
    max-width: 100%;
}
@media (max-width: 575px) {
    .form-control,
    .form-select {
        font-size: 16px;
        padding: 10px 12px;
    }
    .btn {
        padding: 10px 16px;
        font-size: 15px;
    }
}

/* ===== Tables -> Mobile-friendly cards (customer site) ===== */
.us-table-card thead {
    display: none;
}
.us-table-card,
.us-table-card tbody,
.us-table-card tr,
.us-table-card td {
    display: block;
    width: 100%;
}
.us-table-card tr {
    background: #fff;
    border-radius: 10px;
    margin-bottom: 12px;
    padding: 8px 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}
.us-table-card td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    text-align: right;
}
.us-table-card td:last-child {
    border-bottom: none;
}
.us-table-card td::before {
    content: attr(data-label);
    font-weight: 600;
    color: #555;
    text-align: left;
    flex-shrink: 0;
}
@media (min-width: 768px) {
    .us-table-card,
    .us-table-card thead,
    .us-table-card tbody,
    .us-table-card tr,
    .us-table-card th,
    .us-table-card td {
        display: revert;
        width: auto;
    }
    .us-table-card td {
        text-align: left;
    }
    .us-table-card td::before {
        content: none;
    }
    .us-table-card tr {
        background: transparent;
        box-shadow: none;
        border-radius: 0;
        margin-bottom: 0;
        padding: 0;
    }
}

/* Compare table: horizontal scroll wrapper */
.compare-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.compare-table-wrap .compare-table {
    min-width: 600px;
}

/* ===== Footer ===== */
@media (max-width: 767px) {
    .footer {
        padding: 40px 0 20px;
        margin-top: 30px;
    }
    .footer h5 {
        font-size: 14px;
        margin-bottom: 12px;
        margin-top: 8px;
    }
    .footer ul li {
        font-size: 13px;
        margin-bottom: 8px;
    }
    .footer-bottom {
        font-size: 12px;
        padding: 14px 0 80px; /* space for bottom nav */
    }
}

/* Add bottom padding to body on mobile so content isn't hidden by bottom nav */
@media (max-width: 991px) {
    body {
        padding-bottom: var(--us-bottom-nav-height);
    }
    .whatsapp-float {
        width: 52px;
        height: 52px;
        font-size: 26px;
        bottom: calc(20px + var(--us-bottom-nav-height));
        right: 16px;
    }
}

/* ===== Show bottom nav only on mobile/tablet (<=991px) ===== */
@media (max-width: 991px) {
    .us-bottom-nav {
        display: flex;
    }
}

/* Container padding on small screens */
@media (max-width: 575px) {
    .container,
    .container-fluid {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* Modal adjustments on mobile */
@media (max-width: 575px) {
    .modal-dialog {
        margin: 8px;
    }
    .modal-body {
        padding: 14px;
    }
}

/* Toast position above bottom nav on mobile */
@media (max-width: 991px) {
    .toast-bottom-right {
        bottom: calc(12px + var(--us-bottom-nav-height)) !important;
        right: 12px !important;
    }
}

/* Tracking timeline responsive */
@media (max-width: 575px) {
    .tracking-item {
        padding-left: 40px;
        margin-bottom: 22px;
    }
    .tracking-timeline::before {
        left: 14px;
    }
    .tracking-item::before {
        left: 8px;
    }
}

/* Swiper: smaller slides on mobile */
.product-slider .swiper-slide {
    width: auto;
}
@media (max-width: 575px) {
    .product-slider {
        padding: 6px 0 16px;
    }
    .product-slider .swiper-slide {
        width: 150px;
    }
    .product-slider .swiper-button-next,
    .product-slider .swiper-button-prev {
        display: none;
    }
}

/* Banner slider responsive */
@media (max-width: 575px) {
    .banner-slider {
        border-radius: 10px;
    }
    .banner-slider img {
        min-height: 140px;
        object-fit: cover;
    }
}

/* Category cards responsive */
@media (max-width: 575px) {
    .category-card {
        padding: 12px 8px;
    }
    .category-card img {
        width: 56px;
        height: 56px;
        margin-bottom: 8px;
    }
    .category-card h5 {
        font-size: 12px;
    }
}

/* Page heading responsive */
@media (max-width: 575px) {
    h1 { font-size: 1.6rem; }
    h2 { font-size: 1.4rem; }
    h3 { font-size: 1.2rem; }
}

/* Account/dashboard sidebar responsive */
@media (max-width: 991px) {
    .account-sidebar {
        margin-bottom: 20px;
    }
}

/* Print-friendly */
@media print {
    .us-bottom-nav,
    .whatsapp-float,
    .top-bar,
    .mega-menu-wrapper {
        display: none !important;
    }
}

/* User Avatar (Old Website Style) */
.user-avatar {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    max-width: 32px !important;
    max-height: 32px !important;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    overflow: hidden;
    border: 2px solid rgba(255,255,255,0.3);
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.user-avatar img {
    width: 100% !important;
    height: 100% !important;
    max-width: 32px !important;
    max-height: 32px !important;
    object-fit: cover;
    border-radius: 50%;
    display: block;
}

.user-avatar-text {
    font-size: 14px;
    font-weight: 600;
}

.user-avatar-link {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px !important;
    min-width: auto !important;
    min-height: auto !important;
    width: auto !important;
    height: auto !important;
}

.user-avatar-link:hover .user-avatar {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}