/* 🔹 ضبط النافبار */
*{
    padding: 0;
    margin: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif
}

header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #FFF;
    width: 90%;
    top: 0;
    left: 0;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

/* 🔹 ضبط الحاوية الرئيسية للنافبار */
.navbar {
    display: flex;
    align-items: center;
    width: 100%;
    justify-content: space-between;
}

/* 🔹 ضبط اللوغو */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    font-size: 22px;
    font-weight: bold;
    color: #B88E2F;
}

/* 🔹 ضبط القائمة */
nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 16px;
}

/* 🔹 الأيقونات */
.icons {
    display: flex;
    gap: 15px;
    align-items: center;
}

.icons span img {
    width: 24px;
    height: 24px;
    cursor: pointer;
}
/* الخلفية */
.background-container {
    position: relative;
    background: url('images/ff74c027a1888544144abe4be6e02cbf.jpg') no-repeat center center/cover;
    height: 300px;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
}

/* الطبقة السوداء */
.background-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3); /* تعديل قيمة الشفافية حسب الحاجة */
}

/* النص فوق الخلفية */
.overlay-content {
    position: relative; /* لجعل النص يظهر فوق الطبقة السوداء */
    color: rgb(0, 0, 0);
    z-index: 2;
}

.overlay-content h1 {
    font-size: 32px;
    color: rgb(0, 0, 0);
    font-weight: bold;
    margin-bottom: 10px;
}

.overlay-content p a {
    color: #000000;
    text-decoration: none;
    font-weight: bold;
    font-size: large;
}

.shop-header h1 {
    font-size: 36px;
    font-weight: bold;
    color: black;
}

/* شريط التحكم */
.shop-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    background: #ecc873;
    font-size: 14px;
}
.toolbar-left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.icon {
    width: 20px; /* يمكنك تعديل الحجم */
    height: 20px; /* يمكنك تعديل الحجم */
    vertical-align: middle; /* لضمان أن الأيقونات بمستوى النص */
}
.toolbar-left span {
    font-size: 17px;
    color: #333;
}
.toolbar-right {
    display: flex;
    align-items: center;
    gap: 10px;
}

.toolbar-right input {
    width: 40px;
    text-align: center;
    border: none;
    background: #F9F5F0; /* لون الخلفية */
    color: #888; /* لون النص */
    font-size: 14px;
    padding: 5px;
    border-radius: 5px;
    outline: none;
    cursor: pointer;

}

.toolbar-right select {
    width: 100px;
    border: none;
    background: #F9F5F0;
    color: #888;
    font-size: 14px;
    border-radius: 5px;
    outline: none;
    cursor: pointer;
}
.products {
    text-align: center;
    padding: 50px 5%;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.product {
    background: #ebe6e6;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.product img {
    width: 90%;
    height: 300px;
    object-fit: cover;
    border-radius: 10px;
}

/* عند التحويم على المنتج */
.product-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.274);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.product:hover .product-overlay {
    opacity: 1;
}

.product-overlay button {
    background: #b88f2fb6;
    color: #FFF;
    border: none;
    padding: 10px 15px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 10px;
}

.product-actions {
    display: flex;
    gap: 4px;
}
.product-name{
    font-weight: bold;

}
.product-actions span {
    color: white;
    font-size: 12px;
    background: rgba(0, 0, 0, 0.281);
    padding: 5px 10px;
    border-radius: 5px;
}

/* تصميم زر التبديل بين الصفحات */
.pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 30px;
}

.pagination .page,
.pagination .next {
    border: none;
    padding: 10px 15px;
    background: #F9F5F0;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    border-radius: 50%;
}

.pagination .page.active {
    background: #B88E2F;
    color: white;
}

.pagination .page:hover,
.pagination .next:hover {
    background: #D6B35F;
}
.features {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #F9F5F0;
    padding: 30px 5%;
    text-align: center;
}

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

.feature img {
    width: 50px;
    height: 50px;
}

.feature h3 {
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.feature p {
    font-size: 14px;
    color: #777;
}
footer {
    background: #FFF;
    padding: 40px 5%;
    color: #333;
    border-top: 1px solid #ddd;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    padding-bottom: 20px;
}

.footer-left {
    max-width: 250px;
}

.footer-left h3 {
    font-size: 22px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footer-left p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

.footer-links, .footer-help, .newsletter {
    flex: 1;
    min-width: 200px;
}

.footer-links h4, .footer-help h4, .newsletter h4 {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    color: #888;
}

.footer-links ul, .footer-help ul {
    list-style: none;
    padding: 0;
}

.footer-links ul li, .footer-help ul li {
    margin-bottom: 10px;
}

.footer-links ul li a, .footer-help ul li a {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.footer-links ul li a:hover, .footer-help ul li a:hover {
    color: #B88E2F;
}

.newsletter input {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 14px;
}

.newsletter button {
    background: none;
    border: none;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    margin-left: 10px;
}

.newsletter button:hover {
    color: #B88E2F;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    font-size: 14px;
    color: #777;
    border-top: 1px solid #ddd;
}
/* ✅ تحسين استجابة النافبار */
@media screen and (max-width: 768px) {


    

    .icons {
        gap: 10px;
        margin-top: 10px;
    }
}

/* ✅ تحسين استجابة خلفية الصفحة */
@media screen and (max-width: 768px) {
    .background-container {
        height: 200px; /* تقليل الارتفاع */
    }

    .overlay-content h1 {
        font-size: 24px;
    }

    .overlay-content p {
        font-size: 14px;
    }
}

/* ✅ تحسين استجابة شريط الأدوات */
@media screen and (max-width: 768px) {
    .shop-toolbar {
        flex-direction: column;
        gap: 10px;
    }

}

/* ✅ تحسين استجابة شبكة المنتجات */
@media screen and (max-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr); /* تقليل عدد الأعمدة */
    }
}

@media screen and (max-width: 600px) {
    .product-grid {
        grid-template-columns: repeat(1, 1fr); /* عرض منتج واحد في كل صف */
    }
}

/* ✅ تحسين استجابة التحكم في الصفحة (Pagination) */
@media screen and (max-width: 600px) {
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .pagination .page,
    .pagination .next {
        padding: 8px 12px;
        font-size: 12px;
    }
}

/* ✅ تحسين استجابة قسم الميزات (Features) */
@media screen and (max-width: 768px) {
    .features {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
}

/* ✅ تحسين استجابة الفوتر */
@media screen and (max-width: 768px) {
    .footer-content {
        gap: 20px;
        text-align: center;
    }
  
    .footer-links ul,
    .footer-help ul {
        text-align: center;
    }

   
}

/* ✅ معالجة المشاكل المتعلقة بتجاوز المحتوى */
@media screen and (max-width: 768px) {
    body {
        overflow-x: hidden; /* منع التمرير الجانبي */
    }

    .shop-toolbar {
        overflow-x: auto;
        white-space: nowrap;
    }
}
