/* =====================================================
   BD Product Style — Refresh visual de single product
   + Fix del header mobile global
   Estética: bar editorial. Paleta negro + dorado + crema.
   ===================================================== */

/* =====================================================
   QUANTITY STEPPER ± — botones grandes alrededor del input
   Aplica en single product Y en carrito.
   ===================================================== */
.bd-qty-stepper {
    display: inline-flex !important;
    align-items: stretch !important;
    border: 2px solid #1a1a1a !important;
    border-radius: 4px !important;
    overflow: hidden !important;
    background: #fff !important;
    height: 48px !important;
    width: auto !important;
    max-width: 168px !important;
    box-sizing: border-box !important;
}
.bd-qty-stepper .bd-qty-btn {
    flex: 0 0 44px !important;
    width: 44px !important;
    height: 44px !important;
    border: none !important;
    background: #1a1a1a !important;
    color: #c9a961 !important;
    font-family: Georgia, serif !important;
    font-size: 22px !important;
    font-weight: 700 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: background 0.15s ease, color 0.15s ease !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    text-shadow: none !important;
}
.bd-qty-stepper .bd-qty-btn:hover,
.bd-qty-stepper .bd-qty-btn:focus {
    background: #c9a961 !important;
    color: #1a1a1a !important;
    outline: none !important;
}
.bd-qty-stepper .bd-qty-btn:active {
    transform: scale(0.95);
}
.bd-qty-stepper input.qty,
.bd-qty-stepper input[name="quantity"] {
    flex: 0 0 60px !important;
    width: 60px !important;
    height: 44px !important;
    border: none !important;
    border-left: 1.5px solid #1a1a1a !important;
    border-right: 1.5px solid #1a1a1a !important;
    background: #fff !important;
    color: #1a1a1a !important;
    font-family: Georgia, serif !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    text-align: center !important;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box !important;
    border-radius: 0 !important;
    -moz-appearance: textfield !important;
    appearance: textfield !important;
}
.bd-qty-stepper input.qty::-webkit-outer-spin-button,
.bd-qty-stepper input.qty::-webkit-inner-spin-button,
.bd-qty-stepper input[name="quantity"]::-webkit-outer-spin-button,
.bd-qty-stepper input[name="quantity"]::-webkit-inner-spin-button {
    -webkit-appearance: none !important;
    margin: 0 !important;
}
.bd-qty-stepper input.qty:focus {
    outline: none !important;
    background: #faf6f0 !important;
}

/* En la página del carrito, el stepper más compacto */
body.woocommerce-cart .bd-qty-stepper {
    height: 40px !important;
    max-width: 140px !important;
}
body.woocommerce-cart .bd-qty-stepper .bd-qty-btn {
    flex: 0 0 36px !important;
    width: 36px !important;
    height: 36px !important;
    font-size: 18px !important;
}
body.woocommerce-cart .bd-qty-stepper input.qty {
    flex: 0 0 50px !important;
    width: 50px !important;
    height: 36px !important;
    font-size: 15px !important;
}


/* =====================================================
   HEADER MOBILE FIX — específico al sitio
   Estrategia: position absolute para el hamburguesa,
   evita pelear con flex-direction de Elementor.
   ===================================================== */
@media (max-width: 1024px) {

    /* === Container padre del header — anclaje relativo === */
    body .elementor-location-header .elementor-element-dac0858,
    body .elementor-location-header [data-id="dac0858"] {
        position: relative !important;
        min-height: 76px !important;
        padding: 12px 64px 12px 20px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
    }
    /* Si Elementor usa e-con-inner adentro, también flex row */
    body .elementor-location-header .elementor-element-dac0858 > .e-con-inner,
    body .elementor-location-header [data-id="dac0858"] > .e-con-inner {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        flex: 1 !important;
        width: 100% !important;
        gap: 0 !important;
    }

    /* === Logo: tamaño correcto, no estira === */
    body .elementor-location-header .elementor-element-659c89f,
    body .elementor-location-header [data-id="659c89f"] {
        flex: 0 0 auto !important;
        width: auto !important;
        max-width: 140px !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    body .elementor-location-header .elementor-element-659c89f img,
    body .elementor-location-header [data-id="659c89f"] img {
        max-width: 140px !important;
        max-height: 60px !important;
        width: auto !important;
        height: auto !important;
        object-fit: contain;
    }

    /* === Container hijo (cefae90): minimal footprint, sin display:contents
           (iOS Safari tenía bugs con display:contents históricamente) === */
    body .elementor-location-header .elementor-element-cefae90,
    body .elementor-location-header [data-id="cefae90"] {
        position: static !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        flex: 0 0 auto !important;
        background: transparent !important;
    }

    /* === Widget del NAV MENU (con hamburguesa) — posición absoluta a la derecha === */
    body .elementor-location-header .elementor-element-4b6f48d,
    body .elementor-location-header [data-id="4b6f48d"] {
        position: absolute !important;
        top: 50% !important;
        right: 16px !important;
        transform: translateY(-50%) !important;
        z-index: 100 !important;
        margin: 0 !important;
        padding: 0 !important;
        width: auto !important;
        max-width: 48px !important;
    }

    /* === Hamburguesa visible y estilizada === */
    body .elementor-location-header .elementor-menu-toggle {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        background: transparent !important;
        border: none !important;
        padding: 8px !important;
        margin: 0 !important;
        font-size: 28px !important;
        line-height: 1 !important;
        cursor: pointer !important;
        color: inherit !important;
        position: relative !important;
        top: auto !important;
        right: auto !important;
        left: auto !important;
        transform: none !important;
    }

    /* === Menú normal (no toggle) oculto en mobile, solo se ve via dropdown === */
    body .elementor-location-header .elementor-element-4b6f48d > nav.elementor-nav-menu--main {
        display: none !important;
    }

    /* === Carrito (container y widget): OCULTOS en mobile === */
    body .elementor-location-header .elementor-element-5f9268f,
    body .elementor-location-header [data-id="5f9268f"],
    body .elementor-location-header .elementor-element-83451da,
    body .elementor-location-header [data-id="83451da"],
    body .elementor-location-header .elementor-widget-woocommerce-menu-cart {
        display: none !important;
    }
}

/* === Mobile chico (≤480px) === */
@media (max-width: 480px) {
    body .elementor-location-header .elementor-element-dac0858,
    body .elementor-location-header [data-id="dac0858"] {
        padding: 10px 56px 10px 16px !important;
        min-height: 68px !important;
    }
    body .elementor-location-header .elementor-element-659c89f img,
    body .elementor-location-header [data-id="659c89f"] img {
        max-width: 120px !important;
        max-height: 52px !important;
    }
    body .elementor-location-header .elementor-element-4b6f48d,
    body .elementor-location-header [data-id="4b6f48d"] {
        right: 12px !important;
    }
}

/* =====================================================
   PÁGINA DE CARRITO — RESPONSIVE MOBILE
   Convertir tabla legacy de Woo en cards stackeadas
   ===================================================== */
@media (max-width: 768px) {

    /* Evitar overflow horizontal en cualquier parte */
    body.woocommerce-cart,
    body.woocommerce-checkout {
        overflow-x: hidden !important;
    }

    /* La tabla del carrito → stack vertical como cards */
    body.woocommerce-cart .woocommerce table.shop_table.cart,
    body.woocommerce-cart .woocommerce-cart-form__contents {
        display: block !important;
        width: 100% !important;
        border: none !important;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart thead {
        display: none !important;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart tbody,
    body.woocommerce-cart .woocommerce table.shop_table.cart tfoot {
        display: block !important;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart tr.cart_item {
        display: grid !important;
        grid-template-columns: 80px 1fr;
        gap: 8px 14px;
        padding: 16px 0 !important;
        border: none !important;
        border-bottom: 1px solid var(--bd-line, rgba(26,26,26,0.12)) !important;
        background: transparent !important;
        position: relative;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart tr.cart_item td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        text-align: left !important;
        background: transparent !important;
    }
    /* Thumbnail */
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail {
        grid-row: 1 / 4;
        grid-column: 1;
        width: 80px;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-thumbnail img {
        width: 80px !important;
        height: auto !important;
        border-radius: 4px;
    }
    /* Nombre del producto */
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-name {
        grid-column: 2;
        font-family: var(--bd-serif, Georgia, serif) !important;
        font-size: 15px !important;
        font-weight: 700 !important;
        color: var(--bd-ink, #1a1a1a) !important;
        line-height: 1.3 !important;
        padding-right: 36px !important; /* espacio para botón eliminar */
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-name a {
        color: var(--bd-ink, #1a1a1a) !important;
        text-decoration: none !important;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-name dl.variation {
        font-size: 12px !important;
        color: var(--bd-muted, #888) !important;
        margin-top: 4px !important;
        font-family: var(--bd-sans, sans-serif) !important;
        font-weight: 400 !important;
    }
    /* Precio unitario — esconder, ya está en el subtotal */
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-price {
        display: none !important;
    }
    /* Cantidad */
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-quantity {
        grid-column: 2;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-quantity .quantity {
        margin: 0 !important;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-quantity input.qty {
        width: 60px !important;
        padding: 8px !important;
        font-size: 14px !important;
        border: 1.5px solid var(--bd-ink, #1a1a1a) !important;
        border-radius: 2px !important;
    }
    /* Subtotal */
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-subtotal {
        grid-column: 2;
        font-family: var(--bd-serif, Georgia, serif) !important;
        font-size: 18px !important;
        color: var(--bd-gold, #c9a961) !important;
        font-weight: 700 !important;
    }
    /* Botón eliminar (X) en esquina superior derecha */
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-remove {
        position: absolute !important;
        top: 16px !important;
        right: 0 !important;
        width: auto !important;
        grid-row: auto !important;
        grid-column: auto !important;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart td.product-remove a.remove {
        font-size: 22px !important;
        color: var(--bd-muted, #888) !important;
        line-height: 1 !important;
    }
    /* Fila "Cupón / Actualizar carrito" */
    body.woocommerce-cart .woocommerce table.shop_table.cart tr:not(.cart_item) {
        display: block !important;
        padding: 20px 0 !important;
        border-bottom: none !important;
    }
    body.woocommerce-cart .woocommerce table.shop_table.cart tr:not(.cart_item) td {
        display: block !important;
        padding: 0 !important;
        text-align: left !important;
        width: 100% !important;
    }
    body.woocommerce-cart .woocommerce .coupon {
        display: flex !important;
        gap: 8px !important;
        margin-bottom: 14px !important;
    }
    body.woocommerce-cart .woocommerce .coupon input[type="text"] {
        flex: 1 !important;
        min-width: 0 !important;
        padding: 12px !important;
        border: 1px solid var(--bd-line, rgba(26,26,26,0.12)) !important;
        border-radius: 2px !important;
        font-size: 14px !important;
    }
    body.woocommerce-cart .woocommerce .coupon button.button,
    body.woocommerce-cart .woocommerce button[name="update_cart"] {
        background: transparent !important;
        color: var(--bd-ink, #1a1a1a) !important;
        border: 1.5px solid var(--bd-ink, #1a1a1a) !important;
        font-family: var(--bd-serif, Georgia, serif) !important;
        text-transform: uppercase !important;
        letter-spacing: 1.5px !important;
        font-size: 12px !important;
        padding: 12px 18px !important;
        border-radius: 2px !important;
        flex-shrink: 0;
    }

    /* Totales del carrito → mismo ancho */
    body.woocommerce-cart .cart-collaterals,
    body.woocommerce-cart .cart_totals {
        width: 100% !important;
        float: none !important;
        margin: 24px 0 !important;
        padding: 20px !important;
        background: #faf6f0 !important;
        border-radius: 4px !important;
        border-top: 3px solid var(--bd-gold, #c9a961) !important;
    }
    body.woocommerce-cart .cart_totals h2 {
        font-family: var(--bd-serif, Georgia, serif) !important;
        font-size: 1.3rem !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
        margin: 0 0 16px 0 !important;
        color: var(--bd-ink, #1a1a1a) !important;
    }
    body.woocommerce-cart .cart_totals table.shop_table {
        display: block !important;
        border: none !important;
    }
    body.woocommerce-cart .cart_totals table.shop_table tbody,
    body.woocommerce-cart .cart_totals table.shop_table tr {
        display: block !important;
        border: none !important;
    }
    body.woocommerce-cart .cart_totals table.shop_table tr {
        display: flex !important;
        justify-content: space-between !important;
        padding: 8px 0 !important;
        border-bottom: 1px solid rgba(26,26,26,0.08) !important;
    }
    body.woocommerce-cart .cart_totals table.shop_table th,
    body.woocommerce-cart .cart_totals table.shop_table td {
        display: block !important;
        border: none !important;
        padding: 0 !important;
        background: transparent !important;
        font-family: var(--bd-sans, sans-serif) !important;
    }
    body.woocommerce-cart .cart_totals table.shop_table th {
        font-size: 12px !important;
        letter-spacing: 1px !important;
        text-transform: uppercase !important;
        color: var(--bd-muted, #888) !important;
        font-weight: 700 !important;
    }
    body.woocommerce-cart .cart_totals table.shop_table .order-total td,
    body.woocommerce-cart .cart_totals table.shop_table .order-total th {
        font-family: var(--bd-serif, Georgia, serif) !important;
        font-size: 18px !important;
        color: var(--bd-ink, #1a1a1a) !important;
        font-weight: 700 !important;
    }
    body.woocommerce-cart .cart_totals table.shop_table .order-total .amount {
        color: var(--bd-gold, #c9a961) !important;
    }

    /* Botón Finalizar compra */
    body.woocommerce-cart .wc-proceed-to-checkout {
        padding: 16px 0 0 0 !important;
    }
    body.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
        display: block !important;
        width: 100% !important;
        background: var(--bd-ink, #1a1a1a) !important;
        color: var(--bd-gold, #c9a961) !important;
        font-family: var(--bd-serif, Georgia, serif) !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
        padding: 18px !important;
        border-radius: 2px !important;
        text-decoration: none !important;
        text-align: center !important;
    }

    /* =====================================================
       PÁGINA CHECKOUT — RESPONSIVE
       ===================================================== */
    body.woocommerce-checkout .woocommerce-checkout {
        padding: 0 !important;
    }
    body.woocommerce-checkout .col2-set,
    body.woocommerce-checkout #customer_details {
        display: block !important;
    }
    body.woocommerce-checkout .col-1,
    body.woocommerce-checkout .col-2 {
        width: 100% !important;
        float: none !important;
        max-width: 100% !important;
    }
    body.woocommerce-checkout form.checkout_coupon,
    body.woocommerce-checkout form.woocommerce-form-login {
        margin: 0 0 20px 0 !important;
    }
    body.woocommerce-checkout .woocommerce-billing-fields h3,
    body.woocommerce-checkout #order_review_heading {
        font-family: var(--bd-serif, Georgia, serif) !important;
        font-size: 1.3rem !important;
        text-transform: uppercase !important;
        letter-spacing: 2px !important;
    }
    body.woocommerce-checkout input.input-text,
    body.woocommerce-checkout textarea,
    body.woocommerce-checkout select,
    body.woocommerce-checkout .select2-container--default .select2-selection--single {
        padding: 12px !important;
        border: 1px solid var(--bd-line, rgba(26,26,26,0.12)) !important;
        border-radius: 2px !important;
        font-size: 15px !important;
        height: auto !important;
    }
    body.woocommerce-checkout #place_order {
        width: 100% !important;
        padding: 18px !important;
        background: var(--bd-ink, #1a1a1a) !important;
        color: var(--bd-gold, #c9a961) !important;
        font-family: var(--bd-serif, Georgia, serif) !important;
        font-size: 14px !important;
        letter-spacing: 3px !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        border-radius: 2px !important;
    }
}

/* =====================================================
   OCULTAR JOINCHAT (WhatsApp flotante) en compra
   ===================================================== */
body.woocommerce-cart .joinchat,
body.woocommerce-cart #joinchat,
body.woocommerce-checkout .joinchat,
body.woocommerce-checkout #joinchat,
body.woocommerce-order-received .joinchat,
body.woocommerce-order-received #joinchat,
body.single-product .joinchat,
body.single-product #joinchat {
    display: none !important;
}

/* =====================================================
   TOAST "Boleto agregado" — layout limpio sin solapado
   ===================================================== */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #faf6f0 !important;
    border: none !important;
    border-left: 4px solid var(--bd-gold, #c9a961) !important;
    color: var(--bd-ink, #1a1a1a) !important;
    font-family: var(--bd-sans, sans-serif) !important;
    padding: 0 !important;
    margin: 0 0 24px 0 !important;
    box-shadow: 0 4px 14px rgba(26,26,26,0.05) !important;
    border-radius: 2px !important;
    list-style: none !important;
    overflow: hidden;
}
.woocommerce-message::before,
.woocommerce-info::before,
.woocommerce-error::before {
    display: none !important;
}

.bd-cart-added {
    display: flex !important;
    align-items: center !important;
    gap: 14px !important;
    padding: 16px 18px !important;
    flex-wrap: nowrap !important;
}
.bd-cart-added__icon {
    flex: 0 0 32px !important;
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    background: var(--bd-gold, #c9a961) !important;
    color: #fff !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 16px !important;
    font-weight: 700 !important;
}
.bd-cart-added__text {
    flex: 1 1 auto !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    color: var(--bd-ink, #1a1a1a) !important;
    line-height: 1.3 !important;
    min-width: 0 !important;
}
.bd-cart-added__cta {
    flex: 0 0 auto !important;
    background: var(--bd-ink, #1a1a1a) !important;
    color: var(--bd-gold, #c9a961) !important;
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 10px 16px !important;
    border-radius: 2px !important;
    text-decoration: none !important;
    border: 2px solid var(--bd-ink, #1a1a1a) !important;
    white-space: nowrap !important;
    transition: all 0.2s ease;
}
.bd-cart-added__cta:hover {
    background: var(--bd-gold, #c9a961) !important;
    color: var(--bd-ink, #1a1a1a) !important;
}

@media (max-width: 480px) {
    .bd-cart-added {
        gap: 10px !important;
        padding: 14px !important;
    }
    .bd-cart-added__text {
        font-size: 13px !important;
    }
    .bd-cart-added__cta {
        font-size: 10px !important;
        padding: 8px 12px !important;
        letter-spacing: 1.5px !important;
    }
}

/* =====================================================
   WOOCOMMERCE BLOCKS — Cart & Checkout (auditado y corregido)
   ESTRUCTURA REAL del sitio:
   .wp-block-woocommerce-cart
     └─ .wp-block-woocommerce-filled-cart-block
        ├─ .wp-block-woocommerce-cart-items-block
        └─ .wp-block-woocommerce-cart-totals-block
   Estos son los selectores que se renderizan SSR (siempre presentes).
   ===================================================== */

/* === Container principal: padding controlado, sin overflow === */
body.woocommerce-cart,
body.woocommerce-checkout {
    overflow-x: hidden !important;
    background: var(--bd-bg, #faf6f0) !important;
}
body.woocommerce-cart .wp-block-woocommerce-cart,
body.woocommerce-checkout .wp-block-woocommerce-checkout {
    max-width: 1180px !important;
    margin: 24px auto !important;
    padding: 0 16px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

/* === FILLED CART layout: desktop 2 col, mobile 1 col === */
body.woocommerce-cart .wp-block-woocommerce-filled-cart-block {
    box-sizing: border-box !important;
    width: 100% !important;
}
@media (min-width: 901px) {
    body.woocommerce-cart .wp-block-woocommerce-filled-cart-block {
        display: grid !important;
        grid-template-columns: 1fr 360px !important;
        gap: 32px !important;
        align-items: start !important;
    }
}

/* === Cart items block (lado izquierdo en desktop, completo en mobile) === */
body.woocommerce-cart .wp-block-woocommerce-cart-items-block {
    min-width: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    margin: 0 !important;
}

/* === Totals block (sidebar) === */
body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
    min-width: 0 !important;
    box-sizing: border-box !important;
    width: 100% !important;
    background: #fff !important;
    padding: 24px !important;
    border-radius: 4px !important;
    border-top: 3px solid var(--bd-gold, #c9a961) !important;
    box-shadow: 0 4px 14px rgba(26,26,26,0.05) !important;
    margin: 0 !important;
}
@media (max-width: 900px) {
    body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
        margin-top: 20px !important;
        padding: 20px !important;
    }
}

/* === GARANTÍA ANTI-OVERFLOW: TODOS los sub-bloques respetan el padre === */
body.woocommerce-cart [class*="wp-block-woocommerce-cart-"],
body.woocommerce-cart [class*="wp-block-woocommerce-cart-"] > *,
body.woocommerce-cart [class*="wp-block-woocommerce-checkout-"],
body.woocommerce-checkout [class*="wp-block-woocommerce-checkout-"] {
    max-width: 100% !important;
    box-sizing: border-box !important;
}

/* === Order summary heading === */
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block h2 {
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--bd-ink, #1a1a1a) !important;
    margin: 0 0 14px 0 !important;
    padding: 0 !important;
    font-weight: 700 !important;
}

/* === Sub-blocks de totales: full-width, sin overflow === */
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-coupon-form-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-totals-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-subtotal-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-discount-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-fee-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-shipping-block,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-taxes-block {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
    padding: 8px 0 !important;
    overflow: hidden !important;
}

/* === Botón "Finalizar compra" (proceed-to-checkout-block) === */
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 16px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block .wc-block-cart__submit-container,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block .wp-block-button,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block .wp-block-button__link,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block a.checkout-button,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    background: var(--bd-ink, #1a1a1a) !important;
    color: var(--bd-gold, #c9a961) !important;
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 14px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    padding: 18px 12px !important;
    border-radius: 2px !important;
    border: 2px solid var(--bd-ink, #1a1a1a) !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    transition: all 0.25s ease !important;
}
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block a:hover,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block button:hover {
    background: var(--bd-gold, #c9a961) !important;
    color: var(--bd-ink, #1a1a1a) !important;
}

/* === EXPRESS PAYMENT / accepted-payment-methods: ocultar duplicados === */
body.woocommerce-cart .wp-block-woocommerce-cart-express-payment-block:empty,
body.woocommerce-cart .wp-block-woocommerce-cart-accepted-payment-methods-block:empty {
    display: none !important;
}

/* =====================================================
   ★★★ HTML HIDRATADO REAL — clases que aparecen después
       de que React/JS de WC Blocks renderiza el cart.
       Estas son las clases que el USUARIO ve en pantalla.
   ===================================================== */

/* Sidebar real (3 clases combinadas — máxima specificity) */
body.woocommerce-cart .wc-block-components-sidebar.wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-cart__sidebar,
body.woocommerce-cart .wc-block-components-sidebar {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 1 1 auto !important;
    padding: 24px !important;
    background: #fff !important;
    border-radius: 4px !important;
    border-top: 3px solid var(--bd-gold, #c9a961) !important;
    box-shadow: 0 4px 14px rgba(26,26,26,0.06) !important;
}

/* Todos los descendientes del sidebar: sin margin negativo */
body.woocommerce-cart .wc-block-cart__sidebar > *,
body.woocommerce-cart .wc-block-cart__sidebar > * > *,
body.woocommerce-cart .wc-block-components-sidebar > * {
    box-sizing: border-box !important;
    max-width: 100% !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-inline: 0 !important;
}

/* Heading "Totales del carrito" */
body.woocommerce-cart h2.wc-block-cart__totals-title,
body.woocommerce-cart .wp-block-woocommerce-cart-order-summary-heading-block {
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 1.15rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--bd-ink, #1a1a1a) !important;
    font-weight: 700 !important;
    margin: 0 0 16px 0 !important;
    padding: 0 !important;
}

/* === CUPONES ("ones" cortado) === */
body.woocommerce-cart .wc-block-components-totals-coupon {
    padding: 14px 0 !important;
    margin: 0 !important;
    border: none !important;
    border-top: 1px solid rgba(26,26,26,0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon.wc-block-components-panel {
    background: transparent !important;
}
body.woocommerce-cart .wc-block-components-panel__button {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 8px 0 !important;
    margin: 0 !important;
    background: transparent !important;
    border: none !important;
    color: var(--bd-ink, #1a1a1a) !important;
    font-family: var(--bd-sans, sans-serif) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    cursor: pointer !important;
    text-align: left !important;
    box-sizing: border-box !important;
}
body.woocommerce-cart .wc-block-components-panel__button-icon {
    flex: 0 0 20px !important;
    width: 20px !important;
    height: 20px !important;
    fill: var(--bd-muted, #888) !important;
    margin-left: auto !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__form {
    display: flex !important;
    gap: 8px !important;
    width: 100% !important;
    margin: 10px 0 0 0 !important;
    align-items: stretch !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__input {
    flex: 1 1 auto !important;
    min-width: 0 !important;
}
body.woocommerce-cart .wc-block-components-totals-coupon__button {
    flex: 0 0 auto !important;
    padding: 10px 16px !important;
    background: var(--bd-ink, #1a1a1a) !important;
    color: var(--bd-gold, #c9a961) !important;
    border: none !important;
    border-radius: 2px !important;
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 12px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    cursor: pointer !important;
}

/* === TOTALES ("timado" cortado = "Total estimado") === */
body.woocommerce-cart .wc-block-components-totals-wrapper {
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
    box-sizing: border-box !important;
    border: none !important;
}
body.woocommerce-cart .wc-block-components-totals-item {
    display: flex !important;
    justify-content: space-between !important;
    align-items: baseline !important;
    padding: 14px 0 !important;
    margin: 0 !important;
    border-bottom: 1px solid rgba(26,26,26,0.08) !important;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 12px !important;
}
body.woocommerce-cart .wc-block-components-totals-footer-item {
    border-top: 2px solid var(--bd-ink, #1a1a1a) !important;
    border-bottom: none !important;
    padding: 18px 0 !important;
    margin-top: 8px !important;
}
body.woocommerce-cart .wc-block-components-totals-item__label {
    font-family: var(--bd-sans, sans-serif) !important;
    font-size: 12px !important;
    color: var(--bd-muted, #888) !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 15px !important;
    color: var(--bd-ink, #1a1a1a) !important;
    letter-spacing: 2px !important;
}
body.woocommerce-cart .wc-block-components-totals-item__value {
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 17px !important;
    color: var(--bd-ink, #1a1a1a) !important;
    font-weight: 700 !important;
    flex: 0 0 auto !important;
    text-align: right !important;
    margin: 0 !important;
}
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
body.woocommerce-cart .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    font-size: 22px !important;
    color: var(--bd-gold, #c9a961) !important;
    font-weight: 700 !important;
}

/* === BOTÓN FINALIZAR COMPRA (se salía por la izquierda) === */
body.woocommerce-cart .wc-block-cart__submit,
body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block {
    width: 100% !important;
    max-width: 100% !important;
    margin: 18px 0 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    display: block !important;
}
body.woocommerce-cart .wc-block-cart__submit-container {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
}
body.woocommerce-cart a.wc-block-cart__submit-button,
body.woocommerce-cart button.wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-cart__submit-button,
body.woocommerce-cart .wc-block-components-button.wc-block-cart__submit-button {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 18px 12px !important;
    box-sizing: border-box !important;
    text-align: center !important;
    background: var(--bd-ink, #1a1a1a) !important;
    color: var(--bd-gold, #c9a961) !important;
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 14px !important;
    letter-spacing: 2.5px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    border-radius: 2px !important;
    border: 2px solid var(--bd-ink, #1a1a1a) !important;
    text-decoration: none !important;
    line-height: 1.2 !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
}
body.woocommerce-cart .wc-block-cart__submit-button:hover {
    background: var(--bd-gold, #c9a961) !important;
    color: var(--bd-ink, #1a1a1a) !important;
}
body.woocommerce-cart .wc-block-cart__submit-button .wc-block-components-button__text {
    color: inherit !important;
    font-family: inherit !important;
    font-size: inherit !important;
    letter-spacing: inherit !important;
    font-weight: inherit !important;
    text-transform: inherit !important;
}

/* =====================================================
   ÚLTIMA LÍNEA DE DEFENSA — anti-overflow brutal en mobile
   Aplica padding-left mediante reset cascada total.
   ===================================================== */
@media (max-width: 900px) {
    /* Reset cualquier margen negativo / transform / position absolute en cart */
    body.woocommerce-cart .wp-block-woocommerce-cart,
    body.woocommerce-cart .wp-block-woocommerce-cart *,
    body.woocommerce-cart [class*="wp-block-woocommerce-cart"],
    body.woocommerce-cart [class*="wp-block-woocommerce-cart"] * {
        margin-left: 0 !important;
        margin-right: 0 !important;
        margin-inline-start: 0 !important;
        margin-inline-end: 0 !important;
        transform: none !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
    }

    /* El sidebar de totals: card centrada con padding propio,
       NO depende del padding del padre */
    body.woocommerce-cart .wp-block-woocommerce-cart-totals-block {
        display: block !important;
        width: calc(100% - 32px) !important;
        margin: 18px 16px !important;
        padding: 22px !important;
        background: #fff !important;
        border-radius: 4px !important;
        border-top: 3px solid var(--bd-gold, #c9a961) !important;
        box-shadow: 0 4px 14px rgba(26,26,26,0.06) !important;
        box-sizing: border-box !important;
    }

    /* Items block también con su propio padding lateral */
    body.woocommerce-cart .wp-block-woocommerce-cart-items-block {
        display: block !important;
        width: 100% !important;
        padding: 0 16px !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }

    /* Proceed to checkout: container con margin y padding propios */
    body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block {
        display: block !important;
        width: calc(100% - 32px) !important;
        margin: 16px 16px 24px 16px !important;
        padding: 0 !important;
        box-sizing: border-box !important;
    }
    body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block > * {
        margin: 0 !important;
    }
    body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block a,
    body.woocommerce-cart .wp-block-woocommerce-proceed-to-checkout-block button {
        display: block !important;
        width: 100% !important;
        max-width: 100% !important;
        margin: 0 !important;
        padding: 18px 12px !important;
        box-sizing: border-box !important;
        text-align: center !important;
        background: var(--bd-ink, #1a1a1a) !important;
        color: var(--bd-gold, #c9a961) !important;
        font-family: var(--bd-serif, Georgia, serif) !important;
        font-size: 14px !important;
        letter-spacing: 2px !important;
        text-transform: uppercase !important;
        font-weight: 700 !important;
        border-radius: 2px !important;
        border: 2px solid var(--bd-ink, #1a1a1a) !important;
        text-decoration: none !important;
        line-height: 1.2 !important;
    }
}

/* === Headings principales === */
.wc-block-cart h1,
.wc-block-checkout h1,
.wc-block-components-checkout-step__title,
.wc-block-cart__totals-title,
.wc-block-components-totals-wrapper .wc-block-components-totals-item__label {
    font-family: var(--bd-serif, Georgia, serif) !important;
    color: var(--bd-ink, #1a1a1a) !important;
}
.wc-block-components-checkout-step__title {
    font-size: 1.25rem !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-weight: 700 !important;
}

/* === Cart items: cards en lugar de tabla === */
.wc-block-cart-items {
    border: none !important;
}
.wc-block-cart-items__header {
    display: none !important;
}
.wc-block-cart-items__row,
tr.wc-block-cart-items__row {
    display: grid !important;
    grid-template-columns: 88px 1fr auto !important;
    grid-template-rows: auto auto auto !important;
    gap: 4px 16px !important;
    padding: 18px 0 !important;
    border-bottom: 1px solid rgba(26,26,26,0.10) !important;
    background: transparent !important;
    align-items: start !important;
}
.wc-block-cart-item__image,
.wc-block-cart-items__row td.wc-block-cart-item__image {
    grid-row: 1 / 4 !important;
    grid-column: 1 !important;
    width: 88px !important;
    padding: 0 !important;
}
.wc-block-cart-item__image img {
    width: 88px !important;
    height: auto !important;
    border-radius: 4px !important;
    display: block;
}
.wc-block-cart-item__product,
.wc-block-cart-items__row td.wc-block-cart-item__product {
    grid-row: 1 !important;
    grid-column: 2 / 4 !important;
    padding: 0 !important;
}
.wc-block-cart-item__product-name,
.wc-block-components-product-name {
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    color: var(--bd-ink, #1a1a1a) !important;
    line-height: 1.25 !important;
    text-decoration: none !important;
    display: block !important;
}
.wc-block-cart-item__product-variation,
.wc-block-components-product-details {
    font-size: 12px !important;
    color: var(--bd-muted, #888) !important;
    margin-top: 4px !important;
    font-weight: 400 !important;
}
.wc-block-cart-item__quantity,
.wc-block-cart-items__row td.wc-block-cart-item__quantity {
    grid-row: 2 !important;
    grid-column: 2 !important;
    padding: 8px 0 0 0 !important;
    text-align: left !important;
}
.wc-block-components-quantity-selector {
    display: inline-flex !important;
    border: 1.5px solid var(--bd-ink, #1a1a1a) !important;
    border-radius: 2px !important;
    overflow: hidden;
    background: #fff !important;
}
.wc-block-components-quantity-selector__input {
    border: none !important;
    width: 44px !important;
    text-align: center !important;
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    padding: 6px 0 !important;
    background: transparent !important;
}
.wc-block-components-quantity-selector__button {
    border: none !important;
    background: transparent !important;
    width: 32px !important;
    padding: 0 !important;
    font-size: 18px !important;
    color: var(--bd-ink, #1a1a1a) !important;
}
.wc-block-cart-item__remove-link,
.wc-block-cart-item__total .wc-block-cart-item__remove-link {
    font-size: 11px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--bd-muted, #888) !important;
    text-decoration: none !important;
    margin-top: 6px !important;
    display: inline-block;
}
.wc-block-cart-item__remove-link:hover {
    color: #d4516b !important;
}
.wc-block-cart-item__total,
.wc-block-cart-items__row td.wc-block-cart-item__total {
    grid-row: 1 !important;
    grid-column: 3 !important;
    padding: 0 !important;
    text-align: right !important;
}
.wc-block-cart-item__total .wc-block-components-product-price__value,
.wc-block-cart-item__total .wc-block-formatted-money-amount {
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    color: var(--bd-gold, #c9a961) !important;
}

/* === Layout 2 columnas en cart (items izq, totals der) === */
.wp-block-woocommerce-cart .wc-block-cart {
    display: grid !important;
    grid-template-columns: 1fr 360px !important;
    gap: 32px !important;
}
.wc-block-cart__main {
    grid-column: 1 !important;
    min-width: 0 !important;
}
.wc-block-cart__sidebar {
    grid-column: 2 !important;
    min-width: 0 !important;
    position: sticky !important;
    top: 24px !important;
    align-self: start !important;
}
@media (max-width: 900px) {
    .wp-block-woocommerce-cart .wc-block-cart {
        grid-template-columns: 1fr !important;
    }
    .wc-block-cart__sidebar {
        grid-column: 1 !important;
        position: static !important;
    }
}

/* === Sidebar de totales (cart + checkout) === */
.wc-block-cart__sidebar,
.wc-block-checkout__sidebar,
.wc-block-components-sidebar {
    background: #faf6f0 !important;
    padding: 22px !important;
    border-radius: 4px !important;
    border-top: 3px solid var(--bd-gold, #c9a961) !important;
    box-shadow: 0 4px 14px rgba(26,26,26,0.06) !important;
    box-sizing: border-box !important;
}
.wc-block-cart__totals-title,
.wc-block-checkout__sidebar h2 {
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 1.1rem !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    color: var(--bd-ink, #1a1a1a) !important;
    margin: 0 0 14px 0 !important;
    font-weight: 700 !important;
}
.wc-block-components-totals-item {
    padding: 8px 0 !important;
    font-family: var(--bd-sans, sans-serif) !important;
    font-size: 14px !important;
    color: var(--bd-ink, #1a1a1a) !important;
    display: flex !important;
    justify-content: space-between !important;
    border-bottom: 1px solid rgba(26,26,26,0.08) !important;
}
.wc-block-components-totals-item__label {
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    font-size: 12px !important;
    color: var(--bd-muted, #888) !important;
    font-weight: 700 !important;
}
.wc-block-components-totals-item__value {
    font-weight: 600 !important;
    color: var(--bd-ink, #1a1a1a) !important;
}
.wc-block-components-totals-footer-item,
.wc-block-components-totals-item.wc-block-components-totals-footer-item {
    padding: 14px 0 !important;
    border-top: 2px solid var(--bd-ink, #1a1a1a) !important;
    border-bottom: none !important;
    margin-top: 8px !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label {
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 14px !important;
    color: var(--bd-ink, #1a1a1a) !important;
}
.wc-block-components-totals-footer-item .wc-block-components-totals-item__value,
.wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 22px !important;
    color: var(--bd-gold, #c9a961) !important;
    font-weight: 700 !important;
}

/* === Cupón en sidebar === */
.wc-block-components-totals-coupon {
    border-bottom: 1px solid rgba(26,26,26,0.08) !important;
    padding: 8px 0 !important;
}
.wc-block-components-totals-coupon-link,
.wc-block-components-panel__button {
    font-family: var(--bd-sans, sans-serif) !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    color: var(--bd-ink, #1a1a1a) !important;
    text-decoration: none !important;
    font-weight: 700 !important;
    padding: 8px 0 !important;
}
.wc-block-components-totals-coupon__form {
    display: flex !important;
    gap: 8px !important;
    margin-top: 10px !important;
}
.wc-block-components-totals-coupon__input {
    flex: 1 !important;
    min-width: 0 !important;
}
.wc-block-components-totals-coupon__button {
    flex-shrink: 0 !important;
}

/* === Inputs de texto en block checkout === */
.wc-block-components-text-input,
.wc-block-components-textarea {
    margin-bottom: 14px !important;
}
.wc-block-components-text-input input,
.wc-block-components-textarea textarea,
input.wc-block-components-text-input__input {
    border: 1.5px solid rgba(26,26,26,0.18) !important;
    border-radius: 3px !important;
    padding: 14px 14px 6px !important;
    font-size: 15px !important;
    font-family: var(--bd-sans, sans-serif) !important;
    color: var(--bd-ink, #1a1a1a) !important;
    background: #fff !important;
    width: 100% !important;
    box-sizing: border-box !important;
    transition: border-color 0.2s;
}
.wc-block-components-text-input input:focus,
input.wc-block-components-text-input__input:focus {
    outline: none !important;
    border-color: var(--bd-gold, #c9a961) !important;
    box-shadow: 0 0 0 3px rgba(201,169,97,0.18) !important;
}
.wc-block-components-text-input label,
.wc-block-components-text-input__label {
    font-family: var(--bd-sans, sans-serif) !important;
    color: var(--bd-muted, #888) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

/* === Select / Country / Region === */
.wc-block-components-combobox .components-form-token-field__input-container,
.wc-block-components-form .components-base-control__field {
    border: 1.5px solid rgba(26,26,26,0.18) !important;
    border-radius: 3px !important;
}

/* === Botón "Realizar pedido" === */
.wc-block-components-checkout-place-order-button,
.wc-block-components-button.contained,
button.wc-block-cart__submit-button,
.wc-block-cart__submit-button {
    background: var(--bd-ink, #1a1a1a) !important;
    color: var(--bd-gold, #c9a961) !important;
    font-family: var(--bd-serif, Georgia, serif) !important;
    font-size: 14px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    font-weight: 700 !important;
    padding: 18px 24px !important;
    border-radius: 2px !important;
    border: 2px solid var(--bd-ink, #1a1a1a) !important;
    box-shadow: 0 4px 14px rgba(26,26,26,0.18) !important;
    width: 100% !important;
    transition: all 0.25s ease !important;
    cursor: pointer !important;
    height: auto !important;
    line-height: 1.2 !important;
    margin-top: 16px !important;
}
.wc-block-components-checkout-place-order-button:hover,
.wc-block-cart__submit-button:hover {
    background: var(--bd-gold, #c9a961) !important;
    color: var(--bd-ink, #1a1a1a) !important;
    transform: translateY(-1px);
}
.wc-block-components-checkout-place-order-button:disabled,
.wc-block-cart__submit-button:disabled {
    opacity: 0.55 !important;
    cursor: not-allowed !important;
}

/* === Checkout steps === */
.wc-block-components-checkout-step {
    margin-bottom: 28px !important;
    padding: 22px !important;
    background: #fff !important;
    border-radius: 4px !important;
    box-shadow: 0 2px 10px rgba(26,26,26,0.04) !important;
}
.wc-block-components-checkout-step__heading {
    margin: 0 0 8px 0 !important;
}
.wc-block-components-checkout-step__description {
    font-size: 13px !important;
    color: var(--bd-muted, #888) !important;
    margin-bottom: 16px !important;
}

/* === Order summary item en checkout === */
.wc-block-components-order-summary-item {
    padding: 12px 0 !important;
    border-bottom: 1px solid rgba(26,26,26,0.08) !important;
    display: flex !important;
    gap: 12px !important;
}
.wc-block-components-order-summary-item__image {
    flex: 0 0 56px !important;
}
.wc-block-components-order-summary-item__image img {
    width: 56px !important;
    height: auto !important;
    border-radius: 3px !important;
}
.wc-block-components-order-summary-item__description {
    flex: 1 !important;
    font-size: 13px !important;
    line-height: 1.4 !important;
}
.wc-block-components-order-summary-item__total-price {
    font-family: var(--bd-serif, Georgia, serif) !important;
    color: var(--bd-gold, #c9a961) !important;
    font-weight: 700 !important;
}

/* === Mobile fixes específicos para WC Blocks === */
@media (max-width: 768px) {
    body.woocommerce-cart,
    body.woocommerce-checkout {
        overflow-x: hidden !important;
    }
    .wp-block-woocommerce-cart,
    .wp-block-woocommerce-checkout,
    .wc-block-cart,
    .wc-block-checkout {
        padding: 0 12px !important;
        margin: 16px 0 !important;
        max-width: 100vw !important;
    }
    .wc-block-cart__sidebar,
    .wc-block-checkout__sidebar,
    .wc-block-components-sidebar {
        padding: 18px !important;
        margin-top: 16px !important;
    }
    .wc-block-cart-items__row,
    tr.wc-block-cart-items__row {
        grid-template-columns: 70px 1fr auto !important;
        gap: 4px 12px !important;
        padding: 14px 0 !important;
    }
    .wc-block-cart-item__image img {
        width: 70px !important;
    }
    .wc-block-cart-item__product-name,
    .wc-block-components-product-name {
        font-size: 14px !important;
    }
    .wc-block-cart-item__total .wc-block-formatted-money-amount {
        font-size: 15px !important;
    }
    .wc-block-components-checkout-step {
        padding: 16px !important;
    }
    .wc-block-components-totals-footer-item .wc-block-formatted-money-amount {
        font-size: 19px !important;
    }
}

/* === Background general en cart y checkout === */
body.woocommerce-cart,
body.woocommerce-checkout {
    background: var(--bd-bg, #faf6f0) !important;
}


:root {
    --bd-bg:        #faf6f0;
    --bd-card:      #ffffff;
    --bd-ink:       #1a1a1a;
    --bd-ink-soft:  #4a4a4a;
    --bd-muted:     #888888;
    --bd-gold:      #c9a961;
    --bd-gold-dark: #a88a45;
    --bd-line:      rgba(26,26,26,0.12);
    --bd-serif:     Georgia, 'Times New Roman', 'Cormorant Garamond', serif;
    --bd-sans:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, system-ui, sans-serif;
}

/* === Background general de la single product === */
body.single-product {
    background: var(--bd-bg) !important;
}

/* === Contenedor del producto === */
body.single-product div.product,
body.single-product .product.type-product {
    max-width: 1180px;
    margin: 40px auto !important;
    padding: 48px !important;
    background: var(--bd-card) !important;
    box-shadow: 0 20px 60px rgba(26,26,26,0.08), 0 4px 12px rgba(26,26,26,0.04);
    border-radius: 6px;
    border-top: 4px solid var(--bd-gold);
    position: relative;
}

/* Decoración esquina superior derecha */
body.single-product div.product::before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, transparent 50%, rgba(201,169,97,0.06) 50%);
    pointer-events: none;
}

/* === Galería de imagen === */
body.single-product .woocommerce-product-gallery {
    padding: 0;
    background: var(--bd-ink);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 12px 32px rgba(26,26,26,0.18);
}
body.single-product .woocommerce-product-gallery__image img {
    border-radius: 0 !important;
    display: block;
    width: 100%;
    height: auto;
}
body.single-product .woocommerce-product-gallery__trigger {
    background: rgba(0,0,0,0.65) !important;
    color: #fff !important;
    border-radius: 50% !important;
    width: 38px !important;
    height: 38px !important;
    line-height: 38px !important;
    text-align: center !important;
    top: 12px !important;
    right: 12px !important;
}

/* === Banner del evento (custom hook) === */
.bd-event-banner {
    background: linear-gradient(135deg, var(--bd-ink) 0%, #2a2a2a 100%);
    color: #fff;
    padding: 24px 26px;
    margin: 0 0 28px 0;
    border-radius: 4px;
    border-left: 4px solid var(--bd-gold);
    position: relative;
    overflow: hidden;
}
.bd-event-banner::after {
    content: "";
    position: absolute;
    bottom: -40px;
    right: -40px;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(201,169,97,0.12), transparent 70%);
}
.bd-event-banner__label {
    font-family: var(--bd-sans);
    font-size: 11px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--bd-gold);
    margin-bottom: 8px;
    font-weight: 700;
}
.bd-event-banner__title {
    font-family: var(--bd-serif);
    font-size: 1.6rem;
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 12px;
    color: #fff;
}
.bd-event-banner__meta {
    font-family: var(--bd-sans);
    font-size: 14px;
    color: rgba(255,255,255,0.85);
    margin-bottom: 6px;
    text-transform: capitalize;
}
.bd-event-banner__sep {
    margin: 0 8px;
    color: var(--bd-gold);
}
.bd-event-banner__venue {
    font-family: var(--bd-sans);
    font-size: 13px;
    color: rgba(255,255,255,0.7);
    margin-top: 8px;
    line-height: 1.5;
}

/* === Título del producto === */
body.single-product .product_title.entry-title {
    font-family: var(--bd-serif) !important;
    font-size: 2.4rem !important;
    line-height: 1.1 !important;
    font-weight: 700 !important;
    color: var(--bd-ink) !important;
    margin: 0 0 14px 0 !important;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* === Precio === */
body.single-product .price,
body.single-product p.price {
    font-family: var(--bd-serif) !important;
    font-size: 2rem !important;
    font-weight: 700 !important;
    color: var(--bd-gold) !important;
    margin: 0 0 28px 0 !important;
    padding-bottom: 24px;
    border-bottom: 1px solid var(--bd-line);
}
body.single-product .price ins {
    text-decoration: none !important;
    color: var(--bd-gold) !important;
}
body.single-product .price del {
    color: var(--bd-muted) !important;
    font-size: 1.2rem !important;
    margin-right: 12px;
}
body.single-product .price .woocommerce-Price-currencySymbol {
    font-size: 1.4rem;
    vertical-align: top;
    margin-right: 4px;
}

/* === Descripción corta === */
body.single-product .woocommerce-product-details__short-description {
    font-family: var(--bd-sans) !important;
    font-size: 15px !important;
    line-height: 1.75 !important;
    color: var(--bd-ink-soft) !important;
    margin-bottom: 32px !important;
}
body.single-product .woocommerce-product-details__short-description p {
    margin-bottom: 12px;
}
body.single-product .woocommerce-product-details__short-description strong {
    color: var(--bd-ink) !important;
    font-weight: 600 !important;
}

/* === Variaciones === */
body.single-product .variations {
    margin: 0 0 28px 0 !important;
}
body.single-product .variations th,
body.single-product .variations td {
    background: transparent !important;
    border: none !important;
    padding: 8px 0 !important;
}
body.single-product .variations label {
    font-family: var(--bd-sans) !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    color: var(--bd-muted) !important;
    font-weight: 700 !important;
}
body.single-product .variations select {
    width: 100% !important;
    padding: 12px 14px !important;
    border: 1px solid var(--bd-line) !important;
    border-radius: 2px !important;
    font-family: var(--bd-sans) !important;
    font-size: 15px !important;
    color: var(--bd-ink) !important;
    background: #fff !important;
    transition: border-color 0.2s ease;
}
body.single-product .variations select:focus {
    outline: none !important;
    border-color: var(--bd-gold) !important;
}
body.single-product .single_variation_wrap .woocommerce-variation-price {
    font-family: var(--bd-serif) !important;
    font-size: 1.8rem !important;
    color: var(--bd-gold) !important;
    margin: 14px 0 !important;
    font-weight: 700;
}
body.single-product .reset_variations {
    font-size: 11px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--bd-muted) !important;
    text-decoration: none !important;
}

/* === Selector de cantidad === */
body.single-product .quantity {
    display: inline-block !important;
    margin-right: 14px !important;
    vertical-align: middle;
}
body.single-product .quantity input.qty {
    border: 1.5px solid var(--bd-ink) !important;
    border-radius: 2px !important;
    font-family: var(--bd-serif) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    padding: 14px 10px !important;
    background: #fff !important;
    width: 70px !important;
    text-align: center !important;
    color: var(--bd-ink) !important;
}

/* === Botón principal "Reservar mi boleto" === */
body.single-product .single_add_to_cart_button,
body.single-product .button.alt,
body.single-product .button.bd-button {
    background: var(--bd-ink) !important;
    color: var(--bd-gold) !important;
    font-family: var(--bd-serif) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    padding: 18px 36px !important;
    border-radius: 2px !important;
    border: 2px solid var(--bd-ink) !important;
    box-shadow: 0 4px 14px rgba(26,26,26,0.18) !important;
    transition: all 0.25s ease !important;
    text-shadow: none !important;
    cursor: pointer;
    vertical-align: middle;
}
body.single-product .single_add_to_cart_button:hover,
body.single-product .button.alt:hover {
    background: var(--bd-gold) !important;
    color: var(--bd-ink) !important;
    border-color: var(--bd-gold) !important;
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(201,169,97,0.35) !important;
}

/* === Botón pequeño del aviso "Confirmar boleto" === */
.woocommerce-message .bd-button,
.woocommerce-message .button.wc-forward {
    background: var(--bd-ink) !important;
    color: var(--bd-gold) !important;
    font-family: var(--bd-serif) !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    border: none !important;
    padding: 12px 22px !important;
}

/* === Categoría / SKU === */
body.single-product .product_meta {
    margin-top: 28px !important;
    padding-top: 22px !important;
    border-top: 1px solid var(--bd-line) !important;
    font-family: var(--bd-sans) !important;
}
body.single-product .product_meta > span {
    display: block;
    font-size: 11px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--bd-muted);
    margin-bottom: 6px;
}
body.single-product .product_meta a {
    color: var(--bd-ink) !important;
    text-decoration: none !important;
    border-bottom: 1px solid var(--bd-gold);
    transition: color 0.2s;
}
body.single-product .product_meta a:hover {
    color: var(--bd-gold) !important;
}

/* === Pestañas Descripción/Valoraciones === */
body.single-product .woocommerce-tabs {
    margin-top: 48px !important;
}
body.single-product .woocommerce-tabs ul.tabs {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 0 0 0 !important;
    border-bottom: 2px solid var(--bd-line) !important;
    display: flex;
    gap: 32px;
}
body.single-product .woocommerce-tabs ul.tabs::before,
body.single-product .woocommerce-tabs ul.tabs::after {
    display: none !important;
}
body.single-product .woocommerce-tabs ul.tabs li {
    background: transparent !important;
    border: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border-radius: 0 !important;
    position: relative;
}
body.single-product .woocommerce-tabs ul.tabs li a {
    padding: 16px 0 !important;
    font-family: var(--bd-serif) !important;
    font-size: 13px !important;
    letter-spacing: 3px !important;
    text-transform: uppercase !important;
    color: var(--bd-muted) !important;
    text-decoration: none !important;
    border: none !important;
    background: transparent !important;
    font-weight: 700;
    transition: color 0.2s;
}
body.single-product .woocommerce-tabs ul.tabs li.active a,
body.single-product .woocommerce-tabs ul.tabs li:hover a {
    color: var(--bd-ink) !important;
}
body.single-product .woocommerce-tabs ul.tabs li.active::after {
    content: "";
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--bd-gold);
}
body.single-product .woocommerce-tabs .panel {
    padding: 32px 0 !important;
    border: none !important;
    background: transparent !important;
    font-family: var(--bd-sans);
    font-size: 15px;
    line-height: 1.75;
    color: var(--bd-ink-soft);
}
body.single-product .woocommerce-tabs .panel h2 {
    font-family: var(--bd-serif) !important;
    font-size: 1.6rem !important;
    color: var(--bd-ink) !important;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 18px !important;
}

/* === Sección de productos relacionados === */
body.single-product .related.products,
body.single-product .upsells.products {
    margin-top: 64px !important;
    padding-top: 48px !important;
    border-top: 1px solid var(--bd-line);
    clear: both;
}
body.single-product .related.products > h2,
body.single-product .upsells.products > h2 {
    font-family: var(--bd-serif) !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    text-align: center !important;
    color: var(--bd-ink) !important;
    margin: 0 auto 40px auto !important;
    position: relative;
    padding-bottom: 20px;
}
body.single-product .related.products > h2::after,
body.single-product .upsells.products > h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: var(--bd-gold);
}

/* === Cards de productos relacionados === */
body.single-product .related.products ul.products li.product,
body.single-product .upsells.products ul.products li.product {
    background: #fff;
    padding: 12px 12px 20px 12px !important;
    border-radius: 4px;
    box-shadow: 0 6px 20px rgba(26,26,26,0.06);
    transition: all 0.3s ease;
    text-align: center;
}
body.single-product .related.products ul.products li.product:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 32px rgba(26,26,26,0.12);
}
body.single-product .related.products ul.products li.product img,
body.single-product .upsells.products ul.products li.product img {
    border-radius: 2px !important;
    margin-bottom: 14px !important;
}
body.single-product .related.products ul.products li.product .woocommerce-loop-product__title,
body.single-product .upsells.products ul.products li.product .woocommerce-loop-product__title {
    font-family: var(--bd-serif) !important;
    font-size: 1.05rem !important;
    font-weight: 700 !important;
    color: var(--bd-ink) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin: 0 0 10px 0 !important;
    padding: 0 8px;
    line-height: 1.25;
}
body.single-product .related.products ul.products li.product .price,
body.single-product .upsells.products ul.products li.product .price {
    font-family: var(--bd-serif) !important;
    font-size: 1.15rem !important;
    color: var(--bd-gold) !important;
    border: none !important;
    padding: 0 !important;
    margin: 0 0 14px 0 !important;
}
body.single-product .related.products ul.products li.product .button,
body.single-product .upsells.products ul.products li.product .button {
    background: var(--bd-ink) !important;
    color: var(--bd-gold) !important;
    font-family: var(--bd-serif) !important;
    font-size: 11px !important;
    letter-spacing: 2px !important;
    text-transform: uppercase !important;
    padding: 10px 18px !important;
    border-radius: 2px !important;
    border: 2px solid var(--bd-ink) !important;
    transition: all 0.25s ease !important;
    margin: 0 !important;
}
body.single-product .related.products ul.products li.product .button:hover,
body.single-product .upsells.products ul.products li.product .button:hover {
    background: var(--bd-gold) !important;
    color: var(--bd-ink) !important;
    border-color: var(--bd-gold) !important;
}

/* === Breadcrumbs === */
body.single-product .woocommerce-breadcrumb {
    font-family: var(--bd-sans) !important;
    font-size: 12px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    color: var(--bd-muted) !important;
    padding: 22px 0 !important;
    max-width: 1180px;
    margin: 0 auto !important;
}
body.single-product .woocommerce-breadcrumb a {
    color: var(--bd-muted) !important;
    text-decoration: none !important;
}
body.single-product .woocommerce-breadcrumb a:hover {
    color: var(--bd-gold) !important;
}

/* === Notices del carrito === */
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
    background: #fff !important;
    border: none !important;
    border-left: 4px solid var(--bd-gold) !important;
    color: var(--bd-ink) !important;
    font-family: var(--bd-sans) !important;
    padding: 18px 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 4px 14px rgba(26,26,26,0.05);
    border-radius: 2px;
}
.woocommerce-message::before {
    color: var(--bd-gold) !important;
}

/* === Mobile responsive === */
@media (max-width: 768px) {
    body.single-product div.product {
        margin: 16px !important;
        padding: 24px !important;
    }
    body.single-product .product_title.entry-title {
        font-size: 1.7rem !important;
    }
    body.single-product .price {
        font-size: 1.6rem !important;
    }
    .bd-event-banner__title {
        font-size: 1.3rem;
    }
    body.single-product .woocommerce-tabs ul.tabs {
        gap: 20px;
        overflow-x: auto;
    }
    body.single-product .woocommerce-tabs ul.tabs li a {
        font-size: 11px !important;
        white-space: nowrap;
    }
    body.single-product .related.products ul.products,
    body.single-product .upsells.products ul.products {
        display: grid !important;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
    body.single-product .related.products ul.products li.product,
    body.single-product .upsells.products ul.products li.product {
        width: auto !important;
        margin: 0 !important;
        float: none !important;
    }
}

/* ============================================================
   v17 — STOCK URGENCY + EVENT EXPIRY (2026-05-23)
   ============================================================ */
.bd-stock {
    display: inline-block;
    margin: 14px 0 8px;
    padding: 8px 16px;
    border-radius: 4px;
    font: 600 13px/1 system-ui, -apple-system, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
}
.bd-stock--low {
    background: #fff4e0;
    color: #b07000;
    border: 1px solid #e6c47a;
}
.bd-stock--last {
    background: #c9a961;
    color: #1a1a1a;
    animation: bd-pulse 1.6s ease-in-out infinite;
}
.bd-stock--sold-out {
    background: #1a1a1a;
    color: #c9a961;
    border: 1px solid #c9a961;
    letter-spacing: 3px;
}
@keyframes bd-pulse {
    0%, 100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.03); opacity: .9; }
}

.bd-event-soon {
    display: inline-block;
    margin: 14px 0 8px;
    padding: 9px 18px;
    background: linear-gradient(135deg, #c9a961, #d4b777);
    color: #1a1a1a;
    font: 700 14px system-ui, -apple-system, sans-serif;
    border-radius: 4px;
    letter-spacing: .5px;
    box-shadow: 0 2px 8px rgba(201, 169, 97, 0.3);
}

.bd-event-expired {
    margin: 18px 0;
    padding: 16px 20px;
    background: #f5f5f5;
    border-left: 4px solid #999;
    color: #555;
    font: 15px/1.5 system-ui;
    border-radius: 4px;
}
.bd-event-expired a {
    color: #c9a961;
    font-weight: 600;
}

@media (prefers-color-scheme: dark) {
    .bd-event-expired {
        background: #2a2a2a;
        color: #aaa;
    }
}
