

    .cart-container {
        max-width: 1200px;
        margin: 2rem auto;
        padding: 0 1rem;
    }

    .empty-cart {
        text-align: center;
        padding: 3rem;
        background: white;
        border-radius: 15px;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .empty-cart i {
        font-size: 4rem;
        color: #520721;
        margin-bottom: 1rem;
        opacity: 0.7;
    }

    .empty-cart h2 {
        color: #2c3e50;
        margin-bottom: 0.5rem;
    }

    .empty-cart p {
        color: #666;
        margin-bottom: 2rem;
    }

    .continue-shopping {
        display: inline-block;
        padding: 0.8rem 2rem;
        background: #520721;
        color: white;
        text-decoration: none;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .continue-shopping:hover {
        background: #3d0519;
        transform: translateY(-2px);
    }

    .cart-content {
        display: grid;
        gap: 2rem;
    }

    .cart-items {
        background: white;
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
        max-height: calc(3 * (120px + 1rem));
        /* ارتفاع 3 منتجات + الهوامش */
        overflow-y: auto;
        scrollbar-width: thin;
        scrollbar-color: #520721 #f0f0f0;
    }

    .cart-items::-webkit-scrollbar {
        width: 6px;
    }

    .cart-items::-webkit-scrollbar-track {
        background: #f0f0f0;
        border-radius: 10px;
    }

    .cart-items::-webkit-scrollbar-thumb {
        background: #520721;
        border-radius: 10px;
    }

    .cart-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #f0f0f0;
    }

    .clear-cart {
        background: none;
        border: none;
        color: #dc3545;
        cursor: pointer;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 1rem;
        border-radius: 8px;
        transition: all 0.3s ease;
    }

    .clear-cart:hover {
        background: #fff1f0;
        transform: translateY(-2px);
    }

    .cart-item {
        position: relative;
        /* إضافة */
        display: grid;
        grid-template-columns: auto 1fr auto;
        gap: 1.5rem;
        padding: 1.2rem;
        border: 1px solid #eee;
        border-radius: 12px;
        margin-bottom: 1rem;
        background: white;
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        align-items: center;
    }

    .cart-item img {
        width: 100px;
        height: 100px;
        object-fit: cover;
        border-radius: 10px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
        grid-row: span 2;
    }

    .item-details {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
        align-self: start;
    }

    .item-details h3 {
        color: #2c3e50;
        font-size: 1.1rem;
        margin: 0;
    }

    .item-size {
        color: #666;
        font-size: 0.9rem;
        background: #f8f9fa;
        padding: 0.3rem 0.8rem;
        border-radius: 20px;
        display: inline-block;
        width: fit-content;
    }

    .item-actions {
        display: flex;
        flex-direction: column;
        gap: 1rem;
        align-items: flex-end;
    }

    .quantity-control {
        margin: 0;
        padding: 0.3rem;
    }

    .item-price {
        color: #520721;
        font-weight: 600;
        font-size: 1.1rem;
        margin: 0;
        text-align: left;
    }

    .remove-item {
        position: absolute;
        top: 0.5rem;
        left: 0.5rem;
        background: #fff;
        border: 1px solid #eee;
        color: #dc3545;
        cursor: pointer;
        width: 24px;
        height: 24px;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 50%;
        transition: all 0.3s ease;
        z-index: 2;
        font-size: 0.9rem;
    }

    .remove-item:hover {
        background: #dc3545;
        color: #fff;
        border-color: #dc3545;
        transform: rotate(90deg);
    }

    @media (min-width: 768px) {
        .cart-content {
            grid-template-columns: 1.5fr 1fr;
        }

        .customer-form {
            grid-column: 1 / -1;
        }

        .cart-item {
            position: relative;
        }

        .remove-item {
            opacity: 0.5;
            transform: scale(0.8);
        }

        .cart-item:hover .remove-item {
            opacity: 1;
            transform: scale(1);
        }
    }

    @media (max-width: 768px) {
        .cart-items {
            padding: 1rem;
        }

        .cart-item {
            grid-template-columns: 1fr;
            text-align: center;
            position: relative;
            padding-top: 2rem;
        }

        .cart-item img {
            justify-self: center;
            grid-row: auto;
        }

        .item-details {
            align-items: center;
        }

        .item-actions {
            align-items: center;
        }

        .quantity-control {
            margin: 0.5rem auto;
        }

        .remove-item {
            align-self: flex-end;
        }
    }

    @media (max-width: 480px) {
        .cart-item {
            padding: 0.8rem;
        }

        .cart-item img {
            width: 100px;
            height: 100px;
        }

        .item-details h3 {
            font-size: 1rem;
        }

        .quantity-control {
            gap: 0.5rem;
        }

        .quantity-control button {
            width: 24px;
            height: 24px;
            font-size: 0.9rem;
        }
    }

    .order-summary {
        background: white;
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .order-summary h2 {
        color: #520721;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #f0f0f0;
    }

    .summary-item {
        display: flex;
        justify-content: space-between;
        margin-bottom: 1rem;
        color: #666;
    }

    .summary-total {
        display: flex;
        justify-content: space-between;
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 2px solid #f0f0f0;
        color: #520721;
        font-weight: 600;
        font-size: 1.1rem;
    }

    .customer-form {
        background: white;
        border-radius: 15px;
        padding: 1.5rem;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    }

    .customer-form h2 {
        color: #520721;
        margin-bottom: 1.5rem;
        padding-bottom: 0.5rem;
        border-bottom: 2px solid #f0f0f0;
    }

    .form-group {
        margin-bottom: 1.5rem;
    }

    .form-row {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    label {
        display: block;
        margin-bottom: 0.5rem;
        color: #2c3e50;
    }

    input,
    select,
    textarea {
        width: 100%;
        padding: 0.8rem;
        border: 1px solid #ddd;
        border-radius: 8px;
        font-size: 1rem;
        transition: all 0.3s ease;
    }

    input:focus,
    select:focus,
    textarea:focus {
        outline: none;
        border-color: #520721;
        box-shadow: 0 0 0 2px rgba(82, 7, 33, 0.1);
    }

    .submit-order {
        width: 100%;
        padding: 1rem;
        background: #520721;
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1.1rem;
        cursor: pointer;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
    }

    .submit-order:hover {
        background: #3d0519;
        transform: translateY(-2px);
    }

    .submit-order:active {
        transform: translateY(0);
    }

    .quantity-control {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        margin: 0.5rem 0;
    }

    .quantity-control button {
        width: 30px;
        height: 30px;
        border: 1px solid #ddd;
        border-radius: 50%;
        background: white;
        color: #520721;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: all 0.3s ease;
    }

    .quantity-control button:hover {
        background: #520721;
        color: white;
        border-color: #520721;
    }

    .quantity {
        min-width: 30px;
        text-align: center;
        font-weight: 600;
        color: #2c3e50;
    }

    @media (max-width: 768px) {
        .form-row {
            grid-template-columns: 1fr;
        }

        .cart-item {
            grid-template-columns: 1fr;
            text-align: center;
            position: relative;
            padding-top: 2rem;
        }

        .cart-item img {
            justify-self: center;
            grid-row: auto;
        }

        .remove-item {
            align-self: flex-end;
        }
    }
