/* ========================================== */
/* SECCIÓN OFERTAS ÚNICAS (B2C)               */
/* ========================================== */
#ofertas-unicas {
    width: 100%;
    background-color: #F3F7FA;
    padding: 40px 0 32px;
}

#ofertas-unicas .ultimos-productos-wrapper {
    position: relative;
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.ofertas-unicas-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 24px;
    padding: 0 clamp(32px, 6vw, 72px);
    box-sizing: border-box;
}

.ofertas-unicas-title {
    color: #0B4460;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 32px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    margin: 0;
}

.ofertas-unicas-timer {
    display: flex;
    align-items: center;
    gap: 12px;
}

.timer-label {
    color: #343737;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.timer-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 2px;
    background: #0B4460;
    color: #FFF;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 600;
    line-height: normal;
}

.timer-colon {
    color: #FFF;
}

.ofertas-unicas-footer {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 32px;
}

.ofertas-unicas-btn-all {
    display: inline-flex;
    padding: 12px 24px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border-radius: 26px;
    border: 1px solid #0B4460;
    background: transparent;
    color: #0B4460;
    font-family: "Avenir Next LT Pro", sans-serif;
    font-size: 16px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    text-decoration: none;
    transition: background-color 0.3s, color 0.3s;
}

.ofertas-unicas-btn-all:hover {
    background-color: #0B4460;
    color: #FFF;
}

.ofertas-unicas-btn-all:hover path {
    stroke: #FFF;
}

#ofertas-unicas .ultimos-productos-wrapper::after {
    display: none;
}

/* MOBILE RESPONSIVE */
@media (max-width: 1024px) {
    #ofertas-unicas {
        padding: 32px 0 40px;
    }

    .ofertas-unicas-timer {
        display: flex;
        flex-direction: column;
        align-items: start;
        gap: 12px;
    }

    .ofertas-unicas-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
        padding: 0 24px;
        margin-bottom: 32px;
    }

    .ofertas-unicas-title {
        font-size: 24px;
    }

    .timer-label {
        font-size: 14px;
    }

    .ofertas-unicas-footer {
        margin-top: 24px;
    }
}
/* Fix integración WordPress B2C: esta sección reutiliza las cards de productos de la maqueta */
#ofertas-unicas {
    overflow-x: hidden;
}

#ofertas-unicas .ultimos-productos-grid-container {
    width: 100%;
    margin-top: 0;
    overflow: visible;
}

#ofertas-unicas .ultimos-productos-grid {
    display: flex;
    align-items: stretch;
    gap: 34px;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 4px;
    margin-bottom: 0;
}

#ofertas-unicas .ultimos-productos-grid::-webkit-scrollbar {
    display: none;
}

#ofertas-unicas .producto-card {
    width: 200px;
    min-width: 200px;
    max-width: 200px;
    min-height: 316px;
    padding: 12px 8px;
    gap: 8px;
}

#ofertas-unicas .producto-img-wrapper {
    width: 130px;
    height: 120px;
    margin-top: 18px;
}

#ofertas-unicas .producto-info {
    gap: 6px;
}

#ofertas-unicas .producto-sku {
    font-size: 12px;
}

#ofertas-unicas .producto-attr {
    display: block;
    color: #0B4460;
    font-size: 13px;
    font-weight: 700;
    text-decoration: underline;
    line-height: 1.2;
}

#ofertas-unicas .producto-name,
#ofertas-unicas .producto-name a {
    color: #459CD6 !important;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    text-decoration: none !important;
}

#ofertas-unicas .producto-prices {
    gap: 2px;
}

#ofertas-unicas .producto-price-current,
#ofertas-unicas .producto-price-current .amount,
#ofertas-unicas .producto-price-current bdi,
#ofertas-unicas .producto-prices ins,
#ofertas-unicas .producto-prices ins .amount,
#ofertas-unicas .producto-prices ins bdi {
    color: #F00 !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    text-decoration: none !important;
}

#ofertas-unicas .producto-price-old,
#ofertas-unicas .producto-price-old .amount,
#ofertas-unicas .producto-price-old bdi,
#ofertas-unicas .producto-prices del,
#ofertas-unicas .producto-prices del .amount,
#ofertas-unicas .producto-prices del bdi {
    color: #999 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-decoration: line-through !important;
}

#ofertas-unicas .producto-actions {
    gap: 12px;
    margin-top: auto;
}

#ofertas-unicas .action-btn {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex: 0 0 36px !important;
}

#ofertas-unicas .action-btn img {
    width: 18px !important;
    height: 18px !important;
}

@media (max-width: 1024px) {
    #ofertas-unicas .producto-card:first-child {
        margin-left: 24px;
    }

    #ofertas-unicas .producto-card:last-child {
        margin-right: 24px;
    }
}


/* Ajuste B2C: mantener atributos azules y solo poner gris el precio regular tachado */
#ofertas-unicas .producto-attr,
#ofertas-unicas .producto-attr a,
#ofertas-unicas .producto-info .producto-attr,
#ofertas-unicas .producto-info .producto-attr a {
    color: #0B4460 !important;
    text-decoration: underline !important;
}

#ofertas-unicas .producto-price-old,
#ofertas-unicas .producto-price-old *,
#ofertas-unicas .producto-prices del,
#ofertas-unicas .producto-prices del *,
#ofertas-unicas .producto-card .producto-prices del,
#ofertas-unicas .producto-card .producto-prices del * {
    color: #9EA6AD !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    line-height: 1.2 !important;
    text-decoration: line-through !important;
    text-decoration-color: #9EA6AD !important;
}

#ofertas-unicas .producto-price-current,
#ofertas-unicas .producto-price-current *,
#ofertas-unicas .producto-prices ins,
#ofertas-unicas .producto-prices ins * {
    color: #F00 !important;
    text-decoration: none !important;
}

/* Fix: botón "Ver todos los productos" B2C */
#ofertas-unicas .ofertas-unicas-btn-all,
#ofertas-unicas .ofertas-unicas-btn-all:link,
#ofertas-unicas .ofertas-unicas-btn-all:visited {
    background: transparent !important;
    border-color: #0B4460 !important;
    color: #0B4460 !important;
    text-decoration: none !important;
}

#ofertas-unicas .ofertas-unicas-btn-all:hover,
#ofertas-unicas .ofertas-unicas-btn-all:focus,
#ofertas-unicas .ofertas-unicas-btn-all:active {
    background: #0B4460 !important;
    border-color: #0B4460 !important;
    color: #FFFFFF !important;
}
