/* ==========================================================
   ✅ TWO COLUMN PRODUCT LAYOUT (MAIN FIX)
========================================================== */
.mj-single-wrapper {
    display: flex;
    gap: 30px;
    width: 90%;
    padding-top: 80px;
    margin: auto;
}

.mj-left-area {
    flex: 1 1 50%;
    /* position: sticky; */
    top: 100px; /* adjust according to your header height */
    align-self: start;
}
.mj-right-area {
    flex: 1 1 50%;
}

.mj-summary-inner {
    display: flex;
    flex-direction: column;
}

.mj-add-to-cart-wrapper {
    position: sticky;
    bottom: 0px;
    background: #fff;
    padding: 20px 0;
    z-index: 10;
}

/* ==========================================================
   ✅ LEFT FNP GALLERY
========================================================== */
.mj-gallery-wrapper {
    display: grid;
    grid-template-columns: 110px 1fr;
    gap: 20px;
}

.mj-vertical-thumbs {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 540px;
    overflow-y: auto;
    padding-right: 4px;
}

.mj-thumb-item img {
    width: 100%;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: .2s ease;
}

.mj-thumb-item.active img {
    border-color: #cda649;
 
}

.mj-big-image-box {
 

}

.mj-main-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}


/* ==========================================================
   ✅ FREE DELIVERY BADGE
========================================================== */
.mj-free-delivery-badge {
    margin-top: 10px;
    background: #b6e6b5;
    border-radius: 3px;
    border: 1px solid #b6e6b5;
    font-weight: 600;
    display: inline-flex;
    gap: 6px;
    margin-bottom: 12px;
    width: 22%;
    font-size: 11px;
    padding: 0 0px 0px 18px;
    align-items: center;
}
.mj-free-delivery-badge span {
    font-size: 21px;
}


/* ==========================================================
   ✅ PRICE ROW + % OFF + TOOLTIP
========================================================== */
.mj-price-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 12px;
}

.mj-sale {
    font-size: 26px;
    font-weight: 700;
}

.mj-regular {
    text-decoration: line-through;
    color: #777;
}

.mj-off-pill {
    background: #d32f2f;
    color: #fff;
    padding: 4px 10px;
    border-radius: 5px;
    font-weight: 600;
}



.mj-tooltip {
    background: #333;
    color: #fff;
    padding: 10px;
    border-radius: 6px;
    position: absolute;
    left: 120%;
    top: 50%;
    transform: translateY(-50%);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: .2s ease;
}

.mj-info-icon:hover .mj-tooltip {
    opacity: 1;
    visibility: visible;
}


/* ==========================================================
   ✅ OFFERS AVAILABLE - 4 FEATURE BOXES
========================================================== */
.mj-sec-title {
    font-size: 22px;
    font-weight: 700;
    margin: 0;
        border-top: 2px solid #0000002b;
        padding-top: 10px;
}
h2.mj-tabs-heading {
    border-top: 2px solid #0000002b;
    padding-top: 10px;
}


.mj-feature-box-wrap {
    display: grid;
    gap: 14px;
    margin-bottom: 25px;
        margin-top: 21px;
        width: 50%;
    
}

.mj-fbox{background: #000;
    padding: 5px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #fff;
}

.mj-fbox img {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mj-fbox span {
    font-size: 12px;
    font-weight: 600;
}



.mj-add-to-cart-wrapper .variations {
    display: none;
}
.mj-add-to-cart-wrapper .quantity {
    display: none;
}


/* Hide original dropdown */
.variations select {
    display: none !important;
}

/* Wrap for boxes */
.variation-box-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 8px;
}

/* Box style */
.variation-box {
    padding: 10px 16px;
    cursor: pointer;
    background: #ffffff;
    font-size: 14px;
    font-weight: 600;
    min-width: 55px;
    text-align: center;
    transition: all 0.2s ease;
    user-select: none;
}

/* Selected box */
.variation-box.active {
    background: #c36 ;
    color: #fff;
   
}

/* Hover effect desktop only */
@media (hover: hover) {
    .variation-box:hover {
        border-color: #000;
    }
}

/* ---------- Responsive ---------- */

/* Tablets (768px – 991px) */
@media (max-width: 991px) {
    .variation-box {
        padding: 9px 14px;
        font-size: 14px;
        min-width: 48px;
    }
}

/* Large Mobile (480px – 767px) */
@media (max-width: 767px) {
    .variation-box-wrapper {
        gap: 8px;
    }

    .variation-box {
        padding: 8px 12px;
        font-size: 13px;
        min-width: 42px;
        border-radius: 6px;
    }
}

/* Small Mobile (up to 479px) */
@media (max-width: 479px) {
    .variation-box-wrapper {
        gap: 6px;
    }

    .variation-box {
        padding: 6px 10px;
        font-size: 12px;
        min-width: 40px;
        border-radius: 5px;
    }
}

/* Very small (Galaxy Fold / iPhone Mini etc.) */
@media (max-width: 360px) {
    .variation-box {
        min-width: 38px;
        padding: 6px 8px;
    }
}


.mj-summary-inner ul.tabs.wc-tabs {
    display: flex;
    list-style: none;
    gap: 26px;
    padding: 0;
}

.mj-summary-inner ul.tabs li {
    padding: 10px;
    background: #000;
}
.mj-summary-inner ul.tabs li a {
    color: #fff;
    font-size: 14px;
}

.mj-summary-inner th.label {
    background: #fff !important;
    border: none;
    padding: 0;
}
.mj-summary-inner td.value {
    border: none;
    background: #fff;
}

form.variations_form.cart {
    padding-top: 40px;
}

.mj-summary-inner .product_title {
    font-size: 18px;
    font-weight: bold;
    line-height: 1.5;
}

.woocommerce-Tabs-panel h2 {
    display: none;
}

.mj-off-percent {

    background: #ff3b30;
    color: #fff;
    padding: 6px 12px;
    font-size: 16px;
    border-radius: 6px;
    font-weight: 700;
}
span.mj-off {
    margin-left: 8px;
    padding: 5px 14px;
    font-size: 12px;
    font-weight: 800;
    color: #000;
    line-height: 1.2;
    background: linear-gradient(90deg, #fff9d6 0%, #ffeb3b 100%);
    clip-path: polygon(0 0, 100% 0, 86% 100%, 0% 100%);
    overflow: hidden;
}


/* related slider css */
.mj-related-wrap {
    width: 81%;
    margin: auto;
    margin-top: 100px;
    margin-bottom: 50px;
}


/* Swiper arrows */
.mj-related-next,.mj-related-prev {
    color: #000 !important;
   
}

/* Wrap FIX */
.quantity {
    display: inline-flex !important;
    align-items: center;
    gap: 0;
}

/* +/- Buttons */
.mj-qty-btn {
    width: 34px;
    height: 38px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    font-size: 20px;
    cursor: pointer;
    line-height: 36px;
    text-align: center;
    padding: 0;
}

/* Left button rounded */
.mj-qty-minus {
    border-radius: 6px 0 0 6px;
}

/* Right button rounded */
.mj-qty-plus {
    border-radius: 0 6px 6px 0;
}

/* Quantity Input */
input.qty {
    width: 50px !important;
    height: 38px;
    text-align: center;
    border: 1px solid #ccc !important;
    border-left: 0 !important;
    border-right: 0 !important;
    font-size: 16px;
    padding: 0 !important;
    margin: 0 !important;
}


.quantity {
    display: none !important;
}

.wp-singular button.single_add_to_cart_button.button.alt {
    background: #c36 !important;
    width: 50%;
        padding: 15px;
}
a.button.buy-now-button {
    width: 49%;
    background: #000;
    color: #fff;
    text-align: center;
        padding: 15px;
}
a.button.buy-now-button:hover {
    background: #E2709B;
    color:#fff;
}

/* Wrapper */
.variation-box-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
}

/* Box */
.variation-box {
    width: 50px;
    height: 50px;
    border: 2px solid #ccc;
    background: #f5f5f5;
    cursor: pointer;
    position: relative;
    padding: 6px 4px;
    text-align: center;
    border-radius: 4px;
    transition: 0.2s;
}

.variation-box .sz-main {
    font-weight: 600;
    font-size: 14px;
    display: block;
    margin-bottom: 2px;
}

/* Slash only on out-of-stock */
.variation-box.disabled .slash-line {
    width: 100%;
    height: 2px;
    background: #666;
    position: absolute;
    top: 50%;
    left: 0;
    transform: rotate(-35deg);
}

/* Extra text */
.variation-box .sz-extra {
    font-size: 10px;
    position: absolute;
    bottom: 4px;
    left: 0;
    width: 100%;
}


/* Disabled */
.variation-box.disabled {
    opacity: 0.4;
    cursor: not-allowed;
}



/* size chart css */

.mj-size-chart-btn:focus {
 background: none;
 color: #000;
 text-decoration: underline;

}

.mj-size-chart-btn {
    margin-left: 15px;
    font-size: 14px;
    padding: 6px 12px;
    /* background: #000; */
    color: #000;
    /* border-radius: 4px; */
    cursor: pointer;
    border: none;
    text-decoration: underline;
}
.mj-size-chart-btn:hover {
background:none;
border: none;
font-size: 14px;
color: #000;
text-decoration: underline;


}
.mj-size-popup-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9998;
}

.mj-size-popup {
    display: none;
    width: 90%;
    max-width: 450px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
}

.mj-close-popup {
    position: absolute;
    right: 15px;
    top: 8px;
    font-size: 22px;
    cursor: pointer;
}

.mj-size-chart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.mj-size-chart-table th,
.mj-size-chart-table td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: center;
}

.mj-size-chart-table tr:hover {
    background: #fafafa;
}

.mj-size-popup-add-btn {
    width: 100%;
    padding: 12px;
    background: #000;
    color: #fff;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    font-size: 16px;
}








/* SIZE label + Size Chart button row */
.mj-size-label-row {
    display: flex;
    justify-content: space-between;  /* Push button fully right */
    align-items: center;
    width: 100%;
    margin-bottom: 5px;
}

/* Size label text */
.mj-size-label-text {
    font-weight: 600;
    font-size: 14px;
}




/* Force WooCommerce TH to stretch so our flex works */
.variations th.label {
    width: 100%;
    display: block !important;
}

.variations label {
    display: none !important;
}
.mj-size-full-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

body.mj-no-scroll {
    overflow: hidden !important;
    height: 100vh;
}
button.mj-size-chart-btn i {
    padding-right: 10px;
}