/* =========================================================
   SALLA THEME KIT — THEME RAED
   Reusable CSS for multiple Salla stores.
   Version: 8.0 — native cart-safe + persistent page headings.

   Brand values are injected by salla-theme-kit.js.
   Do not append old overrides under this file.
========================================================= */

:root {
  --sk-primary: #432f66;
  --sk-secondary: #6b578e;
  --sk-text: #232323;
  --sk-muted-text: #4b4050;
  --sk-soft-bg: #f7f7f7;
  --sk-soft-border: #dedad7;
  --sk-container: 1200px;
  --sk-banner-ratio: 1440 / 596;
  --sk-product-image-ratio: 1 / 1.08;

  --sk-home-cols-desktop: 4;
  --sk-home-cols-tablet: 3;
  --sk-home-cols-mobile: 2;

  --sk-listing-cols-wide: 4;
  --sk-listing-cols-desktop: 3;
  --sk-listing-cols-tablet: 2;
  --sk-listing-cols-mobile: 2;
}

html[data-salla-kit="true"] *,
html[data-salla-kit="true"] *::before,
html[data-salla-kit="true"] *::after {
  box-sizing: border-box;
}

/* =========================================================
   TOP HEADER
========================================================= */

@media (min-width: 768px) {
  html[data-sk-header="true"] .top-navbar {
    min-height: 42px !important;
    color: #393330 !important;
    background: var(--sk-soft-bg) !important;
    border-bottom: 1px solid #e5e1de !important;
  }

  html[data-sk-header="true"] .top-navbar > .container,
  html[data-sk-header="true"] .top-navbar .container > .flex-1 {
    display: flex !important;
    align-items: center !important;
    min-width: 0 !important;
  }

  html[data-sk-header="true"] .top-navbar > .container {
    min-height: 42px !important;
    gap: 16px !important;
  }

  html[data-sk-header="true"] .top-navbar .container > .flex-1 {
    flex: 1 1 auto !important;
    gap: 14px !important;
  }

  html[data-sk-header="true"] .top-navbar salla-menu[topnav],
  html[data-sk-header="true"] .top-navbar salla-contacts[is-header] {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
  }

  html[data-sk-header="true"] .top-navbar salla-contacts[is-header] {
    color: #393330 !important;
    font-size: 12px !important;
  }

  html[data-sk-header="true"] .top-navbar .header-search {
    flex: 1 1 0 !important;
    width: auto !important;
    min-width: 220px !important;
    max-width: none !important;
    margin-inline: 10px !important;
  }

  html[data-sk-header="true"] .top-navbar .header-search salla-search,
  html[data-sk-header="true"] .top-navbar .header-search .s-search-modal,
  html[data-sk-header="true"] .top-navbar .header-search .s-search-container,
  html[data-sk-header="true"] .top-navbar .header-search .s-search-input-wrapper,
  html[data-sk-header="true"] .top-navbar .header-search .s-search-input-wrap {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
  }

  html[data-sk-header="true"] .top-navbar .header-search .s-search-input {
    width: 100% !important;
    height: 36px !important;
    padding: 0 42px 0 14px !important;
    color: #393330 !important;
    background: #fff !important;
    border: 1px solid var(--sk-soft-border) !important;
    border-radius: 10px !important;
    box-shadow: none !important;
    direction: rtl !important;
    text-align: right !important;
    font-size: 13px !important;
  }

  html[data-sk-header="true"] .top-navbar .header-buttons {
    position: relative !important;
    display: block !important;
    flex: 0 0 88px !important;
    width: 88px !important;
    height: 32px !important;
    margin: 0 !important;
    padding: 0 !important;
    background:
      linear-gradient(#ded9d5, #ded9d5) 43px center / 1px 18px no-repeat,
      #fff !important;
    border: 1px solid #efebe8 !important;
    border-radius: 9px !important;
    overflow: hidden !important;
    pointer-events: none !important;
  }

  html[data-sk-header="true"] .top-navbar .header-buttons > * {
    display: none !important;
  }

  html[data-sk-header="true"] .top-navbar .header-buttons::before {
    content: "ريال";
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #393330;
    font-size: 12px;
  }

  html[data-sk-header="true"] .top-navbar .header-buttons::after {
    content: "🇸🇦";
    position: absolute;
    top: 50%;
    right: 9px;
    transform: translateY(-52%);
    font-size: 18px;
    line-height: 1;
  }
}

@media (min-width: 1024px) {
  html[data-sk-header="true"] #mainnav .container > .flex {
    position: relative !important;
    min-height: 76px !important;
    align-items: center !important;
  }

  html[data-sk-header="true"] #mainnav .navbar-brand {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex: 0 0 105px !important;
    width: 105px !important;
    height: 68px !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  html[data-sk-header="true"] #mainnav .navbar-brand img {
    width: 100% !important;
    height: 100% !important;
    max-width: 105px !important;
    max-height: 68px !important;
    object-fit: contain !important;
  }

  html[data-sk-header="true"] #mainnav custom-main-menu {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    width: max-content !important;
    max-width: calc(100% - 300px) !important;
    margin: 0 !important;
    z-index: 3 !important;
  }

  html[data-sk-header="true"] #mainnav custom-main-menu ul {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    margin: 0 !important;
  }

  html[data-sk-header="true"] #mainnav custom-main-menu a {
    font-size: 13px !important;
    font-weight: 500 !important;
    white-space: nowrap !important;
  }
}

/* =========================================================
   FOOTER
========================================================= */

html[data-sk-footer="true"] .store-footer {
  position: relative !important;
  color: #fff !important;
  background: linear-gradient(
    180deg,
    var(--sk-secondary) 0%,
    var(--sk-primary) 100%
  ) !important;
  border: 0 !important;
  overflow: hidden !important;
}

html[data-sk-footer="true"] .store-footer__inner,
html[data-sk-footer="true"] .store-footer > .container {
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  outline: 0 !important;
}

html[data-sk-footer="true"] .store-footer__inner {
  padding: 42px 0 28px !important;
}

html[data-sk-footer="true"] .sk-footer-grid {
  width: 100% !important;
  max-width: 1240px !important;
  margin-inline: auto !important;
}

@media (min-width: 1024px) {
  html[data-sk-footer="true"] .sk-footer-grid {
    display: grid !important;
    grid-template-columns:
      minmax(300px, 1.8fr)
      minmax(170px, 1fr)
      minmax(210px, 1.15fr)
      minmax(140px, 0.75fr) !important;
    align-items: start !important;
    gap: 68px !important;
    padding-inline: 36px !important;
  }

  html[data-sk-footer="true"] .sk-footer-grid > * {
    grid-column: auto !important;
    width: auto !important;
    margin: 0 !important;
    padding: 0 !important;
  }
}

html[data-sk-footer="true"] .store-footer h3 {
  margin: 0 0 16px !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 700 !important;
}

html[data-sk-footer="true"] .store-footer p,
html[data-sk-footer="true"] .store-footer span,
html[data-sk-footer="true"] .store-footer a,
html[data-sk-footer="true"] .store-footer b {
  color: rgba(255, 255, 255, 0.94) !important;
}

html[data-sk-footer="true"] .sk-footer-logo {
  display: block !important;
  width: 72px !important;
  height: 72px !important;
  object-fit: contain !important;
  filter: brightness(0) invert(1) !important;
}

html[data-sk-footer="true"] .sk-footer-store-name {
  display: none !important;
}

html[data-sk-footer="true"] .store-footer salla-social {
  display: none !important;
}

html[data-sk-footer="true"] .sk-footer-social-column salla-social,
html[data-sk-footer="true"] .sk-footer-social-column salla-social > div,
html[data-sk-footer="true"] .sk-footer-social-column salla-social ul,
html[data-sk-footer="true"] .sk-footer-social-column salla-social [class*="social"] {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: 100% !important;
  gap: 9px !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[data-sk-footer="true"] .sk-footer-social-column salla-social a {
  display: flex !important;
  align-items: center !important;
  width: max-content !important;
  min-height: 24px !important;
  gap: 8px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #fff !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

html[data-sk-footer="true"] .sk-footer-social-column a[href*="instagram"]::after {
  content: "انستقرام";
  white-space: nowrap;
}

html[data-sk-footer="true"] .sk-footer-social-column a[href*="tiktok"]::after {
  content: "تيك توك";
  white-space: nowrap;
}

html[data-sk-footer="true"] .sk-footer-social-column a[href*="snapchat"]::after {
  content: "سناب شات";
  white-space: nowrap;
}

html[data-sk-footer="true"] .store-footer > .container {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  max-width: 1240px !important;
  min-height: 48px !important;
  margin-inline: auto !important;
  padding: 12px 36px 18px !important;
}

html[data-sk-footer="true"] .store-footer .copyright-text {
  display: none !important;
}

html[data-sk-footer="true"] .store-footer salla-payments {
  display: block !important;
  margin-right: auto !important;
  margin-left: 0 !important;
}

@media (max-width: 1023px) {
  html[data-sk-footer="true"] .sk-footer-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 34px 28px !important;
    padding-inline: 28px !important;
  }
}

@media (max-width: 767px) {
  html[data-sk-footer="true"] .sk-footer-grid {
    grid-template-columns: 1fr !important;
    gap: 28px !important;
    padding-inline: 22px !important;
  }

  html[data-sk-footer="true"] .store-footer > .container {
    justify-content: center !important;
    padding: 14px 22px 22px !important;
  }

  html[data-sk-footer="true"] .store-footer salla-payments {
    margin-inline: auto !important;
  }
}

/* =========================================================
   HERO AND FEATURE BANNERS
========================================================= */

html[data-sk-banners="true"] .sk-banner-section,
html[data-sk-banners="true"] .sk-banner-section .swiper,
html[data-sk-banners="true"] .sk-banner-section .swiper-wrapper,
html[data-sk-banners="true"] .sk-banner-section .swiper-slide {
  border-radius: 0 !important;
  box-shadow: none !important;
}

html[data-sk-banners="true"] .sk-banner-section .swiper,
html[data-sk-banners="true"] .sk-banner-section .swiper-wrapper,
html[data-sk-banners="true"] .sk-banner-section .swiper-slide {
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: var(--sk-banner-ratio) !important;
  overflow: hidden !important;
}

html[data-sk-banners="true"] .sk-banner-section .swiper-slide,
html[data-sk-banners="true"] .sk-banner-section .overlay-bg {
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
}

html[data-sk-banners="true"] .sk-banner-section .swiper-slide img,
html[data-sk-banners="true"] .sk-banner-section .swiper-slide picture img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
  filter: none !important;
}

html[data-sk-banners="true"] .sk-banner-section .overlay-bg::before,
html[data-sk-banners="true"] .sk-banner-section .overlay-bg::after,
html[data-sk-banners="true"] .sk-banner-section .swiper-slide::before,
html[data-sk-banners="true"] .sk-banner-section .swiper-slide::after {
  background: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
}

html[data-sk-banners="true"] .sk-main-hero {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
}

html[data-sk-banners="true"] .sk-feature-banner {
  width: calc(100% - 40px) !important;
  max-width: var(--sk-container) !important;
  margin: 30px auto !important;
  padding: 0 !important;
  overflow: hidden !important;
}

html[data-sk-banners="true"] .sk-banner-section .home-slider__content {
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  z-index: 10 !important;
}

html[data-sk-banners="true"] .sk-banner-section .home-slider__content > div {
  position: absolute !important;
  top: 50% !important;
  right: clamp(36px, 7vw, 100px) !important;
  left: auto !important;
  transform: translateY(-50%) !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  width: min(42%, 520px) !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: right !important;
}

html[data-sk-banners="true"] .sk-banner-title {
  width: 100% !important;
  margin: 0 0 12px !important;
  padding: 0 !important;
  font-size: clamp(38px, 4vw, 60px) !important;
  font-weight: 800 !important;
  line-height: 1.08 !important;
  text-align: right !important;
  text-shadow: none !important;
}

html[data-sk-banners="true"] .sk-feature-banner .sk-banner-title {
  font-size: clamp(34px, 3.4vw, 48px) !important;
}

html[data-sk-banners="true"] .sk-banner-title-line {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  line-height: inherit !important;
}

html[data-sk-banners="true"] .sk-banner-title-line--dark {
  color: var(--sk-text) !important;
}

html[data-sk-banners="true"] .sk-banner-title-line--accent {
  color: var(--sk-primary) !important;
}

html[data-sk-banners="true"] .sk-banner-section .home-slider__content p,
html[data-sk-banners="true"] .sk-banner-section .home-slider__content .description,
html[data-sk-banners="true"] .sk-banner-section .home-slider__content [class*="description"] {
  display: block !important;
  width: 100% !important;
  max-width: 500px !important;
  margin: 0 0 18px !important;
  color: #373237 !important;
  font-size: 16px !important;
  font-weight: 400 !important;
  line-height: 1.75 !important;
  text-align: right !important;
  overflow: visible !important;
  opacity: 1 !important;
  text-shadow: none !important;
  -webkit-line-clamp: unset !important;
  line-clamp: unset !important;
}

html[data-sk-banners="true"] .sk-banner-button {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: auto !important;
  min-width: 180px !important;
  height: 46px !important;
  margin: 0 !important;
  padding: 0 24px !important;
  color: #fff !important;
  background: linear-gradient(
    360deg,
    var(--sk-primary) -25.96%,
    var(--sk-secondary) 100%
  ) !important;
  border: 0 !important;
  border-radius: 10px !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  pointer-events: auto !important;
}

@media (max-width: 1023px) {
  html[data-sk-banners="true"] .sk-banner-title {
    font-size: clamp(28px, 4.8vw, 42px) !important;
  }

  html[data-sk-banners="true"] .sk-banner-section .home-slider__content p,
  html[data-sk-banners="true"] .sk-banner-section .home-slider__content .description,
  html[data-sk-banners="true"] .sk-banner-section .home-slider__content [class*="description"] {
    font-size: 13px !important;
    line-height: 1.6 !important;
  }
}

@media (max-width: 767px) {
  html[data-sk-banners="true"] .sk-feature-banner {
    width: calc(100% - 24px) !important;
    margin-block: 16px !important;
  }

  html[data-sk-banners="true"] .sk-banner-section .home-slider__content > div {
    right: 12px !important;
    width: 58% !important;
    max-width: 225px !important;
  }

  html[data-sk-banners="true"] .sk-banner-title,
  html[data-sk-banners="true"] .sk-feature-banner .sk-banner-title {
    margin-bottom: 5px !important;
    font-size: clamp(18px, 5.3vw, 24px) !important;
    line-height: 1.04 !important;
  }

  html[data-sk-banners="true"] .sk-banner-section .home-slider__content p,
  html[data-sk-banners="true"] .sk-banner-section .home-slider__content .description,
  html[data-sk-banners="true"] .sk-banner-section .home-slider__content [class*="description"] {
    margin-bottom: 7px !important;
    font-size: clamp(8px, 2.4vw, 10px) !important;
    line-height: 1.4 !important;
  }

  html[data-sk-banners="true"] .sk-banner-button {
    min-width: 108px !important;
    height: 31px !important;
    padding-inline: 11px !important;
    border-radius: 7px !important;
    font-size: 9px !important;
  }
}

/* =========================================================
   ENHANCED CATEGORY IMAGE GRID
========================================================= */

html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) {
  width: 100% !important;
  max-width: var(--sk-container) !important;
  margin: 30px auto 50px !important;
  padding-inline: 20px !important;
}

html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry {
  position: relative !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  background-size: contain !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-color: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry img,
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry picture img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  filter: none !important;
  transform: none !important;
}

html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry__text,
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner__title,
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner__description,
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .text-with-border {
  display: none !important;
}

/* Remove every theme overlay from the category image tiles. */
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry::before,
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry::after,
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry > a::before,
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry > a::after {
  content: none !important;
  display: none !important;
  background: transparent !important;
  background-image: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry [class*="overlay"],
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry [class*="gradient"] {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
  background: transparent !important;
  background-image: none !important;
  filter: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry,
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry > a,
html[data-sk-category-tiles="true"] .s-block--banners:has(
  > .grid > .banner-entry.h-lg-banner:not(.square-photos)
) .banner-entry img {
  opacity: 1 !important;
  filter: none !important;
  -webkit-filter: none !important;
  mix-blend-mode: normal !important;
}

@media (min-width: 768px) {
  html[data-sk-category-tiles="true"] .s-block--banners:has(
    > .grid > .banner-entry.h-lg-banner:not(.square-photos)
  ) > .grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    grid-template-rows: repeat(2, minmax(0, 1fr)) !important;
    width: 100% !important;
    aspect-ratio: 3 / 2 !important;
    gap: 14px !important;
    direction: ltr !important;
  }

  html[data-sk-category-tiles="true"] .s-block--banners:has(
    > .grid > .banner-entry.h-lg-banner:not(.square-photos)
  ) > .grid > .banner-entry:nth-child(1) {
    grid-column: 1 !important;
    grid-row: 1 / 3 !important;
  }

  html[data-sk-category-tiles="true"] .s-block--banners:has(
    > .grid > .banner-entry.h-lg-banner:not(.square-photos)
  ) > .grid > .banner-entry:nth-child(2) {
    grid-column: 2 !important;
    grid-row: 1 !important;
  }

  html[data-sk-category-tiles="true"] .s-block--banners:has(
    > .grid > .banner-entry.h-lg-banner:not(.square-photos)
  ) > .grid > .banner-entry:nth-child(3) {
    grid-column: 2 !important;
    grid-row: 2 !important;
  }
}

@media (max-width: 767px) {
  html[data-sk-category-tiles="true"] .s-block--banners:has(
    > .grid > .banner-entry.h-lg-banner:not(.square-photos)
  ) {
    margin: 18px auto 35px !important;
    padding-inline: 12px !important;
  }

  html[data-sk-category-tiles="true"] .s-block--banners:has(
    > .grid > .banner-entry.h-lg-banner:not(.square-photos)
  ) > .grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }

  html[data-sk-category-tiles="true"] .s-block--banners:has(
    > .grid > .banner-entry.h-lg-banner:not(.square-photos)
  ) > .grid > .banner-entry:first-child {
    grid-column: 1 / -1 !important;
    aspect-ratio: 16 / 10 !important;
  }

  html[data-sk-category-tiles="true"] .s-block--banners:has(
    > .grid > .banner-entry.h-lg-banner:not(.square-photos)
  ) > .grid > .banner-entry:nth-child(2),
  html[data-sk-category-tiles="true"] .s-block--banners:has(
    > .grid > .banner-entry.h-lg-banner:not(.square-photos)
  ) > .grid > .banner-entry:nth-child(3) {
    aspect-ratio: 4 / 3 !important;
  }
}

/* =========================================================
   PRODUCT GRIDS — NATIVE SALLA MARKUP
   CSS only: no product-card DOM manipulation.
========================================================= */

html[data-sk-product-cards="true"]
salla-products-list .s-products-list-wrapper {
  display: grid !important;
  grid-auto-rows: auto !important;
  width: 100% !important;
  align-items: start !important;
  gap: 18px !important;
}

html[data-sk-product-cards="true"][data-sk-page="home"]
salla-products-list .s-products-list-wrapper {
  grid-template-columns: repeat(
    var(--sk-home-cols-desktop),
    minmax(0, 1fr)
  ) !important;
}

html[data-sk-product-cards="true"]:is(
  [data-sk-page="category"],
  [data-sk-page="listing"]
) salla-products-list .s-products-list-wrapper {
  grid-template-columns: repeat(
    var(--sk-listing-cols-desktop),
    minmax(0, 1fr)
  ) !important;
}

@media (min-width: 1400px) {
  html[data-sk-product-cards="true"]:is(
    [data-sk-page="category"],
    [data-sk-page="listing"]
  ) salla-products-list .s-products-list-wrapper {
    grid-template-columns: repeat(
      var(--sk-listing-cols-wide),
      minmax(0, 1fr)
    ) !important;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  html[data-sk-product-cards="true"][data-sk-page="home"]
  salla-products-list .s-products-list-wrapper {
    grid-template-columns: repeat(
      var(--sk-home-cols-tablet),
      minmax(0, 1fr)
    ) !important;
  }

  html[data-sk-product-cards="true"]:is(
    [data-sk-page="category"],
    [data-sk-page="listing"]
  ) salla-products-list .s-products-list-wrapper {
    grid-template-columns: repeat(
      var(--sk-listing-cols-tablet),
      minmax(0, 1fr)
    ) !important;
  }
}

@media (max-width: 767px) {
  html[data-sk-product-cards="true"]
  salla-products-list .s-products-list-wrapper {
    gap: 10px !important;
  }

  html[data-sk-product-cards="true"][data-sk-page="home"]
  salla-products-list .s-products-list-wrapper {
    grid-template-columns: repeat(
      var(--sk-home-cols-mobile),
      minmax(0, 1fr)
    ) !important;
  }

  html[data-sk-product-cards="true"]:is(
    [data-sk-page="category"],
    [data-sk-page="listing"]
  ) salla-products-list .s-products-list-wrapper {
    grid-template-columns: repeat(
      var(--sk-listing-cols-mobile),
      minmax(0, 1fr)
    ) !important;
  }
}

/* =========================================================
   PRODUCT CARD — NATIVE SALLA CONTROLS
========================================================= */

html[data-sk-product-cards="true"] salla-product-card,
html[data-sk-product-cards="true"] .s-product-card-entry {
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  min-height: 0 !important;
}

html[data-sk-product-cards="true"] .s-product-card-entry {
  position: relative !important;
  isolation: isolate !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  background: #fff !important;
  border: 1px solid #ece8ef !important;
  border-radius: 8px !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
  overflow: hidden !important;
  transform: none !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-image {
  position: relative !important;
  z-index: 1 !important;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: var(--sk-product-image-ratio) !important;
  margin: 0 !important;
  background: #f7f5f3 !important;
  border-radius: 0 !important;
  overflow: hidden !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-image img,
html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-image picture img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center !important;
  transform: none !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-content {
  display: flex !important;
  flex: 0 0 auto !important;
  flex-direction: column !important;
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px 11px 11px !important;
  background: #fff !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-content-title,
html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-content-title a {
  position: relative !important;
  z-index: 2 !important;
  display: -webkit-box !important;
  min-height: 0 !important;
  max-height: 39px !important;
  margin: 0 0 2px !important;
  padding: 0 !important;
  color: var(--sk-text) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.45 !important;
  text-align: right !important;
  text-decoration: none !important;
  overflow: hidden !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-content-sub,
html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-price,
html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-sale-price,
html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-regular-price {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.35 !important;
  text-align: right !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-price,
html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-sale-price {
  color: var(--sk-primary) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-regular-price {
  color: #999 !important;
  font-size: 11px !important;
}

/* Native action row: styling only, no moving elements. */
html[data-sk-product-cards="true"]
.s-product-card-entry :is(
  .s-product-card-content-footer,
  .s-product-card-actions
) {
  position: relative !important;
  z-index: 30 !important;
  display: grid !important;
  grid-template-columns: 28px minmax(0, 1fr) !important;
  align-items: center !important;
  direction: ltr !important;
  width: 100% !important;
  gap: 7px !important;
  margin-top: 9px !important;
  padding-top: 0 !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry :is(
  .s-product-card-content-footer,
  .s-product-card-actions
) :is(
  salla-add-product-button,
  .s-product-card-add-button
) {
  grid-column: 2 !important;
  grid-row: 1 !important;
  position: relative !important;
  z-index: 32 !important;
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry :is(
  .s-product-card-content-footer,
  .s-product-card-actions
) :is(
  salla-add-product-button,
  .s-product-card-add-button
) .s-button-element {
  position: relative !important;
  z-index: 33 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 37px !important;
  gap: 7px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  color: #fff !important;
  background: linear-gradient(
    360deg,
    var(--sk-primary) -25.96%,
    var(--sk-secondary) 100%
  ) !important;
  border: 0 !important;
  border-radius: 6px !important;
  box-shadow: none !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  cursor: pointer !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry :is(
  .s-product-card-content-footer,
  .s-product-card-actions
) :is(
  salla-add-product-button,
  .s-product-card-add-button
) .s-button-element * {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
}

html[data-sk-product-cards="true"]
.s-product-card-entry :is(
  .s-product-card-content-footer,
  .s-product-card-actions
) .s-product-card-wishlist-btn {
  grid-column: 1 !important;
  grid-row: 1 !important;
  position: relative !important;
  z-index: 32 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 37px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #b7b1bb !important;
  background: transparent !important;
  background-image: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  cursor: pointer !important;
      left: -1px;
    top: 1px;
}

html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-wishlist-btn svg,
html[data-sk-product-cards="true"]
.s-product-card-entry .s-product-card-wishlist-btn i {
  width: 19px !important;
  height: 19px !important;
  margin: 0 !important;
  color: inherit !important;
  fill: transparent !important;
  stroke: currentColor !important;
}

/* Decorative card layers never receive clicks. */
html[data-sk-product-cards="true"] .s-product-card-entry::before,
html[data-sk-product-cards="true"] .s-product-card-entry::after,
html[data-sk-product-cards="true"]
.s-product-card-entry :is(
  .s-product-card-content-footer,
  .s-product-card-actions
)::before,
html[data-sk-product-cards="true"]
.s-product-card-entry :is(
  .s-product-card-content-footer,
  .s-product-card-actions
)::after {
  pointer-events: none !important;
}

html[data-sk-product-cards="true"] .s-product-card-entry:hover,
html[data-sk-product-cards="true"] .s-product-card-entry:hover img {
  transform: none !important;
}

@media (max-width: 767px) {
  html[data-sk-product-cards="true"]
  .s-product-card-entry .s-product-card-content {
    padding: 8px 8px 9px !important;
  }

  html[data-sk-product-cards="true"]
  .s-product-card-entry .s-product-card-content-title,
  html[data-sk-product-cards="true"]
  .s-product-card-entry .s-product-card-content-title a {
    max-height: 35px !important;
    font-size: 11px !important;
    line-height: 1.4 !important;
  }

  html[data-sk-product-cards="true"]
  .s-product-card-entry :is(
    .s-product-card-content-footer,
    .s-product-card-actions
  ) {
    grid-template-columns: 24px minmax(0, 1fr) !important;
    gap: 4px !important;
    margin-top: 7px !important;
  }

  html[data-sk-product-cards="true"]
  .s-product-card-entry :is(
    .s-product-card-content-footer,
    .s-product-card-actions
  ) :is(
    salla-add-product-button,
    .s-product-card-add-button
  ) .s-button-element {
    height: 34px !important;
    gap: 4px !important;
    padding-inline: 6px !important;
    font-size: 9.5px !important;
  }

  html[data-sk-product-cards="true"]
  .s-product-card-entry :is(
    .s-product-card-content-footer,
    .s-product-card-actions
  ) .s-product-card-wishlist-btn {
    width: 24px !important;
    min-width: 24px !important;
    height: 34px !important;
  }

  html[data-sk-product-cards="true"]
  .s-product-card-entry .s-product-card-wishlist-btn svg,
  html[data-sk-product-cards="true"]
  .s-product-card-entry .s-product-card-wishlist-btn i {
    width: 16px !important;
    height: 16px !important;
  }
}

/* =========================================================
   NATIVE SALLA COLOR TOKENS
   CSS only. No classes are added to buttons with JavaScript.
========================================================= */

html[data-salla-kit="true"] {
  --color-primary: var(--sk-primary) !important;
  --color-primary-dark: var(--sk-primary) !important;
  --color-primary-light: var(--sk-secondary) !important;
  --color-primary-reverse: #ffffff !important;
}

html[data-sk-button-theme="true"] salla-add-product-button,
html[data-sk-button-theme="true"] .product-form salla-button,
html[data-sk-button-theme="true"] [class*="product-form" i] salla-button,
html[data-sk-button-theme="true"] .cart-summary salla-button,
html[data-sk-button-theme="true"] [class*="cart-summary" i] salla-button {
  --color-primary: var(--sk-primary) !important;
  --color-primary-dark: var(--sk-primary) !important;
  --color-primary-light: var(--sk-secondary) !important;
  --color-primary-reverse: #ffffff !important;
}

/* =========================================================
   SINGLE H1 PER PAGE
========================================================= */

html[data-sk-single-h1="true"] .sk-primary-h1 {
  text-wrap: balance;
}

/* Semantic brand heading is attached to the logo without changing its layout. */
.sk-brand-semantic-heading,
.sk-product-semantic-title {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================================
   STORE FEATURES
========================================================= */

html[data-sk-features="true"] .s-block--features .feature-icon,
html[data-sk-features="true"] .s-block--features__item .feature-icon,
html[data-sk-features="true"] .s-block--features__item [class*="feature-icon"] {
  background: #f5f5f5 !important;
  border: 1.16px solid #ddd !important;
  border-radius: 50% !important;
  box-shadow: 0 2.32px 4.64px rgba(0, 0, 0, 0.1) !important;
}

html[data-sk-features="true"] .s-block--features__item .feature-icon svg,
html[data-sk-features="true"] .s-block--features__item .feature-icon i {
  color: var(--sk-primary) !important;
  stroke: currentColor !important;
}


/* =========================================================
   FLOATING WHATSAPP BUTTON — FONT AWESOME
========================================================= */

html[data-sk-whatsapp="true"] .sk-whatsapp-float {
  position: fixed !important;
  bottom: 24px !important;
  z-index: 9999 !important;

  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 58px !important;
  height: 58px !important;
  padding: 0 !important;

  color: #ffffff !important;
  background: #25d366 !important;
  border: 0 !important;
  border-radius: 50% !important;
  box-shadow: 0 7px 22px rgba(0, 0, 0, 0.22) !important;

  text-decoration: none !important;
  cursor: pointer !important;
  opacity: 1 !important;
  visibility: visible !important;
  transform: translateZ(0) !important;
  isolation: isolate !important;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    opacity 0.2s ease !important;
}

html[data-sk-whatsapp="true"] .sk-whatsapp-float[data-position="left"] {
  left: 22px !important;
  right: auto !important;
}

html[data-sk-whatsapp="true"] .sk-whatsapp-float[data-position="right"] {
  right: 22px !important;
  left: auto !important;
}

html[data-sk-whatsapp="true"] .sk-whatsapp-float .sk-whatsapp-icon {
  display: block !important;
  width: 31px !important;
  height: 36px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #ffffff !important;
  fill: currentColor !important;
  overflow: visible !important;
  pointer-events: none !important;
}

html[data-sk-whatsapp="true"] .sk-whatsapp-float:hover {
  color: #ffffff !important;
  transform: translateY(-3px) scale(1.04) !important;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.26) !important;
}

html[data-sk-whatsapp="true"] .sk-whatsapp-float:focus-visible {
  outline: 3px solid rgba(37, 211, 102, 0.3) !important;
  outline-offset: 4px !important;
}

@media (max-width: 767px) {
  html[data-sk-whatsapp="true"] .sk-whatsapp-float {
    bottom: 18px !important;
    width: 52px !important;
    height: 52px !important;
  }

  html[data-sk-whatsapp="true"] .sk-whatsapp-float[data-position="left"] {
    left: 14px !important;
  }

  html[data-sk-whatsapp="true"] .sk-whatsapp-float[data-position="right"] {
    right: 14px !important;
  }

  html[data-sk-whatsapp="true"] .sk-whatsapp-float .sk-whatsapp-icon {
    width: 28px !important;
    height: 32px !important;
  }
}

/* =========================================================
   PRODUCT DETAILS + CART PRIMARY ACTIONS
   Styling only. Native Salla button elements remain untouched.
========================================================= */

html[data-sk-button-theme="true"] {
  --sk-action-gradient: linear-gradient(
    360deg,
    var(--sk-primary) -25.96%,
    var(--sk-secondary) 100%
  );
}

/* Add to cart everywhere, including product cards and product details. */
html[data-sk-button-theme="true"]
salla-add-product-button .s-button-element,
html[data-sk-button-theme="true"]
.s-product-card-add-button .s-button-element {
  color: #ffffff !important;
  background: var(--sk-action-gradient) !important;
  background-color: var(--sk-primary) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Buy now and primary product-form buttons. */
html[data-sk-button-theme="true"]
.product-form salla-button:not([shape="icon"]) .s-button-element,
html[data-sk-button-theme="true"]
[class*="product-form" i] salla-button:not([shape="icon"]) .s-button-element,
html[data-sk-button-theme="true"]
.product-form button[type="submit"],
html[data-sk-button-theme="true"]
[class*="product-form" i] button[type="submit"] {
  color: #ffffff !important;
  background: var(--sk-action-gradient) !important;
  background-color: var(--sk-primary) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* Cart checkout / complete-order actions. */
html[data-sk-button-theme="true"]
.cart-summary salla-button:not([shape="icon"]) .s-button-element,
html[data-sk-button-theme="true"]
[class*="cart-summary" i] salla-button:not([shape="icon"]) .s-button-element,
html[data-sk-button-theme="true"]
.cart-summary button[type="submit"],
html[data-sk-button-theme="true"]
[class*="cart-summary" i] button[type="submit"],
html[data-sk-button-theme="true"]
[id*="checkout" i] .s-button-element,
html[data-sk-button-theme="true"]
[class*="checkout" i] .s-button-element {
  color: #ffffff !important;
  background: var(--sk-action-gradient) !important;
  background-color: var(--sk-primary) !important;
  border-color: transparent !important;
  box-shadow: none !important;
  -webkit-text-fill-color: #ffffff !important;
}

html[data-sk-button-theme="true"]
salla-add-product-button .s-button-element *,
html[data-sk-button-theme="true"]
.product-form salla-button:not([shape="icon"]) .s-button-element *,
html[data-sk-button-theme="true"]
[class*="product-form" i] salla-button:not([shape="icon"]) .s-button-element *,
html[data-sk-button-theme="true"]
.cart-summary .s-button-element *,
html[data-sk-button-theme="true"]
[class*="cart-summary" i] .s-button-element * {
  color: #ffffff !important;
  fill: currentColor !important;
  stroke: currentColor !important;
  -webkit-text-fill-color: #ffffff !important;
}

/* =========================================================
   PAGE-AWARE H1 — CATEGORY TITLE (ROBUST)
========================================================= */

.sk-category-page-heading {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  z-index: 2 !important;
  width: 100% !important;
  margin: 24px 0 18px !important;
  padding: 0 !important;
  background: transparent !important;
}

.sk-category-page-heading__container {
  display: block !important;
  width: 100% !important;
  max-width: var(--sk-container, 1200px) !important;
  margin-inline: auto !important;
  padding-inline: 20px !important;
}

.sk-category-page-title {
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--sk-text, #232323) !important;
  font-size: clamp(26px, 2.5vw, 38px) !important;
  font-weight: 800 !important;
  line-height: 1.35 !important;
  text-align: right !important;
}



/* The heading is already inside Salla's page container. */
.sk-category-page-heading--inside-container {
  margin-top: 10px !important;
}

.sk-category-page-heading--inside-container
.sk-category-page-heading__container {
  max-width: none !important;
  margin: 0 !important;
  padding-inline: 0 !important;
}

@media (max-width: 767px) {
  .sk-category-page-heading {
    margin: 18px 0 14px !important;
  }

  .sk-category-page-heading__container {
    padding-inline: 12px !important;
  }

  .sk-category-page-title {
    font-size: 24px !important;
  }
}