/* ===========================
   1. إعدادات عامة للصفحة
=========================== */
body#app {
  background-color: white;
}

.banner--fixed img {
  background-color: rgb(255 255 255);
}

.lazy__bg.lazy.bg-no-repeat.entered.loaded {
  background-color: transparent;
}

/* ===========================
   2. أول بانر (الهيرو)
=========================== */
section.s-block.s-block--fixed-banner.wide-placeholder:nth-of-type(1) > .container {
  max-width: 100%;
  margin-top: 0;
  padding: 0;
}

#main-content > section:nth-child(2) {
  margin-top: 0px;
}


/* ===========================
   4. عنوان السلايدر
=========================== */
.s-slider-block__title {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.s-slider-block__title-right {
  flex: 1;
  text-align: center;
}

.s-slider-block__title-right h2 {
  border: 2px solid #997350;
  padding: 8px 20px;
  border-radius: 8px;
  font-size: 28px;
  font-weight: 700;
  background: linear-gradient(90deg, #997350, #997350, #997350);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  display: inline-block;
  text-align: center;
  position: relative;
  cursor: pointer;
  transition: color 0.35s ease, transform 0.35s ease;
  animation: titleEntrance 0.8s ease forwards;
}

.s-slider-block__title-right h2:hover {
  color: #997350;
  transform: translateY(-4px);
}

.s-slider-block__title-right h2::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  transform: translateX(-50%);
  width: 0%;
  height: 3px;
  background-color: #997350;
  border-radius: 2px;
  transition: width 0.4s ease;
}

.s-slider-block__title-right h2:hover::after {
  width: 60%;
}

@keyframes titleEntrance {
  0% { opacity: 0; transform: translateY(20px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ===========================
   5. عناوين البلوكات
=========================== */
.s-block__title .right-side:where([dir=rtl],[dir=rtl] *) {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  text-align: center;
  padding: 0.5rem 0;
}
.navbar-brand img {
    max-height: 5rem;
}
.main-nav-container.fixed-pinned .navbar-brand img {
    max-height: 80px;
}
.s-block__title .right-side:where([dir=rtl],[dir=rtl] *) h2 {
  position: relative;
  display: inline-block;
  font-size: 1.8rem;
  font-weight: 600;
  color: #997350;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.2;
  margin: 0;
}

.s-block__title .right-side:where([dir=rtl],[dir=rtl] *) h2::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 50%;
  height: 3px;
  background: linear-gradient(90deg, transparent, #997350, transparent);
  border-radius: 2px;
  opacity: 0.7;
}

/* ===========================
   6. صندوق المميزات
=========================== */
.s-block--features__item {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 25px 20px;
  text-align: center;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 1;
  border: 2px solid #997350;
}

.s-block--features__item::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: linear-gradient(120deg, #997350, #997350, #997350, #997350);
  background-size: 200% 200%;
  z-index: 0;
  border-radius: 16px;
  transition: opacity 0.5s ease;
  opacity: 0;
  animation: bgMove 6s linear infinite;
}

@keyframes bgMove {
  0% { background-position: 0% 0%; }
  25% { background-position: 50% 50%; }
  50% { background-position: 100% 0%; }
  75% { background-position: 50% 50%; }
  100% { background-position: 0% 0%; }
}

.s-block--features__item:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 25px rgba(153,115,80,0.3);
}

.s-block--features__item:hover::before {
  opacity: 0.3;
}

.s-block--features__item .feature-icon {
  position: relative;
  z-index: 2;
  width: 60px; height: 60px;
  margin: 0 auto;
  border-radius: 50%;
  background-color: #fff;
  display: flex;
  justify-content: center;
  align-items: center;
  box-shadow: 0 4px 15px rgba(153,115,80,0.2);
  transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.s-block--features__item:hover .feature-icon {
  transform: scale(1.15) rotate(10deg);
  box-shadow: 0 6px 20px rgba(153,115,80,0.35);
}

.s-block--features__item .feature-icon i {
  font-size: 2rem;
  color: #997350;
  transition: transform 0.4s ease;
}

.s-block--features__item h2 {
  position: relative;
  z-index: 2;
  color: #997350;
  margin-top: 12px;
  font-size: 1.3rem;
  font-weight: 600;
  text-align: center;
}

.s-block--features__item p {
  position: relative;
  z-index: 2;
  color: #997350;
  margin-top: 6px;
  font-size: 1rem;
  text-align: center;
}

/* ===== بطاقة المنتج ===== */
.s-product-card-entry {
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #f1f1f1;
  transition: 
    transform 0.35s ease,
    box-shadow 0.35s ease,
    border-color 0.35s ease;
}

.s-product-card-image img {
  transition: transform 0.6s ease;
}

.s-product-card-content-title a {
  transition: color 0.3s ease;
}

.s-product-card-price {
  color: #111;
  font-weight: 700;
  transition: color 0.3s ease;
}

.s-product-card-content-footer .s-button-element {
  border-radius: 14px;
  transition: 
    background-color 0.3s ease,
    color 0.3s ease,
    border-color 0.3s ease;
}

.s-product-card-entry:hover {
  transform: translateY(-8px);
  border-color: #997350;
  box-shadow: 0 18px 45px rgba(153, 115, 80, 0.25);
}

.s-product-card-entry:hover .s-product-card-image img {
  transform: scale(1.08);
}

.s-product-card-entry:hover .s-product-card-content-title a {
  color: #997350;
}

.s-product-card-entry:hover .s-product-card-price {
  color: #997350;
}

.s-product-card-entry:hover .s-product-card-content-footer .s-button-element:not(.s-button-disabled) {
  background-color: #997350;
  border-color: #997350;
  color: #fff;
}

.s-button-primary-outline.s-button-btn {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  border: none;
  background: linear-gradient(135deg, #997350, #B58A64, #997350, #997350);
  background-size: 350% 350%;
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  box-shadow: 0 12px 30px rgba(153, 115, 80, 0.35);
  animation: 
    softGradientShift 7s ease-in-out infinite,
    buttonPulseGlow 4s ease-in-out infinite;
  transition:
    transform .45s cubic-bezier(.2,.8,.2,1),
    box-shadow .45s ease,
    filter .45s ease;
}

.s-button-primary-outline.s-button-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255,255,255,.38), transparent 28%);
  transform: translateX(-120%) scale(1.2);
  opacity: .8;
  animation: liquidLight 5s ease-in-out infinite;
  pointer-events: none;
}

.s-button-primary-outline .s-button-text {
  position: relative;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}

.s-button-primary-outline .sicon-shopping-bag {
  margin-left: 0;
  opacity: 0;
  transform: translateY(18px) scale(.7) rotate(-12deg);
  width: 0;
  overflow: hidden;
  transition:
    opacity .45s ease,
    transform .45s cubic-bezier(.2,.9,.2,1.2),
    width .45s ease;
}

.s-button-primary-outline.s-button-btn:hover {
  transform: translateY(-5px) scale(1.045);
  box-shadow: 0 24px 55px rgba(153, 115, 80, 0.58);
  filter: saturate(1.08);
}

.s-button-primary-outline.s-button-btn:hover .sicon-shopping-bag {
  opacity: 1;
  width: 18px;
  transform: translateY(0) scale(1) rotate(0deg);
  animation: bagWiggle .75s ease .15s;
}

.s-button-primary-outline.s-button-btn:hover::before {
  animation-duration: 2s;
}

.s-button-primary-outline.s-button-btn:active {
  transform: scale(.96);
}

@keyframes softGradientShift {
  0% { background-position: 0% 50%; }
  35% { background-position: 80% 20%; }
  70% { background-position: 100% 80%; }
  100% { background-position: 0% 50%; }
}

@keyframes buttonPulseGlow {
  0%, 100% { box-shadow: 0 12px 30px rgba(153, 115, 80, .35); }
  50% { box-shadow: 0 18px 42px rgba(181, 138, 100, .55); }
}

@keyframes liquidLight {
  0% { transform: translateX(-120%) scale(1.2); opacity: 0; }
  25% { opacity: .85; }
  55% { transform: translateX(120%) scale(1.2); opacity: 0; }
  100% { transform: translateX(120%) scale(1.2); opacity: 0; }
}

@keyframes bagWiggle {
  0% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-3px) rotate(-10deg); }
  70% { transform: translateY(1px) rotate(7deg); }
  100% { transform: translateY(0) rotate(0deg); }
}

.carousel-slider .s-slider-block__title-nav {
  display: none !important;
}

.s-product-card-content {
  display: flex;
  place-content: center;
  align-items: center;
}

.s-product-card-content-title a {
  display: block;
  font-size: 16px;
  color: #997350;
}

.s-product-card-content-sub {
  display: flex;
  justify-content: center;
  align-items: center;
}

.s-product-card-price {
  color: #000000;
  font-weight: 700;
  font-size: 21px;
  transition: color 0.3s ease;
}

@media (max-width: 768px) {
  .s-product-card-content-title a {
    font-size: 14px;
    text-align: center;
    word-break: break-word;
    display: block;
  }
}

footer.store-footer {
    background: url(https://archive.org/download/frame-5-5/Frame%205%20%285%29.png);
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

.footer-is-light .store-footer .store-footer__inner {
    background-color: rgb(243 244 246 / 0%);
}
/* ===========================
   9. أيقونات الهيدر والسلة
=========================== */
.header-btn__icon,
.s-cart-summary-icon,
.icon.sicon-shopping-bag {
  font-size: 26px;
  transition: transform 0.3s ease, color 0.3s ease, filter 0.3s ease;
  cursor: pointer;
  color: #997350;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

.header-btn:hover .header-btn__icon,
.s-cart-summary-wrapper:hover .s-cart-summary-icon,
.s-cart-summary-wrapper:hover .icon.sicon-shopping-bag {
  color: #997350;
  transform: scale(1.08);
  filter: drop-shadow(0 0 4px rgba(153,115,80,0.3));
  animation: pulseGlowSmooth 1.5s infinite ease-in-out;
}

@keyframes pulseGlowSmooth {
  0%   { filter: drop-shadow(0 0 0 rgba(153,115,80,0)); }
  50%  { filter: drop-shadow(0 0 6px rgba(153,115,80,0.3)); }
  100% { filter: drop-shadow(0 0 0 rgba(153,115,80,0)); }
}

/* ===========================
   10. أيقونة User Menu
=========================== */
.s-user-menu-login-btn svg {
  width: 32px; height: 32px;
  transition: transform 0.3s ease, filter 0.3s ease, fill 0.3s ease;
  cursor: pointer;
  fill: #997350;
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

.s-user-menu-login-btn:hover svg {
  transform: scale(1.08);
  fill: #997350;
  filter: drop-shadow(0 0 4px rgba(153,115,80,0.3));
  animation: pulseGlowUser 1.5s infinite ease-in-out;
}

@keyframes pulseGlowUser {
  0%   { filter: drop-shadow(0 0 0 rgba(153,115,80,0)); }
  50%  { filter: drop-shadow(0 0 6px rgba(153,115,80,0.3)); }
  100% { filter: drop-shadow(0 0 0 rgba(153,115,80,0)); }
}

/* ===========================
   11. Responsive (موبايل)
=========================== */
@media (max-width: 768px) {
  .s-slider-block__title {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
  }

  .s-slider-block__title-right {
    flex: unset;
    width: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
  }

  .s-slider-block__title-right h2 {
    margin-right: 0 !important;
    margin-left: 0 !important;
    font-size: 20px !important;
    padding: 6px 16px;
    max-width: 90%;
    line-height: 1.4;
    border-radius: 8px;
  }

  .s-slider-block__title-right h2::after {
    bottom: -5px;
    height: 2px;
  }

  .s-slider-block__title-right h2:hover::after {
    width: 50%;
  }

  .s-block__title .right-side:where([dir=rtl],[dir=rtl] *) h2 {
    font-size: 1.4rem;
  }

  .s-block__title .right-side:where([dir=rtl],[dir=rtl] *) h2::after {
    width: 40%;
  }

  .s-block--features__item {
    padding: 20px 15px;
  }

  .s-block--features__item .feature-icon {
    width: 50px; height: 50px;
  }

  .s-block--features__item .feature-icon i {
    font-size: 1.5rem;
  }

  .s-block--features__item h2 {
    font-size: 1.1rem;
  }

  .s-block--features__item p {
    font-size: 0.9rem;
  }

  .header-btn__icon,
  .s-cart-summary-icon,
  .icon.sicon-shopping-bag {
    font-size: 22px;
  }

  .s-user-menu-login-btn svg {
    width: 26px; height: 26px;
    transition: transform 0.25s ease, filter 0.25s ease, fill 0.25s ease;
  }

  .s-user-menu-login-btn:hover svg {
    transform: scale(1.05);
    filter: drop-shadow(0 0 3px rgba(153,115,80,0.25));
    animation: pulseGlowUserMobile 1.5s infinite ease-in-out;
  }

  @keyframes pulseGlowUserMobile {
    0%   { filter: drop-shadow(0 0 0 rgba(153,115,80,0)); }
    50%  { filter: drop-shadow(0 0 4px rgba(153,115,80,0.25)); }
    100% { filter: drop-shadow(0 0 0 rgba(153,115,80,0)); }
  }

  #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;
  }

  .s-product-card-content-title a {
    font-size: 14px;
    text-align: center;
    word-break: break-word;
    display: block;
  }
}

@media (min-width: 1024px) {

  /* تقسيمة البانرات مع عكس الجريد */
  .grid.md\:grid-cols-3.grid-flow-row.gap-3.sm\:gap-8 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: 220px 220px;
    gap: 22px;
    width: 100%;
    direction: ltr;
  }

  /* ضبط شكل كل بانر */
  .grid.md\:grid-cols-3.grid-flow-row.gap-3.sm\:gap-8 > .banner-entry {
    width: 100%;
    height: 120%;
    min-height: unset;
    border-radius: 14px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    direction: rtl;
  }

  /* الصورة الأولى: شمال فوق */
  .grid.md\:grid-cols-3.grid-flow-row.gap-3.sm\:gap-8 > .banner-entry:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 2;
  }

  /* الصورة الثانية: يمين لوحدها بطول الصفين */
  .grid.md\:grid-cols-3.grid-flow-row.gap-3.sm\:gap-8 > .banner-entry:nth-child(2) {
    grid-column: 3 / 4;
    grid-row: 1 / 3;
  }

  /* الصورة الثالثة: شمال تحت */
  .grid.md\:grid-cols-3.grid-flow-row.gap-3.sm\:gap-8 > .banner-entry:nth-child(3) {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
  }

  #main-content > section.s-block.s-block--banners.container > div > a:nth-child(3) {
    top: 22%;
  }

}
/* الموبايل */
@media (max-width: 768px) {
  .grid.md\:grid-cols-3.grid-flow-row.gap-3.sm\:gap-8 {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    gap: 14px;
  }

  #main-content > section.s-block.s-block--banners.container > div > a:nth-child(2) {
    height: 394px;
    order: -1;
}
  #main-content > section.s-block.s-block--banners.container > div > a:nth-child(1) {
    height: 140px;
}
#main-content > section.s-block.s-block--banners.container > div > a:nth-child(3) {
    height: 140px;
}
}
.main-nav-container {
    min-height: 84px;
    background-color: #FBF3E8;
}