/**
 * NOVAYA - Cart Enhancement Styles v3.0
 * Rozszerzone style dla koszyka wieloproduktowego
 */

/* ========================================
   ENHANCED CART ITEMS
   ======================================== */

.cart-item-enhanced {
    background: linear-gradient(135deg, rgba(250, 246, 241, 0.95), rgba(245, 235, 224, 0.95));
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.cart-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.cart-item-header h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #3E2723;
    margin: 0;
}

.cart-item-remove {
    background: transparent;
    border: none;
    color: #d32f2f;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.cart-item-remove:hover {
    color: #b71c1c;
    transform: scale(1.1);
}

.cart-item-body {
    margin-bottom: 0.75rem;
}

.cart-item-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: #3E2723;
}

.cart-item-detail i {
    color: #C9A961;
    width: 18px;
}

.cart-item-code-highlight {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(212, 175, 55, 0.1));
    padding: 0.5rem;
    border-radius: 6px;
    margin-top: 0.5rem;
    font-weight: 600;
}

.cart-item-code-highlight strong {
    color: #C9A961;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.cart-item-note {
    display: flex;
    gap: 0.5rem;
    margin-top: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
}

.cart-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 0.75rem;
    border-top: 1px solid rgba(201, 169, 97, 0.15);
}

.btn-edit-item {
    background: transparent;
    border: 1px solid #C9A961;
    color: #C9A961;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.3s ease;
}

.btn-edit-item:hover {
    background: #C9A961;
    color: white;
    transform: translateY(-2px);
}

.cart-item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #3E2723;
}

/* ========================================
   CART ADD MORE & DISCOUNT
   ======================================== */

.cart-add-more {
    margin: 1.5rem 0;
    text-align: center;
}

.cart-add-more .btn {
    width: 100%;
}

.cart-discount-section {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(250, 248, 245, 0.5));
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin: 1.5rem 0;
}

.cart-discount-section h4 {
    font-family: 'Playfair Display', serif;
    font-size: 1rem;
    color: #3E2723;
    margin: 0 0 0.75rem 0;
}

.discount-input-group {
    display: flex;
    gap: 0.5rem;
}

.discount-input-group input {
    flex: 1;
    padding: 0.6rem;
    border: 1px solid rgba(201, 169, 97, 0.3);
    border-radius: 6px;
    font-family: 'Montserrat', sans-serif;
    font-size: 0.9rem;
}

.discount-input-group input:disabled {
    background: rgba(0, 0, 0, 0.05);
    cursor: not-allowed;
}

.discount-input-group .btn-gold {
    padding: 0.6rem 1.2rem;
    background: #C9A961;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.discount-input-group .btn-gold:hover:not(:disabled) {
    background: #B8941E;
    transform: translateY(-2px);
}

.discount-input-group .btn-gold:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.discount-message {
    margin-top: 0.5rem;
    font-size: 0.85rem;
}

.discount-message .success {
    color: #2e7d32;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.discount-message .error {
    color: #d32f2f;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* ========================================
   CART SUMMARY
   ======================================== */

.cart-summary {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(250, 248, 245, 0.9));
    border: 2px solid #C9A961;
    border-radius: 12px;
    padding: 1rem;
    margin-top: 1.5rem;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #3E2723;
}

.discount-row {
    color: #2e7d32;
    font-weight: 600;
}

.discount-amount {
    color: #2e7d32;
}

.total-row {
    border-top: 2px solid #C9A961;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.total-price {
    color: #C9A961;
    font-size: 1.5rem;
}

.cart-empty {
    text-align: center;
    padding: 3rem 1rem;
}

.cart-empty i {
    font-size: 4rem;
    color: #C9A961;
    opacity: 0.3;
    margin-bottom: 1rem;
}

.cart-empty p {
    color: #3E2723;
    opacity: 0.6;
    margin-bottom: 1.5rem;
}

/* ========================================
   LUXURY INFO BOX (dla komunikatów Stripe)
   ======================================== */

.luxury-info-box {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.08), rgba(250, 248, 245, 0.5));
    border-left: 4px solid #C9A961;
    padding: 1rem 1.5rem;
    border-radius: 12px;
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    margin: 1rem 0;
}

.luxury-info-box i {
    color: #C9A961;
    font-size: 1.5rem;
    margin-top: 0.2rem;
}

.luxury-info-box strong {
    color: #3E2723;
    display: block;
    margin-bottom: 0.5rem;
}

.luxury-info-box p {
    color: #3E2723;
    opacity: 0.85;
    line-height: 1.6;
    margin: 0;
}

.payment-info-stripe-multiproduct {
    display: none;
}

/* ========================================
   CHECKOUT ENHANCED STYLES
   ======================================== */

.checkout-products {
    margin-bottom: 1.5rem;
}

.checkout-products h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.2rem;
    color: #3E2723;
    margin-bottom: 1rem;
}

.checkout-item-enhanced {
    background: linear-gradient(135deg, rgba(250, 246, 241, 0.95), rgba(245, 235, 224, 0.95));
    border: 1px solid rgba(201, 169, 97, 0.2);
    border-radius: 12px;
    padding: 1rem;
    margin-bottom: 1rem;
}

.checkout-item-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(201, 169, 97, 0.15);
}

.checkout-item-header strong {
    font-family: 'Playfair Display', serif;
    font-size: 1.1rem;
    color: #3E2723;
}

.checkout-item-header .item-price {
    font-weight: 700;
    font-size: 1.1rem;
    color: #3E2723;
}

.checkout-item-details {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.checkout-detail {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #3E2723;
}

.checkout-detail i {
    color: #C9A961;
    width: 18px;
}

.checkout-code-highlight {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.15), rgba(212, 175, 55, 0.1));
    padding: 0.5rem;
    border-radius: 6px;
    font-weight: 600;
}

.checkout-code-highlight strong {
    color: #C9A961;
    font-size: 1.05rem;
    letter-spacing: 1px;
}

.checkout-note {
    display: flex;
    gap: 0.5rem;
    padding: 0.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 6px;
    font-size: 0.85rem;
    font-style: italic;
    color: #666;
    margin-top: 0.5rem;
}

.checkout-summary-totals {
    background: linear-gradient(135deg, rgba(201, 169, 97, 0.1), rgba(250, 248, 245, 0.9));
    border: 2px solid #C9A961;
    border-radius: 12px;
    padding: 1rem;
}

.checkout-summary-totals .summary-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    font-size: 0.95rem;
    color: #3E2723;
}

.checkout-summary-totals .discount-row {
    color: #2e7d32;
    font-weight: 600;
}

.checkout-summary-totals .discount-amount {
    color: #2e7d32;
}

.checkout-summary-totals .total-row {
    border-top: 2px solid #C9A961;
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1.2rem;
}

.checkout-summary-totals .total-price {
    color: #C9A961;
    font-size: 1.5rem;
}

/* ========================================
   RESPONSYWNOŚĆ
   ======================================== */

@media (max-width: 768px) {
    .cart-item-enhanced {
        padding: 0.8rem;
    }
    
    .cart-item-header h4 {
        font-size: 1rem;
    }
    
    .cart-item-detail {
        font-size: 0.85rem;
    }
    
    .discount-input-group {
        flex-direction: column;
    }
    
    .discount-input-group .btn-gold {
        width: 100%;
    }
    
    .checkout-item-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
}
