/* ==========================================================
   LOOT — Salla theme overrides (Raed)
   Styles Salla's own markup only: page base, header, sliders,
   product cards, testimonials, footer. Loaded by Salla (render-blocking).
   Component styles (loot-* sections built by JS) live in
   loot-store.css on Flash and are loaded by the loader.
   ========================================================== */

:root {
  --loot-ink: var(--1, #111);     /* main text / dark */
  --loot-gold: var(--2, #d99b2b); /* brand accent */
  --loot-font: Almarai, sans-serif;
}

body {
  background-color: #fff !important;
}

.s-block--fixed-banner {
  margin-top: 0 !important;
}

.s-block--fixed-banner .container {
  padding-inline: 0;
  max-width: 100%;
}

.s-block--fixed-banner .container .banner--fixed img {
  border-radius: 0;
}

/* ==========================================================
   Navbar Brand
   ========================================================== */

@media (min-width: 768px) {
  .navbar-brand img {
    max-width: 120px !important;
  }
}

custom-main-menu {
  min-height: unset !important;
}

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

section[component-id="1970949201"],
section[component-id="952875993"],
section[component-id="2129469171"],
#best-offers-2-slider,
#best-offers-3-slider,
#best-offers-4-slider {
  margin-top: 48px;
  margin-bottom: 48px;
}

section[component-id="1970949201"] .s-slider-block__title,
.s-block:has(.loot-title-group) .s-slider-block__title {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 28px;
  gap: 16px;
}

section[component-id="1970949201"] .s-slider-block__title-right,
.s-block:has(.loot-title-group) .s-slider-block__title-right {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

section[component-id="1970949201"] .s-slider-block__title-left,
.s-block:has(.loot-title-group) .s-slider-block__title-left {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-bottom: 6px;
}

section[component-id="1970949201"] .s-slider-block__display-all,
.s-block:has(.loot-title-group) .s-slider-block__display-all {
  color: var(--loot-ink);
  font-family: var(--loot-font);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: color 0.2s ease, transform 0.2s ease;
}

section[component-id="1970949201"] .s-slider-block__display-all:hover,
.s-block:has(.loot-title-group) .s-slider-block__display-all:hover {
  color: var(--loot-gold);
  transform: translateX(-2px);
}

section[component-id="1970949201"] .s-slider-nav-arrow,
.s-block:has(.loot-title-group) .s-slider-nav-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid #e7e7e7;
  background: #fff;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

section[component-id="1970949201"] .s-slider-nav-arrow:hover,
.s-block:has(.loot-title-group) .s-slider-nav-arrow:hover {
  background: var(--loot-gold);
  border-color: var(--loot-gold);
  color: #fff;
}

section[component-id="1970949201"] .s-slider-nav-arrow svg,
.s-block:has(.loot-title-group) .s-slider-nav-arrow svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

@media (max-width: 767px) {
  section[component-id="1970949201"],
  section[component-id="952875993"],
  section[component-id="2129469171"],
  #best-offers-2-slider,
  #best-offers-3-slider,
  #best-offers-4-slider {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  section[component-id="1970949201"] .s-slider-block__title,
  .s-block:has(.loot-title-group) .s-slider-block__title {
    margin-bottom: 16px;
  }

  section[component-id="1970949201"] .s-slider-block__display-all,
  .s-block:has(.loot-title-group) .s-slider-block__display-all {
    font-size: 11px;
  }

  section[component-id="1970949201"] .s-slider-nav-arrow,
  .s-block:has(.loot-title-group) .s-slider-nav-arrow {
    width: 30px;
    height: 30px;
  }

  section[component-id="1970949201"] .s-slider-nav-arrow svg,
  .s-block:has(.loot-title-group) .s-slider-nav-arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* ==========================================================
   Slider 4 Centered Title
   ========================================================== */

#best-offers-4-slider .s-slider-block__title,
section[component-id="2129469171"] .s-slider-block__title {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  margin-bottom: 32px;
  position: relative;
}

#best-offers-4-slider .s-slider-block__title-right,
section[component-id="2129469171"] .s-slider-block__title-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  width: 100%;
}

#best-offers-4-slider .s-slider-block__title-left,
section[component-id="2129469171"] .s-slider-block__title-left {
  position: absolute;
  left: 0;
  bottom: 0;
}

@media (max-width: 767px) {
  #best-offers-4-slider .s-slider-block__title,
  section[component-id="2129469171"] .s-slider-block__title {
    margin-bottom: 20px;
  }

  #best-offers-4-slider .s-slider-block__title-left,
  section[component-id="2129469171"] .s-slider-block__title-left {
    position: static;
    margin-top: 12px;
  }
}

/* ==========================================================
   Product Cards
   ========================================================== */

.s-products-slider-card,
.s-products-slider-card .hydrated,
.s-product-card-fit-height {
  overflow: visible !important;
}

custom-salla-product-card,
.s-product-card-entry {
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border-radius: 17.161px !important;
  border: 1.073px solid #ecebe6 !important;
  background: #fff !important;
  box-shadow: 0 10.726px 30.032px 0 rgba(20, 20, 15, 0.07) !important;
  position: relative !important;
  overflow: visible !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease !important;
}

custom-salla-product-card:hover,
.s-product-card-entry:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px 0 rgba(20, 20, 15, 0.1) !important;
}

.s-product-card-image {
  height: 240px !important;
  min-height: 240px !important;
  background-color: #fff !important;
  border-radius: 17.161px 17.161px 0 0 !important;
  overflow: hidden !important;
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 16px 16px 8px !important;
  box-sizing: border-box !important;
}

.s-product-card-image a {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 100% !important;
  background: transparent !important;
}

.s-product-card-image-cover,
.s-product-card-image img {
  max-height: 100% !important;
  max-width: 100% !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  background-color: #fff !important;
  margin: auto !important;
}

.s-product-card-wishlist-btn,
salla-button.s-product-card-wishlist-btn {
  display: none !important;
}

.s-product-card-content {
  display: flex !important;
  flex-direction: column !important;
  flex-grow: 1 !important;
  justify-content: flex-start !important;
  padding: 10px 16px 16px !important;
  background: transparent !important;
  box-sizing: border-box !important;
}

.s-product-card-content-main {
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
}

.s-product-card-content-sub {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-start !important;
  margin-top: 4px !important;
  margin-bottom: 0 !important;
}

.s-product-card-content-title,
.s-product-card-content-title a {
  overflow: hidden !important;
  color: #161616 !important;
  text-align: right !important;
  text-overflow: ellipsis !important;
  font-family: var(--loot-font) !important;
  font-size: 17.161px !important;
  font-weight: 700 !important;
  line-height: 22px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  text-decoration: none !important;
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
}

.s-product-card-price {
  color: #ce0505 !important;
  text-align: right !important;
  font-family: var(--loot-font) !important;
  font-size: 17.161px !important;
  font-weight: 700 !important;
  line-height: normal !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.s-product-card-price i,
.s-product-card-price [class*="sicon-"] {
  font-family: 'sallaicons' !important;
  font-weight: normal !important;
  font-size: 14px !important;
  color: #ce0505 !important;
  display: inline-block !important;
}

.s-product-card-content-footer {
  width: 100% !important;
  margin-top: auto !important;
  padding-top: 14px !important;
}

.s-product-card-content-footer .s-button-element {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 3.5px !important;
  border-radius: 15.016px !important;
  background: var(--loot-ink) !important;
  border: none !important;
  box-shadow: 0 4.388px 10.238px 0 rgba(20, 20, 15, 0.18) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  transition: transform 0.2s ease, opacity 0.2s ease !important;
}

.s-product-card-content-footer .s-button-element:hover {
  opacity: 0.95;
  transform: translateY(-1px);
}

.s-product-card-content-footer .s-button-text {
  display: flex !important;
  flex-direction: row-reverse !important;
  justify-content: space-between !important;
  align-items: center !important;
  width: 100% !important;
  height: 100% !important;
  padding-inline: 16px 2px !important;
  box-sizing: border-box !important;
}

.s-product-card-content-footer .s-button-text>span {
  color: #fff !important;
  font-family: var(--loot-font) !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
}

.s-product-card-content-footer .s-button-text i {
  display: flex !important;
  width: 40.758px !important;
  height: 40.758px !important;
  justify-content: center !important;
  align-items: center !important;
  border-radius: 11.798px !important;
  background: var(--loot-gold) !important;
  color: #111 !important;
  font-size: 18px !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

@media (max-width: 767px) {
  custom-salla-product-card,
  .s-product-card-entry {
    border-radius: 12px !important;
  }

  .s-product-card-image {
    height: 180px !important;
    min-height: 180px !important;
    padding: 10px 10px 4px !important;
    border-radius: 12px 12px 0 0 !important;
  }

  .s-product-card-content {
    padding: 8px 10px 12px !important;
  }

  .s-product-card-content-title,
  .s-product-card-content-title a {
    font-size: 12px !important;
    line-height: 16px !important;
    min-height: 32px !important;
    max-height: 32px !important;
  }

  .s-product-card-price {
    font-size: 12px !important;
  }

  .s-product-card-content-footer {
    padding-top: 8px !important;
  }

  .s-product-card-content-footer .s-button-element {
    height: 36px !important;
    min-height: 36px !important;
    border-radius: 10.238px !important;
    padding: 4px !important;
  }

  .s-product-card-content-footer .s-button-text {
    padding-inline: 10px 1px !important;
  }

  .s-product-card-content-footer .s-button-text>span {
    font-size: 11px !important;
  }

  .s-product-card-content-footer .s-button-text i {
    width: 27.79px !important;
    height: 27.79px !important;
    border-radius: 8.044px !important;
    font-size: 13px !important;
  }
}

/* ==========================================================
   Customer Testimonials
   ========================================================== */

.s-block--testimonials,
.s-block--custom-testimonials {
  margin-top: 48px;
  margin-bottom: 48px;
}

.s-reviews-header-wrapper {
  display: flex;
  justify-content: flex-start;
  align-items: flex-end;
  margin-bottom: 28px;
  width: 100%;
}

.s-reviews-container .testimonials-slider {
  overflow: visible !important;
}

.s-reviews-swiper-slide {
  height: auto !important;
}

.s-reviews-testimonial {
  display: flex !important;
  min-height: 225px !important;
  padding: 26px 27px !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  align-items: flex-start !important;
  box-sizing: border-box !important;
  border-radius: 17px !important;
  border: 0.8px solid #e1e1e1 !important;
  background: #fff !important;
  box-shadow: 0 8px 30px 0 rgba(34, 79, 104, 0.03) !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100% !important;
}

.s-reviews-testimonial:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 36px 0 rgba(34, 79, 104, 0.06) !important;
}

.s-reviews-testimonial__inner {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  height: 100% !important;
  justify-content: space-between !important;
  gap: 16px !important;
  position: relative !important;
}

.s-reviews-testimonial__icon {
  display: none !important;
}

.s-reviews-testimonial__text {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  gap: 16px !important;
}

.s-reviews-testimonial__rating {
  order: 1 !important;
  display: flex !important;
  align-items: center !important;
  margin: 0 !important;
}

.s-reviews-testimonial__rating salla-rating-stars,
.s-reviews-testimonial__rating .s-rating-stars-wrapper {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  letter-spacing: 2px !important;
}

.s-reviews-testimonial__rating svg,
.s-reviews-testimonial__rating .s-rating-stars-btn-star svg,
.s-reviews-testimonial__rating .s-rating-stars-btn-star {
  fill: #ffb22b !important;
  color: #ffb22b !important;
  width: 24px !important;
  height: 24px !important;
  font-size: 24px !important;
  line-height: 27px !important;
}

.s-reviews-testimonial__text > p {
  order: 2 !important;
  margin: 0 !important;
  color: #4c4c4c !important;
  text-align: right !important;
  font-family: var(--loot-font) !important;
  font-size: 20px !important;
  font-weight: 300 !important;
  line-height: 28.6px !important;
}

.s-reviews-testimonial__name_wrapper {
  order: 3 !important;
  display: flex !important;
  flex-direction: row-reverse !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 12px !important;
  margin-top: auto !important;
  width: 100% !important;
}

.s-reviews-testimonial__avatar {
  width: 59px !important;
  height: 59px !important;
  min-width: 59px !important;
  border-radius: 50% !important;
  overflow: hidden !important;
  margin: 0 !important;
  display: grid !important;
  place-items: center !important;
}

.s-reviews-testimonial__avatar img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  border-radius: 50% !important;
}

.s-reviews-testimonial__info {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  text-align: right !important;
  gap: 2px !important;
}

.s-reviews-testimonial__info h2 {
  margin: 0 !important;
  color: #171717 !important;
  text-align: right !important;
  font-family: var(--loot-font) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 19.2px !important;
}

@media (max-width: 767px) {
  .s-block--testimonials,
  .s-block--custom-testimonials {
    margin-top: 28px;
    margin-bottom: 28px;
  }

  .s-reviews-header-wrapper {
    margin-bottom: 16px;
  }

  .s-reviews-testimonial {
    width: 100% !important;
    max-width: 337.333px !important;
    min-height: 155.61px !important;
    padding: 15.203px 16.098px !important;
    border-radius: 14.309px !important;
    border: 0.715px solid #e5e5e5 !important;
    box-shadow: 0 3.577px 16.098px 0 rgba(0, 0, 0, 0.02) !important;
  }

  .s-reviews-testimonial__inner {
    gap: 10px !important;
  }

  .s-reviews-testimonial__text {
    gap: 10px !important;
  }

  .s-reviews-testimonial__rating salla-rating-stars,
  .s-reviews-testimonial__rating .s-rating-stars-wrapper {
    letter-spacing: 1.789px !important;
  }

  .s-reviews-testimonial__rating svg,
  .s-reviews-testimonial__rating .s-rating-stars-btn-star svg,
  .s-reviews-testimonial__rating .s-rating-stars-btn-star {
    width: 18px !important;
    height: 18px !important;
    font-size: 18px !important;
    line-height: 20px !important;
  }

  .s-reviews-testimonial__text > p {
    font-size: 12px !important;
    line-height: 19px !important;
  }

  .s-reviews-testimonial__avatar {
    width: 37px !important;
    height: 37px !important;
    min-width: 37px !important;
  }

  .s-reviews-testimonial__name_wrapper {
    gap: 8px !important;
  }

  .s-reviews-testimonial__info h2 {
    font-size: 11px !important;
    line-height: 16px !important;
  }
}

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

.store-footer,
.store-footer__inner,
.store-footer__sub-footer {
  background-color: #111 !important;
}

.store-footer__inner {
  border-bottom: none !important;
}

.store-footer .loot-footer-logo,
.store-footer a.flex svg,
.store-footer a.flex img {
  display: inline-block;
  width: 100%;
  max-width: 150px !important;
  height: auto;
  vertical-align: middle;
  margin-bottom: 8px !important;
}

.s-contacts-icon,
.store-footer .s-contacts-icon {
  background-color: #111 !important;
  border: none !important;
}

.copyright-text,
.copyright-text p {
  color: #fff !important;
  font-weight: 300 !important;
}

@media (max-width: 767px) {
  .store-footer .loot-footer-logo,
  .store-footer a.flex svg,
  .store-footer a.flex img {
    max-width: 130px !important;
  }
}
/* ==========================================================
   Hero banner — reserve its real size before the (lazy) image loads,
   so the page doesn't jump down when it arrives (CLS).
   If the banner image is replaced, update these ratios to its size.
   ========================================================== */

.s-block--fixed-banner .banner--fixed img {
  width: 100%;
  aspect-ratio: 1440 / 621;
}

@media (max-width: 767px) {
  .s-block--fixed-banner .banner--fixed img {
    aspect-ratio: 440 / 569;
  }
}
/* Top ticker (#loot-ticker, built by loot-store.js) — keep its 36px free
   until the script inserts it, so the header doesn't get pushed down. */
.app-inner:not(:has(> #loot-ticker)) > header.store-header {
  margin-top: 36px;
}
/* Header logo — Salla renders it with width/height="100%", so the browser
   can't reserve its space and the whole page jumps when it loads (CLS).
   243×82 is the logo file's size; update if the logo changes. */
.navbar-brand img {
  width: 100px;
  height: auto;
  aspect-ratio: 243 / 82;
}

@media (min-width: 768px) {
  .navbar-brand img {
    width: 120px;
  }
}