/*
Theme Name: Astra Child
Template: astra
*/

/* === Astra/WooCommerce ডিফল্ট কলাম লেআউট ফিক্স === */
.woocommerce div.product.sa-custom-single-product {
    display: block !important;
}

/* === কন্টেইনার === */
.sa-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    clear: both;
}

/* === পুরো পেজের ব্যাকগ্রাউন্ড === */
body.single-product {
    background: #D6D6D6 !important;
}

/* === ফুল-উইডথ টাইটেল ব্যাকগ্রাউন্ড ট্রিক === */
.sa-full-width-title-wrap {
    background: #eeeeee;
    padding: 35px 0;
    margin-bottom: 40px;
    width: 100vw;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}

/* === মূল বক্স === */
.sa-main-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.06);
    padding: 40px;
    margin-bottom: 40px;
}
/* কাস্টম নোটিশ স্টাইল */
.sa-custom-notice-wrapper {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px 20px;
    margin-bottom: 20px;
    transition: opacity 0.5s;
}

.sa-custom-notice-wrapper .woocommerce-error {
    background: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.sa-custom-notice-wrapper .woocommerce-message {
    background: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

/* === ডিফল্ট উকমার্স নোটিশ সম্পূর্ণ লুকানো === */
.woocommerce-notices-wrapper {
    display: none !important;
}

/* === ইউনিভার্সাল টোস্ট নোটিফিকেশন ডিজাইন === */
#sa-toast-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 400px;
    width: calc(100% - 60px);
    pointer-events: none;
}

.sa-toast-notification {
    pointer-events: auto;
    background: #ffffff;
    color: #333333;
    padding: 20px 25px;
    border-radius: 12px;
    box-shadow: 0 15px 50px rgba(0,0,0,0.15);
    display: flex;
    align-items: flex-start;
    gap: 15px;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.5;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    border-left: 5px solid #28a745;
    position: relative;
    overflow: hidden;
}

.sa-toast-notification.sa-toast-show {
    opacity: 1;
    transform: translateX(0);
}

.sa-toast-notification.sa-toast-error {
    border-left-color: #ff5a5f;
    background: #fff5f5;
    color: #721c24;
}

.sa-toast-icon {
    font-size: 24px;
    line-height: 1;
    margin-top: -2px;
}

.sa-toast-content {
    flex: 1;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

/* টোস্টের ভেতরের লিংক এবং বাটন */
.sa-toast-content a {
    color: #5a54ff;
    font-weight: 700;
    text-decoration: underline;
    display: inline-block;
}

.sa-toast-content .button, 
.sa-toast-content .wc-forward {
    background: #5a54ff !important;
    color: #fff !important;
    padding: 8px 18px !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    font-size: 13px !important;
    width: fit-content;
    float: none !important;
    margin-top: 5px !important;
}

.sa-toast-notification.sa-toast-error .button {
    background: #ff5a5f !important;
}

.sa-close-toast {
    position: absolute;
    top: 8px;
    right: 10px;
    cursor: pointer;
    font-size: 20px;
    color: #888;
    line-height: 1;
    font-weight: normal;
    transition: color 0.2s;
}
.sa-close-toast:hover {
    color: #333;
}

@media (max-width: 768px) {
    #sa-toast-container {
        bottom: 20px;
        right: 15px;
        max-width: calc(100% - 30px);
    }
    .sa-toast-notification {
        padding: 15px 20px;
        font-size: 14px;
    }
}
/* === গ্রিড লেআউট === */
.sa-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    align-items: flex-start;
}

.sa-left {
    flex: 2.3;
    min-width: 300px;
    position: relative; 
}

.sa-right {
    flex: 1.2;
    min-width: 280px;
}
/* CLS কমানোর জন্য ইমেজ কন্টেইনারের হাইট ফিক্সড করা */
.woocommerce-product-gallery {
    position: relative;
    min-height: 400px; /* আপনার ডিজাইন অনুযায়ী এডজাস্ট করুন */
}

.woocommerce-product-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

/* লোডিংয়ের সময় প্লেসহোল্ডার */
.sa-image-box {
 min-height: unset !important;
    background: transparent !important;
}

/* ইমেজ লোড হওয়ার পর */
.sa-image-box img[src] {
    background: transparent;
}
/* === ইমেজ গ্যালারি ফিক্স (Zoom Fix) === */
.sa-image-box .woocommerce-product-gallery {
    width: 100% !important;
    float: none !important;
    margin: 0 !important;
}



.sa-image-box .woocommerce-product-gallery__wrapper {
    margin: 0 !important;
    padding: 0 !important;
}

.sa-image-box .woocommerce-product-gallery__image img {
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    width: 100% !important;
    height: auto !important;
}

/* === কার্ড স্টাইল === */
.sa-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.sa-card-soft {
    background: #f8f9fc;
}

/* কালার গ্রেডিয়েন্ট */
.sa-card-price {
    background: linear-gradient(135deg, #f3f0ff, #ffffff);
    border-left: 4px solid #5a54ff;
}
.sa-card-vendor {
    background: linear-gradient(135deg, #eafaf1, #ffffff);
    border-left: 4px solid #28a745;
}
.sa-card-sales {
    background: linear-gradient(135deg, #fff6e9, #ffffff);
    border-left: 4px solid #ff9f43;
}

/* === প্রাইস === */
.sa-price {
    font-size: 28px !important;
    font-weight: bold !important;
    margin-bottom: 10px !important;
    display: inline-block !important;
    color: #28a745 !important;
    padding: 8px 20px;
    border-radius: 30px;
}

/* === অ্যাড টু কার্ট বাটন === */
.sa-cart form.cart {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0 !important;
}

.single_add_to_cart_button {
    width: 100% !important;
    background: #ff5a5f !important;
    padding: 15px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    border: none !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.single_add_to_cart_button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,90,95,0.3) !important;
}

/* === মেটা ইনফো === */
.sa-meta-title {
    font-size: 13px;
    color: #777777;
    margin-bottom: 4px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.sa-meta-value {
    font-size: 16px;
    font-weight: 600;
    color: #333333;
}

/* === ভেন্ডর সেকশন === */
.sa-vendor {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
    transition: 0.3s;
}
.sa-vendor:hover {
    opacity: 0.8;
}
.sa-vendor img {
    width: 55px;
    height: 55px;
    border-radius: 50% !important;
    object-fit: cover;
    border: 2px solid #5a54ff;
}
.sa-vendor .sa-meta-value {
    color: #5a54ff;
}
.sa-trust-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}
.sa-trust-item {
    flex: 1;
    min-width: 90px;
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    border-radius: 10px;
    padding: 10px 6px;
}
.sa-trust-icon {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.sa-trust-purple {
    background: linear-gradient(135deg, #f3f0ff, #ffffff);
    color: #5a54ff;
}
.sa-trust-green {
    background: linear-gradient(135deg, #eafaf1, #ffffff);
    color: #28a745;
}
.sa-trust-orange {
    background: linear-gradient(135deg, #fff6e9, #ffffff);
    color: #ff9f43;
}
.sa-trust-item span {
    display: block;
    font-size: 18px;
    margin-bottom: 4px;
}

.sa-sticky-cart {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 -6px 20px rgba(0,0,0,0.1);
    padding: 12px 16px;
    z-index: 9999;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.sa-sticky-price {
    font-size: 18px;
    font-weight: 700;
    color: #28a745;
}
.sa-sticky-btn {
    background: #ff5a5f;
    color: #fff;
    border: none;
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 15px;
}
@media (max-width: 768px) {
    .sa-sticky-cart {
        display: none; /* শুধু JS দিয়ে কন্ট্রোল হবে */
    }
    body.single-product {
        padding-bottom: 80px; /* স্টিকি বার কনটেন্ট ঢাকবে না */
    }
}
/* === মডার্ন ট্যাব এবং বিবরণ বক্স ডিজাইন === */
.sa-tabs {
    margin-top: 40px;
    background-color: #f8f9fa;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.sa-related-wrap {
    margin-top: 40px;
    background: #ffffff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.sa-section-title {
    font-size: 22px;
    font-weight: 700;
    color: #333;
    margin: 0 0 20px 0;
}
.sa-related-wrap ul.products {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 20px;
}
.sa-related-wrap ul.products li.product {
    border-radius: 12px;
    transition: transform 0.2s ease;
}
.sa-related-wrap ul.products li.product:hover {
    transform: translateY(-4px);
}
/* ট্যাব মেনুর কন্টেইনার */
.sa-tabs .woocommerce-tabs ul.tabs {
    display: flex !important;
    margin: 0 !important;
    padding: 15px 20px 0 20px !important;
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #e9ecef !important;
    list-style: none;
    gap: 10px;
}

.sa-tabs .woocommerce-tabs ul.tabs::before {
    display: none !important;
}

/* প্রতিটি ট্যাব আইটেম */
.sa-tabs .woocommerce-tabs ul.tabs li {
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: transparent !important;
}

.sa-tabs .woocommerce-tabs ul.tabs li::before,
.sa-tabs .woocommerce-tabs ul.tabs li::after {
    display: none !important;
}

/* ট্যাব বাটন/লিংকগুলোর ডিজাইন */
.sa-tabs .woocommerce-tabs ul.tabs li a {
    display: inline-block;
    color: #495057 !important;
    border: none !important;
    padding: 12px 22px !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    font-weight: 600;
    border-radius: 8px 8px 0 0 !important;
    background: transparent;
}

.sa-tabs .woocommerce-tabs ul.tabs li a:hover {
    color: #007bff !important;
}

/* অ্যাক্টিভ ট্যাবের ডিজাইন */
.sa-tabs .woocommerce-tabs ul.tabs li.active a {
    color: #fff !important;
    background-color: #007bff !important;
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.3) !important;
    border-radius: 8px 8px 0 0 !important;
}

/* === বিবরণ বা প্যানেল বক্স (এটি খালি থাকা অংশটি ঢেকে দেবে) === */
.sa-tabs .woocommerce-tabs .panel {
    background-color: #ffffff !important;
    border-radius: 0 0 15px 15px !important; /* নিচের দিকটা রাউন্ডেড বক্স করবে */
    padding: 30px !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.02);
}

/* === ফেড-ইন এনিমেশন ক্লাস === */
.fade-in {
    animation: fadeIn 0.5s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* === টাইটেল এবং ব্রেডক্রাম্ব পাশাপাশি রাখার জন্য ফ্লেক্স বক্স === */
.sa-title-flex-container {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap;
    gap: 15px;
}

.sa-page-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    margin: 0 !important;
    color: #333333 !important;
    border: none !important;
}
/* === ডানপাশের ব্রেডক্রাম্ব স্টাইল === */
.sa-breadcrumb-right nav.woocommerce-breadcrumb {
    font-size: 14px;
    color: #555555;
    margin: 0;
}

.sa-breadcrumb-right nav.woocommerce-breadcrumb a {
    color: #007bff;
    text-decoration: none;
}

.sa-breadcrumb-right nav.woocommerce-breadcrumb a:hover {
    text-decoration: underline;
}
/* === Astra থিমের ডিফল্ট ব্রেডক্রাম্ব লুকিয়ে ফেলা === */
.ast-breadcrumb-header, 
.site-header-primary-section-left .ast-breadcrumbs,
.ast-woo-shop-breadcrumb {
    display: none !important;
}
.ast-breadcrumbs-wrapper {
    display: none !important;
}
/* পুরো entry-header (breadcrumb-এর wrapper) সরিয়ে দিন */
.single-product header.entry-header {
    display: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* #primary / content-area এর টপ স্পেসিং কমিয়ে টাইটেল বক্স উপরে আনুন */
.single-product #primary.content-area,
.single-product .ast-container {
    padding-top: 0 !important;
    margin-top: 0 !important;
}

.single-product .sa-full-width-title-wrap {
    margin-top: 0 !important;
}

/* === বিজ্ঞপন === */
.sa-ad-banner {
    margin-top: 30px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}
.sa-ad-banner img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 15px;
    transition: transform 0.3s ease;
}
.sa-ad-banner:hover img {
    transform: scale(1.02);
}
/* কাস্টম সর্টিং বাটন */
/* === শপ কন্ট্রোলস (শর্টিং ও সার্চ একসাথে) === */
.sa-shop-controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    margin-bottom: 30px !important;
}

/* কাস্টম সর্টিং বাটন */
.custom-sorting {
    list-style: none !important;
    margin: 0 !important; /* মার্জিন সরানো হয়েছে */
    padding: 0 !important;
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
}

.custom-sorting a {
    display: inline-block !important;
    padding: 6px 14px !important;
    background: #f2f2f2 !important;
    color: #333 !important;
    border: 1px solid #ddd !important;
    border-radius: 20px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
}

.custom-sorting a:hover {
    background: #e0e0e0 !important;
    border-color: #bbb !important;
}

.custom-sorting a.active {
    background: #1a6b1a !important;
    color: #fff !important;
    border-color: #1a6b1a !important;
}

/* সার্চ বার ডান দিকে যাওয়ার জন্য */
.sa-search-wrapper {
    display: flex !important;
    justify-content: flex-end !important;
    width: auto !important;
    max-width: 500px !important;
    margin-bottom: 0 !important;
    margin-left: auto !important;
}
/* মোবাইলে সেন্টারে আসার জন্য */
@media (max-width: 768px) {
    .sa-shop-controls {
        flex-direction: column;
        align-items: stretch;
    }
    .sa-search-wrapper {
        max-width: 100% !important;
        margin-left: 0 !important;
        margin-top: 10px !important;
    }
}

/* === মোবাইল রেস্পন্সিভ - সেন্টার অ্যালাইনমেন্ট ফিক্স === */
@media (max-width: 768px) {
    /* কন্টেইনার প্যাডিং ঠিক করা */
    .sa-container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
     .sa-full-width-title-wrap {
        padding: 15px 0 !important;
        margin-bottom: 20px !important;
    }
    /* গ্রিড লেআউট সেন্টার করা */
    .sa-grid {
        gap: 20px;
        justify-content: center; /* সেন্টারে আনা */
                align-items: stretch !important;
    }
     /* WooCommerce কন্টেইনার প্যাডিং কমানো */
    .woocommerce #primary.content-area,
    .single-product .site-content,
    .single-product .ast-container {
        padding-top: 0 !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    .sa-left, .sa-right {
        flex: 1 1 100%; /* ফুল উইডথ */
        min-width: 100%;
         width: 100% !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    /* মেইন বক্স প্যাডিং কমানো */
    .sa-main-box {
        margin-top: 0 !important;
        padding: 15px 10px !important;        
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* কার্ডগুলো সেন্টার করা */
    .sa-card {
        margin-left:0 !important;
        margin-right: 0 !important;
        max-width: 100%;
    }
    
    /* টাইটেল সেন্টার */
    .sa-page-title {
        text-align: center !important;
         font-size: 18px !important;
        padding: 0 10px !important;
    }
    
    /* ব্রেডক্রাম্ব হাইড করা মোবাইলে (ঐচ্ছিক) */
    .sa-breadcrumb-right {
        display: none;
    }
    
    /* ফ্লেক্স কন্টেইনার সেন্টার */
    .sa-title-flex-container {
        justify-content: center !important;
        text-align: center;
        padding: 0 15px !important;
    }
    
    /* প্রাইস সেন্টার */
    .sa-price {
        text-align: center;
        display: block !important;
         width: 100%;
    }
    
    /* ট্রাস্ট বার সেন্টার */
    .sa-trust-bar {
        justify-content: center;
        flex-wrap: wrap;
    }
     .sa-trust-item {
        min-width: 45% !important;
        flex: 0 0 45% !important;
    }
    /* ভেন্ডর সেন্টার */
    .sa-vendor {
        justify-content: center;
    }
        /* ইমেজ বক্স */
    .sa-image-box {
        min-height: auto !important;
    }

}

/* ছোট মোবাইল (320px - 400px) */
@media (max-width: 400px) {
    .sa-container {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    .sa-main-box {
        padding: 12px 8px !important;
    }
    
    .sa-card {
        padding: 12px !important;
    }
    
    .sa-trust-item {
        min-width: 100% !important;
        flex: 0 0 100% !important;
        margin-bottom: 8px;
    }
    /* ===== Mobile Gallery Fix ===== */
/* মোবাইলে ছবি দেখানোর জন্য */

/* Gallery wrapper */
.woocommerce-product-gallery {
    opacity: 1 !important;
    visibility: visible !important;
}

/* Main image */
.woocommerce-product-gallery__image,
.woocommerce-product-gallery__image a,
.woocommerce-product-gallery__image img {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

/* Flexslider fix — JS লোড হওয়ার আগেও ছবি দেখাবে */
.woocommerce-product-gallery .flexslider {
    opacity: 1 !important;
    visibility: visible !important;
}

.woocommerce-product-gallery .flex-viewport {
    overflow: visible !important;
    max-height: none !important;
}

.woocommerce-product-gallery .slides {
    display: block !important;
}

.woocommerce-product-gallery .slides li {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
}

.woocommerce-product-gallery .slides li img {
    display: block !important;
    opacity: 1 !important;
    width: 100% !important;
    height: auto !important;
}
.woocommerce-product-gallery__image {
    position: relative;
    overflow: hidden;
}
/* মোবাইলে নির্দিষ্ট fix */
@media (max-width: 768px) {
    .woocommerce-product-gallery {
        width: 100% !important;
        float: none !important;
        margin-bottom: 20px !important;
            min-height: unset !important;
    height: auto !important;
    }

    .woocommerce-product-gallery .flex-control-thumbs {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        padding: 8px 0 !important;
    }

    .woocommerce-product-gallery .flex-control-thumbs li {
        width: calc(25% - 5px) !important;
        margin: 0 !important;
        list-style: none !important;
    }

    .woocommerce-product-gallery .flex-control-thumbs img {
        border-radius: 6px !important;
        opacity: 0.7 !important;
        cursor: pointer !important;
    }

    .woocommerce-product-gallery .flex-control-thumbs img.flex-active {
        opacity: 1 !important;
        border: 2px solid #007bff !important;
    }
    /* ছবি লোড হওয়ার আগে spinner দেখাবে, gap দেবে না */
.woocommerce-product-gallery .flexslider {
    min-height: unset !important;
    margin: 0 !important;
    border: none !important;
    background: #f5f5f5 !important;
    border-radius: 12px !important;
}
 
.woocommerce-product-gallery .flex-viewport {
    max-height: none !important;
    overflow: hidden !important;
    border-radius: 12px !important;
}
 
/* Gallery image — aspect ratio maintain করবে */
.woocommerce-product-gallery .slides > li:first-child {
    display: block !important;
    opacity: 1 !important;
}
 
.woocommerce-product-gallery img.wp-post-image,
.woocommerce-product-gallery .slides img {
    width: 100% !important;
    height: auto !important;
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-radius: 12px !important;
    /* aspect-ratio ধরে রাখবে */
    aspect-ratio: 4/3;
    object-fit: cover;
}
 
/* Thumbnail strip */
.woocommerce-product-gallery .flex-control-nav {
    margin-top: 10px !important;
    bottom: unset !important;
    position: static !important;
}
 
 
/* ------------------------------------------------
   FIX 2: Add to Cart বাম দিকে চেপে যাওয়া
   কারণ: sticky cart show হলে layout shift হয়
   ------------------------------------------------ */
 
/* Sticky cart দেখালে body-তে padding যোগ হবে */
body.sticky-cart-visible {
    padding-bottom: 70px !important;
}
 
/* Sticky cart নিজে যেন width ঠিক রাখে */
.sa-sticky-cart {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    /* Add to Cart button-কে push করবে না */
    z-index: 9999 !important;
}
 
/* মোবাইলে sticky cart-এর ভেতরের button */
@media (max-width: 768px) {
    .sa-sticky-cart {
        padding: 10px 15px !important;
        gap: 10px !important;
    }
 
    .sa-sticky-btn {
        flex: 1 !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        white-space: nowrap !important;
    }
 
    .sa-sticky-price {
        font-size: 16px !important;
        white-space: nowrap !important;
    }
 
    /* মোবাইলে ছবির gap সমস্যা */
    .sa-image-box {
        min-height: unset !important;
    }
 
    .sa-left {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
 
    /* ছবি ও price card-এর মাঝের gap কমানো */
    .sa-grid {
        gap: 20px !important;
    }
 
    /* Gallery-র পরে extra space সরানো */
    .woocommerce-product-gallery {
        margin-bottom: 0 !important;
        padding-bottom: 0 !important;
    }
}
 
 
/* ------------------------------------------------
   FIX 3: LiteSpeed Delayed JS-এ Gallery ঠিক রাখা
   ছবি JS লোডের আগেও দেখাবে
   ------------------------------------------------ */
 
/* JS লোডের আগে gallery visible রাখা */
.woocommerce-product-gallery:not(.woocommerce-product-gallery--loaded) {
    opacity: 1 !important;
}
 
.woocommerce-product-gallery:not(.woocommerce-product-gallery--loaded)
.woocommerce-product-gallery__image img {
    opacity: 1 !important;
    display: block !important;
    visibility: visible !important;
}
 
/* Flexslider initialize হওয়ার আগে প্রথম slide দেখাবে */
.woocommerce-product-gallery .slides > li {
    display: none;
}
.woocommerce-product-gallery .slides > li:first-child {
    display: block !important;
}
/* Flexslider init হলে সব slide আসবে */
.woocommerce-product-gallery.loaded .slides > li {
    display: block;
}
}
/* === কাস্টম মিনি কার্ট ডিজাইন === */

/* ========== ফ্লোটিং কার্ট বাটন ========== */
.sa-floating-cart-btn {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #5a54ff;
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(90, 84, 255, 0.35);
    cursor: pointer;
    z-index: 99998;
    transition: transform 0.2s ease;
}
.sa-floating-cart-btn:hover {
    transform: scale(1.08);
}
.sa-cart-count {
    position: absolute;
    top: -4px;
    right: -4px;
    background: #ff5a5f;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    min-width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    border: 2px solid #fff;
}

/* ========== স্লাইড-ইন সাইডবার ========== */
#sa-cart-sidebar {
    position: fixed;
    top: 0;
    right: -420px; /* ডিফল্টে স্ক্রিনের বাইরে লুকানো */
    width: 380px;
    max-width: 90vw;
    height: 100vh;
    background: #ffffff;
    box-shadow: -10px 0 30px rgba(0,0,0,0.15);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    transition: right 0.35s ease;
}
#sa-cart-sidebar.open {
    right: 0;
}

/* সাইডবারের হেডার */
.sa-cart-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
    border-bottom: 1px solid #eee;
}
.sa-cart-header h3 {
    margin: 0;
    font-size: 18px;
}
.sa-cart-close {
    font-size: 26px;
    line-height: 1;
    cursor: pointer;
    color: #777;
}
.sa-cart-close:hover {
    color: #d63638;
}
/* সাইডবারের বডি (প্রোডাক্ট লিস্ট) */
.sa-cart-body {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
}
/* উকমার্সের ডিফল্ট লিস্ট স্টাইল ঠিক করা */
.sa-cart-body ul.woocommerce-mini-cart {
    list-style: none;
    padding: 0;
    margin: 0;
}
.sa-cart-body ul.woocommerce-mini-cart li.mini_cart_item {
    display: flex;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #f1f1f1;
    align-items: flex-start;
}
.sa-cart-body ul.woocommerce-mini-cart img {
    width: 60px !important;
    height: 60px !important;
    object-fit: cover;
    border-radius: 8px;
    float: none !important;
    margin-right: 0 !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}
.sa-cart-body .mini_cart_item a {
    text-decoration: none;
    color: #333;
    font-weight: 600;
    font-size: 15px;
}
.sa-cart-body .mini_cart_item .quantity {
    display: block;
    color: #888;
    font-size: 13px;
    margin-top: 5px;
}

/* সাইডবারের ফুটার */
.sa-cart-footer {
    padding: 16px 20px;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}
.sa-cart-footer .button {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    font-weight: 600;
    text-decoration: none !important;
    font-size: 14px;
}
.sa-cart-footer .sa-cart-page-btn {
    background: #5a54ff !important;
}
.sa-cart-footer .sa-checkout-btn {
    background: #28a745 !important;
}
.sa-cart-footer .button:hover {
    opacity: 0.9;
}
/* মোট প্রাইস সেন্টারে আনা */
.sa-cart-body .woocommerce-mini-cart__total {
    text-align: center;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px dashed #ddd;
    font-size: 16px;
    font-weight: 700;
}

/* বাইরের ডার্ক ওভারলে */
#sa-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.4);
    z-index: 999998;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease;
}
#sa-cart-overlay.show {
    opacity: 1;
    visibility: visible;
}
/* মোবাইলে ফ্লোটিং বাটন sticky cart-এর সাথে না মিশতে */
@media (max-width: 480px) {
    body.sticky-cart-visible .sa-floating-cart-btn {
        bottom: 85px;
    }
}
/* ========== মিনি কার্টের বাটন স্মার্ট করা ========== */
.woocommerce-mini-cart__buttons,
.widget_shopping_cart .buttons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 15px !important;
}

.woocommerce-mini-cart__buttons a.button,
.widget_shopping_cart .buttons a.button {
    flex: 1;
    text-align: center;
    padding: 12px 10px !important;
    border-radius: 10px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease !important;
    border: none !important;
}

.woocommerce-mini-cart__buttons a.button:hover,
.widget_shopping_cart .buttons a.button:hover {
    transform: translateY(-2px);
}

/* অর্ডার লিস্ট বাটন (বেগুনি) */
.woocommerce-mini-cart__buttons a.button:not(.checkout):hover {
    box-shadow: 0 6px 14px rgba(90, 84, 255, 0.3);
}

/* পেমেন্ট বাটন (সবুজ) */
.woocommerce-mini-cart__buttons a.button.checkout:hover {
    box-shadow: 0 6px 14px rgba(40, 167, 69, 0.3);
}

/* Mobile-এ sticky cart bar লুকাবে — bottom nav থাকায় */
@media (max-width: 768px) {
    .sa-sticky-cart {
        display: none !important;
    }
}
/* Active item — সাদা রং ও উজ্জ্বল */
.sa-mobile-nav__item.active {
    color: #fff !important;
}

.sa-mobile-nav__item.active .sa-mobile-nav__icon {
    filter: brightness(1.3);
    transform: translateY(-4px) scale(1.15);
}

.sa-mobile-nav__item.active .sa-mobile-nav__label {
    color: #fff !important;
    font-weight: 700 !important;
}

/* Non-active — হালকা */
.sa-mobile-nav__item:not(.active) .sa-mobile-nav__icon {
    opacity: 0.65;
}

.sa-mobile-nav__item:not(.active) .sa-mobile-nav__label {
    opacity: 0.65;
}

/* Hover */
.sa-mobile-nav__item:hover .sa-mobile-nav__icon,
.sa-mobile-nav__item:hover .sa-mobile-nav__label {
    opacity: 1 !important;
    color: #fff !important;
}
/* ইমেজ রেন্ডারিং কোয়ালিটি সর্বোচ্চ করা */
.woocommerce-product-gallery img {
    image-rendering: -webkit-optimize-contrast !important;
    image-rendering: crisp-edges !important;
}