/**
 * Theme Name: Gintea Child
 * Description: This is a child theme of Gintea, generated by Merlin WP.
 * Author: Themelexus
 * Template: gintea
 * Version: 1.0.4
 */

/* Galería de producto - ocupa todo el ancho del container de Elementor */
.single-product .woocommerce-product-gallery {
    width: 100% !important;
    max-width: 100% !important;
}
.single-product .woocommerce-product-gallery__image img {
    width: 100% !important;
    height: auto !important;
    min-height: 500px;
    object-fit: cover;
    object-position: center;
}

/* Fix quantity input - forzar visibilidad del texto */
.single-product .quantity input.qty,
.single-product input[name="quantity"] {
    -webkit-text-fill-color: #000000 !important;
    color: #000000 !important;
    opacity: 1 !important;
    background-color: #ffffff !important;
    -webkit-appearance: none;
    appearance: none;
}

/* Cart clásico - quantity con branding Boriken */
.woocommerce-cart .quantity {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center !important;
    border: 2px solid #425300 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}
.woocommerce-cart .quantity .minus,
.woocommerce-cart .quantity .plus {
    width: 44px !important;
    height: 36px !important;
    background: #425300 !important;
    color: #ffffff !important;
    border: none !important;
    font-size: 18px !important;
    cursor: pointer !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}
.woocommerce-cart .quantity .minus:hover,
.woocommerce-cart .quantity .plus:hover {
    background: #A8CC3C !important;
    color: #425300 !important;
}
.woocommerce-cart .quantity input.qty {
    width: 44px !important;
    height: 36px !important;
    text-align: center !important;
    border: none !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #425300 !important;
    -webkit-text-fill-color: #425300 !important;
    background: #fff !important;
    -moz-appearance: textfield !important;
}
.woocommerce-cart .quantity input.qty::-webkit-inner-spin-button,
.woocommerce-cart .quantity input.qty::-webkit-outer-spin-button {
    -webkit-appearance: none !important;
}

/* Ocultar express payment buttons en cart y checkout */
.woocommerce-cart .wc-stripe-payment-request-button-separator,
.woocommerce-cart #wc-stripe-payment-request-button,
.woocommerce-cart .wc-stripe-payment-request-wrapper,
#wc-stripe-payment-request-button,
.wc-stripe-payment-request-button-separator { 
    display: none !important; 
}

/* ===== CART PAGE - MODERN LAYOUT ===== */

/* Ocultar Google Pay y Link */
#wc-stripe-payment-request-button,
.wc-stripe-payment-request-button-separator,
.wc-stripe-payment-request-wrapper,
.wc-block-components-express-payment,
.wc-stripe-express-checkout-element,
.wc-stripe-express-checkout-payments {
    display: none !important;
}

/* Layout general */
.woocommerce-cart .woocommerce {
    max-width: 1290px;
    margin: 0 auto;
    padding: 40px 20px;
}

/* Tabla del cart */
.woocommerce-cart table.shop_table {
    border: none !important;
    border-collapse: separate !important;
    border-spacing: 0 12px !important;
    background: transparent !important;
}

/* Headers de la tabla */
.woocommerce-cart table.shop_table thead th {
    border: none !important;
    background: transparent !important;
    color: #5B5B5B !important;
    font-size: 12px !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    padding: 0 16px 16px !important;
    font-weight: 600 !important;
}

/* Filas de productos */
.woocommerce-cart table.shop_table tbody tr.cart_item {
    background: #fff !important;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06) !important;
    border-radius: 8px !important;
}

.woocommerce-cart table.shop_table tbody tr.cart_item td {
    border: none !important;
    padding: 20px 16px !important;
    vertical-align: middle !important;
}

/* Imagen del producto */
.woocommerce-cart table.shop_table tbody tr.cart_item td.product-thumbnail img {
    width: 80px !important;
    height: 80px !important;
    object-fit: cover !important;
    border-radius: 6px !important;
    border: 1px solid #f0f0f0 !important;
}

/* Nombre del producto */
.woocommerce-cart table.shop_table tbody tr.cart_item td.product-name a {
    color: #425300 !important;
    font-weight: 600 !important;
    font-size: 15px !important;
    text-decoration: none !important;
}
.woocommerce-cart table.shop_table tbody tr.cart_item td.product-name a:hover {
    color: #A8CC3C !important;
}

/* Precio y subtotal */
.woocommerce-cart table.shop_table tbody tr.cart_item td.product-price,
.woocommerce-cart table.shop_table tbody tr.cart_item td.product-subtotal {
    color: #5B5B5B !important;
    font-size: 15px !important;
}
.woocommerce-cart table.shop_table tbody tr.cart_item td.product-subtotal {
    font-weight: 700 !important;
    color: #425300 !important;
}

/* Botón eliminar */
.woocommerce-cart table.shop_table tbody tr.cart_item td.product-remove a.remove {
    color: #ccc !important;
    font-size: 18px !important;
    transition: color 0.2s !important;
}
.woocommerce-cart table.shop_table tbody tr.cart_item td.product-remove a.remove:hover {
    color: #e74c3c !important;
    background: transparent !important;
}

/* Fila de acciones (cupón + update) */
.woocommerce-cart table.shop_table tr.cart_item + tr td.actions {
    border: none !important;
    background: transparent !important;
    padding: 16px 0 !important;
}

/* Input de cupón */
.woocommerce-cart #coupon_code {
    border: 2px solid #e0e0e0 !important;
    border-radius: 4px !important;
    padding: 10px 16px !important;
    font-size: 14px !important;
    height: 44px !important;
    width: 200px !important;
}
.woocommerce-cart #coupon_code:focus {
    border-color: #425300 !important;
    outline: none !important;
}

/* Botones Apply Coupon y Update Cart */
.woocommerce-cart .button[name="apply_coupon"],
.woocommerce-cart .button[name="update_cart"] {
    background: #425300 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 10px 20px !important;
    font-size: 13px !important;
    letter-spacing: 1px !important;
    text-transform: uppercase !important;
    height: 44px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}
.woocommerce-cart .button[name="apply_coupon"]:hover,
.woocommerce-cart .button[name="update_cart"]:hover {
    background: #A8CC3C !important;
    color: #425300 !important;
}

/* Cart Totals panel */
.woocommerce-cart .cart_totals {
    background: #fff !important;
    border-radius: 8px !important;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08) !important;
    padding: 32px !important;
}

.woocommerce-cart .cart_totals h2 {
    font-size: 22px !important;
    color: #425300 !important;
    margin-bottom: 24px !important;
    padding-bottom: 16px !important;
    border-bottom: 2px solid #A8CC3C !important;
}

.woocommerce-cart .cart_totals table {
    border: none !important;
    width: 100% !important;
}

.woocommerce-cart .cart_totals table tr th,
.woocommerce-cart .cart_totals table tr td {
    border: none !important;
    padding: 10px 0 !important;
    font-size: 15px !important;
    color: #5B5B5B !important;
    border-bottom: 1px solid #f0f0f0 !important;
}

.woocommerce-cart .cart_totals table tr.order-total th,
.woocommerce-cart .cart_totals table tr.order-total td {
    font-weight: 700 !important;
    font-size: 18px !important;
    color: #425300 !important;
    border-bottom: none !important;
    padding-top: 16px !important;
}

/* Botón Proceed to Checkout */
.woocommerce-cart .wc-proceed-to-checkout .checkout-button {
    background: #425300 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 16px !important;
    font-size: 14px !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    width: 100% !important;
    text-align: center !important;
    display: block !important;
    margin-top: 16px !important;
    transition: background 0.2s !important;
    font-weight: 600 !important;
}
.woocommerce-cart .wc-proceed-to-checkout .checkout-button:hover {
    background: #A8CC3C !important;
    color: #425300 !important;
}

/* Mensajes duplicados de zona */
.woocommerce-cart .woocommerce-message + .woocommerce-message {
    display: none !important;
}

/* Fix sale price height collapse on single product */
.single-product .elementor-widget-woocommerce-product-price .price ins,
.single-product .elementor-widget-woocommerce-product-price .price ins .woocommerce-Price-amount {
    display: inline-block !important;
    height: auto !important;
    min-height: 1em !important;
    line-height: normal !important;
    overflow: visible !important;
    font-size: inherit !important;
}

/* Continue Shopping button en el cart */
.woocommerce-cart .continue-shopping-link {
    display: inline-block;
    margin-bottom: 20px;
    background: #425300;
    color: #ffffff !important;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 4px;
    transition: background 0.2s;
}
.woocommerce-cart .continue-shopping-link:hover {
    background: #A8CC3C;
    color: #425300 !important;
}
.woocommerce-cart .continue-shopping-link::before {
    content: '← ';
}