.cart-page-section {
    /* padding: 40px 0 60px; */
    margin: 50px 0;
    min-height: 60vh;
}

.cart-page-wrapper {
    display: flex;
    gap: 12px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: flex-start;
}

.cart-items-container {
    box-sizing: border-box;
    width: 701px;
    height: 620.87px;
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.cart-items-header {
    background: #FFCC00;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 4px 4px 0 0;
}

.cart-items-header .cart-icon {
    font-size: 20px;
}

.cart-items-header .cart-icon i {
    color: #fff;
}

.cart-items-header .cart-header-text {
    font-size: 20px;
    font-weight: 700;
    color: #fff;
}

.cart-select-all {
    padding: 15px 20px;
    border-bottom: 1px solid #ECECEC;
    background: #FFFFFF;
}

.cart-select-all .select-all-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    color: #333;
    margin: 0;
}

.cart-select-all .select-all-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FFCC00;
}

.cart-select-all .select-all-checkbox:indeterminate {
    accent-color: #FFCC00;
    opacity: 0.7;
}

.cart-summary-container {
    box-sizing: border-box;
    width: 485.87px;
    min-height: 620.55px;
    background: #FFFFFF;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
}

.cart-items-list {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 20px;
    flex: 1;
    overflow-y: auto;
}

.cart-items-list::-webkit-scrollbar {
    width: 6px;
}

.cart-items-list::-webkit-scrollbar-track {
    background: transparent;
}

.cart-items-list::-webkit-scrollbar-thumb {
    background: #ddd;
    border-radius: 3px;
}

.cart-items-footer {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    border-top: 1px solid #ECECEC;
}

.cart-items-list .cart-item {
    display: flex;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #ECECEC;
    gap: 15px;
}

.cart-items-list .item-checkbox {
    flex-shrink: 0;
}

.cart-items-list .item-select-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #FFCC00;
}

.cart-items-list .cart-item:last-child {
    border-bottom: none;
}

.cart-items-list .item-image {
    width: 120px;
    height: 120px;
    margin-right: 20px;
    flex-shrink: 0;
    border-radius: 4px;
    overflow: hidden;
    background: #f8f9fa;
}

.cart-items-list .item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-items-list .item-details {
    flex: 1;
    margin-right: 20px;
}

.cart-items-list .item-name {
    margin-bottom: 8px;
}

.cart-items-list .item-name a {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    text-decoration: none;
    line-height: 1.4;
}

.cart-items-list .item-name a:hover {
    color: #CC0000;
}

.cart-items-list .item-price-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 8px;
}

.cart-items-list .item-sale-price {
    font-size: 18px;
    font-weight: 700;
    color: #CC0000;
}

.cart-items-list .item-price {
    font-size: 16px;
    font-weight: 400;
    color: #666;
    text-decoration: line-through;
}

.cart-items-list .item-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 12px;
}

.cart-items-list .quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    overflow: hidden;
}

.cart-items-list .qty-btn {
    width: 32px;
    height: 32px;
    border: none;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    font-weight: 500;
    color: #666;
    transition: all 0.2s ease;
}

.cart-items-list .qty-btn:hover {
    background: #f8f9fa;
    color: #CC0000;
}

.cart-items-list .qty-input {
    width: 50px;
    height: 32px;
    text-align: center;
    border: none;
    border-left: 1px solid #ECECEC;
    border-right: 1px solid #ECECEC;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    background: transparent;
}

.cart-items-list .item-total-price {
    font-size: 18px;
    font-weight: 700;
    color: #CC0000;
    min-width: 120px;
    text-align: right;
}

.cart-items-list .remove-item {
    width: 32px;
    height: 32px;
    font-size: 20px;
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-items-list .remove-item:hover {
    background: #ffebee;
    color: #f44336;
}

.cart-summary-container .summary-header,
.cart-items-container .summary-header {
    padding: 15px;
    margin: 0;
}

.cart-summary-container .summary-header.payment-header {
    background: #FDF1C8;
    border-radius: 4px 4px 0 0;
}

.cart-summary-container .summary-header.customer-header {
    background: #FDF1C8;
    margin-top: 20px;
}

.cart-summary-container .summary-header.order-summary-header,
.cart-items-container .summary-header.order-summary-header {
    background: transparent;
    border-bottom: 1px solid #ECECEC;
    margin-top: 0;
    padding-bottom: 15px;
}

.cart-summary-container .summary-title,
.cart-items-container .summary-title {
    font-size: 16px;
    font-weight: 700;
    color: #333;
    margin: 0;
}

.cart-summary-container .payment-methods {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.cart-summary-container .payment-option {
    display: flex;
    align-items: center;
    position: relative;
}

.cart-summary-container .payment-option input[type="radio"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ECECEC;
    border-radius: 50%;
    background: #FFFFFF;
    cursor: pointer;
    margin-right: 12px;
    position: relative;
    flex-shrink: 0;
    transition: all 0.2s ease;
}

.cart-summary-container .payment-option input[type="radio"]:checked {
    border-color: #FFCC00;
    background: #FFFFFF;
}

.cart-summary-container .payment-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #FFCC00;
}

.cart-summary-container .payment-option input[type="radio"]:hover {
    border-color: #FFCC00;
}

.cart-summary-container .payment-option label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 400;
    color: #333;
    flex: 1;
    margin: 0;
}

.cart-summary-container .payment-icon {
    font-size: 20px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cart-summary-container .payment-icon i {
    color: #A97B12;
}

.cart-summary-container .customer-info-form {
    padding: 20px;
}

.cart-summary-container .form-row {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.cart-summary-container .form-row:last-child {
    margin-bottom: 0;
}

.cart-summary-container .form-group {
    flex: 1;
}

.cart-summary-container .form-row .form-group {
    margin-bottom: 0;
}

.cart-summary-container .customer-info-form>.form-group {
    margin-bottom: 12px;
}

.cart-summary-container .customer-info-form>.form-group:last-child {
    margin-bottom: 0;
}

.cart-summary-container .form-group input,
.cart-summary-container .form-group select,
.cart-summary-container .form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ECECEC;
    border-radius: 4px;
    font-size: 14px;
    color: #333;
    background: #FFFFFF;
    box-sizing: border-box;
    height: 42px;
    line-height: 1.5;
}

.cart-summary-container .form-group textarea {
    height: auto;
    min-height: 80px;
    resize: vertical;
}

.cart-summary-container .form-group input:focus,
.cart-summary-container .form-group select:focus,
.cart-summary-container .form-group textarea:focus {
    outline: none;
    border-color: #FFCC00;
}


.cart-summary-container .summary-content,
.cart-items-container .summary-content {
    padding: 20px 0;
    flex: 0;
    margin-bottom: 0;
}

.cart-summary-container .summary-line,
.cart-items-container .summary-line {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    font-size: 15px;
    color: #666;
}

.cart-summary-container .summary-line.total,
.cart-items-container .summary-line.total {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
    font-size: 18px;
    font-weight: 700;
    color: #333;
}

.cart-summary-container .summary-line.total span:last-child,
.cart-items-container .summary-line.total span:last-child {
    color: #CC0000;
    font-size: 20px;
}

.cart-summary-container .summary-actions,
.cart-items-container .summary-actions {
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: 20px;
}

.cart-summary-container .checkout-btn,
.cart-items-container .checkout-btn {
    width: 100%;
    background: #FFCC00;
    color: #333;
    border: none;
    padding: 14px 20px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    text-align: center;
    display: block;
}

.cart-summary-container .checkout-btn:hover,
.cart-items-container .checkout-btn:hover {
    background: #FFD700;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 204, 0, 0.4);
}

.cart-empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 500px;
    text-align: center;
    padding: 40px 20px;
    flex: 1;
}

.cart-empty-state .empty-icon {
    font-size: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.cart-empty-state .empty-text {
    font-size: 18px;
    color: #666;
    margin-bottom: 30px;
}

.cart-empty-state .continue-shopping-btn {
    display: inline-block;
    background: linear-gradient(135deg, #ff6b35, #ff8a50);
    color: white;
    border: none;
    padding: 14px 30px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
}

.cart-empty-state .continue-shopping-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 107, 53, 0.4);
}

/* Responsive */
@media (max-width: 1200px) {
    .cart-page-wrapper {
        flex-direction: column;
        align-items: center;
    }

    .cart-items-container,
    .cart-summary-container {
        width: 100%;
        max-width: 701px;
    }
}

@media (max-width: 768px) {
    .cart-page-section {
        padding: 20px 0 40px;
    }

    .cart-items-container,
    .cart-summary-container {
        padding: 15px;
    }

    .cart-items-list .cart-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .cart-items-list .item-image {
        width: 100px;
        height: 100px;
    }

    .cart-items-list .item-actions {
        width: 100%;
        justify-content: space-between;
    }
}

/* Empty cart styles */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    min-height: 400px;
}

.cart-empty .empty-icon {
    font-size: 80px;
    color: #FFCC00;
    margin-bottom: 20px;
}

.cart-empty .empty-icon i {
    opacity: 0.5;
}

.cart-empty .empty-title {
    font-size: 24px;
    font-weight: 700;
    color: #333;
    margin: 0 0 10px;
}

.cart-empty .empty-text {
    font-size: 16px;
    color: #666;
    margin: 0 0 30px;
}

.cart-empty .btn-continue-shopping {
    display: inline-block;
    padding: 12px 30px;
    background: #FFCC00;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.cart-empty .btn-continue-shopping:hover {
    background: #E6B800;
}