/* SAL | Maru-style black & white layer for the Click theme */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@300;400;500;700&display=swap');

:root {
  --sal-ink: #0b0b0b;
  --sal-paper: #ffffff;
  --sal-tile: #f3f3f1;
  --sal-mist: #f1f1f1;
  --sal-gray: #8c8c8a;
  --sal-text-2: #2a2a2a;
  --sal-hair: #d9d9d6;
  --sal-side: clamp(200px, 21vw, 300px);
  --sal-gutter: clamp(16px, 2.4vw, 40px);
  --color-primary: #0b0b0b;
  --color-primary-dark: #000000;
  --color-primary-light: #3a3a3a;
  --color-primary-reverse: #ffffff;
}

body.theme-click, body.theme-click button, body.theme-click input, body.theme-click select, body.theme-click textarea {
  font-family: 'Tajawal', var(--font-main), sans-serif !important;
}
body.theme-click { background: var(--sal-paper) !important; color: var(--sal-ink) !important; font-size: 14px; letter-spacing: .01em; }
body.theme-click .container { max-width: none; padding-inline: var(--sal-gutter); }
body.theme-click .theme-mode-item { display: none !important; }

/* announcement (store advertisement) */
body.theme-click .s-advertisement { background: var(--sal-paper) !important; color: var(--sal-ink) !important; border-bottom: 1px solid var(--sal-hair); min-height: 0; padding-block: 8px; font-size: 12.5px; }
body.theme-click .s-advertisement a, body.theme-click .s-advertisement i { color: var(--sal-ink) !important; }
body.theme-click .s-advertisement-content-icon { display: none; }
body.theme-click .s-advertisement-content-main { justify-content: center; width: 100%; }

/* header */
body.theme-click .store-header, body.theme-click .main-nav-container, body.theme-click .main-nav-container .inner { background: var(--sal-paper) !important; box-shadow: none !important; }
body.theme-click .main-nav-container { border-bottom: 1px solid var(--sal-ink); }
body.theme-click .header-container.sal-ready { display: grid !important; grid-template-columns: var(--sal-side) minmax(0, 1fr) auto; align-items: stretch; gap: 0 !important; min-height: 72px; padding-block: 0 !important; }
.sal-brand { display: flex; align-items: center; gap: 12px; }
.sal-brand img { max-height: 44px; width: auto; max-width: 140px; object-fit: contain; }
.sal-links { display: flex; align-items: stretch; min-width: 0; overflow: hidden; }
.sal-links a, body.theme-click .header-btns-list > li { display: flex; align-items: flex-start; padding: 14px 14px 0; margin-block: 8px; border-inline-start: 1px solid var(--sal-ink); font-size: 13px; color: var(--sal-ink); white-space: nowrap; }
.sal-links a { min-width: 116px; }
.sal-links a:hover { color: var(--sal-gray); }
body.theme-click .header-btns-list { display: flex; align-items: stretch; gap: 0 !important; margin: 0; }
body.theme-click .header-btns-list > li { padding-inline: 14px; }
body.theme-click .header-btn, body.theme-click .header-btns-list button, body.theme-click .header-btns-list a { background: none !important; border: 0 !important; border-radius: 0 !important; width: auto !important; height: auto !important; padding: 0 !important; color: var(--sal-ink) !important; display: inline-flex; align-items: center; gap: 6px; font-size: 13px; }
.sal-label { font-size: 13px; }
body.theme-click .s-cart-summary-count { background: var(--sal-ink) !important; color: #fff !important; }
@media (min-width: 1024px) { body.theme-click .header-container .mburger { display: none !important; } }
@media (max-width: 1023.98px) {
  body.theme-click .header-container.sal-ready { grid-template-columns: 1fr auto; min-height: 60px; }
  .sal-links, .sal-label { display: none; }
  body.theme-click .header-btns-list > li { padding: 12px 10px 0; margin-block: 6px; }
  body.theme-click .header-btns-list > li.login-item { display: none; }
}

/* section frame: sticky side column + content */
.sal-sec { display: grid; grid-template-columns: var(--sal-side) minmax(0, 1fr); padding-inline: var(--sal-gutter); border-bottom: 1px solid var(--sal-hair); }
.sal-side { padding-block: 28px 40px; padding-inline-end: 28px; }
.sal-side__in { position: sticky; top: 96px; display: grid; gap: 18px; }
.sal-side__title { font-size: 15px !important; font-weight: 500 !important; line-height: 1.5; padding-bottom: 12px; border-bottom: 1px solid var(--sal-ink); margin: 0; }
.sal-side__text { font-size: 13px; line-height: 1.9; color: var(--sal-text-2); text-align: justify; margin: 0; }
.sal-pill { justify-self: start; display: inline-flex; align-items: center; justify-content: center; min-height: 38px; padding-inline: 26px; border: 1px solid var(--sal-ink); border-radius: 999px; font-size: 12px; letter-spacing: .06em; color: var(--sal-ink); transition: background .25s, color .25s; }
.sal-pill:hover { background: var(--sal-ink); color: #fff; }
.sal-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--sal-hair); }
.sal-list a { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--sal-hair); font-size: 12.5px; color: var(--sal-gray); }
.sal-list a:hover, .sal-list a.is-on { color: var(--sal-ink); }
.sal-list a.is-on::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--sal-ink); flex: none; }
.sal-content { padding-block: 28px 48px; min-width: 0; }
.sal-content > .s-block { margin: 0 !important; padding: 0 !important; max-width: none; }
.sal-content > .s-block > .s-block__title { display: none; }
@media (max-width: 900px) {
  .sal-sec { grid-template-columns: 1fr; }
  .sal-side { padding-inline-end: 0; padding-bottom: 8px; }
  .sal-side__in { position: static; }
}
body.theme-click .hero-area.sal-moved { display: none !important; }

/* story gallery */
.sal-slider { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.sal-slider::-webkit-scrollbar { display: none; }
.sal-slide { flex: 0 0 clamp(220px, 30vw, 420px); margin: 0; scroll-snap-align: start; background: var(--sal-tile); }
.sal-slide img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; mix-blend-mode: multiply; padding: 8%; display: block; }
.sal-slider__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; font-size: 11.5px; }
.sal-slider__arrows { display: flex; gap: 6px; }
.sal-slider__arrows button { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--sal-hair); border-radius: 50%; background: none; cursor: pointer; color: var(--sal-ink); }
.sal-slider__arrows button:hover { border-color: var(--sal-ink); }

/* product grid & cards */
body.theme-click .s-products-list-vertical-cards { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 40px 18px !important; }
@media (max-width: 1100px) { body.theme-click .s-products-list-vertical-cards { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 520px) { body.theme-click .s-products-list-vertical-cards { gap: 28px 12px !important; } }
body.theme-click .product-entry { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; }
body.theme-click .product-entry__image { background: var(--sal-tile) !important; border-radius: 0 !important; aspect-ratio: 1; height: auto !important; overflow: hidden; }
body.theme-click .product-entry__image img { object-fit: contain !important; mix-blend-mode: multiply; padding: 12%; transition: transform .7s cubic-bezier(.2, .7, .2, 1); }
body.theme-click .product-entry:hover .product-entry__image img { transform: scale(1.04); }
body.theme-click .product-entry__content { padding: 10px 0 0 !important; }
body.theme-click .product-entry__title { font-size: 12.5px !important; font-weight: 500 !important; color: var(--sal-ink) !important; line-height: 1.6; }
body.theme-click .product-entry .price-wrapper, body.theme-click .product-entry .price-wrapper span { font-size: 12px !important; font-weight: 400 !important; color: var(--sal-ink) !important; }
body.theme-click .product-entry .text-info p { font-size: 11.5px; color: var(--sal-gray); }
body.theme-click .add-to-cart-conatiner { padding-top: 10px !important; }
body.theme-click .btn--wishlist button, body.theme-click button.btn--wishlist { background: transparent !important; border: 0 !important; box-shadow: none !important; }

/* buttons: pills */
body.theme-click .s-button-element, body.theme-click .s-button-btn { border-radius: 999px !important; box-shadow: none !important; font-weight: 400 !important; }
body.theme-click .s-button-primary:not(.s-button-outline), body.theme-click .s-button-solid.s-button-primary { background: var(--sal-ink) !important; border: 1px solid var(--sal-ink) !important; color: #fff !important; }
body.theme-click .s-button-outline, body.theme-click .add-to-cart-conatiner .s-button-element { background: transparent !important; border: 1px solid var(--sal-ink) !important; color: var(--sal-ink) !important; min-height: 34px; height: 34px; font-size: 11.5px !important; }
body.theme-click .s-button-outline:hover, body.theme-click .add-to-cart-conatiner .s-button-element:hover { background: var(--sal-ink) !important; color: #fff !important; }
body.theme-click .s-button-outline:hover .s-button-text, body.theme-click .add-to-cart-conatiner .s-button-element:hover .s-button-text { color: #fff !important; }

/* no rounding, no shadows */
body.theme-click .rounded, body.theme-click .rounded-md, body.theme-click .rounded-lg, body.theme-click .rounded-xl, body.theme-click .rounded-2xl { border-radius: 0 !important; }
body.theme-click .shadow, body.theme-click .shadow-md, body.theme-click .shadow-lg, body.theme-click .shadow-default { box-shadow: none !important; }

/* inner pages */
body.theme-click .s-block__title h2, body.theme-click .s-block__title h3 { font-size: 15px !important; font-weight: 500 !important; }
body.theme-click .s-breadcrumb-wrapper { font-size: 12px; color: var(--sal-gray); }
body.theme-click .product-single h1 { font-weight: 400 !important; font-size: 26px !important; line-height: 1.4; }
body.theme-click .product-single .swiper-slide { background: var(--sal-tile); }
body.theme-click .product-single .swiper-slide img { mix-blend-mode: multiply; }

/* footer */
body.theme-click .store-footer, body.theme-click .store-footer__inner, body.theme-click .store-footer__info-bar { background: var(--sal-mist) !important; color: #595959 !important; font-size: 12.5px; }
body.theme-click .store-footer { margin-top: 64px; }
body.theme-click .store-footer h3, body.theme-click .store-footer .s-contacts-title { color: var(--sal-ink) !important; font-size: 12.5px !important; font-weight: 500 !important; }
body.theme-click .store-footer a { color: #595959 !important; }
body.theme-click .store-footer a:hover { color: var(--sal-ink) !important; }
body.theme-click .store-footer .footer-logo img { max-height: 48px; width: auto; }
body.theme-click .store-footer__info-bar { border-top: 1px solid var(--sal-hair); }
body.theme-click .store-footer p { font-size: 12.5px !important; }
/* header: no search, no dividers between account and cart */
body.theme-click .header-btns-list > li.search-item { display: none !important; }
body.theme-click .header-btns-list > li { border-inline-start: 0 !important; }

/* intro splash: white screen with the logo, then fades away (home page, once per visit) */
@keyframes salSplashLogo { 0% { opacity: 0; transform: scale(.96); } 20%, 50% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.02); } }
@keyframes salSplashOut { 0%, 45% { opacity: 1; visibility: visible; } 100% { opacity: 0; visibility: hidden; } }
body.theme-click.index::before,
body.theme-click.index::after { content: ""; position: fixed; inset: 0; pointer-events: none; }
body.theme-click.index::before { z-index: 2147483646; background: #fff; animation: salSplashOut 5s ease-in-out forwards; }
body.theme-click.index::after {
  z-index: 2147483647;
  background: url('https://cdn.files.salla.network/theme/65826546/7600c70b-532c-40ca-b4c3-2c1a4d6e33f0.webp') center / 132px auto no-repeat;
  mix-blend-mode: multiply;
  animation: salSplashLogo 4.6s ease-in-out forwards;
}
body.theme-click.index.sal-no-splash::before,
body.theme-click.index.sal-no-splash::after { content: none; display: none; }
/* product sections: side column added inside the section (products stay in place) */
body.theme-click section.s-block.sal-sec--block { display: grid; grid-template-columns: var(--sal-side) minmax(0, 1fr); margin: 0 !important; padding: 0 var(--sal-gutter) !important; max-width: none; border-bottom: 1px solid var(--sal-hair); }
body.theme-click .sal-sec--block > .sal-side { grid-column: 1; grid-row: 1 / span 6; }
body.theme-click .sal-sec--block > .s-block__title { display: none !important; }
body.theme-click .sal-sec--block > :not(.sal-side):not(.s-block__title) { grid-column: 2; min-width: 0; padding-block: 28px 48px; }
@media (max-width: 900px) {
  body.theme-click section.s-block.sal-sec--block { grid-template-columns: 1fr; }
  body.theme-click .sal-sec--block > .sal-side,
  body.theme-click .sal-sec--block > :not(.sal-side):not(.s-block__title) { grid-column: 1; grid-row: auto; }
}
/* story text */
.sal-story-text { display: grid; gap: 12px; }
.sal-story-text p { margin: 0; font-size: 13px; line-height: 1.9; color: var(--sal-text-2); text-align: start; }
.sal-story-text p.sal-story-strong { color: var(--sal-ink); font-weight: 500; font-size: 14px; }
.sal-story-text p.sal-story-strong:last-child { padding-top: 12px; border-top: 1px solid var(--sal-hair); }
/* ==========================================================================
   SAL | إصلاحات ذات أولوية عالية (مبادئ أبل)
   تُلصق في آخر ملف CSS المخصص الحالي في محرر سلة — لا تستبدله.
   كل المحددات تبدأ بـ body.theme-click لتغلب قواعد الطبقة الحالية.
   ========================================================================== */

:root {
  --sal-muted: #5f5f5c;          /* بدل --sal-gray (#8c8c8a) للنص — تباين 6.4:1 */
  --sal-line: rgb(0 0 0 / .08);
  --sal-ease-out: cubic-bezier(.23, 1, .32, 1);
}

/* --------------------------------------------------------------------------
   1. الطباعة — لا تباعد أحرف على العربية، أحجام مقروءة، وزن يصنع الهرمية
   -------------------------------------------------------------------------- */

/* الخط العربي متصل: أي letter-spacing يكسر وصل الحروف */
body.theme-click,
body.theme-click * {
  letter-spacing: 0 !important;
}

body.theme-click {
  font-size: 16px;
  line-height: 1.7;
}

/* النص الأساسي بوزن عادي؛ العريض للعناوين فقط */
body.theme-click p,
body.theme-click .sal-story-text p {
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.8;
}

/* الجملة الافتتاحية والختامية في "قصتنا" تبقى بارزة */
body.theme-click .sal-story-text p:first-child,
body.theme-click .sal-story-text p:last-child {
  font-size: 1.125rem;
  font-weight: 600;
  line-height: 1.6;
}

/* العناوين: ارتفاع سطر أضيق كلما كبر الحجم */
body.theme-click h1,
body.theme-click h2 {
  line-height: 1.25;
}

body.theme-click .sal-side__title {
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.3;
}

/* بطاقة المنتج */
body.theme-click .product-entry__title {
  font-size: 1.0625rem;          /* 17px */
  font-weight: 600;
  line-height: 1.45;
}

body.theme-click .product-entry__subtitle {
  font-size: .875rem;
  line-height: 1.6;
  color: var(--sal-muted) !important;
}

body.theme-click .product-entry .price-wrapper {
  font-size: 1rem;
  font-weight: 600;
}

/* روابط القائمة والتصنيفات */
body.theme-click .sal-links a {
  font-size: .9375rem;           /* 15px */
}

body.theme-click .sal-list a {
  font-size: .9375rem;
  color: var(--sal-muted);
}

/* الأزرار */
body.theme-click a.sal-pill,
body.theme-click .btn--add-to-cart .s-button-element {
  font-size: .9375rem;
  font-weight: 500;
  min-height: 44px;              /* أصغر هدف لمس عند أبل */
}

/* --------------------------------------------------------------------------
   2. الاستجابة — رد فعل لحظة الضغط، لا بعد الإفلات
   -------------------------------------------------------------------------- */

body.theme-click a.sal-pill,
body.theme-click .btn--add-to-cart .s-button-element,
body.theme-click .sal-slider__arrows button,
body.theme-click .wa-s-n {
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 160ms var(--sal-ease-out),
    background-color 150ms ease,
    color 150ms ease,
    border-color 150ms ease;
}

body.theme-click a.sal-pill:active,
body.theme-click .btn--add-to-cart .s-button-element:active,
body.theme-click .sal-slider__arrows button:active,
body.theme-click .wa-s-n:active {
  transform: scale(.97);
  transition-duration: 100ms;
}

/* حركة المرور فقط على أجهزة الماوس — لا تعلق على اللمس */
body.theme-click .wa-s-n:hover {
  transform: none;
}

@media (hover: hover) and (pointer: fine) {
  body.theme-click .wa-s-n:hover {
    transform: translateY(-2px);
  }
}

/* --------------------------------------------------------------------------
   3. الهيدر الثابت — مادة شفافة بدل شريط أبيض بحد أسود
   -------------------------------------------------------------------------- */

body.theme-click .main-nav-container.fixed-header {
  background: rgb(255 255 255 / .78) !important;
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--sal-line) !important;
  /* top كان يتحرك 500ms (خاصية تخطيط) — الآن transform/opacity فقط */
  transition:
    transform 240ms var(--sal-ease-out),
    opacity 200ms ease !important;
}

/* فصل الروابط بالمسافة لا بالخطوط العمودية */
body.theme-click .sal-links a {
  border-inline: 0 !important;
}

@media (prefers-reduced-transparency: reduce) {
  body.theme-click .main-nav-container.fixed-header {
    background: #fff !important;
    backdrop-filter: none;
  }
}

/* --------------------------------------------------------------------------
   4. الجوال — المنتج أولاً، والتصنيفات شريط أفقي بدل قائمة تأخذ شاشة
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
  /* الـ carousel قبل نص "قصتنا" */
  body.theme-click section.sal-sec > .sal-content {
    order: -1;
    margin-bottom: 2rem;
  }

  /* التصنيفات: chips أفقية قابلة للتمرير */
  body.theme-click .s-block--latest-products > aside.sal-side .sal-list {
    display: flex;
    gap: .5rem;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin-inline: -16px;
    padding: .25rem 16px 1rem;
  }

  body.theme-click .s-block--latest-products > aside.sal-side .sal-list::-webkit-scrollbar {
    display: none;
  }

  body.theme-click .s-block--latest-products > aside.sal-side .sal-list li {
    flex: none;
    border: 0 !important;
    scroll-snap-align: start;
  }

  body.theme-click .s-block--latest-products > aside.sal-side .sal-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 1rem;
    border: 1px solid var(--sal-line);
    border-radius: 999px;
    color: var(--sal-ink);
    white-space: nowrap;
  }

  /* "عرض الكل" موجود أصلاً في الشريط والقائمة */
  body.theme-click .s-block--latest-products > aside.sal-side .sal-pill {
    display: none;
  }

  /* زر واتساب لا يغطي آخر منتج */
  body.theme-click {
    padding-bottom: 88px;
  }
}

/* --------------------------------------------------------------------------
   5. تقليل الحركة — ألطف، لا صفر: نبقي اللون والشفافية ونلغي الإزاحة
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  body.theme-click,
  body.theme-click * {
    scroll-behavior: auto !important;
  }

  body.theme-click .main-nav-container.fixed-header,
  body.theme-click a.sal-pill,
  body.theme-click .btn--add-to-cart .s-button-element,
  body.theme-click .sal-slider__arrows button,
  body.theme-click .wa-s-n,
  body.theme-click .s-add-product-toast {
    transition-property: opacity, color, background-color, border-color !important;
  }

  body.theme-click a.sal-pill:active,
  body.theme-click .btn--add-to-cart .s-button-element:active,
  body.theme-click .sal-slider__arrows button:active,
  body.theme-click .wa-s-n:active,
  body.theme-click .wa-s-n:hover {
    transform: none !important;
  }
}