:root {
  --store-radius-xl: 30px;
  --store-radius-lg: 24px;
  --store-shadow: 0 18px 52px rgba(3, 15, 25, 0.18);
}

.storefront-page {
  background:
    radial-gradient(circle at 10% 8%, color-mix(in srgb, var(--accent) 9%, transparent), transparent 26%),
    var(--bg);
}

.storefront-home-hero {
  padding-block: clamp(44px, 6vw, 76px);
}

.storefront-home-hero .hero-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(420px, 1.08fr);
  gap: clamp(34px, 5vw, 68px);
}

.storefront-home-hero .hero-copy h1 {
  max-inline-size: 700px;
  font-size: clamp(2.8rem, 5.2vw, 4.6rem);
  line-height: 1.04;
}

.storefront-home-hero .hero-text {
  max-inline-size: 620px;
  font-size: clamp(1rem, 1.5vw, 1.16rem);
}

.storefront-home-hero .hero-actions {
  margin-block-start: 22px;
}

.hero-showcase {
  inline-size: 100%;
  max-inline-size: 680px;
  aspect-ratio: 16 / 9;
  justify-self: end;
  border-radius: var(--store-radius-xl);
  box-shadow: var(--store-shadow);
}

[dir="rtl"] .hero-showcase {
  justify-self: start;
}

.hero-showcase-image {
  position: absolute;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
}

.hero-showcase::after {
  background: linear-gradient(180deg, transparent 52%, rgba(4, 14, 23, 0.84) 100%);
}

.hero-showcase-caption {
  inset-inline: 16px;
  inset-block-end: 16px;
  max-inline-size: min(72%, 420px);
  padding: 12px;
  border-radius: 16px;
}

.hero-showcase-icon {
  inline-size: 50px;
  block-size: 50px;
  border-radius: 14px;
}

.storefront-hero {
  padding-block: clamp(42px, 5vw, 68px);
  border-block-end: 1px solid var(--border);
  background:
    radial-gradient(circle at 82% 8%, color-mix(in srgb, var(--accent) 15%, transparent), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 76%, transparent), transparent);
}

.storefront-hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
}

.storefront-hero h1 {
  margin: 0;
  max-inline-size: 760px;
  font-size: clamp(2.5rem, 5vw, 4.2rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

[dir="rtl"] .storefront-hero h1 {
  letter-spacing: 0;
}

.storefront-hero p {
  max-inline-size: 700px;
  margin-block: 14px 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.6vw, 1.16rem);
}

.storefront-count {
  display: flex;
  align-items: center;
  gap: 10px;
  min-inline-size: 0;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  box-shadow: 0 10px 30px rgba(18, 48, 74, 0.08);
}

.storefront-count strong {
  font-size: 1.35rem;
  line-height: 1;
}

.storefront-count span {
  color: var(--muted);
  font-size: 0.86rem;
}

.storefront-section {
  padding-block: clamp(40px, 5vw, 66px);
}

.storefront-heading {
  align-items: center;
  margin-block-end: 24px;
}

.storefront-heading h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}

.store-grid {
  display: grid;
  gap: clamp(18px, 2.2vw, 26px);
}

.store-grid[data-catalog-list="featured"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-inline-size: 960px;
  margin-inline: auto;
}

.store-grid[data-catalog-list="all"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.store-card {
  min-inline-size: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  border-radius: var(--store-radius-lg);
  background: var(--surface);
  box-shadow: 0 14px 36px rgba(3, 15, 25, 0.1);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.store-card:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--border));
  box-shadow: 0 22px 48px rgba(3, 15, 25, 0.17);
}

.store-card-hit {
  display: flex;
  min-block-size: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.store-card-media {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-block-end: 1px solid var(--border);
  background: #07131d;
}

.store-card-media > img {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 220ms ease;
}

.store-card:hover .store-card-media > img {
  transform: scale(1.018);
}

.store-card-media.media-contain > img,
.store-card-media.media-cover > img {
  object-fit: cover;
}

.store-card-placeholder {
  background:
    radial-gradient(circle at 28% 22%, color-mix(in srgb, var(--accent) 28%, transparent), transparent 34%),
    linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--surface) 72%, var(--primary)));
}

.store-card-placeholder > img {
  inline-size: clamp(84px, 24%, 112px);
  block-size: auto;
  aspect-ratio: 1;
  border: 1px solid color-mix(in srgb, var(--border) 72%, transparent);
  border-radius: 24px;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.22);
  transform: none;
}

.store-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 18px 20px 20px;
}

.store-card-heading {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.store-card-icon {
  inline-size: 54px;
  block-size: 54px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
  object-fit: cover;
}

.store-card-title {
  min-inline-size: 0;
}

.store-card-title h3 {
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  font-size: 1.18rem;
  line-height: 1.18;
}

.web-chip {
  align-self: start;
  padding: 4px 8px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, var(--border));
  border-radius: 999px;
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 800;
  white-space: nowrap;
}

.store-card-body > p {
  display: -webkit-box;
  min-block-size: calc(1.55em * 3);
  margin: 15px 0 18px;
  overflow: hidden;
  color: var(--muted);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.store-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: auto;
  padding-block-start: 14px;
  border-block-start: 1px solid var(--border);
  color: var(--text);
  font-weight: 800;
}

.storefront-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-block-start: 20px;
}

.storefront-meta > * {
  margin: 0;
}

.product-hero {
  padding-block: clamp(42px, 5vw, 70px);
  border-block-end: 1px solid var(--border);
  background:
    radial-gradient(circle at 86% 14%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 28%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-soft) 78%, transparent), transparent);
}

.product-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(440px, 1.1fr);
  align-items: center;
  gap: clamp(34px, 5vw, 64px);
}

.product-copy h1 {
  margin: 12px 0 0;
  max-inline-size: 680px;
  font-size: clamp(2.5rem, 4.8vw, 4.3rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
}

[dir="rtl"] .product-copy h1 {
  letter-spacing: 0;
}

.product-gallery {
  position: relative;
  aspect-ratio: 16 / 9;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: var(--store-radius-xl);
  background: #07131d;
  box-shadow: var(--store-shadow);
}

.product-gallery.media-contain {
  aspect-ratio: 1024 / 500;
}

.product-gallery .product-promo,
.product-gallery.media-cover .product-promo,
.product-gallery.media-contain .product-promo {
  inline-size: 100%;
  block-size: 100%;
  object-fit: cover;
  object-position: center;
}

.product-icon {
  position: absolute;
  inset-inline-end: 16px;
  inset-block-end: 16px;
  inline-size: clamp(68px, 9vw, 96px);
  block-size: clamp(68px, 9vw, 96px);
  border: 3px solid color-mix(in srgb, var(--surface) 84%, transparent);
  border-radius: 22px;
  background: var(--surface);
  object-fit: cover;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.34);
}

.product-gallery-placeholder {
  background:
    radial-gradient(circle at 30% 20%, color-mix(in srgb, var(--accent) 30%, transparent), transparent 34%),
    linear-gradient(145deg, var(--surface-soft), color-mix(in srgb, var(--surface) 70%, var(--primary)));
}

.product-icon-large {
  inline-size: clamp(140px, 30%, 210px);
  aspect-ratio: 1;
  border-radius: 32px;
  box-shadow: 0 22px 48px rgba(0, 0, 0, 0.22);
}

.narrow-wide {
  width: min(calc(100% - 32px), 980px);
  margin-inline: auto;
}

.choice-section {
  padding-block: clamp(40px, 5vw, 64px);
}

.choice-heading {
  max-inline-size: 720px;
  margin-block-end: 22px;
}

.choice-heading h2 {
  margin: 0;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
}

.choice-heading p:last-child {
  color: var(--muted);
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.choice-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  min-block-size: 164px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 21px;
  background: var(--surface);
  color: inherit;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(18, 48, 74, 0.06);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.choice-card:not(.is-disabled):hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--accent) 44%, var(--border));
  box-shadow: 0 18px 40px rgba(18, 48, 74, 0.12);
}

.choice-icon {
  inline-size: 48px;
  block-size: 48px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 1.35rem;
  font-weight: 900;
}

.choice-copy strong,
.choice-copy span {
  display: block;
}

.choice-copy strong {
  font-size: 1.14rem;
}

.choice-copy span {
  margin-block-start: 6px;
  color: var(--muted);
}

.choice-cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-block-start: auto;
  padding-block-start: 13px;
  border-block-start: 1px solid var(--border);
  font-weight: 800;
}

.choice-card.is-disabled {
  opacity: 0.58;
  cursor: not-allowed;
  pointer-events: none;
}

.product-details {
  padding-block-start: 18px;
}

@media (max-width: 1040px) {
  .store-grid[data-catalog-list="all"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .storefront-home-hero .hero-grid,
  .storefront-hero-inner,
  .product-hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-showcase,
  [dir="rtl"] .hero-showcase {
    max-inline-size: 760px;
    justify-self: stretch;
  }

  .product-gallery {
    grid-row: 1;
  }

  .storefront-count {
    justify-self: start;
  }
}

@media (max-width: 720px) {
  .storefront-home-hero {
    padding-block: 36px 46px;
  }

  .storefront-home-hero .hero-copy h1,
  .storefront-hero h1,
  .product-copy h1 {
    font-size: clamp(2.25rem, 11vw, 3.25rem);
  }

  .hero-showcase {
    border-radius: 22px;
  }

  .hero-showcase-caption {
    inset-inline: 10px;
    inset-block-end: 10px;
    max-inline-size: calc(100% - 20px);
  }

  .store-grid[data-catalog-list="featured"],
  .store-grid[data-catalog-list="all"],
  .choice-grid {
    grid-template-columns: 1fr;
  }

  .storefront-heading,
  .storefront-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .store-card-body {
    padding: 17px;
  }

  .store-card-heading {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .web-chip {
    grid-column: 2;
    justify-self: start;
  }

  .product-gallery,
  .product-gallery.media-contain {
    border-radius: 22px;
  }

  .choice-card {
    min-block-size: 0;
  }
}

@media (max-width: 480px) {
  .storefront-home-hero .hero-copy h1,
  .storefront-hero h1,
  .product-copy h1 {
    font-size: 2.2rem;
  }

  .hero-showcase-caption span span {
    display: none;
  }

  .store-card-icon {
    inline-size: 50px;
    block-size: 50px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .store-card,
  .store-card-media > img,
  .choice-card {
    transition: none;
  }
}
