/* Catalog restyle (iteration 1): product-card crossfade + made-to-order chip,
   sticky scroll-spy category filter. Loaded only on pages that need it
   (catalog, category, home) via {% block extra_head %}; site.css (compiled
   Tailwind) still owns the base utilities. Palette mirrors tailwind.config.js. */

.pcard-chip {
  position: absolute;
  top: .65rem;
  left: .65rem;
  z-index: 2;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: rgba(246, 230, 204, .85); /* canvas, translucent */
  color: #33170a; /* ink */
  font-family: "Golos Text", system-ui, sans-serif;
  font-size: .68rem;
  font-weight: 500;
  letter-spacing: .01em;
  line-height: 1.15;
  white-space: nowrap;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 1px 0 rgba(37, 17, 6, .05);
}

/* Sticky, slim category filter with scroll-spy active state (catalog.html only) */
.catalog-page .cat-filter {
  position: sticky;
  top: 4rem;
  z-index: 30;
  padding: .5rem 0;
  margin-left: -.05rem;
  background: rgba(246, 230, 204, .92); /* canvas, translucent */
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.catalog-page .cat-filter a {
  transition: background-color .18s ease, color .18s ease;
}
.catalog-page .cat-filter a.is-active {
  background: #a24d1b; /* cognac */
  color: #fff;
  box-shadow: none;
}
.catalog-page .cat-filter a.is-active span {
  color: rgba(255, 255, 255, .78);
}

/* Subtle paper-grain background for the catalog page (~5% opacity dot grid,
   pure CSS — no image request). Iteration 2, point 3. */
.catalog-page {
  background-image:
    radial-gradient(rgba(37, 17, 6, .05) .6px, transparent .6px),
    radial-gradient(rgba(37, 17, 6, .05) .6px, transparent .6px);
  background-size: 3px 3px, 3px 3px;
  background-position: 0 0, 1.5px 1.5px;
}

/* Category hero banner: wide photo + dark-to-transparent overlay + copy.
   Used at the top of each catalog.html section and at the top of
   category.html. Iteration 2, point 1. */
.hero-banner {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
  aspect-ratio: 16 / 10;
  background: #eed9b6; /* surface — shows while the photo loads */
}
@media (min-width: 640px) {
  .hero-banner { aspect-ratio: 3 / 1; }
}
.hero-banner > img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
  transition: transform .7s ease-out;
}
.hero-banner:hover > img {
  transform: scale(1.025);
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 17, 6, .88) 0%, rgba(37, 17, 6, .35) 45%, rgba(37, 17, 6, 0) 80%);
}
.hero-copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
}
@media (min-width: 640px) {
  .hero-copy { padding: 2rem 2.5rem; }
}
.hero-copy a {
  transition: opacity .18s ease;
}
.hero-copy a:hover {
  opacity: .75;
}

/* Full-width lifestyle band interleaved between catalog sections — a break
   from the product grid. Iteration 2, points 2 & 5. */
.lifestyle-band {
  position: relative;
  overflow: hidden;
  border-radius: 1rem;
}
.lifestyle-band > img {
  position: absolute;
  inset: 0;
  height: 100%;
  width: 100%;
  object-fit: cover;
}
.lifestyle-band__scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(37, 17, 6, .78) 0%, rgba(37, 17, 6, .4) 55%, rgba(37, 17, 6, .18) 100%);
}
.lifestyle-band__copy {
  position: relative;
  display: flex;
  min-height: 20rem;
  align-items: flex-end;
}
@media (min-width: 1024px) {
  .lifestyle-band__copy { min-height: 28rem; }
}

/* Colour-dot swatches on product cards (from variant material colours).
   Iteration 2, point 4. */
.swatch-dot {
  display: inline-block;
  width: .6rem;
  height: .6rem;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(51, 23, 10, .18);
}

@media (prefers-reduced-motion: reduce) {
  .pcard-fade,
  .catalog-page .cat-filter a,
  .hero-banner > img,
  .hero-copy a {
    transition: none !important;
  }
}
