.cart-layout {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin: 0 20px;
}

.cart-items-column {
    max-width: 70%;
    flex: 2.5;
    min-width: 300px;
    background-color: var(--zh-white);
    padding: 25px;
    margin: 20px 10px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.07);
}

.select-all-container {
    margin-bottom: 15px;
    display: flex;
    align-items: center;
}

.select-all-container label {
    width: 100%;
    font-weight: bold;
    border: 1px solid #333;
    height: 11vh;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.select-all-container label span {
    padding: 0 13px;
}

.select-all-container label .neon-checkbox__check-container {
    padding: 0 13px;
    display: flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    align-items: flex-end;
}

.neon-checkbox__check-container h3 {
    margin-bottom: 0 !important;
}

/* CSS للـ checkbox الأخضر */
#selectAllItems,
.item-select-checkbox {
    appearance: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ddd;
    border-radius: 4px;
    background-color: var(--zh-white);
    cursor: pointer;
}

#selectAllItems:checked,
.item-select-checkbox:checked {
    background-color: #4caf50 !important;
    border-color: #4caf50 !important;
}

#selectAllItems::after,
.item-select-checkbox:checked::after {
    display: flex;
    content: "✓";
    color: white;
    align-items: center;
    justify-content: center;
}

.cart-table {
    width: 100%;
    border: 1px solid #ddd;
    border-collapse: collapse;
    margin: 20px 0;
}

.cart-table th,
.cart-table td {
    border-bottom: 0.5px solid #ddd;
    padding: 6px 12px;
    text-align: center;
    vertical-align: middle;
}

.cart-table tr td {
    justify-items: anchor-center;
}

.cart-table img {
    max-width: 60px;
    height: 60px;
    object-fit: contain;
    border-radius: 4px;
}

.max-quantity-message {
    color: var(--zh-red) !important;
    font-size: 0.8em;
    text-align: center;
    margin-top: 3px;
}

.cart-summary-column {
    flex: 1;
    width: 30%;
    position: sticky;
    top: 100px;
    align-self: flex-start;
    margin: 20px 10px;
}

.cart-summary-section {
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
}

.cart-summary-section h2 {
    font-size: 1.5em;
    margin-top: 0;
    margin-bottom: 15px;
}

.summary-item span:last-child {
    font-weight: bold;
}

.cart-summary-section hr {
    border-style: dashed;
    border-color: #ccc;
    margin: 15px 0;
}

#checkout-button-summary:hover {
    background-color: #218838;
}

#checkout-button-summary:disabled {
    background-color: #aaa;
    cursor: not-allowed;
}

@media (max-width: 768px) {
    .cart-layout {
        flex-direction: column;
    }

    /* ----------------------------------------- */
    .cart-layout {
        display: flex;
        gap: 1px;
        margin: 0px !important;
        justify-content: center;
        flex-wrap: wrap;
    }

    .cart-items-column {
        max-width: 100% !important;
        padding: 10px !important;
        margin: 0 0 8px 0 !important;
        box-shadow: none !important;
    }

    .select-all-container {
        margin-bottom: 15px;
    }

    .cart-items-table-container {
        margin: 8px 0;
        display: flex;
        align-items: center;
    }

    #selectAllItems:checked,
    .item-select-checkbox:checked,
    .select-all-container label .neon-checkbox__check-container svg {
        transform: scale(0.9);
        fill: var(--icon-primary-color) !important;
    }

    .select-all-container label span {
        padding: 0 13px;
        font-size: var(--zh-font-size-sm);
    }

    .cart-table {
        border: none;
        margin: -16px 0;
    }

    thead tr {
        display: none;
    }

    tbody tr {
        display: grid;
        grid-template-columns: max-content;
        grid-template-columns: repeat(2, 1fr);
        margin: 10px auto !important;
        border-radius: 4px;
        box-shadow: 0px 1px 5px 0px #4d993bbd !important;
    }

    tbody tr td:nth-child(odd) {
        display: flex;
        /* background-color: #28a745; */
        font-size: var(--zh-font-size-sm);
    }

    tbody tr td:nth-child(even) {
        display: flex;
        justify-content: flex-end;
        font-size: var(--zh-font-size-sm);
        flex-direction: column;
        align-items: flex-end;
    }

    .cart-summary-column {
        position: static;
        margin: 0 0 8px 0;
    }

    .cart-summary-section {
        padding: 10px;
    }

    .cart-summary-section h2 {
        font-size: var(--zh-font-size-sm);
    }

    .cart-summary-section h2 img {
        width: 18px;
        height: 18px;
        margin-inline-end: 6px;
    }

    .summary-item {
        font-size: 0.8em;
    }

    .btn-card {
        letter-spacing: 0.5px;
        transform: rotateX(24deg);
    }
}