/* ==========================================================================
   Global Reset & UI Base Theme
   ========================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700&display=swap');

:root {
    --primary-purple: #6c5ce7;
    --primary-dark: #4834d4;
    --accent-orange: #ff7675;
    --bg-light: #f4f6fb;
    --card-bg: #ffffff;
    --text-main: #2d3436;
    --text-muted: #636e72;
    --border-color: #f1f2f6;
    --shadow-soft: 0 10px 25px rgba(108, 92, 231, 0.08);
    --shadow-card: 0 6px 15px rgba(0, 0, 0, 0.04);
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Plus Jakarta Sans', 'Hind Siliguri', sans-serif;
    background-color: var(--bg-light);
    color: var(--text-main);
    line-height: 1.5;
    overflow-x: hidden;
    padding-bottom: 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

/* ==========================================================================
   Header Section (Mobile Optimized)
   ========================================================================== */
.main-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: #ffffff;
    padding: 12px 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
}

.brand-area {
    display: flex;
    align-items: center;
    gap: 12px;
}

#menuToggle {
    font-size: 20px;
    color: var(--text-main);
    cursor: pointer;
}

.site-logo {
    height: 38px;
    width: auto;
    object-fit: contain;
}

.site-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-dark);
}

/* Floating Search Bar */
.search-box {
    flex: 1;
    position: relative;
    background: #f1f3f9;
    border-radius: 30px;
    padding: 8px 16px;
    display: flex;
    align-items: center;
}

.search-box input {
    width: 100%;
    border: none;
    outline: none;
    background: transparent;
    font-size: 14px;
    color: var(--text-main);
    padding-right: 25px;
}

.search-box .search-icon {
    position: absolute;
    right: 14px;
    color: #a0a5b5;
    font-size: 14px;
}

/* Cart / Action Icon */
.cart-btn {
    width: 40px;
    height: 40px;
    background: #f1f3f9;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-purple);
    font-size: 16px;
    transition: all 0.2s ease;
}

/* Search Dropdown Popup */
#searchSuggestions {
    position: absolute;
    z-index: 1005;
    background: #ffffff;
    border-radius: var(--radius-md);
    box-shadow: 0 10px 30px rgba(0,0,0,0.12);
    overflow: hidden;
    display: none;
}

/* ==========================================================================
   Sidebar Drawer Menu
   ========================================================================== */
.sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1050;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar-drawer {
    position: fixed;
    top: 0;
    left: -280px;
    width: 280px;
    height: 100vh;
    background: #ffffff;
    z-index: 1100;
    transition: left 0.3s ease;
    padding: 20px;
    box-shadow: 5px 0 25px rgba(0,0,0,0.1);
}

.sidebar-drawer.active {
    left: 0;
}

.sidebar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.sidebar-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.sidebar-close-btn {
    background: none;
    border: none;
    font-size: 20px;
    color: var(--text-muted);
    cursor: pointer;
}

.sidebar-menu {
    margin-top: 20px;
}

.sidebar-menu li a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 10px;
    color: var(--text-main);
    font-weight: 500;
    border-radius: var(--radius-sm);
    transition: background 0.2s;
}

.sidebar-menu li a:hover {
    background: #f0edff;
    color: var(--primary-purple);
}

/* ==========================================================================
   Hero Slider & Side Banners Section
   ========================================================================== */
.hero-grid-container {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
}

.hero-main-slider {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    background: linear-gradient(135deg, #a8c0ff 0%, #3f2b96 100%);
}

.hero-slider .swiper-slide {
    position: relative;
}

.hero-card-content {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.hero-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-action {
    position: absolute;
    bottom: 16px;
    left: 16px;
    z-index: 10;
}

.btn-hero-shop {
    /* ব্যাকগ্রাউন্ড ডাইনামিক কালার এবং টেক্সট সবসময় সাদা */
    background: var(--btn-bg, orange);
    color: white !important;
    
    /* সাইজ ও প্যাডিং */
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    
    /* সেন্টারে নিখুঁতভাবে রাখার জন্য */
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    gap: 5px;
    
    border: none;
    border-radius: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    transition: all 0.3s ease;
}

/* বাটন হোভার করলে সামান্য ডার্ক বা লিফট হবে */
.btn-hero-shop:hover {
    filter: brightness(0.9);
    transform: translateY(-1px);
    color: green;
}

.hero-side-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.side-card {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 16 / 10;
    box-shadow: var(--shadow-card);
}

.side-card.theme-purple {
    background: linear-gradient(135deg, #e0c3fc 0%, #8ec5fc 100%);
}

.side-card.theme-green {
    background: linear-gradient(135deg, #f6d365 0%, #fda085 100%);
}

.side-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.side-action {
    position: absolute;
    bottom: 10px;
    left: 10px;
}

.btn-side-shop {
    background: blue;
    color: white;
    padding: 5px 12px;
    border-radius: 10px;
    font-size: 8px; /* ফন্ট সাইজ ৬px খুব বেশি ছোট, চাইলে ১১px রাখতে পারেন */
    font-weight: 700;
    
    /* মাঝখানে আনার জন্য এই পরিবর্তনগুলো করুন */
    display: flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    margin: 0 auto;
    gap: 4px;
    text-decoration: none;
}

/* Swiper Pagination Style */
.swiper-pagination-bullet-active {
    background: var(--primary-purple) !important;
    width: 18px !important;
    border-radius: 10px !important;
}

/* ==========================================================================
   Horizontal Scroll Category Bar (Reference UI Match)
   ========================================================================== */
.categories-section {
    max-width: 1200px;
    margin: 16px auto;
    padding: 0 16px;
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none; /* Firefox */
}

.categories-section::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}

.category-item {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 72px;
    text-decoration: none;
}

.category-icon-box {
    width: 64px;
    height: 64px;
    background: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-card);
    padding: 0; /* প্যাডিং তুলে দেওয়া হলো যাতে ছবি পুরো বক্স ফিল করে */
    overflow: hidden; /* সার্কেলের বাইরের অংশ কেটে ফেলার জন্য */
    transition: transform 0.2s ease;
}

.category-item:hover .category-icon-box {
    transform: translateY(-3px);
}

.category-icon-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* contain এর জায়গায় cover দেওয়া হলো যাতে সম্পূর্ণ রাউন্ড ফিল হয় */
    border-radius: 50%;
}

.category-item span {
    font-size: 12px;
    font-weight: 700;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* ==========================================================================
   Category Text Multi-Color Cycling (7 Colors)
   ========================================================================== */
.category-item:nth-child(7n+1) span { color: #e74c3c; } /* লাল / Coral Red */
.category-item:nth-child(7n+2) span { color: #00b894; } /* সবুজ / Mint Green */
.category-item:nth-child(7n+3) span { color: #0984e3; } /* নীল / Ocean Blue */
.category-item:nth-child(7n+4) span { color: #6c5ce7; } /* বেগুনী / Royal Purple */
.category-item:nth-child(7n+5) span { color: #e67e22; } /* কমলা / Pumpkin Orange */
.category-item:nth-child(7n+6) span { color: #e84393; } /* পিঙ্ক / Dark Pink */
.category-item:nth-child(7n+0) span { color: #00bec4; } /* টিল / Teal Cyan */



/* ==========================================================================
   Section Title Styles
   ========================================================================== */
.section-title-wrapper {
    max-width: 1200px;
    margin: 24px auto 12px auto;
    padding: 0 16px;
    display: flex;
    flex-direction: column;
}

.section-title-wrapper h2 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}

.section-title-wrapper p {
    font-size: 12px;
    color: var(--text-muted);
}

/* ==========================================================================
   Products Grid & Cards (Modern Rounded Layout)
   ========================================================================== */
.products-grid-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* Mobile default: 2 Column */
    gap: 12px;
}

.fruit-card {
    background: var(--card-bg);
    border-radius: var(--radius-md);
    padding: 10px;
    position: relative;
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.2s, box-shadow 0.2s;
}

.fruit-card:hover {
    box-shadow: 0 10px 20px rgba(0,0,0,0.08);
}

.discount-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 5;
    color: #ffffff;
    font-size: 10px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    text-transform: uppercase;
}

.fruit-img-link {
    display: block;
    width: 100%;
}

.fruit-img {
    width: 100%;
    aspect-ratio: 1 / 1;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: #f8f9fa;
    margin-bottom: 8px;
}

.fruit-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fruit-card h3 {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
    line-height: 1.3;
    height: 34px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    margin-bottom: 6px;
}

.fruit-price {
    display: flex;
    align-items: baseline;
    gap: 6px;
    margin-bottom: 10px;
}

.main-price {
    font-size: 15px;
    font-weight: 700;
    color: var(--primary-dark);
}

.strike-price {
    font-size: 11px;
    color: #b2bec3;
    text-decoration: line-through;
}

.btn-add-cart {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 8px 0;
    border-radius: 20px;
    color: #ffffff !important;
    font-size: 12px;
    font-weight: 600;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: opacity 0.2s;
}

.btn-add-cart:hover {
    opacity: 0.9;
}

/* ==========================================================================
   Feature Info Bar & Service Section
   ========================================================================== */
.info-bar-section {
    max-width: 1200px;
    margin: 24px auto;
    padding: 0 16px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
}

.info-box {
    background: #ffffff;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 14px;
    box-shadow: var(--shadow-card);
}

.info-box i {
    font-size: 22px;
    color: var(--primary-purple);
}

.info-box h4 {
    font-size: 13px;
    font-weight: 700;
}

.info-box p {
    font-size: 11px;
    color: var(--text-muted);
}

/* Payment Methods UI */
.payment-service-section {
    max-width: 1200px;
    margin: 20px auto;
    padding: 16px;
    background: #ffffff;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.service-icon-box {
    width: 44px;
    height: 44px;
    background: #f0edff;
    color: var(--primary-purple);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
}

.service-left h3 {
    font-size: 14px;
    font-weight: 700;
}

.service-left p {
    font-size: 11px;
    color: var(--text-muted);
}

.payment-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
}

.pay-card {
    height: 36px;
    padding: 0 12px;
    background: #f8f9fa;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
    color: var(--text-main);
}

.pay-card i {
    font-size: 20px;
}

.pay-img {
    height: 20px;
    width: auto;
    object-fit: contain;
}

/* ==========================================================================
   Desktop Responsive Adjustments (Tablet & Desktop Breakpoints)
   ========================================================================== */
@media (min-width: 768px) {
    .hero-grid-container {
        grid-template-columns: 2fr 1fr;
    }

    .hero-side-cards {
        grid-template-columns: 1fr;
        grid-template-rows: 1fr 1fr;
    }

    .products-grid-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
    }

    .info-bar-section {
        grid-template-columns: repeat(3, 1fr);
    }

    .payment-service-section {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .products-grid-container {
        grid-template-columns: repeat(6, 1fr);
    }
}