/* TrendWatch — fluid layout + responsive media rules.
   Deliberately uses percentages, rem/clamp and intrinsic sizing for layout.
   Fixed px values remain appropriate for hairline borders and tiny icons. */

:root {
  --tw-content-width: 92%;
  --tw-content-max: 77.5rem;
}

html {
  font-size: 100%;
}

img,
svg,
video,
canvas {
  max-width: 100%;
}

.container {
  width: min(var(--tw-content-width), var(--tw-content-max));
}

.hero {
  min-height: clamp(32rem, 72vh, 40.625rem);
}

.hero-layout {
  min-height: 0;
  gap: clamp(1.5rem, 4vw, 3.125rem);
  padding-block: clamp(3rem, 6vw, 3.4375rem);
}

.hero-glow {
  width: min(42vw, 31.25rem);
  height: auto;
  aspect-ratio: 1;
}

.hero-art {
  min-height: clamp(24rem, 45vw, 30.3125rem);
}

.orbit-one {
  width: min(78%, 25.625rem);
  height: auto;
  aspect-ratio: 1;
}

.orbit-two {
  width: min(63%, 20.625rem);
  height: auto;
  aspect-ratio: 1;
}

.products-grid {
  gap: clamp(.75rem, 1.7vw, 1.25rem);
}

.product-image {
  height: clamp(12.5rem, 22vw, 15.9375rem);
}

.catalog-toolbar select {
  min-width: min(11.875rem, 35%);
}

.premium-product-card {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  gap: clamp(1.25rem, 3vw, 2.125rem);
}

.premium-product-media {
  min-height: clamp(22rem, 48vw, 36.875rem);
}

.premium-product-media img {
  max-height: 100%;
}

.info-main,
.account-main,
.customer-main,
.checkout-page {
  max-width: var(--tw-content-max);
}

@media (max-width: 62.5rem) {
  .products-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hero-layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
  }
}

@media (max-width: 50rem) {
  .products-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hero-layout,
  .story-layout,
  .premium-product-card {
    grid-template-columns: 1fr;
  }

  .hero-art {
    order: -1;
    min-height: clamp(22rem, 70vw, 30rem);
  }

  .hero-copy {
    max-width: 45rem;
  }

  .premium-product-media {
    min-height: clamp(20rem, 72vw, 34rem);
  }

  .premium-product-content {
    padding: clamp(1rem, 3vw, 1.625rem);
  }
}

@media (max-width: 40rem) {
  .container {
    width: min(94%, 35rem);
  }

  .hero h1 {
    font-size: clamp(2rem, 9vw, 3rem);
    letter-spacing: -.05rem;
  }

  .hero-description {
    max-width: 100%;
  }

  .hero-buttons,
  .catalog-toolbar {
    align-items: stretch;
  }

  .button,
  .catalog-toolbar select,
  .search-box {
    width: 100%;
  }

  .catalog-toolbar {
    flex-wrap: wrap;
  }

  .catalog-toolbar select {
    min-width: 100%;
  }

  .catalog-count {
    width: 100%;
    text-align: right;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .product-image {
    height: auto;
    aspect-ratio: 4 / 3;
  }

  .benefits-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .premium-product-media {
    min-height: clamp(18rem, 90vw, 28rem);
  }

  .premium-product-content h1 {
    font-size: clamp(1.875rem, 9vw, 2.75rem);
  }

  .premium-price-row strong {
    font-size: clamp(1.75rem, 8vw, 2rem);
  }
}

.seo-product-fallback {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
