/* ==========================================================================
   Ficha de producto — bloque de precio + compra (maqueta Ómnibus, opción A)
   Reordena y estila el bloque existente SIN tocar su funcionalidad:
   - Precio grande morado, tachado a su derecha, badge -% empujado a la derecha.
   - Línea legal Ómnibus debajo del precio.
   - Cantidad a la IZQUIERDA del botón COMPRAR, en caja bordeada.
   Solo se carga en product_info.php.
   ========================================================================== */

/* ---------- Fila de precio ---------- */
.product-sheet__prices-wrapper {
    display: flex;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 4px;
}
.product-sheet__prices-wrapper .product-sheet__prices--actual {
    order: 1;
    font-size: 42px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -.02em;
    color: #b957c5;
    background: none;
    padding: 0;
}
.product-sheet__prices-wrapper .product-sheet__prices--before {
    order: 2;
    padding: 0 0 4px;
    font-size: 15px;
    color: #8c8091;
    text-decoration: line-through;
}
.product-sheet__prices-wrapper .product-sheet__prices--discount {
    order: 3;
    margin-left: auto;
    align-self: center;
    background: #b957c5;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 0;
}
.product-sheet__prices-wrapper .mq-price__legal {
    order: 4;
    flex-basis: 100%;
    margin-top: 2px;
}

/* Cuenta atrás de la oferta: línea de texto morada, sin caja */
.product-sheet__special-expire {
    background: none;
    padding: 0;
    margin: 0 0 6px;
    font-size: 12.5px;
    font-weight: 600;
    color: #b957c5;
}
.product-sheet__special-expire span,
.product-sheet__special-expire label {
    color: #b957c5;
    font-size: 12.5px;
    font-weight: 600;
    background: none;
    padding: 0;
}

/* Margen hacia abajo del bloque de precio */
.product-sheet__price {
    margin-bottom: 18px;
}

/* ---------- Cantidad + COMPRAR en la misma fila ---------- */
.product-sheet__buy {
    display: flex;
    align-items: stretch;
    gap: 10px;
    margin-top: 18px;
}
.product-sheet__buy .product-sheet__amount {
    display: flex;
    align-items: center;
    height: 54px;
    width: 132px;
    max-width: none;
    gap: 0;
    align-self: stretch;
    flex: none;
    border: 1px solid #0a0a0a;
    margin: 0;
    padding: 0;
}
.product-sheet__buy .product-sheet__amount.xfcant input {
    flex: 1;
    width: 40px;
    height: 100%;
    border: 0;
    text-align: center;
    font-size: 15px;
    font-weight: 600;
    color: #0a0a0a;
    background: none;
    -moz-appearance: textfield;
    order: 2;
}
.product-sheet__buy .product-sheet__amount input::-webkit-outer-spin-button,
.product-sheet__buy .product-sheet__amount input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Flechas del widget xfcant como − / + a los lados */
.product-sheet__buy .product-sheet__amount .up,
.product-sheet__buy .product-sheet__amount .down {
    width: 40px;
    height: 100%;
    flex: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #0a0a0a;
    font-size: 18px;
    transform: none;
}
.product-sheet__buy .product-sheet__amount .down { order: 1; }
.product-sheet__buy .product-sheet__amount .up { order: 3; }
.product-sheet__buy .product-sheet__amount.xfcant .up::before,
.product-sheet__buy .product-sheet__amount.xfcant .down::before {
    font-family: Poppins, Helvetica, Arial, sans-serif;
    font-weight: 400;
}
.product-sheet__buy .product-sheet__amount.xfcant .up::before { content: "+"; }
.product-sheet__buy .product-sheet__amount.xfcant .down::before { content: "\2212"; }

/* Botón COMPRAR ocupando el resto de la fila */
.product-sheet__buy .product-sheet__buy-button {
    flex: 1;
    height: 54px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0a0a0a;
    color: #fff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    margin: 0;
}
.product-sheet__buy .product-sheet__buy-button:hover {
    background: #b957c5;
}

/* Cantidad móvil (desplegable + input "Más..."): oculta en escritorio */
.product-sheet__qty-select,
.product-sheet__qty-input {
    display: none;
}

/* Toast del límite de unidades: más ancho que el default de jquery.toast */
.jq-toast-wrap.bottom-left {
    width: 420px;
    max-width: calc(100vw - 40px);
}
.jq-toast-wrap.bottom-left .jq-toast-single {
    font-size: 15px;
    line-height: 1.6;
    padding: 14px 18px;
    border-radius: 6px;
}

/* Aviso de límite de unidades (fallback sin $.toast) */
.qty-limit-toast {
    margin-top: 10px;
    padding: 10px 14px;
    background: #fbeef8;
    border: 1px solid #b957c5;
    color: #6d2a75;
    font-size: 13px;
    line-height: 1.5;
}

/* ---------- Móvil (≤ 767 px) ---------- */
@media (max-width: 767px) {
    .product-sheet__prices-wrapper .product-sheet__prices--actual { font-size: 38px; }
    .product-sheet__prices-wrapper .product-sheet__prices--discount { font-size: 15px; padding: 5px 11px; }

    /* Cantidad + COMPRAR + wishlist compartiendo línea; stretch para que el
       select/input midan SIEMPRE lo mismo que el botón COMPRAR */
    .product-sheet__buy { flex-wrap: nowrap; gap: 10px; align-items: stretch; }
    .product-sheet__buy .product-sheet__amount { display: none; }

    .product-sheet__qty-select {
        display: block;
        flex: none;
        width: 104px;
        height: auto;
        align-self: stretch;
        min-height: 48px;
        border: 1px solid #0a0a0a;
        border-radius: 0;
        font-size: 15px;
        font-weight: 600;
        color: #0a0a0a;
        padding: 0 26px 0 16px;
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
        background: #fff url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%230a0a0a' stroke-width='1.8'/%3E%3C/svg%3E") no-repeat right 10px center;
        background-size: 12px 8px;
    }
    .product-sheet__qty-input {
        flex: none;
        width: 92px;
        height: auto;
        align-self: stretch;
        min-height: 48px;
        border: 1px solid #0a0a0a;
        border-radius: 0;
        text-align: center;
        font-size: 15px;
        font-weight: 600;
        color: #0a0a0a;
        -moz-appearance: textfield;
    }
    .product-sheet__qty-input::-webkit-outer-spin-button,
    .product-sheet__qty-input::-webkit-inner-spin-button {
        -webkit-appearance: none;
        margin: 0;
    }

    .product-sheet__buy .product-sheet__buy-button {
        flex: 1 1 auto;
        min-width: 0;
        height: 48px;
        font-size: 15px;
        padding: 10px 12px;
    }
}
