/* =========================================================
   RAED / SALLA — ASSAF-INSPIRED EDITORIAL LOOK
   v1.0 | CSS ONLY | Paste into Salla > Theme > Custom CSS
   Original styling, not a copy of the Selia theme.
   Designed for body.theme-raed and native Salla components.
   No changes to checkout, inventory, cart logic or tracking.
   ========================================================= */

/* 01 — PALETTE + TYPOGRAPHY */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700&display=swap');
:root {
  --ra-assaf-ink: #111111;
  --ra-assaf-soft: #fafafa;
  --ra-assaf-white: #ffffff;
  --ra-assaf-muted: #777777;
  --ra-assaf-line: #eae7e5;
  --ra-assaf-accent: #8a0f16;
  --ra-assaf-radius: 10px;
  --color-primary: #111111;
  --color-primary-dark: #000000;
  --color-primary-light: #333333;
  --color-primary-reverse: #ffffff;
  --s-radius: .625rem;
  --font-main: 'Tajawal', sans-serif;
}
body.theme-raed {
  background: var(--ra-assaf-soft) !important;
  color: var(--ra-assaf-ink);
  font-family: 'Tajawal', sans-serif !important;
  -webkit-font-smoothing: antialiased;
}
body.theme-raed :where(h1,h2,h3,h4,p,a,button,input,textarea,select) {
  font-family: 'Tajawal', sans-serif;
}
body.theme-raed a { text-decoration: none; }
body.theme-raed :where(button,a,input):focus-visible {
  outline: 2px solid var(--ra-assaf-accent);
  outline-offset: 3px;
}
body.theme-raed .container { max-width: 1320px; }

/* 02 — HEADER / MAIN NAV (real Raed markup) */
body.theme-raed .store-header,
body.theme-raed .store-header .top-navbar,
body.theme-raed .main-nav-container,
body.theme-raed .main-nav-container .inner {
  background: var(--ra-assaf-white) !important;
  color: var(--ra-assaf-ink) !important;
}
body.theme-raed .store-header .top-navbar {
  border-bottom: 1px solid #f1eeee;
  min-height: 37px;
  padding-block: 3px;
  font-size: 12px;
}
body.theme-raed .main-nav-container {
  min-height: 74px;
  border-bottom: 1px solid var(--ra-assaf-line);
  box-shadow: none !important;
}
body.theme-raed .main-nav-container .inner {
  transition: box-shadow .2s ease;
}
body.theme-raed.ra-assaf-scrolled .main-nav-container .inner {
  box-shadow: 0 7px 24px rgba(0,0,0,.065);
}
body.theme-raed .main-nav-container .navbar-brand img,
body.theme-raed .store-header [data-testid="store-header-logo"] img {
  width: auto !important;
  height: 52px !important;
  max-width: 170px;
  object-fit: contain;
}
body.theme-raed .store-header :where(.sicon-menu,.sicon-search,.sicon-user,.sicon-cart) {
  color: var(--ra-assaf-ink) !important;
}
body.theme-raed .store-header :where(.main-menu li>a,.main-menu__item>a,.topnav-link-item a) {
  color: var(--ra-assaf-ink) !important;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .01em;
}
body.theme-raed .store-header .s-search-input {
  background: #f7f7f7 !important;
  border: 1px solid #f2f2f2 !important;
  border-radius: 30px !important;
}

/* 03 — HOME SECTION RHYTHM */
body.theme-raed .s-blocks-wrapper>.s-block:not(:first-child),
body.theme-raed main>.s-block:not(:first-child) {
  margin-top: clamp(30px, 4vw, 64px);
}
body.theme-raed .s-slider-block__title,
body.theme-raed .s-block--categories__title,
body.theme-raed .s-block .section-title,
body.theme-raed .s-block h2.block-title {
  color: var(--ra-assaf-ink) !important;
  font-size: clamp(20px, 2.4vw, 29px) !important;
  font-weight: 600 !important;
  letter-spacing: -.015em;
  line-height: 1.4;
}
body.theme-raed .s-slider-block__display-all,
body.theme-raed .s-block a.more {
  color: var(--ra-assaf-ink) !important;
  font-size: 13px;
  font-weight: 500;
}

/* 04 — MAIN SLIDER / VIDEO / BANNERS */
body.theme-raed .s-block--hero-slider,
body.theme-raed .s-block--hero-slider .swiper,
body.theme-raed .s-block--hero-slider .swiper-slide,
body.theme-raed .s-block--fixed-banner,
body.theme-raed .s-block--banners {
  border-radius: 0 !important;
}
body.theme-raed .s-block--hero-slider :where(img,video),
body.theme-raed .s-block--fixed-banner img,
body.theme-raed .s-block--banners img {
  border-radius: 0 !important;
}
body.theme-raed .s-block--hero-slider .swiper-slide {
  overflow: hidden;
}
body.theme-raed .s-block--hero-slider .swiper-slide :where(img,video) {
  display: block;
  width: 100%;
  object-fit: cover;
}
body.theme-raed .s-block--hero-slider .swiper-pagination-bullet-active {
  background: #111 !important;
}

/* 05 — PRODUCT CARDS (Raed/Twilight classes) */
body.theme-raed .s-product-card-entry:not(.s-product-card-horizontal):not(.s-product-card-compact):not(.s-product-card-full-image) {
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  overflow: visible;
}
body.theme-raed .s-product-card-entry:not(.s-product-card-horizontal):not(.s-product-card-compact):not(.s-product-card-full-image) .s-product-card-image {
  background: #f1efeb !important;
  border-radius: 5px !important;
  aspect-ratio: 4 / 5;
  height: auto !important;
  overflow: hidden;
}
body.theme-raed .s-product-card-entry:not(.s-product-card-horizontal):not(.s-product-card-compact):not(.s-product-card-full-image) .s-product-card-image img {
  height: 100% !important;
  width: 100% !important;
  object-fit: cover;
  transition: transform .5s ease;
}
@media (hover:hover) {
  body.theme-raed .s-product-card-entry:hover .s-product-card-image img { transform: scale(1.035); }
}
body.theme-raed .s-product-card-entry:not(.s-product-card-horizontal):not(.s-product-card-compact):not(.s-product-card-full-image) .s-product-card-content {
  padding: 12px 2px 4px !important;
  background: transparent !important;
}
body.theme-raed .s-product-card-content-title,
body.theme-raed .s-product-card-content-title a {
  color: var(--ra-assaf-ink) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  line-height: 1.55;
}
body.theme-raed :where(.s-product-card-price,.s-product-card-sale-price) {
  color: #111 !important;
  font-weight: 600 !important;
  font-size: 15px;
}
body.theme-raed .s-product-card-regular-price,
body.theme-raed .s-product-card-content-subtitle {
  color: var(--ra-assaf-muted) !important;
  font-size: 12px;
}
body.theme-raed .s-product-card-promotion-title {
  background: var(--ra-assaf-accent) !important;
  color: #fff !important;
  border-radius: 3px !important;
  font-size: 11px !important;
}
body.theme-raed .s-product-card-wishlist-btn button {
  background: rgba(255,255,255,.92) !important;
  border-radius: 50% !important;
}

/* 06 — CATEGORY LINKS / NATIVE RAED CATEGORY BLOCKS */
body.theme-raed .s-block--categories :where(img,.s-category-card-image) {
  border-radius: 50% !important;
  object-fit: cover;
}
body.theme-raed .s-block--categories :where(.swiper-slide>a,.category-item) {
  text-align: center;
}
body.theme-raed .slide--cat-entry {
  background: white !important;
  border: 1px solid var(--ra-assaf-line) !important;
  border-radius: 10px !important;
  box-shadow: none !important;
}

/* 07 — BUTTONS / FILTERS / INPUTS */
body.theme-raed .s-button-primary,
body.theme-raed .btn--primary,
body.theme-raed .s-product-card-content-footer .s-button-btn {
  background: #111 !important;
  color: #fff !important;
  border-color: #111 !important;
  border-radius: 5px !important;
  box-shadow: none !important;
  font-weight: 600;
  transition: background .2s ease, transform .2s ease;
}
body.theme-raed .s-button-primary:hover,
body.theme-raed .btn--primary:hover {
  background: #333 !important;
}
body.theme-raed :where(input:not([type="checkbox"]):not([type="radio"]),select,textarea) {
  border-radius: 6px;
}

/* 08 — CUSTOM ASSAF-STYLE CIRCLE CATEGORIES INSERTED BY JS */
body.theme-raed .ra-assaf-cats {
  --circle-size: 138px;
  padding: 22px 16px 10px;
  margin: 18px auto 6px;
  max-width: 1080px;
}
body.theme-raed .ra-assaf-cats__title {
  text-align: center;
  color: #171717;
  font-size: 20px;
  font-weight: 600;
  margin: 0 0 23px;
}
body.theme-raed .ra-assaf-cats__row {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: clamp(10px,3vw,38px);
  padding-bottom: 22px;
  border-bottom: 1px solid var(--ra-assaf-line);
}
body.theme-raed .ra-assaf-cats__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #171717 !important;
}
body.theme-raed .ra-assaf-cats__ring {
  position: relative;
  width: min(100%,var(--circle-size));
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #f3f0ee;
  border: 5px solid #fff;
  outline: 3px solid var(--ra-assaf-accent);
  border-radius: 50%;
  overflow: hidden;
  transition: transform .25s ease;
}
body.theme-raed .ra-assaf-cats__item:hover .ra-assaf-cats__ring { transform: scale(1.04); }
body.theme-raed .ra-assaf-cats__ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
body.theme-raed .ra-assaf-cats__letter {
  font-size: 34px;
  font-weight: 500;
  color: var(--ra-assaf-accent);
}
body.theme-raed .ra-assaf-cats__name {
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

/* 09 — FOOTER */
body.theme-raed .store-footer,
body.theme-raed .store-footer__inner {
  background: #080808 !important;
  color: #f5f5f5 !important;
}
body.theme-raed .store-footer a,
body.theme-raed .store-footer h3,
body.theme-raed .store-footer h4 {
  color: #f5f5f5 !important;
}
body.theme-raed .store-footer :where(p,span,li) { color: #c8c8c8; }
body.theme-raed .store-footer a:hover { color: #fff !important; opacity: .8; }

/* 10 — RESPONSIVE */
@media (max-width: 767px) {
  body.theme-raed .main-nav-container { min-height: 60px; }
  body.theme-raed .main-nav-container .navbar-brand img,
  body.theme-raed .store-header [data-testid="store-header-logo"] img {
    height: 39px !important;
    max-width: 125px;
  }
  body.theme-raed .s-blocks-wrapper>.s-block:not(:first-child),
  body.theme-raed main>.s-block:not(:first-child) { margin-top: 27px; }
  body.theme-raed .s-product-card-content-title,
  body.theme-raed .s-product-card-content-title a { font-size: 12px !important; }
  body.theme-raed .s-product-card-entry:not(.s-product-card-horizontal):not(.s-product-card-compact):not(.s-product-card-full-image) .s-product-card-content { padding-top: 9px !important; }
  body.theme-raed .ra-assaf-cats { --circle-size: 96px; padding: 15px 14px 2px; }
  body.theme-raed .ra-assaf-cats__title { font-size: 17px; margin-bottom: 18px; }
  body.theme-raed .ra-assaf-cats__row { grid-template-columns: repeat(4,minmax(0,1fr)); gap: 11px; }
  body.theme-raed .ra-assaf-cats__ring { border-width: 3px; outline-width: 2px; }
  body.theme-raed .ra-assaf-cats__name { font-size: 11px; line-height: 1.4; }
  body.theme-raed .ra-assaf-cats__letter { font-size: 23px; }
}
@media (max-width: 360px) {
  body.theme-raed .ra-assaf-cats__row { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  body.theme-raed .s-product-card-image img,
  body.theme-raed .ra-assaf-cats__ring { transition: none !important; }
}


/* ==========================================
   ASSAF ORIGINAL FONT
   SALLA - RAED THEME
   ========================================== */

/* تحميل تعريف خط عساف الأصلي */
@import url("https://cdn.salla.sa/themes/custom_fonts/935113581/assafNewFontt.css");

/* ضبط متغيرات الخط */
:root {
    --font-main: 'assafNewFontt', sans-serif !important;
    --font-primary: 'assafNewFontt', sans-serif !important;
    --font-family: 'assafNewFontt', sans-serif !important;
    --s-font-family: 'assafNewFontt', sans-serif !important;
}

/* تطبيق الخط على المتجر */
html,
body,
button,
input,
textarea,
select,
option,
a,
p,
span,
label,
h1,
h2,
h3,
h4,
h5,
h6,
li,
strong,
small,
blockquote {
    font-family: 'assafNewFontt', sans-serif !important;
}

/* الهيدر والقوائم */
.main-nav,
.main-menu,
.top-navbar,
.navbar-brand,
.navbar-menu,
.main-menu a,
.main-nav a,
.header-btn,
.store-header,
.store-header a {
    font-family: 'assafNewFontt', sans-serif !important;
}

/* أسماء المنتجات والأسعار */
.s-product-card-content-title,
.s-product-card-content-subtitle,
.s-product-card-price,
.s-product-card-sale-price,
.s-product-card-content,
.product-entry__title,
.product-entry__price,
.s-block__title {
    font-family: 'assafNewFontt', sans-serif !important;
}

/* أزرار الشراء */
.s-button-element,
.btn,
button,
a.btn,
.s-product-card-content-footer {
    font-family: 'assafNewFontt', sans-serif !important;
}

/* الفوتر */
footer,
footer a,
footer p,
.store-footer,
.store-footer a,
.store-footer p {
    font-family: 'assafNewFontt', sans-serif !important;
}

/* عدم التأثير على خطوط الأيقونات */
[class^="sicon-"],
[class*=" sicon-"],
.sicon,
.fa,
.fas,
.far,
.fab,
[class^="fa-"],
[class*=" fa-"] {
    font-family: inherit;
}