/* Catalog / list pages — above-the-fold critical styles */
.featured-banner-swiper:not(.swiper-initialized) {
  overflow: hidden;
}

.featured-banner-swiper:not(.swiper-initialized) > .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
}

.featured-banner-swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
  flex: 0 0 89.2857%;
  min-width: 0;
  margin-inline-end: 12px;
}

.featured-banner-swiper .catalog-banner-card {
  height: 252px;
  min-height: 252px;
}

@media (min-width: 576px) {
  .featured-banner-swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
    flex-basis: 83.3333%;
    margin-inline-end: 14px;
  }
}

@media (min-width: 768px) {
  .featured-banner-swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
    flex-basis: 78.125%;
    margin-inline-end: 16px;
  }
}

@media (min-width: 1200px) {
  .featured-banner-swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
    flex-basis: 54.054%;
    margin-inline-end: 18px;
  }
  .featured-banner-swiper .catalog-banner-card {
    height: 300px;
    min-height: 300px;
  }
}

@media (min-width: 1400px) {
  .featured-banner-swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
    flex-basis: 48.7805%;
    margin-inline-end: 20px;
  }
  .featured-banner-swiper .catalog-banner-card {
    height: 320px;
    min-height: 320px;
  }
}

/* Keep the initial category rail horizontal before Swiper loads. */
.featured-category-swiper:not(.swiper-initialized) {
  overflow: hidden;
}

.featured-category-swiper:not(.swiper-initialized) > .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
}

.featured-category-swiper:not(.swiper-initialized) > .swiper-wrapper > .swiper-slide {
  flex: 0 0 var(--featured-category-card-w, 102px);
  width: var(--featured-category-card-w, 102px);
  min-width: 0;
}

.featured-category-card--skeleton {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 6px 4px;
}

.featured-category-card--skeleton .featured-category-card__media {
  display: block;
  width: var(--featured-category-media, 46px);
  height: var(--featured-category-media, 46px);
  border-radius: 50%;
  flex-shrink: 0;
}

.featured-category-card--skeleton .skeleton-line {
  display: block;
  width: 75%;
  height: 12px;
  border-radius: 6px;
}

body.featured-app-page,
body.starter-page-page {
  --site-header-height: 62px;
}

body.featured-app-page #site-header,
body.starter-page-page #site-header {
  min-height: var(--site-header-height, 62px);
}

/* Header matches home-main (critical — main.css loads deferred) */
body.featured-app-page .header,
body.starter-page-page .header {
  --background-color: rgba(255, 255, 255, 0);
  background-color: var(--background-color);
  box-shadow: none;
  border-bottom: none;
}

body.featured-app-page.scrolled .header,
body.starter-page-page.scrolled .header {
  --background-color: #ffffff;
  box-shadow: 0 0 18px rgba(0, 0, 0, 0.1);
}

body.featured-app-page .main,
body.starter-page-page .main,
body.featured-app-page #site-header + .main,
body.starter-page-page #site-header + .main {
  padding-top: 0;
  position: relative;
  background: transparent;
  overflow-x: clip;
}

body.featured-app-page .featured-app {
  position: relative;
  z-index: 1;
  padding-bottom: 1.5rem;
}

.catalog-fixed-background.catalog-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.catalog-bg--vendors {
  background:
    radial-gradient(ellipse 32rem 32rem at 12% 6%, rgba(96, 165, 250, 0.48), transparent 72%),
    radial-gradient(ellipse 28rem 28rem at 88% 12%, rgba(56, 189, 248, 0.42), transparent 72%),
    linear-gradient(180deg, rgba(224, 242, 254, 0.95) 0%, rgba(255, 241, 242, 0.85) 45%, rgba(219, 234, 254, 0.9) 100%);
}

.catalog-bg--products {
  background:
    radial-gradient(ellipse 32rem 32rem at 10% 8%, rgba(129, 140, 248, 0.5), transparent 72%),
    radial-gradient(ellipse 28rem 28rem at 90% 14%, rgba(56, 189, 248, 0.4), transparent 72%),
    linear-gradient(180deg, rgba(224, 231, 255, 0.9) 0%, rgba(240, 249, 255, 0.8) 45%, rgba(237, 233, 254, 0.85) 100%);
}

.featured-app .glass-torn-section {
  width: 100%;
  max-width: none;
  margin-inline: 0;
  box-sizing: border-box;
}

.featured-category-card--skeleton .skeleton-box,
.skeleton-image,
.skeleton-line {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06) 25%, rgba(0, 0, 0, 0.1) 50%, rgba(0, 0, 0, 0.06) 75%);
  background-size: 200% 100%;
  animation: catalog-shimmer 1.2s ease-in-out infinite;
}

@keyframes catalog-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
