/* ═══════════════════════════════════════════════════════════════════════════
   SANDOX GLOBAL CSS v4.2 — Sitewide fixes
   ═══════════════════════════════════════════════════════════════════════════ */

/* ══ 1. Kill every WoodMart / WC quantity widget sitewide ══════════════════ */
.woodmart-quantity-wrapper, .woodmart-quantity,
.quantity, div.quantity, .woocommerce-quantity,
.qib-container, .wqpmb_wrapper,
input[name="quantity"], .qty, input.qty,
button.minus, button.plus, .woodmart-qty-btn, .qty-btn,
[class*="quantity-button"], [class*="qty-button"], [class*="qty-btn"],
.wc-block-components-quantity-selector,
.woodmart-product-qty, .woodmart-loop-add-to-cart .quantity,
.product-loop-quantity, .loop-product-quantity,
.minus, .plus,
button[data-action="minus"], button[data-action="plus"] {
    display: none !important;
    visibility: hidden !important;
    width: 0 !important; height: 0 !important;
    overflow: hidden !important; margin: 0 !important;
    padding: 0 !important; border: none !important;
    pointer-events: none !important;
    position: absolute !important; left: -9999px !important;
}

/* ══ 2. Kill WoodMart native sticky bottom bar (price range bar) ═══════════ */
.woodmart-sticky-atc, .woodmart-sticky-add-to-cart,
.woodmart-single-btn-sticky, .woodmart-sticky-bar,
.woodmart-footer-sticky-bar, .woodmart-single-sticky,
.wdm-sticky-add-to-cart, .wdm-sticky,
[class*="sticky-atc"], [class*="sticky-add-to-cart"],
[id*="sticky-atc"], [id*="sticky-add-to-cart"],
.product-sticky-bar, .woodmart-sticky-wrap {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    height: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    left: -9999px !important;
}

/* ══ 3. Kill WoodMart's green price range box on single product page ════════
   Target every possible selector WoodMart uses for the range price display   */
.single-product .woodmart-product-price,
.single-product .price-wrapper,
.single-product .woocommerce-variation-price,
.single-product span.price,
.single-product p.price,
.single-product .entry-summary .price,
.single-product .summary .price,
.single-product .wc-block-components-product-price,
.single-product [class*="price-range"],
/* The teal/green bordered range box WoodMart renders */
.single-product .woodmart-product-stock-status,
.single-product .woostify-product-meta,
.single-product form.cart > .price {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    overflow: hidden !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* ══ 4. "You may also like" / related / upsell card prices ══════════════════
   Match BackMarket style exactly:
   "Starting at" (small grey) → $392.00 (medium bold) → $729.00 new (tiny strikethrough) */

/* Strip WoodMart green tinted background/border from price area */
:not(.single-product) li.product .woodmart-product-price,
:not(.single-product) li.product .price,
:not(.single-product) .product .price,
.products .product .price,
.related .product .price,
.upsells .product .price {
    background: none !important;
    background-color: transparent !important;
    border: none !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    padding: 6px 0 2px !important;
    margin: 0 !important;
    display: block !important;
    visibility: visible !important;
    width: auto !important;
    height: auto !important;
    overflow: visible !important;
    position: static !important;
}

/* "Starting at" label — small grey, like BackMarket */
.products li.product .price::before {
    content: "Starting at";
    display: block;
    font-size: 11px;
    font-weight: 400;
    color: #888;
    letter-spacing: 0.01em;
    margin-bottom: 3px;
    line-height: 1;
}

/* Main price — BackMarket uses ~18px bold */
.products li.product .price > .woocommerce-Price-amount,
.products li.product .price ins .woocommerce-Price-amount {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
    line-height: 1.2 !important;
    display: inline !important;
}

/* Currency symbol — smaller superscript like BackMarket */
.products li.product .price > .woocommerce-Price-amount .woocommerce-Price-currencySymbol,
.products li.product .price ins .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    font-size: 12px !important;
    font-weight: 700 !important;
    vertical-align: super !important;
    line-height: 0 !important;
}

/* bdi inside price */
.products li.product .price > .woocommerce-Price-amount bdi,
.products li.product .price ins bdi {
    font-size: 18px !important;
    font-weight: 700 !important;
    color: #111 !important;
}

/* Sale price ins wrapper */
.products li.product .price ins {
    text-decoration: none !important;
    background: none !important;
    display: block !important;
    font-weight: 700 !important;
}

/* Original price — small strikethrough + "new" like BackMarket "$729.00 new" */
.products li.product .price del {
    display: block !important;
    text-decoration: none !important;
    margin-top: 4px !important;
    background: none !important;
    line-height: 1.3 !important;
}
.products li.product .price del .woocommerce-Price-amount {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #999 !important;
    text-decoration: line-through !important;
    display: inline !important;
}
.products li.product .price del .woocommerce-Price-amount .woocommerce-Price-currencySymbol {
    font-size: 11px !important;
    vertical-align: baseline !important;
}
/* "new" label after strikethrough price */
.products li.product .price del .woocommerce-Price-amount::after {
    content: " new";
    text-decoration: none !important;
    font-size: 11px;
    color: #bbb;
    font-style: normal;
}

/* Ensure prices are visible everywhere except single product */
.post-type-archive-product .price,
.tax-product_cat .price,
:not(.single-product) .products .price {
    display: block !important;
    visibility: visible !important;
}
