/* ==============================
   2- إعدادات الصفحة الأساسية (Body)
============================== */

body#app.index {
    background: #FAF3EE; /* خلفية بيضاء لصفحة الهوم */
}

div#mainnav {
    BACKGROUND-COLOR: #FAF3EE;
}

.topnav-is-dark .top-navbar {
    background-color: #3A4A25;
    color: rgb(255 255 255);
}
/* ==============================
   3- إعدادات اللازي لود (Lazy Loading)
============================== */
.lazy__bg.lazy.entered.loaded {
    background-size: contain;      /* ملاءمة الخلفية بدون قص */
    background-repeat: no-repeat;  /* منع التكرار */
}


/* ==============================
   4- إعدادات الصور والبنرات
============================== */
a.banner-entry.square-photos {
    background: transparent; /* خلفية شفافة */
}

.banner-entry {
    transition:
        transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94),       /* حركة تكبير/تصغير */
        background-size 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), /* انتقال حجم الخلفية */
        background-position 0.6s ease;                             /* انتقال موضع الخلفية */
}

.banner-entry:hover {
    transform: scale(1.05) translateY(-10px); /* تكبير وتحريك لأعلى عند الهوفر */
}

img {
    background: transparent !important; /* إزالة خلفية الصور */
    border-radius: 0;                   /* إزالة الزوايا الدائرية */
}

.index section.s-block--fixed-banner:nth-of-type(2) > .container,
.index section.s-block--fixed-banner:nth-of-type(4) > .container{
    max-width: 100%; /* تمديد الكونتينر بعرض الصفحة */
    padding: 0;      /* إزالة الهوامش الداخلية */
}

/* ==============================
   8- المنتجات (Products)
============================== */
.s-product-card-entry,
custom-salla-product-card.s-product-card-entry {
    border: 2px solid #43621C3B;               /* إطار المنتج */
    border-radius: 30px;                      /* زوايا دائرية */
    overflow: hidden;                        /* إخفاء المحتوى الزائد */
    padding: 10px; 
      background-color: rgb(255 255 255 / 0%);/* حشو داخلي */
    transition: transform 0.3s ease, 
                box-shadow 0.3s ease;        /* تأثير حركة */
}

.s-product-card-entry:hover,
custom-salla-product-card.s-product-card-entry:hover {
    transform: scale(0.97); /* تصغير بسيط عند الهوفر */
    box-shadow: none;       /* إلغاء الظل */
}

.s-product-card-price {
    color: #3a4a25;       /* لون السعر */
    text-align: center;   /* توسيط السعر */
}

.s-product-card-content-sub {
    text-align: center;
    display: inline-block;
}

.s-product-card-content-title a {
    font-size: 16px;     /* حجم النص */
    font-weight: bold;   /* نص سميك */
    text-align: center;
    display: block;
}

/* ميل للصورة كلها لليمين وقت الهوفر */
.s-product-card-image img {
  transition: transform 0.4s ease;
}

.s-product-card-image img:hover {
  transform: rotate(5deg); /* تميل 5 درجات لليمين */
}

/* ==============================
   10- الفوتر (Footer)
============================== */
.store-footer__inner {
    background-color: #3A4A25; /* خلفية الفوتر */
}

.store-footer a.flex h3 {
    font-size: 0;                                      /* إخفاء النص */
    background-image: url(https://archive.org/download/download-5-5/download%20%285%29%205.png); /* شعار */
    background-size: contain;                          /* ملاءمة الحجم */
    background-repeat: no-repeat;                      /* منع التكرار */
    background-position: center;                       /* توسيط */
    display: block;
    width: 200px;
    height: 100px;
}

/* ==============================
   9- الأزرار (Buttons)
============================== */
.s-button-btn.s-button-primary-outline {
    background-color: #3A4A25; /* لون الخلفية */
    color: white;             /* لون النص */
}

.s-button-btn.s-button-primary-outline:hover {
    background-color: #3A4A25;
    color: white;
}

@media (min-width: 768px) {
    .square-photos-grid--featured-3 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
  /* 1. إجبار الحاوية على تقسيم الشاشة لـ 3 أعمدة متساوية بدون صفوف إضافية */
  .square-photos-grid--featured-3 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    grid-template-rows: auto !important;
    grid-auto-flow: dense !important;
  }

  /* 2. تجريد العنصر الأول تماماً من كل خصائص التمدد والدمج */
  .square-photos-grid--featured-3 > *:first-child,
  .square-photos-grid--featured-3 > .banner-entry:first-child {
    grid-row: 1 / 2 !important;
    grid-column: auto !important;
    grid-area: auto !important;
  }

  /* 3. توحيد مقاس وطول العناصر الثلاثة جميعاً */
  .square-photos-grid--featured-3 > .banner-entry {
    grid-row: 1 / 2 !important;

  }

  /* 4. إجبار الصور والروابط الداخلية على ملء الكرت بالكامل */
  .square-photos-grid--featured-3 > .banner-entry a,
  .square-photos-grid--featured-3 > .banner-entry img {
    height: 100% !important;
    width: 100% !important;
    object-fit: cover !important;
    aspect-ratio: auto !important;
    display: block !important;
  }
}

.store-footer {
    background-color: #3A4A25;

}

.copyright-text p {
    
    color: #374151;
}

/* ==============================
   12- responsive
============================== */

@media(max-width:767px){
#photos-0-slider > div.swiper.s-slider-container.swiper-initialized.swiper-horizontal.swiper-rtl.swiper-ios.swiper-backface-hidden{
   padding:0;
}
.s-products-slider-card {
    max-width: 185px;
}
.main-nav-container {
    min-height: 56px;
}
  .s-button-element:not(:disabled):not([loading]) {
    font-size: 11px;
}
}


/* ==============================
   5- إعدادات الهيدر والشعار
============================== */
.store-header .inner .container {
    max-width: 85%; /* تقليل عرض الكونتينر */
}

.main-nav-container.fixed-pinned .navbar-brand img,
.navbar-brand img {
    max-height:4rem; /* تحديد أقصى ارتفاع للشعار */
}