/* Add custom CSS styles below */ 
:root {
    --color-primary: #8b6754;
    --color-primary-dark: #6b5144;
    --color-primary-light: #c38769;
    --color-primary-reverse: #241e1b;
    --color-gray: #ababab;
    /* --main-coffee-color: #4B3832; */ /* بني غامق للقهوة */
    --main-coffee-color: #895f52;
    --accent-gold: #D4AF37; /* لون ذهبي للتفاصيل */
    --light-cream: #F5F5F1; /* لون خلفية كريمي فاتح */
    --text-dark: #2C2C2C;
    --radius-soft: 12px; /* زوايا ناعمة */
}

body {
    background-color: var(--light-cream) !important;
    /* font-family: 'Cairo', sans-serif !important; */
}

.top-navbar {
    background-color: var(--color-primary-reverse);
}
.top-navbar .s-search-input {
    background-color: rgba(229,231,235,.15);
}
.s-contacts-topnav-link {
    color: var(--color-gray);
}
.header-btn__icon {
    border-color: var(--main-coffee-color);
    color: var(--main-coffee-color);
}
.s-cart-summary-total {
    color: var(--main-coffee-color);
}
.full-banner-entry:after, 
.full-banner-entry:before {
    display: none;
}
.full-banner-entry:hover {
    opacity: 1;
}

body.index .s-block.s-block--full-banner.s-block--full-bg + .s-block.s-block--banners.container > .grid.two-row {
    gap: 0.5rem;
}
body.index .s-block.s-block--full-banner.s-block--full-bg + .s-block.s-block--banners.container > .grid.two-row > a.banner-entry:first-child {
    height: 200px;
    grid-column: span 1/span 1;
    grid-row: span 1/span 1;
}
body.index .s-block.s-block--full-banner.s-block--full-bg + .s-block.s-block--banners.container > .grid.two-row > a.banner-entry > .lazy__bg {
    background-size: cover !important;
}
body.index .s-block.s-block--full-banner.s-block--full-bg + .s-block.s-block--banners.container > .grid.two-row > a.banner-entry.has-overlay:hover:after {
    background-color: transparent;
}
body.index .s-block.s-block--full-banner.s-block--full-bg + .s-block.s-block--banners.container > .grid.two-row > a.banner-entry.has-overlay.with-hover:after {
    opacity: 1;
    background-color: rgba(0,0,0,.2);
}
body.index .s-block.s-block--full-banner.s-block--full-bg + .s-block.s-block--banners.container > .grid.two-row > a.banner-entry h3 {
    opacity: 1;
    font-size: 1.25rem;
    line-height: 1.75rem;
    border-style: solid;
    background: rgb(243 136 79 / 66%);
    box-shadow: rgb(0 0 0 / 9%) 0px 2px 1px, rgb(0 0 0 / 9%) 0px 4px 2px, rgb(0 0 0 / 9%) 0px 8px 4px, rgb(0 0 0 / 9%) 0px 16px 8px, rgb(0 0 0 / 9%) 0px 32px 16px;
    box-shadow: rgb(0 0 0 / 17%) 0px -23px 25px 0px inset, rgb(0 0 0 / 15%) 0px -36px 30px 0px inset, rgb(0 0 0 / 10%) 0px -79px 40px 0px inset, rgb(0 0 0 / 6%) 0px 2px 1px, rgb(0 0 0 / 9%) 0px 4px 2px, rgb(0 0 0 / 9%) 0px 8px 4px, rgb(0 0 0 / 9%) 0px 16px 8px, rgb(0 0 0 / 9%) 0px 32px 16px;
    transform: translateY(70%);
    justify-content: flex-start;
    padding: 0.75rem;
}
body.index .s-block.s-block--full-banner.s-block--full-bg + .s-block.s-block--banners.container > .grid.two-row > a.banner-entry:hover h3 {
    --tw-translate-y: 0px;
    transform: translate(var(--tw-translate-x)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
    transform: translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important;
    justify-content: center !important;
}

/* --- 2. تحسين الهيدر (القائمة العلوية) --- */
.main-nav-container {
    /* background: #fff !important; */
    background: var(--color-primary-reverse) !important;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-bottom: none !important;
}

.main-nav-container .main-menu a {
    font-weight: 700;
    color: var(--main-coffee-color) !important;
    transition: all 0.3s ease;
}

.main-nav-container .main-menu a:hover {
    color: var(--accent-gold) !important;
}

/* --- 3. تحسين البنر الرئيسي (Slider) --- */
/* يجعل البنر عائماً مع حواف دائرية */
/*.main-slider {
    margin-top: 20px;
    border-radius: var(--radius-soft);
    overflow: hidden;
    box-shadow: 0 10px 20px rgba(75, 56, 50, 0.15);
    width: 95%;
    margin-left: auto;
    margin-right: auto;
}*/

/* --- 4. تصميم بطاقات المنتجات (الأهم) --- */
.s-product-card-entry {
    background: #fff;
    border: none !important; /* إزالة الحدود التقليدية */
    border-radius: var(--radius-soft);
    box-shadow: 0 5px 15px rgba(0,0,0,0.03); /* ظل خفيف جداً */
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275); /* حركة ناعمة */
    overflow: hidden;
}

.s-product-card-entry:hover {
    transform: translateY(-8px); /* يرتفع المنتج للأعلى عند المرور */
    box-shadow: 0 15px 30px rgba(75, 56, 50, 0.15);
}

.s-product-card-image a img {
    border-radius: var(--radius-soft) var(--radius-soft) 0 0;
    transition: transform 0.5s ease;
    width: 100%;
    height: 100%;
    object-fit: fill;
    background: #ffffff;
}

.s-product-card-entry:hover .s-product-card-image a img {
    transform: scale(1.05); /* تكبير الصورة قليلاً عند المرور */
}

.s-product-card-content-title a {
    color: var(--text-dark);
    font-weight: bold;
    font-size: 0.8em;
}

.s-product-card-sale-price h4 {
    color: var(--main-coffee-color);
    font-weight: 800;
    font-size: 1.2em;
}

.s-product-card-promotion-title {
    background-color: var(--accent-gold);
    color: var(--color-primary-reverse);
}

/* --- 5. زر "إضافة للسلة" --- */
salla-add-product-button salla-button button.s-button-btn {
    background-color: var(--main-coffee-color) !important;
    color: #fff !important;
    border-radius: 50px !important; /* زر دائري بالكامل */
    border: none !important;
    font-weight: bold;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

salla-add-product-button salla-button button.s-button-btn:hover {
    background-color: var(--accent-gold) !important;
    color: #fff !important;
    box-shadow: 0 5px 15px rgba(212, 175, 55, 0.4);
}

/* --- 6. أقسام التصنيفات (Category Circles) --- */
/* تحويل صور الأقسام لشكل جذاب */
/* .category-item {
    transition: transform 0.3s;
}
.category-item:hover {
    transform: scale(1.1);
}
.category-item img {
    border: 3px solid #fff;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
} */
  
  /* ===== المميزات / Features ===== */
  .s-block.s-block--features.container {
    background: var(--light-cream);
    padding: 80px 0;
  }
  .s-block--features__item {
    background: #fff;
    border-radius: 20px !important;
    border: 5px solid #fff;
    overflow: hidden;
    color: var(--color-text);
    box-shadow: rgb(0 0 0 / 19%) 0px 10px 20px, rgb(0 0 0 / 23%) 0px 6px 6px;
    cursor: pointer;
    transition: all .2s ease-in-out;
    padding: 0 !important;
  }
  .s-block--features__item .feature-icon {
    height: 200px !important;
    width: 100% !important;
    background: var(--color-primary-light);
    border-radius: 100% 0% 100% 0% / 0% 50% 50% 100% !important;
    display: grid !important;
    place-items: center;
  }
  .s-block--features__item:nth-child(1) {
    /* -webkit-box-shadow: rgb(255 207 152) 0px 20px 25px -10px, rgb(255 240 210) 0px 10px 10px -8px;
    box-shadow: rgb(255 207 152) 0px 20px 25px -10px, rgb(255 240 210) 0px 10px 10px -8px; */
    -webkit-box-shadow: rgb(255 207 152) 0px 10px 15px -5px, rgb(255 240 210) 0px 20px 20px -8px;
    box-shadow: rgb(255 207 152) 0px 10px 15px -5px, rgb(255 240 210) 0px 20px 20px -8px;
  }
  .s-block--features__item:nth-child(2) {
    -webkit-box-shadow: rgb(162 233 234) 0px 10px 15px -5px, rgb(224 255 244) 0px 20px 20px -8px;
    box-shadow: rgb(162 233 234) 0px 10px 15px -5px, rgb(224 255 244) 0px 20px 20px -8px;
  }
  .s-block--features__item:nth-child(3) {
    -webkit-box-shadow: rgb(255 194 220) 0px 10px 15px -5px, rgb(255 224 238) 0px 20px 20px -8px;
    box-shadow: rgb(255 194 220) 0px 10px 15px -5px, rgb(255 224 238) 0px 20px 20px -8px;
  }
  .s-block--features__item:nth-child(1) .feature-icon {
    /* background: linear-gradient(to bottom left, var(--card1-gradient-color1), var(--card1-gradient-color2)); */
    background: linear-gradient(to bottom left, #f16611, #fdc43f);
  }
  .s-block--features__item:nth-child(2) .feature-icon {
    /* background: linear-gradient(to bottom left, var(--card3-gradient-color1), var(--card3-gradient-color2)); */
    background: linear-gradient(to bottom left, #7aeacc, #74cde9);
  }
  .s-block--features__item:nth-child(3) .feature-icon {
    /* background: linear-gradient(to bottom left, var(--card2-gradient-color1), var(--card2-gradient-color2)); */
    background: linear-gradient(to bottom left, #75afec, #d7547c);
  }
  .s-block--features__item .feature-icon > i {
    color: #fff !important;
    font-size: 72px !important;
  }
  .s-block--features__item h2, 
  .s-block--features__item p {
    width: 100%;
    position: relative;
    text-align: center !important;
    line-height: normal !important;   
  }
  .s-block--features__item h2 { 
    font-size: 1.1em !important;
  }
  
  .s-block--features__item p {
    line-height: 1.5em;
  }

/* --- 7. الفوتر (Footer) --- */
footer.store-footer {
    background-color: var(--main-coffee-color) !important;
    color: #fff !important;
    margin-top: 50px;
}
footer.store-footer a {
    color: #ddd !important;
}
footer.store-footer h3 {
    color: var(--accent-gold) !important;
}
footer.store-footer .store-footer__inner {
    background-color: transparent !important;
}