/* ═══════════════════════════════════════════════
   Borbone — Fixes & Enhancements
   pagination · filter scrollbar · misc
════════════════════════════════════════════════ */


/* ─────────────────────────────────────────────
   1. PAGINATION
───────────────────────────────────────────── */

.archive-pagination {
  margin: 48px 0 16px;
  display: flex;
  justify-content: center;
  direction: ltr;
}

/* List reset */
.archive-pagination ul.page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* Base chip — every page number / dot / prev / next */
.archive-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 10px;
  border-radius: 50px;
  font-size: 14px;
  font-family: inherit;
  text-decoration: none;
  color: var(--primary);
  background: #fff;
  border: 1.5px solid var(--border-color);
  transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.15s;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
}

/* Hover — numbered pages */
.archive-pagination a.page-numbers:hover {
  background: var(--light-primary);
  border-color: var(--primary);
  color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 50, 119, 0.12);
}

/* Active / current page */
.archive-pagination .page-numbers.current {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(30, 50, 119, 0.3);
  cursor: default;
  transform: none;
}

/* Dots (…) */
.archive-pagination .page-numbers.dots {
  border-color: transparent;
  background: transparent;
  cursor: default;
  color: #aaa;
  letter-spacing: 2px;
  min-width: 24px;
}

/* Prev & Next buttons — pill style */
.archive-pagination .prev.page-numbers,
.archive-pagination .next.page-numbers {
  gap: 6px;
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 50px;
  background: #fff;
  color: var(--primary);
  border-color: var(--border-color);
}

.archive-pagination .prev.page-numbers:hover,
.archive-pagination .next.page-numbers:hover {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(30, 50, 119, 0.2);
}

/* SVG arrow inside prev/next */
.archive-pagination .prev.page-numbers .icon,
.archive-pagination .next.page-numbers .icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

/* Flip arrow for prev (RTL-style: prev points right) */
.archive-pagination .prev.page-numbers .icon {
  transform: rotate(180deg);
}

/* Mobile: shrink a bit */
@media (max-width: 600px) {
  .archive-pagination .page-numbers {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
  .archive-pagination .prev.page-numbers,
  .archive-pagination .next.page-numbers {
    padding: 0 12px;
    font-size: 12px;
  }
}


/* ─────────────────────────────────────────────
   2. FILTER SIDEBAR SCROLLBAR
   سایدبار تاریک (--primary-darker) → اسکرول‌بار سفید شفاف
───────────────────────────────────────────── */

/* Firefox */
.filter-sidebar-content {
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.22) transparent;
}

/* Chrome / Safari / Edge */
.filter-sidebar-content::-webkit-scrollbar {
  width: 4px;
}

.filter-sidebar-content::-webkit-scrollbar-track {
  background: transparent;
  margin: 8px 0;
}

.filter-sidebar-content::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  transition: background 0.3s;
}

.filter-sidebar-content::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.42);
}

/* ── Smooth fade at bottom to indicate scrollable content ── */
.filter-sidebar-content::after {
  content: "";
  display: block;
  height: 24px;
  flex-shrink: 0;
}


/* ─────────────────────────────────────────────
   3. FILTER GROUP ANIMATIONS
   بهبود آنیمیشن باز/بسته شدن گروه‌های فیلتر
───────────────────────────────────────────── */

.filter-group-wrapper {
  /* override the max-height from existing styles: use height transition instead */
  overflow: hidden;
}

.filter-group .filter-checkbox {
  /* Smooth appearance when group opens */
  transition: opacity 0.2s;
}
.filter-group.closed .filter-checkbox {
  opacity: 0;
}


/* ─────────────────────────────────────────────
   4. ACTIVE FILTER TAGS
   تگ‌های فیلتر فعال در toolbar
───────────────────────────────────────────── */

.active-filter-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--light-primary);
  border: 1px solid var(--primary);
  color: var(--primary);
  border-radius: 20px;
  padding: 3px 10px 3px 6px;
  font-size: 12px;
  font-weight: 600;
  animation: tagSlideIn 0.2s ease;
}

@keyframes tagSlideIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}

.tag-remove {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}
.tag-remove:hover {
  background: var(--primary);
  color: #fff;
}


/* ─────────────────────────────────────────────
   SINGLE PRODUCT — Contact Price + Wishlist
───────────────────────────────────────────── */

/* wrapper دکمه تماس */
.sp-price-contact-wrap {
  margin: 20px 0 24px;
}

/* دکمه تماس — full-width، سبک تم (navy pill با fill animation) */
.sp-contact-price-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background-color: var(--primary-dark, #112756);
  color: #fff;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.3px;
  overflow: hidden;
  z-index: 1;
  transition: background-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
  min-height: 50px;
  box-sizing: border-box;
}
.sp-contact-price-btn::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 0; height: 100%;
  z-index: -1;
  background-color: var(--primary-darker, #0d1e4a);
  transition: width 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}
.sp-contact-price-btn:hover::before {
  width: 100%;
}
.sp-contact-price-btn:hover {
  color: #fff;
  box-shadow: 0 6px 20px rgba(17, 39, 86, 0.35);
  transform: translateY(-1px);
}
.sp-contact-price-btn svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* دکمه علاقه‌مندی — زیر accordion، outlined pill سبک تم */
.sp-wishlist-btn {
  position: static !important;   /* override موقعیت absolute از style.min.css */
  top: auto !important;
  right: auto !important;
  left: auto !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  color: var(--primary-dark, #112756);
  border: 1.5px solid var(--primary-dark, #112756);
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  letter-spacing: 0.3px;
  transition: background 0.25s, color 0.25s, border-color 0.25s, box-shadow 0.25s, transform 0.2s;
  min-height: 46px;
  margin-top: 16px;
  box-sizing: border-box;
}
.sp-wishlist-btn svg {
  width: 18px !important;
  height: 18px !important;
  flex-shrink: 0;
  transition: fill 0.25s, stroke 0.25s;
}
.sp-wishlist-btn .heart-path {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: fill 0.25s, stroke 0.25s;
}
.sp-wishlist-btn:hover {
  background: var(--light-primary, #e6ebf5);
  border-color: var(--primary, #1e3277);
  color: var(--primary, #1e3277);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30, 50, 119, 0.12);
}

/* حالت "در علاقه‌مندی‌ها" — navy پر با قلب سفید */
.sp-wishlist-btn.in-wishlist {
  background: var(--primary-dark, #112756);
  border-color: var(--primary-dark, #112756);
  color: #fff;
  box-shadow: 0 4px 16px rgba(17, 39, 86, 0.28);
}
.sp-wishlist-btn.in-wishlist:hover {
  background: var(--primary-darker, #0d1e4a);
  border-color: var(--primary-darker, #0d1e4a);
  color: #fff;
}
.sp-wishlist-btn.in-wishlist .heart-path {
  fill: #fff;
  stroke: #fff;
}

/* contact-price در آرشیو */
a.contact-price {
  color: var(--primary, #1e3277);
  text-decoration: none;
  font-weight: 600;
}
a.contact-price:hover { text-decoration: underline; }


/* ── اسلایدرهای دسته‌بندی محصولات (زیر هیرو) ── */
.home-cat-slider-section {
  padding: 45px 0;
}
.home-cat-slider-alt-bg {
  background-color: #f4f4f4;
}
.home-cat-slider-section .section-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
}
.home-cat-slider-section .section-title {
  font-size: 32px;
  color: var(--primary-darker, #0d1e4a);
  font-weight: normal;
  margin: 0;
}
.home-cat-slider-section .view-all-link {
  font-size: 14px;
  color: var(--primary-darker, #0d1e4a);
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: normal;
  text-decoration: none;
  transition: color 0.3s ease;
}
.home-cat-slider-section .view-all-text {
  position: relative;
  padding-bottom: 2px;
}
.home-cat-slider-section .view-all-text::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 1.5px;
  background-color: var(--primary, #1e3277);
  transition: width 0.3s ease;
}
.home-cat-slider-section .view-all-link:hover .view-all-text::after {
  width: 100%;
}
.home-cat-slider-section .view-all-icon {
  width: 24px;
  height: 24px;
  background-color: #f0f0f0;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  color: var(--primary-darker, #0d1e4a);
}
.home-cat-slider-section .view-all-link:hover .view-all-icon {
  background-color: var(--primary, #1e3277);
  color: #fff;
}
.home-cat-slider-section .view-all-icon svg {
  rotate: 180deg;
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  transition: stroke 0.3s ease;
}
.home-cat-slider-wrap {
  padding: 0;
}
.home-cat-swiper {
  overflow: hidden;
}
.home-cat-swiper .swiper-slide {
  height: auto;
}
.home-cat-swiper .swiper-slide .pod-card {
  height: 100%;
}
.home-cat-slider-big-img .pod-image-wrapper {
  height: 300px;
}
.home-cat-slider-big-img .pod-image-link {
  transform: scale(1.2);
}

/* ── بزرگ‌نمایی عکس آیتم‌های آرشیو و کتگوری‌ها (هم‌راستا با اسلایدرهای خانه) ── */
.archive-card-image img {
  transform: translate(-50%, -50%) scale(1.2);
}

/* ── اصلاح چیدمان آیکون‌های هدر در موبایل ── */
@media (max-width: 576px) {
  .header-icons {
    flex-direction: row-reverse;
  }
  .mobile-toggle-btn {
    margin-left: auto;
  }
}

/* ── صفحه تماس با ما ── */
.contact-hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  padding: 70px 20px;
  background-color: var(--primary-darker);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.5px, transparent 1.5px);
  background-size: 22px 22px;
  color: var(--light-secondary);
  overflow: hidden;
}
.contact-hero-section::after {
  content: "";
  position: absolute;
  bottom: -60px;
  right: 50%;
  transform: translateX(50%);
  width: 260px;
  height: 120px;
  background: var(--secondary);
  opacity: 0.15;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.contact-hero-section h1 {
  font-size: 34px;
  font-weight: 700;
  color: var(--white);
  margin: 0;
}
.contact-hero-section p {
  font-size: 15px;
  color: var(--light-secondary);
  opacity: 0.85;
  margin: 0;
}

.contact-phone-section {
  padding: 80px 0 100px;
}
.contact-phone-box {
  position: relative;
  max-width: 460px;
  margin: -70px auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  background-color: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 60px 30px 50px;
  box-shadow: 0 20px 45px rgba(17, 39, 86, 0.12);
  overflow: visible;
}
.contact-phone-box::before {
  content: "";
  position: absolute;
  top: 0;
  right: 30px;
  left: 30px;
  height: 4px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--secondary), var(--primary-extra-2));
}
.contact-phone-ring {
  position: relative;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: var(--light-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -76px;
}
.contact-phone-icon {
  width: 68px;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--primary-extra-2), var(--primary-darker));
  color: var(--white);
  box-shadow: 0 10px 25px rgba(17, 39, 86, 0.3);
}
.contact-phone-icon svg {
  width: 28px;
  height: 28px;
}
.contact-phone-label {
  font-size: 15px;
  color: var(--font-color);
  opacity: 0.8;
}
.contact-phone-number {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 32px;
  font-weight: 700;
  color: var(--primary-darker);
  letter-spacing: 0.5px;
  padding: 10px 26px;
  border-radius: 50px;
  background-color: var(--light-primary);
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.25s ease;
}
.contact-phone-number:hover {
  background-color: var(--secondary);
  color: var(--primary-darker);
  transform: translateY(-2px);
}
@media (max-width: 576px) {
  .contact-hero-section { padding: 55px 20px 90px; }
  .contact-hero-section h1 { font-size: 26px; }
  .contact-phone-box { padding: 55px 20px 40px; margin-top: -60px; }
  .contact-phone-ring { margin-top: -66px; width: 80px; height: 80px; }
  .contact-phone-icon { width: 58px; height: 58px; }
  .contact-phone-number { font-size: 24px; padding: 8px 20px; }
}

/* ── قالب ساده صفحه (page.php) ── */
.simple-page-section {
  padding-top: 50px;
  padding-bottom: 50px;
}
.simple-page-title {
  font-size: 28px;
  font-weight: 600;
  color: var(--font-color, #222);
  margin-bottom: 30px;
}
.simple-page-content {
  font-size: 15px;
  line-height: 2;
  color: var(--font-color, #444);
}
.simple-page-content img {
  max-width: 100%;
  height: auto;
}
@media (max-width: 576px) {
  .simple-page-section { padding-top: 35px; padding-bottom: 35px; }
  .simple-page-title { font-size: 22px; margin-bottom: 20px; }
}
