/* Ficha de producto — bloque precios contado / cuotas (BS5) */

.product .producto-precios {
    --pp-radius: 12px;
    --pp-blue: #2f78ff;
    --pp-blue-dark: #066ec3;
    --pp-green: #00f535;
    --pp-green-dark: #00d435;
    --pp-orange: #ffab00;
    --pp-orange-dark: #ff7700;
    --pp-surface: #f8f9fb;
    --pp-border: #e8ecf2;
    --pp-text: #1a1d21;
    --pp-muted: #5c6570;
}

.product .producto-precios__row > .col {
    min-width: 0;
}

.product .producto-precios__card {
    background: var(--pp-surface);
    border: 1px solid var(--pp-border);
    border-radius: var(--pp-radius);
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(6, 110, 195, 0.06);
}

.product .producto-precios__card--contado,
.product .producto-precios__card--cuotas {
    isolation: isolate;
}

.product .producto-precios__head {
    flex-shrink: 0;
    min-height: 2.6rem;
    border-radius: calc(var(--pp-radius) - 1px) calc(var(--pp-radius) - 1px) 0 0;
    overflow: hidden;
    align-items: stretch;
}

.product .producto-precios__head--contado {
    background: linear-gradient(139deg, var(--pp-green) 0%, var(--pp-green-dark) 100%);
}

.product .producto-precios__head--cuotas {
    background: linear-gradient(139deg, var(--pp-orange) 0%, var(--pp-orange-dark) 100%);
}

.product .producto-precios__head-iconbox {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 2.75rem;
    background: rgba(255, 255, 255, 0.1);
    border-right: 1px solid rgba(255, 255, 255, 0.22);
}

.product .producto-precios__head-iconbox i {
    color: var(--pp-text);
}

.product .producto-precios__head-iconbox--contado i {
    font-size: 1.15rem;
}

.product .producto-precios__head-iconbox--cuotas i {
    font-size: 1.1rem;
}

.product .producto-precios__head-main {
    display: flex;
    align-items: center;
    padding: 0.45rem 0.55rem;
    font-size: clamp(0.72rem, 1.6vw, 0.88rem);
    font-weight: 600;
    color: var(--pp-text);
    text-align: left;
    line-height: 1.2;
    min-width: 0;
}

.product .producto-precios__head-main--contado {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 4.25rem);
    column-gap: 0.35rem;
    align-items: center;
    background: transparent;
}

.product .producto-precios__head-main--cuotas {
    background: transparent;
}

.product .producto-precios__head-title {
    min-width: 0;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: inherit;
}

.product .producto-precios__head-main--contado .producto-precios__head-title {
    grid-column: 1;
    grid-row: 1;
}

.product .producto-precios__head-main--contado .producto-precios__chip {
    grid-column: 2;
    grid-row: 1;
    align-self: center;
    justify-self: end;
    width: 100%;
    max-width: 4.25rem;
}

.product .producto-precios__chip {
    font-size: clamp(0.58rem, 1.2vw, 0.65rem);
    font-weight: 700;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--pp-blue-dark) !important;
    background: rgba(255, 255, 255, 0.92) !important;
    padding: 0.12rem 0.34rem !important;
    line-height: 1.05;
    flex-shrink: 1;
    min-width: 0;
    white-space: normal;
    text-align: center;
    overflow-wrap: break-word;
    word-break: normal;
    hyphens: none;
}

.product .producto-precios__old {
    display: block;
    color: #d62839;
    font-size: clamp(0.8rem, 2vw, 0.95rem);
    margin-bottom: 0.15rem;
    opacity: 0.9;
}

.product .producto-precios__amount-wrap {
    position: relative;
    display: inline-block;
    max-width: 100%;
    padding-right: 0.95rem;
}

.product .producto-precios__amount {
    font-size: clamp(1.35rem, 3.8vw, 1.95rem);
    font-weight: 700;
    color: var(--pp-blue);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.product .producto-precios__sin-imp-info {
    position: absolute;
    top: 0.05rem;
    right: 0;
    border: 0;
    padding: 0;
    margin: 0;
    background: transparent;
    color: #8a9199;
    font-size: 0.62rem;
    line-height: 1;
    cursor: pointer;
    opacity: 0.85;
}

.product .producto-precios__sin-imp-info:hover,
.product .producto-precios__sin-imp-info:focus-visible {
    color: var(--pp-blue-dark);
    opacity: 1;
    outline: none;
}

.product .producto-precios__sin-imp-tip {
    position: absolute;
    right: 0;
    top: calc(100% + 0.35rem);
    z-index: 2;
    visibility: hidden;
    opacity: 0;
    width: max-content;
    max-width: min(16rem, 72vw);
    padding: 0.3rem 0.5rem;
    border-radius: 5px;
    background: #1a1d21;
    color: #fff;
    font-size: 0.64rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: left;
    white-space: normal;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.18);
    pointer-events: none;
    transition: opacity 0.15s ease, visibility 0.15s ease;
}

.product .producto-precios__sin-imp-info:hover .producto-precios__sin-imp-tip,
.product .producto-precios__sin-imp-info:focus-visible .producto-precios__sin-imp-tip {
    visibility: visible;
    opacity: 1;
}

.product .producto-precios__sin-imp {
    margin-top: 0.2rem !important;
    font-size: clamp(0.62rem, 1.4vw, 0.7rem);
    font-weight: 400;
    color: #8a9199;
    line-height: 1.25;
    letter-spacing: 0.01em;
    opacity: 0.9;
}

/* Misma etiqueta que listados (categoria-producto-load-more) */
.product .producto-precios .coupon-tag {
    background-color: #2f78ff;
    border: 2px dashed #fff;
    color: #fff;
    padding: 3px 10px;
    border-radius: 4px;
    font-size: clamp(0.65rem, 1.6vw, 0.75rem);
    text-transform: uppercase;
    display: inline-block;
    width: auto;
    max-width: 100%;
    margin-top: 0.35rem;
    line-height: 1.25;
    font-weight: 700;
    text-align: center;
}

.product .producto-precios__hint {
    margin-top: 0.45rem !important;
    font-size: clamp(0.75rem, 1.8vw, 0.88rem);
    font-weight: 500;
    color: var(--pp-muted);
    line-height: 1.3;
}

.product .producto-precios .coupon-tag + .producto-precios__hint {
    margin-top: 0.3rem !important;
}

.product .producto-precios__hint--cuotas {
    margin-top: 0.65rem !important;
}

.product .producto-precios__cuotas {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.product .producto-precios__cuota {
    padding: 0.45rem 0.55rem;
    background: #fff;
    border: 1px solid var(--pp-border);
    border-radius: 10px;
    min-width: 0;
}

.product .producto-precios__cuota-n {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
    background: linear-gradient(145deg, var(--pp-orange) 0%, var(--pp-orange-dark) 100%);
}

.product .producto-precios__cuota-line {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.2rem 0.35rem;
    min-width: 0;
    line-height: 1.2;
}

.product .producto-precios__cuota-label {
    font-size: clamp(0.78rem, 1.8vw, 0.88rem);
    color: var(--pp-muted);
    font-weight: 500;
}

.product .producto-precios__cuota-val {
    font-size: clamp(1rem, 2.8vw, 1.2rem);
    font-weight: 700;
    color: var(--pp-blue);
    letter-spacing: -0.01em;
}

@media (max-width: 575.98px) {
    .product .producto-precios__cuota {
        padding: 0.4rem 0.5rem;
    }
}

@media (min-width: 576px) {
    .product .producto-precios__body {
        min-height: 6.75rem;
    }
}

/* Botones agregar / comprar — ficha producto */
.product .btn-cart.productPage.producto-acciones-compra {
    display: flex !important;
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    --pp-accion-ancho: min(100%, 13.5rem);
}

.product .producto-acciones-compra__slot {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    min-width: 0;
    flex: 0 1 auto;
}

.product .producto-acciones-compra__grupo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    width: auto;
    max-width: 100%;
    min-width: 0;
}

.product .producto-acciones-compra__btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: var(--pp-accion-ancho);
    min-width: var(--pp-accion-ancho);
    max-width: var(--pp-accion-ancho);
    white-space: nowrap;
    line-height: 1.15 !important;
    text-align: center;
    min-height: 44px;
    height: auto !important;
    box-sizing: border-box;
}

.product .producto-acciones-compra__btn,
.product .btn-cart.productPage .agregaralcarrito.producto-acciones-compra__btn,
.product .btn-cart.productPage #buy_now.producto-acciones-compra__btn {
    color: #000 !important;
}

.product .producto-acciones-compra__btn i {
    color: inherit;
}

.product .producto-acciones-compra__btn:hover,
.product .producto-acciones-compra__btn:focus,
.product .producto-acciones-compra__btn:active,
.product .btn-cart.productPage .agregaralcarrito.producto-acciones-compra__btn:hover,
.product .btn-cart.productPage .agregaralcarrito.producto-acciones-compra__btn:focus,
.product .btn-cart.productPage .agregaralcarrito.producto-acciones-compra__btn:active,
.product .btn-cart.productPage #buy_now.producto-acciones-compra__btn:hover,
.product .btn-cart.productPage #buy_now.producto-acciones-compra__btn:focus,
.product .btn-cart.productPage #buy_now.producto-acciones-compra__btn:active {
    color: #000 !important;
    text-decoration: none;
}

.product .producto-acciones-compra__btn#buy_now {
    background: #ff9800;
    border: none;
    cursor: pointer;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
}

.product .producto-acciones-compra__btn#buy_now:hover,
.product .producto-acciones-compra__btn#buy_now:focus,
.product .producto-acciones-compra__btn#buy_now:active {
    background: #f57c00;
}

.product .btn-cart.productPage .agregaralcarrito.producto-acciones-compra__btn,
.product .btn-cart.productPage #buy_now.producto-acciones-compra__btn {
    padding: 10px 12px !important;
    font-size: clamp(0.68rem, 2.9vw, 0.88rem) !important;
    height: auto !important;
}

.product .producto-acciones-compra__feedback {
    flex: 0 0 auto;
    width: 0;
    min-width: 0;
    overflow: visible;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: width 0.15s ease, min-width 0.15s ease;
}

.product .producto-acciones-compra__feedback:not(:empty) {
    width: 1.75rem;
    min-width: 1.75rem;
}

.product .btn-cart.productPage .producto-acciones-compra__feedback.response-container {
    position: relative;
    margin: 0;
    vertical-align: middle;
}

@media (max-width: 575.98px) {
    .product .btn-cart.productPage.producto-acciones-compra {
        --pp-grupo-ancho: min(100%, 18rem);
    }

    .product .producto-acciones-compra__grupo {
        width: var(--pp-grupo-ancho);
    }

    .product .producto-acciones-compra__btn {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        max-width: none;
    }
}

@media (min-width: 576px) {
    .product .btn-cart.productPage.producto-acciones-compra {
        --pp-accion-ancho: 15rem;
    }

    .product .producto-acciones-compra__slot {
        width: auto;
    }

    .product .btn-cart.productPage .agregaralcarrito.producto-acciones-compra__btn,
    .product .btn-cart.productPage #buy_now.producto-acciones-compra__btn {
        padding: 10px 16px !important;
        font-size: 14px !important;
    }

    .product .producto-acciones-compra__feedback:not(:empty) {
        width: 2rem;
        min-width: 2rem;
    }
}
