/* ============================================================
   PRODUCT PAGE — Enow_Unico
   Target: catalog_product_view | product.info.main
   ============================================================ */


/* ----------------------------------------------------------
   1. BOTÓN AÑADIR AL CARRITO
   ---------------------------------------------------------- */

.product-info-main .action.tocart.primary {
    background-color: #f8d000;
    border: 2px solid #f8d000;
    color: #1a1a1a;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.6rem;
    padding: 14px 32px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    text-transform: none;
    letter-spacing: 0;
    box-shadow: none;
    width: 100%;
    justify-content: center;
}

.product-info-main .action.tocart.primary::before {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a1a1a' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    flex-shrink: 0;
}

.product-info-main .action.tocart.primary:hover,
.product-info-main .action.tocart.primary:focus {
    background-color: #e0bb00;
    border-color: #e0bb00;
    color: #1a1a1a;
}

.product-info-main .action.tocart.primary span {
    color: inherit;
}


/* ----------------------------------------------------------
   2. STOCK STATUS — "✓ Disponible"
   ---------------------------------------------------------- */

.product-info-main .stock.available,
.product-info-main .stock.unavailable {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0;
}

.product-info-main .stock.available {
    color: #2a7d3f;
}

.product-info-main .stock.available::before {
    content: '';
    display: inline-block;
    width: 18px;
    height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a7d3f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    flex-shrink: 0;
}

.product-info-main .stock.unavailable {
    color: #c0392b;
}

.product-info-main .stock .label {
    display: none;
}


/* ----------------------------------------------------------
   3. PRECIO — grande + "IVA incluido"
   ---------------------------------------------------------- */

.product-info-main .price-box {
    margin-bottom: 0;
}

.product-info-main .price-box .price-wrapper .price {
    font-size: 3.6rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.1;
}

.product-info-main .price-box::after {
    content: 'IVA incluido';
    display: block;
    font-size: 1.2rem;
    color: #888;
    font-weight: 400;
    margin-top: 4px;
    line-height: 1;
}

.product-info-main .price-box .old-price .price {
    font-size: 2rem;
    font-weight: 400;
    color: #aaa;
    text-decoration: line-through;
}

.product-info-main .price-box .special-price .price {
    font-size: 3.6rem;
    font-weight: 700;
    color: #c0392b;
}


/* ----------------------------------------------------------
   4. LAYOUT — PRECIO + BOTÓN EN LA MISMA FILA
   product-info-price y product-add-form son hermanos directos
   en product-info-main. Se alinean con inline-block.
   ---------------------------------------------------------- */

.product-info-main .product-info-price {
    display: inline-flex;
    align-items: flex-end;
    vertical-align: middle;
    margin-right: 24px;
    margin-bottom: 0;
}

.product-info-main .product-add-form {
    display: inline-block;
    vertical-align: middle;
    width: calc(100% - 220px);
    margin-bottom: 0;
}

.product-info-main .product-add-form form {
    width: 100%;
}

.product-info-main .box-tocart {
    margin-top: 0;
}

.product-info-main .box-tocart .fieldset {
    display: block;
}

.product-info-main .box-tocart .actions {
    width: 100%;
}


/* ----------------------------------------------------------
   5. OCULTAR QTY Y REVIEWS
   ---------------------------------------------------------- */

.product-info-main .box-tocart .field.qty {
    display: none !important;
}

/* Reviews: ocultar vía CSS (fallback por si remove="true" no aplica) */
.product-info-main .product-reviews-summary {
    display: none !important;
}


/* ----------------------------------------------------------
   6. SEPARACIONES ENTRE BLOQUES
   ---------------------------------------------------------- */

.product-info-main .enow-product-brand-energy-row {
    margin-bottom: 10px;
}

.product-info-main .page-title-wrapper.product {
    margin-bottom: 8px;
}

.product-info-main .product-info-stock-sku {
    margin-bottom: 20px;
}
