/**
 * Shop / shared listing shell — Homepage design system (inner pages only)
 * Do not load on locked Homepage.
 */

.main {
  overflow-x: clip;
  background:
    radial-gradient(ellipse 80% 50% at 100% 0%, rgba(107, 47, 214, 0.08), transparent 55%),
    radial-gradient(ellipse 60% 40% at 0% 100%, rgba(20, 0, 38, 0.04), transparent 50%),
    var(--page);
}

/* Purple-black intro band — decoration only, not Homepage Hero */
.shop-intro {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(ellipse 70% 80% at 88% 20%, rgba(150, 70, 230, 0.38), transparent 55%),
    radial-gradient(ellipse 50% 60% at 10% 110%, rgba(40, 10, 70, 0.55), transparent 50%),
    linear-gradient(165deg, #050208 0%, #0c0618 32%, #1a0a32 68%, #120820 100%);
  border-bottom: 0;
  padding: 28px 0 26px;
  color: #fff;
}

.shop-intro::before {
  content: "";
  position: absolute;
  right: -12%;
  top: -40%;
  width: min(52vw, 420px);
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: none;
  z-index: 0;
  background: conic-gradient(
    from 210deg,
    transparent 0%,
    rgba(190, 120, 255, 0.45) 14%,
    transparent 28%,
    rgba(140, 80, 255, 0.28) 48%,
    transparent 62%,
    rgba(200, 140, 255, 0.22) 78%,
    transparent 100%
  );
  -webkit-mask: radial-gradient(circle, transparent 56%, #000 57.5%, #000 64%, transparent 65.5%);
  mask: radial-gradient(circle, transparent 56%, #000 57.5%, #000 64%, transparent 65.5%);
  opacity: 0.85;
}

.shop-intro .container {
  position: relative;
  z-index: 1;
}

.shop-intro__eyebrow {
  font-size: var(--fs-11);
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #c9a6ff;
  margin-bottom: 8px;
}

.shop-intro__title {
  font-size: clamp(1.65rem, 5.5vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  max-width: 16ch;
}

.shop-intro__text {
  margin-top: 10px;
  font-size: var(--fs-14);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.76);
  max-width: 36rem;
}

#shop-products.section,
#category-products.section {
  padding-block: 32px 48px;
}

/* Unified Family cards on listing pages only */
#shop-products .grid-products,
#category-products .grid-products {
  align-items: stretch;
}

#shop-products .card,
#category-products .card {
  height: 100%;
  min-height: 0;
  background: var(--surface);
  border-radius: var(--r-md);
  border: 1px solid rgba(17, 17, 17, 0.06);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#shop-products .card__media,
#category-products .card__media {
  aspect-ratio: 1 / 0.82;
  width: 100%;
  flex: 0 0 auto;
  background:
    radial-gradient(ellipse 70% 60% at 50% 40%, rgba(107, 47, 214, 0.06), transparent 70%),
    var(--media);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

#shop-products .card__media img,
#category-products .card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 10px;
  box-sizing: border-box;
}

#shop-products .card__body,
#category-products .card__body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 2px;
  padding: 8px 10px 10px;
  min-height: 4.1rem;
}

#shop-products .card__meta,
#category-products .card__meta {
  font-size: var(--fs-11);
  font-weight: 600;
  color: var(--faint);
  letter-spacing: 0.02em;
}

#shop-products .card__title,
#category-products .card__title {
  font-size: var(--fs-14);
  font-weight: 700;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.35em * 2);
}

@media (min-width: 412px) {
  #shop-products .card__title,
  #category-products .card__title {
    font-size: var(--fs-15);
  }
}

@media (min-width: 1280px) {
  .shop-intro {
    padding: 48px 0 44px;
  }

  .shop-intro__eyebrow {
    font-size: var(--fs-12);
    margin-bottom: 10px;
  }

  .shop-intro__title {
    font-size: clamp(2.2rem, 2.8vw, 2.75rem);
  }

  .shop-intro__text {
    margin-top: 12px;
    font-size: var(--fs-16);
    max-width: 40rem;
  }

  #shop-products.section,
  #category-products.section {
    padding-block: 48px 72px;
  }

  #shop-products .card,
  #category-products .card {
    border-radius: var(--r-lg);
  }

  #shop-products .card__media,
  #category-products .card__media {
    aspect-ratio: 1 / 1;
  }

  #shop-products .card__media img,
  #category-products .card__media img {
    padding: var(--media-inset);
  }

  #shop-products .card__body,
  #category-products .card__body {
    padding: 16px 16px 18px;
    gap: 6px;
    min-height: 5.25rem;
  }

  #shop-products .card__meta,
  #category-products .card__meta {
    font-size: var(--fs-12);
  }

  #shop-products .card__title,
  #category-products .card__title {
    font-size: var(--fs-15);
  }
}
