:root {
    --green: #2f6f4e;
    --light-green: #e7efe9;
    --dark: #1f3d2b;
    --beige: #faf8f3;
}

/* RESET */
* { margin:0; padding:0; box-sizing:border-box; font-family:'Poppins', sans-serif; }
body { background: var(--beige); color: var(--dark); }

/* TOP BANNER */
.top-banner {
    position: fixed;
    top: 0; left: 50%;
    transform: translateX(-50%);
    background: #ff9f1c;
    color: white;
    text-align: center;
    padding: 8px 20px;
    font-weight: 600;
    border-radius: 10px;
    z-index: 1003;
}

/* NAV */
header {
    position: sticky;
    top: 40px;
    background: #25773d;
    padding: 1rem 5%;
    z-index: 1000;
}
nav { display:flex; justify-content:space-between; align-items:center; position: relative; }
.logo { font-size:1.6rem; font-weight:600; color:white; }
.logo span { color: #ec7f18; }
nav ul { display:flex; list-style:none; }
nav ul li { margin-left:20px; position:relative; }
nav ul li a { color:white; text-decoration:none; }
nav ul li a:hover { color:#1f3d2b; }

/* DROPDOWN */
.dropdown { position:relative; }
.dropdown-menu { display:none; position:absolute; background:white; padding:10px; border-radius:10px; top:35px; left:0; min-width:120px; box-shadow:0 4px 6px rgba(0,0,0,0.1); z-index:1002; opacity:0; pointer-events:none; transition:0.3s; }
.dropdown-menu.show { display:block; opacity:1; pointer-events:auto; }
.dropdown-menu a { display:block; color: var(--green); padding:6px; text-decoration:none; }
.dropdown-menu a:hover { background: var(--light-green); border-radius:5px; }

/* HERO */
.hero { height:60vh; background:linear-gradient(rgba(0,0,0,.4), rgba(0,0,0,.4)), url('https://images.unsplash.com/photo-1610348725531-843dff563e2c') center/cover; display:flex; align-items:center; justify-content:center; text-align:center; color:white; }
.hero h1 { font-family: 'Playfair Display', serif; font-size:3.5rem; }
.hero p { font-size:1.2rem; }

/* BUTTON */
.btn { background: var(--green); padding:10px 25px; border-radius:25px; color:white; text-decoration:none; display:inline-block; margin-top:10px; cursor:pointer; transition:0.3s; }
.btn:hover { background:#1f3d2b; }

/* PRODUCTS */
.section-title { text-align:center; margin:40px 0; }
.product-grid { display:grid; grid-template-columns: repeat(3,1fr); gap:25px; padding:0 5%; min-height:400px; }
.product-card { background:white; border-radius:15px; padding:15px; text-align:center; box-shadow:0 4px 6px rgba(0,0,0,0.1); transition:0.3s; }
.product-card:hover { transform:translateY(-5px); box-shadow:0 8px 15px rgba(0,0,0,0.2); }
.product-card img { width:100%; height:180px; object-fit:cover; border-radius:10px; transition:0.3s; }
.product-card img:hover { transform:scale(1.05); }

/* CART */
.cart-sidebar { position: fixed; right:-400px; top:0; width:350px; height:100%; background:white; padding:20px; transition:.4s; z-index:1001; }
.cart-sidebar.active { right:0; }
.cart-item { display:flex; justify-content:space-between; margin-bottom:10px; }
.cart-icon { background: var(--green); color:white; padding:8px 12px; border-radius:8px; cursor:pointer; font-weight:600; }
.cart-icon:hover { background:#1f3d2b; }

/* CHECKOUT FORM */
.checkout-form {
    display: none !important;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 15px;
    text-align: center;
    width: 400px;
    max-width: 90%;
    z-index: 9999;
    box-shadow: 0 8px 20px rgba(0,0,0,0.3);
}
.checkout-form.active { display: block !important; }
.checkout-form input { width: 90%; padding: 10px; margin: 10px 0; border-radius: 8px; border: 1px solid #ccc; }
.checkout-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; }
.checkout-header .logo { font-size: 1.6rem; font-weight: 600; color: var(--green); }
.checkout-header .logo span { color: #ec7f18; }
.checkout-form .close-btn { cursor: pointer; font-size: 1.5rem; color: var(--dark); }

/* SECTIONS */
.contatti, .consegna { background: var(--light-green); padding:40px; text-align:center; }
.contatti img { margin-top:15px; width:150px; height:150px; border-radius:15px; transition:0.3s; }
.contatti img:hover { transform:scale(1.05); }

/* Responsive Media Queries */
@media (max-width: 900px){
    .product-grid { grid-template-columns: repeat(2,1fr); }
    .hero h1 { font-size:2.8rem; }
    .hero p { font-size:1.1rem; }
}
@media (max-width: 600px){
    .product-grid { grid-template-columns: 1fr; padding:0 2%; }
    .hero { height:40vh; }
    .hero h1 { font-size:2rem; }
    .hero p { font-size:1rem; }
    nav ul { flex-direction: column; display: none; background: var(--green); position: absolute; top:60px; left:0; width:100%; }
    nav ul.show { display: flex; }
    nav ul li { margin:10px 0; text-align:center; }
    .cart-sidebar { width: 100%; right: -100%; }
    .cart-sidebar.active { right: 0; }
}
/* NEW: Search bar */
.search-bar { text-align: center; margin: 15px 0; }
.search-bar input {
    width: 50%; padding: 10px; font-size: 1rem;
    border: 1px solid #ccc; border-radius: 8px;
}

/* NEW: Reviews form */
.reviews { background:#f9f9f9; padding:20px; margin:30px 0; border-radius:10px; }
.reviews h2 { text-align:center; margin-bottom:15px; }
.reviews form { display:flex; flex-direction:column; gap:10px; max-width:500px; margin:0 auto; }
.reviews input, .reviews textarea { padding:8px; border-radius:5px; border:1px solid #ccc; }
.reviews button { padding:10px; border:none; border-radius:5px; background:#4CAF50; color:white; cursor:pointer; }

/* Stars */
.star-rating { display:flex; gap:5px; font-size:1.5rem; cursor:pointer; justify-content:center; }
.star-rating span { color:#ccc; }
.star-rating span.selected, .star-rating span.hover { color:#FFD700; }

/* Review list */
#review-list { margin-top:20px; max-width:500px; margin-left:auto; margin-right:auto; }
#review-list .review-item { background:#fff; padding:10px; border-radius:5px; margin-bottom:10px; box-shadow:0 2px 5px rgba(0,0,0,0.1); }
#review-list .review-item .review-stars { color:#FFD700; }
.delete-review {
    background: #468651;
    color: white;
    border: none;
    padding: 5px 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.8rem;
    margin-top: 5px;
}

.delete-review:hover {
    background: #e79211;
}
.product-card img {
    width: 100%;
    height: 180px;       /* ارتفاع ثابت لجميع الصور */
    object-fit: contain;   /* الصورة تغطي الكارد بلا تشويه */
    background:#f5f5f5 ;
    display: block;
    border-radius: 10px; /* زاوايا مدورة، اختيارية */
}
.quantity-selector {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    margin: 10px 0;
}

.qty-btn {
    background: var(--green);
    color: white;
    border: none;
    padding: 5px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: 0.2s;
}

.qty-btn:hover {
    background: #1f3d2b;
}

.quantity-selector span {
    min-width: 30px;
    text-align: center;
    display: inline-block;
}
.product-card {
    position: relative;
}

.promo-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #e63946;
    color: white;
    padding: 5px 10px;
    font-size: 0.85rem;
    font-weight: bold;
    border-radius: 20px;
    z-index: 2;
}

.price-box {
    margin: 8px 0;
}

.old-price {
    text-decoration: line-through;
    color: #999;
    margin-right: 6px;
    font-size: 0.9rem;
}

.new-price {
    color: #e63946;
    font-weight: 600;
    font-size: 1.1rem;
}
.old-price {
  text-decoration: line-through;
  color: #999;
  margin-right: 6px;
}

.price-box .new-price {
  color: red;      /* لي فيهم تخفيض */
  font-weight: 600;
}

p.new-price {
  color: green;    /* لي ما فيهمش تخفيض */
  font-weight: 600;
}
.about {
    background: #ffffff;
    padding: 60px 10%;
    line-height: 1.8;
}

.about h2 {
    color: #2f6f4e;
    margin-bottom: 20px;
    text-align: center;
}

.about h3 {
    margin-top: 25px;
    color: #25773d;
}

.about ul {
    margin-left: 20px;
}

.about ul li {
    margin-bottom: 8px;
}

.about .slogan {
    margin-top: 30px;
    font-size: 1.1rem;
    text-align: center;
    color: #1f3d2b;
}
.about {
    padding: 100px 10%;
    position: relative;
    z-index: 1;
    text-align: center;
    background: linear-gradient(
        135deg,
        #edf6ee,
        #f4fbf5,
        #ffffff
    );
    overflow: hidden;
}



.about h2 {
    font-size: 42px;
    color: #2f6f3e;
    margin-bottom: 10px;
    font-family: 'Playfair Display', serif;
}

.about .subtitle {
    font-size: 17px;
    letter-spacing: 2px;
    color: #7fa58a;
    margin-bottom: 40px;
    text-transform: uppercase;
}


.about .intro {
    font-size: 18px;
    color: #444;
    max-width: 800px;
    margin: auto;
    line-height: 1.8;
}

.about-boxes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin: 60px 0;
}

.about-box {
    background: #ffffff;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(46, 111, 62, 0.12);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.about-box:hover {
    transform: translateY(-6px);
    box-shadow: 0 14px 30px rgba(46, 111, 62, 0.18);
}


.about-box h3 {
    margin: 15px 0;
    color: #2e7d32;
}

.about-box p {
    color: #555;
    font-size: 15px;
}

.about .mission {
    font-size: 17px;
    max-width: 750px;
    margin: auto;
    color: #333;
    line-height: 1.8;
}

.about .slogan {
    margin-top: 35px;
    font-size: 19px;
    font-weight: 600;
    color: #3d7c47;
}

.about .slogan span {
    color: #9abfa6;
}
.about::before,
.about::after {
    content: "";
    position: absolute;
    width: 420px;
    height: 420px;
    background: rgba(120, 170, 130, 0.12);
    border-radius: 50%;
    filter: blur(90px);
    z-index: 0;
}

.about::before {
    top: -120px;
    left: -120px;
}

.about::after {
    bottom: -140px;
    right: -140px;
}
@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
.delete-btn {
    background: #f1f1f1; /* لون خفيف خلف الأيقونة */
    border: none;
    border-radius: 50%; /* باش يجي داير */
    width: 30px;
    height: 30px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    transition: 0.3s;
}

.delete-btn:hover {
    background: #ffe3e3; /* كيولي غوز خفيف فاش كتدوزي عليه */
    color: #e63946; /* الأيقونة كتولي حمراء غير فاش كتقربي تمسحي */
    transform: scale(1.1);
}
/* ستيل زر الحذف بحال المواقع الاحترافية */
.action-btn {
    background: none;      /* حيدنا الخلفية */
    border: none;          /* حيدنا الإطار (لمربع) */
    outline: none;         /* باش ما يبانش إطار أزرق فاش كتوركي */
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease;
}

.action-btn:hover {
    transform: scale(1.1); /* تكبر شوية ملي تقربي تمسحي */
}

.action-btn:hover svg {
    stroke: #333;          /* اللون يولي أغمق فاش كتحطي عليه الفار */
}
/* فاش كيدوز الفار فوقها اللون كيولي أغمق شوية */
.action-btn:hover svg {
    stroke: #333;
    transform: scale(1.05);
}

.cart-item {
    padding: 12px 0;
    border-bottom: 1px solid #f0f0f0; /* خط خفيف بين المنتجات */
}
.cart-icon-wrapper {
    position: relative;
    display: inline-flex; /* باش نتحكمو فالتوسط */
    align-items: center;
    cursor: pointer;
    padding: 8px; /* مساحة دايرة بالسلة */
}

#cart-count {
    position: absolute;
    /* هاد القيم غايخليو الدائرة تجي فالفوق على اليمين بلا ماتغطي السلة كاملة */
    top: 2px;
    right: 2px;
    background-color: #f5eff0; /* اللون الأحمر */
    color: rgb(19, 17, 17);
    font-size: 10px; /* صغرنا الخط شوية */
    font-weight: bold;
    min-width: 16px; /* صغرنا حجم الدائرة */
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1.5px solid #2e7d32; /* هاد الخط كيكون بنفس لون الخلفية (الخضر) باش تبان مفروزة */
    line-height: 1;
}
footer {
    background-color: #1b5e20; /* خضر غامق واعر */
    color: white;
    padding: 40px 20px;
    margin-top: 50px;
}

footer a {
    color: #a5d6a7; /* لون خضر فاتح للروابط */
    text-decoration: none;
    transition: color 0.3s;
}

footer a:hover {
    color: white;
}
/* تنسيق قسم التعليقات كامل */
.reviews {
    background: #ffffff;
    padding: 60px 10%;
    border-top: 1px solid #eee;
}

.reviews h2 {
    color: var(--green);
    font-family: 'Playfair Display', serif;
    font-size: 2rem;
    margin-bottom: 30px;
}

/* شكل الفورم (فين كيكتب الكليان) */
#review-form {
    background: #fdfdfd;
    padding: 25px;
    border-radius: 20px;
    border: 1px solid #edf2ed;
    box-shadow: 0 4px 15px rgba(0,0,0,0.02);
    margin-bottom: 50px;
}

#review-form input, #review-form textarea {
    border: 1px solid #e0e0e0;
    padding: 12px;
    border-radius: 12px;
    font-size: 0.95rem;
    transition: 0.3s;
}

#review-form input:focus, #review-form textarea:focus {
    border-color: var(--green);
    outline: none;
    box-shadow: 0 0 0 3px rgba(47, 111, 78, 0.1);
}

/* شكل التعليقات اللي تحطو (Review Items) */
.review-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    border-left: 4px solid var(--green); /* خط خضر في الجنب كيعطي أناقة */
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.review-item:hover {
    transform: translateX(5px);
}

.review-item strong {
    color: var(--dark);
    font-size: 1.1rem;
    display: block;
    margin-bottom: 5px;
}

.review-stars {
    margin-bottom: 10px;
    font-size: 0.9rem;
    .review-stars { color: #FFD700; }
}

.review-item p {
    color: #666;
    line-height: 1.5;
    font-style: italic;
}

/* بوطونة المسح (تكون مخفية شوية حتى نحتاجوها) */
.delete-review {
    background: #fff1f1;
    color: #d32f2f;
    border: 1px solid #ffcdd2;
    padding: 4px 10px;
    font-size: 0.75rem;
    border-radius: 8px;
    margin-top: 10px;
    cursor: pointer;
}

.delete-review:hover {
    background: #d32f2f;
    color: white;
}
.delete-review {
    background: none !important;      /* حيدنا الخلفية */
    border: none !important;          /* حيدنا الإطار */
    color: #999 !important;           /* لون رمادي خفيف باش ما تبانش حمرة */
    font-size: 1.2rem !important;     /* نكبرو x شوية */
    cursor: pointer;
    position: absolute;               /* باش نحطوها فالتطريف */
    top: 10px;
    right: 15px;
    padding: 0;
    line-height: 1;
    transition: color 0.3s ease, transform 0.2s ease;
}

.delete-review:hover {
    color: #333 !important;           /* كتولي غامقة شوية ملي كتقربي ليها */
    transform: scale(1.2);            /* كتكبر شوية ملي كتدوزي عليها */
}

/* ضروري نزيدو هادي للـ review-item باش الـ x تطلع فبلاصتها */
.review-item {
    position: relative;               /* ضروري باش الـ x تطلع للفوق على اليمين */
    padding: 20px 40px 20px 20px;     /* خلي شوية المساحة لـ x على اليمين */
}
/* تنسيق القسم العام */
.contatti {
    padding: 60px 5%;
    background-color: #f9fbf9 !important; /* لون هادئ جدا */
    text-align: center;
}

/* حاوية الأيقونات */
.social-container {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    margin-top: 30px;
}

/* ستيل البطاقة الواحدة */
.social-card {
    background: white;
    text-decoration: none;
    color: var(--dark);
    width: 140px;
    padding: 25px 15px;
    border-radius: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); /* ظل خفيف مريح */
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

/* تأثير عند تمرير الفأرة */
.social-card:hover {
    transform: translateY(-8px); /* كطلع شوية للفوق */
    box-shadow: 0 10px 25px rgba(46, 111, 78, 0.12);
    border-color: var(--green);
}

/* صندوق الإيموجي أو الأيقونة */
.icon-box {
    font-size: 2rem;
    background: #f1f8e9;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: 0.3s;
}

.social-card span {
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
}

/* ألوان خاصة عند الـ Hover (اختياري) */
.wa:hover .icon-box { background: #25D366; color: white; }
.ig:hover .icon-box { background: #E1306C; color: white; }
.fb:hover .icon-box { background: #4267B2; color: white; }
/* الألوان عند الـ Hover لكل بطاقة */
.wa:hover .icon-box { background: #25D366; color: white; } /* أخضر واتساب */
.ig:hover .icon-box { background: #E1306C; color: white; } /* وردي انستغرام */
.fb:hover .icon-box { background: #4267B2; color: white; } /* أزرق فيسبوك */
.web:hover .icon-box { background: var(--green); color: white; } /* خضر السيت ديالك */

/* تحسين شكل البطاقات باش يجو 4 في سطر واحد فالتلفاز و 2 فالتلفون */
.social-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    max-width: 800px;
    margin: 30px auto;
    gap: 20px;
}
/* الأيقونات SVG وسط الصندوق */
.icon-box svg {
    width: 32px;
    height: 32px;
}

/* الألوان الحقيقية للتطبيقات عند الـ Hover */
.wa:hover { border-color: #25D366; color: #25D366; }
.wa:hover .icon-box { background: #e8f9ef; color: #25D366; }

.ig:hover { border-color: #E1306C; color: #E1306C; }
.ig:hover .icon-box { background: #fdf0f5; color: #E1306C; }

.fb:hover { border-color: #1877F2; color: #1877F2; }
.fb:hover .icon-box { background: #e7f3ff; color: #1877F2; }

.web:hover { border-color: var(--green); color: var(--green); }
.web:hover .icon-box { background: var(--light-green); color: var(--green); }

/* الستيل ديال البطاقات باش ما يبانوش basic */
.social-card {
    border: 2px solid transparent; /* إطار مخفي كيتحرك فاش كندوزو عليه */
    background: #ffffff;
    border-radius: 24px;
    padding: 30px 20px;
    box-shadow: 0 10px 20px rgba(0,0,0,0.03); /* ظل خفيف جدا وفخم */
}
/* تنسيق الأيقونات الجديدة */
.social-card i {
    font-size: 3.5rem; /* نكبرو اللوغو بزاف باش يبان */
    margin-bottom: 10px;
    transition: transform 0.3s ease;
}

/* الألوان الرسمية ملي ندوزو الفأرة */
.wa i { color: #25D366; } /* لون واتساب */
.ig i { color: #E1306C; } /* لون انستغرام */
.fb i { color: #1877F2; } /* لون فيسبوك */
.web i { color: var(--green); } /* لون موقعك */

/* الستيل ديال البطاقة */
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    padding: 30px;
    border-radius: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 5px 15px rgba(0,0,0,0.08);
    transition: 0.3s;
}

.social-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 25px rgba(0,0,0,0.15);
}
/* Container الرئيسي ديال التوصيل */
.consegna-section {
    padding: 30px 5% !important; /* صغرنا المساحة الفوق وتحت */
    background-color: #fff !important;
    text-align: center !important;
}

.consegna-section .section-title {
    font-size: 1.6rem !important; /* صغرنا العنوان */
    margin-bottom: 5px !important;
}

.consegna-section .subtitle {
    font-size: 0.9rem !important;
    margin-bottom: 25px !important;
    color: #666;
}

/* ترتيب الكروت بـ 3 في السطر */
.delivery-grid {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important; /* 3 كروت متساويين */
    gap: 15px !important;
    max-width: 1000px !important;
    margin: 0 auto !important;
}

/* الكارط الواحدة */
.delivery-card {
    background: #fdfdfd !important;
    padding: 15px !important; /* صغرنا الوسط ديالها */
    border-radius: 12px !important;
    border: 1px solid #eee !important;
    transition: 0.3s !important;
}

/* تصغير الأيقونات */
.delivery-card i {
    font-size: 1.4rem !important;
    color: #2d5a27 !important;
    margin-bottom: 10px !important;
}

/* تصغير عناوين الكروت */
.delivery-card h3 {
    font-size: 1rem !important;
    margin-bottom: 8px !important;
}

/* تصغير نصوص الكروت */
.delivery-card p {
    font-size: 0.8rem !important;
    line-height: 1.4 !important;
    color: #777 !important;
}

/* للموبايل يرجعو واحد فوق واحد */
@media (max-width: 600px) {
    .delivery-grid {
        grid-template-columns: 1fr !important;
    }
}
/* تنسيق البطاقة باش تولي دائرية */
.social-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: white;
    
    /* هادو هما اللي كيصنعو الدائرة */
    width: 120px;          /* عرض مناسب */
    height: 120px;         /* نفس العرض باش تولي دائرة كاملة */
    border-radius: 50% !important; /* ردينها دائرة 100% */
    
    text-decoration: none;
    color: #333;
    box-shadow: 0 4px 12px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    border: 1px solid #eee;
    margin: 0 auto;        /* باش يتوسطوا */
}

/* تصغير الأيقونات شوية باش يجيو وسط الدائرة مرتاحين */
.social-card i {
    font-size: 2.2rem !important; /* قياس "عادي" وأنيق */
    margin-bottom: 5px;
}

/* نصيحة: صغري الخط ديال السمية شوية باش يجي متناسق */
.social-card span {
    font-size: 0.75rem;
    font-weight: 600;
}

/* تأثير الـ Hover يبقى أنيق */
.social-card:hover {
    transform: scale(1.1); /* كتكبر شوية فبلاصتها */
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

/* ترتيب الدوائر فسطر واحد */
.social-container {
    display: flex;
    justify-content: center;
    gap: 20px; /* مسافة بين الدوائر */
    flex-wrap: wrap;
    max-width: 900px;
    margin: 30px auto;
}
/* تحويل قائمة المنتجات في السلة إلى منطقة قابلة للتمرير */
#cart-items {
    max-height: 400px; /* يمكنك تغيير هذا الرقم حسب رغبتك في طول السلة */
    overflow-y: auto;  /* إضافة التمرير العمودي عند الحاجة */
    padding-right: 10px; /* مسافة بسيطة لكي لا يلتصق شريط التمرير بالمنتجات */
    margin-bottom: 20px;
}

/* تحسين شكل شريط التمرير (اختياري) ليكون "ستيلي" */
#cart-items::-webkit-scrollbar {
    width: 6px;
}

#cart-items::-webkit-scrollbar-thumb {
    background-color: #ff7f00; /* لون برتقالي مثل لوغو OrtoFresco */
    border-radius: 10px;
}

#cart-items::-webkit-scrollbar-track {
    background: #f1f1f1;
}

/* فرض اللون الأخضر على أزرار الزائد والناقص */
.quantity-selector button {
    background-color: #2f6f4e !important; /* أخضر */
    color: white !important;
    border: none !important;
    width: 35px !important;
    height: 35px !important;
    border-radius: 5px !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.quantity-selector button:hover {
    background-color: #1f5c2c !important; /* أخضر غامق */
}
@media (max-width: 600px) {
    .product-grid {
        /* سطر فيه 2 منتجات فقط في الهاتف */
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        padding: 10px !important;
    }

    .product-card h3 {
        font-size: 0.9rem; /* تصغير العنوان شوية */
    }

    .hero h1 {
        font-size: 1.8rem; /* تصغير عنوان الواجهة */
    }
}
@media (max-width: 600px) {
    .product-image img {
        height: 150px !important; /* طول مناسب للشاشات الصغيرة */
    }
}
.top-banner {
    width: 100%; /* يشد العرض كامل */
    text-align: center;
    padding: 10px 0;
    font-size: 0.9rem;
    display: block; /* التأكد أنه عنصر مستقل */
}
@media (max-width: 600px) {
    nav {
        display: flex;
        justify-content: space-between; /* توزيع العناصر على الجوانب */
        align-items: center;
        padding: 10px 15px;
        position: relative;
    }

    /* اللوغو يجي في الوسط بالضبط */
    .logo {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        margin: 0;
        font-size: 1.4rem;
    }

    /* أيقونة الهمبرغر تجي في اليسار */
    #hamburger {
        order: -1; /* دفع العنصر لليسار */
        display: block !important;
        cursor: pointer;
        z-index: 100;
    }

    /* أيقونة السلة تبقى في اليمين */
    .cart-icon-wrapper {
        display: flex;
        align-items: center;
    }
}
@media (max-width: 600px) {
    nav ul {
        position: absolute;
        top: 100%; /* تبدا من تحت الهيدر مباشرة */
        left: 0;
        width: 100%;
        background-color: #1a3c34; /* نفس لون السيت */
        flex-direction: column;
        display: none; /* مخفية حتى نكليكي على الهمبرغر */
        padding: 20px 0;
    }

    nav ul.show {
        display: flex; /* تظهر فاش تزيد ليها كلاص show بالجافاسكربت */
    }
}
/* تنسيق التعليقات بشكل سامبل ونظيف */
.review-item {
    background: #f9f9f9; /* لون خلفية خفيف جداً */
    border: 1px solid #eee; /* إطار رقيق بزاف */
    border-radius: 10px; /* زوايا منحنية شوية */
    padding: 15px;
    margin-bottom: 15px;
    position: relative; /* باش علامة X تجي مقادة */
    border-left: none !important; /* حيدنا داك الخط الغليظ اللي كان في الجنب */
    box-shadow: none !important; /* حيدنا الظل باش تبقى سامبل */
}

.review-item strong {
    display: block;
    color: #333;
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.review-stars {
    color: #ffc107; /* لون النجوم ذهبي */
    font-size: 0.9rem;
    margin-bottom: 8px;
}

.review-item p {
    color: #666;
    line-height: 1.4;
    margin: 0;
    font-size: 0.95rem;
}

/* علامة الحذف (X) نردوها صغيرة وفي القنت */
.delete-review {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 1.2rem;
}

.delete-review:hover {
    color: #ff4d4d;
}
/* --- التعديل الجديد للمنيو --- */
/* تنسيق الـ Header (البار الفوقاني) */
header {
    background-color: #1a3c34;
    height: 70px;
    width: 100%;
    position: sticky; /* كيبقى الفوق فاش كتهبطي ومكايخسرش ترتيب العناصر */
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
}

header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* المنيو في الموبايل */
@media (max-width: 600px) {
    #nav-links {
        position: fixed;
        top: 70px; /* كيبدا من تحت البار نيشان */
        left: -100%; /* كيبدا مخفي */
        width: 220px; /* العرض صغير بحال الصورة */
        height: auto;
        background-color: white !important; /* لون أبيض */
        flex-direction: column;
        display: flex !important;
        box-shadow: 2px 5px 10px rgba(0,0,0,0.1);
        transition: 0.3s ease-in-out;
        z-index: 999;
        padding-bottom: 20px;
        border-radius: 0 0 10px 0;
    }

    #nav-links.show {
        left: 0; /* كيبان فاش توركي */
    }

    /* لون الكتابة أسود داخل المنيو الأبيض */
    #nav-links li a {
        color: #333 !important;
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #f0f0f0;
        font-weight: 500;
    }

    /* حيدنا الـ X القديمة اللي كانت وسط المنيو */
    .close-menu {
        display: none !important;
    }

    /* الـ Dropdown (فواكه وخضر) */
    .dropdown-menu.show {
        display: block !important;
        background-color: #f9f9f9 !important;
        position: static;
        width: 100%;
    }
}

/* أيقونة الهمبرغر والسلة باش يبقاو ديما بيضين */
#hamburger, .cart-icon-wrapper svg {
    color: white;
    cursor: pointer;
}
header {
    background-color: #25773d;
    height: 80px; /* نقصناه من 135px لـ 70px باش يجي رقيق وأنيق */
    width: 100%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

header nav {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

/* اللوغو */
header .logo {
    font-size: 1.5rem !important; /* صغرناه شوية باش يجي متناسق مع 70px */
    color: white;
    font-weight: bold;
    text-align: center;
}

/* أيقونة الهمبرغر */
#hamburger {
    font-size: 28px !important; /* حجم متوسط ومناسب */
    color: white;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* السلة */
.cart-icon-wrapper svg {
    width: 28px; /* حجم متناسق */
    height: 28px;
}

/* المنيو الأبيض في الموبايل */
@media (max-width: 600px) {
    #nav-links {
        top: 70px !important; /* رجعناه 70px باش يجي لاصق تحت الهيدر نيشان */
        width: 200px;
        left: -100%;
        position: fixed;
        height: calc(100vh - 70px); /* باش ياخد الطول اللي بقى من الشاشة */
        background-color: white !important;
        display: flex !important;
        flex-direction: column;
        z-index: 999; 
        box-shadow: 2px 5px 10px rgba(0,0,0,0.1);
        transition: 0.3s ease;
    }

    #nav-links.show {
        left: 0;
    }

    /* تأكدي أن روابط المنيو باللون الأسود */
    #nav-links li a {
        color: #333 !important;
        padding: 15px 20px;
        display: block;
        border-bottom: 1px solid #eee;
    }
}
/* البار البرتقالي اللي فيه الشحن المجاني */
.top-banner { /* تأكدي من الكلاص اللي عندك واش سميتو هكا أو بدليه */
    background-color: #ff9800;
    height: 20px; /* صغرناه لـ 35px */
    line-height: 20px;
    font-size: 11px;
    text-align: center;
    color: white;
    width: 100%;
    display: flex; /* كينظم العناصر وسط البار */
    align-items: center; /* كيطلع الكتابة للوسط عمودياً */
    justify-content: center; /* كيجيب الكتابة للوسط أفقياً */
    font-weight: 500;
    position: relative; /* باش ما يتغطاش بشي حاجة أخرى */
    z-index: 1001;
}

nav {
    display: flex;
    justify-content: space-between; /* باش يفرق المنيو على السلة */
    align-items: center;
}
.cart-icon-wrapper {
    cursor: pointer;
    position: relative;
    z-index: 10001; /* خاصو يكون كبر من السلة باش ديما يتكليكا */
}
.cart-sidebar {
    /* ... الكود اللي عندك ديجا (width, position, etc.) ... */
    
    height: 100vh;          /* السلة كاتاخد الطول ديال الشاشة كاملة */
    display: flex;
    flex-direction: column; /* كنرتبو العناصر عمودياً */
    overflow-y: auto;       /* هادي هي أهم حاجة: كتدير Scroll فاش كيكترو المنتجات */
    padding-bottom: 20px;   /* شوية الفراغ لتحت باش الأزرار ما يلسقوش */
}

/* إلا بغيتي غير البلاصة ديال المنتجات هي اللي تزيد وتنقص والأزرار يبقاو باينين لتحت */
#cart-items {
    flex: 1;                /* كياخد المساحة المتاحة كاملة */
    overflow-y: auto;       /* سكرول خاص غير بالمنتجات */
    margin-bottom: 20px;
}
/* Container الرئيسي - صغرنا الـ padding باش ما ياخدش مساحة كبيرة */
.about {
    padding: 30px 5% !important;
    text-align: center !important;
}

/* صغرنا العنوان */
.about h2 {
    font-size: 1.8rem !important; 
    margin-bottom: 20px !important;
}

/* المربعات بـ 3 في سطر واحد */
.about-boxes {
    display: flex !important;
    justify-content: center !important;
    align-items: stretch !important;
    gap: 15px !important; /* الفراغ بيناتهم */
    flex-wrap: nowrap !important; /* كيمنعهم يهبطو لسطر جديد */
    max-width: 1100px !important;
    margin: 0 auto !important;
}

/* المربع الواحد - صغرنا العرض والخط */
.about-box {
    flex: 1 !important; /* كيقسم المسافة بالتساوي */
    min-width: 0 !important; /* ضروري باش ما يخرجوش على السطر */
    padding: 20px 15px !important;
    background: #ffffff !important;
    border-radius: 10px !important;
    border: 1px solid #ddd !important;
}

/* تصغير الأيقونة (الإيموجي) */
.about-box i, .about-box span {
    font-size: 1.5rem !important;
}

/* تصغير عناوين المربعات */
.about-box h3 {
    font-size: 1.1rem !important;
    margin: 10px 0 !important;
}

/* تصغير النص لداخل */
.about-box p {
    font-size: 0.85rem !important;
    line-height: 1.4 !important;
    margin: 0 !important;
}

/* في حالة الموبايل فقط يرجعو واحد فوق واحد */
@media (max-width: 600px) {
    .about-boxes {
        flex-direction: column !important;
    }
}
.site-footer {
    background-color: #2d5a27; /* اللون الأخضر ديال السيت */
    color: white;
    text-align: center;
    padding: 20px 0;
    margin-top: 50px;
    width: 100%;
}

.footer-content p {
    margin: 5px 0;
    font-size: 0.9rem;
    opacity: 0.9;
}

.footer-content strong {
    color: orange; /* لون ذهبي خفيف للسمية */
}
/* العنوان الرئيسي في Chi Siamo */
.about-title {
    color: #ffffff !important; /* لون Orto بالبيض */
    font-weight: bold;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* ظل خفيف باش يبان البيض فوق الخلفية */
}

/* لون Fresco بالأورانج */
.orange-text {
    color: #ff9800 !important; /* لون أورانج فحال اللي عندك لفو9 */
}

/* إلا كانت الخلفية ديال السيكشن بيضاء، خاصنا نبدلو لون Orto لشي لون آخر أو نديرو خلفية للعنوان */
.about {
    background-color: #2d5a27 !important; /* درت ليك خلفية خضراء باش يبان البيض والأورانج واعرين */
    color: white;
}
/* الحاوية الرئيسية */
.social-container {
    display: flex !important;
    justify-content: center !important;
    gap: 20px !important;
    padding: 30px !important;
    overflow: hidden; /* باش ما يبانوش وهما داخلين من الجناب */
}

/* تصغير الدوائر */
.social-card {
    width: 65px !important;  /* صغرنا الحجم */
    height: 65px !important; /* صغرنا الحجم */
    background: white !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1) !important;
    text-decoration: none !important;
    transition: 0.3s !important;
}

/* تصغير الأيقونات وسط الدوائر */
.social-card i {
    font-size: 1.5rem !important;
}

/* إخفاء النص (السمية) باش يبقاو غير دوائر نقيين */
.social-card span {
    display: none !important;
}

.social-card:hover {
    transform: scale(1.1) translateY(-5px) !important;
}
.top-banner {
    background: #ff9f1c(71.43% 22.24 75.85);
    color: white;
    padding: 10px 0;
    overflow: hidden; /* ضروري باش ما يبانش النص اللي خارج */
    position: relative;
    width: 100%;
}

.marquee {
    display: flex;
    width: 100%;
}

.marquee-content {
    display: flex;
    white-space: nowrap;
    animation: scroll-left 20s linear infinite; /* السرعة: 20 ثانية */
}

.marquee-content span {
    font-size: 14px;
    font-weight: 600;
    padding: 0 10px;
}

/* هادي هي الحركة السحرية */
@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%); /* كيمشي لنص العرض حيت النص معاود */
    }
}

/* باش نوقفو الحركة ملي يحط الكليان الفارة (اختياري) */
.top-banner:hover .marquee-content {
    animation-play-state: paused;
}
/* تصغير اللوغو في النسخة العادية */
header .logo {
    font-size: 1.2rem !important; /* صغرناه من 1.5 لـ 1.2 */
    white-space: nowrap; /* باش ما يتهرسش السطر */
}

/* تصغير اللوغو في الموبايل باش يجي وسط الهيدر */
@media (max-width: 600px) {
    .logo {
        font-size: 1.1rem !important; /* صغرناه كثر في الموبايل */
        width: auto;
        text-align: center;
    }
}
/* تصغير اللوغو في النسخة العادية */
header .logo {
    font-size: 1.2rem !important; /* صغرناه من 1.5 لـ 1.2 */
    white-space: nowrap; /* باش ما يتهرسش السطر */
}

/* تصغير اللوغو في الموبايل باش يجي وسط الهيدر */
@media (max-width: 600px) {
    .logo {
        font-size: 1.1rem !important; /* صغرناه كثر في الموبايل */
        width: auto;
        text-align: center;
    }
}  

/* إصلاح تكرار صورة الواجهة */
.hero {
    background-image: url('images/تصويرة_ديالك.jpg') !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center !important;
}
.hero {
    background-image: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('uploads/hero-share.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    background-attachment: scroll !important;
}

/* تنسيق السلايدر الجديد */
.slider-container {
    width: 100%;
    overflow: hidden;
    padding: 30px 0;
    background: #fdfdfd;
}

.slider-track {
    display: flex;
    gap: 20px;
    animation: scrollSlider 40s linear infinite; /* سرعة السلايدر */
    width: max-content;
}

.review-item {
    background: white;
    padding: 20px;
    border-radius: 15px;
    min-width: 280px;
    max-width: 300px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border-top: 4px solid #28a745;
    flex-shrink: 0;
    position: relative;
}

.review-item strong { color: #333; display: block; margin-bottom: 8px; }
.review-item p { color: #666; font-size: 0.9rem; line-height: 1.4; margin: 0; }

.delete-review {
    position: absolute; top: 10px; right: 10px;
    color: #ff7782; text-decoration: none; font-weight: bold;
}

/* حركة السلايدر */
@keyframes scrollSlider {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* التوقف عند ملامسة الماوس */
.slider-container:hover .slider-track {
    animation-play-state: paused;
}

/* تنسيق الفورم */
.add-review { max-width: 500px; margin: 30px auto; padding: 20px; }
#review-form input, #review-form textarea {
    width: 100%; padding: 12px; margin-bottom: 10px;
    border: 1px solid #ddd; border-radius: 8px;
}


