.payment-main-content{
    margin-top: 3rem;
    margin-bottom: 3rem;
}
.payment-page-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.page-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #1e3a8a;
    margin-bottom: 2rem;
}

.payment-main-grid {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 1.5rem;
    align-items: start;
}

.form-section-card,
.order-summary-box {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.05);
}

/* Select All Bar */
.cart-select-all-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 1rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.custom-checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    color: #1e3a8a;
    font-size: 0.95rem;
    cursor: pointer;
}

.custom-checkbox-label input,
.item-select-checkbox {
    width: 18px;
    height: 18px;
    accent-color: #1e3a8a;
    cursor: pointer;
}

.item-count-label {
    font-weight: normal;
    color: #64748b;
    font-size: 0.85rem;
}

.btn-clear-all {
    background: transparent;
    border: none;
    color: #64748b;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

.btn-clear-all:hover {
    color: #ef4444;
}

/* Clean Favorite Button Styling (No background box) */
.favorite-btn {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.favorite-btn:hover {
    transform: scale(1.15);
}

/* Ensure active state does NOT show a background box or fill box */
.favorite-btn.active {
    background: transparent !important;
}

/* Make sure the solid heart icon turns red without any background wrapper */
.favorite-btn i.fa-solid {
    color: #ef4444 !important;
}

.favorite-btn i.fa-regular {
    color: #475569 !important; /* Default outline color */
}

/* Cart Items Layout */
.cart-items-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding-bottom: 1.25rem;
    border-bottom: 1px solid #f1f5f9;
}

.summary-item img {
    width: 65px;
    height: 65px;
    object-fit: contain;
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.25rem;
    border: 1px solid #e2e8f0;
    flex-shrink: 0;
}

.summary-item-info {
    flex-grow: 1;
}

.summary-item-info h4 {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.3;
    margin-bottom: 0.15rem;
}

.item-price-unit {
    font-size: 0.75rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.cart-item-bottom-row {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.item-price-main {
    font-size: 0.95rem;
    font-weight: 800;
    color: #1e3a8a;
}

/* Quantity Controls */
.cart-qty-control {
    display: flex;
    align-items: center;
    background: #f8fafc;
    border-radius: 9999px;
    width: 90px;
    padding: 2px;
    border: 1px solid #cbd5e1;
}

.qty-adjust-btn {
    width: 22px;
    height: 22px;
    border: none;
    background: #ffffff;
    border-radius: 50%;
    cursor: pointer;
    font-weight: bold;
    color: #1e3a8a;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    font-size: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-qty-input {
    flex-grow: 1;
    border: none;
    background: transparent;
    text-align: center;
    font-size: 0.8rem;
    font-weight: bold;
    color: #1e3a8a;
    width: 25px;
}

/* Action Icons */
.btn-action-icon {
    background: transparent;
    border: none;
    color: #94a3b8;
    cursor: pointer;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.btn-action-icon:hover {
    color: #ef4444;
}

.cart-item-right {
    text-align: right;
}

.item-total-price {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3a8a;
    white-space: nowrap;
}

/* Right Column Summary */
.summary-box-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid #e2e8f0;
}

.summary-box-header h3 {
    font-size: 1rem;
    color: #1e3a8a;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.summary-item-counter {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1e3a8a;
    background: #eff6ff;
    padding: 0.2rem 0.6rem;
    border-radius: 9999px;
    border: 1px solid #bfdbfe;
}

.total-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    color: #475569;
    margin-bottom: 0.75rem;
}

.summary-divider {
    border: none;
    border-top: 1px dashed #e2e8f0;
    margin: 1rem 0;
}

.net-total-row {
    font-size: 1rem;
    font-weight: 800;
    color: #1e3a8a;
}

.net-price-value {
    color: #1e3a8a;
    font-size: 1.25rem;
}

/* Checkout Stack Buttons */
.cart-actions-stack {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.btn-proceed-checkout {
    background: #1e3a8a;
    color: #ffffff;
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem;
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.btn-proceed-checkout:hover {
    background: #1d4ed8;
}

.btn-continue-shopping {
    background: #ffffff;
    color: #1e3a8a;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 0.75rem;
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.btn-continue-shopping:hover {
    background: #f8fafc;
}

/* Secure Badges & Help Box */
.secure-badges-footer {
    display: flex;
    justify-content: space-between;
    margin-top: 1.25rem;
    padding-top: 1rem;
    border-top: 1px solid #f1f5f9;
    font-size: 0.68rem;
    color: #64748b;
    font-weight: 600;
}

.secure-badge-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.help-card-box {
    background: #ffffff;
    border: 1.5px dashed #f87171;
    border-radius: 1rem;
    padding: 1rem 1.25rem;
    margin-top: 1rem;
    box-shadow: 0 4px 15px rgba(30, 58, 138, 0.05);
}

.help-title {
    font-size: 0.85rem;
    font-weight: 700;
    color: #1e3a8a;
    margin-bottom: 0.25rem;
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.help-desc {
    font-size: 0.78rem;
    color: #64748b;
}

@media (max-width: 900px) {
    .payment-main-grid {
        grid-template-columns: 1fr;
    }
}