@import url('https://fonts.googleapis.com/css2?family=Mountains+of+Christmas&family=Nunito:wght@400;600;700&display=swap');

body {
    font-family: 'Nunito', Arial, sans-serif;
    line-height: 1.6;
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #0f4c3a 0%, #1a5f4a 50%, #0f4c3a 100%);
    background-attachment: fixed;
    min-height: 100vh;
    position: relative;
}

/* Christmas decorative elements */
body::before {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20% 30%, #ffffff, transparent),
        radial-gradient(2px 2px at 40% 70%, #ffffff, transparent),
        radial-gradient(1px 1px at 90% 40%, #ffffff, transparent),
        radial-gradient(1px 1px at 60% 10%, #ffffff, transparent);
    background-size: 550px 550px, 350px 350px, 250px 250px, 200px 200px;
    background-repeat: repeat;
    opacity: 0.3;
    z-index: -1;
    animation: snow 20s linear infinite;
}

@keyframes snow {
    0% { transform: translateY(-100vh) rotate(0deg); }
    100% { transform: translateY(100vh) rotate(360deg); }
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95) !important;
    border-radius: 15px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

h1 {
    text-align: center;
    color: #c41e3a;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 3.5em;
    margin-bottom: 30px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #c41e3a, #228B22, #FFD700);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

h1::before {

    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    animation: sparkle 2s ease-in-out infinite alternate;
}

h1::after {

    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8em;
    animation: sparkle 2s ease-in-out infinite alternate-reverse;
}

@keyframes sparkle {
    0% { transform: translateY(-50%) scale(1); }
    100% { transform: translateY(-50%) scale(1.2); }
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

.producto {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    transform: translateY(0);
    transition: all 0.3s ease;
    border: 3px solid transparent;
    background-clip: padding-box;
    position: relative;
}

.producto::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #c41e3a, #228B22, #FFD700, #c41e3a);
    border-radius: 20px;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.producto:hover::before {
    opacity: 1;
}

.producto:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.2);
}

.producto img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 15px 15px 0 0;
}

.producto-info {
    padding: 20px;
}

.producto-titulo {
    font-size: 1.3em;
    margin: 0 0 15px 0;
    color: #2d5016;
    font-weight: 700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

.producto:hover .producto-titulo {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.producto-descripcion {
    color: #667;
    font-size: 0.95em;
    margin-bottom: 15px;
    line-height: 1.5;
}

.producto-precio {
    font-weight: bold;
    color: #c41e3a;
    font-size: 1.4em;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    transition: color 0.3s ease;
}

.producto:hover .producto-precio {
    color: white !important;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.btn-agregar {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #c41e3a, #a11729);
    color: white !important;
    text-align: center;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1.1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
    position: relative;
    overflow: hidden;
}

.btn-agregar::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-agregar:hover::before {
    width: 300px;
    height: 300px;
}

.btn-agregar:hover {
    background: linear-gradient(135deg, #228B22, #1e7a1e);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(34, 139, 34, 0.4);
}

.producto:hover .producto-descripcion {
    color: white;
    transition: color 0.3s ease;
}

/* Optional: Add transition for smooth effect */
.producto-descripcion {
    transition: color 0.3s ease;
}
.btn-video {
    display: block;
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #ff1744, #d50000);
    color: white !important;
    text-align: center;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 23, 68, 0.3);
    position: relative;
    overflow: hidden;
    border: 2px solid #FFD700;
    text-decoration: none;
}

.btn-video::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.3s ease, height 0.3s ease;
}

.btn-video:hover::before {
    width: 300px;
    height: 300px;
}

.btn-video:hover {
    background: linear-gradient(135deg, #d50000, #b71c1c);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(255, 23, 68, 0.5);
    border-color: white;
}

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

.producto:hover .btn-video {
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #c41e3a !important;
    border-color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.producto:hover .btn-video:hover {
    background: linear-gradient(135deg, #ff1744, #d50000);
    color: white !important;
    border-color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.producto-cantidad {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
    padding: 10px;
    background: linear-gradient(135deg, rgba(196, 30, 58, 0.05), rgba(34, 139, 34, 0.05));
    border-radius: 15px;
    border: 2px solid rgba(255, 215, 0, 0.3);
}

.btn-cantidad {
    width: 45px;
    height: 45px;
    border: 3px solid #FFD700;
    background: linear-gradient(135deg, #c41e3a, #228B22);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 20px;
    color: white;
    transition: all 0.3s ease;
    box-shadow: 
        0 4px 15px rgba(196, 30, 58, 0.3),
        inset 0 2px 0 rgba(255, 255, 255, 0.3);
    position: relative;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.btn-cantidad::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #FFD700, #FFA500, #FFD700);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.btn-cantidad:hover::before {
    opacity: 1;
}

.btn-cantidad:hover {
    background: linear-gradient(135deg, #228B22, #c41e3a);
    transform: scale(1.15) rotate(5deg);
    box-shadow: 
        0 6px 20px rgba(34, 139, 34, 0.4),
        inset 0 2px 0 rgba(255, 255, 255, 0.4),
        0 0 15px rgba(255, 215, 0, 0.6);
    border-color: white;
}

.btn-cantidad:active {
    transform: scale(1.05) rotate(2deg);
}

.cantidad-display {
    font-weight: bold;
    font-size: 1.6em;
    color: #2d5016;
    min-width: 50px;
    text-align: center;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    padding: 10px 15px;
    border: 3px solid #FFD700;
    box-shadow: 
        inset 0 2px 4px rgba(0, 0, 0, 0.1),
        0 4px 15px rgba(255, 215, 0, 0.3);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
}

.cantidad-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
    transition: left 0.5s ease;
}

.producto:hover .cantidad-display::before {
    left: 100%;
}

.producto:hover .cantidad-display {
    color: #c41e3a;
    background: linear-gradient(135deg, #ffffff, #fffaf0);
    border-color: #c41e3a;
    box-shadow: 
        inset 0 2px 4px rgba(196, 30, 58, 0.1),
        0 4px 15px rgba(196, 30, 58, 0.3),
        0 0 20px rgba(255, 215, 0, 0.5);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
    transform: scale(1.05);
}

.producto:hover .btn-cantidad {
    border-color: white;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #c41e3a;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.producto:hover .btn-cantidad:hover {
    background: linear-gradient(135deg, #228B22, #c41e3a);
    color: white;
    border-color: #FFD700;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Christmas sparkle effect */
.producto:hover .producto-cantidad::before {
    content: '✨';
    position: absolute;
    top: -10px;
    left: -10px;
    font-size: 16px;
    animation: sparkleRotate 2s ease-in-out infinite;
}

.producto:hover .producto-cantidad::after {
    content: '✨';
    position: absolute;
    bottom: -10px;
    right: -10px;
    font-size: 16px;
    animation: sparkleRotate 2s ease-in-out infinite reverse;
}

@keyframes sparkleRotate {
    0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.7; }
    50% { transform: rotate(180deg) scale(1.2); opacity: 1; }
}

@media (max-width: 600px) {
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .container {
        margin: 10px;
        padding: 15px;
        width: calc(100% - 20px);
    }
    
    .btn-cantidad {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
    
    .cantidad-display {
        font-size: 1.3em;
        padding: 8px 12px;
        min-width: 40px;
    }
    
    .producto-cantidad {
        gap: 12px;
        padding: 8px;
    }
    
    .btn-video {
        padding: 8px;
        font-size: 0.9em;
    }
}

.cart-icon {
    position: fixed;
    top: 25px;
    right: 25px;
    background: linear-gradient(135deg, #c41e3a, #228B22);
    border-radius: 50%;
    width: 70px;
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: all 0.3s ease;
    border: 3px solid #FFD700;
}

.cart-icon:hover {
    transform: scale(1.15) rotate(5deg);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.cart-symbol {
    font-size: 28px;
    color: white;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
}

.cart-counter {
    position: absolute;
    top: -10px;
    right: -10px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #c41e3a;
    border-radius: 50%;
    width: 28px;
    height: 28px;
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: bold;
    border: 3px solid #ffffff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.3);
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-5px); }
    60% { transform: translateY(-3px); }
}

/* Cart page styles */
.cart-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    background: linear-gradient(135deg, #c41e3a, #228B22);
    padding: 20px;
    border-radius: 15px;
    color: white;
}

.btn-back {
    padding: 12px 25px;
    background: linear-gradient(135deg, #FFD700, #FFA500);
    color: #2d5016;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.btn-back:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    background: linear-gradient(135deg, #FFA500, #FF8C00);
}

.carrito-items {
    margin-bottom: 30px;
}

.carrito-item {
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    border-radius: 15px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
    padding: 25px;
    margin-bottom: 20px;
    display: grid;
    grid-template-columns: 1fr auto auto;
    gap: 25px;
    align-items: center;
    border: 2px solid rgba(196, 30, 58, 0.1);
    transition: all 0.3s ease;
}

.carrito-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
    border-color: rgba(196, 30, 58, 0.3);
}

.item-info h4 {
    margin: 0 0 8px 0;
    color: #2d5016;
    font-size: 1.2em;
    font-weight: 700;
}

.item-info p {
    margin: 0;
    color: #666;
    font-weight: 600;
}

.item-cantidad {
    display: flex;
    align-items: center;
    gap: 15px;
}

.item-cantidad button {
    width: 40px;
    height: 40px;
    border: 2px solid #c41e3a;
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: #c41e3a;
    transition: all 0.3s ease;
}

.item-cantidad button:hover {
    background: linear-gradient(135deg, #c41e3a, #a11729);
    color: white;
    transform: scale(1.1);
}

.item-cantidad span {
    font-weight: bold;
    min-width: 25px;
    text-align: center;
    font-size: 1.2em;
    color: #2d5016;
}

.item-subtotal {
    text-align: right;
}

.item-subtotal p {
    font-weight: bold;
    color: #c41e3a;
    margin-bottom: 15px;
    font-size: 1.3em;
}

.btn-eliminar {
    padding: 8px 15px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.btn-eliminar:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: scale(1.05);
}

.carrito-footer {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    padding: 30px;
    border: 3px solid #FFD700;
}

.carrito-total-container {
    text-align: center;
    margin-bottom: 25px;
}

.total-breakdown {
    background: rgba(255, 255, 255, 0.8);
    padding: 20px;
    border-radius: 10px;
    border: 2px solid rgba(196, 30, 58, 0.1);
}

.subtotal-line,
.envio-line {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 1.1em;
    color: #666;
}

.subtotal-line span:last-child,
.envio-line span:last-child {
    font-weight: 600;
    color: #333;
}

.carrito-total-container h3 {
    margin: 10px 0 0 0;
    color: #c41e3a;
    font-size: 2em;
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.customer-info {
    margin: 25px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    border: 2px solid rgba(196, 30, 58, 0.1);
}

.customer-info h4 {
    margin: 0 0 15px 0;
    color: #2d5016;
    font-size: 1.3em;
    font-weight: 700;
    text-align: center;
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.input-group input {
    padding: 15px;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    font-size: 16px;
    font-family: 'Nunito', Arial, sans-serif;
    transition: all 0.3s ease;
    background: rgba(255, 255, 255, 0.9);
}

.input-group input:focus {
    outline: none;
    border-color: #c41e3a;
    box-shadow: 0 0 10px rgba(196, 30, 58, 0.2);
    background: rgba(255, 255, 255, 1);
}

.input-group input::placeholder {
    color: #999;
}

.carrito-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
}

.btn-vaciar {
    padding: 15px 30px;
    background: linear-gradient(135deg, #dc3545, #c82333);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-vaciar:hover {
    background: linear-gradient(135deg, #c82333, #a71e2a);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(220, 53, 69, 0.4);
}

.btn-checkout {
    padding: 15px 30px;
    background: linear-gradient(135deg, #28a745, #218838);
    color: white;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.btn-checkout:hover {
    background: linear-gradient(135deg, #218838, #1e7e34);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(40, 167, 69, 0.4);
}

.carrito-vacio {
    text-align: center;
    padding: 50px;
    color: #666;
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 15px;
    border: 2px dashed #c41e3a;
}

.carrito-vacio h3 {
    color: #c41e3a;
    font-family: 'Mountains of Christmas', cursive;
    font-size: 2em;
    margin-bottom: 10px;
}

@media (max-width: 768px) {
    h1 {
        font-size: 2.5em;
    }
    
    h1::before,
    h1::after {
        display: none;
    }
    
    .productos-grid {
        grid-template-columns: 1fr;
    }
    
    .carrito-item {
        grid-template-columns: 1fr;
        gap: 20px;
        text-align: center;
    }
    
    .cart-header {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
    }
    
    .carrito-actions {
        flex-direction: column;
    }
    
    .cart-icon {
        width: 60px;
        height: 60px;
        top: 15px;
        right: 15px;
    }
    
    .cart-symbol {
        font-size: 24px;
    }
    
    .input-group {
        gap: 12px;
    }
    
    .input-group input {
        padding: 12px;
        font-size: 14px;
    }
}
