/* Cart Page Styling */
.cart-container {
    min-height: calc(100vh - 200px);
    padding: 40px 20px 80px;
}
.banner_cart {
    padding: 100px 0;
}
/* Cart Header */
.cart-header {
    padding: 30px 0;
}

.cart-header h1 {
    margin: 0;
    font-size: 24px;
    font-weight: 500;
}

/* Cart Content */
.cart-content {
    display: flex;
    flex-direction: column;
}

/* Cart Table */
.cart-table-wrapper {
    overflow-x: auto;
    margin-bottom: 30px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.cart-table thead {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    border-bottom: 2px solid #e0e0e0;
}

.cart-table th {
    padding: 16px 12px;
    text-align: left;
    font-size: 13px;
    font-weight: 600;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.cart-table th.checkbox-col {
    width: 5%;
    text-align: start;
}

.cart-table th.product-col {
    width: 40%;
}

.cart-table th.quantity-col {
    width: 15%;
}

.cart-table th.price-col {
    width: 15%;
    text-align: right;
    padding-right: 30px;
}

.cart-table th.action-col {
    width: 10%;
    text-align: center;
}

/* Cart Item Row */
.cart-item-row {
    border-bottom: 1px solid #f0f0f0;
    transition: background 0.2s ease;
}

.cart-item-row:hover {
    background: #fafafa;
}

.cart-table tbody td {
    padding: 20px 12px;
    vertical-align: middle;
    color: #333;
}

/* Checkbox Column */
.checkbox-col {
    text-align: start !important;
}

.select-all-checkbox,
.item-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #1976d2;
}

/* Product Column */
.product-col {
    padding: 20px 12px !important;
}

.product-info {
    display: flex;
    gap: 15px;
    align-items: center;
}

.product-image {
    flex-shrink: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-image img {
    width: 100%;
    object-fit: cover;
}

.product-image a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

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

.product-name {
    display: block;
    font-size: 20px;
    font-weight: 500;
    text-decoration: none;
    margin-bottom: 6px;
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}

.product-name:hover {
    color: var(--color-pink);
}

.product-desc {
    font-size: 13px;
    color: #999;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Quantity Column */
.quantity-col {
    text-align: center !important;
}

.quantity-control {
    display: inline-flex;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
}

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

.qty-btn:hover:not(:disabled) {
    background: #f5f5f5;
    color: #1976d2;
}

.qty-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.qty-input {
    width: 40px;
    height: 32px;
    border: none;
    text-align: center;
    font-size: 14px;
    font-weight: 600;
    padding: 0;
}

.qty-input:focus {
    outline: none;
}

/* Price Column */
.price-col {
    text-align: right !important;
}

.price-value {
    font-size: 20px;
    font-weight: 500;
}

/* Action Column */
.action-col {
    text-align: center !important;
}

.btn-remove {
    background: none;
    border: none;
    font-size: 18px;
    cursor: pointer;
    padding: 6px;
    border-radius: 4px;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Cart Footer Section */
.cart-footer-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 2px solid #e0e0e0;
    gap: 30px;
    flex-wrap: wrap;
}

.cart-footer-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.select-text {
    font-size: 14px;
    color: #666;
}

.link-delete-selected {
    font-size: 14px;
    color: var(--color-pink);
    text-decoration: none;
    margin-left: 10px;
    padding: 6px 12px;
    border-radius: 4px;
    transition: all 0.2s ease;
}


.cart-footer-right {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-left: auto;
}

.total-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.total-label {
    font-size: 14px;
    color: #666;
}

.total-amount {
    font-size: 28px;
    font-weight: 500;
}

/* Checkout Button */
.btn-checkout {
    background: #197BBD;
    color: var(--color-white);
    border: none;
    padding: 12px 32px;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-checkout:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

.btn-checkout:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Empty Cart */
.cart-empty {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 100px 30px;
    color: #999;
    text-align: center;
}

.empty-icon {
    font-size: 64px;
    margin-bottom: 20px;
    opacity: 0.6;
}

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

.btn-continue-shopping {
    background: #1976d2;
    color: white;
    padding: 12px 32px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
    display: inline-block;
}

.btn-continue-shopping:hover {
    background: #1565c0;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.3);
}

/* Responsive */
@media (max-width: 768px) {
    .cart-container {
        padding: 20px 0;
    }

    .cart-wrapper {
        border-radius: 0;
    }


    .cart-header h1 {
        font-size: 22px;
    }


    .cart-table th {
        padding: 12px 8px;
        font-size: 12px;
    }

    .cart-table tbody td {
        padding: 15px 8px;
    }

    .product-image {
        width: 70px;
        height: 70px;
    }

    .product-name {
        font-size: 13px;
    }

    .price-value {
        font-size: 14px;
    }

    .cart-footer-section {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .cart-footer-left {
        width: 100%;
    }

    .cart-footer-right {
        width: 100%;
        flex-direction: column;
        margin-left: 0;
    }

    .total-info {
        align-items: flex-start;
        width: 100%;
    }

    .btn-checkout {
        width: 100%;
    }
    .banner_cart {
        padding: 20px 0;
    }
}

@media (max-width: 480px) {
    .cart-table th.product-col {
        width: 35%;
    }

    .cart-table th.quantity-col,
    .cart-table th.price-col {
        width: 20%;
    }

    .product-info {
        gap: 10px;
    }

    .product-image {
        width: 60px;
        height: 60px;
    }

    .product-name {
        font-size: 12px;
    }

    .product-desc {
        font-size: 11px;
    }

    .qty-btn {
        width: 28px;
        height: 28px;
        font-size: 14px;
    }

    .qty-input {
        width: 35px;
        height: 28px;
        font-size: 12px;
    }

    .select-text {
        font-size: 12px;
    }

    .total-label,
    .total-amount {
        font-size: 16px;
    }

    .btn-checkout {
        padding: 10px 20px;
        font-size: 14px;
    }
}
