/* ==========================================
   GLOBAL & DESKTOP ADJUSTMENTS
   ========================================== */
@media (min-width: 992px) {
    .single-product .site-main,
    .single-product div.product {
        max-width: 1200px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        padding-left: 20px !important;
        padding-right: 20px !important;
    }

    /* Hide Mobile Sticky Bar on Desktop */
    .mobile-sticky-bar {
        display: none !important;
    }

    /* Desktop Buy Now Button */
    .desktop-buy-now-btn {
        display: block !important;
        width: 100% !important;
        margin-top: 10px !important;
        margin-left: 110px;
        padding: 12px 20px !important;
        background-color: #000000 !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        text-align: center !important;
        transition: background-color 0.2s ease !important;
    }

    .desktop-buy-now-btn:hover {
        background-color: #c4135d !important;
    }
}



/* ==========================================
   CUSTOM VARIATION BUTTONS (WITHOUT PLUGIN)
   ========================================== */

/* 2-Column Responsive Grid */
.custom-swatch-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 15px 0 !important;
    width: 100% !important;
}

/* Individual Swatch Item Style */
.custom-swatch-item {
    width: 100% !important;
    min-height: 48px !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    user-select: none !important;
}

.custom-swatch-item:hover {
    border-color: #0d0d0d !important;
}

/* Selected Active Swatch (Black Background) */
.custom-swatch-item.selected {
    background: #0d0d0d !important;
    color: #ffffff !important;
    border-color: #0d0d0d !important;
}

/* Attributes Table Container Centering */
.single-product table.variations {
    width: 100% !important;
    margin-bottom: 15px !important;
}

.single-product table.variations td, 
.single-product table.variations th {
    display: block !important;
    width: 100% !important;
    text-align: center !important;
    padding: 0 !important;
    border: none !important;
}

/* Attribute Name Label (Decant) Top-Centered */
.single-product table.variations label {
    display: block !important;
    text-align: center !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    margin-bottom: 10px !important;
}
/* ==========================================
   NEW: VARIATION SWATCHES & CENTERED QTY (FIXED)
   ========================================== */

/* ১. ভ্যারিয়েশন সুইচ বক্স (২ কলাম ও আধুনিক ডিজাইন) */
.woo-variation-swatches .variable-items-wrapper,
.variations ul.variable-items-wrapper {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 12px !important;
    margin: 15px 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.woo-variation-swatches .variable-item,
.variations .variable-item {
    width: 100% !important;
    min-height: 48px !important;
    height: auto !important;
    padding: 10px 12px !important;
    background: #ffffff !important;
    border: 1px solid #eeeeee !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03) !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #000000 !important;
    text-align: center !important;
    text-transform: uppercase !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-sizing: border-box !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
}

/* সিলেক্টেড ভ্যারিয়েশন অ্যাক্টিভ স্টেট */
.woo-variation-swatches .variable-item.selected,
.variations .variable-item.selected {
    background: #0d0d0d !important;
    color: #ffffff !important;
    border-color: #0d0d0d !important;
}

/* ২. ফর্মিং ও বাটন লেআউট ফিক্স (Full Width alignment) */
.single-product form.cart {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important; /* align-items: center সরিয়ে stretch করা হয়েছে যাতে বাটন ১০০% চওড়া হয় */
    width: 100% !important;
}

/* ৩. কোয়ান্টিটি সেকশন শুধুমাত্র সেন্টারে রাখা */
.single-product form.cart .quantity {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin: 15px auto !important;
    float: none !important;
}

.single-product form.cart .quantity input.qty {
    width: 60px !important;
    height: 42px !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 6px !important;
    text-align: center !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    background: #ffffff !important;
    color: #000000 !important;
    margin: 0 !important;
}

/* ৪. Add to Cart ও Buy Now বাটন ১০০% ফুল উইডথ */
.single-product form.cart .single_add_to_cart_button,
.desktop-buy-now-btn {
    width: 100% !important;
    height: 48px !important;
    margin-left: 0 !important; /* ডেক্সটপ এর জন্য আগের দেওয়া margin-left সরিয়ে দেওয়া হলো */
    margin-right: 0 !important;
    border-radius: 8px !important;
    box-sizing: border-box !important;
}

.single-product form.cart .single_add_to_cart_button {
    background-color: #8c3f23 !important; /* বাটন কালার */
    color: #ffffff !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    margin: 10px 0 !important;
    border: none !important;
}

/* ==========================================
   ELEMENT CORRECTIONS & STYLING
   ========================================== */

/* ১. Sale Badge & Breadcrumb Hidden */
.onsale, 
.woocommerce-breadcrumb {
    display: none !important;
}

/* ২. Image-এর নিচে Short Description Styling */
.under-image-short-desc {
    display:none;
}

/* ৩. Rating Stars Golden Color */
.woocommerce-product-rating .star-rating,
.star-rating span::before,
.star-rating::before {
    color: #ffb400 !important;
}

/* ৪. Category & Tag Separate Line Display */
.product_meta .posted_in,
.product_meta .tagged_as {
    display: block !important;
    margin-bottom: 6px !important;
    font-size: 14px !important;
}

/* ৫. Footer / Sidebar Extra Sections Removal (Search, Pages, Archives, Categories) */
.single-product #secondary,
.single-product .widget_search,
.single-product .widget_pages,
.single-product .widget_archive,
.single-product .widget_categories {
    display: none !important;
}

/* ==========================================
   FIX MOBILE REVIEWS TAB ZOOM & OVERFLOW ISSUE
   ========================================== */
@media (max-width: 991px) {

    /* ১. সার্বিক ওভারফ্লো ও উইডথ ফিক্স */
    #reviews,
    #comments,
    .woocommerce-Tabs-panel--reviews,
    .woocommerce-Reviews {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important;
    }

    /* ২. ইনপুট ও ফর্মের কারণে অটো-জুম (Auto-Zoom) বন্ধ করা */
    #review_form input[type="text"],
    #review_form input[type="email"],
    #review_form textarea,
    #review_form select {
        font-size: 16px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* ৩. কমেন্ট/রিভিউ লিস্ট ও টেক্সট রেসপন্সিভ করা */
    .commentlist,
    .commentlist li,
    .commentlist li .comment_container {
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        word-break: break-word !important;
    }

    .comment-text {
        width: 100% !important;
        padding-left: 0 !important;
        float: none !important;
    }

    .comment-avatar {
        float: left !important;
        margin-right: 10px !important;
    }
}

/* ==========================================
   MOBILE RESPONSIVE & STICKY BAR
   ========================================== */
@media (max-width: 991px) {
    body.single-product {
        padding-bottom: 120px !important;
    }

    .desktop-buy-now-btn {
        display: block !important;
        width: 100% !important;
        margin-top: 10px !important;
        padding: 12px 20px !important;
        background-color: #000000 !important;
        color: #ffffff !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        border: none !important;
        border-radius: 6px !important;
        cursor: pointer !important;
        text-align: center !important;
        transition: background-color 0.2s ease !important;
    }

    .desktop-buy-now-btn:hover {
        background-color: #c4135d !important;
    }

    /* Fixed Sticky Container */
    .mobile-sticky-bar {
        display: block !important;
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        width: 100% !important;
        background-color: #ffffff !important;
        box-shadow: 0 -4px 15px rgba(0, 0, 0, 0.15) !important;
        z-index: 999999 !important;
        padding: 10px 12px !important;
        box-sizing: border-box !important;
    }

    .sticky-bar-wrapper {
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    /* Quantity Box */
    .sticky-quantity-selector {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        border: 1px solid #dcdcdc !important;
        border-radius: 6px !important;
        overflow: hidden !important;
        background: #f8f8f8 !important;
        width: 100% !important;
        height: 38px !important;
    }

    .sticky-quantity-selector .qty-btn {
        width: 45px !important;
        height: 100% !important;
        background: #eeeeee !important;
        border: none !important;
        font-size: 20px !important;
        font-weight: bold !important;
        cursor: pointer !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        padding: 0 !important;
        color: #333333 !important;
    }

    .sticky-quantity-selector .qty-input {
        flex: 1 !important;
        height: 100% !important;
        border: none !important;
        text-align: center !important;
        font-size: 16px !important;
        font-weight: 700 !important;
        background: transparent !important;
        padding: 0 !important;
        color: #000000 !important;
        -moz-appearance: textfield !important;
    }

    .sticky-quantity-selector .qty-input::-webkit-outer-spin-button,
    .sticky-quantity-selector .qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none !important;
        margin: 0 !important;
    }

    /* Buttons Layout (50% - 50%) */
    .sticky-action-buttons {
        display: flex !important;
        flex-direction: row !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .sticky-btn {
        flex: 1 !important;
        height: 40px !important;
        border: none !important;
        border-radius: 6px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        cursor: pointer !important;
        text-align: center !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        white-space: nowrap !important;
    }

    .add-to-cart-btn {
        background-color: #7b2210 !important;
        color: #ffffff !important;
    }

    .buy-now-btn {
        background-color: #000000 !important;
        color: #ffffff !important;
    }

    .sticky-btn:disabled {
        opacity: 0.6 !important;
        cursor: not-allowed !important;
    }
}

/* ==========================================
   FIX USER REVIEWS DISPLAY & RESPONSIVENESS
   ========================================== */

/* ১. রিভিউ কনটেইনার ও লিস্ট রিসেট */
#reviews #comments ol.commentlist {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 30px 0 !important;
    width: 100% !important;
}

#reviews #comments ol.commentlist li {
    margin-bottom: 20px !important;
    padding-bottom: 15px !important;
    border-bottom: 1px solid #eeeeee !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* ২. ইউজার প্রোফাইল পিকচার (Avatar) এবং কনটেন্ট পজিশনিং */
#reviews #comments ol.commentlist li .comment_container {
    display: flex !important;
    flex-direction: row !important;
    align-items: flex-start !important;
    gap: 12px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

#reviews #comments ol.commentlist li img.avatar {
    width: 45px !important;
    height: 45px !important;
    border-radius: 50% !important;
    float: none !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
}

/* ৩. রিভিউ টেক্সট, নাম ও স্টার রেটিং লেআউট */
#reviews #comments ol.commentlist li .comment-text {
    flex: 1 !important;
    margin-left: 70px !important;
    padding: 0 !important;
    border: none !important;
    width: auto !important;
    float: none !important;
}

#reviews #comments ol.commentlist li .comment-text .meta {
    font-size: 14px !important;
    color: #333333 !important;
    margin-bottom: 6px !important;
    line-height: 1.4 !important;
}

#reviews #comments ol.commentlist li .comment-text .meta strong {
    color: #000000 !important;
    font-weight: 700 !important;
}

#reviews #comments ol.commentlist li .comment-text .description {
    font-size: 14px !important;
    color: #555555 !important;
    line-height: 1.6 !important;
    word-wrap: break-word !important;
    word-break: break-word !important;
}

/* ৪. রিভিউর স্টার রেটিং এলাইনমেন্ট */
#reviews #comments ol.commentlist li .star-rating {
    float: right !important;
    margin-top: 2px !important;
}

/* ৫. মোবাইল ভিউ এডজাস্টমেন্ট */
@media (max-width: 767px) {
    #reviews #comments ol.commentlist li .comment_container {
        flex-direction: column !important;
        gap: 8px !important;
    }

    #reviews #comments ol.commentlist li .star-rating {
        float: none !important;
        margin-bottom: 5px !important;
    }
}

/* ==========================================
   PERFUME CARD & RELATED PRODUCTS STYLES
   ========================================== */

.custom-related-products-section {
    margin: 50px 0 20px 0;
}

.related-section-title {
    font-size: 24px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 25px;
}

/* Grid Layout: Desktop - 4 Columns */
.custom-related-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* Card Outer Container */
.perfume-card {
    background: #ffffff;
    border: 1px solid #e9e9e9;
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.02);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.perfume-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.06);
}

/* Image Container */
.perfume-card-image {
    width: 100%;
    text-align: center;
    background-color: #ffffff;
    border-radius: 8px;
    margin-bottom: 16px;
    padding: 5px 0;
}

.perfume-card-image img {
    max-height: 100%;
    width: 100%;
    object-fit: contain;
    mix-blend-mode: multiply;
}

/* Content Body */
.perfume-card-body {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

/* Product Title */
.perfume-title {
    font-size: 17px;
    font-weight: 700;
    line-height: 1.35;
    height: 2.7em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0 0 8px 0;
}

.perfume-title a {
    color: #111111;
    text-decoration: none;
}

/* Subtitle / Short Description */
.perfume-subtitle {
    font-size: 13.5px;
    color: #666666;
    margin: 0 0 12px 0;
    line-height: 1.3;
    height: 2.6em;
    overflow: hidden;
}

/* Rating Stars */
.perfume-rating {
    color: #ffb400;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    gap: 3px;
}

/* Price Tag */
.perfume-price {
    font-size: 18px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 16px;
    margin-top: auto;
}

.perfume-price del {
    color: #888888;
    font-size: 14px;
    margin-right: 6px;
    font-weight: 400;
}

.perfume-price ins {
    text-decoration: none;
}

/* Action Buttons Base */
.perfume-action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.btn-cart-light, 
.btn-buy-brown {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 12px;
    font-size: 13.5px;
    font-weight: 600;
    border-radius: 6px;
    text-decoration: none;
    text-align: center;
    transition: background-color 0.2s ease, color 0.2s ease;
    border: none;
    cursor: pointer;
}

/* Add to Cart Light Grey Button */
.btn-cart-light {
    background-color: #ededed;
    color: #2c2c2c;
}

.btn-cart-light:hover {
    background-color: #e0e0e0;
    color: #000000;
}

/* Buy Now Deep Brown Button */
.btn-buy-brown {
    background-color: #8c3f23;
    color: #ffffff;
}

.btn-buy-brown:hover {
    background-color: #70311a;
    color: #ffffff;
}

/* Responsive Media Queries */
@media (max-width: 992px) {
    .custom-related-product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .custom-related-product-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .perfume-card {
        padding: 10px;
    }

    .perfume-card-image img {
        max-height: 100%;
         width: 100%;
    }

    .perfume-title {
        font-size: 15px;
    }

    .perfume-subtitle {
        display:none;
    }

    .perfume-price {
        font-size: 16px;
    }

    .perfume-action-buttons {
        grid-template-columns: 1fr; 
        gap: 8px;
    }

    .btn-cart-light, 
    .btn-buy-brown {
        width: 100%;
        padding: 6px 3px;
        font-size: 13px;
    }
}





















