body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding-top: 70px;
    background: #000000;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
main {
    flex: 1;
}
.Menu {
    display: flex;
    flex-direction: row-reverse;
    direction: ltr;
    justify-content: flex-end;
    align-items: center;
    gap: 20px;
    background-color: transparent;
    padding: 15px 20px;
    border-radius: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    position: absolute;
    top: 0;
    left: 0;
    transform: none;
    z-index: 2;
    box-sizing: border-box;
}
.Menu a {
    color: #fff8f0;
    text-decoration: none;
    font-weight: bold;
    position: relative;
    padding: 8px 16px;
    transition: color 0.35s ease, transform 0.35s ease;
    border-radius: 14px;
    overflow: hidden;
    font-family: "Rubik", sans-serif;
}
.Menu a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    right: 0;
    bottom: 0;
    background-color: rgb(255, 255, 255);
    transform: scaleX(0);
    transform-origin: center center;
    transition: transform 0.35s ease;
    z-index: -1;
}
.Menu a:hover {
    color: #000000;
    transform: translateY(-1px);
}
.Menu a:hover::before {
    transform: scaleX(1);
}
.Cart_img,
.Menu a img {
    display: inline-block;
    vertical-align: middle;
    height: 20px;
    width: auto;
    margin-right: 8px;
    transition: filter 0.35s ease;
}
.Menu a:hover .Cart_img,
.Menu a:hover img {
    filter: invert(1) brightness(0);
}
.Menu a,
.Menu a:hover {
    border: none;
}
.Logo img {
    height: 40px;
    width: auto;
}
.Logo {
    display: flex;
    align-items: center;
    gap: 10px;
}
.Menu a:nth-child(6) {
    margin-right: auto;
}


.cart-items-container {
    width: 100%;
    padding: 20px;
    margin: 0;
    box-sizing: border-box;
}

.cart-item {
    display: flex;
    align-items: center;
    gap: 24px;
    background: rgba(26, 26, 26, 0.9);
    backdrop-filter: blur(4px);
    padding: 20px;
    margin: 16px 0;
    border-radius: 24px;
    color: #f5e6d3;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    width: 100%;
    box-sizing: border-box;
    border: none;
}
.cart-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 18px;
}
.item-quantity {
    width: 70px;
}
.item-total {
    min-width: 90px;
}

/* ===== ملخص الطلب - مسافات ملاصقة ومتحاذي لليمين ===== */
.cart-summary {
    background: linear-gradient(145deg, #1e1e1e 0%, #121212 100%);
    padding: 20px 28px;
    border-radius: 24px;
    color: #f5e6d3;
    width: 100%;
    margin: 40px 0 30px 0;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    box-sizing: border-box;
    border: none;
    direction: rtl;
}
.cart-summary p {
    display: flex;
    justify-content: flex-start;   /* يلصق العناصر ببعضها */
    gap: 8px;                     /* مسافة بسيطة اختيارية بين النص والسعر */
    margin: 0;
    padding: 6px 0;
    font-size: 0.95rem;
    direction: rtl;
}
.cart-summary p:last-of-type {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(212, 163, 115, 0.25);
}
.cart-summary p span:first-child {
    order: 2;    /* النص (التسمية) على اليمين */
}
.cart-summary p span:last-child {
    order: 1;    /* القيمة على اليسار (أي بجانب النص) */
}
.cart-summary p strong {
    color: #ffd89a;
    font-size: 1rem;
}

/* ===== الأزرار (نسخة واحدة منسقة) ===== */
.remove-btn {
    background: rgba(220, 53, 69, 0.85);
    border: none;
    color: white;
    padding: 8px 20px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    font-weight: bold;
    font-size: 0.85rem;
}
.remove-btn:hover {
    background: #dc3545;
    transform: scale(1.03);
    box-shadow: 0 6px 12px rgba(220, 53, 69, 0.3);
}

.cart-actions {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
    margin: 20px 0 50px 0;
    width: 100%;
}
.cart-actions a,
.cart-actions button {
    padding: 12px 28px;
    border-radius: 40px;
    font-weight: bold;
    font-size: 0.95rem;
    transition: all 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    border: none;
}
.cart-actions a:first-child {
    background: transparent;
    color: #d4a373;
    box-shadow: 0 0 0 1px #d4a373;
}
.cart-actions a:first-child:hover {
    background: rgba(212, 163, 115, 0.15);
    transform: translateY(-2px);
    box-shadow: 0 0 0 2px #ffd89a, 0 6px 12px rgba(0, 0, 0, 0.2);
}
.cart-actions button {
    background: linear-gradient(135deg, #8b5a2b, #5c3a1b);
    color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.cart-actions button:hover {
    background: linear-gradient(135deg, #a06e3a, #6b4423);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
}

/* ===== السلة الفارغة ===== */
.empty-cart {
    position: relative;
    text-align: center;
    padding: 48px 32px;
    font-size: 1.2rem;
    color: #f5e6d3;
    max-width: 460px;
    margin: 80px auto;
    background: rgba(79, 50, 30, 0.18);
    border-radius: 24px;
    backdrop-filter: blur(10px);
    border: none;
}
.empty-cart a {
    color: #d4a373;
    text-decoration: none;
}
.empty-cart a:hover {
    text-decoration: underline;
}

/* ===== التذييل ===== */
footer {
    margin-top: 60px;
    padding: 20px;
    background: #ffffff;
    color: #000000;
}
footer p {
    text-align: center;
    color: #000000;
}

@media (max-width: 768px) {
    .cart-items-container {
        padding: 12px;
    }
    .cart-item {
        flex-wrap: wrap;
        justify-content: center;
        text-align: center;
        gap: 12px;
    }
    .cart-summary {
        padding: 16px;
    }
    .cart-actions {
        justify-content: center;
        flex-wrap: wrap;
        margin-bottom: 40px;
    }
}
