.container h1 {
    width: fit-content;
}

.cart-page-container {
    padding: 2rem 1.5rem;
    background: #f8fafc;
    min-height: 80vh;
}

.page-title {
    margin-bottom: 2rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    align-items: start;
}

@media (min-width: 768px) {
    .cart-wrapper {
        grid-template-columns: 1.8fr 1fr;
    }
}

.cart-items {
    min-height: 120px;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #fff;
    padding: 1.25rem;
    border-radius: 12px;
    margin-bottom: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
    border: 1px solid #e5e7eb;
    transition: box-shadow 0.2s ease;
}

.cart-item:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.item-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 8px;
    background: #f3f4f6;
    flex-shrink: 0;
}

.item-details {
    flex: 1;
    min-width: 0;
}

.item-details h4 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
    color: #111827;
    line-height: 1.3;
    overflow: hidden;
}

.item-details p {
    color: #6b7280;
    font-size: 0.875rem;
    margin: 0 0 0.5rem 0;
}

.item-controls {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.item-controls .qty-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #d1d5db;
    background: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #374151;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, border-color 0.2s;
}

.item-controls .qty-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.item-controls span {
    min-width: 1.5rem;
    text-align: center;
    font-weight: 500;
    font-size: 0.9375rem;
}

.item-price {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    flex-shrink: 0;
}

.item-price strong {
    font-weight: 700;
}

.remove-item {
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    background: transparent;
    color: #ef4444;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.remove-item:hover {
    background: #fef2f2;
    color: #dc2626;
}

.summary-card {
    background: #fff;
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    position: sticky;
    top: 1.5rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.summary-card h3 {
    margin: 0 0 1rem 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}

.summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.75rem;
    font-size: 0.9375rem;
    color: #4b5563;
}

.summary-row.total {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    margin-top: 1rem;
    padding-top: 0.75rem;
    border-top: 1px solid #e5e7eb;
}

.checkout-btn {
    width: 100%;
    padding: 0.875rem 1rem;
    background: #111827;
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 1rem;
    transition: background 0.2s;
}

.checkout-btn:hover {
    background: #000;
}

.loader-v2,
.cart-empty-msg {
    text-align: center;
    padding: 2rem;
    color: #6b7280;
    font-size: 0.9375rem;
}

.payment-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.payment-modal-overlay.payment-modal-open {
    display: flex;
}
.payment-modal {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
    max-width: 400px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
}
.payment-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid #e5e7eb;
}
.payment-modal-header h3 {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
}
.payment-modal-close {
    width: 32px;
    height: 32px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 1.5rem;
    color: #6b7280;
    cursor: pointer;
    line-height: 1;
    border-radius: 6px;
}
.payment-modal-close:hover {
    background: #f3f4f6;
    color: #111827;
}
.payment-modal-body {
    padding: 1.25rem;
}
.payment-order-total {
    margin: 0 0 0.75rem 0;
    font-size: 1rem;
    color: #374151;
}
.payment-hint {
    margin: 0 0 1rem 0;
    font-size: 0.8125rem;
    color: #6b7280;
}
.payment-form label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 0.25rem;
}
.payment-form input {
    width: 100%;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9375rem;
    margin-bottom: 0.75rem;
    box-sizing: border-box;
}
.payment-form input:focus {
    outline: none;
    border-color: #111827;
}
.payment-message {
    margin: 0 0 0.75rem 0;
    font-size: 0.875rem;
    display: none;
}
.payment-message-success {
    color: #059669;
}
.payment-message-error {
    color: #dc2626;
}
.payment-modal-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}
.payment-btn-cancel,
.payment-btn-pay {
    flex: 1;
    padding: 0.625rem 1rem;
    border-radius: 6px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
}
.payment-btn-cancel {
    border: 1px solid #d1d5db;
    background: #fff;
    color: #374151;
}
.payment-btn-pay {
    border: none;
    background: #111827;
    color: #fff;
    font-weight: 600;
}
.payment-btn-pay:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

