/* বেসিক রিসেট এবং ফন্ট */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --light-color: #f4f7fa;
    --white-color: #ffffff;
    --dark-color: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Hind Siliguri', sans-serif;
    background-color: var(--white-color);
    color: #555;
    line-height: 1.6;
}

a {
    text-decoration: none;
    color: var(--dark-color);
}

ul {
    list-style-type: none;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* ======================= Header ======================= */
.header {
    background-color: var(--secondary-color);
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header .container {
    position: relative; /* Mega menu-r jonno proyojoniyo */
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--white-color);
    flex-shrink: 0;
}

/* All Categories Menu */
.all-categories-menu {
    position: relative;
    flex-shrink: 0;
}

.hamburger-btn {
    background-color: #f3f3f3;
    border: none;
    padding: 10px 15px;
    border-radius: 5px 0 0 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
    height: 44px; /* Same as search input */
}

/* Header Search Bar */
.header-search {
    flex-grow: 1;
    display: flex;
}
.header-search input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-left: none;
    font-size: 1rem;
    font-family: 'Hind Siliguri', sans-serif;
    height: 44px;
}
.header-search input:focus {
    outline: none;
}
.header-search button {
    padding: 0 20px;
    border: 1px solid #f39c12;
    background-color: #f39c12;
    color: var(--dark-color);
    border-radius: 0 5px 5px 0;
    cursor: pointer;
    font-size: 1.2rem;
    height: 44px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 25px;
    flex-shrink: 0;
}

.action-icon {
    font-size: 1.5rem;
    position: relative;
    color: var(--white-color);
}

.cart-icon .cart-count {
    position: absolute;
    top: -8px;
    right: -10px;
    background-color: var(--primary-color);
    color: var(--white-color);
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 0.8rem;
    display: flex;
    justify-content: center;
    align-items: center;
}

.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
}

/* =======================
    Mega Menu Styles (Updated & Fixed)
======================= */
.mega-menu {
    position: absolute;
    top: calc(100% + 15px);
    left: 0%;
    transform: translateX(-50%);
    width: 100vw;
    max-width: 935px;
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    padding: 30px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    border: 1px solid #eee;
    border-radius: 5px;
    z-index: 999;
}

/* Show the menu on hover of the parent */
.all-categories-menu:hover .mega-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.mega-menu-grid {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.mega-menu-col h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary-color);
    display: flex;
    align-items: center;
    gap: 10px;
}
.mega-menu-col ul li {
    margin-bottom: 5px;
}
.mega-menu-col ul a {
    color: #555;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 5px;
    transition: color 0.2s, background-color 0.2s;
}
.mega-menu-col ul a i {
    width: 20px;
    text-align: center;
    color: var(--primary-color);
}
.mega-menu-col ul a:hover {
    color: var(--primary-color);
    background-color: var(--light-color);
}
.mega-menu-promo img {
    width: 100%;
    border-radius: 5px;
}

/* Mobile Nav */
.mobile-nav {
    display: none;
    background-color: var(--secondary-color);
    width: 100%;
}
.mobile-nav ul {
    display: flex;
    flex-direction: column;
}
.mobile-nav a {
    color: var(--white-color);
    padding: 15px;
    display: block;
    text-align: center;
    border-bottom: 1px solid #444;
}

/* ... (Ager shob common style ekhane thakbe) ... */

/* =======================
    New Hero Section Styles
======================= */
.hero-section-new {
    background-color: var(--light-color);
    padding: 30px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: 20% 1fr 20%;
    gap: 20px;
    min-height: 500px;
}

/* Left Column: Categories */
.hero-left {
    background-color: var(--white-color);
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}

.hero-category-list {
    padding: 10px 0;
}

.hero-category-list li {
    position: relative; /* Submenu-r jonno proyojoniyo */
}

.hero-category-list li a {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 10px 15px;
    font-weight: 500;
    transition: background-color 0.2s, color 0.2s;
}
.hero-category-list li a i:first-child {
    width: 20px;
    text-align: center;
    color: #555;
    transition: color 0.2s;
}
.hero-category-list li a .submenu-arrow {
    margin-left: auto;
    font-size: 0.8rem;
    opacity: 0.5;
}
.hero-category-list li:hover > a {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.hero-category-list li:hover > a i {
    color: var(--white-color);
}


/* Category Submenu */
.category-submenu {
    position: absolute;
    top: 0;
    left: 100%;
    width: 600px; /* Submenu-r nirdishto width */
    background-color: var(--white-color);
    box-shadow: var(--shadow);
    border-radius: 5px;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s, visibility 0.3s;
    z-index: 1200;
}

.has-submenu:hover .category-submenu {
    opacity: 1;
    visibility: visible;
}

.submenu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.submenu-col h4 {
    font-size: 1.1rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}
.submenu-col ul li a {
    color: #555;
    padding: 5px 0;
    font-weight: 400;
}
.submenu-col ul li a:hover {
    color: var(--primary-color);
    background: none;
}


/* Middle Column: Slider & Banner */
.hero-middle {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.main-slider {
    flex-grow: 1;
    position: relative;
    overflow: hidden;
    border-radius: 5px;
}
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease, visibility 0.5s ease;
    display: flex;
    align-items: center;
    padding: 40px;
}
.slide.active {
    opacity: 1;
    visibility: visible;
}
.slide-content {
    background-color: rgba(255, 255, 255, 0.85);
    padding: 20px;
    border-radius: 5px;
}
.slide-content h3 {
    font-size: 2rem;
    color: var(--dark-color);
}
.slide-content p {
    font-size: 1.1rem;
    margin: 10px 0 20px;
}
.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 1.2rem;
    transition: background-color 0.2s;
}
.slider-nav:hover {
    background-color: rgba(0, 0, 0, 0.7);
}
.slider-nav.prev {
    left: 15px;
}
.slider-nav.next {
    right: 15px;
}

.bottom-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

/* Right Column: Banners */
.hero-right {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.side-banner {
    flex-grow: 1;
}

.side-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    display: block;
}

/* Responsive for Hero Section */
@media (max-width: 1024px) {
    .hero-grid {
        grid-template-columns: 25% 1fr;
        min-height: 400px;
    }
    .hero-right {
        display: none;
    }
    .category-submenu {
        left: auto;
        right: -610px; /* Adjust as needed */
    }
}

@media (max-width: 768px) {
    .hero-grid {
        grid-template-columns: 1fr;
    }
    .hero-left {
        display: none;
    }
    .main-slider {
        min-height: 300px;
    }
}
/* ======================= Common Section Styles ======================= */
.section-padding {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}

.bg-light {
    background-color: var(--light-color);
}


/* --- 6-Column Grids --- */
.category-grid-6, .product-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

/* --- Product Card Font Adjustments --- */
.product-card .product-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 5px;
}

.product-card .product-name a {
    color: inherit;
    text-decoration: none;
}

.product-card .product-price {
    font-size: 0.95rem;
    font-weight: 600;
}

/* --- Category Card link style --- */
.category-card {
    text-decoration: none;
    color: #333;
    transition: transform 0.3s;
}
.category-card:hover {
    transform: translateY(-5px);
}

/* --- View All Button --- */
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1200px) {
    .category-grid-6, .product-grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .category-grid-6, .product-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .category-grid-6, .product-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}
/* --- Smaller Font for Product Name and Price --- */
.product-card .product-name {
    font-size: 0.9rem; /* ফন্ট সাইজ ছোট করা হলো */
    margin-bottom: 5px;
    font-weight: 500;
}

.product-card .product-price {
    font-size: 0.95rem; /* ফন্ট সাইজ ছোট করা হলো */
    font-weight: 600;
}

/* --- View All Button Container --- */
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* --- Responsive Adjustments for 6-Column Grids --- */
@media (max-width: 1200px) {
    .category-grid-6, .product-grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 992px) {
    .category-grid-6, .product-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .category-grid-6, .product-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- Trending Section Header --- */
.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}
.category-card {
    text-align: center;
    cursor: pointer;
}

.category-card img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 15px;
    transition: transform 0.3s;
}

.category-card:hover img {
    transform: scale(1.05);
}

.category-card h3 {
    font-size: 1.2rem;
    color: var(--dark-color);
}

/* ======================= Product Section ======================= */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.product-card {
    background-color: var(--white-color);
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-10px);
}

.product-image {
    position: relative;
}

.product-image img {
    width: 100%;
    display: block;
}

.product-actions {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 10px;
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover .product-actions {
    opacity: 1;
}

.product-actions .action-btn {
    background-color: var(--white-color);
    color: var(--dark-color);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: background-color 0.3s, color 0.3s;
}

.product-actions .action-btn:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.product-info {
    padding: 15px;
    
}

.product-name {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}

.product-price {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.footer {
    background-color: var(--secondary-color);
    color: #ccc;
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    /* 5-ti column-er jonno minmax poriborton kora hoyeche */
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.footer-col h3, .footer-col h4 {
    color: var(--white-color);
    margin-bottom: 20px;
}

.footer-col ul li {
    margin-bottom: 10px;
}

.footer-col ul a {
    color: #ccc;
    transition: color 0.3s, padding-left 0.3s;
}

.footer-col ul a:hover {
    color: var(--primary-color);
    padding-left: 5px;
}

.footer-col p {
    margin-bottom: 10px;
}

.footer-col p i {
    margin-right: 10px;
    color: var(--primary-color);
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    background-color: #444;
    color: var(--white-color);
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    margin-right: 10px;
    transition: background-color 0.3s;
}

.social-links a:hover {
    background-color: var(--primary-color);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #444;
}

/* ======================= Responsive ======================= */
@media (max-width: 992px) {
    .header-content {
        flex-wrap: wrap;
    }
    .all-categories-menu {
        display: none; /* Hide desktop mega menu trigger */
    }
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 15px;
    }
    .mobile-menu-toggle {
        display: block;
    }
    .hero-content h1 {
        font-size: 2.5rem;
    }
}

/* ==============================================
    Notun Section-gulo'r Style
==============================================
*/
/* Trending Products Section */
.trending-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
    flex-wrap: wrap;
}
.trending-header .section-title {
    margin-bottom: 0;
    text-align: left;
}
.section-title {
    text-align: center;
    font-size: 1.5rem;
    margin-bottom: 50px;
    color: var(--dark-color);
}
.trending-tabs {
    display: flex;
    gap: 10px;
    background-color: var(--white-color);
    padding: 5px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.trending-tabs .tab-link {
    padding: 8px 20px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1rem;
    font-weight: 500;
    color: #555;
    border-radius: 5px;
    transition: color 0.2s, background-color 0.2s;
}
.trending-tabs .tab-link:hover {
    color: var(--primary-color);
}
.trending-tabs .tab-link.active {
    background-color: var(--primary-color);
    color: var(--white-color);
}
.tab-content {
    display: none;
}
.tab-content.active {
    display: block;
}

/* Load More Button */
.load-more-container {
    text-align: center;
    margin-top: 40px;
}
.btn-load-more {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 10px 40px;
}
.btn-load-more:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}

/* Why Choose Us Section */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    text-align: center;
}
.feature-card {
    padding: 30px;
}
.feature-card i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.3rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}
/* ... (Ager shob common style ekhane thakbe) ... */

/* ==============================================
    Cart Page Styles
==============================================
*/
.breadcrumb-section {
    background-color: var(--light-color);
    padding: 40px 0;
    text-align: center;
}
.breadcrumb-section h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}
.breadcrumb-section p a {
    color: var(--primary-color);
}

.cart-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.cart-table-container {
    background-color: var(--white-color);
    padding: 20px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    overflow-x: auto; /* Boro table-er jonno scrollbar */
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* Table-er minimum width */
}

.cart-table th, .cart-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

.cart-table th {
    font-weight: 600;
    color: var(--dark-color);
}

.product-cell {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-cell img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
}

.product-name-cart {
    font-weight: 600;
    color: var(--dark-color);
}

.quantity-input {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 5px;
    width: 100px;
}
.quantity-input input {
    width: 40px;
    text-align: center;
    border: none;
    font-size: 1rem;

}
.quantity-input input::-webkit-outer-spin-button,
.quantity-input input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.qt-btn {
    width: 30px;
    border: none;
    background-color: #f5f5f5;
    cursor: pointer;
    font-size: 1.2rem;
}

.remove-item-btn {
    background: none;
    border: none;
    color: var(--danger-color);
    font-size: 1.2rem;
    cursor: pointer;
}

/* Order Summary */
.order-summary {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 5px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 100px; /* Header er height onujayi adjust korun */
}

.summary-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}

.summary-item.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* ==============================================
    Responsive for Cart Page (Updated)
==============================================
*/
@media (max-width: 992px) {
    .cart-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .cart-table-container {
        box-shadow: none;
        padding: 0;
        border: 1px solid #eee;
    }
    .cart-table {
        min-width: 100%;
    }
    /* Table ke card style e poriborton kora hocche */
    .cart-table thead {
        display: none;
    }
    .cart-table tr {
        display: block;
        border-bottom: 2px solid var(--primary-color);
        margin-bottom: 20px;
        padding-bottom: 10px;
    }
     .cart-table tr:last-child {
        margin-bottom: 0;
        border-bottom: none;
        padding-bottom: 0;
    }
    .cart-table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        text-align: right;
        border-bottom: 1px solid #f0f0f0;
    }
    .cart-table td:before {
        content: attr(data-label);
        font-weight: 600;
        text-align: left;
        padding-right: 10px;
    }
    .cart-table td:first-child {
        /* Product cell-er jonno alada style */
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .cart-table td:first-child:before {
        display: none; /* Product cell-er label dorkar nei */
    }
    .product-cell {
        width: 100%;
    }
    .quantity-input {
        margin-left: auto; /* Quantity input-ke dane pathano */
    }
}
/* Button Styles */
.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color); /* Ekhane primary color bebohar kora hoyeche */
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #c0392b; /* Hover korle ektu garo hobe */
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}
/* Delivery Options in Summary */
.summary-delivery {
    margin: 20px 0;
}
.summary-delivery h4 {
    font-size: 1.1rem;
    margin-bottom: 10px;
    color: var(--dark-color);
}
.delivery-option {
    margin-bottom: 10px;
}
.delivery-option label {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.delivery-option input[type="radio"] {
    display: none; /* Hide the default radio button */
}
.delivery-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: #fef5f3; /* A light red color */
    font-weight: 600;
}

/* বেসিক রিসেট এবং ফন্ট */
@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

:root {
    --primary-color: #e74c3c;
    --secondary-color: #2c3e50;
    --light-color: #f4f7fa;
    --white-color: #ffffff;
    --dark-color: #333;
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ==============================================
    কমন স্টাইল (সকল পেজের জন্য প্রযোজ্য)
==============================================
*/

body, button, input, select, textarea {
    font-family: 'Hind Siliguri', sans-serif;
}

body {
    background-color: var(--white-color);
    color: #555;
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.section-padding {
    padding: 80px 0;
}

.btn {
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s;
    border: none;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white-color);
}

.btn-primary:hover {
    background-color: #c0392b;
}

.btn-block {
    display: block;
    width: 100%;
    text-align: center;
    margin-top: 20px;
}

/* ==============================================
    Checkout Page Styles (Updated)
==============================================
*/
.breadcrumb-section {
    background-color: var(--light-color);
    padding: 40px 0;
    text-align: center;
}
.breadcrumb-section h2 {
    font-size: 2.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}
.breadcrumb-section p a {
    color: var(--primary-color);
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 30px;
    align-items: flex-start;
}

.billing-details {
    background-color: var(--white-color);
    padding: 30px;
    border-radius: 5px;
    border: 1px solid #eee;
}

.summary-title {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 25px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.form-group label .required {
    color: var(--danger-color);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(231, 76, 60, 0.15);
}

/* Order Summary */
.order-summary.checkout-summary {
    background-color: var(--white-color);
    padding: 25px;
    border-radius: 5px;
    border: 1px solid #eee;
    position: static;
}

.summary-product-list {
    margin-bottom: 15px;
}
.summary-item {
    display: flex;
    justify-content: space-between;
    margin-bottom: 15px;
}
.summary-item.total {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--dark-color);
}

.payment-method {
    margin-top: 25px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.payment-method h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: var(--dark-color);
}

.payment-option {
    margin-bottom: 10px;
}

.payment-option label {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

/* Responsive for Checkout Page */
@media (max-width: 992px) {
    .checkout-grid {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
}


/* Order Summary Table */
.summary-table {
    width: 100%;
    border-collapse: collapse;
}
.summary-table th {
    text-align: left;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
    font-weight: 600;
}
.summary-table td {
    padding: 15px 0;
    vertical-align: top;
}
.summary-table tbody tr {
    border-bottom: 1px solid #eee;
}
.summary-table tbody td:last-child {
    text-align: right;
    font-weight: 600;
}
.summary-table .quantity-input {
    margin-top: 5px;
    width: 90px;
}
.summary-table .quantity-input input {
    width: 30px;
}
.summary-table .qt-btn {
    width: 30px;
}

/* Summary Footer */
.summary-table tfoot td {
    font-weight: 600;
}
.summary-table tfoot td:last-child {
    text-align: right;
}
.summary-subtotal td, .summary-delivery-row td {
    padding-bottom: 15px;
}
.summary-total td {
    padding-top: 15px;
    border-top: 2px solid #eee;
    font-size: 1.2rem;
    color: var(--dark-color);
}

/* Delivery Options in Summary */
.summary-delivery {
    margin: 10px 0;
}
.delivery-option {
    margin-bottom: 10px;
}
.delivery-option label {
    display: flex;
    justify-content: space-between;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s, background-color 0.2s;
}
.delivery-option input[type="radio"] {
    display: none;
}
.delivery-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: #fef5f3;
    font-weight: 600;
}

/* Create Account Toggle Style */
.create-account-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.create-account-toggle label {
    margin-bottom: 0;
    cursor: pointer;
}

/* Account Fields Style */
.account-fields {
    display: none; /* Default bhabe hide thakbe */
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 5px;
    margin-bottom: 20px;
    background-color: #f9fafb;
}
input#create-account-checkbox
{
width: 10%;

}


/* Product Listing Styles */
.shop-top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: var(--white-color);
    padding: 15px;
    border-radius: 5px;
    border: 1px solid #eee;
    margin-bottom: 30px;
}

.sort-by {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

/* Pagination */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
}
.pagination a {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    transition: background-color 0.2s, color 0.2s;
}
.pagination a:hover, .pagination a.active {
    background-color: var(--primary-color);
    color: var(--white-color);
    border-color: var(--primary-color);
}

/* Responsive for Shop Page */
@media (max-width: 992px) {
    .shop-grid {
        grid-template-columns: 1fr;
    }
    .shop-sidebar {
        /* Mobile-e sidebar upore chole ashbe */
        margin-bottom: 30px;
    }
}


/* ==============================================
    Single Product Page Styles
==============================================
*/
.product-details-grid {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: flex-start;
}

/* Product Gallery */
.product-gallery .main-image {
    border: 1px solid #eee;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 15px;
}
.product-gallery .main-image img {
    width: 100%;
    display: block;
}
.thumbnail-images {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.thumb-item {
    width: 100%;
    border: 2px solid #eee;
    border-radius: 5px;
    cursor: pointer;
    transition: border-color 0.2s;
}
.thumb-item:hover, .thumb-item.active {
    border-color: var(--primary-color);
}

/* Product Details Content */
.product-title {
    font-size: 2.2rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}
.product-price-details {
    margin-bottom: 20px;
}
.current-price {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-right: 15px;
}
.old-price {
    font-size: 1.2rem;
    text-decoration: line-through;
    color: #999;
}
.short-description {
    margin-bottom: 25px;
    line-height: 1.7;
}

.product-options {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 25px;
}
.option-group {
    display: flex;
    align-items: center;
    gap: 15px;
}
.option-group label {
    font-weight: 600;
}
.color-swatches, .size-swatches {
    display: flex;
    gap: 10px;
}
.swatch {
    cursor: pointer;
    border: 2px solid #eee;
    transition: border-color 0.2s;
}
.swatch.color {
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.swatch.size {
    padding: 5px 15px;
    border-radius: 5px;
}
.swatch:hover, .swatch.active {
    border-color: var(--primary-color);
}

.cart-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}
.add-to-cart-btn {
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.product-meta {
    border-top: 1px solid #eee;
    padding-top: 20px;
}
.product-meta p {
    margin-bottom: 8px;
}
.product-meta a {
    color: var(--primary-color);
}
.in-stock {
    color: var(--success-color);
    font-weight: 600;
}

/* Product Details Tabs */
.product-details-tabs {
    margin-top: 60px;
}
.review-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.review-item:last-child {
    border-bottom: none;
}
.rating {
    color: #f39c12;
    margin: 5px 0;
}

/* Responsive for Single Product Page */
@media (max-width: 992px) {
    .product-details-grid {
        grid-template-columns: 1fr;
    }
}

/* Updated Cart Actions */
.cart-actions {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
    align-items: center;
}
.action-buttons-group {
    display: flex;
    flex-grow: 1;
    gap: 10px;
}
.action-buttons-group .btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}
.btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--white-color);
}


/* Updated Product Details Tabs */
.product-details-tabs {
    margin-top: 60px;
    border: 1px solid #eee;
    border-radius: 5px;
}
.product-details-tabs .tabs {
    background-color: #f9fafb;
    border-bottom: 1px solid #eee;
    display: flex;
}
.product-details-tabs .tab-link {
    padding: 15px 25px;
    cursor: pointer;
    background: none;
    border: none;
    font-size: 1.1rem;
    font-weight: 500;
    color: #555;
    border-bottom: 3px solid transparent;
    transition: color 0.2s, border-color 0.2s;
}
.product-details-tabs .tab-link:hover {
    color: var(--primary-color);
}
.product-details-tabs .tab-link.active {
    color: var(--primary-color);
    font-weight: 600;
    border-bottom-color: var(--primary-color);
}
.product-details-tabs .tab-content {
    padding: 25px;
}

.review-item {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}
.review-item:last-child {
    border-bottom: none;
}
.rating {
    color: #f39c12;
    margin: 5px 0;
}

/* ... (Ager shob common style ekhane thakbe) ... */

/* ==============================================
    Login/Register Page Styles
==============================================
*/
.auth-page {
    background-color: var(--light-color);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    overflow: hidden;
}

.auth-tabs {
    display: flex;
}

.auth-tabs .tab-link {
    flex: 1;
    padding: 15px;
    cursor: pointer;
    background-color: #f0f0f0;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    color: #555;
    transition: background-color 0.3s, color 0.3s;
}

.auth-tabs .tab-link.active {
    background-color: var(--white-color);
    color: var(--primary-color);
}

.auth-form {
    padding: 30px;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none; /* ডিফল্টভাবে লুকানো থাকবে */
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}
/* ... (Ager shob common style ekhane thakbe) ... */

/* ==============================================
    Login/Register Page Styles
==============================================
*/
.auth-page {
    background-color: var(--light-color);
}

.auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: var(--white-color);
    border-radius: 8px;
    box-shadow: var(--shadow);
    padding: 40px;
}

.auth-title {
    text-align: center;
    font-size: 1.8rem;
    color: var(--dark-color);
    margin-bottom: 30px;
}

.auth-form .form-group {
    margin-bottom: 20px;
}

.auth-links {
    text-align: center;
    margin-top: 25px;
    color: #555;
}

.auth-links a {
    color: var(--primary-color);
    font-weight: 600;
}

.message {
    margin-bottom: 15px;
    padding: 10px;
    border-radius: 5px;
    display: none;
}
.message.success {
    background-color: #d4edda;
    color: #155724;
    display: block;
}
.message.error {
    background-color: #f8d7da;
    color: #721c24;
    display: block;
}

/* --- 6-Column Grids for Categories and Products --- */
.category-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

.product-grid-6 {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 25px;
}

/* --- View All Button --- */
.view-all-container {
    text-align: center;
    margin-top: 40px;
}

/* --- Responsive Adjustments for 6-Column Grids --- */
@media (max-width: 1200px) {
    .category-grid-6, .product-grid-6 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 992px) {
    .category-grid-6, .product-grid-6 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .category-grid-6, .product-grid-6 {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mega Menu Icons */
.mega-menu-col h4 {
    display: flex; /* আইকন এবং টেক্সটকে একই লাইনে আনার জন্য */
    align-items: center; /* উল্লম্বভাবে মাঝখানে অ্যালাইন করার জন্য */
    gap: 8px; /* আইকন এবং টেক্সটের মধ্যে ফাঁকা স্থান */
}

.category-icon-mega-menu {
    width: 24px; /* আইকনের প্রস্থ */
    height: 24px; /* আইকনের উচ্চতা */
    object-fit: contain; /* অনুপাত ঠিক রাখার জন্য */
}

/* Hero Category List Icons */
.hero-category-list li a {
    display: flex; /* আইকন এবং টেক্সটকে একই লাইনে আনার জন্য */
    align-items: center; /* উল্লম্বভাবে মাঝখানে অ্যালাইন করার জন্য */
    gap: 10px; /* আইকন এবং টেক্সটের মধ্যে ফাঁকা স্থান */
}

.category-icon-hero-list {
    width: 20px; /* আইকনের প্রস্থ */
    height: 20px; /* আইকনের উচ্চতা */
    object-fit: contain; /* অনুপাত ঠিক রাখার জন্য */
}

/* Popular Categories Section Modifications */
.category-card {
    position: relative;
    display: block; /* Make the whole card clickable */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: center;
    color: #333; /* Default text color */
    text-decoration: none;
    height: 180px; /* Adjust height as needed to fit content */
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.category-card img {
    width: 100%;
    height: 100%; /* Image fills the card by default */
    object-fit: cover; /* Cover the area, cropping if necessary */
    display: block;
    transition: filter 0.3s ease;
}

.category-info-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Semi-transparent black overlay */
    color: white;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    opacity: 0; /* Hidden by default */
    transition: opacity 0.3s ease;
    padding: 10px;
    box-sizing: border-box; /* Include padding in width/height */
}

.category-card:hover .category-info-overlay {
    opacity: 1; /* Show on hover */
}

.category-info-overlay h3 {
    margin: 0 0 5px 0;
    font-size: 1.1em;
    color: white; /* Ensure text color is visible on overlay */
}

.category-info-overlay p {
    margin: 0;
    font-size: 0.9em;
    color: #ccc; /* Lighter text for product count */
}

/* Responsive adjustments if needed */
@media (max-width: 768px) {
    .category-card {
        height: 150px; /* Adjust for smaller screens */
    }
}

.product-card .product-image img {
    width: 100%;
    height: 130px; /* চাইলে 220px বা যেকোনো ফিক্সড হাইট দিতে পারো */
    object-fit: cover;
    border-radius: 8px;
}
/* ট্রেন্ডিং প্রোডাক্টস ট্যাবের জন্য স্টাইল */
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    justify-content: center; /* ট্যাবগুলোকে সেন্টারে আনার জন্য */
    flex-wrap: wrap; /* ছোট স্ক্রিনে র‍্যাপ করার জন্য */
}

.tab {
    cursor: pointer;
    padding: 10px 20px;
    background: #f0f0f0; /* নিষ্ক্রিয় ট্যাবের ব্যাকগ্রাউন্ড */
    color: #555; /* নিষ্ক্রিয় ট্যাবের টেক্সট রঙ */
    border-radius: 5px;
    transition: all 0.3s ease;
    white-space: nowrap; /* টেক্সট ভাঙা বন্ধ করার জন্য */
}

.tab:hover {
    background: #e0e0e0;
}

.tab.active {
    background: #007bff; /* অ্যাক্টিভ ট্যাবের ব্যাকগ্রাউন্ড */
    color: white; /* অ্যাক্টিভ ট্যাবের টেক্সট রঙ */
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2); /* অ্যাক্টিভ ট্যাবের জন্য হালকা শ্যাডো */
}

/* ট্যাব কন্টেন্ট এরিয়া */
.tab-content {
    display: none; /* ডিফল্টভাবে ট্যাব কন্টেন্ট লুকানো থাকবে */
    padding-top: 20px; /* কন্টেন্টের উপরের প্যাডিং */
}

.tab-content.active {
    display: block; /* অ্যাক্টিভ ট্যাব কন্টেন্ট দেখানো হবে */
}

/* ছোট স্ক্রিনের জন্য রেসপনসিভ অ্যাডজাস্টমেন্ট */
@media (max-width: 768px) {
    .tabs {
        justify-content: flex-start; /* ছোট স্ক্রিনে ট্যাবগুলোকে বামদিকে অ্যালাইন করুন */
        margin-top: 10px;
    }
    .tab {
        border: 1px solid #ddd;
        margin-bottom: 5px;
    }
    .tab.active {
        border-color: #ddd; /* অ্যাক্টিভ ট্যাবের জন্য বর্ডার রঙ বজায় রাখুন */
    }
}
.tab.active {
    background: #e74c3c;
    color: white;
    font-weight: bold;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* প্রোডাক্ট রেটিং স্টার স্টাইল */
.product-rating {
    margin-top: 5px; /* প্রোডাক্টের নাম বা মূল্যের নিচে ফাঁকা স্থান */
    font-size: 0.9em; /* রেটিং ব্লকের সামগ্রিক আকার সামান্য ছোট করবে */
    display: flex; /* স্টার এবং রিভিউ কাউন্ট একই লাইনে দেখানোর জন্য */
    align-items: center;
}

.product-rating i.fa-star,
.product-rating i.fa-star-half-stroke {
    color: #ccc; /* ডিফল্ট বা খালি স্টারের রঙ */
    font-size: 0.8em; /* স্টারের আকার (প্যারেন্টের ফন্ট সাইজের সাপেক্ষে) */
    margin-right: 1px; /* স্টারগুলোর মধ্যে সামান্য ফাঁকা স্থান */
}

/* পূর্ণ স্টার এবং অর্ধ-স্টারের রঙ */
.product-rating .full,
.product-rating .half {
    color: #bf402f; /* আপনার পছন্দের রঙ */
}

/* রিভিউ কাউন্টের টেক্সটের স্টাইল */
.product-rating .review-count {
    font-size: 0.85em; /* রিভিউ কাউন্ট টেক্সটের আকার */
    color: #777; /* রিভিউ কাউন্ট টেক্সটের রঙ */
    margin-left: 5px; /* স্টারের ডানদিকে ফাঁকা স্থান */
}


/* Header Search Container */
.header-search {
    position: relative; /* ড্রপডাউন পজিশনিংয়ের জন্য এটি অপরিহার্য */
    z-index: 1001; /* নিশ্চিত করুন সার্চ ব্লক অন্যান্য উপাদানের উপরে থাকে */
    /* আপনার অন্যান্য স্টাইল (যেমন flex-grow, margin, max-width) এখানে থাকবে */
}

/* Search Results Dropdown Styles (আরও উন্নত এবং পরিষ্কার ডিজাইন) */
.search-results-dropdown {
    position: absolute;
    top: calc(100% + 8px); /* ইনপুট ফিল্ডের ঠিক নিচে সামান্য বেশি ফাঁকা স্থান */
    left: 0; /* বাম প্রান্তের সাথে অ্যালাইন হবে */
    /* যদি আপনি ডান প্রান্তের সাথে অ্যালাইন করতে চান, তাহলে `left: 0;` এর বদলে `right: 0;` ব্যবহার করুন */

    width: 850px; /* ড্রপডাউনের নির্দিষ্ট প্রস্থ, আপনার প্রয়োজন অনুযায়ী পরিবর্তন করুন */
    max-height: 400px; /* সর্বোচ্চ উচ্চতা বাড়ানো হয়েছে আরও বেশি রেজাল্ট দেখানোর জন্য */
    overflow-y: auto; /* প্রয়োজনে উল্লম্ব স্ক্রলবার */
    background-color: #fff;
    border: 1px solid #e0e0e0; /* হালকা বর্ডার */
    border-radius: 12px; /* আরও বেশি গোলাকার কোণা, নরম চেহারার জন্য */
    box-shadow: 0 15px 40px rgba(0,0,0,0.1); /* শক্তিশালী কিন্তু নরম শ্যাডো */
    z-index: 999; /* ইনপুট ফিল্ডের নিচে কিন্তু অন্যান্য কন্টেন্টের উপরে */
    display: none; /* ডিফল্টভাবে লুকানো থাকবে */
    box-sizing: border-box; /* padding এবং border প্রস্থের মধ্যে অন্তর্ভুক্ত করার জন্য */
    padding: 10px 0; /* ড্রপডাউন কন্টেইনারের ভেতরে উপরে ও নিচে প্যাডিং */
}

/* প্রতিটি সার্চ রেজাল্ট আইটেমের স্টাইল */
.search-result-item {
    display: flex; /* আইকন, নাম, মূল্যকে একই লাইনে আনার জন্য */
    align-items: center; /* উল্লম্বভাবে মাঝখানে অ্যালাইন করার জন্য */
    padding: 15px 20px; /* আইটেমের ভেতরের প্যাডিং বাড়ানো হয়েছে, আরও বেশি স্পেসের জন্য */
    border-bottom: 1px solid #f5f5f5; /* প্রতিটি আইটেমের মধ্যে খুব হালকা বিভাজক */
    text-decoration: none; /* আন্ডারলাইন সরান */
    color: #333; /* ডিফল্ট টেক্সট রঙ */
    transition: background-color 0.2s ease, transform 0.1s ease; /* হোভার এবং ক্লিকের জন্য মসৃণ ট্রানজিশন */
    cursor: pointer; /* মাউস কার্সার পরিবর্তনের জন্য */
}

.search-result-item:last-child {
    border-bottom: none; /* শেষ আইটেমের নিচে বর্ডার থাকবে না */
}

.search-result-item:hover {
    background-color: #f8fcfd; /* হোভার করার সময় খুব হালকা নীল/সাদা ব্যাকগ্রাউন্ড */
    color: #007bff; /* হোভার করার সময় টেক্সটের জন্য প্রাইমারি রঙ */
    transform: translateY(-2px); /* হোভারে হালকা উপরের দিকে ওঠা */
    box-shadow: 0 3px 8px rgba(0,0,0,0.05); /* হোভার করা আইটেমের জন্য সূক্ষ্ম শ্যাডো */
}

/* সার্চ রেজাল্ট আইটেমের ছবির স্টাইল */
.search-result-item img {
    width: 100px; /* ছবির প্রস্থ বাড়ানো হয়েছে */
    height: 100px; /* ছবির উচ্চতা বাড়ানো হয়েছে */
    object-fit: cover; /* ছবির অনুপাত ঠিক রেখে ফ্রেম পূরণ করবে */
    border-radius: 10px; /* ছবির কোণা আরও গোলাকার */
    margin-right: 20px; /* ছবির ডানদিকে আরও ফাঁকা স্থান */
    flex-shrink: 0; /* টেক্সট বড় হলেও ছবি ছোট হবে না */
    box-shadow: 0 2px 8px rgba(0,0,0,0.1); /* ছবির জন্য স্পষ্ট শ্যাডো */
}

/* সার্চ রেজাল্ট আইটেমের তথ্য (নাম, মূল্য) */
.search-result-info {
    display: flex;
    flex-direction: column; /* নাম এবং মূল্যকে নিচে নিচে আনার জন্য */
    flex-grow: 1; /* বাকি স্থান জুড়ে থাকার জন্য */
    text-align: left; /* টেক্সট বামদিকে অ্যালাইন */
}

.search-result-name {
    font-weight: bold; /* নামের জন্য মোটা ফন্ট */
    font-size: 1.05em; /* নামের ফন্ট সাইজ সামান্য বাড়ানো হয়েছে */
    margin-bottom: 5px; /* নাম এবং মূল্যের মধ্যে ফাঁকা স্থান বাড়ানো হয়েছে */
    color: #222; /* নামের টেক্সটের জন্য গাঢ় রঙ */
    line-height: 1.4; /* লাইন হাইট */
}

.search-result-price {
    color: #e74c3c; /* মূল্যের জন্য আলাদা রঙ (যেমন লাল বা কমলা) */
    font-size: 0.95em; /* মূল্যের ফন্ট সাইজ সামান্য বাড়ানো হয়েছে */
    font-weight: 700; /* মূল্যকে আরও হাইলাইট করার জন্য */
}

/* যখন কোনো রেজাল্ট পাওয়া না যায় */
.no-results {
    padding: 20px; /* প্যাডিং বাড়ানো হয়েছে */
    text-align: center;
    color: #888; /* টেক্সটের জন্য কিছুটা গাঢ় রঙ */
    font-style: italic;
    font-size: 0.95em;
}

/* ছোট স্ক্রিনের জন্য রেসপনসিভ অ্যাডজাস্টমেন্ট */
@media (max-width: 768px) {
    .search-results-dropdown {
        width: 90%; /* ছোট স্ক্রিনে প্রায় সম্পূর্ণ প্রস্থ */
        left: 5%; /* মাঝখানে আনার জন্য */
        right: 5%; /* মাঝখানে আনার জন্য */
        top: calc(100% + 5px); /* ইনপুট ফিল্ডের নিচে */
        border-radius: 8px; /* ছোট স্ক্রিনে সামান্য কম গোলাকার কোণা */
    }
    .search-result-item {
        padding: 10px 15px; /* ছোট স্ক্রিনের জন্য প্যাডিং কমানো হয়েছে */
    }
    .search-result-item img {
        width: 50px; /* ছোট স্ক্রিনের জন্য ছবির আকার কমানো হয়েছে */
        height: 50px;
        margin-right: 15px;
    }
}

/* শপ লেআউট - এটি বাম সাইডবার এবং ডান প্রোডাক্ট গ্রিড তৈরি করবে */
.shop-grid { 
    display: grid;
    grid-template-columns: 25% 75%; /* বাম সাইডবারের জন্য 20%, ডান প্রোডাক্ট গ্রিডের জন্য 80% */
    gap: 30px; /* সাইডবার এবং প্রোডাক্ট গ্রিডের মধ্যে ফাঁকা স্থান */
    align-items: flex-start; /* উপাদানগুলোকে উপরের দিকে অ্যালাইন করবে */
}

/* সাইডবারের সামগ্রিক স্টাইল */
.shop-sidebar {
    padding: 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08); /* হালকা শ্যাডো */
}

/* ফিল্টার উইজেটের টাইটেল */
.shop-sidebar h3.widget-title {
    font-size: 1em;
    color: #333;
    margin-top: 10px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee; /* টাইটেলের নিচে বিভাজক লাইন */
}

/* প্রতিটি ফিল্টার গ্রুপ */
.filter-group {
    margin-bottom: 25px; /* ফিল্টার সেকশনগুলোর মধ্যে ফাঁকা স্থান */
}

.filter-group label {
    display: block; /* লেবেলকে পুরো লাইন জুড়ে দেখানোর জন্য */
    font-weight: bold;
    margin-bottom: 8px;
    color: #555;
}

/* ইনপুট ফিল্ড এবং সিলেক্ট বক্সের স্টাইল */
.filter-group input[type="text"],
.filter-group input[type="number"],
.filter-group select {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 0.9em;
    box-sizing: border-box; /* padding এবং border প্রস্থের মধ্যে অন্তর্ভুক্ত করার জন্য */
}

/* মূল্য পরিসীমা ইনপুট */
.price-range {
    display: flex; /* ইনপুট এবং হাইফেনকে একই লাইনে আনার জন্য */
    align-items: center;
    gap: 10px;
}

.price-range input {
    flex-grow: 1; /* ইনপুটগুলোকে সমানভাবে স্থান নিতে দিন */
}

.price-range span {
    color: #777;
}

/* ফিল্টার বাটন */
.shop-filter-form .btn {
    margin-top: 15px;
    padding: 10px 15px;
    font-size: 1em;
}

.shop-filter-form .btn-primary {
    background-color: #e74c3c;
    color: white;
    border-radius: 5px;
}

.shop-filter-form .btn-secondary {
    background-color: #6c757d;
    color: white;
    border-radius: 5px;
}

/* ক্যাটাগরি ফিল্টার লিস্ট */
.category-filter-list,
.checkbox-filter-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-filter-list li,
.checkbox-filter-list li {
    margin-bottom: 8px;
}

.category-filter-list a {
    text-decoration: none;
    color: #555;
    display: block;
    padding: 5px 0;
    transition: color 0.2s ease;
}

.category-filter-list a:hover {
    color: #e74c3c;
}

.checkbox-filter-list label {
    font-weight: normal; /* .filter-group label থেকে অতিরিক্ত মোটা ফন্ট সরাতে */
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: #555;
}

.checkbox-filter-list input[type="checkbox"] {
    margin: 0;
}

/* কালার ফিল্টার লিস্ট */
.color-filter-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.color-swatch {
    width: 25px;
    height: 25px;
    border-radius: 50%;
    border: 1px solid #eee;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.color-swatch:hover {
    transform: scale(1.1);
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.3);
}


/* রেসপনসিভ অ্যাডজাস্টমেন্ট */
@media (max-width: 992px) {
    .shop-grid {
        grid-template-columns: 1fr; /* ছোট স্ক্রিনে সাইডবার এবং প্রোডাক্টগুলো উপরে নিচে দেখাবে */
    }
    .shop-sidebar {
        margin-bottom: 30px; /* যখন স্ট্যাক হবে তখন সাইডবারের নিচে ফাঁকা স্থান */
    }
}

/* প্রোডাক্টের অপশনস এবং ভ্যারিয়েশনস স্টাইল */
.product-options {
    margin-top: 20px;
    margin-bottom: 25px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.option-group {
    margin-bottom: 15px;
}

.option-group label {
    font-weight: bold;
    margin-right: 10px;
    color: #333;
}

.swatch-group {
    display: flex; /* স্ব্যাচগুলোকে একই লাইনে আনার জন্য */
    flex-wrap: wrap; /* প্রয়োজনে পরের লাইনে যাওয়ার জন্য */
    gap: 10px; /* স্ব্যাচগুলোর মধ্যে ফাঁকা স্থান */
    margin-top: 8px;
}

.swatch {
    display: inline-flex; /* কন্টেন্টের মাঝখানে আনার জন্য */
    justify-content: center;
    align-items: center;
    min-width: 40px; /* সাইজ স্ব্যাচের জন্য সর্বনিম্ন প্রস্থ */
    height: 40px; /* সকল স্ব্যাচের জন্য নির্দিষ্ট উচ্চতা */
    padding: 5px 10px;
    border: 1px solid #ddd;
    border-radius: 5px; /* কোণা সামান্য গোলাকার */
    cursor: pointer; /* ক্লিকযোগ্য বোঝাতে কার্সার পরিবর্তন */
    transition: all 0.2s ease; /* হোভার ইফেক্টের জন্য */
    font-size: 0.9em;
    color: #555;
    background-color: #f9f9f9;
}

.swatch:hover {
    border-color: #007bff; /* হোভারে বর্ডারের রঙ পরিবর্তন */
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2); /* হোভারে হালকা শ্যাডো */
}

.swatch.active {
    border-color: #007bff; /* নির্বাচিত স্ব্যাচের বর্ডারের রঙ */
    background-color: #007bff; /* নির্বাচিত স্ব্যাচের ব্যাকগ্রাউন্ড রঙ */
    color: white; /* নির্বাচিত স্ব্যাচের টেক্সটের রঙ */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4); /* নির্বাচিত স্ব্যাচের জন্য স্পষ্ট শ্যাডো */
}

/* কালার স্ব্যাচগুলোর জন্য সুনির্দিষ্ট স্টাইল (যদি ভ্যারিয়েশনের নাম 'Color' হয়) */
.swatch.color {
    width: 35px; /* কালার সার্কেলের নির্দিষ্ট প্রস্থ */
    height: 35px; /* কালার সার্কেলের নির্দিষ্ট উচ্চতা */
    border-radius: 50%; /* গোলাকার আকৃতির জন্য */
    padding: 0; /* প্যাডিং থাকবে না */
    border: 2px solid #ddd; /* সামান্য মোটা বর্ডার */
}

.swatch.color.active {
    border-color: #007bff; /* নির্বাচিত কালার স্ব্যাচের বর্ডার */
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.4);
}

/* কালার স্ব্যাচগুলোর ভিতরের টেক্সট লুকানোর জন্য, কারণ এটি ব্যাকগ্রাউন্ড কালার দেখাবে */
.swatch.color[data-variation-value-name] {
    font-size: 0; /* টেক্সট হাইড করুন */
    color: transparent; /* টেক্সট স্বচ্ছ করুন */
}

/* সাইজ স্ব্যাচগুলোর জন্য সুনির্দিষ্ট স্টাইল (যদি ভ্যারিয়েশনের নাম 'Size' হয়) */
.swatch.size {
    min-width: 45px; /* টেক্সট-ভিত্তিক আকারের জন্য সামান্য বেশি প্রস্থ */
    text-transform: uppercase; /* ঐচ্ছিক: সাইজের টেক্সট বড় হাতের অক্ষরে দেখানোর জন্য */
    font-weight: bold;
}
@media (max-width: 992px) {
    .shop-sidebar {
        margin-bottom: 30px;
        display: none;
    }
}
.price-login-prompt a {
    display: inline-block;
    margin-top: 10px;
    padding: 3px 5px;
    font-size: 0.9rem;
    color: #e74c3c;
    border: 1px solid #e74c3c;
    border-radius: 5px;
    text-decoration: none;
    transition: background-color 0.2s, color 0.2s;
}

.price-login-prompt a:hover {
    background-color: #e74c3c;
    color: white;
}
@media (max-width: 992px) {
    .header-search {
        order: 3;
        width: 100%;
        margin-top: 0px !important;
    }
}

/* Mobile devices এ sticky effect remove করা */
@media (max-width: 768px) {
    .header {
        position: static !important; /* sticky disable হবে */
    }

    .breadcrumb-section{
    background-color: var(--light-color);
    /* padding: 40px 0; */
    text-align: center;
    margin-top: 30px;
}

.section-padding {
    padding: 10px 0;
}

.breadcrumb-section h2
{
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 10px;
}
.product-title
 {
    font-size: 1.5rem;
    color: var(--dark-color);
    margin-bottom: 15px;
}
    
}
/* --- মোবাইল ডিভাইসের জন্য শপ পেজের লেআউট পরিবর্তন --- */

/* 768px বা তার কম প্রস্থের স্ক্রিনের জন্য এই স্টাইলটি প্রয়োগ হবে */
@media (max-width: 768px) {
    
    /* product-grid কে গ্রিড লেআউটে পরিবর্তন করা হচ্ছে */
    .product-grid {
        display: grid;
        /* পাশাপাশি দুটি সমান কলাম তৈরি করা হচ্ছে */
        grid-template-columns: repeat(2, 1fr);
        /* কলাম এবং সারির মধ্যে গ্যাপ বা ফাঁকা জায়গা তৈরি করা হচ্ছে */
        gap: 15px; /* আপনার পছন্দ মতো গ্যাপ পরিবর্তন করতে পারেন */
    }

    /* প্রতিটি প্রোডাক্ট কার্ডের প্রস্থ স্বয়ংক্রিয়ভাবে সেট করা হচ্ছে */
    .product-grid .product-card {
        width: 100%; /* গ্রিড আইটেমের সম্পূর্ণ প্রস্থ নেবে */
        margin-bottom: 0; /* যেহেতু 'gap' ব্যবহার করা হয়েছে, তাই অতিরিক্ত margin এর প্রয়োজন নেই */
    }
}

/* 480px এর চেয়ে ছোট ডিভাইসের জন্য আরও ফাইন-টিউনিং (ঐচ্ছিক) */
@media (max-width: 480px) {
    .product-grid {
        gap: 10px; /* ছোট স্ক্রিনে গ্যাপ কমানো হলো */
    }

    /* ছোট স্ক্রিনে ফন্টের আকার কিছুটা কমানো যেতে পারে */
    .product-info .product-name a {
        font-size: 14px;
    }

    .product-info .product-price {
        font-size: 15px;
    }

    .price-login-prompt{
        font-size: 10px !important;
    }
}

/* --- Single Product Page Button Styles --- */

/* "Content" বাটনের জন্য বিশেষ ডিজাইন */
.btn.btn-success {
   background-color:#E74C3C; /* গাঢ় সবুজ */
    border-color: #ff5d1efe;
    color: #ffffff; /* সাদা টেক্সট */
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
    cursor: pointer;
    width: 100%;
}

/* হোভার করলে বাটনের ডিজাইন পরিবর্তন */
.btn.btn-success:hover {
    background-color: #fa2121f3; /* গাঢ় সবুজ */
    border-color: #ff5d1efe;
    color: #ffffff;
    width: 100%;
}

/* বাটনের আইকনের জন্য স্টাইল */
.btn.btn-success i {
    margin-right: 8px; /* আইকন এবং লেখার মধ্যে ফাঁকা জায়গা */
}


/* --- মোবাইল স্ক্রিনের জন্য লেআউট পরিবর্তন --- */

/* 768px বা তার কম প্রস্থের স্ক্রিনের জন্য */
@media (max-width: 768px) {
    /* "কার্টে যোগ করুন" এবং "এখনই কিনুন" বাটনের গ্রুপ */
    .action-buttons-group {
        display: flex;
        flex-direction: column; /* বাটনগুলো উপর-নিচ বরাবর সাজানো হবে */
        width: 100%;
        gap: 10px; /* বাটন দুটির মধ্যে ১০ পিক্সেল ফাঁকা জায়গা */
    }

    /* প্রতিটি বাটন যেন পুরো জায়গা নেয় */
    .action-buttons-group .btn {
        width: 100%;
        margin: 0; /* অতিরিক্ত মার্জিন हटाया হলো */
    }
}