/* =========================================
   Reset & Base Styles
   ========================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Brand Colors Updated to Original Vibrant Orange */
    --primary-color: #ff6b35;        /* Eye-catching Orange */
    --primary-color-hover: #e55a2b;  /* Slightly darker orange for hover */
    --dark-brown: #fcf8f2;           /* Lightened for dark mode */
    --text-dark: #f0f0f0;            /* Changed to Light color for Dark Background */
    --text-light: #a0a0a0;           /* Lighter gray for dark mode */
    --bg-cream: #1e1e1e;             /* Dark surface color */
    --border-color: #333333;         /* Dark border color */
}

body {
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
    background-color: #121212;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* =========================================
   Header Section
   ========================================= */
.header {
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    background-color: #121212;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 24px;
    color: var(--text-dark);
}

.logo sup {
    font-size: 12px;
}

.search-bar {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 30px;
    /* overflow: hidden; <-- এখান থেকে এটি রিমুভ করা হয়েছে */
    position: relative; /* এটি যোগ করা হয়েছে ড্রপডাউন ঠিক রাখার জন্য */
    width: 450px;
    background-color: #1e1e1e;
}

.search-bar input {
    border: none;
    padding: 12px 20px;
    width: 100%;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    color: var(--text-dark);
}

.search-bar button {
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 12px 20px;
    cursor: pointer;
    transition: 0.3s;
    border-radius: 0 30px 30px 0; /* ডান পাশের কোণাগুলো গোল করার জন্য এটি যোগ করা হয়েছে */
}

.search-bar button:hover {
    background-color: var(--primary-color-hover);
}

.header-icons {
    display: flex;
    gap: 15px;
}

.icon-btn {
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 50%;
    background-color: #2a2a2a;
    transition: 0.3s;
    font-size: 16px;
    color: var(--text-dark);
}

.icon-btn:hover {
    background-color: var(--border-color);
    color: var(--primary-color);
}

/* =========================================
   Category Navigation & Mega Menu
   ========================================= */
.category-nav {
    padding: 15px 0;
    position: relative;
    z-index: 50;
    background-color: #121212;
}

.category-container {
    display: flex;
    flex-wrap: nowrap; 
    gap: 8px;
    justify-content: center;
    align-items: center;
    position: relative; 
}

.cat-pill {
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
    cursor: pointer;
    white-space: nowrap;
}

.cat-pill:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.cat-pill.highlight {
    color: var(--primary-color);
    font-weight: 600;
}

.cat-pill i {
    font-size: 11px;
    transition: transform 0.3s ease;
}

.dropdown-wrapper:hover .cat-pill {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.dropdown-wrapper:hover .cat-pill i {
    transform: rotate(180deg);
}

/* Mega Menu Styles */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%; 
    background-color: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    margin-top: 10px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.3s ease;
    z-index: 100;
}

.dropdown-wrapper:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 10px;
    padding: 30px 40px;
}

.mega-item {
    display: flex;
    align-items: center;
    gap: 15px;
    font-weight: 500;
    font-size: 14px;
    color: var(--text-dark);
    transition: color 0.2s;
}

.mega-item:hover {
    color: var(--primary-color);
}

.mega-icon {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: var(--bg-cream);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    border: 1px solid var(--border-color);
}

.mega-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mega-menu-footer {
    background-color: var(--bg-cream);
    padding: 15px 40px;
    border-top: 1px solid var(--border-color);
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-note { font-size: 13px; color: var(--text-light); font-style: italic; }
.footer-link { font-weight: 600; font-size: 14px; color: var(--text-dark); transition: 0.2s; }
.footer-link:hover { color: var(--primary-color); }

/* =========================================
   Hero Section (Banner Slider)
   ========================================= */
.hero {
    padding: 20px 0;
    background-color: #121212;
}

.hero-wrapper {
    position: relative;
    height: 350px;
    border-radius: 15px;
    overflow: hidden; /* <-- Ei line ta khub e important, jate slider er baire kisu na dekhay */
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Mobile responsive er jonno height aager motoy thakbe */
@media (max-width: 992px) {
    .hero-wrapper { height: 280px; } 
}
@media (max-width: 768px) {
    .hero-wrapper { height: 200px; } 
}
@media (max-width: 480px) {
    .hero-wrapper { height: 160px; } 
}

.hero-slide.active {
    opacity: 1;
    visibility: visible;
    /* Ekdom center e ebam normal size e chole asbe */
    transform: translateX(0) scale(1); 
    z-index: 2;
}
.banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.hero-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Nicher line theke background property remove kore display none kore deya holo */
    display: none; 
    z-index: 1;
}

.hero-overlay-content {
    position: absolute;
    top: 50%;
    left: 50px;
    transform: translateY(-50%);
    max-width: 500px;
    z-index: 2;
    color: white;
}

.hero-brand h4 {
    font-family: 'Playfair Display', serif;
    font-weight: 600;
    margin-bottom: 8px;
    color: white;
    font-size: 16px;
}
.hero-brand i { color: var(--primary-color); }

.hero-title {
    font-family: 'Playfair Display', serif;
    font-size: 36px;
    line-height: 1.2;
    margin-bottom: 12px;
}

.hero-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 20px;
}

.btn-shop {
    background-color: var(--primary-color);
    color: white;
    padding: 10px 30px;
    border-radius: 30px;
    font-weight: 500;
    display: inline-block;
    transition: 0.3s;
}

.btn-shop:hover { background-color: var(--primary-color-hover); }

.discount-badge {
    position: absolute;
    top: 25px;
    right: 30px;
    background-color: #1e1e1e;
    color: var(--text-dark);
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 3;
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
}

.discount-badge span { font-size: 10px; font-weight: 600; text-transform: uppercase; }
.discount-badge strong { font-size: 18px; margin: 2px 0; color: var(--primary-color); }

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: rgba(30, 30, 30, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3;
    transition: 0.3s;
    color: var(--text-dark);
}
.slider-btn:hover { 
    background-color: #333333; 
    color: var(--primary-color);
}
.slider-btn.left { left: 15px; }
.slider-btn.right { right: 15px; }

/* =========================================
   📱 MOBILE RESPONSIVE MEDIA QUERIES 📱
   ========================================= */

@media (max-width: 992px) {
    .search-bar { width: 300px; }
    .hero-slide { height: 280px; }
    .hero-title { font-size: 28px; }
}

@media (max-width: 768px) {
    .header-container { flex-wrap: wrap; gap: 15px; }
    .logo { width: 30%; }
    .header-icons { width: 45%; justify-content: flex-end; }
    .search-bar { width: 100%; order: 3; }
    
    .category-container {
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .category-container::-webkit-scrollbar { display: none; }
    
    .mega-menu {
        position: fixed; top: 200px; left: 10px; right: 10px;
        width: calc(100% - 20px); max-height: 50vh; overflow-y: auto;
    }
    .mega-menu-grid { grid-template-columns: repeat(2, 1fr); padding: 20px; gap: 15px; }

    .hero { padding: 10px 0; }
    .hero-slide { height: 200px; } 
    
    .hero-overlay-content { left: 15px; max-width: 85%; }
    .hero-brand h4 { font-size: 12px; margin-bottom: 4px; }
    .hero-title { font-size: 20px; margin-bottom: 8px; }
    .hero-subtitle { display: none; } 
    .btn-shop { padding: 8px 20px; font-size: 12px; }

    .discount-badge { width: 60px; height: 60px; top: 10px; right: 10px; }
    .discount-badge strong { font-size: 14px; }
    .discount-badge span { font-size: 8px; }
    
    .slider-btn { width: 30px; height: 30px; font-size: 12px; }
    .slider-btn.left { left: 10px; }
    .slider-btn.right { right: 10px; }
}

@media (max-width: 480px) {
    .logo h2 { font-size: 20px; }
    .mega-menu-grid { grid-template-columns: 1fr; } 
    .hero-slide { height: 160px; } 
    .hero-title { font-size: 18px; }
    .discount-badge { display: none; } 
}


/* =========================================
   Top Categories Section (Desktop & Base)
   ========================================= */
.top-categories {
    padding: 60px 0 40px; 
    background-color: #121212;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 40px;
}

.section-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.section-subtitle {
    font-size: 15px;
    color: var(--text-light);
}

.section-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.control-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 0.3s;
    font-size: 14px;
}

.control-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.see-all-btn {
    padding: 8px 20px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: 0.3s;
}

.see-all-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Category Carousel/Grid */
.category-carousel {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    overflow-x: auto;
    padding-bottom: 25px; /* Shadow er jonno space */
    scrollbar-width: none; /* Firefox e scrollbar hide korar jonno */
    -webkit-overflow-scrolling: touch;
}

.category-carousel::-webkit-scrollbar { 
    display: none; /* Chrome/Safari te scrollbar hide korar jonno */
}

.category-circle-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 150px;
    gap: 18px;
    transition: transform 0.3s ease;
}

.category-circle-item:hover {
    transform: translateY(-8px); /* Mouse rakhle sundor vabe upore uthbe */
}

/* Perfect Circle with White Gap (Image er moto) */
.circle-img-wrapper {
    width: 160px;
    height: 160px;
    border-radius: 50%;
    border: 2px solid var(--primary-color); /* Orange color border */
    padding: 6px; /* Ei padding tar jonnoi image ar border er majhe sada gap toiri hobe */
    background-color: #1e1e1e;
    transition: all 0.3s ease;
}

.category-circle-item:hover .circle-img-wrapper {
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.25); /* Premium orange shadow */
    border-color: var(--primary-color-hover);
}

.circle-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    background-color: #2a2a2a; /* Image load na hole ei color show korbe */
}

.category-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: center;
    transition: color 0.3s ease;
}

.category-circle-item:hover .category-name {
    color: var(--primary-color);
}

/* =========================================
   📱 MOBILE RESPONSIVE QUERIES (Top Categories)
   ========================================= */

/* Tablet View */
@media (max-width: 992px) {
    .circle-img-wrapper {
        width: 120px;
        height: 120px;
    }
    .category-circle-item {
        min-width: 110px;
    }
}

/* Mobile View (Phones) */
@media (max-width: 768px) {
    .top-categories { 
        padding: 40px 0 20px; 
    }
    
    .section-header { 
        flex-direction: column; 
        align-items: flex-start; 
        gap: 15px; 
        margin-bottom: 25px; 
    }
    
    .section-title { 
        font-size: 20px; 
    }
    
    .section-subtitle {
        font-size: 13px;
    }
    
    .section-controls { 
        width: 100%; 
        justify-content: flex-end; /* See All button ke dan dike nibe */
    }

    /* Mobile e arrow dorkar nai tai hide kora holo */
    .control-btn {
        display: none; 
    }
    
    .category-carousel { 
        justify-content: flex-start; 
        gap: 15px;
    }
    
    /* Mobile e image aro choto kora holo */
    .circle-img-wrapper { 
        width: 80px; 
        height: 80px; 
        padding: 3px; 
        border-width: 1.5px;
    }
    
    .category-circle-item { 
        min-width: 80px; 
        gap: 8px; 
    }
    
    .category-name { 
        font-size: 12px; 
    }
}

/* Small Mobile Screens */
@media (max-width: 480px) {
    .section-title { 
        font-size: 18px; 
    }
    
    /* Ekdom choto screen er jonno image aro compact */
    .circle-img-wrapper { 
        width: 70px; 
        height: 70px; 
    }
    
    .category-circle-item { 
        min-width: 70px; 
        gap: 6px; 
    }
    
    .category-name { 
        font-size: 11px; 
    }
}

/* =========================================
   Product Grid Section (Corner Badge Design)
   ========================================= */
.product-section {
    padding: 20px 0 60px;
    background-color: #121212; /* Dark background added */
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
}

.product-card {
    background: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden; 
    transition: all 0.3s ease;
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 10px 25px rgba(255, 107, 53, 0.15);
}

/* --- Image Wrapper (No Gap) --- */
.product-img-wrapper {
    position: relative;
    width: 100%;
    height: 220px; 
    background-color: #1e1e1e; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0; /* 👉 NO GAP */
    overflow: hidden;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.product-card:hover .product-img-wrapper img {
    transform: scale(1.05);
}

/* --- Discount Badge (Top Left Pill) --- */
.discount-badge-top {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: var(--primary-color); /* Orange */
    color: white;
    padding: 4px 10px;
    border-radius: 20px; /* Pill shape like image */
    font-size: 11px;
    font-weight: 700;
    z-index: 5;
    pointer-events: none;
}

/* --- 👉 THE CORNER PLUS BADGE (Like Image) --- */
.cart-corner-badge {
    position: absolute;
    top: 0;
    right: 0;
    width: 60px; /* ইমেজের মতো বড় সাইজ */
    height: 60px;
    background-color: var(--primary-color);
    /* 👉 নিচের বাম কোণা বাঁকানো (Curved effect) */
    border-bottom-left-radius: 35px; 
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px; /* আইকনটিকে সেন্টারে আনার জন্য এডজাস্টমেন্ট */
    padding-left: 10px;
    cursor: pointer;
    z-index: 10;
    
    /* 👉 Hover Animation Properties */
    opacity: 0;
    transform: translate(100%, -100%); /* কোণা থেকে স্লাইড করে আসবে */
    transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 👉 কার্ডে হভার করলে এটি দেখা যাবে */
.product-card:hover .cart-corner-badge {
    opacity: 1;
    transform: translate(0, 0);
}

.cart-corner-badge:hover {
    background-color: var(--primary-color-hover);
}

/* আইকনের ডিজাইন (সাদা গোল বর্ডারের ভেতরে) */
.cart-corner-badge i {
    color: white;
    font-size: 14px;
    border: 2px solid white;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* --- Product Info --- */
.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    text-align: left;
}

.product-brand {
    font-size: 11px;
    color: var(--primary-color); /* Orange Brand Name */
    font-weight: 600;
    margin-bottom: 6px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card:hover .product-title {
    color: var(--primary-color);
}

/* --- Price Section --- */
.product-price-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: auto;
}

.current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 13px;
    color: #777777;
    text-decoration: line-through;
    font-weight: 400;
}

/* =========================================
   📱 MOBILE RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .product-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .product-grid::-webkit-scrollbar { display: none; }
    
    .product-card { min-width: 180px; }
    .product-img-wrapper { height: 180px; }
    
    /* মোবাইলে Hover নেই, তাই আইকন সবসময় দেখাবে তবে একটু ছোট হবে */
    .cart-corner-badge {
        opacity: 1;
        transform: translate(0, 0);
        width: 45px;
        height: 45px;
        border-bottom-left-radius: 25px;
    }
    .cart-corner-badge i {
        width: 20px;
        height: 20px;
        font-size: 10px;
        border-width: 1.5px;
    }
}

@media (max-width: 480px) {
    .product-card { min-width: 160px; }
    .product-img-wrapper { height: 160px; }
    .product-info { padding: 10px; }
}

/* =========================================
   📱 MOBILE RESPONSIVE QUERIES (Product Section Fixed)
   ========================================= */

@media (max-width: 992px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 768px) {
    .product-section {
        padding: 30px 0 30px;
    }

    /* 👉 Header Fix for Mobile: Title & Button in 1 Row */
    .section-header {
        flex-direction: row; /* Force row direction */
        justify-content: space-between;
        align-items: center;
        margin-bottom: 20px;
        gap: 10px;
    }

    .section-title {
        font-size: 18px; /* টাইটেল একটু ছোট করা হয়েছে যাতে এক লাইনে ধরে */
        white-space: nowrap; /* টেক্সট ভাঙতে বাধা দেবে */
    }

    .see-all-btn {
        font-size: 12px;
        padding: 5px 12px;
        white-space: nowrap;
    }

    /* Product Slider Mode */
    .product-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .product-grid::-webkit-scrollbar { display: none; }
    
    .product-card {
        min-width: 170px; /* কার্ডের সাইজ এডজাস্ট করা হয়েছে */
        max-width: 170px;
    }
    
    .product-img-wrapper {
        height: 170px;
    }
    
    .product-title { 
        font-size: 13px; 
    }
    
    .current-price { 
        font-size: 15px; 
    }

    /* Mobile Cart Badge (Corner) */
    .cart-corner-badge {
        width: 45px;
        height: 45px;
        border-bottom-left-radius: 25px;
        opacity: 1; /* মোবাইলে সবসময় দেখাবে */
        transform: translate(0, 0);
    }
    
    .cart-corner-badge i {
        font-size: 12px;
        width: 22px;
        height: 22px;
    }
}

/* Small Mobile Screens (iPhone SE, etc) */
@media (max-width: 480px) {
    .section-title { font-size: 16px; }
    .see-all-btn { font-size: 11px; padding: 4px 10px; }
    
    .product-card { min-width: 150px; }
    .product-img-wrapper { height: 150px; }
    .product-info { padding: 10px; }
}

/* =========================================
   Trending Promotional Carousel Section
   ========================================= */
.trending-section {
    padding: 20px 0 60px;
    background-color: #121212;
}

.trending-section .section-header {
    margin-bottom: 25px;
}

/* Auto-Scrolling Wrapper */
.trending-carousel-wrapper {
    width: 100%;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    padding: 15px 0; 
    border-radius: 20px; /* 👉 কন্টেইনারের ভেতর সুন্দরভাবে সেট হওয়ার জন্য যোগ করা হয়েছে */
}

/* The Track that moves */
.trending-track {
    display: inline-flex;
    gap: 25px;
    width: max-content;
    /* ২০ সেকেন্ডে একবার ঘুরবে, মাউস নিলে থেমে যাবে */
    animation: infiniteScrollTicker 25s linear infinite;
    padding-left: 25px; /* Starting gap */
}

/* 👉 মাউস রাখলে অ্যানিমেশন থেমে যাবে যাতে কাস্টমার ক্লিক করতে পারে */
.trending-track:hover {
    animation-play-state: paused;
}

/* Banner Card Design */
.trending-banner {
    position: relative;
    width: 380px; /* ব্যানারের চওড়া সাইজ */
    height: 380px; /* ব্যানারের লম্বায় সাইজ (স্কয়ার) */
    border-radius: 20px;
    overflow: hidden;
    display: block;
    flex-shrink: 0; /* ফ্লেক্সবক্সে যাতে চিপে না যায় */
    box-shadow: 0 8px 20px rgba(0,0,0,0.5);
    transition: all 0.4s ease;
    cursor: pointer;
}

.trending-banner:hover {
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.25); /* Premium orange shadow */
    transform: translateY(-8px);
}

.trending-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.trending-banner:hover img {
    transform: scale(1.06);
}

/* Hover Overlay & Button */
.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: all 0.4s ease;
}

.trending-banner:hover .banner-overlay {
    opacity: 1;
}

.view-btn {
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 30px;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transform: translateY(20px); /* নিচে থেকে উপরে আসবে */
    transition: all 0.4s ease;
}

.trending-banner:hover .view-btn {
    transform: translateY(0);
}

/* CSS Keyframe Animation for Infinite Scroll */
@keyframes infiniteScrollTicker {
    0% {
        transform: translateX(0);
    }
    100% {
        /* ঠিক অর্ধেক পথ (১ম সেটের পর) সরে যাবে, যাতে কোনো ল্যাগ ছাড়া লুপ হয় */
        transform: translateX(calc(-50% - 12.5px)); 
    }
}

/* Add inside @media (max-width: 992px) */
@media (max-width: 992px) {
    .trending-banner {
        width: 320px;
        height: 320px;
    }
}

/* Add inside @media (max-width: 768px) */
@media (max-width: 768px) {
    .trending-section { padding: 30px 0; }
    
    .trending-banner {
        width: 280px;
        height: 280px;
        border-radius: 16px;
    }
    
    /* মোবাইলেও অটো-স্ক্রল হবে, কিন্তু স্পিড একটু রিল্যাক্সড */
    .trending-track {
        gap: 15px;
        padding-left: 15px;
        animation: infiniteScrollTicker 20s linear infinite;
    }
    
    @keyframes infiniteScrollTicker {
        0% { transform: translateX(0); }
        100% { transform: translateX(calc(-50% - 7.5px)); }
    }
    
    /* মোবাইলে হোভার নেই, তাই বাটনটা সবসময় हल्का (light) দেখাবে */
    .banner-overlay {
        opacity: 1;
        background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 50%);
        align-items: flex-end;
        padding-bottom: 20px;
    }
    
    .view-btn {
        transform: translateY(0);
        padding: 8px 20px;
        font-size: 13px;
    }
}

/* Add inside @media (max-width: 480px) */
@media (max-width: 480px) {
    .trending-banner {
        width: 250px;
        height: 250px;
    }
}

/* =========================================
   Offers & Coupons Section (Premium Design)
   ========================================= */
.offers-section {
    padding: 30px 0 60px;
    background-color: #121212;
}

.coupons-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

/* Coupon Card Styling */
.coupon-card {
    display: flex;
    background: linear-gradient(135deg, #2a2a2a 0%, #1e1e1e 100%);
    border: 1px solid rgba(255, 107, 53, 0.25);
    border-radius: 12px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    overflow: hidden;
}

.coupon-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 25px rgba(255, 107, 53, 0.15);
    border-color: var(--primary-color);
}

/* Coupon Left Compartment */
.coupon-left {
    padding: 20px 25px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.coupon-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.coupon-desc {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.coupon-code-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.use-code-text {
    font-size: 12px;
    color: var(--text-dark);
    font-weight: 500;
}

/* Promo Code Badge */
.promo-code {
    background-color: rgba(255, 107, 53, 0.1);
    color: var(--primary-color);
    border: 1px dashed var(--primary-color);
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    transition: 0.3s;
}

.coupon-card:hover .promo-code {
    background-color: var(--primary-color);
    color: white;
}

.coupon-expiry {
    font-size: 12px;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 500;
}

/* Coupon Right Compartment (The Cut-out effect) */
.coupon-right {
    min-width: 120px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Dashed Divider Line */
    border-left: 2px dashed rgba(255, 107, 53, 0.3);
    position: relative;
    background-color: rgba(255, 107, 53, 0.05);
}

.discount-label {
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

.discount-value {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 5px 0;
}

.discount-value.text-md {
    font-size: 24px; /* For longer text like "Delivery" */
}

/* Add inside @media (max-width: 992px) */
@media (max-width: 992px) {
    .coupons-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Add inside @media (max-width: 768px) */
@media (max-width: 768px) {
    .coupons-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 20px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .coupons-grid::-webkit-scrollbar { display: none; }
    
    .coupon-card {
        min-width: 300px; /* মোবাইলের জন্য কুপনের সাইজ ফিক্সড করা হলো */
    }
    
    .coupon-left { padding: 15px; }
    .coupon-right { padding: 15px; min-width: 100px; }
    
    .coupon-title { font-size: 15px; }
    .discount-value { font-size: 26px; }
    .discount-value.text-md { font-size: 20px; }
}

/* Add inside @media (max-width: 480px) */
@media (max-width: 480px) {
    .coupon-card { min-width: 280px; }
    .promo-code { font-size: 12px; padding: 3px 8px; }
}

/* =========================================
   Our Products Section (Tab Filters)
   ========================================= */
.our-products-section {
    padding: 30px 0 60px;
    background-color: #121212;
}

/* 👉 Category Filter Tabs (Centered completely) */
.product-filters {
    display: flex;
    justify-content: center; /* একদম মাঝামাঝি */
    align-items: center;
    gap: 15px;
    margin-bottom: 35px;
    flex-wrap: wrap; 
    width: 100%;
}

.filter-btn {
    padding: 8px 24px;
    border-radius: 30px;
    border: none;
    background-color: #2a2a2a; 
    color: var(--text-dark);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover:not(.active) {
    background-color: #3a3a3a;
    color: var(--primary-color);
}

/* Active State (Orange + Shadow) */
.filter-btn.active {
    background-color: var(--primary-color);
    color: white;
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.35); 
}

/* =========================================
   Tab Switching Logic & Animation
   ========================================= */
.tab-content {
    display: none; /* ডিফল্টভাবে সব ট্যাব লুকানো থাকবে */
}

.tab-content.active-tab {
    display: grid; /* অ্যাক্টিভ হলে গ্রিড দেখাবে */
    animation: fadeAndSlideIn 0.5s ease-out forwards; /* সুন্দর ফেড-ইন এনিমেশন */
}

@keyframes fadeAndSlideIn {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =========================================
   📱 MOBILE RESPONSIVE QUERIES
   ========================================= */
@media (max-width: 768px) {
    .our-products-section { padding: 30px 0; }
    
    /* Center and format tabs on mobile */
    .product-filters {
        justify-content: center; 
        flex-wrap: wrap; 
        margin-bottom: 25px;
        gap: 10px;
    }
    
    .filter-btn {
        font-size: 12px;
        padding: 6px 16px;
    }

    /* Make active tab horizontally scrollable on mobile */
    .tab-content.active-tab {
        display: flex; /* গ্রিডের বদলে ফ্লেক্স যাতে সোয়াইপ করা যায় */
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .tab-content.active-tab::-webkit-scrollbar { display: none; }
}

/* =========================================
   Featured in Videos (True Infinite 3D Coverflow & Auto-Slide)
   ========================================= */
.featured-videos-section {
    padding: 40px 0 60px;
    background-color: #121212;
    overflow: hidden; /* স্ক্রিনের বাইরে চলে যাওয়া অংশ লুকাবে */
}

/* 👉 Slider Container */
.coverflow-slider {
    position: relative;
    width: 100%;
    height: 520px; 
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    perspective: 1200px;
}

/* 👉 Default Card State */
.vid-card {
    position: absolute !important; 
    width: 270px;
    background: #1e1e1e;
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
    /* অ্যানিমেশন আরো স্মুথ করার জন্য 0.6s দেওয়া হলো */
    transition: all 0.6s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
    overflow: hidden;
    left: 50%;
    margin-left: -135px; /* Width (270) এর ঠিক অর্ধেক */
    top: 20px;
}

/* =========================================
   3D Active Classes (Only 5 will be visible)
   ========================================= */

/* ১. Center Card (মাঝেরটি সবচেয়ে বড়) */
.vid-card.center {
    transform: translateX(0) scale(1.15) !important;
    z-index: 5 !important;
    opacity: 1 !important;
    pointer-events: auto !important; /* ক্লিক করা যাবে */
    box-shadow: 0 15px 35px rgba(0,0,0,0.7) !important;
}

/* ২. Left & Right Cards (মাঝেরটির দুপাশে) */
.vid-card.prev-1 {
    transform: translateX(-240px) scale(0.95) !important; /* বামে */
    z-index: 4 !important;
    opacity: 0.9 !important;
    pointer-events: auto !important;
}

.vid-card.next-1 {
    transform: translateX(240px) scale(0.95) !important; /* ডানে */
    z-index: 4 !important;
    opacity: 0.9 !important;
    pointer-events: auto !important;
}

/* ৩. Far Left & Far Right Cards (একদম কিনারে) */
.vid-card.prev-2 {
    transform: translateX(-460px) scale(0.8) !important; /* আরো বামে */
    z-index: 3 !important;
    opacity: 0.6 !important;
    pointer-events: auto !important;
}

.vid-card.next-2 {
    transform: translateX(460px) scale(0.8) !important; /* আরো ডানে */
    z-index: 3 !important;
    opacity: 0.6 !important;
    pointer-events: auto !important;
}

/* =========================================
   Hidden Cards (লুকানো কার্ডগুলো ডানে-বামে থাকবে)
   ========================================= */
.vid-card.hidden-left {
    transform: translateX(-700px) scale(0.6) !important; /* স্ক্রিনের বামে গিয়ে লুকাবে */
    opacity: 0 !important;
    pointer-events: none !important; /* ক্লিক অফ */
    z-index: 1 !important;
}

.vid-card.hidden-right {
    transform: translateX(700px) scale(0.6) !important; /* স্ক্রিনের ডানে গিয়ে লুকাবে */
    opacity: 0 !important;
    pointer-events: none !important;
    z-index: 1 !important;
}

/* =========================================
   Card Inside Design
   ========================================= */
.vid-thumb { 
    width: 100%; 
    height: 380px; 
    position: relative; 
}
.vid-thumb img { 
    width: 100%; 
    height: 100%; 
    object-fit: cover; 
}

/* Mute Button */
.vid-mute {
    position: absolute; 
    top: 15px; 
    right: 15px;
    background: rgba(0, 0, 0, 0.8); 
    color: white;
    width: 30px; 
    height: 30px; 
    border-radius: 50%;
    display: flex; 
    justify-content: center; 
    align-items: center;
    font-size: 13px; 
    z-index: 2;
}

/* Info Box */
.vid-info { 
    padding: 15px; 
    display: flex; 
    align-items: center; 
    gap: 12px; 
    background: #1e1e1e; 
    height: 85px; 
}
.vid-mini-prod { 
    width: 45px; 
    height: 45px; 
    object-fit: contain; 
}
.vid-text { 
    flex-grow: 1; 
}
.vid-text h4 { 
    font-size: 13px; 
    font-weight: 500; 
    color: var(--text-dark); 
    margin-bottom: 4px; 
    display: -webkit-box; 
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical; 
    overflow: hidden; 
}
.vid-text .price { 
    font-size: 15px; 
    font-weight: 700; 
    color: #f0f0f0; 
}
.vid-arrow { 
    color: #888; 
    font-size: 16px; 
    transition: 0.3s; 
}
.vid-card:hover .vid-arrow { 
    color: var(--primary-color); 
}

/* =========================================
   📱 Mobile View (Swipe Mode)
   ========================================= */
@media (max-width: 768px) {
    .coverflow-slider {
        height: auto; 
        justify-content: flex-start; 
        align-items: center;
        overflow-x: auto; 
        padding: 20px 10px;
        -webkit-overflow-scrolling: touch; 
        scrollbar-width: none;
        display: flex !important; /* মোবাইলে Flexbox চালু */
    }
    
    .vid-card {
        position: relative !important; /* মোবাইলে Absolute বন্ধ */
        left: auto !important; 
        top: auto !important; 
        margin-left: 0 !important;
        transform: none !important; 
        opacity: 1 !important; 
        pointer-events: auto !important; 
        visibility: visible !important; /* মোবাইলে সব কার্ড দেখাবে */
        z-index: 1 !important; 
        min-width: 250px !important; 
        margin: 0 10px !important; 
        flex-shrink: 0 !important;
    }
}

/* =========================================
   HOT SALE Badge
   ========================================= */
.hot-sale-badge {
    position: absolute;
    top: 40px; /* ডিসকাউন্ট ব্যাজের ঠিক নিচে থাকবে */
    left: 10px;
    background-color: #1c2b4b; /* ডার্ক ব্লু কালার */
    color: white;
    padding: 3px 10px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 700;
    z-index: 5;
    letter-spacing: 0.5px;
    pointer-events: none;
}

/* =========================================
   Shop By Skincare Tab Switcher CSS
   ========================================= */
.skincare-section {
    background-color: #121212; /* Dark background specifically added here */
    padding: 30px 0 60px;
}

.skincare-tab-content {
    display: none;
}

.skincare-tab-content.active-tab {
    display: grid; 
    animation: fadeAndSlideIn 0.5s ease-out forwards;
}

/* Mobile responsive for this specific section */
@media (max-width: 768px) {
    .skincare-tab-content.active-tab {
        display: flex;
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .skincare-tab-content.active-tab::-webkit-scrollbar {
        display: none;
    }
}

/* =========================================
   Our Brands Section
   ========================================= */
.our-brands-section {
    padding: 30px 0 60px;
    background-color: #121212;
}

.brand-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 20px;
}

.brand-card {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 190px; /* কার্ডের হাইট */
    padding: 20px;
    background-color: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.brand-card:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    transform: translateY(-4px); /* মাউস নিলে হালকা উপরে উঠবে */
}

/* লোগো সব সময় মাঝে থাকবে */
.brand-logo {
    flex-grow: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-bottom: 10px;
}

.brand-logo img {
    max-width: 90%;
    max-height: 50px;
    object-fit: contain;
}

/* ব্র্যান্ডের নাম নিচে বামে থাকবে */
.brand-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: left; /* ছবির মতো বাম পাশে */
}

.brand-card:hover .brand-name {
    color: var(--primary-color);
}

/* =========================================
   📱 Mobile Responsive for Our Brands
   ========================================= */
@media (max-width: 992px) {
    .brand-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .our-brands-section {
        padding: 20px 0 40px;
    }
    
    .brand-grid {
        display: flex;
        overflow-x: auto;
        padding-bottom: 15px;
        gap: 15px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .brand-grid::-webkit-scrollbar {
        display: none;
    }

    .brand-card {
        min-width: 140px;
        height: 160px;
        padding: 15px;
    }

    .brand-name {
        font-size: 11px;
    }
}

@media (max-width: 480px) {
    .brand-card {
        min-width: 130px;
        height: 140px;
        padding: 12px;
    }
}

/* =========================================
   Footer Section
   ========================================= */
.footer {
    background-color: #121212;
    padding-top: 50px;
    border-top: 1px solid var(--border-color);
}

.footer-heading {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 25px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* --- Popular Searches --- */
.footer-popular-searches {
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 1px solid var(--border-color);
}

.footer-popular-searches p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 2.2;
}

.footer-popular-searches a {
    color: var(--text-light);
    transition: color 0.3s ease;
}

.footer-popular-searches a:hover {
    color: var(--primary-color);
}

/* --- Footer Main Columns --- */
.footer-main {
    display: grid;
    grid-template-columns: 2fr 1fr 1.5fr 1fr;
    gap: 30px;
    margin-bottom: 40px;
}

/* Contact Info */
.footer-logo {
    margin-bottom: 25px;
}

.footer-logo h2 {
    font-family: 'Playfair Display', serif;
    font-size: 20px;
    color: var(--text-dark);
}

.footer-logo sup {
    font-size: 10px;
}

.contact-list {
    list-style: none;
}

.contact-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.contact-list i {
    color: var(--primary-color); /* আইকনগুলো কমলা রঙের */
    font-size: 16px;
    width: 20px;
    text-align: center;
}

/* Quick Links & Information */
.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    font-size: 14px;
    color: var(--text-light);
    transition: all 0.3s ease;
    display: inline-block;
}

.footer-links a:hover {
    color: var(--primary-color);
    transform: translateX(5px); /* হোভার করলে হালকা ডানে সরবে */
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.social-icons a {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 8px; /* ইমেজের মতো হালকা রাউন্ডেড স্কয়ার */
    color: var(--text-light);
    font-size: 16px;
    transition: all 0.3s ease;
}

.social-icons a:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-3px);
}

/* --- Footer Bottom --- */
.footer-bottom {
    background-color: #0a0a0a; /* হালকা গ্রে ব্যাকগ্রাউন্ড */
    padding: 20px 0;
    text-align: center;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 13px;
    color: var(--text-light);
}

/* =========================================
   📱 Mobile Responsive (Footer)
   ========================================= */
@media (max-width: 992px) {
    .footer-main {
        grid-template-columns: repeat(2, 1fr);
        gap: 40px 20px;
    }
}

@media (max-width: 768px) {
    .footer-popular-searches {
        display: none; /* মোবাইলে জনপ্রিয় সার্চগুলো লুকিয়ে রাখা হলো যাতে ভিজি না লাগে */
    }
    
    .footer-main {
        grid-template-columns: 1fr;
        gap: 30px;
        text-align: center;
    }
    
    .contact-list li {
        justify-content: center;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .footer-links a:hover {
        transform: translateX(0);
    }
}

/* --- Home Page Hero Search Form Fix --- */
.light-glass .btn-search {
    white-space: nowrap !important; /* Text jeno konovabei 2 line e na jay */
    flex-shrink: 0 !important; /* Desktop e jor kore button choto kora bondho korlam */
}

@media (max-width: 767px) {
    /* Mobile View - Check-in/Check-out pasapasi */
    .light-glass .form-row {
        display: flex;
        gap: 15px;
        width: 100%;
    }
    .light-glass .form-row .input-group {
        width: 50%; /* Dui dike soman jayga nibe */
    }
    .light-glass .btn-search {
        width: 100% !important; /* Mobile e button full thakbe */
        margin-top: 10px;
    }
}

@media (min-width: 768px) {
    /* Desktop View - Button width thik thakbe */
    .light-glass {
        flex-wrap: nowrap !important; /* Ek line ei sob thakbe */
    }
    .light-glass .form-row {
        flex: 2; /* Date picker gulo double space nibe */
        display: flex;
        gap: 15px;
    }
    .light-glass > .input-group {
        flex: 1; /* Guests er select option single space nibe */
    }
    .light-glass .btn-search {
        width: 200px !important; /* Button er fixed chawra */
        flex-basis: 200px !important; /* Flex container eo fixed size */
        height: 52px;
        padding: 0 15px;
    }
}


/* =========================================
   Single Product Page Styles
   ========================================= */
.single-product-section {
    padding: 40px 0 80px;
    background-color: #121212;
}

.product-container {
    display: flex;
    gap: 50px;
    align-items: flex-start;
}

/* --- Left: Gallery --- */
.product-gallery {
    width: 55%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

/* --- Left: Gallery --- */
.main-image-wrapper {
    position: relative;
    width: 100%;
    height: 700px; /* <--- হাইট বাড়ানো হয়েছে */
    background-color: #1e1e1e;
    border-radius: 12px;
    border: 1px solid var(--border-color);
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

.main-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* ছবি যেন না ফাটে বা চ্যাপ্টা না হয় */
    transition: transform 0.3s ease;
}

/* Badges & Actions over image */
.badges-left {
    position: absolute;
    top: 20px;
    left: 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    z-index: 2;
}

.badge-discount {
    background-color: var(--primary-color);
    color: white;
    font-size: 12px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.badge-hot {
    background-color: #1c2b4b;
    color: white;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 20px;
}

.action-icons-right {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    z-index: 2;
}

.action-btn {
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: rgba(30, 30, 30, 0.7);
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    cursor: pointer;
    transition: 0.3s;
}

.action-btn:hover {
    background-color: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(30, 30, 30, 0.8);
    border: none;
    color: var(--text-dark);
    font-size: 16px;
    cursor: pointer;
    z-index: 2;
    transition: 0.3s;
}

.gallery-nav:hover {
    background-color: var(--primary-color);
    color: white;
}

.gallery-nav.prev { left: 15px; }
.gallery-nav.next { right: 15px; }

/* Thumbnails */
.thumbnail-list {
    display: flex;
    justify-content: center;
    gap: 15px;
}

.thumb-item {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: 0.3s;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active, .thumb-item:hover {
    border-color: var(--primary-color);
    opacity: 1;
}

/* --- Right: Product Details --- */
.product-details {
    width: 45%;
    display: flex;
    flex-direction: column;
}

.breadcrumb {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 15px;
}

.breadcrumb a { transition: 0.3s; }
.breadcrumb a:hover { color: var(--primary-color); }
.brand-link { font-weight: 700; color: var(--text-dark) !important; text-decoration: underline; text-underline-offset: 3px; }

.product-title {
    font-size: 19px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.3;
    margin-bottom: 10px;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 25px;
}

.stars i { color: #555; font-size: 14px; }
.rating-text { font-size: 14px; color: var(--text-light); }

.product-price-box {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
}

.price-current {
    font-size: 32px;
    font-weight: 700;
    color: var(--primary-color);
}

.price-old {
    font-size: 18px;
    color: #777;
    text-decoration: line-through;
}

.price-badge {
    background-color: #2a2a2a;
    color: var(--text-dark);
    font-size: 12px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
}

/* Trust Badges */
.trust-badges-row {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.trust-badge {
    background-color: #1e1e1e;
    border: 1px solid var(--border-color);
    padding: 10px 15px;
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
}

.trust-badge i { color: var(--primary-color); font-size: 16px; }

/* Actions (Qty + Buttons) */
.purchase-actions {
    margin-bottom: 30px;
}

.qty-selector {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.qty-label {
    font-size: 15px;
    color: var(--text-dark);
    font-weight: 500;
}

.qty-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    background-color: #1e1e1e;
}

.qty-controls button {
    background: transparent;
    border: none;
    color: var(--text-dark);
    width: 30px;
    height: 30px;
    cursor: pointer;
    transition: 0.3s;
}

.qty-controls button:hover { background-color: var(--border-color); color: var(--primary-color); }
.qty-controls input {
    width: 40px;
    height: 40px;
    border: none;
    border-left: 1px solid var(--border-color);
    border-right: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-dark);
    text-align: center;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    outline: none;
}

/* Hide number arrows */
.qty-controls input::-webkit-outer-spin-button,
.qty-controls input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.action-buttons {
    display: flex;
    gap: 15px;
}

.action-buttons button {
    flex: 1;
    padding: 14px 20px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    transition: 0.3s;
    border: none;
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: white;
}

.btn-add-cart:hover {
    background-color: #e55a2b;
    transform: translateY(-2px);
}

.btn-buy-now {
    background-color: #2a2a2a;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-buy-now:hover {
    background-color: #333;
    border-color: var(--text-light);
    transform: translateY(-2px);
}

/* Info Card */
.info-card {
    border: 1px solid var(--border-color);
    border-radius: 12px;
    background-color: #1e1e1e;
    padding: 25px;
}

.info-row {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.info-row:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.info-row i {
    font-size: 18px;
    margin-top: 3px;
    color: var(--text-dark);
}

.info-row strong {
    font-size: 14px;
    color: var(--text-dark);
    display: block;
    margin-bottom: 5px;
}

.notes-content p {
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.6;
}

.social-share-btns {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.share-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 14px;
    transition: 0.3s;
    text-decoration: none;
}

.share-btn:hover { transform: translateY(-3px); opacity: 0.9; }

/* Social Colors */
.share-btn.link { background-color: #555; }
.share-btn.fb { background-color: #1877F2; }
.share-btn.tw { background-color: #1DA1F2; }
.share-btn.wa { background-color: #25D366; }
.share-btn.in { background-color: #0A66C2; }
.share-btn.copy { background-color: #333; border: 1px solid var(--border-color); color: var(--text-dark); }

/* Mobile Responsive */
@media (max-width: 992px) {
    .product-container { flex-direction: column; }
    .product-gallery, .product-details { width: 100%; }
    .main-image-wrapper { height: 500px; } /* ট্যাবলেটে হাইট বাড়ানো হয়েছে */
}

@media (max-width: 480px) {
    .action-buttons { flex-direction: column; }
    .trust-badges-row { flex-direction: column; gap: 10px; }
    .product-title { font-size: 22px; }
    .main-image-wrapper { height: 380px; } /* মোবাইলে হাইট বাড়ানো হয়েছে */
}


/* =========================================
   Product Tabs, Description & Review Section
   ========================================= */
.product-tabs-section {
    padding: 20px 0 80px;
    background-color: #121212;
}

/* --- Tabs Header --- */
.prod-tabs-header {
    display: flex;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 40px;
}

.prod-tab-btn {
    flex: 1; /* দুটি ট্যাব সমান জায়গা নেবে */
    background: transparent;
    border: none;
    padding: 15px 20px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

/* Active Tab Styling (ডার্ক মোডের সাথে মিলিয়ে) */
.prod-tab-btn.active {
    background-color: #1e1e1e; /* কার্ডের মতো ব্যাকগ্রাউন্ড */
    color: var(--text-dark);
    border-top: 3px solid var(--primary-color); /* উপরে অরেঞ্জ বর্ডার */
}

.prod-tab-btn:hover:not(.active) {
    color: var(--text-dark);
    background-color: rgba(255, 255, 255, 0.02);
}

/* --- Tab Content Area (Smooth Fade In) --- */
.prod-tab-pane {
    display: none;
    opacity: 0;
}

/* যখন ট্যাব অ্যাক্টিভ হবে তখন এই অ্যানিমেশন কাজ করবে */
.prod-tab-pane.active {
    display: block;
    animation: smoothFade 0.4s ease-in-out forwards;
}

/* স্মুথ ফেড ইন অ্যানিমেশন */
@keyframes smoothFade {
    0% {
        opacity: 0;
        transform: translateY(10px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Description Content --- */
.desc-content-box {
    margin-bottom: 40px;
}

.desc-title {
    font-size: 22px;
    color: var(--text-dark);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.desc-subtitle {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 12px;
}

.desc-para {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
    margin-bottom: 15px;
}

.see-more-link {
    color: var(--primary-color);
    font-weight: 500;
    text-decoration: none;
    transition: 0.3s;
}

.see-more-link:hover {
    text-decoration: underline;
}

/* --- Empty Reviews Placeholder --- */
.empty-reviews-box {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 50px 20px;
    text-align: center;
    margin-bottom: 40px;
    border: 1px solid var(--border-color);
}

.review-star-icon {
    font-size: 40px;
    color: #555;
    margin-bottom: 15px;
}

.empty-reviews-box h4 {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.empty-reviews-box p {
    font-size: 14px;
    color: var(--text-light);
}

/* --- Review Form Box --- */
.review-form-box {
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 30px;
    border: 1px solid var(--border-color);
}

.form-title {
    font-size: 18px;
    color: var(--text-dark);
    margin-bottom: 25px;
}

.form-row-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 25px;
}

.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.input-group input {
    width: 100%;
    padding: 12px 15px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.3s;
}

.input-group input:focus {
    border-color: var(--primary-color);
}

.btn-verify-review {
    background-color: transparent;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
    padding: 12px 25px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: 0.3s;
    margin-bottom: 10px;
}

.btn-verify-review:hover {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.form-note {
    font-size: 12px;
    color: var(--text-light);
}

/* --- Mobile Responsive for this section --- */
@media (max-width: 768px) {
    .prod-tab-btn { font-size: 14px; padding: 12px 10px; }
    .form-row-3 { grid-template-columns: 1fr; gap: 15px; }
    .review-form-box { padding: 20px; }
    .desc-title { font-size: 18px; }
}


/* =========================================
   Related Products Section (Fixed: 5 Items Per Row)
   ========================================= */
.related-products-section {
    padding: 20px 0 80px;
    background-color: #121212;
}

.related-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 30px;
}

.section-title-wrapper {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

/* Navigation Arrows */
.related-nav-btns {
    display: flex;
    gap: 12px;
}

.rel-nav-btn {
    width: 38px;
    height: 38px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 8px; 
    font-size: 14px;
    cursor: pointer;
    transition: 0.3s;
    opacity: 0.6;
    display: flex;
    justify-content: center;
    align-items: center;
}

.rel-nav-btn:hover {
    opacity: 1;
    transform: scale(1.05);
}

/* Slider Container */
.related-product-slider {
    display: flex;
    gap: 20px; /* কার্ডগুলোর মাঝখানের গ্যাপ */
    overflow-x: auto; 
    scroll-behavior: smooth;
    padding-bottom: 25px; 
    scrollbar-width: none; 
}

.related-product-slider::-webkit-scrollbar {
    display: none; 
}

/* 👉 FORCING EXACTLY 5 CARDS PER ROW 👈 */
.related-product-slider .product-card {
    /* 100% জায়গা থেকে ৪টি গ্যাপ (4 * 20 = 80px) বাদ দিয়ে ৫ দিয়ে ভাগ */
    flex: 0 0 calc((100% - 80px) / 5); 
    max-width: calc((100% - 80px) / 5);
}

/* =========================================
   Mobile Responsive (Related Products)
   ========================================= */
@media (max-width: 992px) {
    /* ট্যাবলেটে ৩টা কার্ড দেখাবে */
    .related-product-slider .product-card {
        flex: 0 0 calc((100% - 40px) / 3); 
        max-width: calc((100% - 40px) / 3);
    }
}

@media (max-width: 768px) {
    /* মোবাইলে ২.৫ টা কার্ড দেখাবে (স্ক্রল করার জন্য) */
    .related-product-slider .product-card {
        flex: 0 0 170px; 
        max-width: 170px;
    }
    .rel-nav-btn {
        width: 32px;
        height: 32px;
    }
}



/* =========================================
   Shop / All Products Page Styles
   ========================================= */
.shop-page-wrapper {
    padding: 40px 0 80px;
    background-color: #121212;
}

/* --- Shop Header (Title & Sorting) --- */
.shop-header-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
}

.shop-page-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.shop-result-count {
    font-size: 14px;
    color: var(--text-light);
}

.shop-sorting {
    display: flex;
    align-items: center;
    gap: 15px;
}

.shop-sorting label {
    font-size: 14px;
    color: var(--text-light);
}

.shop-sorting select {
    padding: 10px 15px;
    background-color: #1e1e1e;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
    transition: 0.3s ease;
}

.shop-sorting select:focus {
    border-color: var(--primary-color);
}

/* --- Shop Grid Layout (Exactly 5 columns) --- */
.shop-product-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    margin-bottom: 60px;
}

/* 👉 Desktop e Product Title Choto Kora Holo 👈 */
.shop-product-grid .product-title {
    font-size: 13px; /* Default 14px theke choto kore 13px kora holo */
    line-height: 1.4;
}

/* --- Pagination Styling --- */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.page-btn {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background-color: #1e1e1e;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    font-weight: 500;
    transition: 0.3s ease;
    text-decoration: none;
}

.page-btn:hover {
    background-color: var(--border-color);
    color: var(--primary-color);
}

.page-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.page-dots {
    color: var(--text-light);
    font-weight: 600;
    padding: 0 5px;
}

/* =========================================
   Mobile Responsive (Shop Page)
   ========================================= */
@media (max-width: 1200px) {
    .shop-product-grid {
        grid-template-columns: repeat(4, 1fr); /* Choto laptop e 4ta */
    }
}

@media (max-width: 992px) {
    .shop-product-grid {
        grid-template-columns: repeat(3, 1fr); /* Tablet e 3ta */
    }
}

@media (max-width: 768px) {
    .shop-header-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
    
    .shop-product-grid {
        grid-template-columns: repeat(2, 1fr); /* Mobile e 2ta */
        gap: 15px;
    }
    
    .shop-page-title { 
        font-size: 24px; 
    }
    
    .page-btn { 
        width: 35px; 
        height: 35px; 
        font-size: 13px; 
    }

    /* 👉 Mobile e Product Title Aro Choto Kora Holo (11px) 👈 */
    .shop-product-grid .product-title {
        font-size: 11px !important; 
        line-height: 1.3 !important;
    }
}

@media (max-width: 480px) {
    .shop-product-grid {
        gap: 10px;
    }
}


/* =========================================
   Checkout Page Styles (Updated & Fixed)
   ========================================= */
.checkout-section {
    padding: 40px 0 80px;
    background-color: #121212;
}

.page-main-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.checkout-grid {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* Columns */
.checkout-left {
    width: 60%;
}

.checkout-right {
    width: 40%;
    position: sticky; 
    top: 20px;
}

/* Card Styling */
.checkout-card {
    background-color: #1e1e1e;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
}

.checkout-card-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Form Styles & Spacing Fixes */
.form-row-2 {
    display: flex;
    gap: 20px;
    width: 100%;
    margin-bottom: 20px; /* Row এর নিচে সুন্দর গ্যাপ */
}

.form-row-2 .input-group {
    flex: 1; /* ফুল-উইথ ফিক্স, কোনো ফাঁকা জায়গা থাকবে না */
    margin-bottom: 0; 
}

.input-group {
    margin-bottom: 20px; /* সিঙ্গেল ইনপুটের নিচে গ্যাপ */
}

.input-group label {
    display: block;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 8px;
    font-weight: 500;
}

.input-group input, 
.input-group select, 
.input-group textarea {
    width: 100%;
    padding: 12px 15px;
    background-color: transparent;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: 0.3s;
}

.input-group textarea {
    resize: vertical;
}

.input-group input:focus, 
.input-group select:focus, 
.input-group textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
}

.input-group select option {
    background-color: #1e1e1e;
    color: var(--text-dark);
}

/* Order Summary Items */
.order-items-list {
    margin-bottom: 25px;
}

.order-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px dashed var(--border-color);
    margin-bottom: 15px;
}

.order-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.item-img {
    position: relative;
    width: 65px;
    height: 65px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background-color: #2a2a2a;
}

.item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 8px;
}

.item-qty-badge {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: white;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 11px;
    font-weight: 600;
}

.item-details {
    flex-grow: 1;
}

.item-name {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-dark);
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.item-price {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Order Totals & Delivery Options */
.order-totals {
    background-color: #252525;
    padding: 20px;
    border-radius: 8px;
    margin-bottom: 25px;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 12px;
}

/* Delivery Options CSS */
.delivery-options-box {
    margin: 15px 0;
    padding: 15px 0;
    border-top: 1px dashed var(--border-color);
    border-bottom: 1px dashed var(--border-color);
}

.delivery-options-box h4 {
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 12px;
    font-weight: 600;
}

.delivery-radio {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    cursor: pointer;
}

.delivery-radio:last-child {
    margin-bottom: 0;
}

.delivery-radio input {
    accent-color: var(--primary-color);
    margin-right: 8px;
    transform: scale(1.1);
    cursor: pointer;
}

.delivery-label-text {
    font-size: 13px;
    color: var(--text-light);
}

.delivery-price {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-dark);
}

/* Grand Total */
.grand-total {
    margin-top: 15px;
    padding-top: 15px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0;
}

.grand-total .brand-price {
    color: var(--primary-color);
    font-size: 22px;
}

/* Payment Methods */
.payment-methods {
    margin-bottom: 25px;
}

.payment-title {
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.payment-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: 0.3s;
}

.payment-option:hover {
    border-color: #555;
}

.payment-option input[type="radio"] {
    display: none;
}

.custom-radio {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #555;
    position: relative;
    margin-top: 2px;
    transition: 0.3s;
}

.payment-option input[type="radio"]:checked + .custom-radio {
    border-color: var(--primary-color);
}

.payment-option input[type="radio"]:checked + .custom-radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background-color: var(--primary-color);
    border-radius: 50%;
}

.payment-option input[type="radio"]:checked ~ .payment-info strong {
    color: var(--primary-color);
}

.payment-info strong {
    display: block;
    font-size: 14px;
    color: var(--text-dark);
    margin-bottom: 4px;
    transition: 0.3s;
}

.payment-info p {
    font-size: 12px;
    color: var(--text-light);
    margin: 0;
}

/* Place Order Button */
.btn-place-order {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    padding: 16px;
    border-radius: 30px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.3s;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.btn-place-order:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* =========================================
   Mobile Responsive (Checkout)
   ========================================= */
@media (max-width: 992px) {
    .checkout-grid {
        flex-direction: column;
    }
    
    .checkout-left, .checkout-right {
        width: 100%;
    }

    .checkout-right {
        position: static; 
    }
}

@media (max-width: 768px) {
    .form-row-2 {
        flex-direction: column;
        gap: 0;
        margin-bottom: 0;
    }

    .input-group {
        margin-bottom: 15px;
    }
    
    .checkout-card {
        padding: 20px;
    }
}



/* =========================================
   Side Cart Modal Styles
   ========================================= */
.cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s ease;
}
.cart-overlay.open {
    opacity: 1;
    visibility: visible;
}

.side-cart {
    position: fixed;
    top: 0;
    right: -400px; /* Hide outside the screen */
    width: 380px;
    max-width: 100%;
    height: 100vh;
    background-color: #1e1e1e;
    z-index: 10000;
    box-shadow: -5px 0 20px rgba(0,0,0,0.5);
    transition: right 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);
    display: flex;
    flex-direction: column;
}
.side-cart.open {
    right: 0; /* Slide in */
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}
.cart-header h3 {
    font-size: 18px;
    color: var(--text-dark);
    margin: 0;
}
.close-cart-btn {
    background: transparent;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: 0.3s;
}
.close-cart-btn:hover {
    color: var(--primary-color);
    transform: rotate(90deg);
}

.cart-items-container {
    flex-grow: 1;
    padding: 20px;
    overflow-y: auto;
}
.cart-items-container::-webkit-scrollbar {
    width: 6px;
}
.cart-items-container::-webkit-scrollbar-thumb {
    background-color: var(--border-color);
    border-radius: 10px;
}

/* Single Cart Item Layout */
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px dashed var(--border-color);
}
.cart-item img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid var(--border-color);
}
.cart-item-info {
    flex-grow: 1;
}
.cart-item-title {
    font-size: 13px;
    color: var(--text-dark);
    margin-bottom: 5px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.cart-item-price {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
}
.remove-item {
    background: transparent;
    border: none;
    color: #ff4d4d;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}
.remove-item:hover {
    transform: scale(1.1);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    background-color: #121212;
}
.cart-subtotal {
    display: flex;
    justify-content: space-between;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}
.btn-checkout {
    display: block;
    text-align: center;
    background-color: var(--primary-color);
    color: white;
    padding: 15px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}
.btn-checkout:hover {
    background-color: var(--primary-color-hover);
    box-shadow: 0 5px 15px rgba(255, 107, 53, 0.3);
}

/* =========================================
   Header Cart Badge Icon Fix
   ========================================= */
.header-cart-btn {
    position: relative;
}
.cart-badge-count {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: var(--primary-color);
    color: white;
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.5);
}


/* =========================================
   Product Title Font Size Fix (Desktop & Mobile)
   ========================================= */

/* Desktop er jonno choto kora holo (13px) */
.product-title, 
.product-title a {
    font-size: 13px !important; 
    line-height: 1.4 !important;
    font-weight: 500 !important;
}

/* Mobile screen er jonno aro choto kora holo (11px) */
@media (max-width: 768px) {
    .product-title, 
    .product-title a {
        font-size: 11px !important; 
        line-height: 1.3 !important;
    }
}


/* ==========================================
   Side Cart Quantity Controls (Modern Design)
========================================== */
.qty-controls {
    display: flex;
    align-items: center;
    background-color: #f1f2f6; /* Light gray background */
    border-radius: 15px; /* Rounded pill shape */
    width: max-content;
    padding: 1px 3px;
    margin-top: 10px;
    border: 1px solid #e1e2e6;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.02);
}

.qty-btn {
    background: #ffffff;
    border: none;
    outline: none;
    cursor: pointer;
    font-size: 15px;
    width: 26px;
    height: 26px;
    border-radius: 50%; /* Perfect circle */
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2f3542;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
}

.qty-btn:hover {
    background: #ff6b35; /* Theme brand color */
    color: #ffffff;
    box-shadow: 0 3px 6px rgba(255, 107, 53, 0.3);
    transform: translateY(-1px);
}

.qty-btn:active {
    transform: translateY(1px);
    box-shadow: none;
}

.qty-value {
    font-size: 14px;
    font-weight: 600;
    min-width: 28px;
    text-align: center;
    color: #2f3542;
    font-family: 'Poppins', sans-serif;
}



/* =========================================
   Mobile Search Toggle CSS
   ========================================= */
/* Desktop e mobile search button hide thakbe */
.mobile-search-btn {
    display: none !important;
}

@media (max-width: 768px) {
    /* Mobile e search icon show korbe */
    .mobile-search-btn {
        display: flex !important; 
    }
    
    /* Default vabe puro search bar ta hide thakbe */
    .search-bar {
        display: none !important; 
        width: 100%;
        order: 3;
        margin-top: 10px;
        animation: fadeInDownSearch 0.3s ease-out forwards;
    }

    /* JavaScript diye ei class ta add hole search bar show korbe */
    .search-bar.show-mobile-search {
        display: flex !important; 
    }
}

/* Search bar ashar smooth animation */
@keyframes fadeInDownSearch {
    from {
        opacity: 0;
        transform: translateY(-15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}




/* =========================================
   About Us Page Styles (Premium Text-Only Design)
   ========================================= */

/* --- About Hero Section --- */
.about-hero {
    background-color: #0d0d0d;
    padding: 100px 0 80px;
    text-align: center;
    border-bottom: 1px solid #1e1e1e;
}

.about-hero span {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 4px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.about-hero h1 {
    font-family: 'Poppins', sans-serif; /* Shudhu Poppins */
    font-size: 52px;
    font-weight: 700;
    margin: 0;
    color: var(--text-dark);
}

/* Gradient Text Effect for Title */
.gradient-text {
    background: linear-gradient(to right, #ffffff, #a0a0a0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* --- Main Content Layout --- */
.about-content-section {
    padding: 80px 0 100px;
    background-color: #121212;
}

.about-container-inner {
    max-width: 850px;
    margin: 0 auto;
}

/* --- Content Blocks --- */
.about-block {
    margin-bottom: 70px;
}

.about-block h2 {
    font-family: 'Poppins', sans-serif; /* Shudhu Poppins */
    font-size: 32px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Premium Heading Line Accent */
.about-block h2::after {
    content: '';
    flex-grow: 1;
    height: 1px;
    background: linear-gradient(to right, var(--primary-color), transparent);
    opacity: 0.5;
}

.about-block p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    line-height: 1.9;
    color: #e0e0e0; /* Color aro ujjol kora hoyeche jate clear dekha jay */
    margin-bottom: 20px;
    font-weight: 400; /* Font weight barano hoyeche */
}

/* --- Features/Stats Grid (No Images) --- */
.about-features {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 50px;
}

.feature-item {
    background-color: #1a1a1a;
    padding: 40px 25px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    transition: all 0.4s ease;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.feature-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-8px);
    box-shadow: 0 15px 30px rgba(255, 107, 53, 0.08);
}

.feature-icon {
    font-size: 38px;
    font-weight: 700;
    font-family: 'Poppins', sans-serif; /* Shudhu Poppins */
    color: var(--primary-color);
    display: block;
    margin-bottom: 15px;
}

.feature-item h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.feature-item p {
    font-family: 'Poppins', sans-serif; 
    font-size: 14px; /* Size ektu barano hoyeche */
    line-height: 1.6;
    color: #cccccc; /* Color ujjol kora hoyeche */
    margin: 0;
    font-weight: 400;
}

/* --- Highlight Box (The Promise) --- */
.about-highlight-box {
    background: #181818;
    padding: 50px;
    border-radius: 12px;
    border-left: 4px solid var(--primary-color);
    margin-top: 60px;
    position: relative;
}

/* Quote mark accent */
.about-highlight-box::before {
    content: '"';
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 120px;
    font-family: 'Poppins', sans-serif; /* Shudhu Poppins */
    color: rgba(255, 255, 255, 0.03);
    line-height: 1;
}

.about-highlight-box h3 {
    font-family: 'Poppins', sans-serif;
    font-size: 20px;
    font-weight: 600;
    color: var(--primary-color);
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.about-highlight-box p {
    font-family: 'Poppins', sans-serif; /* Shudhu Poppins */
    font-size: 20px; 
    color: #ffffff; /* Ekdom white kora hoyeche jate ekdom clear thake */
    line-height: 1.8;
    margin: 0;
    font-style: italic;
    font-weight: 400;
    position: relative;
    z-index: 2;
}

/* --- Mobile Responsive (About Page) --- */
@media (max-width: 768px) {
    .about-hero {
        padding: 60px 20px;
    }
    .about-hero h1 {
        font-size: 36px;
    }
    .about-content-section {
        padding: 50px 0 60px;
    }
    .about-block h2 {
        font-size: 24px;
    }
    .about-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .feature-item {
        padding: 30px 20px;
    }
    .about-highlight-box {
        padding: 30px;
    }
    .about-highlight-box p {
        font-size: 16px;
    }
    .about-highlight-box::before {
        display: none;
    }
}


/* =========================================
   Privacy Policy Page Styles (Premium & Clean)
   ========================================= */

/* --- Policy Hero Section --- */
.policy-hero {
    background-color: #0d0d0d;
    padding: 80px 0 60px;
    text-align: center;
    border-bottom: 1px solid #1e1e1e;
}

.policy-hero span {
    color: var(--primary-color);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    display: block;
    margin-bottom: 15px;
}

.policy-hero h1 {
    font-family: 'Poppins', sans-serif;
    font-size: 46px;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: var(--text-dark);
}

.last-updated {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #888888;
    font-style: italic;
}

/* --- Main Content Layout --- */
.policy-content-section {
    padding: 60px 0 100px;
    background-color: #121212;
}

.policy-container-inner {
    max-width: 850px;
    margin: 0 auto;
}

/* --- Intro Box --- */
.policy-intro-box {
    background: linear-gradient(135deg, #1e1e1e 0%, #151515 100%);
    padding: 30px 40px;
    border-radius: 12px;
    border: 1px solid #2a2a2a;
    margin-bottom: 50px;
    text-align: center;
}

.policy-intro-box p {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    color: #e0e0e0;
    line-height: 1.8;
    margin: 0;
    font-weight: 400;
}

.policy-intro-box strong {
    color: var(--primary-color);
}

/* --- Policy Blocks (Cards) --- */
.policy-block {
    background-color: #161616;
    padding: 45px;
    border-radius: 12px;
    border: 1px solid #222222;
    margin-bottom: 35px;
    transition: all 0.3s ease;
}

.policy-block:hover {
    border-color: #333333;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    transform: translateY(-3px);
}

/* 👉 THE UNIQUE LEFT BAR HEADING 👈 */
.policy-heading {
    font-family: 'Poppins', sans-serif;
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-left: 18px; /* pipeline theke text er gap */
    position: relative;
    display: flex;
    align-items: center;
}

.policy-heading::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 5px; /* pipeline er chawra */
    height: 100%; /* heading er soman lombo hobe */
    background-color: var(--primary-color);
    border-radius: 10px; /* bar er konagulo gol korar jonno */
}

.policy-block p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    line-height: 1.8;
    color: #cccccc;
    margin-bottom: 20px;
    font-weight: 400;
}

/* --- Custom Styled List --- */
.policy-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.policy-list li {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #cccccc;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 28px;
    position: relative;
}

.policy-list li:last-child {
    margin-bottom: 0;
}

/* Custom Orange Bullet Point */
.policy-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 9px;
    width: 10px;
    height: 10px;
    background-color: transparent;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
}

.policy-list li strong {
    color: #f0f0f0;
    font-weight: 600;
}

/* --- Contact Box --- */
.policy-contact-box {
    background: #1a1a1a;
    padding: 45px;
    border-radius: 12px;
    border: 1px dashed var(--primary-color);
    margin-top: 50px;
}

.policy-contact-box p {
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    color: #cccccc;
    line-height: 1.8;
    margin-bottom: 20px;
}

.contact-details {
    background-color: #121212;
    padding: 20px;
    border-radius: 8px;
    display: inline-block;
}

.contact-details p {
    margin: 5px 0;
    color: #f0f0f0;
}

.contact-details strong {
    color: var(--primary-color);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .policy-hero {
        padding: 60px 20px 40px;
    }
    .policy-hero h1 {
        font-size: 32px;
    }
    .policy-content-section {
        padding: 40px 0 60px;
    }
    .policy-intro-box {
        padding: 25px;
        margin-bottom: 30px;
    }
    .policy-block, .policy-contact-box {
        padding: 25px;
        margin-bottom: 25px;
    }
    .policy-heading {
        font-size: 20px;
        padding-left: 15px;
    }
    .policy-heading::before {
        width: 4px;
    }
    .policy-list li {
        font-size: 14px;
    }
}

/* =========================================
   Contact Us Page Styles (Premium Dark Form)
   ========================================= */

.contact-container-inner {
    max-width: 1000px; /* Ektu boro rakha hoyeche grid er jonno */
    margin: 0 auto;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
    align-items: stretch;
}

/* --- Contact Details Styling --- */
.contact-details-list {
    margin-top: 35px;
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

/* Beautiful Icon Box */
.contact-item .icon-box {
    width: 45px;
    height: 45px;
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--primary-color);
    font-size: 16px;
    flex-shrink: 0;
    transition: all 0.3s ease;
}

.policy-block:hover .contact-item .icon-box {
    background: var(--primary-color);
    color: #ffffff;
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.contact-item .text-box h4 {
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contact-item .text-box p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #cccccc;
    margin: 0;
    line-height: 1.6;
}

/* --- Premium Contact Form Styling --- */
.premium-contact-form {
    margin-top: 20px;
}

.premium-contact-form .form-group {
    margin-bottom: 20px;
}

.premium-contact-form label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #aaaaaa;
    margin-bottom: 8px;
    font-weight: 500;
}

.premium-contact-form input,
.premium-contact-form textarea {
    width: 100%;
    padding: 14px 18px;
    background-color: #121212; /* Form field er deep dark background */
    border: 1px solid #2a2a2a;
    border-radius: 8px;
    color: var(--text-dark);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}

.premium-contact-form textarea {
    resize: vertical;
    min-height: 110px;
}

/* Focus Hole Orange Glow Asbe */
.premium-contact-form input:focus,
.premium-contact-form textarea:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.1);
    background-color: #161616;
}

.premium-contact-form input::placeholder,
.premium-contact-form textarea::placeholder {
    color: #555555;
}

/* Submit Button */
.btn-submit-contact {
    width: 100%;
    padding: 15px;
    background-color: var(--primary-color);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-family: 'Poppins', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.btn-submit-contact:hover {
    background-color: var(--primary-color-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255, 107, 53, 0.25);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr; /* Mobile e 1 column hobe */
        gap: 25px;
    }
}

/* =========================================
   Track Order Page Styles (Centered Layout)
   ========================================= */

.track-order-container {
    max-width: 750px; /* Cetered abong perfectly sized container */
    margin: 0 auto;
}

.track-form-box {
    background: linear-gradient(135deg, #161616 0%, #1a1a1a 100%);
    border: 1px solid #2a2a2a;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

.track-form-box:hover {
    transform: none; /* Track form ta hover e upore uthabar dorkar nai */
    box-shadow: 0 15px 40px rgba(255, 107, 53, 0.08);
}