/* ========================================
   Firozkala Shop — categorized Neumorphism page
======================================== */

:root {
  --shop-green: #16a34a;
  --shop-green-dark: #15803d;
  --shop-orange: #f59e0b;
  --shop-orange-dark: #d97706;
  --shop-bg: #f5f7f8;
  --shop-surface: #f5f7f8;
  --shop-white: #ffffff;
  --shop-text: #111827;
  --shop-muted: #6b7280;
  --shop-border: rgba(255, 255, 255, 0.82);
  --shop-shadow-light: rgba(255, 255, 255, 0.97);
  --shop-shadow-dark: rgba(174, 181, 189, 0.29);
  --shop-raised:
    -8px -8px 18px var(--shop-shadow-light),
    8px 8px 18px var(--shop-shadow-dark),
    inset -1px -1px 2px rgba(255, 255, 255, 0.74),
    inset 1px 1px 2px rgba(174, 181, 189, 0.08);
  --shop-raised-soft:
    -4px -4px 10px rgba(255, 255, 255, 0.95),
    4px 4px 10px rgba(174, 181, 189, 0.20);
  --shop-inset:
    inset -4px -4px 9px rgba(255, 255, 255, 0.90),
    inset 4px 4px 9px rgba(174, 181, 189, 0.17);
}

.shop-page,
.shop-page * {
  box-sizing: border-box;
}

.shop-page-wrap {
  overflow: clip;
}

.shop-page {
  width: 100%;
  max-width: 100%;
  padding-top: 1.4rem;
  padding-bottom: 7rem;
}

.shop-section {
  width: 100%;
  margin-top: 2.8rem;
  scroll-margin-top: 1.25rem;
}

.shop-selected-bakeries {
  margin-top: .65rem;
}

/* ========================================
   Section headings
======================================== */

.shop-section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.15rem;
}

.shop-section-heading__content {
  min-width: 0;
}

.shop-section-heading__eyebrow,
.shop-kicker {
  display: block;
  margin-bottom: .08rem;
  color: var(--shop-orange);
  font-size: .68rem;
  font-weight: 900;
}

.shop-section-heading h2,
.shop-title-row h1 {
  margin: 0;
  color: var(--shop-text);
  font-size: 1.35rem;
  font-weight: 950;
  line-height: 1.75;
}

.shop-section-heading__link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  flex: 0 0 auto;
  min-height: 2.35rem;
  padding: .35rem .72rem;
  color: var(--shop-green);
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: .9rem;
  box-shadow: var(--shop-raised-soft);
  font-size: .65rem;
  font-weight: 900;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease;
}

.shop-section-heading__link svg {
  width: .9rem;
  height: .9rem;
}

.shop-section-heading__link:hover {
  transform: translateY(-2px);
}

.shop-section-heading__link:active {
  transform: translateY(0);
  box-shadow: var(--shop-inset);
}

/* ========================================
   Selected bakeries
======================================== */

.shop-bakery-track {
  display: flex;
  align-items: flex-start;
  gap: 1.05rem;
  width: 100%;
  padding: .45rem .35rem 1rem;
  overflow-x: auto;
  overflow-y: hidden;
  direction: rtl;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 163, 74, .46) transparent;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.shop-bakery-track::-webkit-scrollbar,
.shop-product-scroll::-webkit-scrollbar,
.shop-products-grid::-webkit-scrollbar {
  height: .42rem;
}

.shop-bakery-track::-webkit-scrollbar-track,
.shop-product-scroll::-webkit-scrollbar-track,
.shop-products-grid::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, .10);
  border-radius: 999px;
}

.shop-bakery-track::-webkit-scrollbar-thumb,
.shop-product-scroll::-webkit-scrollbar-thumb,
.shop-products-grid::-webkit-scrollbar-thumb {
  background: linear-gradient(90deg, var(--shop-green), var(--shop-orange));
  border-radius: 999px;
}

.shop-bakery-item {
  display: flex;
  flex: 0 0 112px;
  flex-direction: column;
  align-items: center;
  gap: .65rem;
  min-width: 112px;
  color: var(--shop-text);
  text-align: center;
  text-decoration: none;
  scroll-snap-align: start;
  transition: transform .2s ease;
}

.shop-bakery-item:hover {
  transform: translateY(-3px);
}

.shop-bakery-item__image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 92px;
  height: 92px;
  padding: 4px;
  background: linear-gradient(145deg, var(--shop-green), var(--shop-orange));
  border-radius: 50%;
  box-shadow: var(--shop-raised-soft);
}

.shop-bakery-item__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  background: #fff;
  border: 4px solid #fff;
  border-radius: 50%;
}

.shop-bakery-item strong {
  display: -webkit-box;
  min-height: 2.75rem;
  overflow: hidden;
  color: var(--shop-text);
  font-size: .72rem;
  font-weight: 900;
  line-height: 1.8;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* ========================================
   Thin advertising strips
======================================== */

.shop-ad-strip {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .8rem;
  min-height: 3.2rem;
  margin-top: 2.35rem;
  padding: .42rem .75rem;
  overflow: hidden;
  color: #fff;
  border-radius: .95rem;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .10);
  text-decoration: none;
}

.shop-ad-strip::after {
  position: absolute;
  top: -2.2rem;
  left: 8%;
  width: 8rem;
  height: 8rem;
  background: rgba(255, 255, 255, .10);
  border-radius: 50%;
  content: "";
}

.shop-ad-strip--orange {
  background: linear-gradient(115deg, #ea8b05, var(--shop-orange));
}

.shop-ad-strip--green {
  background: linear-gradient(115deg, #12823c, var(--shop-green));
}

.shop-ad-strip--mixed {
  background: linear-gradient(115deg, var(--shop-green), #148b42 58%, var(--shop-orange));
}

.shop-ad-strip__tag {
  position: relative;
  z-index: 1;
  padding: .25rem .5rem;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  font-size: .59rem;
  font-weight: 900;
  white-space: nowrap;
}

.shop-ad-strip strong {
  position: relative;
  z-index: 1;
  overflow: hidden;
  font-size: .72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-ad-strip__action {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: .6rem;
  font-weight: 800;
  white-space: nowrap;
}

.shop-ad-strip__action svg {
  width: .85rem;
  height: .85rem;
}

/* ========================================
   Product horizontal tracks
======================================== */

.shop-product-scroll,
.shop-products-grid {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;
  gap: 1.15rem;
  width: 100%;
  padding: .9rem .7rem 1.35rem;
  overflow-x: auto !important;
  overflow-y: visible;
  direction: rtl;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 163, 74, .46) transparent;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

.shop-product-scroll:focus-visible,
.shop-products-grid:focus-visible {
  outline: 2px solid rgba(22, 163, 74, .38);
  outline-offset: .3rem;
  border-radius: 1rem;
}

/* ========================================
   Neumorphism product card
======================================== */

.shop-product-card {
  position: relative;
  display: flex;
  flex: 0 0 242px;
  flex-direction: column;
  width: 242px;
  min-width: 242px;
  min-height: 355px;
  padding: .72rem;
  overflow: visible;
  color: var(--shop-text);
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 1.65rem;
  box-shadow: var(--shop-raised);
  cursor: pointer;
  scroll-snap-align: start;
  transition: transform .2s ease, box-shadow .2s ease;
}

@media (hover: hover) {
  .shop-product-card:hover {
    transform: translateY(-4px);
    box-shadow:
      -10px -10px 22px rgba(255, 255, 255, .98),
      10px 10px 22px rgba(174, 181, 189, .33),
      inset -1px -1px 2px rgba(255, 255, 255, .74),
      inset 1px 1px 2px rgba(174, 181, 189, .08);
  }
}

.shop-product-card[hidden] {
  display: none !important;
}

.shop-product-favorite {
  position: absolute;
  top: .95rem;
  left: .95rem;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  color: var(--shop-green);
  background: rgba(255, 255, 255, .96);
  border: 1px solid rgba(255, 255, 255, .94);
  border-radius: 50%;
  box-shadow: var(--shop-raised-soft);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, color .16s ease;
}

.shop-product-favorite svg {
  width: 1.08rem;
  height: 1.08rem;
  fill: transparent;
  transition: fill .16s ease;
}

.shop-product-favorite:hover {
  transform: translateY(-2px);
}

.shop-product-favorite.is-favorite,
.shop-product-favorite[aria-pressed="true"] {
  color: var(--shop-green);
  box-shadow: var(--shop-inset);
}

.shop-product-favorite.is-favorite svg,
.shop-product-favorite[aria-pressed="true"] svg {
  fill: currentColor;
}

.shop-product-image-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 176px;
  padding: .28rem;
  overflow: hidden;
  background: var(--shop-surface);
  border: 1px solid rgba(255, 255, 255, .70);
  border-radius: 1.2rem;
  box-shadow: var(--shop-inset);
}

.shop-product-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: .95rem;
  transition: transform .22s ease;
}

.shop-product-card:hover .shop-product-image {
  transform: scale(1.025);
}

.shop-product-name {
  display: -webkit-box;
  min-height: 3.15rem;
  margin-top: .68rem;
  overflow: hidden;
  color: #111827 !important;
  font-size: .79rem;
  font-weight: 900;
  line-height: 1.8;
  text-align: right;
  text-decoration: none;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-product-price {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: .25rem;
  min-height: 2rem;
  margin-top: .25rem;
  padding-top: .45rem;
  color: var(--shop-green);
  border-top: 1px solid rgba(174, 181, 189, .15);
  direction: rtl;
}

.shop-product-price strong {
  color: var(--shop-green);
  font-size: .96rem;
  font-weight: 950;
}

.shop-product-price span {
  color: var(--shop-green-dark);
  font-size: .58rem;
  font-weight: 800;
}

.shop-add-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .38rem;
  width: 100%;
  min-height: 2.45rem;
  margin-top: auto;
  padding: .5rem .65rem;
  color: var(--shop-green);
  background: #fff;
  border: 1.5px solid var(--shop-green);
  border-radius: 999px;
  box-shadow: var(--shop-raised-soft);
  font-family: inherit;
  font-size: .68rem;
  font-weight: 950;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
}

.shop-add-button svg {
  width: .95rem;
  height: .95rem;
}

.shop-add-button:hover {
  transform: translateY(-2px);
  background: rgba(22, 163, 74, .04);
}

.shop-add-button:active {
  transform: translateY(0);
  box-shadow: var(--shop-inset);
}

.shop-add-button.is-added {
  color: #fff;
  background: var(--shop-green);
  border-color: var(--shop-green);
}

.shop-add-button.is-limit {
  color: #fff;
  background: #dc2626;
  border-color: #dc2626;
}

/* ========================================
   Online / physical tabs
======================================== */

.shop-section-heading--with-tabs {
  align-items: center;
}

.shop-store-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .35rem;
  min-width: 20rem;
  padding: .34rem;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 1rem;
  box-shadow: var(--shop-inset);
}

.shop-store-tab {
  min-height: 2.35rem;
  padding: .35rem .65rem;
  color: var(--shop-muted);
  background: transparent;
  border: 0;
  border-radius: .72rem;
  font-family: inherit;
  font-size: .66rem;
  font-weight: 900;
  cursor: pointer;
  transition: background .18s ease, color .18s ease, box-shadow .18s ease;
}

.shop-store-tab.is-active,
.shop-store-tab[aria-selected="true"] {
  color: #fff;
  background: var(--shop-green);
  box-shadow: 0 5px 13px rgba(22, 163, 74, .20);
}

/* ========================================
   All-products filters
======================================== */

.shop-all-products-head {
  margin-top: 2.8rem;
}

.shop-title-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
}

.shop-result-count {
  flex: 0 0 auto;
  padding: .4rem .68rem;
  color: var(--shop-green);
  background: rgba(22, 163, 74, .07);
  border: 1px solid rgba(22, 163, 74, .15);
  border-radius: 999px;
  font-size: .64rem;
  font-weight: 950;
}

.shop-filter-bar {
  display: grid;
  grid-template-columns: minmax(10rem, 1.45fr) minmax(7.5rem, .8fr) minmax(9rem, 1fr) auto auto;
  align-items: center;
  gap: .5rem;
  margin-top: .8rem;
  padding: .62rem;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 1.15rem;
  box-shadow: var(--shop-raised-soft);
}

.shop-filter-search {
  display: flex;
  align-items: center;
  gap: .4rem;
  min-width: 0;
  height: 2.45rem;
  padding: 0 .7rem;
  color: #9ca3af;
  background: var(--shop-surface);
  border: 1px solid rgba(255, 255, 255, .72);
  border-radius: .82rem;
  box-shadow: var(--shop-inset);
}

.shop-filter-search svg {
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.shop-filter-search input {
  width: 100%;
  min-width: 0;
  color: var(--shop-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: .68rem;
}

.shop-filter-select {
  width: 100%;
  min-width: 0;
  height: 2.45rem;
  padding: 0 .6rem;
  color: #4b5563;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: .82rem;
  outline: 0;
  font-family: inherit;
  font-size: .65rem;
  font-weight: 800;
}

.shop-filter-subscription,
.shop-filter-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .3rem;
  height: 2.45rem;
  padding: 0 .72rem;
  background: #fff;
  border: 1px solid rgba(229, 231, 235, .95);
  border-radius: .82rem;
  font-family: inherit;
  font-size: .63rem;
  font-weight: 950;
  white-space: nowrap;
  transition: .18s ease;
}

.shop-filter-subscription {
  color: var(--shop-green);
}

.shop-filter-subscription>span {
  width: .42rem;
  height: .42rem;
  background: currentColor;
  border-radius: 50%;
}

.shop-filter-subscription[aria-pressed="true"] {
  color: #fff;
  background: var(--shop-green);
  border-color: var(--shop-green);
}

.shop-filter-reset {
  color: #dc2626;
}

.shop-filter-reset svg {
  width: .85rem;
  height: .85rem;
}

.shop-products-section {
  margin-top: .25rem;
}

/* ========================================
   Empty state
======================================== */

.shop-empty-state {
  width: min(100%, 26rem);
  margin: 2rem auto 0;
  padding: 1.25rem;
  text-align: center;
  background: var(--shop-surface);
  border: 1px solid var(--shop-border);
  border-radius: 1.3rem;
  box-shadow: var(--shop-raised-soft);
}

.shop-empty-state>span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: var(--shop-orange);
  background: rgba(245, 158, 11, .08);
  border-radius: 1rem;
}

.shop-empty-state svg {
  width: 1.3rem;
  height: 1.3rem;
}

.shop-empty-state h2 {
  margin-top: .7rem;
  color: var(--shop-text);
  font-size: .9rem;
  font-weight: 950;
}

.shop-empty-state p {
  margin-top: .25rem;
  color: var(--shop-muted);
  font-size: .65rem;
}

.shop-empty-state button {
  margin-top: .75rem;
  padding: .5rem .8rem;
  color: #fff;
  background: var(--shop-green);
  border: 0;
  border-radius: .75rem;
  font-family: inherit;
  font-size: .65rem;
  font-weight: 950;
}

/* ========================================
   Dark mode
======================================== */

.dark .shop-section-heading h2,
.dark .shop-title-row h1,
.dark .shop-bakery-item strong {
  color: #f3f4f6;
}

.dark .shop-page {
  --shop-surface: #202733;
  --shop-text: #f3f4f6;
  --shop-muted: #cbd5e1;
  --shop-border: rgba(255, 255, 255, .08);
  --shop-shadow-light: rgba(51, 60, 74, .72);
  --shop-shadow-dark: rgba(0, 0, 0, .36);
}

.dark .shop-product-card {
  background: #f5f7f8;
}

.dark .shop-filter-select,
.dark .shop-filter-subscription,
.dark .shop-filter-reset,
.dark .shop-add-button,
.dark .shop-product-favorite {
  background: #fff;
}

/* ========================================
   Responsive
======================================== */

@media screen and (max-width: 1023px) {
  .shop-filter-bar {
    grid-template-columns: minmax(8rem, 1.3fr) minmax(6.7rem, .8fr) minmax(7.5rem, 1fr) auto auto;
  }

  .shop-store-tabs {
    min-width: 17rem;
  }
}

@media screen and (max-width: 767px) {
  .shop-page {
    padding-top: 5.2rem;
    padding-right: .75rem;
    padding-left: .75rem;
    padding-bottom: 7.5rem;
  }

  .shop-section {
    margin-top: 2.15rem;
  }

  .shop-selected-bakeries {
    margin-top: .35rem;
  }

  .shop-section-heading {
    align-items: center;
    margin-bottom: .75rem;
  }

  .shop-section-heading h2,
  .shop-title-row h1 {
    font-size: 1.02rem;
  }

  .shop-section-heading__eyebrow,
  .shop-kicker {
    font-size: .58rem;
  }

  .shop-section-heading__link {
    min-height: 2.05rem;
    padding: .28rem .55rem;
    font-size: .57rem;
  }

  .shop-bakery-track {
    gap: .75rem;
    margin-inline: -.2rem;
    padding-inline: .2rem;
  }

  .shop-bakery-item {
    flex-basis: 88px;
    min-width: 88px;
  }

  .shop-bakery-item__image {
    width: 74px;
    height: 74px;
  }

  .shop-bakery-item strong {
    min-height: 2.4rem;
    font-size: .62rem;
  }

  .shop-ad-strip {
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 2.85rem;
    margin-top: 1.7rem;
    padding: .38rem .55rem;
  }

  .shop-ad-strip strong {
    font-size: .62rem;
  }

  .shop-ad-strip__tag {
    font-size: .52rem;
  }

  .shop-ad-strip__action {
    display: none;
  }

  .shop-product-scroll,
  .shop-products-grid {
    gap: .72rem;
    margin-inline: -.25rem;
    padding: .7rem .25rem 1.1rem;
  }

  .shop-product-card {
    flex-basis: calc((100vw - 2.4rem) / 2);
    width: calc((100vw - 2.4rem) / 2);
    min-width: 145px;
    max-width: 215px;
    min-height: 297px;
    padding: .52rem;
    border-radius: 1.25rem;
    box-shadow:
      -4px -4px 10px rgba(255, 255, 255, .95),
      4px 4px 10px rgba(174, 181, 189, .23),
      inset -1px -1px 2px rgba(255, 255, 255, .72),
      inset 1px 1px 2px rgba(174, 181, 189, .07);
  }

  .shop-product-favorite {
    top: .72rem;
    left: .72rem;
    width: 1.85rem;
    height: 1.85rem;
  }

  .shop-product-favorite svg {
    width: .94rem;
    height: .94rem;
  }

  .shop-product-image-link {
    height: 128px;
    border-radius: .95rem;
  }

  .shop-product-image {
    border-radius: .75rem;
  }

  .shop-product-name {
    min-height: 2.7rem;
    margin-top: .5rem;
    font-size: .65rem;
    line-height: 1.65;
  }

  .shop-product-price {
    min-height: 1.75rem;
    padding-top: .35rem;
  }

  .shop-product-price strong {
    font-size: .78rem;
  }

  .shop-product-price span {
    font-size: .5rem;
  }

  .shop-add-button {
    min-height: 2.1rem;
    padding: .38rem .3rem;
    font-size: .58rem;
  }

  .shop-add-button svg {
    width: .78rem;
    height: .78rem;
  }

  .shop-section-heading--with-tabs {
    align-items: stretch;
    flex-direction: column;
  }

  .shop-store-tabs {
    width: 100%;
    min-width: 0;
  }

  .shop-store-tab {
    min-height: 2.15rem;
    font-size: .59rem;
  }

  .shop-title-row {
    align-items: center;
  }

  .shop-result-count {
    font-size: .56rem;
  }

  .shop-filter-bar {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: .4rem;
    margin-top: .65rem;
    padding: .48rem;
  }

  .shop-filter-search {
    grid-column: 1 / -1;
    height: 2.25rem;
  }

  .shop-filter-select,
  .shop-filter-subscription,
  .shop-filter-reset {
    height: 2.15rem;
    font-size: .57rem;
  }
}

@media screen and (max-width: 360px) {
  .shop-page {
    padding-right: .55rem;
    padding-left: .55rem;
  }

  .shop-product-scroll,
  .shop-products-grid {
    gap: .6rem;
  }

  .shop-product-card {
    flex-basis: calc((100vw - 2rem) / 2);
    width: calc((100vw - 2rem) / 2);
    min-width: 137px;
    min-height: 286px;
    padding: .45rem;
  }

  .shop-product-image-link {
    height: 118px;
  }

  .shop-product-name {
    font-size: .61rem;
  }

  .shop-add-button span {
    font-size: .54rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  .shop-product-card,
  .shop-product-image,
  .shop-product-favorite,
  .shop-add-button,
  .shop-section-heading__link,
  .shop-bakery-item {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

/* ========================================
   پرفروش‌ترین‌های فیروزکالا
   استفاده از کارت اصلی product-neu-card
======================================== */

.shop-bestsellers .shop-product-scroll {
  --shop-bestseller-gap: 1rem;

  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch;

  gap: var(--shop-bestseller-gap);

  width: 100%;
  padding: 0.75rem 0.35rem 1.2rem;

  overflow-x: auto !important;
  overflow-y: hidden;

  direction: rtl;

  scroll-behavior: smooth;
  scroll-snap-type: x proximity;

  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;

  scrollbar-width: thin;
  scrollbar-color:
    rgba(22, 163, 74, 0.55) rgba(148, 163, 184, 0.12);
}

/*
 * جلوگیری از اعمال width: 100% مربوط به swiper-slide
 */
.shop-bestsellers .shop-product-scroll>.product-neu-card {
  flex: 0 0 242px !important;

  width: 242px !important;
  min-width: 242px !important;
  max-width: 242px !important;

  height: auto !important;
  min-height: 350px !important;

  box-sizing: border-box;

  scroll-snap-align: start;
}

/* Scrollbar */
.shop-bestsellers .shop-product-scroll::-webkit-scrollbar {
  height: 0.42rem;
}

.shop-bestsellers .shop-product-scroll::-webkit-scrollbar-track {
  background: rgba(148, 163, 184, 0.12);
  border-radius: 999px;
}

.shop-bestsellers .shop-product-scroll::-webkit-scrollbar-thumb {
  background: rgba(22, 163, 74, 0.55);
  border-radius: 999px;
}

/* حالت انتخاب علاقه‌مندی */
.shop-bestsellers .product-neu-card__favorite.is-favorite {
  color: #ef4444;
}

.shop-bestsellers .product-neu-card__favorite.is-favorite svg {
  fill: currentColor;
}

/* ========================================
   تبلت
======================================== */

@media screen and (max-width: 1023px) {
  .shop-bestsellers .shop-product-scroll>.product-neu-card {
    flex-basis: 220px !important;

    width: 220px !important;
    min-width: 220px !important;
    max-width: 220px !important;

    min-height: 350px !important;
  }
}

/* ========================================
   موبایل
   در تمام عرض‌های موبایل دقیقاً دو کارت
======================================== */

@media screen and (max-width: 767px) {
  .shop-bestsellers .shop-product-scroll {
    --shop-bestseller-gap: 0.625rem;

    gap: var(--shop-bestseller-gap);

    margin-right: 0;
    margin-left: 0;

    padding-right: 0;
    padding-left: 0;
    padding-bottom: 1rem;
  }

  .shop-bestsellers .shop-product-scroll>.product-neu-card {
    /*
         * عرض فضای موجود منهای فاصله بین دو کارت
         * تقسیم بر دو
         */
    flex:
      0 0 calc((100% - var(--shop-bestseller-gap)) / 2) !important;

    width:
      calc((100% - var(--shop-bestseller-gap)) / 2) !important;

    min-width:
      calc((100% - var(--shop-bestseller-gap)) / 2) !important;

    max-width:
      calc((100% - var(--shop-bestseller-gap)) / 2) !important;

    height: auto !important;
    min-height: 365px !important;
  }
}

/* ========================================
   موبایل‌های خیلی کوچک
   همچنان دقیقاً دو کارت
======================================== */

@media screen and (max-width: 360px) {
  .shop-bestsellers .shop-product-scroll {
    --shop-bestseller-gap: 0.5rem;
  }

  .shop-bestsellers .shop-product-scroll>.product-neu-card {
    flex-basis:
      calc((100% - var(--shop-bestseller-gap)) / 2) !important;

    width:
      calc((100% - var(--shop-bestseller-gap)) / 2) !important;

    min-width:
      calc((100% - var(--shop-bestseller-gap)) / 2) !important;

    max-width:
      calc((100% - var(--shop-bestseller-gap)) / 2) !important;

    min-height: 365px !important;
  }
}

/* =====================================================
   FiroozKala Shop — Unified Product Cards
   این فایل باید بعد از app.css و shop.css بارگذاری شود.
===================================================== */

/* مسیرهای افقی صفحه بدون تغییر باقی می‌مانند. */
.shop-page .shop-product-scroll,
.shop-page .shop-products-grid {
  --fk-product-card-gap: 1rem;

  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: var(--fk-product-card-gap) !important;

  width: 100% !important;
  max-width: 100% !important;
  padding: 0.85rem 0.35rem 1.3rem !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;

  direction: rtl;
  scroll-behavior: smooth;
  scroll-snap-type: x proximity;
  scroll-padding-inline: 0.35rem;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

/* عرض و ارتفاع پایه در دسکتاپ */
.shop-page .shop-product-scroll>.product-neu-card,
.shop-page .shop-products-grid>.product-neu-card {
  display: flex !important;
  flex: 0 0 250px !important;
  flex-direction: column !important;

  width: 250px !important;
  min-width: 250px !important;
  max-width: 250px !important;

  height: auto !important;
  min-height: 430px !important;

  box-sizing: border-box !important;
  scroll-snap-align: start;
}

/* ارتفاع تصویر بیشتر و یکسان در تمام کارت‌ها */
.shop-page .product-neu-card__media {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;

  width: 100% !important;
  height: 190px !important;
  min-height: 190px !important;
  flex: 0 0 190px !important;
  overflow: hidden !important;
}

.shop-page .product-neu-card__image {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
}

/* بدنه کش می‌آید تا دکمه‌ها همیشه پایین کارت قرار بگیرند. */
.shop-page .product-neu-card__body {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-direction: column !important;
  min-width: 0 !important;
}

.shop-page .product-neu-card__title {
  display: -webkit-box !important;
  min-height: 3.35rem !important;
  overflow: hidden !important;
  white-space: normal !important;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.shop-page .product-neu-card__seller,
.shop-page .product-neu-card__title {
  min-width: 0;
}

.shop-page .product-neu-card__seller {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-page .product-neu-card__actions {
  margin-top: auto !important;
  flex-shrink: 0 !important;
}

/* فیلترها باید همچنان بتوانند کارت را مخفی کنند. */
.shop-page .product-neu-card[hidden] {
  display: none !important;
}

/* وضعیت علاقه‌مندی و سبد */
.shop-page .product-neu-card__favorite.is-favorite {
  color: #ef4444 !important;
}

.shop-page .product-neu-card__favorite.is-favorite svg {
  fill: currentColor !important;
}

.shop-page .product-neu-card__cart.is-added {
  color: #ffffff !important;
  background-color: #16a34a !important;
  border-color: #16a34a !important;
}

/* تبلت */
@media screen and (max-width: 1023px) {

  .shop-page .shop-product-scroll>.product-neu-card,
  .shop-page .shop-products-grid>.product-neu-card {
    flex-basis: 225px !important;
    width: 225px !important;
    min-width: 225px !important;
    max-width: 225px !important;
    min-height: 420px !important;
  }

  .shop-page .product-neu-card__media {
    height: 180px !important;
    min-height: 180px !important;
    flex-basis: 180px !important;
  }
}

/* =====================================================
   موبایل: در تمام عرض‌های موبایل دقیقاً دو کارت دیده شود.
===================================================== */
@media screen and (max-width: 767px) {

  .shop-page .shop-product-scroll,
  .shop-page .shop-products-grid {
    --fk-product-card-gap: 0.55rem;

    gap: var(--fk-product-card-gap) !important;
    width: 100% !important;
    margin-inline: 0 !important;
    padding: 0.65rem 0 1rem !important;
    scroll-padding-inline: 0 !important;
  }

  .shop-page .shop-product-scroll>.product-neu-card,
  .shop-page .shop-products-grid>.product-neu-card {
    flex:
      0 0 calc((100% - var(--fk-product-card-gap)) / 2) !important;

    width:
      calc((100% - var(--fk-product-card-gap)) / 2) !important;

    min-width:
      calc((100% - var(--fk-product-card-gap)) / 2) !important;

    max-width:
      calc((100% - var(--fk-product-card-gap)) / 2) !important;

    min-height: 405px !important;
    padding: 0.55rem !important;
  }

  .shop-page .product-neu-card__media {
    height: 145px !important;
    min-height: 145px !important;
    flex-basis: 145px !important;
  }

  .shop-page .product-neu-card__title {
    min-height: 3rem !important;
    font-size: 0.72rem !important;
    line-height: 1.85 !important;
  }

  .shop-page .product-neu-card__seller-row {
    gap: 0.3rem !important;
  }

  .shop-page .product-neu-card__seller {
    max-width: 56% !important;
    font-size: 0.58rem !important;
  }

  .shop-page .product-neu-card__rating {
    gap: 0.12rem !important;
    flex-shrink: 0 !important;
    font-size: 0.55rem !important;
  }

  .shop-page .product-neu-card__rating svg {
    width: 0.78rem !important;
    height: 0.78rem !important;
  }

  .shop-page .product-neu-card__rating small {
    font-size: 0.48rem !important;
  }

  .shop-page .product-neu-card__old-price,
  .shop-page .product-neu-card__old-price del {
    font-size: 0.58rem !important;
  }

  .shop-page .product-neu-card__final-price {
    font-size: 0.82rem !important;
  }

  .shop-page .product-neu-card__final-price small {
    font-size: 0.48rem !important;
  }

  .shop-page .product-neu-card__actions {
    gap: 0.35rem !important;
  }

  .shop-page .product-neu-card__cart,
  .shop-page .product-neu-card__buy {
    min-width: 0 !important;
    min-height: 2.15rem !important;
    padding: 0.35rem 0.2rem !important;
    font-size: 0.57rem !important;
    white-space: nowrap !important;
  }
}

/* موبایل‌های بسیار باریک مثل 320 و 360 پیکسل */
@media screen and (max-width: 360px) {

  .shop-page .shop-product-scroll,
  .shop-page .shop-products-grid {
    --fk-product-card-gap: 0.42rem;
  }

  .shop-page .shop-product-scroll>.product-neu-card,
  .shop-page .shop-products-grid>.product-neu-card {
    min-height: 398px !important;
    padding: 0.48rem !important;
  }

  .shop-page .product-neu-card__media {
    height: 136px !important;
    min-height: 136px !important;
    flex-basis: 136px !important;
  }

  .shop-page .product-neu-card__title {
    font-size: 0.66rem !important;
  }

  .shop-page .product-neu-card__seller {
    font-size: 0.53rem !important;
  }

  .shop-page .product-neu-card__cart,
  .shop-page .product-neu-card__buy {
    font-size: 0.52rem !important;
  }
}

/* ========================================
   FIROOZKALA PRODUCTS PAGE
   دیزاین خود product-neu-card از app.css می‌آید.
   این فایل فقط چیدمان صفحه و سایز کارت‌ها را کنترل می‌کند.
======================================== */

.products-page,
.products-page * {
  box-sizing: border-box;
}

.products-page {
  width: 100%;
  padding: 2.5rem 0 6rem;
}

.products-page__container {
  width: 100%;
}

/* Header */
.products-page__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.products-page__eyebrow {
  display: block;
  margin-bottom: 0.2rem;
  color: #16a34a;
  font-size: 0.75rem;
  font-weight: 800;
}

.products-page__header h1 {
  margin: 0;
  color: #111827;
  font-size: 1.55rem;
  font-weight: 900;
  line-height: 1.8;
}

.products-page__header p {
  margin-top: 0.2rem;
  color: #6b7280;
  font-size: 0.78rem;
}

.products-page__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.25rem;
  padding: 0.35rem 0.85rem;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.07);
  border: 1px solid rgba(22, 163, 74, 0.13);
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 900;
}

/* Toolbar */
.products-page__toolbar {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.3rem;
  padding: 0.55rem;
  background: #f1f2f3;
  border-radius: 1.1rem;
  box-shadow:
    inset 3px 3px 7px rgba(174, 181, 189, 0.18),
    inset -3px -3px 7px rgba(255, 255, 255, 0.8);
}

.products-page__search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex: 1;
  min-width: 0;
  height: 2.65rem;
  padding: 0 0.8rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.1);
  border-radius: 0.9rem;
}

.products-page__search svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  color: #16a34a;
}

.products-page__search input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
  font-family: inherit;
  font-size: 0.72rem;
}

.products-page__sort {
  width: 10rem;
  height: 2.65rem;
  padding: 0 0.7rem;
  color: #374151;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 0.9rem;
  outline: 0;
  font-family: inherit;
  font-size: 0.7rem;
  font-weight: 700;
}

/* ========================================
   Grid
   Desktop = 6 cards
======================================== */

.products-page-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
  width: 100%;
  align-items: stretch;
}

.products-page-grid>.product-neu-card {
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  height: auto !important;
  margin: 0 !important;
}

/* swiper-slide در این صفحه فقط کلاس دیزاین نیست و نباید عرض Swiper اعمال کند */
.products-page-grid>.swiper-slide {
  width: 100% !important;
  flex-shrink: initial !important;
}

/* برای جلوگیری از بیرون‌زدگی محتوای کارت در ستون‌های 6 تایی */
.products-page-grid .product-neu-card__body,
.products-page-grid .product-neu-card__seller-row,
.products-page-grid .product-neu-card__price-row,
.products-page-grid .product-neu-card__actions {
  min-width: 0;
}

.products-page-grid .product-neu-card__title,
.products-page-grid .product-neu-card__seller {
  overflow: hidden;
  text-overflow: ellipsis;
}

.products-page-grid .product-neu-card__title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

/* علاقه‌مندی */
.products-page-grid .product-neu-card__favorite.is-favorite {
  color: #ef4444;
}

.products-page-grid .product-neu-card__favorite.is-favorite svg {
  fill: currentColor;
}

/* دکمه بعد از اضافه‌شدن */
.products-page-grid .product-neu-card__cart.is-added {
  color: #ffffff !important;
  background: #16a34a !important;
  border-color: #16a34a !important;
}

/* Empty */
.products-page__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 12rem;
  margin-top: 1.5rem;
  color: #6b7280;
  text-align: center;
}

.products-page__empty[hidden] {
  display: none;
}

.products-page__empty svg {
  width: 2rem;
  height: 2rem;
  color: #16a34a;
}

.products-page__empty strong {
  color: #111827;
  font-size: 0.9rem;
}

/* 5 cards */
@media screen and (max-width: 1199px) {
  .products-page-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.85rem;
  }
}

/* 4 cards */
@media screen and (max-width: 1023px) {
  .products-page {
    padding-top: 5.5rem;
  }

  .products-page-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* 3 cards */
@media screen and (max-width: 800px) and (min-width: 768px) {
  .products-page-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ========================================
   Mobile = exactly 2 cards
======================================== */

@media screen and (max-width: 767px) {
  .products-page {
    padding: 5.3rem 0 7.5rem;
  }

  .products-page__container {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
  }

  .products-page__header {
    align-items: center;
    margin-bottom: 0.75rem;
  }

  .products-page__eyebrow {
    font-size: 0.58rem;
  }

  .products-page__header h1 {
    font-size: 1.05rem;
  }

  .products-page__header p {
    font-size: 0.6rem;
  }

  .products-page__count {
    min-height: 1.85rem;
    padding: 0.25rem 0.55rem;
    font-size: 0.56rem;
  }

  .products-page__toolbar {
    gap: 0.4rem;
    padding: 0.4rem;
    margin-bottom: 0.8rem;
    border-radius: 0.9rem;
  }

  .products-page__search {
    height: 2.3rem;
    padding: 0 0.6rem;
  }

  .products-page__search input {
    font-size: 0.6rem;
  }

  .products-page__sort {
    width: 7.2rem;
    height: 2.3rem;
    padding: 0 0.45rem;
    font-size: 0.58rem;
  }

  .products-page-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.55rem !important;
  }

  .products-page-grid>.product-neu-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
  }
}

@media screen and (max-width: 380px) {
  .products-page__container {
    padding-right: 0.45rem;
    padding-left: 0.45rem;
  }

  .products-page-grid {
    gap: 0.42rem !important;
  }

  .products-page__sort {
    width: 6.4rem;
  }
}

.dark .products-page__header h1,
.dark .products-page__empty strong {
  color: #f3f4f6;
}

.dark .products-page__header p {
  color: #cbd5e1;
}

.dark .products-page__toolbar {
  background: #1f2937;
  box-shadow:
    inset 3px 3px 7px rgba(0, 0, 0, 0.18),
    inset -3px -3px 7px rgba(255, 255, 255, 0.02);
}

.dark .products-page__search,
.dark .products-page__sort {
  color: #f3f4f6;
  background: #111827;
  border-color: rgba(255, 255, 255, 0.08);
}

.dark .products-page__search input {
  color: #f3f4f6;
}