/* فروشگاه — صفحهٔ فهرست (hub) */

.store-index-page {
  --st-hub-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.store-index-page .site-main.container {
  padding-top: var(--header-clearance);
}

.st-hub-main.container {
  width: min(1240px, calc(100% - clamp(1.25rem, 4vw, 2.75rem)));
  max-width: 1240px;
}

.st-hub {
  position: relative;
  isolation: isolate;
  padding-block: var(--space-4) clamp(3rem, 7vw, 5rem);
}

/* Ambient */
.st-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  overflow: hidden;
}

.st-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.4;
  animation: st-hub-orb 18s var(--st-hub-ease) infinite;
}

.st-ambient__orb--a {
  width: min(480px, 65vw);
  height: min(480px, 65vw);
  top: -8%;
  inset-inline-start: -10%;
  background: radial-gradient(circle, rgb(67 149 255 / 0.3), transparent 70%);
}

.st-ambient__orb--b {
  width: min(400px, 55vw);
  height: min(400px, 55vw);
  bottom: 5%;
  inset-inline-end: -14%;
  background: radial-gradient(circle, rgb(16 185 129 / 0.16), transparent 72%);
  animation-delay: -6s;
}

.st-ambient__grid {
  position: absolute;
  inset: 0;
  opacity: 0.28;
  background-image:
    linear-gradient(rgb(15 23 42 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(15 23 42 / 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 50% at 50% 12%, black, transparent);
}

[data-theme="dark"] .st-ambient__grid {
  opacity: 0.16;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.04) 1px, transparent 1px);
}

@keyframes st-hub-orb {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(2%, 3%, 0) scale(1.05);
  }
}

/* Hero */
.store-index-page .st-header {
  display: none;
}

.st-hero {
  position: relative;
  display: grid;
  gap: clamp(1.25rem, 3.5vw, 2rem);
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding: clamp(1.25rem, 3.5vw, 2rem);
  border-radius: 24px;
  overflow: hidden;
  isolation: isolate;
}

.st-hero__glow {
  position: absolute;
  inset: -25% auto auto -12%;
  width: 50%;
  height: 85%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(ellipse at center, rgb(67 149 255 / 0.14), transparent 68%);
  animation: st-hero-glow 14s ease-in-out infinite;
}

.st-hero > *:not(.st-hero__glow) {
  position: relative;
  z-index: 1;
}

@keyframes st-hero-glow {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 0.85;
  }

  50% {
    transform: translate3d(3%, 2%, 0) scale(1.05);
    opacity: 1;
  }
}

.st-hero__copy h1 {
  margin: 0.35rem 0 0.75rem;
  max-width: 20ch;
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.st-hero__lead {
  margin: 0;
  max-width: 38rem;
  font-size: var(--text-base);
  line-height: 1.7;
  color: var(--color-text-muted);
}

.st-hero__search {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  max-width: 100%;
  margin-top: var(--space-4);
  padding: 0.35rem 0.35rem 0.35rem var(--space-3);
  border: 1px solid var(--glass-l2-border);
  border-radius: 14px;
  background: var(--glass-l1-bg);
  box-shadow: var(--glass-l1-shadow);
  transition:
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

.st-hero__search:focus-within {
  border-color: color-mix(in srgb, var(--color-brand-400) 45%, var(--glass-l2-border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-brand-400) 12%, transparent);
}

.st-hero__search-icon {
  display: inline-flex;
  color: var(--color-text-muted);
  opacity: 0.85;
}

.st-hero__search input {
  flex: 1;
  min-height: 2.65rem;
  border: none;
  background: transparent;
  font-size: var(--text-sm);
}

.st-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-3);
}

.st-hero__trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin: var(--space-4) 0 0;
  padding: 0;
  list-style: none;
}

.st-hero__trust li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--color-text-muted);
  border: 1px solid var(--glass-l1-border);
  background: var(--glass-l1-bg);
}

.st-hero__trust-num {
  font-weight: 800;
  color: var(--color-text);
}

.st-hero .home-hero__visual {
  --hero-pointer-x: 50%;
  --hero-pointer-y: 42%;
  min-height: clamp(12rem, 28vw, 18rem);
}

.st-hero .home-hero__visual::after {
  display: none;
}

.st-hero .home-hero__art.st-hero__art {
  width: min(100%, 24rem);
  max-height: min(42vh, 22rem);
  border-radius: 12px;
}

/* Marquee */
.st-marquee {
  margin-bottom: clamp(1.5rem, 4vw, 2.25rem);
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, black 8%, black 92%, transparent);
}

.st-marquee__track {
  display: flex;
  gap: 2rem;
  width: max-content;
  animation: st-marquee 32s linear infinite;
}

.st-marquee__track span {
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--color-text-muted);
  opacity: 0.72;
  white-space: nowrap;
}

@keyframes st-marquee {
  from {
    transform: translate3d(0, 0, 0);
  }

  to {
    transform: translate3d(-50%, 0, 0);
  }
}

/* Pills */
.st-pills--hub {
  margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
  padding: 0.35rem;
  border-radius: 18px;
  border: 1px solid var(--glass-l1-border);
  background: color-mix(in srgb, var(--glass-l1-bg) 80%, transparent);
  gap: 0.35rem;
}

.st-pills--hub .st-pill {
  border-color: transparent;
  background: transparent;
}

.st-pills--hub .st-pill.is-active {
  background: var(--glass-l2-bg);
  border-color: var(--glass-l2-border);
  box-shadow: var(--glass-l1-shadow);
}

/* Section heads */
.st-section-head {
  margin-bottom: var(--space-4);
}

.st-section-head--center {
  text-align: center;
  max-width: 36rem;
  margin-inline: auto;
  margin-bottom: var(--space-5);
}

.st-section-head h2 {
  margin: 0.25rem 0 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}

.st-section-head__sub {
  margin: 0.5rem 0 0;
  font-size: var(--text-sm);
  line-height: 1.65;
  color: var(--color-text-muted);
}

/* Values */
.st-values {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.st-values__grid {
  display: grid;
  gap: var(--space-3);
  grid-template-columns: 1fr;
}

.st-value-card {
  display: grid;
  gap: 0.35rem;
  padding: var(--space-4);
  border-radius: 18px;
  transition: transform 0.22s var(--st-hub-ease);
}

.st-value-card:hover {
  transform: translateY(-2px);
}

.st-value-card__icon {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem;
  margin-bottom: 0.25rem;
  border-radius: 12px;
  color: var(--color-brand-400);
  background: color-mix(in srgb, var(--color-brand-400) 12%, transparent);
}

.st-value-card h3 {
  margin: 0;
  font-size: var(--text-base);
  font-weight: 800;
}

.st-value-card p {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

/* Featured hub */
.st-featured--hub {
  margin-bottom: clamp(2rem, 5vw, 3rem);
}

.st-featured--hub .st-featured__head {
  align-items: flex-end;
  gap: var(--space-3);
  margin-bottom: var(--space-4);
}

.st-featured__sub {
  margin: 0.35rem 0 0;
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 28rem;
}

.st-featured--hub .st-featured__item {
  border: 1px solid var(--glass-l2-border);
  background: var(--glass-l2-bg);
  box-shadow: var(--glass-l2-shadow);
  backdrop-filter: blur(var(--glass-l2-blur)) saturate(var(--glass-l2-saturate));
}

.st-featured__media {
  position: relative;
  display: block;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.st-featured__media .st-product-visual {
  display: block;
  min-height: 11rem;
}

.st-featured__media .st-product-visual__img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.st-featured__media .st-product-visual__img.is-default {
  object-fit: contain;
  padding: 1rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-brand-400) 8%, var(--color-bg)),
    color-mix(in srgb, var(--color-bg) 92%, transparent)
  );
}

.st-featured__badge {
  position: absolute;
  top: 0.75rem;
  inset-inline-end: 0.75rem;
  z-index: 2;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  font-size: var(--text-xs);
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--color-brand-400), rgb(99 102 241 / 0.95));
  box-shadow: 0 6px 18px rgb(67 149 255 / 0.35);
}

.st-featured__desc {
  margin: 0;
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--color-text-muted);
}

.st-featured__price {
  font-size: var(--text-lg);
  font-weight: 800;
}

/* Catalog cards */
.store-index-page .st-product--card {
  border: 1px solid var(--glass-l2-border);
  background: var(--glass-l2-bg);
  box-shadow: var(--glass-l2-shadow);
  backdrop-filter: blur(var(--glass-l2-blur)) saturate(var(--glass-l2-saturate));
}

.store-index-page .st-product__media {
  border-bottom: 1px solid color-mix(in srgb, var(--glass-l2-border) 70%, transparent);
}

.st-product__media-hit {
  display: block;
  height: 100%;
  min-height: inherit;
  text-decoration: none;
  color: inherit;
}

.st-product__media-hit .st-product-visual {
  display: block;
  height: 100%;
  min-height: inherit;
  transition: transform 0.35s var(--st-hub-ease);
}

.st-product__media-hit .st-product-visual__img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center;
}

.st-product__media-hit .st-product-visual__img.is-default {
  object-fit: contain;
  padding: 0.75rem;
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--color-brand-400) 8%, var(--color-bg)),
    color-mix(in srgb, var(--color-bg) 92%, transparent)
  );
}

.store-index-page .st-product:hover .st-product__media-hit .st-product-visual {
  transform: scale(1.03);
}

.store-index-page .st-catalog {
  margin-top: 0;
}

.store-index-page .st-sticky-bar.glass-l2 {
  border: 1px solid var(--glass-l2-border);
}

.store-index-page .st-chips {
  margin-bottom: var(--space-4);
}

.store-index-page .st-empty {
  border-style: solid;
  border-color: var(--glass-l2-border);
}

.st-empty__icon {
  display: inline-flex;
  margin-bottom: var(--space-3);
  padding: 0.65rem;
  border-radius: 14px;
  color: var(--color-brand-400);
  background: color-mix(in srgb, var(--color-brand-400) 10%, transparent);
}

/* CTA */
.store-index-page .st-inline-cta {
  margin-top: clamp(2rem, 5vw, 3rem);
  margin-bottom: clamp(2rem, 5vw, 3rem);
  padding: clamp(1.35rem, 3vw, 2rem);
  border-radius: 22px;
  border: 1px solid var(--glass-l3-border);
  border-top: none;
}

.st-inline-cta__copy h2 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.2rem, 2.2vw, 1.65rem);
  font-weight: 800;
}

.st-inline-cta__copy p {
  margin: 0;
  max-width: 36rem;
  color: var(--color-text-muted);
  line-height: 1.65;
}

.st-inline-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

/* FAQ */
.st-faq--hub {
  padding-block: 0 clamp(1rem, 3vw, 2rem);
  border-top: none;
}

.st-faq__grid {
  display: grid;
  gap: var(--space-3);
}

.st-faq__item {
  padding: 0;
  border-radius: 16px;
  border: 1px solid var(--glass-l2-border);
  background: var(--glass-l2-bg);
  overflow: hidden;
  transition: border-color 0.2s ease;
}

.st-faq__item[open] {
  border-color: color-mix(in srgb, var(--color-brand-400) 35%, var(--glass-l2-border));
}

.st-faq__item summary {
  padding: 1rem 1.1rem;
  font-weight: 700;
  font-size: var(--text-sm);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
}

.st-faq__item summary::-webkit-details-marker {
  display: none;
}

.st-faq__item summary::after {
  content: "+";
  flex-shrink: 0;
  width: 1.65rem;
  height: 1.65rem;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-brand-400);
  background: color-mix(in srgb, var(--color-brand-400) 10%, transparent);
  transition: transform 0.2s ease;
}

.st-faq__item[open] summary::after {
  content: "−";
}

.st-faq__item p {
  margin: 0;
  padding: 0 1.1rem 1.1rem;
  font-size: var(--text-sm);
  line-height: 1.7;
  color: var(--color-text-muted);
}

/* Responsive */
@media (min-width: 768px) {
  .st-values__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-faq__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .st-inline-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
  }
}

@media (min-width: 900px) {
  .st-hero {
    grid-template-columns: minmax(0, 1.05fr) minmax(14rem, 0.95fr);
    align-items: center;
  }

  .st-hero .home-hero__art.st-hero__art {
    width: min(100%, 26rem);
    max-height: min(52vh, 26rem);
  }
}

@media (min-width: 1024px) {
  .st-values__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (prefers-reduced-motion: reduce) {
  .st-ambient__orb,
  .st-marquee__track,
  .st-hero__glow {
    animation: none !important;
  }

  .st-hero .home-hero__art {
    animation: none !important;
  }
}
