/* General styles for the order section */
.shop-order-box {
    background-color: #f9f9f9; /* Light background for the order box */
    border-radius: 10px; /* Rounded corners */
    padding: 20px; /* Space around the content */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Soft shadow for depth */
}

/* Style for the section title */
.sec-title h2 {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
    text-align: center;
    color: #333; /* Dark color for the title */
}

/* Titles for product image, name, and quantity */
.order-titles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
}

/* Each title */
.title {
    font-size: 16px;
}

/* Style for the order list */
.order-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

/* Style for each order item */
.order-item {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr 1fr; /* Adjust columns as needed */
    gap: 15px;
    margin-bottom: 10px;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

/* Style for the product image */
.order-item img {
    width: 50px;
    height: 50px;
    object-fit: cover;
}


/* Style for the item name */
.item-name {
    font-size: 16px;
    font-weight: bold;
    color: #333;
}

.order-item-remove {
    text-align: center;
}

.remove-item {
    font-size: 20px;
    color: red;
    font-weight: bold;
    display: block; /* Ensures the X appears under the Remove title */
}

/* Change color when hovering over the remove button */
.remove-item:hover {
    color: darkred;
}
/* Style for the item quantity */
.item-quantity {
    font-size: 14px;
    color: #888; /* Lighter color for quantity */
}

/* Style for the place order button */
.place-order {
    text-align: center;
    margin-top: 30px;
}

/* Button styling */
.place-order button {
    background-color: #043D7D; /* Blue background */
    color: white;
    font-size: 16px;
    padding: 15px 30px;
    border: none;
    border-radius: 5px; /* Rounded corners for the button */
    cursor: pointer;
    width: 100%; /* Full width of the parent container */
    transition: background-color 0.3s ease; /* Smooth background color transition */
}

.place-order button:hover {
    background-color: #0056b3; /* Darker blue on hover */
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .order-item {
        grid-template-columns: 1fr; /* Stack items vertically on smaller screens */
    }

    .order-titles {
        grid-template-columns: 1fr; /* Stack titles vertically */
    }

    .place-order button {
        width: 100%; /* Ensure button is full width on mobile */
    }
}


/* تمييز العناوين */
.order-titles {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #333;
    text-align: center;
    background-color: #043D7D; /* لون خلفية العناوين */
    padding: 10px 0; /* مسافة داخلية */
    border-radius: 8px 8px 0 0; /* حواف دائرية في الأعلى */
}

.order-titles .title {
    color: #fff; /* لون النص أبيض */
    font-size: 18px;
    text-transform: capitalize; /* تحويل النص إلى أحرف كبيرة */
}

/* تحسين مظهر العناوين عند التحويم */
.order-titles .title:hover {
    color: #ffd700; /* تغيير اللون عند التحويم */
    cursor: pointer;
}

/* تخصيص التصميم للأيقونات أو العناوين الخاصة */
.order-titles .title:first-child {
    text-align: center; /* محاذاة الصورة إلى المنتصف */
}

.order-titles .title:nth-child(2) {
    text-align: center; /* محاذاة الاسم إلى المنتصف */
}

.order-titles .title:last-child {
    text-align: center; /* محاذاة الكمية إلى المنتصف */
}

/* Style for disabled button */
.place-order button.disabled {
    background-color: #ccc;
    cursor: not-allowed;
}
