/* Improved Button Styles */
.btn-producto {
    display: inline-block;
    padding: 12px 25px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border: none;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-producto:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 0, 0, 0.3);
    background: linear-gradient(45deg, #cc0000, #ff0000);
}

.btn-producto:active {
    transform: translateY(1px);
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.2);
}

.btn-producto::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    transition: all 0.5s ease;
}

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

/* Product Variant Button Styles */
.add-to-cart-btn {
    padding: 10px 20px;
    background: linear-gradient(45deg, #ff0000, #cc0000);
    color: white;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(255, 0, 0, 0.1);
}

.add-to-cart-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 0, 0, 0.2);
    background: linear-gradient(45deg, #cc0000, #ff0000);
}

/* Product Variant Styles */
.product-variant {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    margin: 10px 0;
    border: 1px solid #eee;
    border-radius: 15px;
    transition: all 0.3s ease;
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.product-variant:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    border-color: #ff0000;
}

.variant-info h4 {
    color: #333;
    font-size: 16px;
    margin: 0 0 5px 0;
}

.variant-info p {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.variant-price {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
}

.price {
    font-size: 20px;
    font-weight: bold;
    color: #ff0000;
}

/* Cart Count Badge */
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: #ff0000;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    min-width: 18px;
    height: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* Popup Header Styles */
.popup-header {
    background: linear-gradient(45deg, #ff0000, #cc0000);
    margin: -20px -20px 20px -20px;
    padding: 20px;
    border-radius: 8px 8px 0 0;
    color: white;
}

.popup-header h3 {
    margin: 0;
    font-size: 24px;
    font-weight: 600;
}

.close-popup {
    color: white;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-popup:hover {
    opacity: 1;
    color: white;
}

/* Product Details Content */
.product-details {
    padding: 20px;
}

.product-details h2 {
    font-size: 28px;
    color: #333;
    margin-bottom: 15px;
    font-weight: 600;
}

.product-description {
    font-size: 16px;
    line-height: 1.6;
    color: #666;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

/* Responsive Design */
@media (max-width: 768px) {
    .btn-producto {
        width: 100%;
        padding: 15px 20px;
        font-size: 14px;
    }

    .product-variant {
        flex-direction: column;
        text-align: center;
        padding: 15px;
    }

    .variant-price {
        margin-top: 15px;
        align-items: center;
    }

    .add-to-cart-btn {
        width: 100%;
        margin-top: 10px;
    }

    .popup-header h3 {
        font-size: 20px;
    }
}