/* Global Settings & Variables - Clean Light Theme */
:root {
    --primary-color: #0284c7;        /* vibrant blue */
    --primary-dark: #0369a1;         /* dark blue */
    --text-color: #0f172a;           /* main dark blue text */
    --border-color: #38bdf8;         /* light blue default border */
    --discount-color: #e11d48;       /* soft red badge */
    --new-color: #059669;            /* green badge */
    
    /* Dedicated Text Colors */
    --title-color: #1e40af;          /* deep royal blue for titles */
    --price-color: #16a34a;          /* energetic green for price */
    --rating-color: #f59e0b;         /* warm gold for ratings */
    
    /* Random Palette for Borders */
    --c-red: #ef4444;
    --c-yellow: #f59e0b;
    --c-green: #10b981;
    --c-blue: #0284c7;
    --c-purple: #8b5cf6;
    --c-pink: #ec4899;

    /* Card Backgrounds */
    --card-bg: #ffffff;
    --glass-bg: rgba(255, 255, 255, 0.9);
    --glass-border: rgba(2, 132, 199, 0.2);
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #eafaf1;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(187, 247, 208, 0.6) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(224, 242, 254, 0.8) 0%, transparent 40%);
    background-attachment: fixed;
    color: var(--text-color);
}

/* Header & Navbar - Enhanced Color & Fully Responsive */
.main-header {
    padding: 15px;
    background: linear-gradient(135deg, rgba(224, 242, 254, 0.95), rgba(255, 255, 255, 0.95));
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 20px rgba(2, 132, 199, 0.15);
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--title-color);
    background: linear-gradient(135deg, #0284c7, #1e40af);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.nav-icons {
    display: flex;
    gap: 16px;
    font-size: 1.25rem;
    position: relative;
    color: var(--primary-dark);
}

.icon-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background: var(--discount-color);
    color: white;
    font-size: 0.7rem;
    padding: 2px 5px;
    border-radius: 50%;
}

/* ওয়েলকাম লেখার ভাইব্রেন্ট স্টাইল ও অ্যানিমেশন */
.welcome {
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    display: inline-block;
    background: linear-gradient(120deg, #ec4899, #0284c7, #16a34a, #8b5cf6);
    background-size: 300% auto;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: shineEffect 3s linear infinite, pulseEffect 2s ease-in-out infinite alternate;
}

@keyframes shineEffect {
    0% { background-position: 0% center; }
    100% { background-position: 300% center; }
}

@keyframes pulseEffect {
    0% { transform: scale(1); }
    100% { transform: scale(1.03); }
}

/* Search and Category Responsive Row Fix */
.search-category-row {
    display: flex;
    gap: 10px;
    width: 100%;
    align-items: center;
}

.search-box {
    flex: 1;
    position: relative;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%; /* শতভাগ উইডথ দিয়ে ডানপাশের গ্যাপ দূর করা হয়েছে */
    padding: 10px 12px 10px 38px;
    border: 2px solid var(--border-color);
    border-radius: 10px;
    background: #ffffff;
    color: var(--primary-dark);
    font-weight: 600;
    outline: none;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.search-box input::placeholder {
    color: #64748b;
    font-weight: 500;
}

.search-box input:focus {
    border-color: #ec4899;
    box-shadow: 0 0 10px rgba(236, 72, 153, 0.25);
}

.search-box i {
    position: absolute;
    left: 12px;
    color: var(--primary-color);
    font-size: 1rem;
    pointer-events: none;
}

.category-dropdown-btn {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 0 16px; 
    height: 42px; /* ইনপুটের সাথে হাইট সমান করা হয়েছে */
    border-radius: 10px;
    border: none;
    font-weight: 700;
    display: inline-flex;  
    align-items: center;
    justify-content: center;
    gap: 6px;
    text-decoration: none; 
    white-space: nowrap;
    box-sizing: border-box;
    font-size: 0.85rem;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.25);
    transition: all 0.2s;
}

.category-dropdown-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(2, 132, 199, 0.35);
}

/* Swiper Container - Border Removed */
.hero-slider {
    width: 100%;
    max-width: 720px;
    height: 300px;
    margin: 0 auto 20px auto;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    border: none; /* বর্ডার সম্পূর্ণ সরিয়ে দেওয়া হয়েছে */
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* বাটন পজিশন */
.btn-shop1-now, .btn-shop2-now {
    background: linear-gradient(135deg, #0284c7, #0369a1);
    color: #ffffff;
    padding: 10px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    z-index: 10;
    box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

.btn-shop1-now {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.btn-shop2-now {
    display: inline-block;
    width: fit-content;
    margin-top: 15px;
}

/* ক্যাটাগরি সেকশন */
.categories-section {
    padding: 15px;
    display: flex;
    gap: 15px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
}

.categories-section::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 65px;
    text-decoration: none;
    color: var(--primary-dark);
}

.category-icon-circle {
    width: 60px;
    height: 60px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 2.5px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.category-item:hover .category-icon-circle {
    transform: scale(1.1);
}

.category-icon-circle img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.category-item span {
    font-size: 0.75rem;
    font-weight: 700;
    text-align: center;
    max-width: 75px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--title-color);
}

/* Category Icons Multi-Color Cycling */
.category-item:nth-child(6n+1) .category-icon-circle { border-color: var(--c-red); }
.category-item:nth-child(6n+2) .category-icon-circle { border-color: var(--c-yellow); }
.category-item:nth-child(6n+3) .category-icon-circle { border-color: var(--c-green); }
.category-item:nth-child(6n+4) .category-icon-circle { border-color: var(--c-blue); }
.category-item:nth-child(6n+5) .category-icon-circle { border-color: var(--c-purple); }
.category-item:nth-child(6n+6) .category-icon-circle { border-color: var(--c-pink); }

/* Features Grid Update */
.features-section {
    margin: 20px 15px;
    background: #ffffff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    box-shadow: 0 4px 15px rgba(2, 132, 199, 0.08);
}

.feature-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 8px;
    background: #f8fafc;
    border: 2px solid var(--border-color);
    transition: background 0.3s, border-color 0.3s;
}

.feature-box:nth-child(6n+1) { border-color: var(--c-red); }
.feature-box:nth-child(6n+2) { border-color: var(--c-yellow); }
.feature-box:nth-child(6n+3) { border-color: var(--c-green); }
.feature-box:nth-child(6n+4) { border-color: var(--c-blue); }
.feature-box:nth-child(6n+5) { border-color: var(--c-purple); }
.feature-box:nth-child(6n+6) { border-color: var(--c-pink); }

.feature-box:hover {
    background: #f1f5f9;
}

.feature-box i {
    font-size: 1.5rem;
    color: var(--primary-color);
    background: #e0f2fe;
    padding: 10px;
    border-radius: 50%;
}

.feature-info h5 {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--title-color);
}

.feature-info p {
    margin: 2px 0 0 0;
    font-size: 0.75rem;
    color: #475569;
    line-height: 1.2;
}

/* Promo Banners Grid */
.promo-section {
    margin: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.promo-card {
    border-radius: 12px;
    padding: 15px;
    color: var(--primary-dark);
    min-height: 120px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background: #ffffff;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}

.promo-card:nth-child(6n+1) { border-color: var(--c-red); }
.promo-card:nth-child(6n+2) { border-color: var(--c-yellow); }
.promo-card:nth-child(6n+3) { border-color: var(--c-green); }
.promo-card:nth-child(6n+4) { border-color: var(--c-blue); }
.promo-card:nth-child(6n+5) { border-color: var(--c-purple); }
.promo-card:nth-child(6n+6) { border-color: var(--c-pink); }

.promo-card h4 { 
    margin: 0; 
    font-size: 0.95rem; 
    color: var(--title-color); 
    font-weight: 700;
}

.promo-card p { 
    margin: 5px 0; 
    font-size: 0.75rem; 
    color: #334155; 
}

/* Products Grid Section */
.section-header {
    padding: 0 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
}

.section-header h3 { 
    margin: 0; 
    font-size: 1.2rem; 
    color: var(--title-color);
    font-weight: 800;
}

.view-all { 
    color: var(--primary-color); 
    text-decoration: none; 
    font-size: 0.85rem; 
    font-weight: 600;
}

/* Default Mobile Grid Layout */
.products-grid {
    padding: 15px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

/* Product Card - Multi-Color Border Feature */
.product-card {
    border: 2.5px solid var(--border-color);
    border-radius: 12px;
    padding: 12px;
    position: relative;
    background: var(--card-bg);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    height: 100%;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

/* 6-Color Random Multi-Borders Cycling for Products */
.product-card:nth-child(6n+1) { border-color: var(--c-red); }
.product-card:nth-child(6n+2) { border-color: var(--c-yellow); }
.product-card:nth-child(6n+3) { border-color: var(--c-green); }
.product-card:nth-child(6n+4) { border-color: var(--c-blue); }
.product-card:nth-child(6n+5) { border-color: var(--c-purple); }
.product-card:nth-child(6n+6) { border-color: var(--c-pink); }

/* Anchor tag wrappers handling */
.product-card-link:nth-child(6n+1) .product-card { border-color: var(--c-red); }
.product-card-link:nth-child(6n+2) .product-card { border-color: var(--c-yellow); }
.product-card-link:nth-child(6n+3) .product-card { border-color: var(--c-green); }
.product-card-link:nth-child(6n+4) .product-card { border-color: var(--c-blue); }
.product-card-link:nth-child(6n+5) .product-card { border-color: var(--c-purple); }
.product-card-link:nth-child(6n+6) .product-card { border-color: var(--c-pink); }

/* Dynamic Hover Effects */
.product-card:nth-child(6n+1):hover, .product-card-link:nth-child(6n+1):hover .product-card { box-shadow: 0 8px 20px rgba(239, 68, 68, 0.3); }
.product-card:nth-child(6n+2):hover, .product-card-link:nth-child(6n+2):hover .product-card { box-shadow: 0 8px 20px rgba(245, 158, 11, 0.3); }
.product-card:nth-child(6n+3):hover, .product-card-link:nth-child(6n+3):hover .product-card { box-shadow: 0 8px 20px rgba(16, 185, 129, 0.3); }
.product-card:nth-child(6n+4):hover, .product-card-link:nth-child(6n+4):hover .product-card { box-shadow: 0 8px 20px rgba(2, 132, 199, 0.3); }
.product-card:nth-child(6n+5):hover, .product-card-link:nth-child(6n+5):hover .product-card { box-shadow: 0 8px 20px rgba(139, 92, 246, 0.3); }
.product-card:nth-child(6n+6):hover, .product-card-link:nth-child(6n+6):hover .product-card { box-shadow: 0 8px 20px rgba(236, 72, 153, 0.3); }

.product-card:hover {
    transform: translateY(-4px);
}

.product-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 0.7rem;
    padding: 3px 6px;
    border-radius: 4px;
    color: white;
    font-weight: bold;
    z-index: 2;
}

.badge-discount { background: var(--discount-color); }
.badge-new { background: var(--new-color); color: #fff; }

.wishlist-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    color: #e11d48;
    font-size: 1.1rem;
    z-index: 2;
}

.product-img-wrapper {
    text-align: center;
    margin: 10px 0;
    background: #f1f5f9;
    border-radius: 8px;
    padding: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-img-wrapper img {
    max-height: 110px;
    width: 100%;
    object-fit: contain;
}

/* Product Title - Deep Blue */
.product-card h4 {
    margin: 8px 0 4px 0;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--title-color);
    font-weight: 700;
}

/* Price - Vibrant Emerald Green */
.price-row {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 5px 0;
}

.current-price { 
    font-weight: 800; 
    color: var(--price-color); 
    font-size: 0.95rem; 
}

.old-price { 
    text-decoration: line-through; 
    color: #94a3b8; 
    font-size: 0.75rem; 
}

/* Rating - Warm Amber Gold */
.rating-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.75rem;
    color: #475569;
    font-weight: 600;
}

.rating-row i { color: var(--rating-color); }

.add-to-cart-btn {
    border: 1.5px solid var(--primary-color);
    color: var(--primary-color);
    background: #e0f2fe;
    width: 30px;
    height: 30px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.add-to-cart-btn:hover {
    background: var(--primary-color);
    color: #ffffff;
}

/* Desktop Responsive Layout */
@media (min-width: 992px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        padding: 20px 15px;
    }

    .product-img-wrapper img {
        max-height: 150px;
    }

    .section-header h3 {
        font-size: 1.3rem;
    }

    .product-card h4 {
        font-size: 0.95rem;
    }

    .current-price {
        font-size: 1.05rem;
    }
}

/* Exclusive Banner */
.exclusive-banner {
    margin: 15px;
    background: linear-gradient(135deg, #ffffff, #e0f2fe);
    color: var(--primary-dark);
    border: 3px solid var(--c-pink);
    border-radius: 15px;
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.15);
}

/* Bottom Navigation Bar */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    border-top: 2px solid var(--border-color);
    display: flex;
    justify-content: space-around;
    padding: 10px 0;
    z-index: 999;
    box-shadow: 0 -4px 15px rgba(0,0,0,0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    font-size: 0.7rem;
    color: #64748b;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-item i {
    font-size: 1.2rem;
}

.bottom-spacer {
    height: 70px;
}

/* সাইডবার ড্রয়ার */
.sidebar-drawer {
    position: fixed;
    top: 55px;
    left: -260px;
    width: 230px;
    height: auto;
    background: #ffffff;
    border: 2px solid var(--border-color);
    z-index: 99999;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-radius: 0 8px 8px 0;
    transition: left 0.3s ease;
    overflow: hidden;
}

.sidebar-drawer.active {
    left: 0;
}

.sidebar-menu {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar-menu li {
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-menu li:last-child {
    border-bottom: none;
}

.sidebar-menu a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 18px;
    color: var(--primary-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, color 0.2s;
}

.sidebar-menu a:hover {
    background: #e0f2fe;
    color: var(--primary-color);
}

.sidebar-menu i {
    width: 18px;
    color: var(--primary-color);
}

/* Latest Products Grid Layout */
.latest-products-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 12px;
    padding: 0 15px;
    margin-bottom: 20px;
}

/* মোবাইল রেসপনসিভ */
@media (max-width: 768px) {
    .hero-slider {
        height: 200px !important; 
    }

    .product-img-wrapper img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }

    .features-section {
        grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)) !important;
        padding: 10px !important;
        gap: 10px !important;
    }

    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    }

    .product-card-link,
    .product-card {
        min-width: 0 !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
}

@media (min-width: 768px) {
    .latest-products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
}

/* Animations */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
    will-change: opacity, transform;
}

.reveal-on-scroll.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Swiper Controls */
.randomProductsSwiper .swiper-pagination-bullet {
    background: #cbd5e1;
    opacity: 0.8;
}

.randomProductsSwiper .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1;
    width: 20px;
    border-radius: 5px;
    transition: all 0.3s ease;
}

/* Floating WhatsApp Button */
.whatsapp-float {
    position: fixed;
    bottom: 8%;
    right: 20px;
    width: 55px;
    height: 55px;
    background-color: #25d366;
    color: #fff !important;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: transform 0.3s ease;
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    transform: scale(1.1);
}

@keyframes whatsapp-pulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.6); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}

@media (max-width: 639px) {
    .whatsapp-float {
        bottom: 9%;
        right: 15px;
        width: 50px;
        height: 50px;
        font-size: 28px;
    }
}