/* Image slots — reserved space for future product & lifestyle photos */

.media-slot {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
  border-radius: inherit;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02)),
    repeating-linear-gradient(
      -45deg,
      rgba(251, 113, 133, 0.06) 0,
      rgba(251, 113, 133, 0.06) 8px,
      rgba(167, 139, 250, 0.04) 8px,
      rgba(167, 139, 250, 0.04) 16px
    );
  border: 1px dashed rgba(255, 255, 255, 0.2);
}

.media-slot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  position: absolute;
  inset: 0;
  z-index: 1;
}

.media-slot:has(img) .media-slot__label {
  display: none !important;
}

.media-slot:has(img) {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.12);
}

.media-slot:not(:has(img[src]:not([src=""]))) .media-slot__label,
.media-slot--empty .media-slot__label {
  display: flex;
}

.media-slot__label {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1rem;
  text-align: center;
  font-size: var(--text-xs, 0.72rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(233, 213, 255, 0.65);
  pointer-events: none;
}

.media-slot--ratio-hero { aspect-ratio: 4 / 5; min-height: clamp(14rem, 32vw, 28rem); }

/* Home hero — one screen tall, no overflow below fold */
.luxe-hero.hero-viewport {
  --hero-offset: calc(var(--site-header-height, 5.5rem) + env(safe-area-inset-top, 0px) + 12px);
  min-height: calc(100dvh - var(--hero-offset));
  max-height: calc(100dvh - var(--hero-offset));
  height: calc(100dvh - var(--hero-offset));
  margin-top: 0;
  padding: clamp(0.75rem, 1.5vh, 1.25rem) clamp(0.85rem, 1.5vw, 1.35rem);
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overflow: hidden;
}

.hero-viewport .hero-with-media {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.hero-viewport .luxe-copy {
  min-height: 0;
  overflow-y: auto;
  scrollbar-width: thin;
}

.hero-viewport .hero-media-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  padding: clamp(0.5rem, 1vh, 0.75rem);
}

.hero-viewport .media-slot--ratio-hero {
  aspect-ratio: unset;
  flex: 1 1 auto;
  min-height: 0;
  max-height: 100%;
  height: 100%;
}

.hero-viewport .hero-actions {
  margin-top: clamp(0.75rem, 1.5vh, 1.25rem);
}

.hero-viewport .trust-strip {
  margin-top: clamp(0.5rem, 1vh, 0.85rem);
}

.hero-viewport h1 {
  margin-top: clamp(0.25rem, 0.8vh, 0.5rem);
}

.hero-viewport .subtext {
  margin-top: clamp(0.5rem, 1vh, 0.85rem);
  font-size: clamp(0.9rem, 1.6vh + 0.5rem, 1.05rem);
  line-height: 1.55;
}

.hero-stats-section {
  margin-top: var(--space-md, 1rem);
  padding-top: 0;
}

.hero-stats-section .luxe-side--row {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.luxe-side-panels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--grid-gap, 0.75rem);
}

.luxe-side--row .luxe-panel {
  margin-top: 0;
}
.media-slot--ratio-wide { aspect-ratio: 16 / 9; min-height: clamp(10rem, 22vw, 20rem); }
.media-slot--ratio-card { aspect-ratio: 4 / 5; }
.media-slot--ratio-square { aspect-ratio: 1 / 1; }
.media-slot--ratio-product { aspect-ratio: 4 / 5; min-height: clamp(12rem, 28vw, 24rem); }

.luxe-hero:has(.hero-with-media) {
  grid-template-columns: 1fr;
}

.luxe-hero .hero-with-media,
.luxe-hero .luxe-side {
  grid-column: 1 / -1;
}

.hero-with-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--grid-gap, 1rem);
  align-items: stretch;
}

.hero-with-media .luxe-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero-media-panel {
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: var(--radius-lg, 22px);
  padding: var(--space-sm, 0.75rem);
  background: rgba(12, 6, 18, 0.5);
}

.visual-showcase {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--grid-gap, 1rem);
}

.visual-showcase .media-slot:first-child {
  grid-column: span 2;
  grid-row: span 2;
}

.cat-card__media.media-slot {
  margin: 0;
  width: 100%;
  aspect-ratio: 5 / 4;
  min-height: 11rem;
  border-radius: var(--radius-md, 14px) var(--radius-md, 14px) 0 0;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow: hidden;
  display: block;
  position: relative;
}

.cat-card__media.media-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.cat-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: auto;
}

.cat-card h3 {
  margin: 0.85rem var(--space-md, 1rem) 0.25rem;
  position: relative;
  z-index: 2;
}

.cat-card p {
  margin: 0 var(--space-md, 1rem) var(--space-md, 1rem);
  position: relative;
  z-index: 2;
}

.category-grid .cat-card {
  position: relative;
}

.product-card__img.media-slot {
  border: none;
  border-radius: 0;
  margin: 0;
}

/* Product page gallery */
.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: var(--space-lg, 2rem);
  align-items: start;
}

.product-gallery__main {
  border-radius: var(--radius-lg, 22px);
}

.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.25rem, 1fr));
  gap: var(--space-xs, 0.5rem);
  margin-top: var(--space-sm, 0.75rem);
  max-width: 100%;
}

.gallery-thumb {
  border: none;
  padding: 0;
  background: transparent;
  width: 100%;
  cursor: pointer;
  border-radius: inherit;
}

.product-gallery__thumbs .media-slot,
.product-gallery__thumbs .gallery-thumb {
  aspect-ratio: 1 / 1;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.product-gallery__thumbs .media-slot.is-active {
  border-color: rgba(251, 191, 36, 0.7);
  box-shadow: 0 0 0 2px rgba(251, 191, 36, 0.35);
}

.product-detail-panel {
  border: 1px solid rgba(251, 113, 133, 0.3);
  border-radius: var(--radius-lg, 22px);
  padding: var(--space-lg, 2rem);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.02));
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  font-size: var(--text-sm, 0.85rem);
  margin-bottom: var(--space-md, 1rem);
  color: var(--muted, #c4b5d0);
}

.breadcrumb a {
  color: #e9d5ff;
  text-decoration: none;
}

.breadcrumb a:hover { color: var(--rose, #fb7185); }

.breadcrumb [aria-current="page"] {
  color: var(--gold, #fbbf24);
}

.product-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.product-card-link:hover .product-card__img img {
  transform: scale(1.05);
}

@media (max-width: 900px) {
  .hero-with-media {
    grid-template-columns: 1fr;
  }

  .hero-viewport .hero-with-media {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .hero-viewport .hero-media-panel {
    max-height: min(38vh, 16rem);
  }

  .luxe-side-panels {
    grid-template-columns: 1fr;
  }

  .visual-showcase {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .visual-showcase .media-slot:first-child {
    grid-column: span 2;
    grid-row: span 1;
    aspect-ratio: 16 / 9;
  }

  .product-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 720px) {
  .hero-viewport .trust-strip span {
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
  }

  .hero-viewport .btn {
    padding: 0.55rem 0.9rem;
    min-height: 2.4rem;
  }
}

@media (max-width: 540px) {
  .hero-viewport {
    padding: 0.65rem 0.75rem;
  }

  .hero-viewport .trust-strip {
    gap: 0.4rem;
  }

  .visual-showcase {
    grid-template-columns: 1fr;
  }

  .visual-showcase .media-slot:first-child {
    grid-column: span 1;
  }

  .product-gallery__thumbs {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
