/* ============================================
   صفحه‌ی فروشگاه و دسته‌بندی‌ها
   (عنوان دسته، نوار چسبان دسته/تعداد/مرتب‌سازی، صفحه‌بندی)
   ============================================ */

/* عنوان پیش‌فرض ووکامرس: در فروشگاه هیرو جایش را گرفته،
   در دسته‌ها عنوان اختصاصی ll-archive-head جایش را گرفته */
.woocommerce-products-header {
  display: none !important;
}

/* ---------- عنوان صفحه‌ی دسته: زیر «دریچه‌ی نور» (light.css) ---------- */

/* صحنه درست زیر هدر شروع می‌شود (فاصله‌ی خالی بالا حذف شد) */
.ll-archive-stage {
  margin: 0;
  padding: 46px clamp(16px, 2.4vw, 44px) 38px;
  min-height: 300px;
}
.ll-archive-head {
  --sky-x: 110px;
  --sky-top: 90px;
  --sky-bottom: 40px;
  --sky-a: .17;
}
.ll-archive-head__crumbs .woocommerce-breadcrumb {
  margin: 14px 0 0 !important;
  padding: 0 !important;
  font-size: 11.5px !important;
  color: rgba(245, 240, 232, .4) !important;
}
.ll-archive-head__crumbs a { color: rgba(199, 164, 106, .8) !important; text-decoration: none; }
@media (max-width: 780px) {
  .ll-archive-stage { padding: 34px 14px 30px; min-height: 250px; }
  .ll-archive-head { --sky-x: 10px; --sky-top: 60px; }
}

.ll-archive-head__eyebrow {
  font-family: var(--font-body);
  font-size: 10px;
  letter-spacing: 0.5em;
  color: var(--lux-ivory-dim);
  margin-bottom: 10px;
}

.ll-archive-head__title {
  font-family: var(--font-display) !important;
  font-weight: 400 !important;
  font-size: clamp(34px, 4.6vw, 58px) !important;
  line-height: 1.3;
  margin: 0 !important;
  background: linear-gradient(180deg, #F6E7C3 0%, #E2C48C 45%, #B48F55 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.ll-archive-head__desc {
  max-width: 620px;
  margin: 14px auto 0;
  font-size: 14px;
  line-height: 2;
  color: var(--lux-ivory-dim);
}
.ll-archive-head__desc p { margin: 0; }

/* ---------- نوار فروشگاه (چسبان، یک ردیف) ----------
   [تعداد]   [دسته‌ها]   [مرتب‌سازی]
   بدون هیچ کادری؛ هاور روی دسته = نور اسپات‌لایت از بالا */

.ll-shop-bar {
  position: sticky;
  top: 0;
  z-index: 50;
  margin: 0 0 clamp(18px, 2vw, 28px);
  background: linear-gradient(180deg, rgba(6,19,13,0.94) 0%, rgba(6,19,13,0.86) 100%);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: top 0.5s var(--lux-transition);
}

/* وقتی هدر کوچک‌شده برمی‌گردد، نوار زیر آن می‌نشیند */
body.ll-hdr-compact .ll-shop-bar { top: 80px; }

/* خط طلایی محو زیر نوار */
.ll-shop-bar::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(199,164,106,0.28) 20%, rgba(199,164,106,0.28) 80%, transparent);
  pointer-events: none;
}

.ll-shop-bar__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  height: 72px;
  padding: 0 clamp(16px, 2.4vw, 44px);
}

.ll-shop-bar__count {
  justify-self: start;
  font-size: 12px;
  letter-spacing: 0.08em;
  color: var(--lux-ivory-dim);
  white-space: nowrap;
}

.ll-shop-bar__cats { min-width: 0; height: 100%; }

.ll-cats {
  display: flex;
  align-items: stretch;
  gap: 2px;
  height: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ll-cats li { display: flex; }

/* لینک دسته: بدون کادر */
.ll-cats__link {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  height: 100%;
  padding: 0 20px;
  font-family: var(--font-body);
  font-size: 14px;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(232,228,220,0.62) !important;
  background: transparent !important;
  transition: color 0.45s ease, text-shadow 0.45s ease;
}

/* مخروط نور از بالا */
.ll-cats__link::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 50%;
  width: 150%;
  height: 100%;
  transform: translateX(-50%);
  background: linear-gradient(180deg,
    rgba(240,220,174,0.34) 0%,
    rgba(240,220,174,0.12) 55%,
    rgba(240,220,174,0) 100%);
  clip-path: polygon(43% 0, 57% 0, 100% 100%, 0 100%);
  filter: blur(7px);
  opacity: 0;
  transition: opacity 0.55s ease;
  pointer-events: none;
}

/* منبع نور: یک خط کوچک درخشان بالای دسته */
.ll-cats__link::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  width: 26px;
  height: 1px;
  transform: translateX(-50%) scaleX(0.4);
  background: var(--lux-champagne);
  box-shadow: 0 0 10px 2px rgba(240,220,174,0.55);
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.55s var(--lux-transition);
  pointer-events: none;
}

.ll-cats__link:hover,
.ll-cats__link:focus-visible {
  color: #F6EEDC !important;
  text-shadow: 0 0 18px rgba(240,220,174,0.45);
  outline: none;
}
.ll-cats__link:hover::before,
.ll-cats__link:focus-visible::before { opacity: 1; }
.ll-cats__link:hover::after,
.ll-cats__link:focus-visible::after { opacity: 1; transform: translateX(-50%) scaleX(1); }

/* دسته‌ی فعلی: نور ملایم‌تر و همیشگی */
.ll-cats__link.is-active { color: var(--lux-gold) !important; }
.ll-cats__link.is-active::before { opacity: 0.5; }
.ll-cats__link.is-active::after { opacity: 0.75; transform: translateX(-50%) scaleX(1); }

/* مرتب‌سازی: بدون کادر */
.ll-shop-bar__sort {
  justify-self: end;
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--lux-gold);
}

.ll-shop-bar__sort-icon { width: 18px; height: 18px; flex-shrink: 0; }

.ll-shop-bar .woocommerce-ordering { margin: 0 !important; float: none !important; }

.ll-shop-bar .woocommerce-ordering select {
  -webkit-appearance: none;
  appearance: none;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  background-color: transparent;
  background-image: none;
  padding: 8px 0;
  text-align: right;
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(232,228,220,0.75);
  cursor: pointer;
  transition: color 0.3s ease;
}

.ll-shop-bar .woocommerce-ordering select:hover,
.ll-shop-bar .woocommerce-ordering select:focus {
  color: var(--lux-champagne);
  outline: none;
}

.ll-shop-bar .woocommerce-ordering select option {
  background: var(--lux-emerald);
  color: var(--lux-ivory);
}

/* ---------- نوار فروشگاه — موبایل ----------
   دسته‌ها در یک ردیف افقی قابل کشیدن؛ مرتب‌سازی فقط آیکن */
@media (max-width: 780px) {
  body.ll-hdr-compact .ll-shop-bar { top: 68px; }

  .ll-shop-bar__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px;
    height: 58px;
    padding: 0 0 0 12px;
  }

  .ll-shop-bar__count { display: none; }

  .ll-shop-bar__cats {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 12px), transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0, #000 24px, #000 calc(100% - 12px), transparent 100%);
  }
  .ll-shop-bar__cats::-webkit-scrollbar { display: none; }

  .ll-cats { width: max-content; padding: 0 8px; }
  .ll-cats__link { padding: 0 14px; font-size: 13px; }

  /* آیکن مرتب‌سازی؛ خود select شفاف روی آن است تا منوی بومی گوشی باز شود */
  .ll-shop-bar__sort { width: 44px; height: 44px; justify-content: center; }
  .ll-shop-bar__sort-icon { width: 22px; height: 22px; }
  .ll-shop-bar .woocommerce-ordering { position: absolute; inset: 0; }
  .ll-shop-bar .woocommerce-ordering select {
    width: 100%;
    height: 100%;
    opacity: 0;
    padding: 0;
  }
}

/* ---------- بردکرامب ---------- */

.woocommerce .woocommerce-breadcrumb,
.woocommerce-page .woocommerce-breadcrumb {
  margin: 0 !important;
  padding: 12px clamp(16px, 2.4vw, 44px) 0;
  font-size: 12px;
  color: var(--lux-ivory-dim);
  letter-spacing: 0.04em;
}

.woocommerce .woocommerce-breadcrumb a {
  color: var(--lux-ivory-dim);
  text-decoration: none;
}
.woocommerce .woocommerce-breadcrumb a:hover { color: var(--lux-gold); }

/* در صفحه‌ی اصلی فروشگاه بردکرامب زیر هیرو بی‌معنی است */
body.ll-has-hero .woocommerce-breadcrumb { display: none; }

/* ---------- صفحه‌بندی ---------- */

.woocommerce nav.woocommerce-pagination {
  margin: 48px auto 72px;
  text-align: center;
}

.woocommerce nav.woocommerce-pagination ul {
  border: 0 !important;
  display: inline-flex;
  gap: 8px;
}

.woocommerce nav.woocommerce-pagination ul li { border: 0 !important; }

.woocommerce nav.woocommerce-pagination ul li a,
.woocommerce nav.woocommerce-pagination ul li span {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--lux-gold-border) !important;
  border-radius: 50%;
  color: var(--lux-silver) !important;
  background: transparent !important;
  font-size: 13px;
}

.woocommerce nav.woocommerce-pagination ul li span.current {
  background: var(--lux-gold) !important;
  color: var(--lux-emerald) !important;
  border-color: var(--lux-gold) !important;
}

/* فاصله‌ی انتهای گرید تا فوتر */
.woocommerce ul.products { margin-bottom: 72px !important; }
