/**
 * Mesa Single Product Page Styles
 *
 * Extracted from style.css + new styles for product page overhaul.
 * Enqueued conditionally on is_singular('product').
 *
 * Sections:
 *  1. Reset & Container
 *  2. Hero / Above the Fold
 *  3. Gallery
 *  4. Breadcrumbs
 *  5. Buybox Elements
 *  6. Sale Price & Savings Badge
 *  7. Stock & Delivery Countdown
 *  8. Warranty & Importer
 *  9. Credibility / Trust Icons
 * 10. Add to Cart
 * 11. Tabs Section
 * 12. Sticky Tab Navigation
 * 13. Specs Table
 * 14. Cross-Sells / Related Products (Option Cards)
 * 15. Mobile Sticky Cart
 * 16. Simple Product Layout
 * 17. What’s in the Box
 * 18. Responsive Breakpoints
 *
 * @package Mesa
 * @since 1.3.0
 */

/* ===========================================
   0. KADENCE OVERRIDE — Prevent parent theme
      dynamic CSS from painting .site wrapper
      and body background on product pages.
   =========================================== */
body.single-product {
    background: transparent !important;
}
body.single-product .site,
body.single-product #page {
    background: transparent !important;
}

/* ===========================================
   1. RESET & CONTAINER
   =========================================== */

/* Fix sticky gallery — overflow:hidden on any ancestor breaks position:sticky.
   Override the full ancestor chain so the gallery can stick to the viewport. */
body.single-product,
body.single-product #wrapper,
body.single-product #inner-wrap {
    overflow: visible !important;
}

.mesa-product-page,
.mesa-product-page * {
    box-sizing: border-box;
}

.mesa-product-page {
    background-color: #ffffff;
    width: 100%;
}

/* Container: uses global .mesa-container from style.css */

/* ===========================================
   2. HERO / ABOVE THE FOLD
   =========================================== */
.mesa-product-hero {
    padding: 20px 0 40px !important;
}

.mesa-product-hero .mesa-product-grid {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 30px !important;
    align-items: start;
    direction: rtl;
}

/* ===========================================
   3. GALLERY
   =========================================== */
.mesa-product-gallery {
    direction: ltr;
    position: sticky;
    top: 24px;
    align-self: start;
}

/* Hide WooCommerce's default gallery if it still renders */
.mesa-product-gallery .woocommerce-product-gallery {
    display: none !important;
}

/* --- Custom Mesa Gallery --- */
.mesa-gallery {
    /* Let browser know we handle horizontal gestures, allow vertical scroll */
    touch-action: pan-y pinch-zoom;
}

.mesa-gallery__main {
    /* Grid stacks all images on top of each other in a single cell */
    display: grid;
    width: 100%;
    max-width: 600px;
    height: 600px;
    margin: 0 auto;
    background: #fff;
}

.mesa-gallery__img {
    grid-area: 1 / 1;
    width: 100%;
    height: auto;
    max-height: 600px;
    object-fit: contain;
    border-radius: 10px;
    display: block;
    opacity: 0;
    transition: opacity 0.35s ease-in-out;
    pointer-events: none;
    will-change: opacity;
}

.mesa-gallery__img--active {
    opacity: 1;
    pointer-events: auto;
}

/* Thumbnails row */
.mesa-gallery__thumbs {
    display: flex;
    flex-direction: row-reverse;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 10px;
}

.mesa-gallery__thumb {
    width: 90px;
    height: 90px;
    padding: 0;
    margin: 0;
    background: none;
    border: 2px solid transparent;
    border-radius: 8px;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s ease;
}

.mesa-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mesa-gallery__thumb--active {
    border-color: #08050C;
}

.mesa-gallery__thumb:hover {
    border-color: var(--mesa-lime, #CEFE65);
}

/* ===========================================
   4. BREADCRUMBS
   =========================================== */
.mesa-breadcrumbs {
    direction: rtl;
    text-align: right;
    margin-top: 20px;
    margin-bottom: 40px !important;
}

.mesa-breadcrumb-list,
.mesa-breadcrumbs ol,
.mesa-breadcrumbs ul,
.woocommerce-breadcrumb {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 400;
    line-height: 1.4;
    color: #08050C;
    text-align: right;
}

.mesa-breadcrumb-list li,
.woocommerce-breadcrumb span {
    display: inline-flex !important;
    align-items: center;
}

.mesa-breadcrumb-list a,
.woocommerce-breadcrumb a {
    color: #08050C;
    text-decoration: none;
}

.mesa-breadcrumb-list a:hover,
.woocommerce-breadcrumb a:hover {
    color: var(--mesa-lime, #CEFE65);
}

.mesa-breadcrumb-sep {
    display: inline-flex;
    align-items: center;
    margin: 0 2px;
}

.mesa-breadcrumb-sep svg {
    display: block;
}

/* ===========================================
   5. BUYBOX ELEMENTS
   =========================================== */
.mesa-product-buybox {
    direction: rtl;
    display: flex;
    flex-direction: column;
    gap: 0 !important;
}

/* Product Title */
.mesa-product-title {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 2.625rem !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
    margin: 0 !important;
    padding: 0 !important;
    color: #08050C;
    text-align: right;
}

/* Brand */
.mesa-product-brand {
    display: inline !important;
    margin: 0 !important;
}

.mesa-brand-link {
    font-size: 0.8125rem;
    color: #666;
    text-decoration: none;
}

.mesa-brand-link:hover {
    color: #CEFE65;
}

/* SKU / EAN */
.mesa-product-sku {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 400;
    line-height: 1.4;
    color: #08050C !important;
    margin: 20px 0 0 0 !important;
    display: inline-block !important;
}

.mesa-sku-label {
    font-weight: 400;
}

.mesa-sku-value {
    font-size: 0.9375rem;
}

/* Stock Badge */
.mesa-stock-badge {
    display: inline-block !important;
    width: auto !important;
    padding: 3px 10px !important;
    border-radius: 20px;
    font-size: 0.6875rem !important;
    font-weight: 600;
    margin: 0 0 8px 0 !important;
    vertical-align: middle;
}

.mesa-stock-badge--instock {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.mesa-stock-badge--instock::before {
    content: "\2713 ";
    font-weight: bold;
}

.mesa-stock-badge--backorder {
    background-color: #fff3cd;
    color: #856404;
    border: 1px solid #ffeeba;
}

.mesa-stock-badge--backorder::before {
    content: "\23F1 ";
}

.mesa-stock-badge--outofstock {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.mesa-stock-badge--outofstock::before {
    content: "\2715 ";
}

/* ===========================================
   6. SALE PRICE & SAVINGS BADGE
   =========================================== */
.mesa-product-price {
    margin: 40px 0 0 0 !important;
}

.mesa-product-price .price,
.mesa-product-price .woocommerce-Price-amount,
.mesa-product-price > span {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 2rem !important;
    font-weight: 600 !important;
    color: #08050C !important;
    line-height: 1.4 !important;
}

.mesa-product-price .price del,
.mesa-product-price del .woocommerce-Price-amount {
    font-size: 0.9375rem !important;
    color: #767676 !important;
    font-weight: 400 !important;
    margin-left: 6px;
}

.mesa-product-price .price ins,
.mesa-product-price ins .woocommerce-Price-amount {
    text-decoration: none !important;
    color: #c9302c !important;
}

/* Custom sale price block */
.mesa-price-custom {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 16px;
    margin: 0 0 8px 0;
}

.mesa-product-price .mesa-price-custom__regular .woocommerce-Price-amount {
    color: rgba(8, 5, 12, 0.6) !important;
    font-family: var(--font-hebrew) !important;
    font-size: 24px !important;
    line-height: 140% !important;
    text-decoration-line: line-through;
}

.mesa-product-price .mesa-price-custom__sale .woocommerce-Price-amount {
    font-family: var(--font-hebrew) !important;
    font-size: 32px !important;
    line-height: 140% !important;
}

.mesa-price-custom__normal {
    font-family: 'Open Sans', sans-serif !important;
    font-size: 2rem;
    font-weight: 600;
    color: #08050C;
    line-height: 1.4;
}

/* ===========================================
   7. STOCK & DELIVERY COUNTDOWN
   =========================================== */
.mesa-stock-delivery {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.9375rem;
    color: #08050C;
    margin: 40px 0 0 0;
    line-height: 1.4;
}

.mesa-stock-delivery__icon {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 4px;
}

.mesa-stock-delivery__label {
    font-weight: 700;
}

.mesa-stock-delivery__date {
    font-weight: 400;
}

.mesa-stock-delivery__countdown {
    font-weight: 400;
}

.mesa-stock-delivery__countdown.is-hidden {
    display: none;
}

.mesa-stock-delivery--outofstock .mesa-stock-delivery__label {
    color: #F97316;
}

/* ===========================================
   8. WARRANTY & IMPORTER
   =========================================== */
/* Combined Trust Row (warranty + trust merged) */
.mesa-combined-trust {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 16px;
    margin: 16px 0 0 0;
    padding: 12px 0;
    border-top: 1px solid #f0f0f0;
}

.mesa-combined-trust__item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #333;
    white-space: nowrap;
    position: relative;
}

.mesa-combined-trust__item > svg,
.mesa-combined-trust__item > img {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
}

.mesa-combined-trust__info {
    background: none;
    border: 1.5px solid #d0d0d0;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    padding: 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: border-color 0.25s ease, background-color 0.25s ease;
}

.mesa-combined-trust__info:hover {
    border-color: #999;
    background-color: #f5f5f5;
}

.mesa-combined-trust__info svg {
    width: 12px;
    height: 12px;
}

/* Tooltip */
.mesa-combined-trust__item .mesa-tooltip {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 10;
    background-color: #1a1a2e;
    color: #f0f0f0;
    font-size: 0.8125rem;
    font-weight: 400;
    padding: 12px 16px;
    border-radius: 8px;
    line-height: 1.6;
    max-width: 280px;
    min-width: 200px;
    white-space: normal;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    /* Fade animation */
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
}

/* Tooltip arrow */
.mesa-combined-trust__item .mesa-tooltip::before {
    content: '';
    position: absolute;
    bottom: 100%;
    right: 14px;
    border: 6px solid transparent;
    border-bottom-color: #1a1a2e;
}

/* Tooltip visible state */
.mesa-combined-trust__item .mesa-tooltip.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
    pointer-events: auto;
}

/* ===========================================
   9. CREDIBILITY / TRUST ICONS
   =========================================== */
/* Trust icons are now part of .mesa-combined-trust row */

/* ===========================================
   10. ADD TO CART
   =========================================== */
.mesa-product-add-to-cart {
    margin: 16px 0 0 0 !important;
}

.mesa-product-add-to-cart .cart,
.mesa-product-add-to-cart form.cart {
    display: flex !important;
    flex-direction: row-reverse !important;
    align-items: center;
    gap: 12px !important;
    margin: 0 !important;
}

.mesa-product-add-to-cart .quantity {
    width: 80px !important;
    /*min-width: 72px;*/
    flex-shrink: 0;
}

.mesa-product-add-to-cart .quantity .qty {
    width: 100% !important;
    height: 52px !important;
    padding: 14px 8px !important;
    border: none;
    border-radius: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    line-height: 21px;
    background-color: #F5F5F5;
    box-sizing: border-box;
}

.mesa-product-add-to-cart .single_add_to_cart_button,
.mesa-product-add-to-cart button[type="submit"] {
    flex: 1;
    height: 52px;
    padding: 0 32px !important;
    background-color: #CEFE65 !important;
    color: #08050C !important;
    border: none !important;
    border-radius: 0;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 18px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mesa-product-add-to-cart .single_add_to_cart_button:hover,
.mesa-product-add-to-cart button[type="submit"]:hover {
    background-color: #08050C !important;
    color: #CEFE65 !important;
}

.mesa-product-add-to-cart .single_add_to_cart_button.disabled,
.mesa-product-add-to-cart .single_add_to_cart_button:disabled {
    background-color: #C8C8C8 !important;
    color: #767676 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

/* Short Description */
.mesa-product-short-desc,
.mesa-product-buybox .woocommerce-product-details__short-description,
.woocommerce-product-details__short-description {
    margin: 40px 0 0 0 !important;
    padding: 0 !important;
    font-family: 'Open Sans', sans-serif !important;
    font-size: 0.9375rem !important;
    font-weight: 400;
    font-style: normal;
    line-height: 140% !important;
    letter-spacing: 0 !important;
    text-align: right !important;
    color: #000000 !important;
}

.mesa-product-short-desc *,
.woocommerce-product-details__short-description * {
    font-family: 'Open Sans', sans-serif !important;
}

.mesa-product-short-desc p,
.woocommerce-product-details__short-description p {
    margin: 0 0 6px 0 !important;
    color: #000000 !important;
    font-size: 0.9375rem !important;
}

.mesa-product-short-desc ul,
.mesa-product-short-desc ol,
.woocommerce-product-details__short-description ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
}

.mesa-product-short-desc li,
.woocommerce-product-details__short-description li {
    position: relative;
    padding-right: 24px !important;
    margin-bottom: 4px !important;
    font-size: 0.9375rem !important;
    color: #000000 !important;
    line-height: 1.4 !important;
}

.mesa-product-short-desc li::before,
.woocommerce-product-details__short-description li::before {
    content: "";
    position: absolute;
    right: 0;
    top: 3px;
    width: 15px;
    height: 15px;
    background-image: url('/wp-content/uploads/mesa-icons/icon-check.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

/* Compatibility Snippet */
.mesa-product-compat-snippet {
    padding: 8px 10px !important;
    background-color: #f8f8f8;
    border-radius: 4px;
    margin: 0 0 8px 0 !important;
    font-size: 0.75rem !important;
    border-left: 3px solid #CEFE65;
}

.mesa-compat-label {
    font-weight: 600;
    color: #08050C;
}

.mesa-compat-list {
    color: #555;
}

.mesa-compat-more {
    display: inline;
    margin-right: 5px;
    color: #08050C;
    text-decoration: underline;
    font-weight: 500;
    font-size: 0.75rem;
}

.mesa-compat-more:hover {
    color: #CEFE65;
}

/* ===========================================
   11. SECTION NAVIGATION & STACKED SECTIONS
   =========================================== */
.mesa-product-tabs-section {
    padding: 60px 0 40px;
    background-color: #ffffff;
    border-top: 1px solid #eee;
}

/* --- Nav bar --- */
.mesa-tabs {
    width: 100%;
}

.mesa-tabs__nav {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: center !important;
    gap: 0 !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 40px 0 !important;
    border-bottom: none;
    overflow-x: auto;
    position: relative;
    /* Hide scrollbar but keep scroll */
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.mesa-tabs__nav::-webkit-scrollbar {
    display: none;
}

.mesa-tabs__nav-item {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none !important;
    flex-shrink: 0;
}

.mesa-tabs__tab {
    display: inline-block !important;
    padding: 15px 30px !important;
    background: none !important;
    border: none !important;
    border-bottom: 3px solid transparent !important;
    margin-bottom: -2px;
    font-family: 'Open Sans', sans-serif;
    font-size: 1.25rem;
    font-weight: 400;
    font-style: italic;
    line-height: 100%;
    letter-spacing: 0;
    text-align: center;
    color: #767676;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none !important;
    transition: color 0.25s ease;
}

.mesa-tabs__tab:hover {
    color: #08050C;
}

.mesa-tabs__tab--active {
    color: #08050C !important;
    border-bottom-color: transparent !important;
}

.mesa-tabs__tab::after {
    content: none !important;
    display: none !important;
}

/* --- Sliding indicator (positioned by JS) --- */
.mesa-tabs__indicator {
    position: absolute !important;
    bottom: 0;
    left: 0;
    height: 3px;
    background-color: #CEFE65;
    border-radius: 3px 3px 0 0;
    pointer-events: none;
    list-style: none !important;
    margin: 0 !important;
    padding: 0 !important;
    /* Initial transition is set by JS, but provide a sensible default */
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
                width 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform, width;
}

/* --- Stacked Sections --- */
.mesa-sections {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.mesa-section {
    padding: 48px 0;
    border-bottom: 1px solid #f0f0f0;
    /* Reveal animation — start state */
    opacity: 0;
    transform: translateY(32px);
    transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.mesa-section:last-child {
    border-bottom: none;
}

/* Visible state (added by IntersectionObserver) */
.mesa-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Section titles */
.mesa-section__title {
    font-size: 1.375rem !important;
    font-weight: 700 !important;
    color: #08050C;
    margin: 0 0 24px 0 !important;
    padding: 0 !important;
    position: relative;
    padding-right: 16px !important;
}

.mesa-section__title::before {
    content: '';
    position: absolute;
    right: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    background-color: #CEFE65;
    border-radius: 2px;
}

/* Section content */
.mesa-section__content,
.mesa-section__content *,
.mesa-tab-content,
.mesa-tab-content * {
    font-family: 'Open Sans', sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    font-size: 1rem !important;
    line-height: 140% !important;
    letter-spacing: 0 !important;
    text-align: right !important;
}

.mesa-section__content h3 {
    font-size: 1.25rem;
    margin: 30px 0 15px;
    color: #08050C;
}

.mesa-section__content h3:first-child {
    margin-top: 0;
}

.mesa-section__content ul,
.mesa-section__content ol {
    margin: 0 0 15px 0;
    padding-right: 20px;
}

.mesa-section__content li {
    margin-bottom: 8px;
}

/* Description section prose */
.mesa-tab-content--desc img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

/* Stagger reveal: each subsequent section delays slightly */
.mesa-section:nth-child(2) { transition-delay: 0.05s; }
.mesa-section:nth-child(3) { transition-delay: 0.1s; }
.mesa-section:nth-child(4) { transition-delay: 0.15s; }
.mesa-section:nth-child(5) { transition-delay: 0.2s; }

/* ===========================================
   12. STICKY SECTION NAVIGATION
   =========================================== */
.mesa-tabs-sticky-wrapper {
    position: relative;
    z-index: 50;
}

.mesa-tabs-sticky-wrapper.is-stuck .mesa-tabs {
    position: fixed;
    top: var(--mesa-sticky-offset, 0px);
    left: 0;
    right: 0;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    z-index: 50;
    padding: 0 20px;
}

.mesa-tabs-sticky-wrapper.is-stuck .mesa-tabs .mesa-tabs__nav {
    max-width: 1200px;
    margin: 0 auto !important;
}

.mesa-tabs-sticky-placeholder {
    display: none;
}

.mesa-tabs-sticky-wrapper.is-stuck + .mesa-tabs-sticky-placeholder {
    display: block;
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    .mesa-section {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .mesa-tabs__indicator {
        transition: none;
    }
    .mesa-gallery__img {
        transition: none;
    }
}

/* ===========================================
   13. SPECS TABLE
   =========================================== */
.mesa-section__content table,
.mesa-tab-content--specs table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.mesa-section__content table th,
.mesa-section__content table td,
.mesa-tab-content--specs th,
.mesa-tab-content--specs td {
    padding: 12px 15px;
    border: 1px solid #eee;
    text-align: right;
    vertical-align: top;
}

.mesa-section__content table th,
.mesa-tab-content--specs th {
    background-color: #F1F1F1;
    font-weight: 600;
    width: 35%;
    color: #08050C;
}

.mesa-section__content table td,
.mesa-tab-content--specs td {
    width: 65%;
    color: #444;
}

.mesa-section__content table tr:hover td,
.mesa-tab-content--specs tr:hover td {
    background-color: rgba(206, 254, 101, 0.1);
}

/* ===========================================
   14. OTHER OPTIONS (Horizontal Cards in Buybox)
   =========================================== */
.mesa-other-options {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #f0f0f0;
}

.mesa-other-options__title {
    font-size: 1rem;
    font-weight: 600;
    color: #08050C;
    margin: 0 0 12px 0;
}

.mesa-other-options__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.mesa-other-option {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    border: 1px solid #F5F5F5;
    border-radius: 0;
    text-decoration: none;
    color: inherit;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mesa-other-option:hover {
    border-color: #CEFE65;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.mesa-other-option__image {
    width: 100px;
    height: 100px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background-color: #f9f9f9;
}

.mesa-other-option__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.mesa-other-option__info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
}

.mesa-other-option__name {
    font-size: 1.125rem;
    font-weight: 600;
    color: #08050C;
    line-height: 1.3;
}

.mesa-other-option__price {
    font-size: 1.125rem;
    font-weight: 700;
    color: #08050C;
}

.mesa-other-option__price del {
    font-size: 0.875rem;
    color: #767676;
    margin-left: 4px;
    font-weight: 400;
}

.mesa-other-option__price ins {
    text-decoration: none;
    color: #c9302c;
}

.mesa-other-option__stock {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.8125rem;
    color: #555;
    margin-top: 4px;
}

.mesa-other-option__stock svg {
    flex-shrink: 0;
}


/* ===========================================
   14b. BUYBOX TRUST ICONS ROW
   =========================================== */
.mesa-buybox-trust {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #f0f0f0;
}

.mesa-buybox-trust__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 1;
    text-align: center;
    border-left: 1px solid #f0f0f0;
    padding: 0 8px;
}

.mesa-buybox-trust__item:first-child {
    border-left: none;
}

.mesa-buybox-trust__icon {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

.mesa-buybox-trust__label {
    font-family: 'Open Sans', sans-serif;
    font-size: 0.8125rem;
    font-weight: 400;
    color: #333;
    line-height: 1.3;
}

/* ===========================================
   15. MOBILE STICKY CART
   =========================================== */
.mesa-sticky-cart {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background-color: #ffffff;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    padding: 15px 20px;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    display: none;
}

.mesa-sticky-cart.is-visible {
    transform: translateY(0);
}

.mesa-sticky-cart__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    max-width: 1200px;
    margin: 0 auto;
}

.mesa-sticky-cart__price {
    font-size: 1.125rem;
    font-weight: 700;
}

.mesa-sticky-cart__btn {
    height: 52px;
    padding: 0 32px;
    background-color: #CEFE65;
    color: #08050C;
    border: none !important;
    border-radius: 0;
    font-size: 18px !important;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mesa-sticky-cart__btn:hover {
    background-color: #08050C;
    color: #CEFE65;
}

.mesa-sticky-cart__btn:disabled,
.mesa-sticky-cart__btn.disabled {
    background-color: #C8C8C8 !important;
    color: #767676 !important;
    cursor: not-allowed !important;
    pointer-events: none;
}

.mesa-sticky-cart__error {
    width: 100%;
    padding: 4px 0 0;
    font-size: 0.8125em;
    color: #FF1E00;
    text-align: center;
}

/* ===========================================
   16. SIMPLE PRODUCT LAYOUT
   =========================================== */
.mesa-product-layout-simple .mesa-product-sku {
    display: none !important;
}

.mesa-product-simple-desc {
    padding: 40px 0;
    line-height: 1.8;
    font-size: 0.9375rem;
    color: #333;
}

.mesa-product-simple-desc img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 15px 0;
}

.mesa-gallery-ean {
    font-size: 0.75rem;
    color: #767676;
    margin-top: 8px;
    direction: ltr;
    text-align: left;
}

.mesa-gallery-ean .mesa-sku-label {
    font-weight: 500;
}

.mesa-gallery-ean .mesa-sku-value {
    font-family: monospace;
    font-size: 0.6875rem;
}
/* ===========================================
   17. What’s in the Box
   =========================================== */


.products-section {
  padding: 0 0 40px;
}

.mesa-whats-in-box-section .container {
  width: 100%;
  margin: 0 auto;
  margin-inline: auto;
}

.mesa-whats-in-box-section .products-title {
  margin: 0 0 40px;

  text-align: right;
  direction: rtl;

  color: #000;
  text-align: right;
  font-family: "Open Sans";
  font-size: 52px;
  font-style: italic;
  font-weight: 700;
  line-height: 0.9;
}

.mesa-whats-in-box-section .products-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.mesa-whats-in-box-section .product-card {
  border: 1px solid #F5F5F5;
  background: #FFF;
}

.mesa-whats-in-box-section .product-card__link {
  display: flex;
  flex-direction: column;

  height: 100%;

  text-decoration: none;
  color: inherit;
}

.mesa-whats-in-box-section .product-card__image {
  height: 260px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: #FBFAFA;
}

.mesa-whats-in-box-section .product-card__image img {
  width: auto;
  max-width: 100%;
  height: 100%;
  /* aspect-ratio: 1 / 1; */
  object-fit: cover;
}

.mesa-whats-in-box-section .product-card__content {
  display: flex;
  flex-direction: column;
  flex: 1;

  padding: 20px;

  background: #fff;
}

.mesa-whats-in-box-section .product-card__brand {
  margin-bottom: 8px;

  text-align: right;

  color: #000;
  text-align: right;
  font-family: "Open Sans";
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
}

.mesa-whats-in-box-section .product-card__name {
  margin: 0;
  margin-bottom: 15px;

  min-height: 74px;

  text-align: right;

  color: #000;
  text-align: right;
  font-family: "Open Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%;
}

.mesa-whats-in-box-section .product-card__price {
  margin-top: auto;

  text-align: right;
  direction: rtl;

  color: #08050C;
  text-align: right;
  font-family: "Open Sans";
  font-size: 18px;
  font-style: normal;
  font-weight: 600;
  line-height: 140%; /* 25.2px */
}

@media (max-width: 1200px) {
  .mesa-whats-in-box-section .products-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {

  .mesa-whats-in-box-section .products-title {
    font-size: 32px;
  }

  .mesa-whats-in-box-section .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .mesa-whats-in-box-section .product-card__image {
    height: 163px;
  }

  .mesa-whats-in-box-section .product-card__image img {
    width: 100%;
    height: 100%;
  }

  .mesa-whats-in-box-section .product-card__content {
    padding: 12px;
  }

  .mesa-whats-in-box-section .product-card__brand {
    font-size: 12px;
    line-height: 140%;
  }

  .mesa-whats-in-box-section .product-card__name {
    min-height: 44px;

    font-size: 16px;
    line-height: 140%;
  }

  .mesa-whats-in-box-section .product-card__price {
    font-size: 18px;
    line-height: 140%;
  }
}

@media (max-width: 480px) {
  .mesa-whats-in-box-section .products-grid {
    gap: 12px;
  }
}

@media (max-width: 320px) {
  .mesa-whats-in-box-section .products-grid {
    grid-template-columns: 1fr;
  }
}

/* ==============================================
   17b. Box Items Grid — structured "מה בקופסה" tab
   ============================================== */

.mesa-box-items-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 18px;
  align-items: stretch;
  direction: rtl;
}

.mesa-box-item {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.mesa-box-item__image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #FBFAFA;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 17px;
  overflow: hidden;
}

.mesa-box-item__image-wrap img {
  width: 100%;
  height: 100% !important;
  background-color: #FBFAFA;
  object-fit: contain;
}

.mesa-box-item__no-image {
  width: 100%;
  height: 100%;
  background-color: #FBFAFA;
}

.mesa-box-item__info {
  display: flex;
  flex-direction: column;
  color: #000000;
  border: 1px solid #F5F5F5;
  border-top: none;
  padding: 16px;
  flex-grow: 1;
}

.mesa-box-item__info .mesa-box-item__name {
  font-size: 16px !important;
  font-weight: 600 !important;
  line-height: 22px !important;
  margin: 0;
}

.mesa-box-item__info .mesa-box-item__qty {
  font-size: 15px !important;
  font-weight: 400 !important;
  line-height: 21px !important;
  margin-top: 8px;
}

.mesa-box-item__info .mesa-box-item__note {
  font-size: 14px !important;
  font-weight: 400 !important;
  line-height: 20px !important;
  margin: 0;
}

@media (max-width: 1400px) {
    .mesa-box-items-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 1200px) {
    .mesa-box-items-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 991px) {
    .mesa-box-items-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .mesa-box-items-grid {
        justify-content: start;
        grid-auto-flow: column;
        grid-template-columns: repeat(2, auto);
        grid-template-rows: repeat(2, auto);
        gap: 16px 8px;
        align-content: start;
        overflow-x: scroll;
        overflow-y: hidden;
        scroll-snap-type: x mandatory;
        margin: 0;
    }
    .mesa-box-items-grid::-webkit-scrollbar {
        display: none;
    }
    .mesa-box-item__info {
        padding: 10px;
    }
    .mesa-box-item__name {
        font-size: 13px !important;
    }

    .mesa-box-item {
        width: calc(50vw - 36px);
    }
}

/* ===========================================
   18. RESPONSIVE BREAKPOINTS
   =========================================== */

/* --- Small Laptop (max 1440px) --- */
@media (max-width: 1440px) {
    .mesa-product-hero {
        padding: 12px 0 30px !important;
    }

    .mesa-product-hero .mesa-product-grid {
        gap: 24px !important;
    }

    /* Gallery: scale down */
    .mesa-gallery__main {
        max-width: 450px;
        height: 450px;
    }

    .mesa-gallery__img {
        max-height: 450px;
    }

    .mesa-gallery__thumb {
        width: 70px;
        height: 70px;
    }

    /* Breadcrumbs */
    .mesa-breadcrumbs {
        margin-top: 12px;
        margin-bottom: 24px !important;
    }

    /* Title */
    .mesa-product-title {
        font-size: 2rem !important;
    }

    /* Short Description */
    .mesa-product-short-desc,
    .mesa-product-buybox .woocommerce-product-details__short-description,
    .woocommerce-product-details__short-description {
        margin: 24px 0 0 0 !important;
    }

    /* SKU */
    .mesa-product-sku {
        margin: 12px 0 0 0 !important;
    }

    /* Price */
    .mesa-product-price {
        margin: 24px 0 0 0 !important;
    }

    .mesa-product-price .price,
    .mesa-product-price .woocommerce-Price-amount,
    .mesa-product-price > span {
        font-size: 1.625rem !important;
    }

    /* Stock */
    .mesa-stock-delivery {
        margin: 24px 0 0 0;
    }

    /* Add to Cart — full-width stacked layout */
    /*.mesa-product-add-to-cart {*/
    /*    margin: 12px 0 0 0 !important;*/
    /*}*/

    /*.mesa-product-add-to-cart .cart,*/
    /*.mesa-product-add-to-cart form.cart {*/
    /*    flex-direction: column !important;*/
    /*    gap: 0.75rem !important;*/
    /*}*/

    /*.mesa-product-add-to-cart .quantity {*/
    /*    width: 5rem !important;*/
    /*    margin: 0 auto;*/
    /*}*/

    /*.mesa-product-add-to-cart .quantity .qty {*/
    /*    height: 2.75rem;*/
    /*    text-align: center;*/
    /*}*/

    /*.mesa-product-add-to-cart .single_add_to_cart_button,*/
    /*.mesa-product-add-to-cart button[type="submit"] {*/
    /*    width: 100%;*/
    /*    height: 3.25rem;*/
    /*    font-size: 1.125rem;*/
    /*}*/

    /* Trust row */
    .mesa-combined-trust {
        margin: 10px 0 0 0;
        padding: 10px 0;
    }
}

/* --- Tablet (max 1024px) --- */
@media (max-width: 1024px) {
    .mesa-product-hero .mesa-product-grid {
        gap: 24px !important;
    }

    .mesa-section__content table {
        display: block;
        width: 100%;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}

/* --- Mobile (max 768px) --- */
@media (max-width: 768px) {
    .mesa-product-hero {
        padding: 15px 0 30px !important;
    }

    .mesa-product-hero .mesa-product-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }

    .mesa-product-gallery {
        position: static;
        max-height: none;
    }

    .mesa-gallery__main {
        max-width: 100%;
        height: auto;
        aspect-ratio: 1 / 1;
    }

    .mesa-gallery__img {
        max-height: 350px;
    }

    .mesa-product-title {
        font-size: 1.75rem !important;
    }

    .mesa-product-buybox {
        gap: 6px !important;
    }

    .mesa-product-price .price,
    .mesa-product-price .woocommerce-Price-amount {
        font-size: 1.5rem !important;
    }

    /* Combined trust row mobile */
    .mesa-combined-trust {
        gap: 6px 12px;
    }

    /* Hide section nav on mobile — sections stack naturally */
    .mesa-tabs-sticky-wrapper {
        display: none !important;
    }

    .mesa-tabs-sticky-placeholder {
        display: none !important;
    }

    /* Sections: tighter spacing on mobile */
    .mesa-section {
        padding: 32px 0;
    }

    .mesa-section__title {
        font-size: 1.1875rem !important;
        margin-bottom: 16px !important;
    }

    /* Show sticky cart on mobile */
    .mesa-sticky-cart {
        display: block;
    }

    /* Gallery thumbnails smaller */
    .mesa-gallery__thumb {
        width: 60px;
        height: 60px;
    }

    /*.mesa-product-add-to-cart .quantity {*/
    /*    width: 5rem !important;*/
    /*}*/

    /* Other options mobile */
    .mesa-other-option__image {
        width: 50px;
        height: 50px;
    }
}

/* --- Small Mobile (max 480px) --- */
@media (max-width: 480px) {

    .mesa-sticky-cart__inner {
        flex-direction: column;
        gap: 10px;
    }

    .mesa-sticky-cart__btn {
        width: 100%;
    }

    .mesa-other-option {
        padding: 8px;
        gap: 10px;
    }
}
