/* ==========================================================================
   GLOBAL MATRIX PROTECTION CONFIGURATIONS
   ========================================================================== */
.product-v8-master-isolated-row {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    display: block !important;
}

.web-desktop-luxury-container {
    display: grid !important;
    grid-template-columns: 24% 48% 28% !important;
    gap: 40px !important;
    align-items: start !important;
    width: 100% !important;
    margin: 0 auto !important;
    box-sizing: border-box !important;
    position: relative !important;
}

.web-d-column {
    position: -webkit-sticky !important;
    position: sticky !important;
    top: 140px !important;
    height: auto !important;
    z-index: 20 !important;
}

.web-d-gallery-stack {
    display: flex !important;
    flex-direction: column !important;
    width: 100% !important;
}

.web-d-gallery-stack img {
    width: 100% !important;
    height: auto !important;
    object-fit: cover !important;
    margin-bottom: 25px !important;
}

.web-d-title { margin: 0 0 10px 0 !important; font-size: 20px !important; font-weight: 500 !important; line-height: 1.3 !important; text-transform: capitalize !important; color: #111 !important; }
.web-d-variation-title-append { font-weight: 400 !important; color: #666 !important; }
.web-d-price { font-size: 15px !important; font-weight: 400 !important; margin: 0 0 40px 0 !important; color: #111 !important; }

/* Minimal Accordion Elements CSS */
.web-d-accordions details { border-bottom: 1px solid #e5e5e5 !important; padding: 16px 0 !important; }
.web-d-accordions summary { font-size: 13px !important; font-weight: 400; cursor: pointer !important; list-style: none !important; display: flex !important; justify-content: space-between !important; align-items: center !important; color: #111 !important; }
.web-d-accordions summary::-webkit-details-marker { display: none !important; }
.web-d-accordions summary .acc-indicator::after { content: '+'; font-size: 14px; }
.web-d-accordions details[open] summary .acc-indicator::after { content: '—'; }
.acc-body-content { padding-top: 12px; font-size: 13px; line-height: 1.6; color: #444; }

/* Add To Cart Action Trigger */
.web-d-action-box .single_add_to_cart_button {
    width: 100% !important;
    height: 50px !important;
    background: #111 !important;
    color: #fff !important;
    text-transform: uppercase !important;
    font-weight: 600 !important;
    letter-spacing: 0.5px !important;
    border: none !important;
    cursor: pointer !important;
}

/* ==========================================================================
   THE ABSOLUTE SIZE SELECTOR FIX: STRIP UNWANTED PLUGINS BOX SWATCHES
   ========================================================================== */
/* Kill genuine THIRD-PARTY swatch plugins only — leave our .web-swatch-* alone */
.web-d-action-box .variations td.value .vi-wpvs-option-wrap,
.web-d-action-box .variations td.value .woo-variation-swatches,
.web-d-action-box .variations td.value .wvs-pro-swatches,
.web-d-action-box .variations td.value .tawcvs-swatches,
.web-d-action-box .variations td.value div.swatch-control {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Native selects — visible by default; JS adds .web-swatch-select-hidden to hide them
   when our swatches are active. Do NOT force display:block here or the hidden class
   won't work. Just ensure uninitialized selects look correct. */
.web-d-action-box .variations td.value select:not(.web-swatch-select-hidden) {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 48px !important;
    background: #ffffff !important;
    border: 1px solid #e0e0e0 !important;
    border-radius: 0px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    color: #111 !important;
    margin-bottom: 20px !important;
    -webkit-appearance: auto !important;
    -moz-appearance: auto !important;
    appearance: auto !important;
    pointer-events: auto !important;
    z-index: 999 !important;
    position: relative !important;
}

/* ==========================================================================
   MOBILE LUXURY WIDGET — SWIPE SLIDER + STICKY BOTTOM BAR
   Layout: swipeable full-width image slider → accordions (content ends here,
   no blank space) → sticky bar fixed to bottom (title+price | dropdowns | ATC)
   ========================================================================== */

/* PAGE WRAPPER — no extra padding; content stops after last accordion */
.web-mob-wrapper {
    position: relative !important;
    width: 100% !important;
    background-color: #ffffff;
    font-family: inherit;
    /* bottom padding = sticky bar height so last accordion isn't hidden under it */
    padding-bottom: 180px !important;
    box-sizing: border-box !important;
}

/* ---- IMAGE SLIDER ---- */
.web-mob-slider-wrap {
    position: relative !important;
    width: 100% !important;
}

.web-mob-slider {
    position: relative !important;
    width: 100% !important;
    height: 500px !important;           /* overridden by Elementor control */
    background-color: #f2f2f2 !important;
    overflow: hidden !important;
}

/* Track: flex row. Each slide = 100% of slider width.
   translateX(-N*100%) on the track moves by slider width per slide.
   Slider overflow:hidden ensures only the current slide is visible. */
.web-mob-slider-track {
    display: flex !important;
    width: 100% !important;
    height: 100% !important;
    overflow: visible !important;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94) !important;
    will-change: transform !important;
}

.web-mob-slide {
    flex: 0 0 100% !important;
    width: 100% !important;
    height: 100% !important;
    overflow: hidden !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background-color: inherit !important;
}

.web-mob-slide img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;      /* overridden by Elementor control */
    display: block !important;
}

/* Dots */
.web-mob-dots {
    position: absolute !important;
    bottom: 10px !important;
    left: 0 !important;
    right: 0 !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    gap: 5px !important;
    pointer-events: none !important;
    z-index: 10 !important;
}

.web-mob-dot {
    width: 6px !important;
    height: 6px !important;
    border-radius: 50% !important;
    background-color: #ffffff !important;
    opacity: 0.5 !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease, width 0.2s ease !important;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5) !important;
}

.web-mob-dot.active {
    opacity: 1 !important;
    width: 18px !important;
    border-radius: 3px !important;
}

/* ---- ACCORDIONS ---- */
.web-mob-accordions {
    width: 100% !important;
    background: #ffffff;
}

.web-mob-acc-row {
    border-bottom: 1px solid #e5e5e5 !important;
}

.web-mob-acc-row summary {
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #111 !important;
    padding: 18px 20px !important;
    cursor: pointer !important;
    list-style: none !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    -webkit-tap-highlight-color: transparent !important;
}

.web-mob-acc-row summary::-webkit-details-marker { display: none !important; }
.web-mob-acc-icon::after { content: '\2228'; font-size: 13px; color: #111; }
.web-mob-acc-row[open] .web-mob-acc-icon::after { content: '\2227'; }

.web-mob-acc-body {
    padding: 0 20px 18px !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    color: #444 !important;
}

.web-mob-acc-body p { margin: 0 !important; }

/* ---- STICKY BOTTOM BAR ---- */
.web-mob-sticky-bar {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    right: 0 !important;
    width: 100% !important;
    background-color: #f5f5f5 !important;
    border-top: 1px solid #e0e0e0 !important;
    padding: 10px 16px !important;
    box-sizing: border-box !important;
    z-index: 9999 !important;
    box-shadow: 0 -2px 12px rgba(0,0,0,0.07) !important;
    max-height: 280px !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
}

/* In Elementor editor: render static so it doesn't escape the panel */
.elementor-editor-active .web-mob-sticky-bar {
    position: static !important;
    box-shadow: none !important;
    border: 2px dashed #c0c0c0 !important;
    margin-top: 16px !important;
    border-radius: 4px !important;
}

/* ROW 1: Title + Price */
.web-mob-sticky-meta {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    margin-bottom: 10px !important;
    gap: 10px !important;
}

.web-mob-sticky-title {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #111 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    flex: 1 !important;
}

.web-mob-sticky-price {
    font-size: 13px !important;
    font-weight: 400 !important;
    color: #111 !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
}

.web-mob-sticky-price del { opacity: 0.65 !important; margin-right: 5px !important; }
.web-mob-sticky-price del .amount { color: #999 !important; }
.web-mob-sticky-price ins { text-decoration: none !important; }



/* ROW 3: Add to Cart */
.web-mob-atc-wrap {
    width: 100% !important;
}

.web-mob-cart-form {
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
}

.web-mob-atc-btn {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    line-height: 44px !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
}

.web-mob-atc-btn:hover { background-color: #333333 !important; }
.web-mob-atc-btn:active { background-color: #000000 !important; }

/* WC internal elements that must stay hidden — we render our own UI above */
.web-mob-sticky-bar .variations,
.web-mob-sticky-bar .single_variation_wrap,
.web-mob-sticky-bar .woocommerce-variation-add-to-cart,
.web-mob-sticky-bar .woocommerce-variation-price,
.web-mob-sticky-bar .quantity,
.web-mob-cart-form .reset_variations {
    display: none !important;
}

/* WC native form wrapper — fills the sticky bar */
.web-mob-wc-form-wrap {
    width: 100% !important;
}

/* ── WC variations table inside mobile sticky bar ──────────────────────────
   Strategy: use CSS grid on the table itself so WC's JS can't override our
   flex layout. Each <tr> becomes a grid row, label hidden, value full-width.
   This layout is immune to WC's wc-add-to-cart-variation reinit because
   grid is applied at the table level, not on tbody/tr with display:contents.
────────────────────────────────────────────────────────────────────────── */
.web-mob-wc-form-wrap .variations {
    display: table !important;   /* keep as table so WC JS is happy        */
    width: 100% !important;
    border: none !important;
    border-collapse: collapse !important;
    margin-bottom: 8px !important;
}

.web-mob-wc-form-wrap .variations tbody {
    display: table-row-group !important;
    width: 100% !important;
}

/* Each variation row is a normal table row */
.web-mob-wc-form-wrap .variations tr {
    display: table-row !important;
    width: 100% !important;
}

/* Hide label column completely — our swatch-row-label handles labelling */
.web-mob-wc-form-wrap .variations .label,
.web-mob-wc-form-wrap .variations th {
    display: none !important;
    width: 0 !important;
    padding: 0 !important;
}

/* Value cell = full width, stacks content vertically */
.web-mob-wc-form-wrap .variations td.value {
    display: block !important;
    width: 100% !important;
    padding: 0 0 8px 0 !important;
    border: none !important;
    background: none !important;
    box-sizing: border-box !important;
}

.web-mob-wc-form-wrap .variations td.value:last-child {
    padding-bottom: 0 !important;
}

/* Kill THIRD-PARTY swatch plugins only — leave our own .web-swatch-* alone */
.web-mob-wc-form-wrap .vi-wpvs-option-wrap,
.web-mob-wc-form-wrap .woo-variation-swatches,
.web-mob-wc-form-wrap .wvs-pro-swatches,
.web-mob-wc-form-wrap .tawcvs-swatches,
.web-mob-wc-form-wrap div.swatch-control {
    display: none !important;
    height: 0 !important;
    width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Native selects — full width inside value cell */
.web-mob-wc-form-wrap .variations td.value select,
.web-mob-sticky-bar select {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 100% !important;
    height: 50px !important;
    background-color: #ffffff !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 0 !important;
    padding: 0 36px 0 14px !important;
    font-size: 14px !important;
    color: #111 !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    pointer-events: auto !important;
    cursor: pointer !important;
    box-sizing: border-box !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='7' viewBox='0 0 12 7'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23111' stroke-width='1.5' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 13px center !important;
}

/* WC single_variation_wrap (price/add-to-cart for variable) → show and style */
.web-mob-wc-form-wrap .single_variation_wrap {
    display: block !important;
    width: 100% !important;
}

.web-mob-wc-form-wrap .woocommerce-variation-price,
.web-mob-wc-form-wrap .woocommerce-variation-availability {
    display: none !important;
}

.web-mob-wc-form-wrap .woocommerce-variation-add-to-cart {
    display: flex !important;
    gap: 0 !important;
    width: 100% !important;
}

.web-mob-wc-form-wrap .quantity {
    display: none !important;
}

/* ATC button — WC native .single_add_to_cart_button */
.web-mob-sticky-bar .single_add_to_cart_button {
    display: block !important;
    width: 100% !important;
    height: 44px !important;
    line-height: 44px !important;
    background-color: #111111 !important;
    color: #ffffff !important;
    text-align: center !important;
    text-transform: uppercase !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1px !important;
    border: none !important;
    border-radius: 0 !important;
    cursor: pointer !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    transition: background-color 0.2s ease !important;
    -webkit-tap-highlight-color: transparent !important;
    flex: 1 !important;
}

.web-mob-sticky-bar .single_add_to_cart_button:hover { background-color: #333333 !important; }
.web-mob-sticky-bar .single_add_to_cart_button:active { background-color: #000000 !important; }

/* Simple product cart — hide quantity, make button full width */
.web-mob-wc-form-wrap .cart {
    display: block !important;
    width: 100% !important;
}

.web-mob-wc-form-wrap .cart .quantity { display: none !important; }

/* reset_variations link — hide */
.web-mob-wc-form-wrap .reset_variations { display: none !important; }

/* ── Mobile wrapper: pad bottom so content doesn't hide behind sticky bar ── */
@media (max-width: 1024px) {
    .web-mob-wrapper {
    padding-bottom: 130px !important; /* enough for sticky bar at max height */
    }
}

/* ---- DESKTOP: hide the mobile sticky bar entirely ---- */
@media (min-width: 1025px) {
    .web-mob-sticky-bar {
        display: none !important;
    }
    .web-mob-wrapper {
        padding-bottom: 0 !important;
    }
}
