/* ============================================= */
/* Cart Standard — Theme-aware Shopping Cart     */
/* Diseño universal para todas las plantillas    */
/* ============================================= */

/* Shopping Cart Container */
#contentDivShoppingCart {
    max-width: 700px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: rgba(20, 20, 30, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.4);
    color: #ffffff;
    animation: cartSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cartSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Cart Title */
.wp-cart-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.wp-cart-title i {
    font-size: 1.4rem;
    color: #ff416c;
    filter: drop-shadow(0 0 8px rgba(255, 65, 108, 0.5));
}

/* Cart Items Container */
.wp-cart-items {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0;
}

/* Individual Ticket in Cart */
.wp-cart-items .circle {
    width: 65px;
    height: 65px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    color: #fff;
    background: linear-gradient(135deg, #4CAF50 0%, #2E7D32 100%);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.35);
    transition: all 0.3s ease;
    cursor: pointer;
    margin: 0;
    border: 2px solid rgba(255, 255, 255, 0.15);
}

.wp-cart-items .circle:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(76, 175, 80, 0.5);
}

/* Cart Summary Section */
.wp-cart-summary {
    margin-top: 1.5rem;
    padding: 1.25rem;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.wp-cart-summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.6rem 0;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.8);
}

.wp-cart-summary-row + .wp-cart-summary-row {
    border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.wp-cart-summary-row .label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.wp-cart-summary-row .label i {
    color: #4CAF50;
    font-size: 0.9rem;
    width: 20px;
    text-align: center;
}

.wp-cart-summary-row .value {
    font-weight: 700;
    color: #fff;
    font-size: 1.05rem;
}

.wp-cart-summary-row.total {
    padding-top: 1rem;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(76, 175, 80, 0.3);
    font-size: 1.1rem;
}

.wp-cart-summary-row.total .value {
    color: #4CAF50;
    font-size: 1.3rem;
    text-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}

/* Comprar Button */
.wp-btn-comprar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    max-width: 320px;
    margin: 1.5rem auto 0;
    padding: 14px 32px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(255, 65, 108, 0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

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

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

.wp-btn-comprar:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 35px rgba(255, 65, 108, 0.55);
}

.wp-btn-comprar:active {
    transform: translateY(1px) scale(0.98);
}

.wp-btn-comprar i {
    font-size: 1.2rem;
}

/* Override default table_shopping for template pages */
#contentDivShoppingCart #table_shopping {
    background: rgba(255, 255, 255, 0.04);
    border-radius: 16px;
    overflow: hidden;
    border-collapse: separate;
    border-spacing: 0;
    width: 100%;
    margin-top: 1rem;
}

#contentDivShoppingCart #table_shopping thead th {
    background: rgba(255, 255, 255, 0.08);
    border: none;
    padding: 1rem 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 1.5px;
    color: #4CAF50;
    text-align: center;
}

#contentDivShoppingCart #table_shopping tbody td {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 1rem 0.75rem;
    vertical-align: middle;
    text-align: center;
    font-size: 1rem;
    color: #fff;
}

#contentDivShoppingCart #table_shopping tbody tr:hover {
    background: rgba(255, 255, 255, 0.03);
}

/* Paquetes in cart */
#contentDivShoppingCart .card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: #fff;
}

/* ============================================= */
/* Responsive                                     */
/* ============================================= */
@media (max-width: 576px) {
    #contentDivShoppingCart {
        margin: 1rem 0.75rem;
        padding: 1.25rem 1rem;
        border-radius: 18px;
    }

    .wp-cart-title {
        font-size: 1.1rem;
    }

    .wp-cart-items .circle {
        width: 55px;
        height: 55px;
        font-size: 0.9rem;
        border-radius: 12px;
    }

    .wp-btn-comprar {
        max-width: 100%;
        padding: 12px 24px;
        font-size: 0.95rem;
    }
}
