/*
Theme Name: GreenHut
Theme URI: https://example.com/greenhut
Author: Your Name
Author URI: https://example.com
Description: A custom theme for GreenHut WooCommerce store.
Version: 1.0
Requires at least: 5.0
Tested up to: 6.0
Requires PHP: 7.2
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: greenhut
*/
/* Main CSS File*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');
/*font*/
* {
  margin: 0;
  padding: 0; }

a {
  text-decoration: none;
  color: #454545; }

li {
  list-style-type: none; }

body {
  font-family: "Poppins", sans-serif;
  background: #FBFFF5;
  scroll-behavior: smooth;}

  body .price {
    color: #EF494B !important;
    font-weight: 600 !important; }
    body .price del {
      color: #454545 !important;
      font-weight: 400 !important; }
    body .price ins {
      text-decoration: none !important; }

  /* পণ্যের wrapper এর জন্য fly add to cart animation */
.product {
    position: relative; /* এটি নিশ্চিত করবে যে ক্লোন ইমেজ সঠিকভাবে শুরু হবে */
    display: inline-block;
  }
  
.container {
  max-width: 1200px;
}

img {
  max-width: 100%;
  height: auto;
}

.quds-pt{
    padding-top: 3rem;
}


/* Top Bar Styles */
.top-bar {
    /* background-color: #f0f0e8; */
    font-size: 0.9em;
    border-bottom: 1px solid #e0e0d8;
    color: #555;
}
.top-bar a {
    color: #555;
    text-decoration: none;
    transition: color 0.3s ease;
}
.top-bar a:hover {
    color: #000;
}
.top-bar .icon-text {
    display: flex;
    align-items: center;
}
.top-bar .icon-text i {
    margin-right: 5px;
    color: #6c757d;
}

/* Main Header Styles */
.main-header {
    /* background-color: #FBFFF5; */
    padding: 15px 0;
    border-bottom: 1px solid #e0e0d8;
}
.main-header .navbar-brand img {
    height: 40px; /* Adjust as needed */
    margin-right: 10px;
}
.main-header .search-bar .input-group {
    max-width: 500px;
    margin: 0 auto;
}
.main-header .search-bar .form-control {
    border-color: #3EB57F; /* Green border for search */
    border-right: none;
    border-radius: 0.25rem 0 0 0.25rem;
}
.main-header .search-bar .btn {
    background-color: #3EB57F;
    border-color: #3EB57F;
    color: white;
    border-radius: 0 0.25rem 0.25rem 0;
}


/* Main Navigation Bar */
.main-navbar {
    /* background-color: #FBFFF5; */
    padding: 10px 0;
}
.main-navbar .all-categories-btn {
    background-color: #3EB57F;
    color: white;
    border-radius: 0.25rem;
    padding: 10px 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
}
.main-navbar .all-categories-btn i {
    margin-right: 8px;
    font-size: 1.2em;
}
.main-navbar .nav-link {
    color: #333;
    font-weight: 500;
    padding: 10px 15px;
    transition: color 0.3s ease;
}
.main-navbar .nav-link:hover,
.main-navbar .nav-link.active {
    color: #3EB57F;
}
.main-navbar .nav-item.dropdown .dropdown-menu {
    border-top: 3px solid #3EB57F;
}
.main-navbar .contact-info,
.main-navbar .shipping-info {
    display: flex;
    align-items: center;
    font-size: 0.9em;
    color: #555;
}
.main-navbar .contact-info i,
.main-navbar .shipping-info i {
    font-size: 1.5em;
    color: #3EB57F;
    margin-right: 8px;
}
.main-navbar .contact-info span {
    font-weight: bold;
    color: #dc3545; /* Red for phone number */
}


/*--------------------------------------------------------------
# All Categories Dropdown
--------------------------------------------------------------*/
.all-categories-btn {
    background-color: #3EB57F !important;
    color: white !important;
    border-radius: 8px !important;
    padding: 10px 20px !important;
    font-weight: bold !important;
    display: flex;
    align-items: center;
}
.all-categories-btn i {
    margin-right: 8px;
    font-size: 1.2em;
}

/* ড্রপডাউন মেনুর স্টাইল */
.all-categories-dropdown {
    border: 1px solid #eee;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-radius: 8px;
    padding: 10px 0;
    min-width: 250px; /* ড্রপডাউনের প্রস্থ */
}

.all-categories-dropdown .dropdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

.all-categories-dropdown .dropdown-item:hover,
.all-categories-dropdown .dropdown-item:focus {
    background-color: #f0f8f0; /* হালকা সবুজ হোভার এফেক্ট */
    color: #3EB57F;
}

.all-categories-dropdown .category-count {
    font-size: 0.8rem;
    color: #888;
    background-color: #f0f0f0;
    padding: 2px 8px;
    border-radius: 10px;
}

/*--------------------------------------------------------------
# All Categories Dropdown Animation
--------------------------------------------------------------*/

/* ডিফল্টভাবে ড্রপডাউন মেনুটি অদৃশ্য এবং সামান্য উপরে থাকবে */
.all-categories-dropdown {
    opacity: 0;
    transform: translateY(10px); /* স্লাইড-ডাউন এফেক্টের জন্য */
    visibility: hidden;
    display: block; /* Bootstrap এর display:none কে ওভাররাইড করার জন্য */
    transition: all 0.3s ease-in-out;
}

/* যখন ড্রপডাউনটি 'show' ক্লাস পাবে, তখন এটি দৃশ্যমান এবং সঠিক জায়গায় চলে আসবে */
.all-categories-dropdown.show {
    opacity: 1;
    transform: translateY(0);
    visibility: visible;
}


/*--------------------------------------------------------------
# Dynamic Header Icons
--------------------------------------------------------------*/
.header-icons a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
}
.header-icons a i {
    margin-right: 8px;
    font-size: 1.2rem;
}


/* Header Cart Icon with Count Badge */
.header-cart-icon {
    position: relative;
    text-decoration: none;
    color: #333;
}
.header-cart-icon i {
    font-size: 1.5rem;
}
.cart-contents-count {
    position: absolute;
    top: -14px;
    right: -4px;
    background-color: #ff5722;
    color: #fff;
    font-size: 0.7rem;
    font-weight: bold;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/*--------------------------------------------------------------
# Off-canvas Mini Cart (UI Friendly)
--------------------------------------------------------------*/
#miniCartOffcanvasRight .offcanvas-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #dee2e6;
}
#miniCartOffcanvasRight .offcanvas-title {
    font-weight: 600;
}

#miniCartOffcanvasRight .offcanvas-body {
    padding: 0; /* আমরা ভেতরের কন্টেন্ট দিয়ে প্যাডিং নিয়ন্ত্রণ করব */
    display: flex;
    flex-direction: column;
}

/* যখন কার্ট খালি থাকে */
.woocommerce-mini-cart-empty {
    text-align: center;
    padding: 40px 20px;
    margin: auto; /* লেখাটিকে মাঝখানে আনার জন্য */
}

/* যখন কার্টে আইটেম থাকে */
.widget_shopping_cart_content {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.woocommerce-mini-cart {
    list-style: none;
    padding: 15px;
    margin: 0;
    overflow-y: auto; /* আইটেম বেশি হলে স্ক্রল করা যাবে */
    flex-grow: 1;
}

.woocommerce-mini-cart-item {
    display: flex;
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}
.woocommerce-mini-cart-item:last-child {
    border-bottom: none;
}

.woocommerce-mini-cart-item a:not(.remove) {
    display: flex;
    align-items: flex-start;
    text-decoration: none;
    color: #333;
    flex-grow: 1;
}
.woocommerce-mini-cart-item a img {
    width: 65px;
    height: 65px;
    border-radius: 8px;
    margin-right: 15px;
    object-fit: cover;
}
.woocommerce-mini-cart-item .quantity {
    font-size: 0.9rem;
    color: #777;
    display: block;
    margin-top: 5px;
}
.woocommerce-mini-cart-item .product-title {
    font-weight: 600;
    font-size: 0.95rem;
}


/* Remove Button */
a.remove.remove_from_cart_button {
    width: 24px;
    height: 24px;
    font-size: 14px;
    border-radius: 50%;
    border: 1px solid #ddd;
    color: #999 !important;
    text-align: center;
    line-height: 22px;
    margin-left: 10px;
}
a.remove.remove_from_cart_button:hover {
    background-color: #e64a19;
    color: #fff !important;
    border-color: #e64a19;
}

/* Footer Section (Total & Buttons) */
.woocommerce-mini-cart__total {
    padding: 20px 15px;
    border-top: 2px solid #f0f0f0;
    margin-top: auto; /* ফুটারকে নিচে রাখার জন্য */
    background-color: #f8f9fa;
}

.woocommerce-mini-cart__buttons {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 0 15px 15px;
    background-color: #f8f9fa;
}

.woocommerce-mini-cart__buttons .button {
    width: 100%;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
}
.woocommerce-mini-cart__buttons .button.checkout {
    background-color: #3EB57F;
    color: #fff;
}


/*--------------------------------------------------------------
# Fixed Side Cart (Updated)
--------------------------------------------------------------*/
.side-cart-trigger {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    background-color: #3EB57F;
    color: #fff;
    padding: 15px;
    border-radius: 0 8px 8px 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 1040;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.3s ease;
}

.side-cart-trigger:hover {
    background-color: #218838;
    color: #fff;
}

.side-cart-icon i {
    font-size: 1.8rem;
    display: block; /* 아이콘 아래에 공간이 생기는 것을 방지 */
}

.side-cart-price {
    margin-top: 8px;
    font-weight: bold;
    font-size: 0.9rem;
}
.side-cart-price .amount {
    color: #fff;
}


/*--------------------------------------------------------------
# Final Smart Add to Cart & Discount Badge
--------------------------------------------------------------*/
/* Discount Badge */
.gh-discount-badge {
  font-size: 14px;
  color: #fff;
  position: absolute;
  z-index: 2;
  background: #3EB57F;
  display: flex;
  align-items: center;
  text-align: center;
  width: 90px;
  line-height: 14px;
  font-weight: 600;
  top: 0;
  right: 0;
  height: 42px;
  justify-content: center;
  border-radius: 0 15px 0 0;
}

/* Main Container */
.gh-add-to-cart-container {
    margin-top: 1rem; /* বাটনকে নিচে রাখার জন্য */
}
.gh-add-to-cart-container[data-product_id] {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    overflow: hidden;
    height: 40px;
}
.gh-add-to-cart-container.loading { opacity: 0.5; pointer-events: none; }

/* "Add To Cart" Button (+ icon) */
.gh-add-to-bag {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background-color: #e0f2f1; /* হালকা সবুজ */
    color: #00796b; /* গাঢ় সবুজ টেক্সট */
    border: none;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}
.gh-add-to-bag span {
    margin-left: 10px;
    font-size: 1.2rem;
    font-weight: normal;
}
.gh-add-to-bag:hover { background-color: #b2dfdb; }

/* Quantity Controller (- 1 +) */
.gh-quantity-controller {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    height: 100%;
    background-color: #3EB57F;
    color: #fff;
}
.gh-quantity-controller button {
    background: transparent;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.5rem; /* +/- আইকন বড় করার জন্য */
    width: 40px;
}
.gh-quantity-controller .gh-qty {
    font-weight: bold;
    font-size: 1.1rem;
}


/*--------------------------------------------------------------
# Mobile Fixed Bottom Navigation
--------------------------------------------------------------*/
.mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: #fff;
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1030; /* Bootstrap এর অন্যান্য কম্পোনেন্টের উপরে রাখার জন্য */
    padding: 10px 0;
    border-top: 1px solid #f0f0f0;
}

.mobile-nav-items {
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.mobile-nav-items .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none;
    color: #555;
    font-size: 10px;
    transition: color 0.3s ease;
}

.mobile-nav-items .nav-item i {
    font-size: 20px;
    margin-bottom: 4px;
}

.mobile-nav-items .nav-item span {
    font-weight: 500;
}

/* Active State Styling */
.mobile-nav-items .nav-item.active {
    color: #28a745; /* আপনার থিমের প্রধান সবুজ রঙ */
}


/*--------------------------------------------------------------
# Hero Slider Section (Image Only)
--------------------------------------------------------------*/
.hero-slider-section {
    margin-top: 1rem;
    position: relative;
    width: 100%;
    overflow: hidden;
}


.swiper-slide {
    width: 100%;
    height: 100%;
}

.swiper-slide img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover; /* এটি ছবিকে বিকৃত না করে কন্টেইনারে ফিট করবে */
    object-position: center; /* ছবিটি মাঝখানে থাকবে */
}

/* Swiper Pagination Dots (আগের মতোই থাকবে) */
.swiper-pagination-bullet {
    width: 12px;
    height: 12px;
    background-color: rgba(0, 0, 0, 0.5); /* ডার্ক ডট, যেকোনো ছবির উপর ভালো দেখাবে */
    opacity: 0.8;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    background-color: #3EB57F; /* আপনার ব্র্যান্ডের সবুজ রঙ */
    width: 25px;
    border-radius: 5px;
    opacity: 1;
}


/*--------------------------------------------------------------
# Categories Section
--------------------------------------------------------------*/
.section-title-wrapper{
    margin-bottom: 2rem;
}

.section-title {
    font-size: 2rem;
    font-weight: 600;
    color: #333;
}

/* .cat-col{
    width: 100%;
    padding-right: 12px;
    padding-left: 0;
} */
.cat-col-button{
    width: 10%;
}

.category-card {
    display: flex; /* ফ্লেক্স ব্যবহার করে কন্টেন্ট সেন্টারে রাখা */
    flex-direction: column;
    justify-content: center;
    padding: 20px 15px;
    border-radius: 20px;
    text-align: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 180px; /* একটি ন্যূনতম উচ্চতা */
    width: 108%;
}

/* .category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
} */

.category-card-image {
    margin-bottom: 15px;
    height: 90px; /* একটি নির্দিষ্ট উচ্চতা দিয়ে দিলাম */
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.category-card-title {
    font-size: 12px;
    color: #222;
    margin-bottom: 5px;
}

.category-card-count {
    font-size: 10px;
    color: #666;
}

/* Category Background Colors */
.cat-bg-1 { background-color: #f0f8f0; } /* Light Green */
.cat-bg-2 { background-color: #fff8f0; } /* Light Orange */
.cat-bg-3 { background-color: #f0f5ff; } /* Light Blue */
.cat-bg-4 { background-color: #fff0f5; } /* Light Pink */
.cat-bg-5 { background-color: #f5f0ff; } /* Light Purple */
.cat-bg-6 { background-color: #f0fff8; } /* Light Cyan */
.cat-bg-7 { background-color: #fffeee; } /* Light Yellow */


/* See All Card */
.category-card.see-all {
    background-color: #3EB57F; /* Main Green Color */
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: 80%;
}

.category-card.see-all .category-card-title {
    color: #fff;
    margin-top: 10px;
}

.see-all-arrow {
    background-color: #fff;
    color: #3EB57F;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}


/*--------------------------------------------------------------
# Categories Section (Grid Layout)
--------------------------------------------------------------*/
.categories-section {
    background-color: #fff;
}

/* --- Main Category Grid Container --- */
.category-grid {
    display: flex;
    grid-gap: 12px; /* আইটেমগুলোর মধ্যে দূরত্ব */

    /* **ডেস্কটপের জন্য: ৮টি কলাম (৭টি ক্যাটাগরি + ১টি See All)** */
    /* আমরা auto-fit ব্যবহার করব যাতে এটি স্বয়ংক্রিয়ভাবে অ্যাডজাস্ট হয় */
    grid-template-columns: repeat(auto-fit, minmax(11.5%, 1fr));
}


/* ============================================ */
/* RESPONSIVE BREAKPOINTS (মোবাইল ও ট্যাবলেটের জন্য) */
/* ============================================ */
@media (max-width: 767.98px) {
 .category-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        grid-gap: 6px;
    }
    .category-card {
        min-height: auto;
        padding: 10px 5px;
        width: 68px !important;
        border-radius: 10px;
    }

    .category-card-title{
        font-size: 7px;
    }
    .category-card-count{
        font-size: 4px;
    }

    .see-all-arrow{
        width: 30px;
        height: 30px;
    }

    .category-card-image{
        height: 30px;
    }

    .category-card.see-all{
        width: 45px !important;
    }

    .see-all-arrow{
        font-size: 1rem;
    }

    .section-title{
        font-size: 1rem;
        text-align: left;
    }

    .section-title-wrapper{
        margin-bottom: 1rem;
    }
}



/*--------------------------------------------------------------
# Partial View Banner Slider
--------------------------------------------------------------*/

.partial-view-carousel {
    width: 100%;
    /* overflow: visible; */
}

.partial-view-carousel .swiper-slide {
    width: 85%; /* **গুরুত্বপূর্ণ:** প্রতিটি স্লাইডের প্রস্থ (মোবাইলের জন্য) */
    /* opacity: 0.5;
    transform: scale(0.9); */
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* সক্রিয় স্লাইডের জন্য স্টাইল */
.partial-view-carousel .swiper-slide-active {
    opacity: 1;
    transform: scale(1);
}

.banner-card-partial {
    display: block;
    overflow: hidden;
}
.banner-card-partial img {
    width: 100%;
    height: auto;
    display: block;
}


/* ============================================ */
/* RESPONSIVE BREAKPOINTS (ডেস্কটপের জন্য) */
/* ============================================ */
@media (min-width: 992px) {
    .partial-view-carousel {
        margin: 0 auto;
    }

    .partial-view-carousel .swiper-slide {
        /* ডেস্কটপে একটি স্লাইড পুরো কন্টেইনারের প্রায় অর্ধেক জায়গা নেবে */
        /* 1.5 টি স্লাইড দেখানোর জন্য */
        width: calc(100% / 1.5 - 20px); 
        transform: scale(1); /* ডেস্কটপে স্কেলিং বন্ধ */
        opacity: 1; /* ডেস্কটপে অপাসিটি বন্ধ */
    }
}

@media (min-width: 1200px) {
    .partial-view-carousel .swiper-slide {
         /* বড় ডেস্কটপে দুটি স্লাইড দেখানোর জন্য */
        width: calc(100% / 3 - 10px);
    }
}


/*--------------------------------------------------------------
# Smart AJAX Search Results (Both Desktop & Mobile)
--------------------------------------------------------------*/
.smart-search-form-container {
    position: relative;
}

.smart-search-results {
    position: absolute;
    top: 105%; /* ইনপুট ফিল্ডের ঠিক নিচে */
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 9999; /* **গুরুত্বপূর্ণ:** অন্য সবকিছুর উপরে দেখানোর জন্য */
    max-height: 400px;
    overflow-y: auto;
    display: none;
}
/* ... .search-result-item এবং অন্যান্য স্টাইল আগের মতোই থাকবে ... */



/*--------------------------------------------------------------
# Most Selling Products Section (WooCommerce Standard)
--------------------------------------------------------------*/
/* ... Filter Nav এবং See More Link এর স্টাইল আগের মতোই থাকবে ... */


/* WooCommerce Products Grid Styling */

#most-selling-products-grid ul.products {
    /* WooCommerce এর ডিফল্ট লিস্ট স্টাইল রিসেট করা */
    list-style: none;
    margin: 0;
    padding: 0;
    
    /* **এটাই মূল ম্যাজিক: CSS Grid লেআউট** */
    display: grid;

    /* **ডেস্কটপের জন্য (ডিফল্ট): ৫টি কলাম** */
    grid-template-columns: repeat(5, 1fr);
}

#most-selling-products-grid ul.products {
    margin: 0;
    padding: 0;
}

#most-selling-products-grid ul.products li.product,
.woocommerce ul.products li.product, .swiper-slide li.product { /* শপ পেজ এবং হোমপেজ, উভয় জায়গায় কাজ করবে */
    text-align: center;
    background-color: #fff8f0; /* হালকা ক্রিম কালার */
    border: 1px solid #f0f0f0;
    border-radius: 15px;
    padding: 15px;
    margin-bottom: 2rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
    margin-right: 0.7rem;
}

.woocommerce ul.products li.first, .woocommerce-page ul.products li.product {
    width: 23.5% !important;
}

.woocommerce-loop-product__title{
    font-size: 1rem;
}

.products img{
    margin: 0 auto 1em;
    object-fit: contain;
}

.see-more-link{
    color: #D14734;
    font-weight: 600;
    transition: color 0.3s ease;
    gap: 10px;
    display: flex;
    align-items: center;
}

/* #most-selling-products-grid ul.products li.product:hover,
.woocommerce ul.products li.product:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.07);
} */

/* Product Image */
.woocommerce ul.products li.product a img {
    margin: 0 auto 1em;
    object-fit: contain;
}

/* Product Title */
.woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce-loop-product__title {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
    padding: 0;
    margin-bottom: 8px;
    height: 40px;
    overflow: hidden;
}

/* Product Price */
.woocommerce ul.products li.product .price {
    color: #ff5722;
    font-size: 1.1rem;
    font-weight: bold;
    display: block;
    margin-bottom: 15px;
}
.woocommerce ul.products li.product .price del {
    color: #999;
}
.woocommerce ul.products li.product .price ins {
    text-decoration: none;
}

.product-filter-nav .nav-item .nav-link {
    color: #555;
    background-color: #DAFFEE;
    font-weight: 500;
    padding: 8px 25px;
    border-radius: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.product-filter-nav .nav{
    gap: 1rem;
}
.product-filter-nav .nav-item .nav-link:hover,
.product-filter-nav .nav-item .nav-link.active {
    background-color: #3EB57F;
    color: #fff;
}


/*--------------------------------------------------------------
# Responsive Product Grid Limit
--------------------------------------------------------------*/

/* শুধুমাত্র মোবাইল এবং ট্যাবলেট ভিউতে (992px এর নিচে) এই স্টাইলটি প্রয়োগ হবে */
@media (max-width: 991.98px) {
    #most-selling-products-grid ul.products {
        /* ট্যাবলেটে ৩টি কলাম */
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 767.98px) {
    #most-selling-products-grid ul.products {
        grid-template-columns: repeat(2, 1fr);
    }

    /* মোবাইলের জন্য প্রোডাক্ট লিমিট (আগের কোড) */
    #most-selling-products-grid ul.products li.product {
        display: none;
    }
    #most-selling-products-grid ul.products li.product:nth-child(-n+6) {
        display: grid; /* none থেকে flex এ পরিবর্তন করা হয়েছে */
    }

    .price{
        font-size: 12px !important;
    }
    
    .gh-add-to-bag{
        font-size: 10px;
    }

    .product-filter-nav .nav {
        gap: 0.7rem !important;
    }
    .product-filter-nav .nav-item .nav-link{
        font-size: 9px;
        padding: 8px 18px;
    }
}



/* AJAX Loader */
.loader-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}
.loader {
    border: 5px solid #f3f3f3;
    border-radius: 50%;
    border-top: 5px solid #3EB57F;
    width: 50px;
    height: 50px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}



/*--------------------------------------------------------------
# WooCommerce Sidebar
--------------------------------------------------------------*/
.widget-area .widget {
    background-color: #f9f9f9;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 2rem;
}

.widget-area .widget-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.widget-area ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.widget-area ul li {
    padding: 5px 0;
}

.widget-area ul li a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}

.widget-area ul li a:hover {
    color: #3EB57F;
}


/*--------------------------------------------------------------
# Product Unit/Weight Styling
--------------------------------------------------------------*/
.product-unit {
    display: block;
    font-size: 15px;
    font-weight: 500;
    color: #777;
    line-height: 1;
}

/* টাইটেলের নিচের স্পেস কমানো, যদি প্রয়োজন হয় */
.woocommerce ul.products li.product .woocommerce-loop-product__title {
    margin-bottom: 5px; 
}


/*--------------------------------------------------------------
# Full-Width Banner Section
--------------------------------------------------------------*/
.full-width-banner-section {
    margin: 2rem 0;
}

.full-width-banner-card {
    display: block;
    border-radius: 20px;
    overflow: hidden; /* ছবির কোণাগুলোকে গোল করার জন্য */
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.full-width-banner-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.1);
}

.full-width-banner-card img {
    width: 100%;
    height: auto;
    display: block;
}


/*--------------------------------------------------------------
# Category Product Carousel (Final & Stable)
--------------------------------------------------------------*/
.category-products-slider-section {
    position: relative;
}

.category-product-carousel {
    padding-bottom: 50px;
    margin-left: auto;
    margin-right: auto;
}

.category-product-carousel .swiper-wrapper {
    /* WooCommerce এর li.product একটি ul এর মধ্যে থাকতে অভ্যস্ত, 
       কিন্তু swiper-wrapper একটি div. তাই আমরা ul এর মতো আচরণ যোগ করছি। */
    list-style: none;
    padding: 0;
    margin: 0;
}

.category-product-carousel .swiper-slide {
    height: auto; /* কন্টেন্টের উপর ভিত্তি করে উচ্চতা ঠিক হবে */
    display: flex; /* স্লাইডের ভিতরের আইটেমকে ফ্লেক্সিবল করার জন্য */
}

/* **সবচেয়ে গুরুত্বপূর্ণ অংশ: CSS এলোমেলো হওয়া রোধ** */
.category-product-carousel .swiper-slide .product {
    /* WooCommerce এর li.product এর ডিফল্ট float এবং width কে ওভাররাইড করা হচ্ছে */
    width: 100% !important;
    margin: 0 !important;
    float: none !important;
    height: 100%; /* স্লাইডের পুরো উচ্চতা নেওয়ার জন্য */
    display: flex; /* প্রোডাক্ট কার্ডের কন্টেন্টগুলোকে ভালোভাবে সাজানোর জন্য */
    flex-direction: column;
}
/* প্রোডাক্ট কার্ডের কন্টেন্টকে বড় করে বাটন নিচে রাখার জন্য */
.category-product-carousel .swiper-slide .product .woocommerce-loop-product__link {
    flex-grow: 1;
}


.category-carousel-next,
.category-carousel-prev {
    color: #3EB57F;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 18%;
    width: 45px;
    height: 45px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    top: 45%; /* মাঝখানে আনার জন্য */
}
.category-carousel-next::after,
.category-carousel-prev::after {
    font-size: 1.2rem;
    font-weight: bold;
}

@media (min-width: 1200px) {
    .category-carousel-prev { left: -25px; }
    .category-carousel-next { right: -25px; }
}



/*--------------------------------------------------------------
# Reusable Promo Banner Card Style
--------------------------------------------------------------*/
.promo-banner-card {
    display: block;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* কলামগুলোর উচ্চতা সমান রাখার জন্য */
}

.promo-banner-card:hover {
    transform: translateY(-8px);
}

.promo-banner-card img {
    width: 100%;
    height: auto;
    object-fit: cover; /* ছবি যেন কার্ডের পুরো জায়গা নেয় এবং বিকৃত না হয় */
    display: block;
}



/*--------------------------------------------------------------
# Gifting Slider Section
--------------------------------------------------------------*/
.gifting-slider-section {
    position: relative;
    background-color: #D2FFD2;
    border-radius: 30px;
}

.section-header .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    color: #222;
    width: 53%;
    margin: 0 auto;
    padding-bottom: 10px;
}

.section-header .section-subtitle {
    font-size: 14px;
    color: #666;
    margin-top: 5px;
    width: 53%;
    margin: 0 auto;
}

.gifting-carousel {
    padding: 10px 0;
}

/* Navigation Buttons */
.gifting-carousel-next,
.gifting-carousel-prev {
    color: #3EB57F;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    top: 50%; /* স্লাইডারের মাঝখানে পজিশনিং */
    transform: translateY(-50%);
}
.gifting-carousel-next::after,
.gifting-carousel-prev::after {
    font-size: 1.2rem;
}

@media (min-width: 1200px) {
    .gifting-carousel-prev { left: -20px; }
    .gifting-carousel-next { right: -20px; }
}



/*--------------------------------------------------------------
# Article Slider Section
--------------------------------------------------------------*/

.article-slider-section .section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin: 0;
}

.article-carousel {
    padding: 10px 0;
}

.article-card {
    background-color: #fff8f0; /* হালকা ক্রিম কালার */
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.article-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
}

.article-card-image {
    display: block;
}
.article-card-image img {
    width: 100%;
    height: 200px; /* সব ছবির উচ্চতা সমান রাখার জন্য */
    object-fit: cover;
}

.article-card-content {
    padding: 20px;
    flex-grow: 1; /* কন্টেন্টকে পুরো জায়গা নিতে সাহায্য করে */
    display: flex;
    flex-direction: column;
}

.article-card-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0 0 10px 0;
}
.article-card-title a {
    text-decoration: none;
    color: #222;
}

.article-card-excerpt {
    font-size: 0.9rem;
    color: #666;
    line-height: 1.6;
    flex-grow: 1; /* এটি Read More বাটনকে নিচে ঠেলে দেয় */
}
.article-card-excerpt p {
    margin-bottom: 0;
}

.read-more-link {
    color: #ff5722;
    text-decoration: none;
    font-weight: 600;
    margin-top: 15px;
    align-self: flex-start; /* বাটনকে বামে রাখে */
}
.read-more-link:hover {
    color: #e64a19;
}


/* Slider Navigation Buttons */
.article-carousel-next,
.article-carousel-prev {
    color: #3EB57F;
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    top: 40%;
}
.article-carousel-next::after,
.article-carousel-prev::after {
    font-size: 1.2rem;
}

@media (min-width: 1200px) {
    .article-carousel-prev { left: -20px; }
    .article-carousel-next { right: -20px; }
}


/*--------------------------------------------------------------
# Footer
--------------------------------------------------------------*/
.site-footer {
    background-color: #fdf0e0; /* হালকা পিচ/ক্রিম কালার */
    color: #555;
    font-size: 0.95rem;
}

.footer-main {
    padding: 60px 0;
    border-bottom: 1px solid #f0e0d0;
}

.footer-widget .widget-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: #111;
    margin-bottom: 20px;
}

/* About Widget Styles */
.footer-widget .footer-logo img {
    max-height: 45px;
    margin-bottom: 15px;
}
.footer-widget .footer-about-text {
    line-height: 1.7;
}
.footer-social-icons {
    list-style: none;
    padding: 0;
    margin-top: 20px;
}
.footer-social-icons li {
    display: inline-block;
    margin-right: 10px;
}
.footer-social-icons a {
    color: #111;
    font-size: 1.2rem;
}

/* Footer Menu Widget Styles */
.footer-widget ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-widget ul li {
    margin-bottom: 10px;
}
.footer-widget ul a {
    text-decoration: none;
    color: #555;
    transition: color 0.3s ease;
}
.footer-widget ul a:hover {
    color: #3EB57F;
}

/* Contact Info Widget Styles */
.footer-widget .contact-info p {
    margin-bottom: 10px;
}

/* Footer Bottom Bar */
.footer-bottom {
    padding: 20px 0;
    background-color: #fbe5ce;
}
.footer-bottom p {
    margin: 0;
    font-size: 0.9rem;
    color: #444;
}


/* Woo single page */
.woocommerce div.product form.cart{
    margin-top: 1rem;
    width: 100%;
    justify-content: space-between;
    display: inline-flex;
    align-items: center;
}

.woocommerce div.product form.cart .single_add_to_cart_button{
    background: #00845f;
    color: #ffffff;
    padding: 17px;
}

.woocommerce div.product form.cart .add_to_cart_button{
    font-size: 18px;
    font-weight: 500;
    padding: 17px;
    background: #EF494B;
    color: #fff;
}

.quantity-text {
  display: none;
}

.product_meta{
    display: none;
}



/*--------------------------------------------------------------
# Smart AJAX Search Bar
--------------------------------------------------------------*/
.smart-search-form-container {
    position: relative;
}

.woocommerce-product-search {
    display: flex;
    border: 1px solid #3EB57F;
    border-radius: 8px;
    overflow: hidden;
    height: 45px !important;
}


.woocommerce-product-search .search-field {
    border: none;
    flex-grow: 1;
    padding: 0 15px;
    outline: none;
    font-size: 13px;
}

.woocommerce-product-search .search-submit {
    background-color: #3EB57F;
    border: none;
    color: #fff;
    padding: 12px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    margin: 2px;
    border-radius: 5px;
}

/* Search Results Dropdown */
#smart-search-results {
    position: absolute;
    top: 105%;
    left: 0;
    right: 0;
    background-color: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 400px;
    overflow-y: auto;
    display: none; /* Initially hidden */
}

.search-result-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #f0f0f0;
    text-decoration: none;
    transition: background-color 0.2s ease;
}
.search-result-item:last-child {
    border-bottom: none;
}
.search-result-item:hover {
    background-color: #f9f9f9;
}

.search-result-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin-right: 15px;
    border-radius: 5px;
}

.search-result-title {
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
    margin: 0;
}

.search-result-price {
    font-size: 0.85rem;
    color: #ff5722;
}
.search-result-price ins {
    text-decoration: none;
}

.no-results, #smart-search-results .loader-wrapper {
    padding: 20px;
    text-align: center;
    color: #777;
}

/* AJAX loader এর স্টাইল আগের সেকশন থেকে নেওয়া হয়েছে */



/* Responsive Adjustments */
@media (max-width: 767.98px) {

    /*--------------------------------------------------------------
    # Mobile Header
    --------------------------------------------------------------*/
    .mobile-header {
        background-color: #fff;
        border-bottom: 1px solid #f0f0f0;
    }
    .mobile-logo img {
        max-height: 30px;
    }
    .mobile-menu-trigger .btn {
        background-color: #f5f5f5;
        border-color: #eee;
        padding: 5px 10px;
    }
    .mobile-menu-trigger .btn img{
        height: 20px;
        opacity: 0.7;
    }

    .mobile-header-search {
        align-items: unset !important;
    }

    /* Mobile Search Bar */
    .mobile-header-search .woocommerce-product-search {
        position: relative;
        border: none;
        background-color: #f5f5f5;
        border-radius: 5px;
    }
    .mobile-header-search .search-field {
        background: transparent;
        border: none;
        padding-left: 40px; /* আইকনের জন্য জায়গা */
        height: 45px;
    }
    .mobile-header-search .search-icon-inside {
        position: absolute;
        left: 15px;
        top: 50%;
        transform: translateY(-50%);
        color: #999;
    }
    .mobile-filter-trigger .btn {
        height: 45px;
        width: 45px;
        background-color: #28a745;
        border-color: #28a745;
    }

    /* Mobile Menu Offcanvas */
    .mobile-menu-list a {
        display: block;
        padding: 10px 0;
        text-decoration: none;
        color: #333;
        font-weight: 500;
        border-bottom: 1px solid #f0f0f0;
    }
    .mobile-menu-list li:last-child a {
        border-bottom: none;
    }

    /* Mobile Filter Offcanvas */
    #mobileFilterOffcanvas {
        height: 70vh; /* স্ক্রিনের ৭০% উচ্চতা */
        border-top-left-radius: 20px;
        border-top-right-radius: 20px;
    }

    .gh-add-to-cart-container[data-product_id] {
        height: 35px;
        border-radius: 4px;
    }


    .main-header .navbar-brand img{
        height: 28px;
    }

    .woocommerce ul.products li.first, .woocommerce-page ul.products li.product{
        width: 48% !important;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce-loop-product__title{
        font-size: 14px;
        height: 36px;
    }
    .woocommerce ul.products li.product .price, .product-unit{
        font-size: 14px;
    }

    .gh-discount-badge{
        width: 70px;
        height: 32px;
        font-size: 12px;
    }

    .side-cart-trigger{
        display: none !important;
    }

    .orderby{
        font-size: 11px;
    }
    .woocommerce .woocommerce-result-count{
        font-size: 11px;
    }

    .swiper-pagination-bullet{
        width: 7px;
        height: 7px;
    }
    .swiper-pagination-bullet-active{
        width: 15px !important;
    }

    .woocommerce div.product .product_title{
        font-size: 22px !important;
    }


    .woocommerce-tabs{
        background: #fff !important;
        padding: 20px !important;
    }
    .woocommerce-tabs li{
        border: none !important;
        background: none !important;
    }
    .woocommerce-tabs li:hover{
        background: none !important;
    }
    .woocommerce div.product .woocommerce-tabs ul.tabs li.active a{
        color: #00796b !important;
    }
    .woocommerce-tabs li a, #reply-title #commentform{
        font-size: 12px !important;
    }

    .woocommerce #reviews #comments h2{
        font-size: 20px !important;
    }

    .woocommerce div.product .woocommerce-tabs ul.tabs{
        padding: 0 !important;
    }

    #tab-additional_information h2{
        font-size: 16px !important;
    }

    .woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td{
        font-size: 12px !important;
    }


    .footer-main {
        padding: 30px 0;
    }
    .footer-widget .widget-title {
        font-size: 1.1rem;
    }
    .footer-widget .footer-logo img {
        max-height: 35px;
    }
    .footer-widget .footer-about-text {
        font-size: 0.9rem;
    }
    .footer-social-icons a {
        font-size: 1rem;
    }
    .footer-bottom {
        padding: 15px 0;
    }
    .footer-bottom p {
        font-size: 0.8rem;
    }
}  


@media (max-width: 480px) {

    .quds-pt{
        padding-top: 24px !important;
    }

    .partial-view-slider-section, .four-banners-section{
        padding: 25px 0 !important;
    }

    .category-product-carousel {
        padding-bottom: 20px;
    }

    .woocommerce ul.products li.product .woocommerce-loop-product__title, .woocommerce-loop-product__title{
        font-size: 13px;
        height: 33px;
    }

    .woocommerce ul.products li.product .price, .product-unit{
        font-size: 12px;
        padding: 3px 0;
    }

    .products img{
        margin: 0 auto 0.5em;
    }

    .gifting-slider-section {
        border-radius: 12px;
        padding: 24px 0 !important;
    }

    .gh-add-to-cart-container[data-product_id] {
        height: 35px;
        border-radius: 4px;
    }

    .section-header .section-title{
        font-size: 1.2rem;
        width: 100%;
        text-align: center;
    }

    .see-more-link{
        font-size: 13px;
    }

    .woocommerce div.product form.cart .single_add_to_cart_button, .woocommerce div.product form.cart .add_to_cart_button{
        padding: 16px;
        font-size: 14px;
    }

    .section-header .section-subtitle{
        font-size: 12px;
        width: 90%;
    }

    .full-width-banner-section {
        margin: 0.5rem 0;
    }

    .full-width-banner-card {
        border-radius: 5px;
    }
}