/* ==========================================================================
   Home sections: سلايدر آراء العملاء
   ========================================================================== */

/* ── سلايدر آراء العملاء ──────────────────────────────────────────────── */
.k-hreviews { padding-top: 56px; padding-bottom: 56px; background: var(--k-bg); margin-top: 0; --rv-per: 4; --rv-gap: 16px; }
.k-hreviews__nav { display: flex; gap: 8px; }
.k-hreviews__btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  background: var(--k-white);
  border: 1px solid var(--k-black);
  color: var(--k-black);
  cursor: pointer;
  transition: var(--k-trans);
}
.k-hreviews__btn i { font-size: 20px; }
.k-hreviews__btn:hover:not(:disabled) { background: var(--k-black); color: var(--k-white); }
.k-hreviews__btn:disabled { opacity: .35; cursor: not-allowed; }

.k-hreviews__track {
  display: flex;
  align-items: stretch;
  gap: var(--rv-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding-bottom: 8px;
  scrollbar-width: none;
  -ms-overflow-style: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
}
.k-hreviews__item {
  flex: 0 0 calc((100% - (var(--rv-per) - 1) * var(--rv-gap)) / var(--rv-per));
  min-width: 0;
  margin: 0;
  scroll-snap-align: start;
}
.k-hreviews__open {
  display: block;
  width: 100%;
  padding: 0;
  background: var(--k-white);
  border: 1px solid var(--k-hairline);
  cursor: zoom-in;
  transition: border-color .18s ease, transform .18s ease;
}
.k-hreviews__open:hover { border-color: var(--k-black); }
.k-hreviews__open { aspect-ratio: 3 / 4; overflow: hidden; }
.k-hreviews__open img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; background: var(--k-white); }
.k-hreviews__track::-webkit-scrollbar { display: none; }

@media (prefers-reduced-motion: reduce) {
  .k-hreviews__track { scroll-behavior: auto; }
}
@media (max-width: 575.98px) {
  .k-hreviews { padding-top: 40px; padding-bottom: 40px; }
}

/* ── تكبير الصورة ─────────────────────────────────────────────────────── */
.k-rvbox {
  position: fixed; inset: 0; z-index: var(--k-z-modal);
  background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
}
.k-rvbox[hidden] { display: none; }
.k-rvbox img { max-width: min(92vw, 640px); max-height: 90vh; object-fit: contain; background: var(--k-white); }
.k-rvbox__close {
  position: absolute; top: 12px; inset-inline-end: 12px;
  width: 48px; height: 48px;
  display: grid; place-items: center;
  background: var(--k-white); color: var(--k-black);
  border: 0; cursor: pointer; font-size: 24px;
}

/* رسالة للمشرف فقط عندما لا توجد صور مرفوعة */
.k-hreviews__empty { padding: 32px; border: 1px dashed var(--k-gray-500); background: var(--k-white); text-align: center; }
.k-hreviews__empty p { margin: 0 0 12px; color: var(--k-gray-700); font-size: 15px; }

/* عدد الصور الظاهرة: 4 كمبيوتر، 2 تابلت، صورة ونص على الموبايل */
@media (max-width: 991.98px) { .k-hreviews { --rv-per: 2; } }
@media (max-width: 575.98px) {
  .k-hreviews { --rv-per: 1.5; --rv-gap: 12px; }
  .k-hreviews__btn { width: 34px; height: 34px; }
  .k-hreviews__btn i { font-size: 16px; }
  .k-hreviews .k-section-head { margin-bottom: 20px; }
}


/* ==========================================================================
   الأسئلة الشائعة (أكورديون بعمود واحد)
   ========================================================================== */
.k-faq__wrap { max-width: 860px; }
.k-faq__head { text-align: center; margin-bottom: 36px; }
.k-faq__head h2 { margin: 0 0 8px; font-weight: 800; }
.k-faq__head p { margin: 0; font-size: 16px; color: var(--k-slate); }

.k-faq__list { border-top: 1px solid var(--k-black); }
.k-faq__item { border-bottom: 1px solid var(--k-hairline); }
.k-faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.5;
  color: var(--k-black);
  cursor: pointer;
  list-style: none;
}
.k-faq__q::-webkit-details-marker { display: none; }
.k-faq__q:hover { color: var(--k-slate); }

/* أيقونة + / − بالـ CSS */
.k-faq__icon { position: relative; flex: none; width: 22px; height: 22px; }
.k-faq__icon::before,
.k-faq__icon::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  width: 16px; height: 1.6px;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform .2s ease;
}
.k-faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.k-faq__item[open] .k-faq__icon::after { transform: translate(-50%, -50%) rotate(0deg); }

.k-faq__a {
  padding: 0 0 22px;
  max-width: 720px;
  font-size: 16px;
  line-height: 1.9;
  color: var(--k-gray-700);
}
.k-faq__more { margin: 28px 0 0; text-align: center; }
.k-faq__more a { font-size: 15px; font-weight: 700; text-decoration: underline; text-underline-offset: 5px; }

@media (max-width: 575.98px) {
  .k-faq__q { font-size: 16px; min-height: 56px; }
  .k-faq__a { font-size: 15px; }
  .k-faq__head { margin-bottom: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-faq__icon::before, .k-faq__icon::after { transition: none; }
}



/* ══════════════════════════════════════════════════════════════════════
 * شريط المميزات (قبل الآراء): خلفية بيضاء، 4 وعود بخطوط فاصلة رفيعة.
 * كل وعد: أيقونة فوق، عنوان، سطر صغير — في المنتصف.
 * ديسكتوب: صف واحد. موبايل: شبكة 2×2.
 * ══════════════════════════════════════════════════════════════════════ */
.k-features {
  background: var(--k-bg);
  margin: 0;
}
.k-features__track {
  border-block: 1px solid var(--k-hairline);
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}
.k-feature {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  min-width: 0;
  padding: 36px 24px;
  text-align: center;
  border-inline-start: 1px solid var(--k-hairline);
}
.k-feature:first-child { border-inline-start: 0; }
.k-feature > i {
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1;
  color: var(--k-slate);
}
.k-feature strong {
  display: block;
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--k-black);
}
.k-feature span {
  display: block;
  font-size: 13px;
  line-height: 1.6;
  color: var(--k-slate);
  text-wrap: balance;
}

@media (max-width: 767.98px) {
  .k-features > .k-container { padding-inline: 0; }
  .k-features__track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .k-feature {
    padding: 22px 12px;
    border-inline-start: 0;
    border-bottom: 1px solid var(--k-hairline);
  }
  .k-feature:nth-child(even) { border-inline-start: 1px solid var(--k-hairline); }
  .k-feature:nth-last-child(-n+2) { border-bottom: 0; }
  .k-feature > i { margin-bottom: 8px; font-size: 24px; }
  .k-feature strong { font-size: 14px; }
  .k-feature span { font-size: 12px; }
}

/* ══════════════════════════════════════════════════════════════════════
 * «من عالم JOVA» — صورة + نص قصير + رابط لصفحة من نحن.
 * ديسكتوب: عمودان داخل إطار hairline. موبايل: الصورة فوق والنص تحتها.
 * ══════════════════════════════════════════════════════════════════════ */
/* Story + Look cards share ONE image size on desktop (615 x 520 at 1280px container; design 1230 x 1040). */
:root { --k-card-media-h: 520px; }
.k-story { padding-top: 56px; }
@media (max-width: 767.98px) { .k-story { padding-top: 48px; } }
.k-story__card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid var(--k-hairline);
  background: var(--k-white);
}
.k-story__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: var(--k-card-media-h);
  background: var(--k-bone);
  overflow: hidden;
}
.k-story__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.k-story__media > i { font-size: 72px; color: var(--k-ash); }
.k-story__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 48px clamp(28px, 5vw, 72px);
  order: -1;
  border-inline-end: 1px solid var(--k-hairline);
}
.k-story__body h2 { margin: 0 0 14px; }
.k-story__body p { margin: 0 0 24px; max-width: 420px; font-size: 15px; line-height: 1.9; }
.k-story__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 4px;
  font-size: 14px;
  font-weight: 500;
  color: var(--k-black);
  border-bottom: 1px solid var(--k-black);
}
.k-story__link:hover { color: var(--k-slate); border-color: var(--k-slate); }
.k-story__link i { font-size: 16px; transition: transform var(--k-dur-base) var(--k-ease-out); }
.k-story__link:hover i { transform: translateX(-3px); }

@media (max-width: 767.98px) {
  .k-story__card { grid-template-columns: 1fr; }
  .k-story__media { min-height: 0; aspect-ratio: 4 / 3; }
  .k-story__body { order: 0; padding: 28px 20px 32px; border-inline-end: 0; border-top: 1px solid var(--k-hairline); }
  .k-story__body p { font-size: 14px; margin-bottom: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .k-story__link i { transition: none; }
}

/* ── شاهدي الإطلالة ───────────────────────────────────────────────────── */
.k-look { padding-top: 0; }
.k-look__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--k-hairline); background: var(--k-white); }
.k-look__media { position: relative; min-height: var(--k-card-media-h); background: var(--k-bone); overflow: hidden; border-inline-end: 1px solid var(--k-hairline); }
.k-look__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.k-look__body { display: flex; flex-direction: column; justify-content: center; align-items: stretch; gap: 14px; min-width: 0; padding: 40px clamp(24px, 4vw, 56px); }
.k-look__body .k-eyebrow { align-self: flex-start; }
.k-look__body h2 { margin: 0; }
.k-look__list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.k-look__item { display: flex; align-items: center; gap: 16px; border: 1px solid var(--k-border, #E2D3C2); background: var(--k-white); padding: 12px; }
.k-look__thumb { flex: none; width: 76px; height: 76px; display: block; background: #E4E1DC; overflow: hidden; }
.k-look__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.k-look__info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.k-look__name { font-size: 16px; font-weight: 700; color: var(--k-black); text-decoration: none; line-height: 1.5; }
.k-look__name:hover { text-decoration: underline; text-underline-offset: 4px; }
.k-look__price, .k-look__price * { text-decoration: none; }
.k-look__price { font-size: 15px; color: var(--k-gray-700, #5E3A3C); }
.k-look__price del { text-decoration: line-through; color: var(--k-gray-500, #6F5552); margin-inline-start: 6px; }
.k-look__price del * { text-decoration: line-through; }
.k-look__cta { flex: none; min-width: 168px; min-height: 44px; padding: 0 20px; font-size: 14px; justify-content: center; text-align: center; }
.k-look__cta--off { display: inline-flex; align-items: center; color: var(--k-gray-700, #5E3A3C); font-size: 14px; }
@media (max-width: 767.98px) {
  .k-look__grid { grid-template-columns: 1fr; }
  .k-look__media { min-height: 0; aspect-ratio: 4 / 3; border-inline-end: 0; border-bottom: 1px solid var(--k-hairline); }
  .k-look__body { padding: 28px 20px 32px; }
  .k-look__item { flex-wrap: wrap; }
  .k-look__info { flex-basis: calc(100% - 100px); }
  .k-look__cta { flex-basis: 100%; }
}
/* Desktop/tablet: compact list so 4 products fit inside the shared 520px card height. */
@media (min-width: 768px) {
  .k-look__body { padding-block: 28px; gap: 12px; }
  .k-look__list { margin-top: 6px; gap: 10px; }
  .k-look__item { padding: 8px; gap: 14px; }
  .k-look__thumb { width: 56px; height: 56px; }
  .k-look__cta { min-width: 148px; min-height: 40px; padding: 0 16px; }
}

/* ── تسوقي حسب القسم (أحذية / حقائب) ─────────────────────────────────── */
.k-subcats--bags { padding-top: 0; }
.k-subcats__all { font-size: 15px; font-weight: 700; color: var(--k-black); text-decoration: none; border-bottom: 1px solid var(--k-black); padding-bottom: 3px; white-space: nowrap; }
.k-subcats__all:hover { color: var(--k-slate); border-color: var(--k-slate); }
.k-subcats__grid { display: grid; grid-template-columns: repeat(var(--sc-cols, 6), minmax(0, 1fr)); gap: 14px; }
.k-subcat { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--k-black); min-width: 0; }
.k-subcat__media { display: grid; place-items: center; aspect-ratio: var(--k-card-ratio, 4 / 5); background: var(--k-bone); border: 1px solid var(--k-hairline); overflow: hidden; transition: border-color .2s ease; }
.k-subcat__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
/* الأيقونة في المنتصف بالضبط بدون الاعتماد على grid + aspect-ratio (بعض نسخ سفاري القديمة تضعها في الأعلى) */
.k-subcat__media > i { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 44px; line-height: 1; color: var(--k-ash); }
.k-subcat:hover .k-subcat__media img { transform: scale(1.03); }
.k-subcat__name { font-size: 16px; font-weight: 600; text-align: center; line-height: 1.5; }
/* مقاس موحّد لكروت الأحذية والحقائب (172 × 215 بنسبة 4:5) بغض النظر عن عدد الأقسام، والمجموعة في المنتصف. */
@media (min-width: 992px) {
  .k-subcats__grid { grid-template-columns: repeat(var(--sc-cols, 6), var(--sc-w, 172px)); justify-content: center; }
  .k-subcat__name { font-size: 15px; }
}
@media (max-width: 991.98px) { .k-subcats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 575.98px) { .k-subcats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .k-subcat__name { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .k-subcat__media img { transition: none; } }

/* موبايل: الأقسام الفرعية كسلايدر بنفس أسهم سلايدر الآراء (data-subcats-slider) */
.k-subcats .k-subcats__nav, .k-subcats .k-subcats__more { display: none; }
@media (max-width: 767.98px) {
  .k-subcats { --sc-per: 2.3; --sc-gap: 12px; }
  .k-subcats .k-section-head { margin-bottom: 20px; }
  .k-subcats__all { display: none; }
  .k-subcats .k-subcats__nav { display: flex; }
  .k-subcats .k-hreviews__btn { width: 34px; height: 34px; }
  .k-subcats .k-hreviews__btn i { font-size: 16px; }
  .k-subcats__grid {
    display: flex;
    gap: var(--sc-gap);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    padding-bottom: 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-x: contain;
  }
  .k-subcats__grid::-webkit-scrollbar { display: none; }
  .k-subcat { flex: 0 0 calc((100% - (var(--sc-per) - 1) * var(--sc-gap)) / var(--sc-per)); scroll-snap-align: start; }
  .k-subcats .k-subcats__more { display: flex; align-items: center; justify-content: center; gap: 6px; width: 100%; min-height: 44px; margin-top: 16px; }
  .k-subcats .k-subcats__more i { font-size: 16px; }
}
@media (max-width: 767.98px) and (prefers-reduced-motion: reduce) { .k-subcats__grid { scroll-behavior: auto; } }

/* ── تمييز أقسام المنتجات (جديد / تخفيضات / الأكثر مبيعاً) — بنفس ألوان الهوية ── */
/* الجديد: خلفية بيضاء كباقي الأقسام */
.k-section--new .k-section-head { margin-bottom: 32px; }

/* التخفيضات: خلفية بيضاء، والتمييز بأحمر الهوية: العنوان الصغير + شارة النسبة + السعر الجديد + سطر التوفير.
   شارة الخصم الحمراء تظهر في هذا القسم فقط (باقي الموقع يعرض السعر القديم/الجديد بدون شارة). */
.k-section--sale { padding-top: 0; }
/* رابط «العروض» في القايمة (/#sale): نزول سلس للقسم مع ترك مسافة تحت الهيدر الثابت */
html { scroll-behavior: smooth; }
.k-section--sale { scroll-margin-top: 96px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
.k-section--sale .k-eyebrow { color: var(--k-err); }
.k-section--sale .k-product .k-badge-sale { background: var(--k-err); color: var(--k-white); }
.k-section--sale .k-product .k-price-now { color: var(--k-err); }
.k-price-save {
  display: block;
  margin-top: 4px;
  text-align: center;
  font-size: 12px;
  line-height: 1.4;
  color: var(--k-err);
}
.k-price-save .amount, .k-price-save .woocommerce-Price-amount { color: inherit; font-weight: 600; }

/* الأكثر مبيعاً: رقم الترتيب في ركن الصورة السفلي (الركن المقابل لزر السلة) */
.k-section--best .k-eyebrow i { vertical-align: -2px; font-size: 14px; }
.k-product .k-rank {
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 3;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--k-black);
  color: var(--k-white);
  font-family: Georgia, var(--k-font), serif;
  font-size: 15px;
  font-weight: 500;
  line-height: 1;
}
@media (max-width: 575.98px) {
  .k-product .k-rank { width: 26px; height: 26px; font-size: 13px; }
}

/* ══════ «قريباً»: شارة على كروت التصنيفات الفارغة + بانر صفحة التصنيف الفارغة ══════ */
.k-shopsub__media, .k-subcat__media { position: relative; }
.k-soon-tag {
  position: absolute; top: 9px; right: -24px; width: 76px; transform: rotate(45deg); transform-origin: center;
  background: var(--k-black); color: var(--k-white); font-style: normal; font-size: 9px; font-weight: 600; line-height: 1.7;
  text-align: center; padding: 1px 0; letter-spacing: 0; pointer-events: none;
}
@media (min-width: 992px) { .k-shopsub__media .k-soon-tag { top: 11px; right: -28px; width: 92px; font-size: 10px; } }
.k-subcat__media .k-soon-tag { top: 20px; right: -34px; width: 124px; font-size: 12px; padding: 3px 0; }
.k-soon {
  text-align: center; padding: 72px 24px; background: var(--k-bone); border: 1px solid var(--k-hairline);
}
.k-soon__eyebrow { display: inline-block; padding: 3px 14px; background: var(--k-black); color: var(--k-white); font-size: 12px; font-weight: 600; margin-bottom: 16px; }
.k-soon__title { font-size: 28px; color: var(--k-black); margin: 0 0 10px; }
.k-soon__text { color: var(--k-gray-700); max-width: 420px; margin: 0 auto 24px; line-height: 1.9; }
.k-soon__actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.k-soon__actions .k-btn i { font-size: 18px; vertical-align: -3px; }
@media (max-width: 575.98px) { .k-soon { padding: 48px 16px; } .k-soon__title { font-size: 24px; } }

/* ── اقتراحات عشوائية (تحت تصنيفات الحقائب) ── */
.k-section--suggest .k-section-head { margin-bottom: 32px; }
.k-suggest-item.is-in { animation: kSuggestIn .35s ease both; }
@keyframes kSuggestIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .k-suggest-item.is-in { animation: none; } }

/* رسومات التصنيفات (SVG) بدل أيقونات Tabler للأقسام بلا صورة */
.k-cat-drawing { display: block; width: 74%; height: auto; pointer-events: none; }
.k-subcat__media.has-drawing .k-cat-drawing { position: absolute; inset: 0; margin: auto; width: 72%; max-height: 72%; }
.k-shopsub__media.has-drawing .k-cat-drawing { width: 80%; }
.k-shopsub__item.is-active .k-shopsub__media.has-drawing { background: var(--k-bone); }
