/* বেসিক রিসেট এবং ফন্ট */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --light-color: #f4f7fa;
    --white-color: #ffffff;
    --dark-color: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--white-color);
    color: #555;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style-type: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ======================= Header ======================= */
.header {
    background-color: var(--secondary-color);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 15px 0;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white-color);
    flex-shrink: 0;
    text-decoration: none;
}

.header-search {
    flex-grow: 1;
    display: flex;
    position: relative;
}
.header-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px 0 0 5px;
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
    height: 44px;
}
.header-search input:focus {
    outline: none;
}
.header-search button {
    padding: 0 20px;
    border: 1px solid #f39c12;
    background-color: #f39c12;
    color: var(--dark-color);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.2rem;
    height: 44px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
    padding-top: 10px
}

.action-icon {
    font-size: 1.5rem;
    position: relative;
    color: var(--white-color);
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
}

.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: #e74c3c;
    color: var(--white-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
}
.mobile-nav {
    display: none;
    background-color: var(--secondary-color);
    width: 100%;
}
.mobile-nav.active { display: block; }
.mobile-nav ul { list-style: none; padding: 0; margin: 0; }
.mobile-nav a { display: block; padding: 15px 20px; color: white; text-decoration: none; border-bottom: 1px solid #4a627a; }


/* ======================= Responsive Header ======================= */
@media (max-width: 991px) {
    .header {
        padding: 0;
    }
    .header .container {
        padding: 0; /* Remove horizontal padding from container */
    }
    .header-content {
        flex-wrap: wrap;
        position: relative;
        height: 60px;
        align-items: center;
        justify-content: space-between;
        background-color: var(--secondary-color);
        padding: 0 15px; /* Re-apply padding for top row content */
    }
    .mobile-menu-toggle {
        display: block;
    }
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        font-size: 1.5rem;
    }
    .header-search {
    order: 99;
    width: auto;
    background-color: var(--secondary-color);
    padding: 10px 30px; /* <--- শুধুমাত্র উপরে-নিচে প্যাডিং থাকবে */
    margin: -10px -15px;
}
    .header-search input {
        border-radius: 5px 0 0 5px;
        border-left: 1px solid #ddd;
    }
    .all-categories-menu {
        display: none;
    }
}


@media (min-width: 992px) {
    .mobile-menu-toggle {
        display: none;
    }
}

/* Other styles */

.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.bg-light {
    background-color: var(--light-color);
}

.product-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    display: block;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions .action-btn {
    background-color: var(--white-color);
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

.product-actions .action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.product-info {
    padding: 15px;
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #ccc;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* Header Search Dropdown Styles */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.1);
    z-index: 1001;
    max-height: 450px;
    overflow-y: auto;
    display: none;
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    border-bottom: 1px solid #f5f5f5;
    text-decoration: none;
    color: #333;
    transition: background-color 0.2s ease;
}

.search-result-item:last-child {
    border-bottom: none;
}

.search-result-item:hover {
    background-color: #f8f9fa;
}

.search-result-item img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-right: 15px;
    flex-shrink: 0;
}

.search-result-info {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.search-result-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 4px;
    color: #222;
}

.search-result-price {
    color: var(--primary-color);
    font-size: 1rem;
    font-weight: 700;
}

.product-rating {
    font-size: 0.85rem;
    color: #777;
    margin-bottom: 4px;
}

.no-results {
    padding: 20px;
    text-align: center;
    color: #888;
}
/* Mobile Sidebar Menu Styles */
.mobile-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-sidebar-menu {
    position: fixed;
    top: 0;
    left: 0;
    width: 280px;
    height: 100%;
    background-color: #f4f7fa;
    z-index: 1002;
    transform: translateX(-100%);
    transition: transform 0.3s ease-in-out;
    padding: 20px;
    display: flex;
    flex-direction: column;
    box-shadow: 5px 0px 15px rgba(0,0,0,0.1);
}

.mobile-sidebar-menu.active {
    transform: translateX(0);
}

.mobile-sidebar-menu .sidebar-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
}

.mobile-sidebar-menu .sidebar-nav {
    margin-top: 40px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.mobile-sidebar-menu .sidebar-nav ul li a {
    display: block;
    padding: 12px 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.mobile-sidebar-menu .sidebar-nav ul li a:hover {
    color: var(--primary-color);
}

.sidebar-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.sidebar-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 12px;
    border-radius: 50px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 1rem;
    border: 2px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
}

.sidebar-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.sidebar-btn i {
    font-size: 1.2rem;
}

.sidebar-btn.btn-dropship {
    background-color: #2980b9;
}

.sidebar-btn.btn-register {
    background-color: #27ae60;
}

.sidebar-btn.btn-call {
    background-color: #1976D2;
}

.sidebar-btn.btn-whatsapp {
    background-color: #000000;
}

.sidebar-btn.btn-telegram {
    background-color: #8e44ad;
}

/* Slider Section Styles */
.slider-section {
    padding: 20px 0;
    background-color: var(--light-color);
}

.main-slider {
    position: relative;
    width: 100%;
    height: 400px; /* আপনার প্রয়োজন অনুযায়ী স্লাইডারের উচ্চতা পরিবর্তন করতে পারেন */
    overflow: hidden;
    border-radius: 8px;
    background-color: #eee; /* ছবি লোড হওয়ার আগে একটি placeholder রঙ */
}

.main-slider .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease-in-out;
}

.main-slider .slide.active {
    opacity: 1;
    visibility: visible;
}

.slide-link {
    display: block;
    width: 100%;
    height: 100%;
}

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s;
}

.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider-nav.prev {
    left: 15px;
}

.slider-nav.next {
    right: 15px;
}

/* Responsive styles for slider height */
@media (max-width: 991px) {
    .main-slider {
        height: 300px;
    }
}

@media (max-width: 576px) {
    .main-slider {
        height: 200px;
        margin-top: 60px;
    }
    .slider-nav {
        width: 35px;
        height: 35px;
        font-size: 1rem;
    }
}

/* Promo Buttons Section Styles */
.promo-buttons-section {
    padding: 30px 0;
}

.promo-buttons-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* ডেস্কটপের জন্য ৪টি কলাম */
    gap: 20px;
}

.promo-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    text-decoration: none;
    color: white;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: 8px;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.promo-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.promo-btn i {
    font-size: 0.9em;
}

.promo-btn-yellow {
    background-color: #f39c12; /* হলুদ রঙ */
}

.promo-btn-blue {
    background-color: #2c3e50; /* নীল রঙ */
}

/* মোবাইল ডিভাইসের জন্য (768px এর নিচে) */
@media (max-width: 768px) {
    .promo-buttons-grid {
        grid-template-columns: repeat(2, 1fr); /* মোবাইলের জন্য ২টি কলাম (2x2 গ্রিড) */
        gap: 15px;
    }
    .promo-btn {
        font-size: 1rem;
    }
}


/* Updated Popular Brands Section Styles */
.brands-section {
    background-color: #f8f9fa; /* হালকা ধূসর ব্যাকগ্রাউন্ড */
}

.brands-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* ডেস্কটপের জন্য ৬টি কলাম */
    gap: 20px;
}

.brand-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px; /* আরও গোলাকার কোণা */
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    height: 160px; /* কার্ডের একটি নির্দিষ্ট উচ্চতা */
}

.brand-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.brand-card img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ছবি দিয়ে কার্ডটি সম্পূর্ণ ঢেকে ফেলার জন্য */
    display: block;
    transition: transform 0.3s ease;
}

.brand-card:hover img {
    transform: scale(1.05); /* হোভারে ছবি সামান্য জুম হবে */
}

.brand-info-overlay {
    position: absolute;
    bottom: 0; /* নামটি নিচে থাকবে */
    left: 0;
    width: 100%;
    padding: 25px 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%); /* সুন্দর একটি শ্যাডো ইফেক্ট */
    text-align: center;
}

.brand-info-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5); /* টেক্সটের পিছনে শ্যাডো */
}

/* Responsive Styles for Brands Grid */
@media (max-width: 1200px) {
    .brands-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .brands-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .brands-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Popular Categories Section Styles */
.categories-section {
    background-color: #ffffff; /* সাদা ব্যাকগ্রাউন্ড */
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* ডেস্কটপের জন্য ৬টি কলাম */
    gap: 20px;
}

.category-card {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-decoration: none;
    height: 160px;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.12);
}

.category-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 10px 10px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, transparent 100%);
    text-align: center;
}

.category-info-overlay h3 {
    font-size: 1.1rem;
    font-weight: 600;
    color: white;
    margin: 0;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* Responsive Styles for Categories Grid */
@media (max-width: 1200px) {
    .categories-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .categories-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Category Sorting Dropdown Styles */
.collection-sort {
    display: flex;
    justify-content: flex-end; /* ডানদিকে দেখানোর জন্য */
    align-items: center;
    margin-bottom: 25px;
    gap: 10px;
}

.collection-sort label {
    font-weight: 600;
    color: #333;
}

.collection-sort select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #fff;
    font-size: 1rem;
    cursor: pointer;
    outline: none;
}