/* =============================================
   GRC WhatsApp Order — Estilos del carrito
   ============================================= */

/* Ocultar botón de checkout en TODA la web */
.wc-proceed-to-checkout,
.checkout-button,
a.checkout-button,
.woocommerce-mini-cart__buttons .checkout,
.widget_shopping_cart .checkout,
.added_to_cart+.wc-forward,
button[name="add-to-cart"]+.wc-proceed-to-checkout {
    display: none !important;
}

/* ── Ocultar precios en TODA la web ── */
.woocommerce-Price-amount,
.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce .woocommerce-cart-form .cart_item .product-subtotal,
.woocommerce .woocommerce-cart-form .cart_item td.product-price,
.woocommerce-cart-form thead .product-price,
.woocommerce-cart-form thead .product-subtotal,
.woocommerce-mini-cart__total,
.woocommerce table.shop_table tfoot,
.widget_shopping_cart .total,
.woocommerce table.cart td.product-price,
.woocommerce table.cart td.product-subtotal,
.single-product .summary .price,
.wc-block-components-product-price,
.wc-block-grid__product-price {
    display: none !important;
}

/* Ocultar título y tabla de totales dentro del carrito
   PERO NO el contenedor .cart_totals (ahí va el botón WhatsApp) */
.cart_totals>h2,
.cart_totals>table,
.cart_totals .woocommerce-shipping-calculator {
    display: none !important;
}

/* Ocultar solo columnas de PRECIO y SUBTOTAL en la tabla del carrito.
   La columna de CANTIDAD (col 5) se mantiene visible */

/* Columna "Precio" (col 4) */
.woocommerce .woocommerce-cart-form table.cart th.product-price,
.woocommerce .woocommerce-cart-form table.cart td.product-price {
    display: none !important;
}

/* Columna "Subtotal" (col 6) */
.woocommerce .woocommerce-cart-form table.cart th.product-subtotal,
.woocommerce .woocommerce-cart-form table.cart td.product-subtotal {
    display: none !important;
}



/* ── Botón WhatsApp ── */
.grc-wa-wrap {
    margin-top: 16px;
    width: 100%;
}

.grc-wa-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    padding: 16px 24px;
    background: #25d366;
    color: #fff !important;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
    border: none;
    cursor: pointer;
    text-decoration: none !important;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    letter-spacing: 0.3px;
}

.grc-wa-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    color: #fff !important;
}

.grc-wa-btn:active {
    transform: translateY(0);
}

.grc-wa-btn svg {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    fill: #fff;
}

/* ── Badge de items ── */
.grc-wa-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.18);
    border-radius: 20px;
    padding: 2px 9px;
    font-size: 13px;
    font-weight: 600;
}

/* ── Nota debajo del botón ── */
.grc-wa-note {
    text-align: center;
    font-size: 12px;
    color: #888;
    margin-top: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

/* ── Animación de pulso cuando hay items ── */
@keyframes grc-pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5);
    }

    70% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0);
    }

    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.grc-wa-btn.grc-pulse {
    animation: grc-pulse 2s infinite;
}

/* ─────────────────────────────────────────────
   BOTÓN "COMPRAR POR WHATSAPP" — Single Producto
   ───────────────────────────────────────────── */
.grc-wa-single-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #25d366;
    color: #fff !important;
    font-size: 15px;
    font-weight: 700;
    padding: 12px 24px;
    border-radius: 50px;
    text-decoration: none !important;
    margin-top: 16px;
    width: 100%;
    box-sizing: border-box;
    transition: background 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
    letter-spacing: 0.3px;
}

.grc-wa-single-btn:hover {
    background: #1ebe5d;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.45);
    color: #fff !important;
    text-decoration: none !important;
}

.grc-wa-single-btn:active {
    transform: translateY(0);
}

.grc-wa-single-btn svg {
    flex-shrink: 0;
}