/*
Theme Name: Tienda Mario 3D
Author: Rubén
Version: 4.1
*/

/* --- BASE --- */
body, html { 
    margin: 0; 
    padding: 0; 
    background-color: #050505; 
    color: white; 
    font-family: sans-serif; 
}

/* --- ESTILOS DEL PANEL MI CUENTA (DASHBOARD) --- */

/* Contenedor Flex: Menú a la izquierda, Contenido a la derecha */
.woocommerce-account .woocommerce {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
    padding-bottom: 50px;
}

/* 1. MENÚ LATERAL (Navegación) */
.woocommerce-MyAccount-navigation {
    width: 25%;
    flex-shrink: 0;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 20px;
}

.woocommerce-MyAccount-navigation ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.woocommerce-MyAccount-navigation li {
    margin-bottom: 5px;
}

.woocommerce-MyAccount-navigation li a {
    display: block;
    padding: 15px 20px;
    color: #94a3b8;
    text-decoration: none;
    border-radius: 8px;
    transition: 0.3s;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.woocommerce-MyAccount-navigation li a:hover,
.woocommerce-MyAccount-navigation li.is-active a {
    background: rgba(0, 243, 255, 0.15);
    color: #00f3ff;
    border-left: 3px solid #00f3ff;
}

/* 2. CAJA DE CONTENIDO (Derecha) */
.woocommerce-MyAccount-content {
    width: 75%;
    background: rgba(20, 20, 20, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.1);
    border-top: 1px solid rgba(0, 243, 255, 0.5); /* Borde neón arriba */
    border-radius: 20px;
    padding: 40px;
    color: #cbd5e1;
    font-size: 0.95rem;
    line-height: 1.6;
}

.woocommerce-MyAccount-content h3, 
.woocommerce-MyAccount-content h2 {
    color: white;
    font-family: 'Italiana', serif;
    margin-top: 0;
}

.woocommerce-MyAccount-content strong { color: white; }
.woocommerce-MyAccount-content a { color: #00f3ff; text-decoration: none; }

/* RESPONSIVE MÓVIL (Mi Cuenta) */
@media (max-width: 768px) {
    .woocommerce-account .woocommerce { flex-direction: column; }
    .woocommerce-MyAccount-navigation, 
    .woocommerce-MyAccount-content { width: 100%; }
}


/* --- ESTILOS DEL CARRITO (CONSOLA HOLOGRÁFICA) --- */

/* 1. Contenedor Principal */
.woocommerce-cart .woocommerce {
    max-width: 1200px;
    margin: 50px auto;
    padding: 0 20px;
}

/* 2. La Tabla de Productos (Convertida en Panel) */
.woocommerce-cart-form {
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: 1px solid #00f3ff; /* Borde Neón */
    border-radius: 20px;
    padding: 30px;
    margin-bottom: 40px;
}

/* Encabezados de Tabla */
.shop_table thead th {
    background: rgba(0, 243, 255, 0.05);
    color: #00f3ff;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 2px;
    padding: 15px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* Filas de Productos */
.shop_table td {
    border-bottom: 1px solid rgba(255,255,255,0.05);
    padding: 20px 10px;
    color: #cbd5e1;
}

/* Imágenes en el carrito */
.shop_table td.product-thumbnail img {
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.2);
    width: 80px;
    transition: 0.3s;
}
.shop_table td.product-thumbnail img:hover { transform: scale(1.1); border-color: #00f3ff; }

/* Nombre del Producto */
.shop_table td.product-name a {
    color: white;
    font-family: 'Italiana', serif;
    font-size: 1.2rem;
    text-decoration: none;
}

/* Input de Cantidad */
.woocommerce-cart .quantity input.qty {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    border-radius: 8px;
    width: 60px;
    height: 40px;
    text-align: center;
}

/* Botón Eliminar (X) */
a.remove {
    color: #ff4d4d !important;
    background: rgba(255, 77, 77, 0.1) !important;
    border-radius: 50%;
    width: 25px; height: 25px;
    display: inline-flex; justify-content: center; align-items: center;
    font-weight: bold;
    transition: 0.3s;
    text-decoration: none;
}
a.remove:hover { background: #ff4d4d !important; color: white !important; }

/* 3. Panel de TOTALES (Cart Collaterals) */
.cart-collaterals .cart_totals {
    background: rgba(20, 20, 20, 0.9);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 15px;
    padding: 30px;
    width: 100%;
}

.cart_totals h2 {
    color: white;
    font-family: 'Italiana', serif;
    font-size: 2rem;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    padding-bottom: 15px;
    margin-bottom: 20px;
}

.cart_totals table th { color: #94a3b8; font-weight: normal; text-align: left; }
.cart_totals table td { color: white; text-align: right; font-size: 1.1rem; }
.cart_totals .order-total td { color: #00f3ff; font-size: 1.5rem; }

/* BOTÓN FINALIZAR COMPRA */
.wc-proceed-to-checkout a.checkout-button {
    background: #00f3ff !important;
    color: black !important;
    border-radius: 50px !important;
    font-weight: 800 !important;
    text-transform: uppercase !important;
    letter-spacing: 2px !important;
    padding: 15px 30px !important;
    font-size: 1rem !important;
    transition: 0.3s !important;
    margin-top: 20px;
    display: block;
    text-align: center;
    text-decoration: none;
}
.wc-proceed-to-checkout a.checkout-button:hover {
    background: white !important;
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.5);
    transform: translateY(-2px);
}

/* --- RESPONSIVE CARRITO (Móvil) --- */
@media (max-width: 768px) {
    /* Ocultar encabezados de tabla en móvil */
    .shop_table thead { display: none; }
    
    /* Convertir filas en tarjetas */
    .shop_table tr.cart_item {
        display: flex;
        flex-direction: column;
        align-items: center;
        background: rgba(255,255,255,0.02);
        margin-bottom: 20px;
        padding: 20px;
        border-radius: 15px;
        border: 1px solid rgba(255,255,255,0.05);
        position: relative;
    }
    
    .shop_table td { border: none; padding: 5px 0; text-align: center; }
    
    /* Botón X posicionado arriba a la derecha */
    .shop_table td.product-remove {
        position: absolute; top: 10px; right: 10px; width: auto;
    }
    
    /* Imagen centrada */
    .shop_table td.product-thumbnail { width: 100%; text-align: center; margin-bottom: 10px; }
}