/* 
   ==========================================================================
   BAZAR SODAI - PREMIUM DESIGN SYSTEM (FROM SCRATCH)
   Theme Color: #3D953D | Aesthetics: Minimalist Home Appliance
   ==========================================================================
*/

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@300;400;500;600;700;800&family=Outfit:wght@300;400;500;600;700;800&family=Noto+Sans+Bengali:wght@400;700&display=swap');
:root {
    --primary-color: #3D953D;
    --secondary-color: #1a1a1a;
    --bg-light: #f8f9fa;
    --white: #ffffff;
    --text-main: #333333;
    --text-muted: #777777;
    --border-color: #eeeeee;
    --radius-lg: 16px;
    --radius-md: 10px;
    --shadow-sm: 0 4px 20px rgba(0, 0, 0, 0.04);
    --shadow-hover: 0 20px 45px rgba(61, 149, 61, 0.12);
    --transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 1. Global Reset & Typography */
body {
    font-family: 'Inter', -apple-system, sans-serif !important;
    color: var(--text-main) !important;
    line-height: 1.6;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
}

/* 2. Layout Width (90%) */
.ast-container,
.elementor-container,
.site-content .ast-container,
.elementor-section.elementor-section-boxed>.elementor-container {
    max-width: 90% !important;
    width: 90% !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* Sidebar & Content Layout */
body.archive .site-content .ast-container,
body.shop .site-content .ast-container {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important; /* Using margin instead for precise control */
    align-items: flex-start !important;
    max-width: 90% !important;
    margin: 0 auto !important;
}

body.archive #primary,
body.shop #primary {
    flex: 1 !important;
    margin-left: 40px !important;
}

body.archive #secondary,
body.shop #secondary {
    flex: 0 0 300px !important;
}

@media (max-width: 992px) {
    body.archive .site-content .ast-container,
    body.shop .site-content .ast-container {
        flex-direction: column !important;
    }
    body.archive #secondary,
    body.shop #secondary {
        flex: 0 0 100% !important;
        width: 100% !important;
        order: 2 !important;
    }
    body.archive #primary,
    body.shop #primary {
        order: 1 !important;
        margin-left: 0 !important;
    }
}

/* Centering Breadcrumbs and Archive Headers */
.ast-breadcrumbs,
.ast-archive-description,
.page-header {
    text-align: center !important;
    display: block !important;
    margin-left: auto !important;
    margin-right: auto !important;
}

/* 3. Header Redesign */
.main-header-bar {
    border-bottom: 1px solid var(--border-color) !important;
    padding: 15px 0 !important;
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px);
}

.main-navigation a {
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color) !important;
    transition: var(--transition) !important;
}

.main-navigation a:hover {
    color: var(--primary-color) !important;
}

/* 4. Premium Product Card */
.woocommerce ul.products li.product,
.elementor-shortcode .woocommerce ul.products li.product,
.ast-woocommerce-container ul.products li.product {
    background: var(--white) !important;
    border-radius: var(--radius-lg) !important;
    padding: 15px 15px 15px 15px !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border-color) !important;
    text-align: center !important;
    transition: var(--transition) !important;
    display: flex !important;
    flex-direction: column !important;
    margin-bottom: 40px !important;
    height: auto !important; /* Removed fixed height */
}

.woocommerce ul.products li.product:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary-color) !important;
}

.woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.elementor-shortcode .woocommerce ul.products li.product .astra-shop-thumbnail-wrap,
.ast-woocommerce-container ul.products li.product .astra-shop-thumbnail-wrap {
    background-color: var(--bg-light) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 20px !important; /* Image to Heading 20px */
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-grow: 0 !important; /* Keep it at the top */
}

.woocommerce ul.products li.product img {
    mix-blend-mode: multiply !important;
    transition: var(--transition) !important;
}

.woocommerce ul.products li.product:hover img {
    transform: scale(1.06) !important;
}

/* Sale & Price */
.woocommerce span.onsale {
    background-color: var(--primary-color) !important;
    font-weight: 700 !important;
    border-radius: 4px !important;
    top: 15px !important;
    left: 15px !important;
}

.woocommerce-loop-product__title,
.elementor-shortcode .woocommerce-loop-product__title,
.ast-woocommerce-container .woocommerce-loop-product__title {
    font-size: 16px !important;
    font-weight: 600 !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important; /* Heading to Price 0px */
    padding-bottom: 0 !important;
    line-height: 1.3 !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    text-align: left !important;
    min-height: 2.6em !important; /* Forces consistent 2-line height */
}

.woocommerce ul.products li.product .price,
.elementor-shortcode .woocommerce ul.products li.product .price,
.ast-woocommerce-container ul.products li.product .price {
    font-size: 16px !important;
    color: var(--secondary-color) !important;
    font-weight: 800 !important;
    margin-bottom: 20px !important; /* Price to Button 20px */
    text-align: left !important;
    display: block !important;
}

/* Buy Now Button */
.buy-now-btn-styled,
.elementor-shortcode .buy-now-btn-styled,
.ast-woocommerce-container .buy-now-btn-styled {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 15px !important;
    border-radius: var(--radius-md) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.2px !important;
    width: 100% !important;
    transition: var(--transition) !important;
    border: none !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    display: block !important;
}

.buy-now-btn-styled:hover {
    background-color: var(--secondary-color) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important;
}

/* 5. Custom Category Slider */
.krt-category-slider-wrapper,
.elementor-widget-krt_category_slider {
    padding: 0 !important;
    margin: 0 !important;
    position: relative;
}

.krt-cat-item {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    text-decoration: none !important;
    transition: var(--transition) !important;
    padding: 10px;
}

.krt-cat-img {
    width: 140px !important;
    height: 140px !important;
    border-radius: 50% !important;
    background: var(--bg-light) !important;
    border: 2px solid var(--border-color) !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    overflow: hidden !important;
    margin-bottom: 20px !important;
    transition: var(--transition) !important;
    box-shadow: var(--shadow-sm) !important;
}

.krt-cat-img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    transition: var(--transition) !important;
}

.krt-cat-name {
    font-size: 16px !important;
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
    margin: 0 !important;
    transition: var(--transition) !important;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Hover Effects */
.krt-cat-item:hover {
    transform: translateY(-5px);
}

.krt-cat-item:hover .krt-cat-img {
    border-color: var(--primary-color) !important;
    background: var(--white) !important;
    box-shadow: var(--shadow-hover) !important;
    transform: scale(1.05);
}

.krt-cat-item:hover .krt-cat-img img {
    transform: scale(1.1);
}

.krt-cat-item:hover .krt-cat-name {
    color: var(--primary-color) !important;
}

/* Swiper Pagination Customization */
.krt-cat-swiper .swiper-pagination-bullet {
    background: var(--secondary-color) !important;
    opacity: 0.2;
}

.krt-cat-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1;
    width: 25px !important;
    border-radius: 10px !important;
}

/* 6. Single Product Page Overhaul */
/* Apply Hind Siliguri as fallback for Bengali text */
body.single-product,
body.single-product p,
body.single-product span,
body.single-product div,
body.single-product h1,
body.single-product h2,
body.single-product h3,
body.single-product h4,
body.single-product h5,
body.single-product h6,
body.single-product li,
body.single-product a {
    font-family: 'Inter', 'Hind Siliguri', -apple-system, sans-serif !important;
}

.woocommerce div.product .product_title {
    font-size: 38px !important;
    margin-bottom: 20px !important;
    text-align: left !important;
}

.woocommerce div.product p.price {
    color: var(--primary-color) !important;
    font-size: 34px !important;
    margin-bottom: 30px !important;
    text-align: left !important;
}

.single_add_to_cart_button {
    background-color: var(--primary-color) !important;
    border-radius: var(--radius-md) !important;
    height: 56px !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    padding: 0 50px !important;
}

.woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 80px !important;
    background: var(--bg-light) !important;
    padding: 50px !important;
    border-radius: var(--radius-lg) !important;
}

/* 7. Cart & Checkout (Clean UI) */
.woocommerce-cart-form,
.cart-collaterals,
.woocommerce-checkout {
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 30px !important;
    background: var(--white) !important;
}

.checkout-button,
.place-order .button {
    background-color: var(--primary-color) !important;
    border-radius: var(--radius-md) !important;
    padding: 18px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
}

/* 8. Footer Redesign */
.site-footer {
    background-color: var(--secondary-color) !important;
    color: #999 !important;
    padding: 80px 0 40px 0 !important;
}

.site-footer h4,
.site-footer h2 {
    color: var(--white) !important;
    margin-bottom: 25px !important;
}

.site-footer a {
    color: #bbb !important;
    transition: var(--transition);
}

.site-footer a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px;
}

/* 9. Utility Classes (For User) */
.trust-badge-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 40px 0;
}

.trust-badge-item {
    background: var(--bg-light);
    padding: 25px;
    border-radius: var(--radius-md);
    text-align: center;
}

/* Hide Astra Junk */
.ast-woo-product-category,
.ast-on-card-button,
.ast-select-options-trigger,
.ast-card-action-tooltip {
    display: none !important;
}

/* Grid System */
.woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    align-items: stretch !important;
}

@media (max-width: 1200px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 921px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 544px) {
    .woocommerce ul.products {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .woocommerce ul.products li.product {
        padding: 12px !important;
    }
    
    .woocommerce-loop-product__title {
        font-size: 14px !important;
        padding-bottom: 5px !important;
    }
    
    .woocommerce ul.products li.product .price {
        font-size: 16px !important;
        margin-bottom: 8px !important;
    }
    
    .buy-now-btn-styled {
        padding: 10px 5px !important;
        font-size: 11px !important;
        letter-spacing: 0.5px !important;
    }
}

/* Loop Product Image Discount Badge Positioning */
.woocommerce ul.products li.product {
    position: relative !important;
}

@media (min-width: 769px) {
    .woocommerce ul.products li.product .krt-loop-discount-badge {
        position: absolute !important;
        top: 25px !important;
        right: 25px !important;
        left: auto !important;
        width: auto !important;
        height: auto !important;
        background-color: var(--primary-color) !important;
        color: var(--white) !important;
        font-family: 'Hind Siliguri', sans-serif !important;
        font-size: 12px !important;
        font-weight: 700 !important;
        padding: 5px 12px !important;
        border-radius: 4px !important;
        z-index: 10 !important;
        box-shadow: 0 4px 8px rgba(0,0,0,0.15) !important;
        margin: 0 !important;
        display: inline-block !important;
        line-height: 1.2 !important;
        text-align: center !important;
    }
}

@media (max-width: 768px) {
    .woocommerce ul.products li.product .krt-loop-discount-badge {
        display: none !important;
    }
}

/* 10. Review Slider Redesign */
.krt-review-slider-wrapper {
    padding: 40px 0 10px 0;
    position: relative;
    margin-bottom: 0 !important;
}

.krt-review-swiper {
    padding: 10px 0 !important;
    /* Added space for shadows */
}

.krt-review-card {
    background: var(--white) !important;
    padding: 40px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08) !important;
    /* Increased visibility */
    border: 1px solid var(--border-color) !important;
    transition: var(--transition) !important;
    height: 100% !important;
    display: flex !important;
    flex-direction: column !important;
    position: relative;
    overflow: hidden;
}

.krt-review-card:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary-color) !important;
}

.krt-review-quote {
    position: absolute;
    top: 20px;
    right: 30px;
    width: 40px;
    height: 40px;
    color: var(--primary-color);
    opacity: 0.1;
}

.krt-review-stars {
    margin-bottom: 20px;
}

.krt-review-stars .star {
    font-size: 18px;
    color: #ddd;
}

.krt-review-stars .star.filled {
    color: #FFD700;
    /* Gold */
}

.krt-review-text {
    font-size: 16px !important;
    line-height: 1.8 !important;
    color: var(--text-main) !important;
    font-style: italic !important;
    margin-bottom: 30px !important;
    flex-grow: 1;
}

.krt-review-name {
    font-size: 18px !important;
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
    margin: 0 !important;
    display: flex;
    align-items: center;
}

.krt-review-name::before {
    content: '';
    width: 20px;
    height: 2px;
    background: var(--primary-color);
    margin-right: 12px;
    display: inline-block;
}

/* Swiper Pagination for Reviews */
.krt-review-swiper .swiper-pagination-bullet {
    background: var(--secondary-color) !important;
    opacity: 0.2;
}

.krt-review-swiper .swiper-pagination-bullet-active {
    background: var(--primary-color) !important;
    opacity: 1;
    width: 30px !important;
    border-radius: 10px !important;
}

/* 11. Search Results & No Results Page */
.krt-no-results-wrapper {
    text-align: center;
    padding: 100px 20px;
    background: var(--bg-light);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-color);
    margin: 50px 0;
}

.krt-no-results-wrapper h2 {
    font-size: 32px !important;
    margin-bottom: 20px !important;
    color: var(--secondary-color);
}

.krt-no-results-wrapper p {
    font-size: 18px;
    color: var(--text-muted);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.krt-back-home-btn {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 18px 45px !important;
    border-radius: var(--radius-md) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    transition: var(--transition) !important;
}

.krt-back-home-btn:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Ensure Search Result Grid & Home Page Layout */
body.search-results,
body.post-type-archive-product,
body.tax-product_cat,
body.woocommerce-account {
    background-color: #F5F6F7 !important;
}

.search-results #primary,
.search-results .ast-container,
.search-results .site-content,
.search-results #main,
.post-type-archive-product #primary,
.post-type-archive-product .ast-container,
.post-type-archive-product .site-content,
.post-type-archive-product #main,
.tax-product_cat #primary,
.tax-product_cat .ast-container,
.tax-product_cat .site-content,
.tax-product_cat #main,
.woocommerce-account #primary,
.woocommerce-account .ast-container,
.woocommerce-account .site-content,
.woocommerce-account #main,
.woocommerce-account .ast-separate-container .ast-article-single {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    box-shadow: none !important;
}

.search-results #primary {
    width: 100% !important;
    margin: 0 !important;
}

.search-results #secondary {
    display: none !important;
}

.search-results .ast-container {
    max-width: 90% !important;
    width: 90% !important;
    margin: 0 auto !important;
    padding: 0 0 40px 0 !important;
}

/* Shop Page Layout (Sidebar 30% | Content 70%) */
.post-type-archive-product .ast-container,
.tax-product_cat .ast-container {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    gap: 40px !important;
    max-width: 90% !important;
    width: 90% !important;
    margin: 0 auto !important;
    padding: 0 0 50px 0 !important;
    align-items: flex-start !important;
}

.post-type-archive-product #primary,
.tax-product_cat #primary {
    flex: 0 0 70% !important;
    width: 70% !important;
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
}

.post-type-archive-product #secondary,
.tax-product_cat #secondary {
    flex: 0 0 30% !important;
    width: 30% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.post-type-archive-product .ast-woocommerce-container,
.tax-product_cat .ast-woocommerce-container {
    padding: 30px !important;
    margin: 0 !important;
}

/* Sidebar Widget Styling */
.ast-woo-sidebar-widget {
    background: var(--white) !important;
    padding: 30px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 30px !important;
}

.widget-title {
    font-size: 20px !important;
    font-weight: 800 !important;
    margin-bottom: 25px !important;
    padding-bottom: 15px !important;
    border-bottom: 2px solid var(--bg-light) !important;
    color: var(--secondary-color) !important;
}

/* Price Filter Styling */
.price_slider_wrapper .ui-widget-content {
    background: var(--bg-light) !important;
    height: 6px !important;
    border: none !important;
    border-radius: 10px !important;
}

.price_slider_wrapper .ui-slider-range {
    background: var(--primary-color) !important;
}

.price_slider_wrapper .ui-slider-handle {
    background: var(--white) !important;
    border: 2px solid var(--primary-color) !important;
    width: 18px !important;
    height: 18px !important;
    top: -7px !important;
    border-radius: 50% !important;
    cursor: pointer !important;
}

.price_slider_amount .button {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
    border-radius: var(--radius-md) !important;
    padding: 8px 20px !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    text-transform: uppercase !important;
    margin-top: 20px !important;
    transition: var(--transition) !important;
}

.price_slider_amount .button:hover {
    background-color: var(--primary-color) !important;
}

.price_label {
    margin-top: 15px !important;
    font-weight: 700 !important;
    color: var(--text-main) !important;
}

/* Category List Styling */
.wc-block-product-categories-list {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.wc-block-product-categories-list-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    padding: 12px 0 !important;
    border-bottom: 1px solid var(--bg-light) !important;
}

.wc-block-product-categories-list-item:last-child {
    border-bottom: none !important;
}

.wc-block-product-categories-list-item a {
    text-decoration: none !important;
    color: var(--secondary-color) !important;
    font-weight: 600 !important;
    transition: var(--transition) !important;
}

.wc-block-product-categories-list-item a:hover {
    color: var(--primary-color) !important;
    padding-left: 5px !important;
}

.wc-block-product-categories-list-item-count {
    background: var(--bg-light) !important;
    color: var(--text-muted) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    padding: 4px 10px !important;
    border-radius: 20px !important;
}

@media (max-width: 992px) {
    .post-type-archive-product .ast-container,
    .tax-product_cat .ast-container {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
    
    .post-type-archive-product #primary,
    .tax-product_cat #primary,
    .post-type-archive-product #secondary,
    .tax-product_cat #secondary {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
    
    .post-type-archive-product #secondary,
    .tax-product_cat #secondary {
        order: 2 !important; /* Sidebar below content on mobile */
    }
}

/* Force Blog Layout into Product Grid */
.search-results .site-main .ast-row {
    display: grid !important;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 30px !important;
    margin: 0 !important;
    padding: 0 !important;
}

@media (max-width: 1200px) {
    .search-results .site-main .ast-row {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 921px) {
    .search-results .site-main .ast-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 20px !important;
    }
}

@media (max-width: 544px) {
    .search-results .site-main .ast-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
    }
    
    .search-results article.ast-article-post {
        padding: 12px !important;
    }
    
    .search-results .entry-title {
        font-size: 14px !important;
    }
    
    .search-results .search-result-price {
        font-size: 16px !important;
        margin: 5px 0 10px 0 !important;
    }
}

.search-results .ast-row>article {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
    margin: 0 !important;
}

.search-results article.ast-article-post {
    background: var(--white) !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border-color) !important;
    transition: var(--transition) !important;
    overflow: hidden;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    padding: 20px !important;
    text-align: center !important;
}

.search-results article.ast-article-post:hover {
    transform: translateY(-10px) !important;
    box-shadow: var(--shadow-hover) !important;
    border-color: var(--primary-color) !important;
}

/* Flex Order for Search Cards */
.search-results .post-thumb {
    order: 1 !important;
    background-color: var(--bg-light) !important;
    border-radius: var(--radius-md) !important;
    margin-bottom: 18px !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    height: 280px !important;
    overflow: hidden !important;
}

.search-results .entry-title {
    order: 2 !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2 !important;
}

.search-results .search-result-price {
    order: 3 !important;
    display: block !important;
    font-size: 20px !important;
    color: var(--secondary-color) !important;
    font-weight: 800 !important;
    margin: 10px 0 15px 0 !important;
}

.search-results .search-buy-now {
    order: 4 !important;
    margin-top: auto !important;
    color: var(--white) !important;
}

.search-results .entry-title a {
    color: var(--secondary-color) !important;
    text-decoration: none !important;
}

.search-results img.wp-post-image,
.search-results .post-thumb img {
    max-height: 80% !important;
    width: auto !important;
    object-fit: contain !important;
}

/* Hide Unwanted Meta Info ONLY inside cards */
.search-results article .entry-header,
.search-results article .ast-blog-meta-container,
.search-results article .ast-excerpt-container,
.search-results article .ast-read-more-container,
.search-results article .entry-content,
.search-results article .read-more {
    display: none !important;
}

/* Custom Search Header Styling */
.krt-search-header-custom {
    margin-bottom: 30px !important;
    padding-bottom: 10px !important;
    border-bottom: 1px solid var(--border-color) !important;
    text-align: center !important;
}

.krt-search-header-custom h1 {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
}

.krt-search-header-custom h1 span {
    color: var(--secondary-color) !important;
    font-weight: 800 !important;
}

/* Hide Default Astra Search Header Completely */
.search-results .ast-archive-description,
.search-results .page-header {
    display: none !important;
}

/* Search Input Styling (HFE) */
.hfe-search-form__container {
    border: 2px solid var(--border-color) !important;
    border-radius: 50px !important;
    padding: 5px 20px !important;
    transition: var(--transition) !important;
    background: var(--white) !important;
}

.hfe-search-form__container:focus-within {
    border-color: var(--primary-color) !important;
    box-shadow: 0 10px 25px rgba(61, 149, 61, 0.1) !important;
}

.hfe-search-form__input {
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
}

.hfe-search-submit {
    color: var(--primary-color) !important;
    font-size: 20px !important;
    transition: var(--transition) !important;
}

.hfe-search-submit:hover {
    transform: scale(1.2);
}

/* Single Product Page Tweaks */
.single-product #primary,
.single-product .ast-container,
.single-product .site-content,
.single-product #main,
.single-product .ast-woocommerce-container,
.single-product article.product,
.post-type-archive-product #primary,
.post-type-archive-product .ast-container,
.post-type-archive-product .site-content,
.post-type-archive-product #main,
.tax-product_cat #primary,
.tax-product_cat .ast-container,
.tax-product_cat .site-content,
.tax-product_cat #main,
.woocommerce-account #primary,
.woocommerce-account .ast-container,
.woocommerce-account .site-content,
.woocommerce-account #main {
    background-color: #F5F6F7 !important;
    background: #F5F6F7 !important;
    margin: 0 !important;
    border: none !important;
}

.single-product .ast-container {
    max-width: 90% !important;
    margin: 0 auto !important;
    padding: 20px 0 !important;
    /* Give some vertical space but no side margins */
}

.single-product .site-content,
.post-type-archive-product .site-content,
.tax-product_cat .site-content,
.woocommerce-account .site-content {
    background-color: #F5F6F7 !important;
}

/* Fix product gallery and summary alignment */
.single-product div.product {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    background: transparent !important;
    justify-content: space-between !important;
}

.single-product .woocommerce-product-gallery {
    width: 40% !important;
    flex: 0 0 40% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.single-product .summary.entry-summary {
    width: 50% !important;
    flex: 0 0 50% !important;
    margin: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

/* Hide Astra's Safe Checkout section and Shipping text */
.ast-single-product-payments,
.ast-shipping-text {
    display: none !important;
}

/* Single Product Dual Buttons */
form.cart {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: center !important;
    justify-content: flex-start !important;
    margin-top: 30px !important;
}

.single_add_to_cart_button,
.krt-buy-now-single {
    height: 55px !important; /* Fixed height for symmetry */
    padding: 0 30px !important;
    border-radius: var(--radius-md) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    transition: var(--transition) !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border: none !important;
    white-space: nowrap !important;
}

.single_add_to_cart_button {
    background-color: var(--secondary-color) !important;
    color: var(--white) !important;
}

.krt-buy-now-single {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
}

/* Hover Effects */
.single_add_to_cart_button:hover {
    background-color: var(--primary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.krt-buy-now-single:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(61, 149, 61, 0.2);
}

/* Premium Quantity Selector */
.quantity {
    display: flex !important;
    align-items: center !important;
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 50px !important;
    padding: 5px 15px !important;
    margin-right: 15px !important;
}

.quantity input.qty {
    width: 40px !important;
    height: 40px !important;
    border: none !important;
    text-align: center !important;
    background: transparent !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    -moz-appearance: textfield;
}

.quantity input::-webkit-outer-spin-button,
.quantity input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.qty-btn {
    width: 30px !important;
    height: 30px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    font-size: 20px !important;
    font-weight: 600 !important;
    color: var(--secondary-color) !important;
    transition: var(--transition) !important;
}

.qty-btn:hover {
    color: var(--primary-color) !important;
    transform: scale(1.2);
}

@media (max-width: 768px) {

    .single-product .woocommerce-product-gallery,
    .single-product .summary.entry-summary {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
}

/* Header My Account & Cart Widget Styling */
.krt-header-widget {
    display: flex !important;
    align-items: center !important;
    gap: 20px !important;
}

.krt-widget-item {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    text-decoration: none !important;
    color: var(--secondary-color) !important;
    transition: var(--transition) !important;
    position: relative;
}

.krt-widget-item:hover {
    color: var(--primary-color) !important;
}

.krt-widget-item svg {
    width: 25px !important;
    height: 25px !important;
    stroke: currentColor !important;
}

.krt-widget-item span {
    font-size: 16px !important;
    font-weight: 700 !important;
}

/* Ultimate Zero-Margin Reset for Cart & Checkout */
body.woocommerce-cart,
body.woocommerce-checkout,
body.woocommerce-cart #page,
body.woocommerce-checkout #page,
.woocommerce-cart #primary,
.woocommerce-checkout #primary,
.woocommerce-cart .ast-container,
.woocommerce-checkout .ast-container,
.woocommerce-cart .site-content,
.woocommerce-checkout .site-content,
.woocommerce-cart #content,
.woocommerce-checkout #content,
.woocommerce-cart .ast-article-single,
.woocommerce-checkout .ast-article-single,
.woocommerce-cart .entry-content,
.woocommerce-checkout .entry-content {
    background-color: #F5F6F7 !important;
    margin: 0 !important;
    padding: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    border: none !important;
}

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@400;500;600;700&display=swap');

/* Apply Hind Siliguri to Bengali Text */
.woocommerce-billing-fields h3::after,
.krt-shipment-heading,
#order_review_heading::after,
#krt-shipment-methods-wrapper label,
#place_order,
.woocommerce-checkout label {
    font-family: 'Hind Siliguri', sans-serif !important;
}

/* Translate Billing Details Heading */
.woocommerce-billing-fields > h3 {
    font-size: 0 !important; /* Hide original text */
    margin-bottom: 25px !important;
    display: block !important;
}

.woocommerce-billing-fields > h3::after {
    content: "আপনার তথ্য" !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
}

/* Translate Your Order Heading */
#order_review_heading {
    font-size: 0 !important;
    margin-bottom: 40px !important; /* Increased margin */
    display: block !important;
    line-height: 1 !important;
}

#order_review_heading::after {
    content: "আপনার অর্ডার" !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
    display: block !important;
    padding-bottom: 15px !important;
}

.krt-shipment-heading {
    font-size: 24px !important;
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
    margin-top: 40px !important;
    margin-bottom: 20px !important;
}

#krt-shipment-methods-wrapper ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

#krt-shipment-methods-wrapper li {
    margin-bottom: 12px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 15px !important;
    background: #fff !important;
    border: 1px solid #eef0f2 !important;
    border-radius: 8px !important;
    transition: 0.3s !important;
}

#krt-shipment-methods-wrapper li:hover {
    border-color: var(--primary-color) !important;
    background-color: #f9fff9 !important;
}

#krt-shipment-methods-wrapper input[type="radio"] {
    margin: 0 18px 0 0 !important; /* Increased margin to 18px */
    width: 20px !important;
    height: 20px !important;
    cursor: pointer !important;
    position: relative !important;
    flex-shrink: 0 !important;
}

#krt-shipment-methods-wrapper label {
    margin: 0 !important;
    font-weight: 600 !important;
    color: var(--secondary-color) !important;
    cursor: pointer !important;
    font-size: 15px !important;
}

/* Hide Additional Sections Entirely */
.woocommerce-additional-fields,
.woocommerce-privacy-policy-text,
#ship-to-different-address-wrapper,
.woocommerce-shipping-fields {
    display: none !important;
}

.woocommerce-cart article,
.woocommerce-checkout article {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

/* Premium Cart Page Design */
.woocommerce-cart:not(.krt-body-cart-empty) .woocommerce,
.woocommerce-cart .woocommerce:has(.woocommerce-cart-form) {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important; /* Force side-by-side on desktop */
    gap: 40px !important;
    align-items: flex-start !important;
}

/* Elegant & Premium Empty Cart Styling */
body.krt-body-cart-empty .woocommerce,
.woocommerce-cart .woocommerce:has(.cart-empty) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 80px 40px !important;
    background: #ffffff !important;
    border-radius: 16px !important;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.04) !important;
    max-width: 600px !important;
    margin: 60px auto !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
}

@media (max-width: 768px) {
    body.krt-body-cart-empty .woocommerce,
    .woocommerce-cart .woocommerce:has(.cart-empty) {
        padding: 50px 20px !important;
        margin: 30px auto !important;
        max-width: calc(100% - 30px) !important;
        width: calc(100% - 30px) !important;
    }
}

.woocommerce-cart .wc-empty-cart-message {
    margin-bottom: 25px !important;
    width: 100% !important;
    text-align: center !important;
}

.woocommerce-cart .cart-empty.woocommerce-info {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    background: transparent !important;
    color: var(--secondary-color) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    text-align: center !important;
    width: 100% !important;
}

.woocommerce-cart .cart-empty.woocommerce-info::before {
    content: "" !important;
    display: block !important;
    position: relative !important;
    float: none !important;
    left: auto !important;
    top: auto !important;
    transform: none !important;
    width: 80px !important;
    height: 80px !important;
    margin: 0 auto 24px auto !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'><path stroke-linecap='round' stroke-linejoin='round' d='M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 0 0-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm12.75 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z'/></svg>") !important;
    mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'><path stroke-linecap='round' stroke-linejoin='round' d='M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 0 0-16.536-1.84M7.5 14.25L5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm12.75 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z'/></svg>") !important;
    -webkit-mask-repeat: no-repeat !important;
    mask-repeat: no-repeat !important;
    -webkit-mask-position: center !important;
    mask-position: center !important;
    opacity: 0.9 !important;
}

.woocommerce-cart .woocommerce-info::before {
    display: none !important;
}

.woocommerce-cart .return-to-shop {
    margin: 0 !important;
    width: 100% !important;
    text-align: center !important;
}

.woocommerce-cart .return-to-shop a.button.wc-backward {
    display: inline-block !important;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color)) !important;
    color: #ffffff !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    padding: 14px 35px !important;
    border-radius: 30px !important;
    box-shadow: 0 5px 15px rgba(255, 107, 107, 0.3) !important;
    transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    text-decoration: none !important;
    border: none !important;
}

.woocommerce-cart .return-to-shop a.button.wc-backward:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4) !important;
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color)) !important;
}


.woocommerce-cart .woocommerce-cart-form {
    flex: 0 0 65% !important; /* Fixed percentage */
    width: 65% !important;
    margin: 0 !important;
}

/* Hide Page Title on Cart & Checkout */
.woocommerce-cart .entry-title,
.woocommerce-checkout .entry-title {
    display: none !important;
}

.woocommerce-cart .cart-collaterals {
    flex: 0 0 35% !important; /* Fixed percentage */
    width: 35% !important;
    margin: 0 !important;
    padding: 0 !important; /* Set padding to 0 */
    display: block !important;
}

@media (max-width: 992px) {
    .woocommerce-cart:not(.krt-body-cart-empty) .woocommerce,
    .woocommerce-cart .woocommerce:has(.woocommerce-cart-form) {
        flex-direction: column !important;
        flex-wrap: wrap !important;
    }
    .woocommerce-cart .woocommerce-cart-form,
    .woocommerce-cart .cart-collaterals {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

.woocommerce-cart table.cart {
    width: 100% !important;
    border-radius: var(--radius-lg) !important;
    overflow: hidden !important;
    border: 1px solid #eef0f2 !important; /* Lighter border */
    background: var(--white) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.03) !important; /* Softer shadow */
    border-collapse: separate !important;
    border-spacing: 0 !important;
}

.woocommerce-cart table.cart th {
    background-color: #fafafa !important;
    padding: 20px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    font-size: 13px !important;
    color: var(--secondary-color) !important;
}

.woocommerce-cart table.cart td {
    padding: 25px 20px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

.woocommerce-cart .product-thumbnail img {
    width: 80px !important;
    border-radius: var(--radius-md) !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05) !important;
}

.woocommerce-cart .product-name a {
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
    font-size: 16px !important;
    text-decoration: none !important;
}

.woocommerce-cart .product-price,
.woocommerce-cart .product-subtotal {
    font-weight: 700 !important;
    color: var(--primary-color) !important;
}

/* Cart Totals / Summary Area */
.cart-collaterals {
    margin-top: 40px !important;
    display: flex !important;
    justify-content: flex-end !important;
}

.cart_totals {
    width: 100% !important;
    max-width: 450px !important;
    background: var(--white) !important;
    padding: 40px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    border: 1px solid #eef0f2 !important;
}

.cart_totals h2 {
    font-size: 24px !important;
    margin-bottom: 30px !important;
    border-bottom: 2px solid var(--bg-light) !important;
    padding-bottom: 15px !important;
}

.cart_totals table {
    margin: 0 !important;
    width: 100% !important;
}

.cart_totals table tr th,
.cart_totals table tr td {
    padding: 15px 0 !important;
    border-top: 1px solid var(--bg-light) !important;
}

.cart_totals .order-total {
    font-size: 22px !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
}

/* Proceed to Checkout Button */
.wc-proceed-to-checkout .checkout-button {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 12px 25px !important; /* More compact padding */
    border-radius: var(--radius-md) !important;
    font-size: 15px !important; /* Smaller font */
    font-weight: 800 !important;
    text-align: center !important;
    display: block !important;
    width: 100% !important;
    transition: var(--transition) !important;
    margin-top: 15px !important;
}

/* Thank You Page Redesign */
.woocommerce-order-received .site-content {
    background-color: #F5F6F7 !important;
    padding: 60px 0 !important;
}

.krt-thankyou-success {
    text-align: center !important;
    padding: 40px !important;
    background: #fff !important;
    border-radius: 15px !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    margin-bottom: 40px !important;
    border: 1px solid #eef0f2 !important;
}

.krt-success-icon svg {
    width: 80px !important;
    height: 80px !important;
    margin-bottom: 25px !important;
}

.krt-thankyou-success h2 {
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 32px !important;
    font-weight: 800 !important;
    color: var(--secondary-color) !important;
    margin-bottom: 10px !important;
}

.krt-thankyou-success p {
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 18px !important;
    color: #666 !important;
    margin: 0 !important;
}

.woocommerce-order-received .woocommerce-order-overview {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    gap: 30px !important;
    flex-wrap: wrap !important;
    list-style: none !important;
    margin: 40px 0 !important;
}

.woocommerce-order-received .woocommerce-order-overview li {
    background: #fff !important;
    padding: 20px 30px !important;
    border-radius: 10px !important;
    border: 1px solid #eef0f2 !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.02) !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    color: #999 !important;
}

.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block !important;
    font-size: 18px !important;
    color: var(--secondary-color) !important;
    margin-top: 5px !important;
    text-transform: none !important;
}

.woocommerce-order-details, .woocommerce-customer-details {
    background: #fff !important;
    padding: 40px !important;
    border-radius: 15px !important;
    border: 1px solid #eef0f2 !important;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05) !important;
    margin-top: 40px !important;
}

.woocommerce-order-details__title {
    font-size: 24px !important;
    font-weight: 800 !important;
    margin-bottom: 30px !important;
    border-bottom: 1px solid #f0f0f0 !important;
    padding-bottom: 15px !important;
}

.woocommerce-table--order-details td, .woocommerce-table--order-details th {
    padding: 15px 0 !important;
}

.krt-cart-icon-wrap {
    position: relative !important;
    display: flex !important;
}

.krt-cart-count {
    position: absolute !important;
    top: -6px !important;
    right: -8px !important;
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    width: 16px !important;
    height: 16px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 50% !important;
    border: 1.5px solid var(--white) !important;
    box-shadow: 0 3px 8px rgba(61, 149, 61, 0.25) !important;
}

/* My Account Page Redesign */
.woocommerce-account .entry-title {
    display: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    background: var(--white) !important;
    padding: 20px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border-color) !important;
    margin-bottom: 30px !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li {
    border-bottom: 1px solid var(--bg-light) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li:last-child {
    border-bottom: none !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a {
    padding: 15px 10px !important;
    display: block !important;
    text-decoration: none !important;
    color: var(--secondary-color) !important;
    font-weight: 700 !important;
    transition: var(--transition) !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation li a:hover,
.woocommerce-account .woocommerce-MyAccount-navigation li.is-active a {
    color: var(--primary-color) !important;
    background: #f9fff9 !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    background: var(--white) !important;
    padding: 40px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: var(--shadow-sm) !important;
    border: 1px solid var(--border-color) !important;
}

.woocommerce-account .woocommerce {
    display: flex !important;
    gap: 40px !important;
    align-items: flex-start !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    flex: 0 0 280px !important;
}

.woocommerce-account .woocommerce-MyAccount-content {
    flex: 1 !important;
}

@media (max-width: 992px) {
    .woocommerce-account .woocommerce {
        flex-direction: column !important;
    }
    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        flex: 0 0 100% !important;
        width: 100% !important;
    }
}

/* Login & Register Styling - High Specificity */
.woocommerce-account #customer_login {
    display: flex !important;
    flex-direction: row !important;
    gap: 30px !important;
    margin: 80px auto !important;
    max-width: 1100px !important;
    flex-wrap: wrap !important;
    justify-content: center !important;
    align-items: flex-start !important;
    float: none !important;
    width: 100% !important;
}

.woocommerce-account .u-column1, 
.woocommerce-account .u-column2,
.woocommerce-account .col-1,
.woocommerce-account .col-2 {
    flex: 0 1 450px !important;
    width: 100% !important;
    max-width: 450px !important;
    background: var(--white) !important;
    padding: 50px 40px !important;
    border-radius: var(--radius-lg) !important;
    box-shadow: 0 20px 50px rgba(0,0,0,0.08) !important;
    border: 1px solid var(--border-color) !important;
    margin: 15px !important;
    float: none !important;
}

.woocommerce-account #customer_login h2 {
    font-size: 30px !important;
    font-weight: 900 !important;
    margin-bottom: 35px !important;
    text-align: center !important;
    color: var(--secondary-color) !important;
    display: block !important;
    width: 100% !important;
}

.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.woocommerce-form-register {
    padding: 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
}

.woocommerce-account form .form-row {
    margin-bottom: 25px !important;
    display: block !important;
    width: 100% !important;
}

.woocommerce-account form label {
    font-weight: 700 !important;
    margin-bottom: 12px !important;
    display: block !important;
    color: var(--secondary-color) !important;
    font-size: 15px !important;
}

.woocommerce-account .woocommerce-Input {
    border: 1px solid var(--border-color) !important;
    padding: 15px 20px !important;
    border-radius: var(--radius-md) !important;
    background-color: #f8f9fa !important;
    width: 100% !important;
    font-size: 16px !important;
    transition: var(--transition) !important;
}

.woocommerce-account .woocommerce-Input:focus {
    border-color: var(--primary-color) !important;
    background-color: var(--white) !important;
    outline: none !important;
    box-shadow: 0 0 0 4px rgba(61, 149, 61, 0.1) !important;
}

.woocommerce-account .woocommerce-form-login__submit,
.woocommerce-account .woocommerce-form-register__submit {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    padding: 18px !important;
    border-radius: var(--radius-md) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    width: 100% !important;
    border: none !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    margin-top: 10px !important;
    letter-spacing: 1px !important;
}

.woocommerce-account .woocommerce-form-login__submit:hover,
.woocommerce-account .woocommerce-form-register__submit:hover {
    background-color: var(--secondary-color) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 10px 20px rgba(0,0,0,0.1) !important;
}

.woocommerce-form-login__rememberme {
    margin: 15px 0 !important;
    font-weight: 600 !important;
}

.woocommerce-LostPassword {
    margin-top: 15px !important;
    text-align: center !important;
}

.woocommerce-LostPassword a {
    color: var(--text-muted) !important;
    text-decoration: none !important;
    font-weight: 600 !important;
}

.woocommerce-LostPassword a:hover {
    color: var(--primary-color) !important;
}

@media (max-width: 768px) {
    .woocommerce-account .u-column1, 
    .woocommerce-account .u-column2 {
        min-width: 100% !important;
        padding: 25px !important;
    }

    .swiper-pagination {
        margin-top: 20px !important;
        position: relative !important;
        bottom: 0 !important;
    }

    /* Category Slider Mobile Adjustments */
    .krt-cat-img {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 10px !important;
    }

    .krt-cat-name {
        font-size: 12px !important;
    }
}

/* Force Standard Site Background Color on all single product wrappers */
body.single-product,
body.single-product .site,
body.single-product #page,
body.single-product .site-content,
body.single-product #primary,
body.single-product #main,
body.single-product #content,
body.single-product .ast-woocommerce-container {
    background-color: #F5F6F7 !important;
    background: #F5F6F7 !important;
}

/* Single Product Page Top & Side Gap Overhaul */
.single-product .site-content {
    padding-top: 0 !important;
    padding-bottom: 20px !important;
}

.single-product .ast-container {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    margin: 0 auto !important;
    max-width: 95% !important; /* Spans wider to minimize left/right margins */
    background: transparent !important;
}

.single-product #primary,
.single-product #main,
.single-product #content,
.single-product article.product {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

.single-product .ast-woocommerce-container {
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
}

.single-product .woocommerce-breadcrumb {
    margin-top: 5px !important;
    margin-bottom: 12px !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-family: 'Hind Siliguri', 'Inter', sans-serif !important;
}

/* ==========================================================================
   BAZAR SODAI - PREMIUM SINGLE PRODUCT OVERHAUL (NAVIFORCE INSPIRED)
   ========================================================================== */

/* 1. Main Product Card Wrapper */
.single-product div.product {
    background: var(--white) !important;
    border-radius: var(--radius-lg) !important;
    border: 1px solid var(--border-color) !important;
    box-shadow: 0 10px 40px rgba(61, 149, 61, 0.05) !important;
    padding: 30px !important; /* Compact premium padding */
    margin-bottom: 30px !important;
    margin-top: 5px !important; /* Compact top margin */
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 0 !important;
    justify-content: space-between !important;
}

.single-product .woocommerce-product-gallery {
    width: 44% !important;
    flex: 0 0 44% !important;
    margin: 0 !important;
    box-sizing: border-box !important;
}

.single-product .summary.entry-summary {
    width: 52% !important;
    flex: 0 0 52% !important;
    margin: 0 !important;
    text-align: left !important;
    box-sizing: border-box !important;
}

@media (max-width: 992px) {
    .single-product div.product {
        padding: 25px 20px !important;
        border-radius: var(--radius-md) !important;
    }
    .single-product .woocommerce-product-gallery,
    .single-product .summary.entry-summary {
        width: 100% !important;
        flex: 0 0 100% !important;
    }
    .single-product .woocommerce-product-gallery {
        margin-bottom: 35px !important;
    }
}

@media (max-width: 768px) {
    .single-product div.product {
        margin-left: 0 !important;
        margin-right: 0 !important;
        padding: 20px 15px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }
    .single-product .ast-container {
        padding-left: 0 !important;
        padding-right: 0 !important;
        max-width: 100% !important;
    }
}

/* 2. Gallery & Control Thumbnails */
.single-product .woocommerce-product-gallery__image {
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 12px !important;
    margin-top: 15px !important;
    padding: 0 !important;
    list-style: none !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs li {
    width: calc(20% - 10px) !important;
    float: none !important;
    margin: 0 !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img {
    border: 2px solid transparent !important;
    border-radius: var(--radius-md) !important;
    cursor: pointer !important;
    transition: var(--transition) !important;
    padding: 2px !important;
    background: var(--white) !important;
}

.single-product .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
    border-color: var(--primary-color) !important;
    box-shadow: 0 4px 12px rgba(61, 149, 61, 0.2) !important;
}

/* 3. Flash Deal Countdown Timer Styling */
.krt-flash-deal-timer {
    background: linear-gradient(135deg, var(--primary-color), #2d7d2d) !important;
    border-radius: 12px !important;
    padding: 15px 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 25px !important;
    box-shadow: 0 8px 25px rgba(61, 149, 61, 0.15) !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    border: 1px solid rgba(255,255,255,0.1) !important;
}

.krt-timer-label {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: var(--white) !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-weight: 700 !important;
    font-size: 16px !important;
}

.krt-timer-icon {
    font-size: 20px !important;
    animation: krtPulse 1.5s infinite !important;
    display: inline-block;
}

.krt-timer-countdown {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.krt-timer-box {
    background: #1a1a1a !important;
    border-radius: 8px !important;
    width: 52px !important;
    padding: 6px 0 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2) !important;
    border: 1px solid rgba(255,255,255,0.05) !important;
}

.krt-timer-box span[class^="krt-countdown-"] {
    color: var(--white) !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    line-height: 1.1 !important;
    font-family: 'Inter', sans-serif !important;
}

.krt-timer-box span.krt-box-label {
    color: #a0a0a0 !important;
    font-size: 9px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    margin-top: 3px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
}

.krt-timer-colon {
    color: var(--white) !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    animation: krtBlink 1s infinite !important;
}

@keyframes krtBlink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}
@keyframes krtPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.25); }
}

@media (max-width: 500px) {
    .krt-flash-deal-timer {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        padding: 12px 15px !important;
    }
    .krt-timer-label {
        justify-content: center !important;
        font-size: 14px !important;
    }
}

/* 4. Product Title & Price Styles */
.single-product .summary .product_title {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
    margin-bottom: 5px !important;
    font-family: 'Hind Siliguri', 'Inter', sans-serif !important;
    line-height: 1.3 !important;
}

/* Spacing Override (Both Desktop and Mobile) */
body.single-product .summary p.price,
body.single-product .summary .krt-price-wrapper {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Price & Discount Wrapper */
.summary .krt-price-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 15px !important;
    flex-wrap: wrap !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
}

body.single-product .summary p.price {
    margin-bottom: 0 !important;
    display: flex !important;
    align-items: baseline !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

body.single-product .summary p.price del,
body.single-product .summary p.price del .woocommerce-Price-amount,
body.single-product .summary .krt-price-wrapper del,
body.single-product .summary .krt-price-wrapper del * {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #999999 !important; /* Muted/grey original price */
    text-decoration: line-through !important;
}

body.single-product .summary p.price ins,
body.single-product .summary p.price ins .woocommerce-Price-amount,
body.single-product .summary .krt-price-wrapper ins,
body.single-product .summary .krt-price-wrapper ins * {
    font-size: 34px !important; /* Prominent premium sale price */
    font-weight: 800 !important;
    color: var(--primary-color) !important; /* Brand green */
    text-decoration: none !important;
}

body.single-product .summary p.price > .woocommerce-Price-amount,
body.single-product .summary p.price > .amount,
body.single-product .summary .krt-price-wrapper > .woocommerce-Price-amount,
body.single-product .summary .krt-price-wrapper > .amount,
body.single-product .summary .krt-price-wrapper > .amount * {
    font-size: 34px !important;
    font-weight: 800 !important;
    color: var(--primary-color) !important;
    text-decoration: none !important;
}

.krt-discount-badge {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    padding: 5px 12px !important;
    border-radius: 50px !important;
    box-shadow: 0 4px 10px rgba(61, 149, 61, 0.15) !important;
    display: inline-block !important;
}

/* 5. Cart Actions & Double Buttons */
form.cart {
    margin-top: 25px !important;
    margin-bottom: 20px !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 15px !important;
    align-items: center !important;
}

.single_add_to_cart_button,
.krt-buy-now-single {
    height: 54px !important;
    padding: 0 30px !important;
    border-radius: var(--radius-md) !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    transition: var(--transition) !important;
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    border: none !important;
    white-space: nowrap !important;
}

/* Add to Cart Outline Style */
.single_add_to_cart_button {
    background-color: var(--white) !important;
    color: var(--primary-color) !important;
    border: 2px solid var(--primary-color) !important;
    box-shadow: none !important;
}

.single_add_to_cart_button:hover {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 22px rgba(61, 149, 61, 0.2) !important;
}

/* Buy Now Solid Style */
.krt-buy-now-single {
    background-color: var(--primary-color) !important;
    color: var(--white) !important;
    box-shadow: 0 4px 15px rgba(61, 149, 61, 0.15) !important;
}

.krt-buy-now-single:hover {
    background-color: #2d7d2d !important;
    transform: translateY(-3px) !important;
    box-shadow: 0 8px 25px rgba(61, 149, 61, 0.3) !important;
}

/* Mobile Dual Buttons Wrap */
@media (max-width: 480px) {
    form.cart {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 12px !important;
    }
    .quantity {
        margin-right: 0 !important;
        justify-content: center !important;
        width: 100% !important;
    }
    .single_add_to_cart_button,
    .krt-buy-now-single {
        width: 100% !important;
        flex: none !important;
    }
}

/* 6. WhatsApp Order Button (Subtle & Elegant) */
.krt-whatsapp-button-wrap {
    margin-top: 15px !important;
    width: 100% !important;
    clear: both !important;
}

.krt-whatsapp-order-btn {
    background-color: #fcfdfc !important;
    color: #25D366 !important;
    border: 1px solid #25D366 !important;
    box-shadow: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    width: 100% !important;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 700 !important;
    border-radius: var(--radius-md) !important;
    transition: var(--transition) !important;
    text-transform: none !important;
    text-decoration: none !important;
    font-family: 'Hind Siliguri', sans-serif !important;
}

.krt-whatsapp-order-btn:hover {
    background-color: #25D366 !important;
    color: var(--white) !important;
    box-shadow: 0 8px 22px rgba(37, 211, 102, 0.2) !important;
}

.krt-whatsapp-order-btn svg {
    width: 22px !important;
    height: 22px !important;
    fill: currentColor !important;
}

/* 7. Premium Benefits Grid Styling */
.krt-premium-benefits-wrap {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 15px !important;
    margin-top: 30px !important;
    padding: 25px !important;
    background-color: #f8fdf8 !important;
    border: 1px dashed rgba(61, 149, 61, 0.3) !important;
    border-radius: 12px !important;
    clear: both !important;
}

.krt-benefit-card {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.krt-benefit-icon {
    color: var(--primary-color) !important;
    flex-shrink: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: rgba(61, 149, 61, 0.08) !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
}

.krt-benefit-icon svg {
    width: 20px !important;
    height: 20px !important;
}

.krt-benefit-info {
    display: flex !important;
    flex-direction: column !important;
    text-align: left !important;
}

.krt-benefit-info h4 {
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    color: var(--secondary-color) !important;
    margin: 0 0 3px 0 !important;
    line-height: 1.2 !important;
}

.krt-benefit-info p {
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 11px !important;
    font-weight: 500 !important;
    color: var(--text-muted) !important;
    margin: 0 !important;
    line-height: 1.3 !important;
}

@media (max-width: 576px) {
    .krt-premium-benefits-wrap {
        grid-template-columns: 1fr !important;
        padding: 20px !important;
        gap: 20px !important;
    }
}

/* 8. Specifications & Tabs Styling */
.woocommerce-tabs.wc-tabs-wrapper {
    margin-top: 50px !important;
    background: var(--white) !important;
    border: 1px solid var(--border-color) !important;
    border-radius: var(--radius-lg) !important;
    padding: 40px !important;
    box-shadow: var(--shadow-sm) !important;
}

.woocommerce-tabs ul.tabs {
    border-bottom: 2px solid var(--border-color) !important;
    padding-left: 0 !important;
    margin-bottom: 30px !important;
    display: flex !important;
    gap: 30px !important;
}

.woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    padding: 0 0 15px 0 !important;
    margin: 0 !important;
}

.woocommerce-tabs ul.tabs li a {
    font-family: 'Hind Siliguri', 'Inter', sans-serif !important;
    font-weight: 700 !important;
    font-size: 18px !important;
    color: var(--text-muted) !important;
    transition: var(--transition) !important;
}

.woocommerce-tabs ul.tabs li.active {
    border-bottom: 3px solid var(--primary-color) !important;
}

.woocommerce-tabs ul.tabs li.active a {
    color: var(--primary-color) !important;
}

/* Specs Table Formatting */
table.shop_attributes {
    border-collapse: collapse !important;
    width: 100% !important;
    margin-top: 15px !important;
    border: 1px solid var(--border-color) !important;
    border-radius: 8px !important;
    overflow: hidden !important;
}

table.shop_attributes th,
table.shop_attributes td {
    padding: 14px 18px !important;
    text-align: left !important;
    font-size: 14px !important;
    border-bottom: 1px solid var(--border-color) !important;
}

table.shop_attributes th {
    background-color: #f7fbf7 !important;
    color: var(--secondary-color) !important;
    font-weight: 700 !important;
    width: 30% !important;
    font-family: 'Hind Siliguri', 'Inter', sans-serif !important;
}

table.shop_attributes td {
    background-color: var(--white) !important;
    color: var(--text-main) !important;
    font-weight: 500 !important;
    font-family: 'Inter', sans-serif !important;
}

table.shop_attributes tr:nth-child(even) th {
    background-color: #f0f7f0 !important;
}

table.shop_attributes tr:last-child th,
table.shop_attributes tr:last-child td {
    border-bottom: none !important;
}

@media (max-width: 768px) {
    .woocommerce-tabs.wc-tabs-wrapper {
        padding: 25px 15px !important;
    }
    .woocommerce-tabs ul.tabs {
        gap: 15px !important;
        flex-wrap: wrap !important;
    }
    .woocommerce-tabs ul.tabs li a {
        font-size: 15px !important;
    }
}

/* ==========================================================================
   KRT MOBILE HAMBURGER & SIDEBAR WIDGET STYLING
   ========================================================================== */

/* Hamburger Button Wrapper Alignment */
.krt-hamburger-trigger-wrapper {
    display: block;
    width: 100%;
}

/* Hamburger Base Reset */
.krt-hamburger-trigger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background: transparent;
    border: none;
    margin: 0;
    outline: none;
    transition: background-color 0.3s, border-radius 0.3s, transform 0.2s;
    box-sizing: border-box;
}

.krt-hamburger-trigger:hover {
    transform: scale(1.05);
}

.krt-hamburger-trigger:active {
    transform: scale(0.95);
}

/* Hamburger Box & Inner Bars */
.krt-hamburger-box {
    display: inline-block;
    position: relative;
    box-sizing: border-box;
}

.krt-hamburger-bar {
    position: absolute;
    left: 0;
    width: 100%;
    display: block;
    transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), 
                opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), 
                background-color 0.3s ease;
}

.krt-bar-top {
    top: 0;
}

.krt-bar-middle {
    top: 50%;
    transform: translateY(-50%);
}

.krt-bar-bottom {
    bottom: 0;
}

/* Active Morphing into X */
.krt-hamburger-trigger.krt-is-active .krt-bar-top {
    top: 50%;
    transform: translateY(-50%) rotate(45deg);
}

.krt-hamburger-trigger.krt-is-active .krt-bar-middle {
    opacity: 0;
}

.krt-hamburger-trigger.krt-is-active .krt-bar-bottom {
    bottom: 50%;
    transform: translateY(50%) rotate(-45deg);
}

/* Off-Canvas Backdrop Overlay */
.krt-offcanvas-overlay {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100vw !important;
    height: 100vh !important;
    z-index: 999998 !important;
    opacity: 0 !important;
    visibility: hidden !important;
    transition: opacity 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), 
                visibility 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

.krt-offcanvas-overlay.krt-is-open {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Off-Canvas Sidebar Container */
.krt-offcanvas-sidebar {
    position: fixed !important;
    top: 0 !important;
    height: 100vh !important;
    z-index: 999999 !important;
    display: flex !important;
    flex-direction: column !important;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15) !important;
    box-sizing: border-box !important;
    transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
}

/* Left Sidebar Placement */
.krt-offcanvas-sidebar.krt-sidebar-left {
    left: 0 !important;
    transform: translateX(-100%) !important;
}

.krt-offcanvas-sidebar.krt-sidebar-left.krt-is-open {
    transform: translateX(0) !important;
}

/* Right Sidebar Placement */
.krt-offcanvas-sidebar.krt-sidebar-right {
    right: 0 !important;
    transform: translateX(100%) !important;
}

.krt-offcanvas-sidebar.krt-sidebar-right.krt-is-open {
    transform: translateX(0) !important;
}

/* Scroll Lock when Sidebar open */
body.krt-offcanvas-open {
    overflow: hidden !important;
}

/* Sidebar Header Controls */
.krt-offcanvas-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-end !important;
    padding: 15px 20px !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

.krt-offcanvas-close {
    background: transparent !important;
    border: none !important;
    padding: 5px !important;
    margin: 0 !important;
    cursor: pointer !important;
    line-height: 1 !important;
    outline: none !important;
    transition: color 0.3s ease, transform 0.2s ease !important;
}

.krt-offcanvas-close:hover {
    transform: rotate(90deg);
}

/* Sidebar Scrollable Body */
.krt-offcanvas-body {
    flex: 1 !important;
    overflow-y: auto !important;
    padding: 0 0 30px 0 !important;
    display: flex !important;
    flex-direction: column !important;
}

/* Premium Logo styling */
.krt-sidebar-logo {
    display: block;
    text-align: center;
    padding: 25px 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.krt-sidebar-logo img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.krt-sidebar-logo img:hover {
    transform: scale(1.03);
}

/* Navigation Menu */
.krt-offcanvas-menu-container {
    width: 100%;
    margin-top: 10px;
}

.krt-offcanvas-menu-container ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

.krt-offcanvas-menu-container ul li {
    display: block !important;
    margin: 0 !important;
    border-bottom-style: solid;
    border-bottom-width: 0;
}

.krt-offcanvas-menu-container ul li a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    text-decoration: none !important;
    box-sizing: border-box !important;
    font-family: 'Hind Siliguri', 'Inter', sans-serif;
    font-weight: 600;
    transition: color 0.3s ease, background-color 0.3s ease, padding 0.3s ease !important;
}

/* Premium footer widgets/contact text */
.krt-sidebar-footer-text {
    margin-top: auto !important;
    padding: 25px 20px 10px 20px !important;
    font-family: 'Hind Siliguri', sans-serif !important;
    font-size: 13px !important;
    color: #888888 !important;
    line-height: 1.6 !important;
    border-top: 1px solid rgba(0, 0, 0, 0.05) !important;
    text-align: center !important;
}

/* Empty fallback banner */
.krt-no-menu-selected {
    padding: 30px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
    font-family: 'Hind Siliguri', sans-serif;
}

/* Custom Fonts for WooCommerce Shop Page (Bengali text and numbers) */
@font-face {
    font-family: 'BazarBanglaNumbers';
    src: local('Noto Sans Bengali'), local('SolaimanLipi'), local('Kalpurush'), local('system-ui'), local('sans-serif');
    unicode-range: U+09E6-09EF; /* Bengali digits ০-৯ */
}

body.woocommerce-page.archive,
body.woocommerce-page.archive *,
.widget_product_categories,
.widget_product_categories *,
.woocommerce-widget-layered-nav,
.woocommerce-widget-layered-nav * {
    font-family: 'BazarBanglaNumbers', 'Hind Siliguri', 'Inter', -apple-system, sans-serif !important;
}

/* ==========================================================================
   SHOP PAGE MOBILE OFF-CANVAS SIDEBAR FILTER STYLING
   ========================================================================== */
@media (max-width: 992px) {
    /* Turn sidebar into fixed sliding drawer panel */
    .post-type-archive-product #secondary,
    .post-type-archive-product .sidebar-main,
    .tax-product_cat #secondary,
    .tax-product_cat .sidebar-main {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 300px !important;
        max-width: 85% !important;
        height: 100vh !important;
        background-color: #ffffff !important;
        z-index: 999999 !important;
        overflow-y: auto !important;
        padding: 20px 25px 50px 25px !important;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15) !important;
        transform: translateX(-100%) !important;
        transition: transform 0.4s cubic-bezier(0.25, 0.8, 0.25, 1) !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        display: block !important;
    }

    .post-type-archive-product #secondary.krt-sidebar-open,
    .post-type-archive-product .sidebar-main.krt-sidebar-open,
    .tax-product_cat #secondary.krt-sidebar-open,
    .tax-product_cat .sidebar-main.krt-sidebar-open {
        transform: translateX(0) !important;
    }

    /* Trigger Button Wrapper */
    .krt-mobile-filter-wrap {
        display: block !important;
        width: 100% !important;
        margin: 15px 0 25px 0 !important;
        padding: 0 15px !important;
        box-sizing: border-box !important;
    }

    /* Trigger Button Style */
    .krt-mobile-filter-trigger {
        background-color: var(--primary-color) !important;
        color: var(--white) !important;
        border: none !important;
        width: 100% !important;
        padding: 14px 20px !important;
        border-radius: 12px !important;
        font-family: 'Hind Siliguri', sans-serif !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 10px !important;
        cursor: pointer !important;
        box-shadow: 0 8px 20px rgba(61, 149, 61, 0.2) !important;
        transition: var(--transition) !important;
    }

    .krt-mobile-filter-trigger:hover {
        background-color: #2d7d2d !important;
        transform: translateY(-2px) !important;
    }

    .krt-mobile-filter-trigger:active {
        transform: translateY(0) !important;
    }

    /* Sidebar Close Header Wrap */
    .krt-sidebar-close-wrap {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        margin-bottom: 25px !important;
        padding-bottom: 15px !important;
        border-bottom: 1px solid #eeeeee !important;
    }

    .krt-sidebar-close-wrap .krt-sidebar-title {
        font-family: 'Hind Siliguri', sans-serif !important;
        font-size: 18px !important;
        font-weight: 800 !important;
        color: var(--secondary-color) !important;
    }

    .krt-sidebar-close-btn {
        background: transparent !important;
        border: none !important;
        font-size: 32px !important;
        color: #333333 !important;
        cursor: pointer !important;
        padding: 0 !important;
        line-height: 1 !important;
        transition: color 0.3s ease !important;
    }

    .krt-sidebar-close-btn:hover {
        color: #e74c3c !important;
    }

    /* Blur Overlay Backdrop */
    .krt-filter-overlay {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        background-color: rgba(0, 0, 0, 0.5) !important;
        backdrop-filter: blur(3px) !important;
        -webkit-backdrop-filter: blur(3px) !important;
        z-index: 999998 !important;
        opacity: 0 !important;
        visibility: hidden !important;
        transition: opacity 0.4s ease, visibility 0.4s ease !important;
    }

    .krt-filter-overlay.krt-is-open {
        opacity: 1 !important;
        visibility: visible !important;
    }

    /* Hide WooCommerce default sorting on mobile screen */
    .woocommerce-ordering {
        display: none !important;
    }

    /* Adjust WooCommerce container padding and margin on mobile screen */
    .woocommerce-page .ast-woocommerce-container {
        padding: 10px !important;
        margin: 0 !important;
    }
}

/* Remove bottom margin from the WooCommerce shop page title */
.woocommerce-products-header__title.page-title {
    margin-bottom: 0 !important;
}

/* Eliminate page top gaps on all WooCommerce archive pages */
.woocommerce-page .site-content,
body.archive .site-content,
body.shop .site-content,
.woocommerce-page.archive .site-content {
    padding-top: 0 !important;
}

.woocommerce-page.archive .site-content .ast-container,
.woocommerce-page .site-content .ast-container,
.woocommerce-page .ast-container,
body.archive .site-content .ast-container,
body.shop .site-content .ast-container,
.post-type-archive-product .ast-container,
.tax-product_cat .ast-container,
.ast-container {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Hide mobile specific elements on desktop screens (993px and up) */
@media (min-width: 993px) {
    .krt-sidebar-close-wrap,
    .krt-mobile-filter-wrap,
    .krt-mobile-filter-trigger {
        display: none !important;
    }
}