/* ==========================================================================
   Shop landing — The NSI Edit (Style A / E COMMERCE mockup)
   Scoped to .shop-landing only. Category showroom uses .shop-page.
   ========================================================================== */

.shop-landing {
  --sl-pad: clamp(1.25rem, 4vw, 3.5rem);
  --sl-max: 92rem;
  --sl-gutter: 0.5rem;
  --sl-beige: #f3eee6;
  --sl-ink: var(--color-ink);
  --sl-muted: rgba(42, 38, 35, 0.72);
  --sl-line: rgba(42, 38, 35, 0.28);
  background: var(--color-canvas);
  color: var(--sl-ink);
}

.shop-landing__kicker {
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sl-ink);
}

.shop-landing__kicker--on-dark {
  color: rgba(255, 255, 255, 0.88);
}

.shop-landing__section-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -0.01em;
}

.shop-landing__body {
  margin: 1rem 0 0;
  max-width: 22rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--sl-muted);
}

.shop-landing__text-link {
  display: inline-block;
  margin-top: 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--sl-ink);
  border-bottom: 1px solid var(--sl-ink);
  padding-bottom: 0.15rem;
  transition: opacity 200ms var(--ease-out);
}

.shop-landing__text-link:hover,
.shop-landing__text-link:focus-visible {
  opacity: 0.65;
}

.shop-landing__text-link--on-dark {
  color: #fff;
  border-bottom-color: rgba(255, 255, 255, 0.85);
}

.shop-landing__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.85rem 1.35rem;
  background: #1a2333;
  color: #fff;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  transition: background 220ms var(--ease-out), opacity 220ms var(--ease-out);
}

.shop-landing__btn:hover,
.shop-landing__btn:focus-visible {
  background: #0f1622;
}

/* —— Hero —— */
.shop-landing__hero {
  display: grid;
  grid-template-columns: minmax(16rem, 0.9fr) minmax(0, 1.4fr);
  gap: var(--sl-gutter);
  align-items: stretch;
  width: 100%;
  margin: 0;
  padding: 0;
  min-height: min(78vh, 46rem);
}

.shop-landing__hero-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--sl-beige);
  padding: clamp(2rem, 5vw, 3.75rem) clamp(1.5rem, 3.5vw, 3rem);
}

.shop-landing__hero-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.05;
  letter-spacing: -0.015em;
}

.shop-landing__hero-title span {
  display: block;
}

.shop-landing__hero-title::after {
  content: "";
  display: block;
  width: 3.25rem;
  height: 1px;
  margin: 1.15rem 0 0;
  background: var(--sl-ink);
}

.shop-landing__hero-lede {
  margin: 1.15rem 0 0;
  max-width: 22rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--sl-muted);
}

.shop-landing__hero-media {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--sl-gutter);
  min-height: 0;
}

.shop-landing__hero-frame {
  position: relative;
  margin: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #ebe4da;
}

/* —— Featured project —— */
.shop-landing__featured {
  display: grid;
  grid-template-columns: minmax(14rem, 0.85fr) minmax(0, 1.55fr);
  gap: clamp(1.25rem, 3vw, 2.5rem);
  align-items: center;
  max-width: var(--sl-max);
  margin: 0 auto;
  padding: clamp(3rem, 8vh, 5.5rem) var(--sl-pad);
}

.shop-landing__featured-copy {
  padding-right: clamp(0, 2vw, 1rem);
}

.shop-landing__featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--sl-gutter);
  align-items: start;
}

.shop-landing__featured-grid figure {
  position: relative;
  margin: 0;
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #ebe4da;
}

/* —— The Edit products —— */
.shop-landing__edit {
  display: grid;
  grid-template-columns: minmax(12rem, 0.7fr) minmax(0, 1.6fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  align-items: start;
  max-width: var(--sl-max);
  margin: 0 auto;
  padding: 0 var(--sl-pad) clamp(3rem, 8vh, 5rem);
}

.shop-landing__edit-copy {
  padding-top: 0.35rem;
}

.shop-landing__products {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: var(--sl-gutter);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-landing__product {
  display: block;
  text-decoration: none;
  color: inherit;
  text-align: center;
}

.shop-landing__product-media {
  position: relative;
  margin: 0 0 0.75rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(42, 38, 35, 0.06);
}

.shop-landing__product-name {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1.35;
}

.shop-landing__product-price {
  display: block;
  margin-top: 0.25rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--sl-muted);
}

/* —— Shop the room —— */
.shop-landing__room {
  max-width: var(--sl-max);
  margin: 0 auto;
  padding: 0 var(--sl-pad) clamp(3rem, 8vh, 5rem);
}

.shop-landing__room-intro {
  max-width: 28rem;
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.shop-landing__room-body {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(14rem, 0.85fr);
  gap: clamp(1rem, 2.5vw, 1.75rem);
  align-items: stretch;
}

.shop-landing__room-photo {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #ebe4da;
  min-height: 16rem;
  height: 100%;
}

.shop-landing__room-list {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.15rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-landing__room-item {
  display: grid;
  grid-template-columns: 3.5rem minmax(0, 1fr) auto;
  gap: 0.85rem;
  align-items: center;
  text-decoration: none;
  color: inherit;
}

.shop-landing__room-thumb {
  position: relative;
  margin: 0;
  width: 3.5rem;
  height: 3.5rem;
  flex-shrink: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(42, 38, 35, 0.06);
}

.shop-landing__room-meta {
  min-width: 0;
}

.shop-landing__room-meta .shop-landing__product-name {
  text-align: left;
}

.shop-landing__room-shop {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-bottom: 1px solid var(--sl-ink);
  padding-bottom: 0.08rem;
  white-space: nowrap;
}

/* —— Category strip —— */
.shop-landing__cats {
  max-width: var(--sl-max);
  margin: 0 auto;
  padding: 0 var(--sl-pad) clamp(3rem, 8vh, 5rem);
}

.shop-landing__cats-head {
  margin-bottom: clamp(1.25rem, 3vh, 2rem);
}

.shop-landing__cat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(0.85rem, 2vw, 1.5rem);
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-landing__cat {
  display: block;
  text-decoration: none;
  color: inherit;
}

.shop-landing__cat-media {
  position: relative;
  margin: 0 0 0.85rem;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #ebe4da;
}

/* Absolute crop on every media frame — Elementor sets img { height: auto }. */
.shop-landing__hero-frame img,
.shop-landing__featured-grid img,
.shop-landing__product-media img,
.shop-landing__room-photo img,
.shop-landing__room-thumb img,
.shop-landing__cat-media img,
.elementor .shop-landing__hero-frame img,
.elementor .shop-landing__featured-grid img,
.elementor .shop-landing__product-media img,
.elementor .shop-landing__room-photo img,
.elementor .shop-landing__room-thumb img,
.elementor .shop-landing__cat-media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  object-position: center;
}

.shop-landing__cat-media img {
  transition: transform 520ms var(--ease-out);
}

.shop-landing__cat:hover .shop-landing__cat-media img,
.shop-landing__cat:focus-visible .shop-landing__cat-media img {
  transform: scale(1.03);
}

.shop-landing__cat-name {
  display: block;
  text-align: center;
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  font-weight: 500;
}

/* —— Journal band —— */
.shop-landing__journal {
  background: #b7a58d;
  color: #fff;
  padding: clamp(3.5rem, 9vh, 6rem) var(--sl-pad);
}

.shop-landing__journal-title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.4rem, 5vw, 3.75rem);
  line-height: 1.05;
}

.shop-landing__journal-lede {
  margin: 1rem 0 0;
  max-width: 28rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.9);
}

/* —— Responsive —— */
@media (max-width: 980px) {
  .shop-landing__hero {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .shop-landing__hero-media {
    min-height: 22rem;
  }

  .shop-landing__featured,
  .shop-landing__edit {
    grid-template-columns: 1fr;
  }

  .shop-landing__products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .shop-landing__room-body {
    grid-template-columns: 1fr;
  }

  .shop-landing__room-photo {
    height: auto;
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 640px) {
  .shop-landing__hero-media {
    grid-template-columns: 1fr 1fr;
    min-height: 16rem;
  }

  .shop-landing__featured-grid {
    grid-template-columns: 1fr;
  }

  .shop-landing__featured-grid figure:nth-child(n + 2) {
    display: none;
  }

  .shop-landing__featured-grid figure:first-child {
    aspect-ratio: 16 / 10;
  }

  .shop-landing__products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shop-landing__cat-grid {
    grid-template-columns: 1fr;
  }
}
