/* LICENSE & DETAILS
   ==================================================

	Theme Name: Neighborhood Child Theme
	Theme URI: http://neighborhood.swiftideas.net
	Description: A Retina Responsive Multi-Purpose WordPress Theme - Designed & Developed by Swift Ideas ( www.swiftideas.net )
	License: GNU General Public License version 3.0
	License URI: http://www.gnu.org/licenses/gpl-3.0.html
	Template: neighborhood
	Version: 1.0
	Author: Swift Ideas
	Author URI: www.swiftideas.net

	All files, unless otherwise stated, are released under the GNU General Public License
	version 3.0 (http://www.gnu.org/licenses/gpl-3.0.html)

   ==================================================
*/


/* --------------------------------------------
	CHILD THEME CSS
-------------------------------------------- */
/* PARA PAGINAS DE PRODUCTOS MÁS FLUIDAS CON VER MAS PRODUCTOS */
/* Estilo para el botón Ver más */
.load-more-products {
    display: block;
    width: fit-content;
    margin: 30px auto;
    padding: 12px 30px;
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    transition: background-color 0.3s ease;
}

.load-more-products:hover {
    background-color: #555;
}

.load-more-products:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}
/* === AJUSTES HEADER BANES === */

//* Logo más grande */
#logo img {
    max-height: 90px !important;
    width: auto !important;
}

/* Barra a chocolate */
#promo-bar {
    background-color: #4A2C1A !important;
    background: #4A2C1A !important;
}

#promo-bar * {
    color: #fff !important;
}
/* MEJORA PAGINA DE CARRITO COMPRA */
/* ============================================
   CARRITO WOOCOMMERCE - TEMA NEIGHBOURHOOD
   Correcciones: Ancho contenido + Imágenes móvil
   ============================================ */

/* ------------------------------------------
   1. CONTENEDOR DEL CARRITO - Ancho limitado SOLO para el contenido
   ------------------------------------------ */

/* El contenedor principal del tema Neighbourhood */
body.woocommerce-cart #main-container {
    /* No tocar - dejar que el tema maneje el ancho */
}

/* Solo limitar el ancho del contenido del carrito, NO del header */
body.woocommerce-cart #main-container .container .row {
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

/* Las columnas del carrito */
body.woocommerce-cart .span9,
body.woocommerce-cart .woocommerce-cart-form__wrapper .span9 {
    width: 65% !important;
    float: left !important;
}

body.woocommerce-cart .span3,
body.woocommerce-cart .woocommerce-cart-form__wrapper .span3 {
    width: 32% !important;
    float: right !important;
    margin-left: 3% !important;
}

/* ------------------------------------------
   2. ESTILOS VISUALES DEL CARRITO
   ------------------------------------------ */

body.woocommerce-cart .woocommerce-cart-form {
    background: white;
    border-radius: 24px;
    padding: 30px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

body.woocommerce-cart .cart-collaterals {
    background: white;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

body.woocommerce-cart .cart-collaterals .cart_totals {
    width: 100% !important;
    float: none !important;
}

/* Tabla del carrito */
body.woocommerce-cart .shop_table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
}

body.woocommerce-cart .shop_table thead {
    background: #f8f9fa;
}

body.woocommerce-cart .shop_table thead th {
    padding: 15px;
    font-weight: 600;
    border-bottom: 1px solid #eaeaea;
    text-align: left;
}

body.woocommerce-cart .shop_table td {
    padding: 20px 15px;
    border-bottom: 1px solid #f0f0f0;
    vertical-align: middle;
}

/* Imagen del producto - IMPORTANTE para móvil */
body.woocommerce-cart .product-thumbnail {
    width: 80px;
    text-align: center;
}

body.woocommerce-cart .product-thumbnail img {
    border-radius: 12px;
    max-width: 70px;
    height: auto;
    display: block;
}

/* Nombre del producto */
body.woocommerce-cart .product-name a {
    color: #1e1e1e;
    font-weight: 500;
    text-decoration: none;
}

/* Cantidad */
body.woocommerce-cart .product-quantity .quantity input {
    border-radius: 30px;
    padding: 8px 12px;
    border: 1px solid #e0e0e0;
    width: 70px;
    text-align: center;
}

/* Botón eliminar */
body.woocommerce-cart .product-remove a.remove {
    background: #f0f2f5;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #999 !important;
    font-size: 18px;
    text-decoration: none;
}

body.woocommerce-cart .product-remove a.remove:hover {
    background: #ff4d4d;
    color: white !important;
}

/* Tabla de totales */
body.woocommerce-cart .cart_totals table {
    width: 100%;
    background: #f8f9fa;
    border-radius: 16px;
    margin-bottom: 20px;
}

body.woocommerce-cart .cart_totals th,
body.woocommerce-cart .cart_totals td {
    padding: 12px 16px;
    border: none;
}

/* ------------------------------------------
   3. BOTONES
   ------------------------------------------ */

body.woocommerce-cart .checkout-button {
    background: #000 !important;
    color: white !important;
    border-radius: 50px;
    padding: 16px 28px;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    display: block;
    width: 100%;
    border: 2px solid #000 !important;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

body.woocommerce-cart .checkout-button:hover {
    background: white !important;
    color: #000 !important;
}

body.woocommerce-cart button[name="update_cart"] {
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 50px;
    padding: 12px 24px;
    color: #1e1e1e;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.woocommerce-cart button[name="update_cart"]:hover {
    background: #1e1e1e;
    color: white;
}

/* Cupón */
body.woocommerce-cart .coupon {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

body.woocommerce-cart .coupon input.input-text {
    flex: 1;
    border-radius: 40px;
    padding: 12px 18px;
    border: 1px solid #e0e0e0;
}

body.woocommerce-cart .coupon button {
    background: white;
    color: #000;
    border: 1px solid #000;
    border-radius: 50px;
    padding: 12px 24px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

body.woocommerce-cart .coupon button:hover {
    background: #000;
    color: white;
}

/* ------------------------------------------
   4. RESPONSIVE - MÓVILES (CORRECCIÓN IMÁGENES)
   ------------------------------------------ */

@media (max-width: 768px) {
    /* Una sola columna */
    body.woocommerce-cart .span9,
    body.woocommerce-cart .span3 {
        width: 100% !important;
        float: none !important;
        margin-left: 0 !important;
    }
    
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        padding: 20px;
    }
    
    /* ============================================
       CORRECCIÓN CRÍTICA: Mostrar imágenes en móvil
       ============================================ */
    
    /* La tabla se convierte en bloques */
    body.woocommerce-cart .shop_table,
    body.woocommerce-cart .shop_table tbody,
    body.woocommerce-cart .shop_table tr {
        display: block;
        width: 100%;
    }
    
    /* Ocultar encabezados */
    body.woocommerce-cart .shop_table thead {
        display: none;
    }
    
    /* Cada fila es una tarjeta */
    body.woocommerce-cart .shop_table tr {
        margin-bottom: 20px;
        border: 1px solid #e0e0e0;
        border-radius: 16px;
        padding: 15px;
        position: relative;
        background: white;
        display: block;
    }
    
    /* Las celdas como flex */
    body.woocommerce-cart .shop_table td {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border: none;
        border-bottom: 1px solid #f0f0f0;
    }
    
    body.woocommerce-cart .shop_table td:last-child {
        border-bottom: none;
    }
    
    /* ============================================
       IMÁGENES EN MÓVIL - FORZAR VISIBILIDAD
       ============================================ */
    
    /* FORZAR que la celda de imagen se muestre */
    body.woocommerce-cart .product-thumbnail {
        display: flex !important;
        width: 100% !important;
        justify-content: center !important;
        padding: 15px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        text-align: center !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
    
    /* FORZAR que la imagen se muestre */
    body.woocommerce-cart .product-thumbnail img {
        display: block !important;
        max-width: 120px !important;
        width: 120px !important;
        height: auto !important;
        border-radius: 12px !important;
        visibility: visible !important;
        opacity: 1 !important;
        margin: 0 auto !important;
    }
    
    /* Sin etiqueta para la imagen */
    body.woocommerce-cart .product-thumbnail::before {
        display: none !important;
    }
    
    /* Nombre del producto centrado */
    body.woocommerce-cart .product-name {
        width: 100%;
        justify-content: center;
        text-align: center;
        padding: 15px 0;
        font-size: 16px;
        font-weight: 600;
    }
    
    body.woocommerce-cart .product-name::before {
        display: none;
    }
    
    /* Botón eliminar */
    body.woocommerce-cart .product-remove {
        position: absolute;
        top: 10px;
        right: 10px;
        width: auto;
        border: none;
        justify-content: center;
    }
    
    body.woocommerce-cart .product-remove::before {
        display: none;
    }
    
    body.woocommerce-cart .product-remove a.remove {
        width: 32px;
        height: 32px;
        font-size: 20px;
    }
    
    /* Etiquetas para otros campos */
    body.woocommerce-cart .product-price::before {
        content: "Precio:";
        font-weight: 600;
        color: #666;
    }
    
    body.woocommerce-cart .product-quantity::before {
        content: "Cantidad:";
        font-weight: 600;
        color: #666;
    }
    
    body.woocommerce-cart .product-subtotal::before {
        content: "Subtotal:";
        font-weight: 600;
        color: #666;
    }
    
    /* Acciones */
    body.woocommerce-cart .coupon {
        flex-direction: column;
        width: 100%;
    }
    
    body.woocommerce-cart .coupon input,
    body.woocommerce-cart .coupon button {
        width: 100%;
    }
    
    body.woocommerce-cart button[name="update_cart"] {
        width: 100%;
        margin-top: 10px;
    }
}

@media (max-width: 480px) {
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        padding: 15px;
    }
    
    body.woocommerce-cart .product-thumbnail img {
        max-width: 100px !important;
        width: 100px !important;
    }
}
/* ============================================
   CORRECCIÓN MÓVIL - CENTRADO Y AJUSTE
   Solo afecta dispositivos móviles
   ============================================ */

@media (max-width: 768px) {
    
    /* Prevenir scroll horizontal */
    body.woocommerce-cart {
        overflow-x: hidden !important;
    }
    
    /* Contenedor principal del carrito - centrado y con padding reducido */
    body.woocommerce-cart #main-container .container .row {
        max-width: 100% !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
    }
    
    /* Formularios del carrito - ancho ajustado */
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        width: 100% !important;
        max-width: 100% !important;
        padding: 15px !important;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box !important;
        border-radius: 16px !important;
    }
    
    /* La tabla ocupa todo el ancho disponible */
    body.woocommerce-cart .shop_table {
        width: 100% !important;
        max-width: 100% !important;
        table-layout: fixed !important;
    }
    
    /* Cada fila/producto - tarjeta centrada y ajustada */
    body.woocommerce-cart .shop_table tr {
        width: 100% !important;
        max-width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        margin-bottom: 15px !important;
        padding: 12px !important;
        box-sizing: border-box !important;
        border-radius: 12px !important;
    }
    
    /* Todas las celdas - ajustar ancho */
    body.woocommerce-cart .shop_table td {
        width: 100% !important;
        max-width: 100% !important;
        padding: 8px 0 !important;
        box-sizing: border-box !important;
        word-wrap: break-word !important;
        overflow-wrap: break-word !important;
    }
    
    /* Imagen del producto - centrada */
    body.woocommerce-cart .product-thumbnail {
        width: 100% !important;
        padding: 10px 0 !important;
        justify-content: center !important;
    }
    
    body.woocommerce-cart .product-thumbnail img {
        max-width: 100px !important;
        width: 100px !important;
        height: auto !important;
        margin: 0 auto !important;
        display: block !important;
    }
    
    /* Nombre del producto - centrado y ajustado */
    body.woocommerce-cart .product-name {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        padding: 10px 0 !important;
        font-size: 15px !important;
        line-height: 1.4 !important;
        word-wrap: break-word !important;
        hyphens: auto !important;
    }
    
    body.woocommerce-cart .product-name a {
        display: block !important;
        width: 100% !important;
        text-align: center !important;
    }
    
    /* Precio, cantidad, subtotal - ajustados */
    body.woocommerce-cart .product-price,
    body.woocommerce-cart .product-quantity,
    body.woocommerce-cart .product-subtotal {
        width: 100% !important;
        padding: 8px 0 !important;
        font-size: 14px !important;
    }
    
    /* Input de cantidad más pequeño */
    body.woocommerce-cart .product-quantity .quantity input {
        width: 60px !important;
        padding: 6px 10px !important;
    }
    
    /* Botón eliminar - posición ajustada */
    body.woocommerce-cart .product-remove {
        top: 8px !important;
        right: 8px !important;
    }
    
    body.woocommerce-cart .product-remove a.remove {
        width: 28px !important;
        height: 28px !important;
        font-size: 16px !important;
    }
    
    /* Acciones del carrito */
    body.woocommerce-cart .actions {
        padding: 10px 0 !important;
    }
    
    /* Cupón - ajustado */
    body.woocommerce-cart .coupon {
        gap: 8px !important;
        margin-bottom: 15px !important;
    }
    
    body.woocommerce-cart .coupon input.input-text,
    body.woocommerce-cart .coupon button {
        padding: 10px 15px !important;
        font-size: 14px !important;
    }
    
    /* Botón actualizar */
    body.woocommerce-cart button[name="update_cart"] {
        padding: 10px 20px !important;
        font-size: 14px !important;
    }
    
    /* Totales - ajustados */
    body.woocommerce-cart .cart_totals h2 {
        font-size: 18px !important;
    }
    
    body.woocommerce-cart .cart_totals table th,
    body.woocommerce-cart .cart_totals table td {
        padding: 10px 12px !important;
        font-size: 14px !important;
    }
    
    /* Botón checkout */
    body.woocommerce-cart .checkout-button {
        padding: 14px 20px !important;
        font-size: 14px !important;
    }
}

/* Móviles muy pequeños - ajuste extra */
@media (max-width: 480px) {
    
    body.woocommerce-cart #main-container .container .row {
        padding-left: 8px !important;
        padding-right: 8px !important;
    }
    
    body.woocommerce-cart .woocommerce-cart-form,
    body.woocommerce-cart .cart-collaterals {
        padding: 12px !important;
        border-radius: 12px !important;
    }
    
    body.woocommerce-cart .shop_table tr {
        padding: 10px !important;
        margin-bottom: 12px !important;
    }
    
    body.woocommerce-cart .product-thumbnail img {
        max-width: 80px !important;
        width: 80px !important;
    }
    
    body.woocommerce-cart .product-name {
        font-size: 14px !important;
    }
    
    body.woocommerce-cart .product-price,
    body.woocommerce-cart .product-quantity,
    body.woocommerce-cart .product-subtotal {
        font-size: 13px !important;
    }
}
/* ============================================
   CORRECCIÓN BOTÓN FINALIZAR COMPRA - CENTRADO
   ============================================ */

/* Desktop */
body.woocommerce-cart .checkout-button {
    background: #000 !important;
    color: white !important;
    border-radius: 50px !important;
    padding: 16px 28px !important;
    font-weight: 700 !important;
    font-size: 16px !important;
    text-align: center !important;
    display: flex !important;              /* Cambiado a flex */
    justify-content: center !important;      /* Centrado horizontal */
    align-items: center !important;          /* Centrado vertical */
    width: 100% !important;
    border: 2px solid #000 !important;
    transition: all 0.3s ease !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.2 !important;             /* Line-height normal */
    min-height: 50px !important;            /* Altura mínima uniforme */
    box-sizing: border-box !important;
    margin: 0 !important;                   /* Sin márgenes extra */
}

body.woocommerce-cart .checkout-button:hover {
    background: white !important;
    color: #000 !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
}

/* Móviles - Ajuste del botón */
@media (max-width: 768px) {
    body.woocommerce-cart .checkout-button {
        padding: 14px 20px !important;
        font-size: 14px !important;
        min-height: 44px !important;          /* Altura ajustada para móvil */
        letter-spacing: 0.5px !important;   /* Menor espaciado en móvil */
    }
}

/* Móviles pequeños */
@media (max-width: 480px) {
    body.woocommerce-cart .checkout-button {
        padding: 12px 16px !important;
        font-size: 13px !important;
        min-height: 40px !important;
    }
}