/* صفحه لیست محصولات */

:root {

  --products-search-bar-h: 2.95rem;

  --products-search-gap: 0.45rem;

}



.products-page {
  width: 100%;
  padding-bottom: 1.5rem;
}



.products-page__main {

  display: flex;

  flex-direction: column;

  gap: 0.85rem;

}



/* ——— بلوک شناور: هدر + جستجو ——— */

.products-float-stack {
  display: flex;
  flex-direction: column;
  gap: var(--products-search-gap);
  width: 100%;
}



/* ——— نوار جستجو (هم‌سبک هدر شیشه‌ای) ——— */

.products-toolbar {
  display: flex;
  align-items: stretch;
  gap: 0.45rem;
  width: 100%;
  padding: 0 var(--pad-inline);
  box-sizing: border-box;
}

.products-search-float {
  flex: 1;
  min-width: 0;
  padding: 0;
  box-sizing: border-box;
}



.products-search-float__bar {

  display: flex;

  align-items: center;

  gap: 0.55rem;

  min-height: var(--products-search-bar-h);

  margin: 0;

  padding: 0.4rem 0.55rem 0.4rem 0.6rem;

  border-radius: 1.1rem;

  border: 1px solid rgba(255, 214, 10, 0.16);

  background: rgba(12, 10, 6, 0.58);

  backdrop-filter: blur(18px) saturate(1.4);

  -webkit-backdrop-filter: blur(18px) saturate(1.4);

  box-shadow:

    0 10px 36px rgba(0, 0, 0, 0.5),

    0 1px 0 rgba(255, 255, 255, 0.05) inset;

  transition:

    border-color 0.22s ease,

    box-shadow 0.22s ease,

    background 0.22s ease;

}



.products-search-float__bar:focus-within {

  border-color: rgba(255, 214, 10, 0.42);

  background: rgba(14, 12, 8, 0.82);

  box-shadow:

    0 12px 40px rgba(0, 0, 0, 0.55),

    0 0 0 2px rgba(255, 214, 10, 0.12),

    0 1px 0 rgba(255, 255, 255, 0.06) inset;

}



.products-search-float__icon-wrap {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  width: 2.05rem;

  height: 2.05rem;

  border-radius: 0.6rem;

  border: 1px solid rgba(255, 214, 10, 0.2);

  background: linear-gradient(155deg, rgba(255, 193, 7, 0.14) 0%, rgba(0, 0, 0, 0.32) 100%);

  color: var(--y-core);

}



.products-search-float__icon {

  font-size: 0.9rem;

  line-height: 1;

}



.products-search-float__input {

  flex: 1;

  min-width: 0;

  border: 0;

  background: transparent;

  color: var(--text);

  font: inherit;

  font-size: 0.88rem;

  font-weight: 600;

  outline: none;

}



.products-search-float__input::placeholder {

  color: var(--text-muted);

  font-weight: 500;

  opacity: 0.88;

}



.products-search-float__input::-webkit-search-cancel-button,

.products-search-float__input::-webkit-search-decoration {

  -webkit-appearance: none;

  appearance: none;

}



.products-search-float__clear {

  display: inline-flex;

  align-items: center;

  justify-content: center;

  flex-shrink: 0;

  width: 1.9rem;

  height: 1.9rem;

  padding: 0;

  border: 1px solid rgba(255, 255, 255, 0.1);

  border-radius: 0.5rem;

  background: rgba(255, 255, 255, 0.06);

  color: rgba(255, 255, 255, 0.75);

  cursor: pointer;

  transition:

    color 0.15s ease,

    background 0.15s ease,

    border-color 0.15s ease,

    transform 0.15s ease;

}



.products-search-float__clear:hover {

  color: var(--y-hot);

  background: rgba(255, 214, 10, 0.12);

  border-color: rgba(255, 214, 10, 0.28);

}



.products-search-float__clear:active {

  transform: scale(0.94);

}



.products-search-float__clear:focus-visible {

  outline: 2px solid var(--y-hot);

  outline-offset: 2px;

}



.products-search-float__clear[hidden] {

  display: none !important;

}

.products-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  flex-shrink: 0;
  min-height: var(--products-search-bar-h);
  padding: 0 0.85rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--text);
  border: 1px solid rgba(255, 214, 10, 0.2);
  border-radius: 1.1rem;
  background: rgba(12, 10, 6, 0.58);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.products-filter-btn:hover,
.products-filter-btn[aria-expanded="true"] {
  border-color: rgba(255, 214, 10, 0.42);
  background: rgba(14, 12, 8, 0.82);
  color: var(--y-hot);
}

.products-filter-btn__icon {
  font-size: 0.85rem;
}

.products-filter-btn__badge {
  min-width: 1rem;
  padding: 0.05rem 0.3rem;
  font-size: 0.58rem;
  font-weight: 900;
  line-height: 1.2;
  border-radius: 999px;
  color: #1a1000;
  background: var(--y-hot);
}

.products-filter-btn__badge[hidden] {
  display: none !important;
}

body.products-filter-open {
  overflow: hidden;
}

.products-filter-backdrop {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.products-filter-backdrop.is-visible {
  opacity: 1;
}

.products-filter-backdrop[hidden] {
  display: none !important;
}

.products-filter-panel {
  position: fixed;
  z-index: 150;
  inset-inline: 0;
  bottom: 0;
  max-height: min(78vh, 28rem);
  display: flex;
  flex-direction: column;
  border-radius: 1.1rem 1.1rem 0 0;
  border: 1px solid rgba(255, 214, 10, 0.22);
  border-bottom: none;
  background: rgba(14, 12, 8, 0.98);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.55);
  transform: translateY(100%);
  visibility: hidden;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    visibility 0.28s;
}

.products-filter-panel.is-open {
  transform: translateY(0);
  visibility: visible;
}

.products-filter-panel[hidden] {
  display: none !important;
}

.products-filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.products-filter-panel__title {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
}

.products-filter-panel__close {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.45rem;
  background: rgba(255, 255, 255, 0.06);
  color: inherit;
  cursor: pointer;
}

.products-filter-panel__body {
  flex: 1;
  overflow: auto;
  padding: 0.85rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.products-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  cursor: pointer;
}

.products-filter-field__label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

.products-filter-select {
  position: relative;
  display: block;
}

.products-filter-select::after {
  content: "";
  position: absolute;
  inset-inline-end: 0.9rem;
  top: 50%;
  width: 0.45rem;
  height: 0.45rem;
  margin-top: -0.2rem;
  border: solid rgba(255, 214, 10, 0.85);
  border-width: 0 2px 2px 0;
  transform: translateY(-50%) rotate(45deg);
  pointer-events: none;
  transition:
    transform 0.22s ease,
    border-color 0.22s ease,
    margin-top 0.22s ease;
}

.products-filter-select:has(.products-filter-field__select:focus)::after,
.products-filter-select:has(.products-filter-field__select:active)::after {
  margin-top: 0.05rem;
  transform: translateY(-50%) rotate(225deg);
  border-color: var(--y-hot);
}

.products-filter-field__select {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.65rem;
  padding-block: 0.55rem;
  padding-inline-start: 0.75rem;
  padding-inline-end: 2.35rem;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  color-scheme: dark;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 0.6rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(0, 0, 0, 0.08)),
    rgba(0, 0, 0, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.products-filter-field__select:hover {
  border-color: rgba(255, 214, 10, 0.32);
  background:
    linear-gradient(180deg, rgba(255, 214, 10, 0.08), rgba(0, 0, 0, 0.12)),
    rgba(0, 0, 0, 0.42);
}

.products-filter-field__select:focus {
  outline: none;
  border-color: rgba(255, 214, 10, 0.55);
  background:
    linear-gradient(180deg, rgba(255, 214, 10, 0.1), rgba(0, 0, 0, 0.15)),
    rgba(0, 0, 0, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(255, 214, 10, 0.16);
}

.products-filter-field__select:focus-visible {
  outline: none;
  border-color: rgba(255, 214, 10, 0.55);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 3px rgba(255, 214, 10, 0.16);
}

.products-filter-field__select option {
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  color: #f8f4e8;
  background: #14120a;
  padding: 0.5rem 0.65rem;
}

.products-filter-field__select option:checked {
  color: #1a1000;
  background: linear-gradient(135deg, #fff0a8, var(--y-hot));
}

.products-filter-field__select option:hover {
  background: rgba(255, 214, 10, 0.2);
}

@supports (-webkit-touch-callout: none) {
  .products-filter-field__select {
    font-size: 0.9rem;
  }
}

.products-filter-check {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0;
  padding: 0.7rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.6rem;
  background: rgba(0, 0, 0, 0.28);
  cursor: pointer;
  user-select: none;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease;
}

.products-filter-check:hover {
  border-color: rgba(255, 214, 10, 0.28);
  background: rgba(255, 214, 10, 0.05);
}

.products-filter-check:has(.products-filter-check__input:checked) {
  border-color: rgba(255, 214, 10, 0.42);
  background: rgba(255, 214, 10, 0.1);
  box-shadow: inset 0 0 0 1px rgba(255, 214, 10, 0.12);
}

.products-filter-check:has(.products-filter-check__input:focus-visible) {
  outline: 2px solid var(--y-hot);
  outline-offset: 2px;
}

.products-filter-check__input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.products-filter-check__box {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 1.2rem;
  height: 1.2rem;
  border: 2px solid rgba(255, 255, 255, 0.28);
  border-radius: 0.32rem;
  background: rgba(0, 0, 0, 0.45);
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    box-shadow 0.18s ease;
}

.products-filter-check__box::after {
  content: "";
  width: 0.28rem;
  height: 0.52rem;
  margin-top: -0.08rem;
  border: solid transparent;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition:
    transform 0.16s ease,
    opacity 0.16s ease,
    border-color 0.16s ease;
}

.products-filter-check__input:checked + .products-filter-check__box {
  border-color: #c9a000;
  background: linear-gradient(145deg, #fff0a8, var(--y-hot));
  box-shadow: 0 0 0 1px rgba(255, 214, 10, 0.35);
}

.products-filter-check__input:checked + .products-filter-check__box::after {
  border-color: #1a1000;
  opacity: 1;
  transform: rotate(45deg) scale(1);
}

.products-filter-check__text {
  flex: 1;
  line-height: 1.45;
}

.products-filter-panel__foot {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem 1rem calc(0.85rem + env(safe-area-inset-bottom));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.products-filter-panel__reset,
.products-filter-panel__apply {
  flex: 1;
  min-height: 2.45rem;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  border-radius: 0.55rem;
  cursor: pointer;
}

.products-filter-panel__reset {
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.products-filter-panel__apply {
  border: 1px solid rgba(255, 214, 10, 0.35);
  background: linear-gradient(135deg, #fff0a8, var(--y-hot));
  color: #1a1000;
}

.products-grid__sentinel {
  grid-column: 1 / -1;
  width: 100%;
  height: 1px;
  pointer-events: none;
}

.products-page__load-more {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.65rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--text-muted);
}

.products-page__load-more[hidden] {
  display: none !important;
}

.products-page__load-more-spin {
  width: 1.1rem;
  height: 1.1rem;
  border: 2px solid rgba(255, 214, 10, 0.25);
  border-top-color: var(--y-hot);
  border-radius: 50%;
  animation: products-load-spin 0.7s linear infinite;
}

@keyframes products-load-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 36rem) {
  .products-filter-panel {
    inset-inline: auto;
    inset-inline-end: max(0.65rem, var(--pad-inline, 0.65rem));
    top: calc(var(--store-header-float-gap, 0.5rem) + env(safe-area-inset-top) + var(--store-header-bar-h, 3.15rem) + var(--products-search-bar-h) + 1rem);
    bottom: auto;
    width: min(20rem, calc(100vw - 2 * max(0.65rem, var(--pad-inline, 0.65rem))));
    max-height: min(26rem, calc(100vh - 6rem));
    border-radius: 1rem;
    border-bottom: 1px solid rgba(255, 214, 10, 0.22);
    transform: translateY(12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      opacity 0.22s ease,
      transform 0.22s ease,
      visibility 0.22s;
  }

  .products-filter-panel.is-open {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
}

.products-page__head {

  margin: 0;

}



.products-page__title {

  margin: 0;

  font-size: clamp(1.1rem, 4vw, 1.35rem);

  font-weight: 800;

  letter-spacing: -0.02em;

}



.products-page__count {

  margin: 0.25rem 0 0;

  font-size: 0.72rem;

  color: var(--text-muted);

}



.products-page__empty {

  margin: 0;

  padding: 1.5rem 1rem;

  text-align: center;

  font-size: 0.85rem;

  color: var(--text-muted);

  background: var(--bg-soft);

  border: 1px dashed var(--border);

  border-radius: 0.5rem;

}



.products-page__empty[hidden] {

  display: none !important;

}

/* ——— لودینگ لیست محصولات ——— */

.products-load {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  padding: 0.5rem 0 0.25rem;
  animation: productsLoadFadeIn 0.45s ease backwards;
}

.products-load__panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  width: 100%;
  max-width: 16rem;
  padding: 1.15rem 1rem 1rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(255, 214, 10, 0.2);
  background: rgba(12, 10, 6, 0.55);
  backdrop-filter: blur(18px) saturate(1.35);
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.products-load__spinner {
  position: relative;
  width: 4.25rem;
  height: 4.25rem;
  display: grid;
  place-items: center;
}

.products-load__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid transparent;
}

.products-load__ring--outer {
  border-top-color: var(--y-hot, #ffc107);
  border-right-color: rgba(255, 193, 7, 0.35);
  animation: productsLoadSpin 1.1s linear infinite;
}

.products-load__ring--inner {
  inset: 0.55rem;
  border-bottom-color: #fff0a8;
  border-left-color: rgba(255, 255, 255, 0.1);
  animation: productsLoadSpin 0.75s linear infinite reverse;
}

.products-load__core {
  position: relative;
  z-index: 1;
  width: 2.15rem;
  height: 2.15rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 0.95rem;
  color: var(--y-hot, #ffc107);
  background: rgba(255, 214, 10, 0.1);
  border: 1px solid rgba(255, 214, 10, 0.28);
  animation: productsLoadPulse 1.6s ease-in-out infinite;
}

.products-load__text {
  margin: 0;
  font-size: 0.84rem;
  font-weight: 900;
  color: #fef3c7;
}

.products-load__dots {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  height: 0.5rem;
}

.products-load__dots span {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--y-hot, #ffc107);
  opacity: 0.35;
  animation: productsLoadDot 1.2s ease-in-out infinite;
}

.products-load__dots span:nth-child(2) {
  animation-delay: 0.15s;
}

.products-load__dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.products-load__skels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
}

.products-load__skel {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  padding: 0.55rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 214, 10, 0.12);
  background: rgba(12, 10, 6, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: productsLoadSkelIn 0.5s ease backwards;
  overflow: hidden;
}

.products-load__skel-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 0.85rem;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.03) 8%,
    rgba(255, 214, 10, 0.14) 18%,
    rgba(255, 255, 255, 0.03) 33%
  );
  background-size: 200% 100%;
  animation: productsLoadShimmer 1.4s ease-in-out infinite;
}

.products-load__skel-line {
  height: 0.55rem;
  border-radius: 999px;
  width: 72%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.03) 8%,
    rgba(255, 255, 255, 0.1) 18%,
    rgba(255, 255, 255, 0.03) 33%
  );
  background-size: 200% 100%;
  animation: productsLoadShimmer 1.4s ease-in-out infinite;
  animation-delay: 0.1s;
}

.products-load__skel-line--lg {
  width: 88%;
  height: 0.65rem;
}

.products-load__skel-price {
  height: 1.35rem;
  margin-top: 0.1rem;
  border-radius: 0.5rem;
  width: 55%;
  background: linear-gradient(
    110deg,
    rgba(255, 255, 255, 0.02) 8%,
    rgba(255, 193, 7, 0.22) 18%,
    rgba(255, 255, 255, 0.02) 33%
  );
  background-size: 200% 100%;
  animation: productsLoadShimmer 1.4s ease-in-out infinite;
  animation-delay: 0.2s;
}

@keyframes productsLoadFadeIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes productsLoadSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes productsLoadPulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes productsLoadDot {
  0%,
  80%,
  100% {
    opacity: 0.3;
    transform: translateY(0) scale(0.85);
  }
  40% {
    opacity: 1;
    transform: translateY(-4px) scale(1);
  }
}

@keyframes productsLoadSkelIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes productsLoadShimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .products-load,
  .products-load__ring,
  .products-load__core,
  .products-load__dots span,
  .products-load__skel,
  .products-load__skel-thumb,
  .products-load__skel-line,
  .products-load__skel-price {
    animation: none !important;
  }
}

.products-grid {

  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 0.65rem;

}



.products-grid .deal-card {

  width: 100%;

  flex: none;

}



/* موبایل — هدر و جستجو در یک بلوک fixed شناور */
@media (max-width: 47.99rem) {
  body.products-page .app-shell__main {
    padding-top: calc(
      var(--store-header-float-gap, 0.5rem) + env(safe-area-inset-top) + var(--store-header-bar-h, 3.15rem) +
        var(--products-search-gap) + var(--products-search-bar-h) + 0.35rem
    );
  }

  body.products-page .products-float-stack {
    position: fixed;
    top: calc(var(--store-header-float-gap, 0.5rem) + env(safe-area-inset-top));
    inset-inline-start: max(0.65rem, env(safe-area-inset-left));
    inset-inline-end: max(0.65rem, env(safe-area-inset-right));
    width: auto;
    max-width: none;
    margin: 0;
    box-sizing: border-box;
    z-index: 35;
    --header-slide-out: calc(
      -100% - var(--store-header-float-gap, 0.5rem) - env(safe-area-inset-top) - 0.35rem
    );
    transform: translate3d(0, 0, 0);
    transition: transform 0.48s cubic-bezier(0.33, 1, 0.68, 1);
    will-change: transform;
  }

  body.products-page .products-float-stack.is-header-hidden {
    transform: translate3d(0, var(--header-slide-out), 0);
    pointer-events: none;
  }

  body.products-page .products-float-stack > .store-header {
    position: relative;
    top: auto;
    inset-inline: unset;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    box-sizing: border-box;
    transform: none !important;
    pointer-events: auto;
  }

  body.products-page .products-float-stack > .store-header.is-header-hidden {
    transform: none !important;
  }

  body.products-page .products-float-stack > .products-search-float {
    position: relative;
    top: auto;
    inset-inline: unset;
    z-index: auto;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0;
    padding: 0;
    transform: none !important;
  }

  body.products-page .products-search-float__bar {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    min-height: var(--products-search-bar-h);
    padding: 0.38rem 0.5rem;
    gap: 0.45rem;
  }

  body.products-page .products-search-float__input {
    font-size: 0.82rem;
  }
}

@media (min-width: 48rem) {

  .products-float-stack {

    position: sticky;

    top: 0;

    z-index: 19;

    margin-bottom: 0.75rem;

  }



  .products-search-float {

    padding-inline: var(--pad-inline);

  }



  .products-search-float__bar {

    padding-inline: 0.65rem 0.6rem;

  }

}



@media (min-width: 36rem) {

  .products-grid {

    grid-template-columns: repeat(3, minmax(0, 1fr));

  }

}



@media (min-width: 48rem) {

  .products-grid {

    grid-template-columns: repeat(4, minmax(0, 1fr));

    gap: 0.75rem;

  }

}



@media (min-width: 64rem) {

  .products-grid {

    grid-template-columns: repeat(5, minmax(0, 1fr));

  }

}



@media (prefers-reduced-motion: reduce) {

  body.products-page .products-float-stack {

    transition-duration: 0.01ms;

  }

}


