/* ========================================
   CART PAGE - DISEÑO PROFESIONAL
   ======================================== */

/* Cart Items Header */
.cart-items-header {
    margin-bottom: 1.5rem;
}

.cart-items-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #FFF;
    margin: 0;
}

/* Discount Code Section */
.discount-code-section {
    margin: 1.5rem 0;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(153, 102, 204, 0.1) 0%, rgba(153, 102, 204, 0.05) 100%);
    border: 1px solid rgba(153, 102, 204, 0.2);
    border-radius: 12px;
}

.discount-code-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
    color: #FFF;
    font-weight: 500;
    font-size: 0.95rem;
}

.discount-code-header i {
    color: #9966CC;
    font-size: 1.1rem;
}

.discount-code-input-wrapper {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    width: 100%;
}

.discount-code-input-wrapper input {
    flex: 1;
    min-width: 0; /* Permite que el input se encoja */
    padding: 0.75rem 1rem;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #FFF;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.discount-code-input-wrapper input:focus {
    outline: none;
    border-color: #9966CC;
    background: rgba(255, 255, 255, 0.08);
}

.discount-code-input-wrapper input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.discount-code-input-wrapper input:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.btn-apply-discount {
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, #9966CC 0%, #8855BB 100%);
    color: #FFF;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    flex-shrink: 0; /* El botón no se encoge */
}

.btn-apply-discount:hover:not(:disabled) {
    background: linear-gradient(135deg, #AA77DD 0%, #9966CC 100%);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(153, 102, 204, 0.4);
}

.btn-apply-discount:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Discount Message */
.discount-message {
    margin-top: 0.5rem;
    padding: 0.5rem;
    border-radius: 6px;
    font-size: 0.875rem;
    font-weight: 500;
    transition: all 0.3s ease;
}

.discount-message.success {
    color: #4CAF50;
    background: rgba(76, 175, 80, 0.1);
}

.discount-message.error {
    color: #FF6B6B;
    background: rgba(255, 107, 107, 0.1);
}

/* Discount Row in Summary */
.discount-row {
    color: #4CAF50;
    font-weight: 500;
}

.discount-row .discount-amount {
    color: #4CAF50;
    font-weight: 600;
}

.remove-discount-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    margin-left: 0.5rem;
    padding: 0.25rem;
    transition: all 0.2s ease;
}

.remove-discount-btn:hover {
    color: #FF6B6B;
}

/* Shipping Info */
.shipping-info {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem;
    background: rgba(153, 102, 204, 0.1);
    border-radius: 8px;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.8);
    margin: 0.75rem 0;
}

.shipping-info i {
    color: #9966CC;
}

.shipping-info.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.shipping-info.success i {
    color: #4CAF50;
}

.free-shipping {
    color: #4CAF50 !important;
    font-weight: 600;
}

.free-shipping i {
    margin-right: 0.25rem;
}

/* Divider in Summary */
.cart-summary .divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 1rem 0;
}

/* Secure Payment Badge */
.secure-payment-badge {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.25rem;
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.1) 0%, rgba(76, 175, 80, 0.05) 100%);
    border: 1px solid rgba(76, 175, 80, 0.2);
    border-radius: 12px;
    margin-top: 1.5rem;
}

.secure-payment-badge i {
    font-size: 2rem;
    color: #4CAF50;
}

.secure-payment-badge strong {
    display: block;
    color: #FFF;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.secure-payment-badge p {
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.875rem;
}

/* Payment Methods in Cart */
.payment-methods-cart {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.payment-methods-cart i {
    font-size: 1.75rem;
    color: rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
}

.payment-methods-cart i:hover {
    color: #9966CC;
    transform: scale(1.1);
}

/* Improved Cart Summary */
.cart-summary h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #FFF;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid rgba(153, 102, 204, 0.3);
}

.cart-summary .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    color: rgba(255, 255, 255, 0.8);
    font-size: 1rem;
}

.cart-summary .summary-row.total {
    font-size: 1.375rem;
    font-weight: 700;
    color: #FFF;
    padding: 1.25rem 0;
    margin-top: 0.5rem;
    border-top: 2px solid rgba(153, 102, 204, 0.3);
}

/* Improved Buttons */
.cart-summary .btn {
    width: 100%;
    margin-top: 0.75rem;
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.cart-summary .btn-primary {
    background: linear-gradient(135deg, #9966CC 0%, #8855BB 100%);
    box-shadow: 0 4px 15px rgba(153, 102, 204, 0.3);
}

.cart-summary .btn-primary:hover {
    background: linear-gradient(135deg, #AA77DD 0%, #9966CC 100%);
    box-shadow: 0 6px 20px rgba(153, 102, 204, 0.4);
    transform: translateY(-2px);
}

.cart-summary .btn-outline {
    background: transparent;
    border: 2px solid rgba(153, 102, 204, 0.3);
    color: #9966CC;
}

.cart-summary .btn-outline:hover {
    background: rgba(153, 102, 204, 0.1);
    border-color: #9966CC;
}

/* Responsive */
@media (max-width: 768px) {
    .discount-code-input-wrapper {
        flex-direction: column;
    }
    
    .btn-apply-discount {
        width: 100%;
    }
    
    .secure-payment-badge {
        flex-direction: column;
        text-align: center;
    }
    
    .payment-methods-cart {
        flex-wrap: wrap;
        gap: 0.75rem;
    }
    
    .payment-methods-cart i {
        font-size: 1.5rem;
    }
}

