/* =========================================================
   Think Green | Clean CSS - Salla Raed Theme
   كود مختصر ونظيف بدون تغيير الخطوط
   ========================================================= */

:root {
  --tg-black: #080807;
  --tg-brown: #3a2a20;
  --tg-gold: #b9825a;
  --tg-gold-light: #d8b28b;
  --tg-bg: #f7f1ea;
  --tg-card: #fffaf4;
  --tg-text: #15110e;
  --tg-muted: #5f5046;
  --tg-border: rgba(185, 130, 90, .24);
}

body.theme-raed {
  background: var(--tg-bg);
  color: var(--tg-text);
  overflow-x: hidden;
}

body.theme-raed .app-inner {
  background: var(--tg-bg);
}

body.theme-raed .container {
  max-width: 1240px;
}


/* =========================================================
   Header
   ========================================================= */

body.theme-raed .store-header,
body.theme-raed .main-nav-container {
  background: var(--tg-black) !important;
  color: #fff;
  border-bottom: 1px solid rgba(185, 130, 90, .22);
}

body.theme-raed .top-navbar {
  background: linear-gradient(90deg, #2c1f18, #6f584c, #2c1f18) !important;
  color: #fff6ec;
  border: 0;
}

body.theme-raed .top-navbar a,
body.theme-raed .top-navbar span,
body.theme-raed .top-navbar button,
body.theme-raed .s-contacts-topnav-link {
  color: #fff6ec !important;
}

body.theme-raed .main-menu li > a,
body.theme-raed .main-menu li.root-level > a {
  color: #fff8ef !important;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

body.theme-raed .main-menu li > a:hover {
  color: var(--tg-gold-light) !important;
}

body.theme-raed .navbar-brand img {
  max-height: 56px;
  object-fit: contain;
}

body.theme-raed .header-btn,
body.theme-raed .btn--rounded-gray,
body.theme-raed .store-header button {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .35) !important;
}

body.theme-raed .s-search-input,
body.theme-raed .s-search-placeholder-trigger,
body.theme-raed salla-search input {
  height: 42px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #8f8884 !important;
  color: #fff !important;
}

body.theme-raed .s-search-input::placeholder {
  color: #f4eeee !important;
}

body.theme-raed .s-cart-summary-count {
  background: var(--tg-gold) !important;
  color: #fff !important;
  border: 2px solid var(--tg-black);
}

@media (min-width: 1025px) {
  body.theme-raed .main-menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    max-width: 980px;
    margin-inline: auto;
    padding-block: 12px 16px;
  }
}


/* =========================================================
   Hero & Banners
   ========================================================= */

body.theme-raed .s-block--hero-slider,
body.theme-raed .main-slider,
body.theme-raed .home-slider {
  margin: 0;
  padding: 0;
  background: transparent !important;
}

body.theme-raed .s-block--hero-slider .container,
body.theme-raed .main-slider .container,
body.theme-raed .home-slider .container {
  max-width: 100%;
  padding-inline: 0;
}

body.theme-raed .s-block--hero-slider .swiper,
body.theme-raed .main-slider .swiper,
body.theme-raed .home-slider .swiper {
  background: transparent !important;
}

body.theme-raed .s-block--hero-slider img,
body.theme-raed .main-slider img,
body.theme-raed .home-slider img {
  width: 100%;
  height: auto;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: transparent !important;
  display: block;
}

body.theme-raed .s-block--fixed-banner {
  margin-top: 28px;
  background: transparent !important;
}

body.theme-raed .s-block--fixed-banner img,
body.theme-raed .banner-entry,
body.theme-raed .s-banner {
  border-radius: 20px;
  overflow: hidden;
}


/* =========================================================
   Section Titles
   ========================================================= */

body.theme-raed .s-block {
  margin-top: 34px;
}

body.theme-raed .s-block__title,
body.theme-raed .s-slider-block__title {
  margin-bottom: 16px;
}

body.theme-raed .s-block__title h2,
body.theme-raed .s-slider-block__title h2,
body.theme-raed .s-block__title .title,
body.theme-raed .s-slider-block__title .title {
  color: var(--tg-text) !important;
  font-size: 24px;
  font-weight: 900;
}

body.theme-raed .s-block__title h2::after,
body.theme-raed .s-slider-block__title h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 9px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--tg-gold), transparent);
}


/* =========================================================
   Categories
   الأقسام - صور أكبر وشكل فاخر
   ========================================================= */

body.theme-raed .s-block--categories,
body.theme-raed .categories-slider {
  background: var(--tg-bg) !important;
  padding-block: 34px 30px;
}

body.theme-raed .s-block--categories .swiper-slide > a,
body.theme-raed .categories-slider .swiper-slide > a,
body.theme-raed .category-entry,
body.theme-raed .category-card {
  min-height: 190px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: linear-gradient(180deg, #fffdf9, #fff6ec) !important;
  border: 1px solid rgba(185, 130, 90, .28) !important;
  border-radius: 18px;
  box-shadow: 0 10px 24px rgba(55, 35, 20, .07);
  overflow: hidden;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

body.theme-raed .s-block--categories .swiper-slide > a:hover,
body.theme-raed .categories-slider .swiper-slide > a:hover,
body.theme-raed .category-entry:hover,
body.theme-raed .category-card:hover {
  transform: translateY(-4px);
  border-color: rgba(185, 130, 90, .48) !important;
  box-shadow: 0 16px 34px rgba(55, 35, 20, .12);
}

body.theme-raed .s-block--categories img,
body.theme-raed .categories-slider img,
body.theme-raed .category-entry img,
body.theme-raed .category-card img {
  width: 118px;
  height: 118px;
  object-fit: cover;
  border-radius: 22px;
  background: #fff;
  border: 1px solid rgba(185, 130, 90, .22);
  padding: 5px;
}

body.theme-raed .s-block--categories h2,
body.theme-raed .s-block--categories h3,
body.theme-raed .categories-slider h2,
body.theme-raed .categories-slider h3,
body.theme-raed .category-entry h2,
body.theme-raed .category-entry h3 {
  margin: 0;
  color: var(--tg-text) !important;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
  text-align: center;
}


/* =========================================================
   Products
   ========================================================= */

body.theme-raed .s-products-list-wrapper,
body.theme-raed .products-grid,
body.theme-raed salla-products-slider {
  overflow: hidden;
}

body.theme-raed .s-product-card-entry,
body.theme-raed .product-card,
body.theme-raed .product-entry,
body.theme-raed custom-salla-product-card,
body.theme-raed salla-product-card {
  background: #fff !important;
  border: 1px solid rgba(58, 42, 32, .08);
  border-radius: 16px !important;
  box-shadow: 0 8px 22px rgba(30, 20, 12, .08);
  overflow: hidden !important;
}

body.theme-raed .s-product-card-image,
body.theme-raed .product-card__image,
body.theme-raed .product-block__thumb {
  background: #fffaf4 !important;
  overflow: hidden;
}

body.theme-raed .s-product-card-image img {
  object-fit: cover;
}

body.theme-raed .s-product-card-content,
body.theme-raed .product-card__content,
body.theme-raed .product-block__info {
  padding: 12px;
}

body.theme-raed .s-product-card-content-title,
body.theme-raed .s-product-card-content-title a,
body.theme-raed .product-title,
body.theme-raed .product-card__title {
  color: var(--tg-text) !important;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.55;
  min-height: 42px;
}

body.theme-raed .s-product-card-price,
body.theme-raed .s-product-card-sale-price,
body.theme-raed .price-wrapper,
body.theme-raed .product-price {
  color: var(--tg-gold) !important;
  font-size: 15px;
  font-weight: 900;
}

body.theme-raed .s-product-card-entry salla-add-product-button,
body.theme-raed .product-card salla-add-product-button,
body.theme-raed .product-entry salla-add-product-button {
  display: block;
  width: 100%;
}

body.theme-raed .s-product-card-entry salla-add-product-button button,
body.theme-raed .product-card salla-add-product-button button,
body.theme-raed .product-entry salla-add-product-button button {
  width: 100%;
  min-height: 40px;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tg-black) !important;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  box-shadow: none !important;
}

body.theme-raed .s-product-card-entry salla-add-product-button button:hover,
body.theme-raed .product-card salla-add-product-button button:hover,
body.theme-raed .product-entry salla-add-product-button button:hover {
  background: var(--tg-gold) !important;
}


/* =========================================================
   Footer
   ========================================================= */

body.theme-raed .store-footer,
body.theme-raed footer.store-footer,
body.theme-raed .store-footer__inner,
body.theme-raed .footer-main {
  background: #0b0a09 !important;
  color: #e8d7c8 !important;
}

body.theme-raed .store-footer {
  margin-top: 34px;
  border-top: 1px solid rgba(185, 130, 90, .28);
}

body.theme-raed .store-footer__inner,
body.theme-raed .store-footer .container {
  padding-block: 36px 28px;
}

body.theme-raed .store-footer h3,
body.theme-raed .store-footer h4,
body.theme-raed .store-footer .footer-title {
  color: #fff7ed !important;
  font-size: 17px;
  font-weight: 900;
  margin-bottom: 12px;
}

body.theme-raed .store-footer p,
body.theme-raed .store-footer li,
body.theme-raed .store-footer span,
body.theme-raed .store-footer a {
  color: #e0c8b5 !important;
  font-size: 14px;
  line-height: 1.75;
  opacity: 1 !important;
}

body.theme-raed .store-footer a:hover {
  color: var(--tg-gold-light) !important;
}

body.theme-raed .store-footer .s-social-link a,
body.theme-raed .footer-social a,
body.theme-raed .s-contacts-icon {
  width: 34px;
  height: 34px;
  border: 1px solid rgba(185, 130, 90, .32) !important;
  border-radius: 999px;
  background: rgba(255, 255, 255, .06) !important;
  color: #fff !important;
}

body.theme-raed .footer-bottom,
body.theme-raed .copyright,
body.theme-raed .store-footer__bottom {
  background: var(--tg-black) !important;
  color: #f2dfcc !important;
  border-top: 1px solid rgba(185, 130, 90, .18);
}


/* =========================================================
   Footer Info Pages
   الصفحات التعريفية داخل الفوتر فقط
   ========================================================= */

body.theme-raed .store-footer salla-menu[source="footer"]:not([topnav]) .s-menu-footer-list,
body.theme-raed .store-footer .footer-links .footer-list.store-links-items {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 22px;
  max-width: 360px;
  margin: 0 auto;
}

body.theme-raed .store-footer salla-menu[source="footer"]:not([topnav]) .s-menu-footer-item,
body.theme-raed .store-footer .footer-links .footer-list__item {
  margin: 0;
  padding: 0;
  color: #e0c8b5 !important;
  font-size: 14px;
  line-height: 1.7;
}


/* =========================================================
   Mobile
   ========================================================= */

@media (max-width: 768px) {
  body.theme-raed .container {
    padding-inline: 12px;
  }

  body.theme-raed .top-navbar {
    padding: 7px 8px;
  }

  body.theme-raed .navbar-brand img {
    max-height: 54px;
  }

  body.theme-raed .header-btn,
  body.theme-raed .btn--rounded-gray {
    width: 40px;
    height: 40px;
    min-width: 40px;
    padding: 0;
  }

  body.theme-raed .s-search-input,
  body.theme-raed .s-search-placeholder-trigger {
    height: 40px !important;
    font-size: 14px;
  }

  body.theme-raed .s-block {
    margin-top: 26px;
  }

  body.theme-raed .s-block__title h2,
  body.theme-raed .s-slider-block__title h2,
  body.theme-raed .s-block__title .title,
  body.theme-raed .s-slider-block__title .title {
    font-size: 21px;
  }

  body.theme-raed .s-block--hero-slider img,
  body.theme-raed .main-slider img,
  body.theme-raed .home-slider img {
    max-height: none;
  }

  body.theme-raed .s-block--categories,
  body.theme-raed .categories-slider {
    padding-block: 26px 22px;
  }

  body.theme-raed .s-block--categories .swiper-slide > a,
  body.theme-raed .categories-slider .swiper-slide > a,
  body.theme-raed .category-entry,
  body.theme-raed .category-card {
    min-height: 160px;
    padding: 10px;
    gap: 9px;
    border-radius: 16px;
  }

  body.theme-raed .s-block--categories img,
  body.theme-raed .categories-slider img,
  body.theme-raed .category-entry img,
  body.theme-raed .category-card img {
    width: 96px;
    height: 96px;
    padding: 4px;
    border-radius: 18px;
  }

  body.theme-raed .s-block--categories h2,
  body.theme-raed .s-block--categories h3,
  body.theme-raed .categories-slider h2,
  body.theme-raed .categories-slider h3,
  body.theme-raed .category-entry h2,
  body.theme-raed .category-entry h3 {
    font-size: 13.5px;
  }

  body.theme-raed .s-product-card-content,
  body.theme-raed .product-card__content,
  body.theme-raed .product-block__info {
    padding: 10px;
  }

  body.theme-raed .s-product-card-content-title,
  body.theme-raed .s-product-card-content-title a {
    font-size: 13.5px;
    min-height: 42px;
  }

  body.theme-raed .s-product-card-entry salla-add-product-button button,
  body.theme-raed .product-card salla-add-product-button button,
  body.theme-raed .product-entry salla-add-product-button button {
    min-height: 40px;
    font-size: 12.5px;
  }

  body.theme-raed .store-footer {
    text-align: center;
    margin-top: 28px;
  }

  body.theme-raed .store-footer__inner,
  body.theme-raed .store-footer .container {
    padding-block: 30px 22px;
  }

  body.theme-raed .store-footer p,
  body.theme-raed .store-footer li,
  body.theme-raed .store-footer span,
  body.theme-raed .store-footer a {
    font-size: 13px;
    line-height: 1.65;
  }

  body.theme-raed .store-footer salla-menu[source="footer"]:not([topnav]) .s-menu-footer-list,
  body.theme-raed .store-footer .footer-links .footer-list.store-links-items {
    gap: 7px 14px;
    max-width: 320px;
  }

  body.theme-raed .store-footer salla-menu[source="footer"]:not([topnav]) .s-menu-footer-item {
    text-align: center;
  }
}