  .visually-hidden {
    position: absolute !important;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }

  .shop-categories {
    padding: 32px 0 8px;
  }

  .shop-categories-title {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 16px;
    font-size: 1.05rem;
    font-weight: 700;
  }

  .shop-categories-title::before {
    content: "";
    width: 4px;
    height: 20px;
    border-radius: 2px;
    background: var(--amber, #f5a623);
  }

  .cat-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  @media (min-width: 640px) {
    .cat-grid {
      grid-template-columns: repeat(3, 1fr);
    }
  }

  @media (min-width: 992px) {
    .cat-grid {
      grid-template-columns: repeat(4, 1fr);
      gap: 16px;
    }
  }

  .cat-card {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .08);
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  }

  .cat-card:hover,
  .cat-card:focus-visible {
    transform: translateY(-3px);
    border-color: var(--amber, #f5a623);
    box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
  }

  .cat-thumb {
    flex: 0 0 64px;
    width: 64px;
    height: 64px;
    border-radius: 12px;
    overflow: hidden;
    background: linear-gradient(135deg, #eef1f4, #dde3e9);
  }

  .cat-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .3s ease;
  }

  .cat-card:hover .cat-thumb img {
    transform: scale(1.08);
  }

  .cat-name {
    font-size: .95rem;
    font-weight: 600;
    line-height: 1.6;
  }

  @media (max-width: 480px) {
    .cat-card {
      flex-direction: column;
      text-align: center;
      gap: 10px;
      padding: 14px 8px;
    }

    .cat-thumb {
      flex-basis: auto;
      width: 72px;
      height: 72px;
    }

    .cat-name {
      font-size: .88rem;
    }
  }

  main > .container {
    width: min(1560px, 100% - 64px);
    max-width: none;
    margin-inline: auto;
    padding-inline: 0;
  }

  @media (max-width: 640px) {
    main > .container {
      width: calc(100% - 24px);
    }
  }

  main .shop-layout {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
  }

  @media (max-width: 900px) {
    main .shop-layout {
      grid-template-columns: 1fr;
    }
  }

  main .shop-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
  }

  @media (max-width: 700px) {
    main .shop-grid {
      grid-template-columns: 1fr;
    }
  }

  main .product .mini-spec {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 24px;
  }

  @media (max-width: 480px) {
    main .product .mini-spec {
      grid-template-columns: 1fr;
    }
  }

  main .product {
    overflow: hidden;
  }

  main .product .product-top {
    display: block;
    position: relative;
    padding: 0;
    margin: 0;
  }

main .product .product-photo {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 6 / 3;
  flex: none;
  margin: 0;
  border-radius: 0;
  background: #f4f6f8;
  overflow: hidden;
}

main .product .product-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform .4s ease;
}

  main .product:hover .product-photo img {
    transform: scale(1.04);
  }

  main .product .product-photo svg {
    width: 100%;
    height: 100%;
    padding: 14%;
    box-sizing: border-box;
    color: #333f4c;
  }

  main .product .product-heading {
    position: static;
    padding: 12px 18px 4px;
    margin: 0;
    gap: 0;
  }

  main .product .product-heading h3 {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
    line-height: 1.5;
  }

  main .product .product-tag-mini {
    position: absolute;
    top: 12px;
    inset-inline-start: 12px;
    z-index: 2;
    margin: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, .18);
  }
  /* ===== فیلتر موبایل ===== */
.filter-toggle,
.filter-overlay,
.sidebar-head,
.sidebar-apply {
  display: none;
}

@media (max-width: 900px) {

  .filter-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
    padding: 12px 16px;
    font: inherit;
    font-weight: 700;
    color: #1a1a1a;
    background: #fff;
    border: 1.5px solid var(--amber, #f5a623);
    border-radius: 12px;
    cursor: pointer;
  }

  .filter-toggle svg {
    width: 20px;
    height: 20px;
  }

  .filter-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: rgba(0, 0, 0, .5);
    opacity: 0;
    visibility: hidden;
    transition: opacity .25s ease, visibility .25s ease;
  }

  .filter-overlay.show {
    opacity: 1;
    visibility: visible;
  }

  aside.sidebar {
    position: fixed !important;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto !important;
    z-index: 1001;
    max-height: 85vh;
    overflow-y: auto;
    padding: 0 18px 16px;
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, .2);
    transform: translateY(100%);
    visibility: hidden;
    transition: transform .3s ease, visibility .3s ease;
  }

  aside.sidebar.open {
    transform: translateY(0);
    visibility: visible;
  }

  .sidebar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 2;
    padding: 16px 0 12px;
    margin-bottom: 8px;
    background: #fff;
    border-bottom: 1px solid rgba(0, 0, 0, .08);
    font-size: 1.05rem;
  }

  .sidebar-close {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 50%;
    background: #f1f3f5;
    font-size: 1rem;
    cursor: pointer;
  }

  .sidebar-apply {
    display: block;
    position: sticky;
    bottom: 0;
    width: 100%;
    margin-top: 12px;
    padding: 14px;
    font: inherit;
    font-weight: 700;
    color: #1a1a1a;
    background: var(--amber, #f5a623);
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 -8px 12px #fff;
  }

  body.filters-open {
    overflow: hidden;
  }
}
main .product .product-photo {
  background: #fff;
}

@media (max-width: 700px) {
  main .product .product-photo {
    aspect-ratio: 4 / 3;
  }
}
/* ===== بخش متن پایین صفحه ===== */
.shop-content {
  margin: 48px 0 32px;
  padding: 28px 32px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .08);
  border-radius: 16px;
  line-height: 2;
  color: #2b2f36;
}

.shop-content h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 16px;
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.6;
}

.shop-content h2::before {
  content: "";
  flex: none;
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: var(--amber, #f5a623);
}

.shop-content h3 {
  margin: 24px 0 8px;
  font-size: 1.1rem;
  font-weight: 700;
}

.shop-content p {
  margin: 0 0 14px;
  font-size: .98rem;
}

.shop-content ul,
.shop-content ol {
  margin: 0 0 14px;
  padding-inline-start: 22px;
}

.shop-content li {
  margin-bottom: 6px;
}

.shop-content a {
  color: var(--amber-dark, #b9770e);
  text-decoration: underline;
}

@media (max-width: 640px) {
  .shop-content {
    margin: 32px 0 24px;
    padding: 20px 16px;
  }

  .shop-content h2 {
    font-size: 1.15rem;
  }
}

/* رندر نکردن کارت‌های خارج از دید؛ سرعت اسکرول و لود را بالا می‌برد */
.shop-main-page .product {
  content-visibility: auto;
  contain-intrinsic-size: auto 420px;
}

.load-more-wrap {
  text-align: center;
  margin: 28px 0;
}
.load-more {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 32px;
  border: 2px solid var(--amber);
  background: transparent;
  color: inherit;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}
.load-more:hover { background: var(--amber); color: #000; }


.breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;
    margin: 0 0 22px;
    padding: 0;
    font-family: 'Vazirmatn', sans-serif;
    font-size: 13px;
    line-height: 1.9;
    color: #777;
    direction: rtl;
}

.breadcrumb a {
    color: #666;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #b8860b;
}

.breadcrumb-separator {
    color: #aaa;
    font-size: 18px;
    line-height: 1;
}

.breadcrumb-current {
    color: #222;
    font-weight: 500;
}

@media (max-width: 600px) {
    .breadcrumb {
        font-size: 12px;
        gap: 6px;
        margin-bottom: 16px;
    }
}


/* ---------- هدر روشن (مثل بقیه سایت) ---------- */
.site-header{
  background:#f1f3f6;
  border-bottom:1px solid #d5dbe3;
}
.site-header .logo-text{ color:#1f2933; }
.site-header .site-nav > a,
.site-header .nav-link-wrapper > a{ color:#52606d; }
.site-header .site-nav > a:hover,
.site-header .nav-link-wrapper > a:hover{
  color:#1f2933;
  border-color:var(--amber-2, #ffd23f);
}
.site-header .dropdown-toggle,
.site-header .submenu-toggle{ color:#222; }

.site-header .menu-toggle{ border-color:#d5dbe3; color:#1f2933; }
.site-header .menu-toggle span{ background:#1f2933; }

@media (max-width:780px){
  .site-header .site-nav{ background:#f1f3f6; border-bottom-color:#d5dbe3; }
  .site-header .site-nav a{ border-bottom-color:#d5dbe3; }
}

/* ====== سایدبار فیلتر - هم‌استایل صفحه‌های فیلتر/لوازم مصرفی ====== */

/* ۱) کانتینر: روی دسکتاپ بدون کادر (در موبایل پنل کشویی، پس‌زمینه‌اش حفظ می‌شه) */
@media (min-width: 901px) {
  .sidebar {
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* ۲) تیتر هر گروه: متن پررنگ + خط زرد عمودی سمت راست */
.sidebar .filter-group h4 {
  position: relative;
  margin: 0 0 12px;
  padding-right: 12px;
  font-size: 16px;
  font-weight: 800;
  color: #111;
}
.sidebar .filter-group h4::before {
  content: "";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  background: #f0b90d;
  border-radius: 2px;
}

/* ۳) جداکننده بین گروه‌ها */
.sidebar .filter-group {
  padding: 18px 0;
  border: 0;
  border-bottom: 1px solid #e6e6e6;
}
.sidebar .filter-group:last-of-type {
  border-bottom: 0;
}

/* ۴) هر گزینه: مربع سمت راست، متن کنارش */
.sidebar .filter-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 0;
  font-size: 14px;
  color: #222;
  cursor: pointer;
}

/* ۵) رادیو و چک‌باکس: همه مربعی */
.sidebar .filter-option input[type="radio"],
.sidebar .filter-option input[type="checkbox"] {
  -webkit-appearance: none;
  appearance: none;
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 0;
  background: #fff;
  border: 1.5px solid #bdbdbd;
  border-radius: 3px;
  display: inline-grid;
  place-content: center;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.sidebar .filter-option input:hover {
  border-color: #f0b90d;
}

/* ۶) حالت انتخاب‌شده: مربع زرد + تیک مشکی */
.sidebar .filter-option input:checked {
  background: #f0b90d;
  border-color: #f0b90d;
}
.sidebar .filter-option input::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #111;
  border-bottom: 2px solid #111;
  transform: rotate(-45deg) scale(0);
  margin-top: -2px;
  transition: transform .12s ease;
}
.sidebar .filter-option input:checked::after {
  transform: rotate(-45deg) scale(1);
}
.sidebar .filter-option input:focus-visible {
  outline: 2px solid #f0b90d;
  outline-offset: 2px;
}


