/* Leather catalog page - extends v4 chrome tokens via home-v4.css */

body.page-leather {
  background: var(--color-bg-soft);
}

/* Page hero - split layout with right carousel (Homepage v2 pattern) */
.leather-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  height: clamp(28rem, calc(100svh - var(--header-h-v3)), 50rem);
  max-height: calc(100svh - var(--header-h-v3));
  border-bottom: 1px solid var(--color-line);
  background: var(--color-bg-soft);
  overflow: hidden;
}

@media (min-width: 901px) {
  .leather-hero {
    height: clamp(46.875rem, 90svh, 50rem);
    max-height: min(50rem, calc(100svh - var(--header-h-v3)));
  }
}

.leather-hero__content {
  padding:
    clamp(1.5rem, 4.5vh, 3.5rem)
    clamp(1.25rem, 3vw, 3.75rem)
    clamp(1.5rem, 4vh, 3rem)
    var(--page-gutter);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: auto;
}

.leather-hero .eyebrow {
  color: var(--color-leather);
  margin-bottom: clamp(0.75rem, 2vh, 1.25rem);
}

.leather-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.25rem, 7vw, 70px);
  font-weight: var(--weight-extrabold);
  letter-spacing: var(--tracking-display);
  line-height: var(--leading-tight);
  margin: 0 0 0.75rem;
  max-width: 12ch;
}

.leather-hero h1 em {
  font-style: normal;
  color: var(--color-leather);
}

.leather-hero__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.2vw, 1.5rem);
  font-weight: var(--weight-semibold);
  max-width: 28ch;
  margin: 0 0 1rem;
  line-height: 1.25;
}

.leather-hero__lead {
  max-width: 36ch;
  color: var(--color-muted);
  font-size: max(14px, 1.05rem);
  margin-bottom: 1.5rem;
}

.leather-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.leather-hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem 1.5rem;
  margin-top: clamp(1.25rem, 3vh, 2rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-line);
  color: var(--color-muted);
  font-size: max(14px, 0.9rem);
}

.leather-hero__meta strong {
  display: block;
  font-family: var(--font-display);
  font-size: max(14px, 0.8rem);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-ink);
  margin-bottom: 0.25rem;
}

/* Carousel (right) */
.leather-hero__media {
  position: relative;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: var(--color-bg-muted);
}

.leather-hero__carousel {
  position: absolute;
  inset: 0;
}

.leather-hero__slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.9s var(--ease), visibility 0.9s var(--ease);
}

.leather-hero__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.leather-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.04);
  transition: transform 6.5s var(--ease);
}

.leather-hero__slide.is-active img {
  transform: scale(1.08);
}

.leather-hero__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, rgba(22, 20, 18, 0.28));
  pointer-events: none;
  z-index: 2;
}

.leather-hero__carousel-ui {
  position: absolute;
  inset: auto clamp(0.75rem, 2vw, 1.25rem) clamp(0.75rem, 2vw, 1.25rem);
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(0.5rem, 1.5vw, 0.75rem);
}

.leather-hero__dots {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.leather-hero__dot {
  width: 0.45rem;
  height: 0.45rem;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: background 0.2s var(--ease), transform 0.2s var(--ease);
}

.leather-hero__dot.is-active {
  background: #fff;
  transform: scaleX(1.8);
  transform-origin: left center;
}

.leather-hero__nav {
  display: flex;
  gap: 0.4rem;
}

.leather-hero__nav button {
  width: clamp(2rem, 4vw, 2.25rem);
  height: clamp(2rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(22, 20, 18, 0.28);
  color: #fff;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2vw, 1rem);
  line-height: 1;
}

.leather-hero__nav button:hover {
  background: rgba(22, 20, 18, 0.5);
  border-color: #fff;
}

/* Catalog */
.leather-catalog {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(4rem, 9vw, 6.5rem);
}

.leather-catalog__inner {
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
}

.leather-catalog__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.leather-catalog__head h2 {
  margin: 0.4rem 0 0;
  font-size: var(--text-h2);
  max-width: 16ch;
}

.leather-catalog__count {
  color: var(--color-muted);
  font-size: max(14px, 0.95rem);
}

/* Filters */
.leather-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 2rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-line);
}

.leather-filter {
  min-height: 2.5rem;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--color-line-strong);
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: var(--font-display);
  font-size: max(14px, 0.8rem);
  font-weight: var(--weight-bold);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}

.leather-filter:hover {
  border-color: var(--color-ink);
}

.leather-filter.is-active {
  background: var(--color-ink);
  border-color: var(--color-ink);
  color: #fff;
}

/* Product grid */
.leather-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.leather-card {
  display: flex;
  flex-direction: column;
  background: var(--color-bg);
  border: 1px solid var(--color-line);
  min-width: 0;
}

.leather-card.is-hidden {
  display: none;
}

.leather-card__media {
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: var(--color-bg-muted);
}

.leather-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.8s var(--ease);
}

.leather-card:hover .leather-card__media img {
  transform: scale(1.05);
}

.leather-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.2rem 1.35rem;
}

.leather-card__cat {
  font-size: max(14px, 0.8rem);
  font-weight: var(--weight-extrabold);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--color-leather);
  margin-bottom: 0.45rem;
}

.leather-card h3 {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: var(--weight-bold);
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin: 0 0 0.55rem;
}

.leather-card__desc {
  color: var(--color-muted);
  font-size: max(14px, 0.95rem);
  margin-bottom: 1.15rem;
  flex: 1;
}

.leather-card__cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--color-line);
  font-family: var(--font-display);
  font-size: max(14px, 0.875rem);
  font-weight: var(--weight-bold);
}

.leather-card__cta:hover {
  color: var(--color-leather);
}

.leather-card__cta svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  transition: transform 0.2s var(--ease);
}

.leather-card__cta:hover svg {
  transform: translate(3px, -3px);
}

.leather-empty {
  display: none;
  padding: 2.5rem 0;
  color: var(--color-muted);
  font-size: max(14px, 1rem);
}

.leather-empty.is-visible {
  display: block;
}

/* CTA band */
.leather-cta-band {
  padding: clamp(3rem, 7vw, 4.5rem) 0;
  background: var(--color-ink);
  color: #fff;
}

.leather-cta-band__inner {
  width: min(1180px, calc(100% - (var(--page-gutter) * 2)));
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.leather-cta-band .eyebrow {
  color: rgba(255, 255, 255, 0.55);
}

.leather-cta-band h2 {
  color: #fff;
  margin: 0.5rem 0 0.75rem;
  max-width: 16ch;
}

.leather-cta-band p {
  color: rgba(255, 255, 255, 0.72);
  max-width: 38ch;
  font-size: max(14px, 1rem);
}

.leather-cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-end;
}

.leather-cta-band .btn-v3--ghost {
  border-color: rgba(255, 255, 255, 0.55);
  color: #fff;
}

.leather-cta-band .btn-v3--ghost:hover {
  background: #fff;
  color: var(--color-ink);
  border-color: #fff;
}

/* Active nav */
.nav-v3 a[aria-current="page"],
.mobile-nav-v3 a[aria-current="page"] {
  color: var(--color-ink);
}

.nav-v3 a[aria-current="page"]::after {
  right: 0;
}

@media (max-width: 960px) {
  .leather-grid {
    grid-template-columns: 1fr 1fr;
  }

  .leather-cta-band__inner {
    grid-template-columns: 1fr;
  }

  .leather-cta-band__actions {
    justify-content: flex-start;
  }
}

@media (max-width: 900px) {
  .leather-hero {
    grid-template-columns: 1fr;
    height: auto;
    max-height: none;
  }

  .leather-hero__media {
    min-height: clamp(16rem, 55vw, 24rem);
    height: clamp(16rem, 55vw, 24rem);
  }
}

@media (max-width: 640px) {
  .leather-grid {
    grid-template-columns: 1fr;
  }

  .leather-hero h1 {
    max-width: none;
  }

  .leather-hero__actions {
    flex-direction: column;
  }

  .leather-hero__actions .btn-v3 {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .leather-card__media img,
  .leather-hero__slide,
  .leather-hero__slide img {
    transition: none;
  }
}
