@charset "UTF-8";
/* =========================================
   PRODUCTS WRAPPER (ROOT FIX)
========================================= */
.products-wrapper {
  position: relative;
  min-height: 800px;
}

.sk-btn {
  height: 42px;
  width: 100%;
  border-radius: 12px;
  margin-top: 10px;
  position: relative;
  overflow: hidden;
  background: #ececec;
}
.sk-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ececec 25%, #f7f7f7 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.2s infinite;
}

/* =========================================
   REAL GRID
========================================= */
.products-grid {
  position: relative;
  z-index: 1;
  opacity: 0;
  transition: opacity 0.45s ease, transform 0.45s ease;
  transform: translateY(6px);
}

/* =========================================
   SKELETON OVERLAY
========================================= */
.products-skeleton {
  position: absolute;
  inset: 0;
  z-index: 2;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  background: transparent;
}

/* =========================================
   LOADED STATE (MAIN SWITCH)
========================================= */
.products-wrapper.loaded .products-grid {
  opacity: 1;
  transform: translateY(0);
}
.products-wrapper.loaded .products-skeleton {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* =========================================
   SKELETON CARD
========================================= */
.sk-product-card {
  padding: 12px;
}

/* IMAGE SKELETON */
.sk-img {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 14px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  background: #ececec;
}
.sk-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ececec 25%, #f7f7f7 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.2s infinite;
}

/* TEXT LINES */
.sk-line {
  height: 10px;
  border-radius: 30px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
  background: #ececec;
}
.sk-line::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, #ececec 25%, #f7f7f7 50%, #ececec 75%);
  background-size: 200% 100%;
  animation: skeletonLoading 1.2s infinite;
}

/* WIDTH HELPERS */
.w-60 {
  width: 60%;
}

.w-80 {
  width: 80%;
}

.w-100 {
  width: 100%;
}

/* =========================================
   ANIMATION
========================================= */
@keyframes skeletonLoading {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}
/* =========================================
   RESPONSIVE FIX (OPTIONAL SAFETY)
========================================= */
@media (max-width: 768px) {
  .products-wrapper {
    min-height: 1000px;
  }
}
@media (max-width: 576px) {
  .products-wrapper {
    min-height: 1200px;
  }
}
.filter-sidebar {
  position: sticky;
  top: 20px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--theme-radius);
  padding: 1.5rem;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.6);
}
@media (max-width: 992px) {
  .filter-sidebar {
    display: none;
  }
}
.filter-sidebar .sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.filter-sidebar .sidebar-header h5 {
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0;
}
.filter-sidebar .sidebar-header .products-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--theme-color-100);
  background: #faf9ff;
  padding: 4px 10px;
  border-radius: 999px;
}

/* =========================
ACTIVE FILTERS
========================= */
.active-filters-box {
  margin: 1rem 0;
  padding: 1.2rem;
  border-radius: 24px;
  background: #faf9ff;
}

.active-filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.active-filters-header h6 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.clear-filters-btn {
  border: none;
  background: transparent;
  color: #ef4444;
  font-size: 0.85rem;
  font-weight: 700;
  transition: 0.3s;
}
.clear-filters-btn:hover {
  opacity: 0.7;
}

.active-filters-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.active-filter-item {
  min-height: 42px;
  padding: 0.5rem 0.6rem 0.5rem 0.9rem;
  border-radius: 14px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  animation: filterFade 0.3s ease;
}
.active-filter-item span {
  font-size: 0.85rem;
  font-weight: 700;
  color: #0f172a;
}

.remove-filter-btn {
  width: 24px;
  height: 24px;
  border: none;
  border-radius: 50%;
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: 0.3s;
}
.remove-filter-btn:hover {
  transform: rotate(90deg);
  background: #ef4444;
  color: #fff;
}

/* =========================
ANIMATION
========================= */
@keyframes filterFade {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
/* =========================
MAIN BUTTONS
========================= */
.filter-main-menu {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}
.filter-main-menu .filter-menu-btn {
  position: relative;
  height: 45px;
  border: none;
  border-radius: var(--theme-radius);
  background: #f4f4f4;
  font-weight: 700;
  transition: 0.3s;
  overflow: hidden;
  width: 100%;
}
.filter-main-menu .filter-menu-btn:hover {
  transform: translateY(-4px);
}
.filter-main-menu .filter-menu-btn.active {
  color: #fff;
  background: var(--theme-color-100);
}
@media screen and (max-width: 321px) {
  .filter-main-menu .filter-menu-btn {
    padding: 5px;
    font-size: 15px;
  }
}

/* =========================
PANELS
========================= */
.filter-panel {
  display: none;
  animation: fadePanel 0.35s ease;
}
.filter-panel.active-panel {
  display: block;
}

.panel-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.panel-top h6 {
  font-size: 1rem;
  font-weight: 800;
  margin: 0;
}

/* =========================
STEP SYSTEM
========================= */
.filter-step {
  display: none;
}
.filter-step.active-step {
  display: block;
  animation: slideStep 0.35s ease;
}

/* =========================
LIST ITEMS
========================= */
/* =========================
FILTER LIST SCROLL
========================= */
.filter-list {
  display: grid;
  gap: 0.8rem;
  max-height: 180px;
  overflow-y: auto;
  padding-left: 0.3rem;
  padding-top: 10px;
  scrollbar-width: thin;
  scrollbar-color: var(--theme-color-100) transparent;
  /* CHROME */
}
.filter-list::-webkit-scrollbar {
  width: 6px;
}
.filter-list::-webkit-scrollbar-track {
  background: transparent;
}
.filter-list::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, var(--theme-color-100), var(--theme-color-200));
  border-radius: 200px;
}
.filter-list::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, var(--theme-color-100), var(--theme-color-200));
}

.filter-item-btn,
.checkbox-item,
.radio-item {
  min-height: 5px;
  display: flex;
  align-items: center;
  padding: 10px 15px;
  border-radius: var(--theme-radius);
  background: #f8fafc;
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
}
.filter-item-btn:hover,
.checkbox-item:hover,
.radio-item:hover {
  border-color: var(--theme-color-100);
  transform: translateX(-4px);
}

.radio-item {
  min-height: 5px;
  display: flex;
  align-items: center;
  flex-direction: row-reverse; /* 👈 کل جهت برعکس شد */
  justify-content: space-between;
  padding: 10px 15px;
  border-radius: var(--theme-radius);
  background: #f8fafc;
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid transparent;
  gap: 10px;
  position: relative;
}
.radio-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.radio-item span {
  flex: 1;
  text-align: right; /* 👈 متن سمت راست */
}
.radio-item {
  /* radio circle */
}
.radio-item::before {
  content: "";
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  flex-shrink: 0;
}
.radio-item {
  /* hover */
}
.radio-item:hover {
  border-color: var(--theme-color-100);
  transform: translateX(-4px);
}
.radio-item {
  /* checked state */
}
.radio-item:has(input:checked) {
  border-color: var(--theme-color-100);
  background: rgba(124, 58, 237, 0.06);
}
.radio-item:has(input:checked)::before {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
  border-color: transparent;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.25);
}

.filter-item-btn {
  padding: 10px 15px;
  border: none;
  width: 100%;
  font-weight: 700;
}
.filter-item-btn:hover svg {
  color: var(--theme-color-100);
}

/* =========================
CUSTOM CHECKBOX ITEM
========================= */
.checkbox-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-direction: row-reverse;
  gap: 0.8rem;
  cursor: pointer;
  user-select: none;
}
.checkbox-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.checkbox-item span {
  font-size: 14px;
  font-weight: 600;
  color: #334155;
}
.checkbox-item {
  /* CHECK ICON BOX */
}
.checkbox-item::before {
  content: "";
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid #d1d5db;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.25s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.04);
}
.checkbox-item {
  /* CHECK ICON */
}
.checkbox-item::after {
  content: "";
  position: absolute;
  right: 6px;
  width: 10px;
  height: 6px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) scale(0);
  transition: 0.2s ease;
  opacity: 0;
}
.checkbox-item {
  /* HOVER */
}
.checkbox-item:hover::before {
  border-color: var(--theme-color-100);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.15);
}
.checkbox-item {
  /* CHECKED STATE */
}
.checkbox-item input:checked + span {
  color: var(--theme-color-100);
}
.checkbox-item input:checked ~ * {
  /* nothing here (safety) */
}
.checkbox-item {
  /* WHEN CHECKED */
}
.checkbox-item input:checked ~ span {
  color: var(--theme-color-100);
}
.checkbox-item input:checked + span {
  font-weight: 700;
}
.checkbox-item {
  /* IMPORTANT: STYLE WHEN CHECKED */
}
/* REAL CHECKED EFFECT */
.checkbox-item:has(input:checked)::before {
  background: var(--theme-color-100);
  border-color: transparent;
  box-shadow: 0 10px 25px rgba(124, 58, 237, 0.25);
}
.checkbox-item:has(input:checked)::after {
  opacity: 1;
  transform: rotate(-45deg) scale(1);
}

/* =========================
PRICE BOX
========================= */
.price-box {
  display: grid;
  gap: 1rem;
}

.price-input-group label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: 700;
}
.price-input-group .form-control {
  height: 56px;
  border-radius: 18px;
  border: 1px solid #e5e7eb;
  box-shadow: none;
}
.price-input-group .form-control:focus {
  border-color: var(--theme-color-100);
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.12);
}

/* =========================
PRODUCT CARD
========================= */
.product-card {
  background: #fff;
  border-radius: 28px;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.08);
  transition: 0.4s;
}
.product-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.12);
}
.product-card .product-image {
  height: 240px;
  overflow: hidden;
}
.product-card .product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.product-card .product-body {
  padding: 1.2rem;
}
.product-card .product-body h3 {
  font-size: 1rem;
  font-weight: 800;
}
.product-card .product-body p {
  color: #64748b;
}
.product-card .product-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
}
.product-card .product-bottom button {
  border: none;
  height: 42px;
  padding: 0 1rem;
  border-radius: 12px;
  background: #7c3aed;
  color: #fff;
  font-weight: 700;
}

/* =========================
PAGINATION
========================= */
/* =========================
PAGINATION
========================= */
.custom-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* FIXED BUTTONS */
.page-nav-btn {
  flex-shrink: 0;
  min-width: 80px;
  height: 48px;
  border: none;
  border-radius: 14px;
  background: #fff;
  font-weight: 700;
  box-shadow: 0 8px 25px rgba(15, 23, 42, 0.06);
  transition: 0.3s;
}
.page-nav-btn:hover {
  transform: translateY(-3px);
}

/* SCROLL AREA */
/* =========================
LIMIT PAGINATION WIDTH
========================= */
.pagination-scroll {
  flex: unset;
  width: 340px; /* حدود 5.5 آیتم */
  overflow-x: auto;
  scrollbar-width: none;
}
.pagination-scroll::-webkit-scrollbar {
  display: none;
}

/* CENTER WHOLE PAGINATION */
.custom-pagination {
  justify-content: center;
}

/* MOBILE */
@media (max-width: 576px) {
  .pagination-scroll {
    width: 220px;
  }
}
/* NUMBERS */
.pagination-numbers {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
  width: max-content;
}
.pagination-numbers li {
  flex-shrink: 0;
}
.pagination-numbers li a {
  width: 48px;
  height: 48px;
  border-radius: var(--theme-radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--theme-color-100);
  background: #f4f4f4;
  text-decoration: none;
  font-weight: 700;
  transition: 0.3s;
}
.pagination-numbers li a:hover {
  transform: translateY(-3px);
}
.pagination-numbers li.active a {
  color: #fff;
  background: var(--theme-color-100);
}

/* MOBILE */
@media (max-width: 576px) {
  .page-nav-btn {
    min-width: 65px;
    font-size: 13px;
  }
  .pagination-numbers li a {
    width: 42px;
    height: 42px;
    font-size: 13px;
  }
}
/* =========================
MOBILE FILTER BUTTON
========================= */
/* =========================
   MOBILE FILTER MODAL
========================= */
.mobile-filter-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  visibility: hidden;
  opacity: 0;
  transition: 0.4s;
}
.mobile-filter-modal.active {
  visibility: visible;
  opacity: 1;
}
.mobile-filter-modal.active .mobile-filter-content {
  transform: translateY(0);
}

.mobile-filter-overlay {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  backdrop-filter: blur(6px);
}

.mobile-filter-content {
  position: relative;
  width: 100%;
  max-width: 520px;
  height: 100vh;
  background: #fff;
  border-radius: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 2;
  transform: translateY(100%);
  transition: 0.5s cubic-bezier(0.77, 0, 0.18, 1);
}

.mobile-modal-header {
  height: 60px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  margin-bottom: 0;
  border-bottom: 1px solid #eee;
}
.mobile-modal-header h5 {
  font-weight: bold;
  color: var(--theme-color-100);
}

.mobile-filter-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 20px;
}

.mobile-close-btn {
  border: none;
  background: #f3f4f6;
  border-radius: 14px;
  padding: 0.6rem 1rem;
  font-weight: 700;
  cursor: pointer;
}

/* =========================
   FILTER CONTENT
========================= */
.mobile-filter-body .filter-sidebar {
  width: 100%;
  display: block;
  padding: 0;
  margin: 0;
  background: #fff;
  box-shadow: none;
  border: none;
}
.mobile-filter-body .filter-dynamic-wrapper {
  display: block;
}
.mobile-filter-body .filter-panel {
  display: none;
}
.mobile-filter-body .filter-panel.active-panel {
  display: block;
}
.mobile-filter-body .filter-step {
  display: none;
}
.mobile-filter-body .filter-step.active-step {
  display: block;
}

/* =========================
   ANIMATIONS
========================= */
@keyframes slideStep {
  from {
    opacity: 0;
    transform: translateX(20px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}
@keyframes fadePanel {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.vg-product-card {
  width: 100%;
  background: #fff;
  border-radius: var(--theme-radius);
  padding: 12px;
  border: 1px solid #eee;
  transition: 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.vg-product-card:hover {
  transform: translateY(-4px);
}
.vg-product-card img {
  width: 100%;
  height: 140px;
  object-fit: contain;
  margin-bottom: 10px;
  border-radius: 8px;
}
.vg-product-card .vg-product-content {
  flex: 1;
  display: flex;
  flex-direction: column;
}
.vg-product-card .vg-product-title {
  line-height: 1.5rem;
  font-size: 14px;
  font-weight: 600;
  text-align: right;
  margin-bottom: 6px;
  min-height: 40px;
}
.vg-product-card .vg-product-desc {
  font-size: 12px;
  color: #777;
  text-align: right;
  margin-bottom: 10px;
  line-height: 1.3rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.vg-product-card .vg-product-price {
  text-align: center;
  margin-top: auto;
  margin-bottom: 10px;
}
.vg-product-card .vg-product-price .vg-price-old {
  display: block;
  font-size: 12px;
  color: #999;
  text-decoration: line-through;
}
.vg-product-card .vg-product-price .vg-price-new {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: #222;
}
.vg-product-card .vg-product-btn {
  display: block;
  text-align: center;
  background: var(--theme-color-100);
  color: #fff;
  padding: 10px 12px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 13px;
  transition: 0.3s;
  margin-top: auto;
}
.vg-product-card .vg-product-btn:hover {
  background: #000;
}
.vg-product-card {
  /* ==================== موبایل ==================== */
  /* ==================== موبایل ==================== */
}
@media (max-width: 576px) {
  .vg-product-card {
    flex-direction: row;
    padding: 10px;
    align-items: center; /* مهم */
    gap: 12px;
  }
  .vg-product-card img {
    width: 110px;
    height: 110px;
    margin-bottom: 0;
    flex-shrink: 0;
    object-fit: contain; /* بهتره contain باشه برای تابلو نقاشی */
    object-position: center; /* مرکز کردن عکس داخل باکس */
    /* این بخش خیلی مهم است تا عکس دقیقاً وسط باکسش باشه */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8; /* پس‌زمینه ملایم در صورت contain */
  }
  .vg-product-card .vg-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* محتوا هم وسط عمودی بشه */
  }
  .vg-product-card .vg-product-title {
    text-align: start;
    font-size: 13.5px;
    margin-bottom: 6px;
  }
  .vg-product-card .vg-product-desc {
    text-align: start;
    font-size: 11.5px;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    display: none;
  }
  .vg-product-card .vg-product-price {
    text-align: end;
    margin-bottom: 8px;
  }
  .vg-product-card .vg-product-btn {
    margin-top: auto;
    padding: 9px 12px;
    font-size: 12.5px;
  }
  .vg-product-card .button-style {
    display: none;
    margin-top: auto;
    padding: 9px 12px;
    font-size: 12.5px;
  }
}
@media (max-width: 321px) {
  .vg-product-card {
    flex-direction: row;
    padding: 10px;
    align-items: center; /* مهم */
    gap: 12px;
  }
  .vg-product-card img {
    width: 110px;
    height: 110px;
    margin-bottom: 0;
    flex-shrink: 0;
    object-fit: contain; /* بهتره contain باشه برای تابلو نقاشی */
    object-position: center; /* مرکز کردن عکس داخل باکس */
    /* این بخش خیلی مهم است تا عکس دقیقاً وسط باکسش باشه */
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f8f8; /* پس‌زمینه ملایم در صورت contain */
  }
  .vg-product-card .vg-product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center; /* محتوا هم وسط عمودی بشه */
  }
  .vg-product-card .vg-product-title {
    text-align: start;
    font-size: 11.5px;
    margin-bottom: 6px;
  }
  .vg-product-card .vg-product-desc {
    text-align: start;
    font-size: 11.5px;
    margin-bottom: 8px;
    -webkit-line-clamp: 2;
    display: none;
  }
  .vg-product-card .vg-product-price {
    text-align: end;
    margin-bottom: 8px;
  }
  .vg-product-card .button-style {
    display: none;
    margin-top: auto;
    padding: 9px 12px;
    font-size: 12.5px;
  }
}

/*# sourceMappingURL=filter-product.css.map */
