/* ============================================
   Lorismountain — Product Catalog Pages
   Dark luxury aesthetic; inherits lorismountain.css vars
   ============================================ */

@import url('/css/lorismountain.css');

/* --- Category Hero --- */
.cat-hero {
  position: relative;
  min-height: 58vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  padding-bottom: 64px;
  margin-top: 68px; /* nav height */
}

.cat-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.38) saturate(0.85);
}

.cat-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 9, 6, 0.92) 0%,
    rgba(10, 9, 6, 0.5) 40%,
    rgba(10, 9, 6, 0.15) 70%,
    transparent 100%
  );
}

.cat-hero__content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  padding: 0 40px;
}

.cat-hero__eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.cat-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 16px;
}

.cat-hero__tagline {
  font-size: 1rem;
  color: var(--silver);
  max-width: 52ch;
  line-height: 1.7;
}

/* --- Breadcrumb --- */
.cat-breadcrumb {
  padding: 20px 40px;
  background: var(--dark);
  border-bottom: 1px solid var(--border);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  color: var(--dim);
}
.cat-breadcrumb a {
  color: var(--muted);
  transition: color 0.2s;
}
.cat-breadcrumb a:hover { color: var(--accent); }
.cat-breadcrumb span { margin: 0 8px; }

/* --- Category Description --- */
.cat-desc {
  padding: 56px 0 40px;
  background: var(--black);
}
.cat-desc__inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.cat-desc__inner p {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.8;
}

/* --- Product Grid --- */
.products-section {
  padding: 0 0 80px;
  background: var(--black);
}
.products-section__header {
  padding: 48px 24px 32px;
  text-align: center;
}
.products-section__header h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  color: var(--white);
  font-weight: 400;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* --- Product Card --- */
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.3s;
}
.product-card:hover {
  border-color: var(--accent);
}

.product-card__image {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
}
.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.75) saturate(0.9);
  transition: transform 0.4s, filter 0.4s;
}
.product-card:hover .product-card__image img {
  transform: scale(1.03);
  filter: brightness(0.6) saturate(1);
}

.product-card__body {
  padding: 28px 24px 24px;
  border-top: 1px solid var(--border);
}

.product-card__name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 400;
  color: var(--white);
  margin-bottom: 16px;
}

.product-card__specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 16px;
  margin-bottom: 24px;
}

.spec-item { display: flex; flex-direction: column; gap: 2px; }
.spec-item__label {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.spec-item__value {
  font-size: 0.82rem;
  color: var(--silver);
}

.product-card__cta {
  display: flex;
  gap: 12px;
  align-items: center;
}
.product-card__cta .btn {
  padding: 14px 28px;
  font-size: 0.72rem;
}

/* --- Other Collections --- */
.other-collections {
  padding: 64px 0;
  background: var(--dark);
  border-top: 1px solid var(--border);
}
.other-collections__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}
.other-collections__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 28px;
}
.other-collections__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
}
.other-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: block;
  text-decoration: none;
  transition: all 0.3s;
  aspect-ratio: 3/2;
}
.other-card:hover { border-color: var(--accent); z-index: 1; }
.other-card:hover img { transform: scale(1.04); filter: brightness(0.5); }
.other-card:hover .other-card__label { color: var(--accent); }

.other-card__img {
  position: absolute;
  inset: 0;
}
.other-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.45) saturate(0.8);
  transition: all 0.4s;
}
.other-card__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,9,6,0.7) 0%, transparent 60%);
}
.other-card__label {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px 14px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--silver);
  transition: color 0.2s;
}

/* --- Quote Anchor --- */
.cat-quote-anchor {
  padding: 80px 0;
  background:
    radial-gradient(ellipse at 30% 50%, rgba(200,145,74,0.04) 0%, transparent 50%),
    var(--black);
  border-top: 1px solid var(--border);
}
.cat-quote-anchor__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  text-align: center;
}
.cat-quote-anchor h2 {
  color: var(--white);
  font-weight: 400;
  margin-bottom: 12px;
}
.cat-quote-anchor p {
  color: var(--muted);
  margin: 0 auto 40px;
  font-size: 0.95rem;
}
.cat-quote-anchor .btn { padding: 18px 56px; }

/* --- Product Detail Hero --- */
.detail-hero {
  position: relative;
  min-height: 65vh;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  margin-top: 68px;
}

.detail-hero__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  filter: brightness(0.42) saturate(0.85);
}

.detail-hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(10, 9, 6, 0.92) 0%,
    rgba(10, 9, 6, 0.5) 40%,
    rgba(10, 9, 6, 0.15) 70%,
    transparent 100%
  );
}

.detail-hero__content {
  position: relative;
  z-index: 2;
  padding: 0 40px 64px;
  max-width: 800px;
}

.detail-hero__content .cat-hero__eyebrow {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
  border-left: 2px solid var(--accent);
  padding-left: 14px;
}

.detail-hero__content h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5.5vw, 4.2rem);
  font-weight: 300;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 0;
}

/* --- Detail Body --- */
.detail-body {
  background: var(--black);
  padding: 64px 0 80px;
}

.detail-body__inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
}

.detail-intro {
  margin-bottom: 56px;
  border-bottom: 1px solid var(--border);
  padding-bottom: 48px;
}

.detail-intro__name {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 400;
  color: var(--white);
  margin-bottom: 20px;
  line-height: 1.15;
}

.detail-intro__desc {
  font-size: 1rem;
  color: var(--muted);
  line-height: 1.8;
}

.detail-section-title {
  font-family: var(--font-body);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.detail-specs-section {
  margin-bottom: 48px;
}

/* --- Specs Table --- */
.specs-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.specs-table th {
  text-align: left;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 0 10px;
  border-bottom: 1px solid var(--border);
}

.specs-table td {
  color: var(--silver);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.5;
}

.specs-table td:first-child {
  width: 38%;
  color: var(--muted);
  font-size: 0.75rem;
  padding-top: 16px;
}

/* --- Finish Callout --- */
.detail-finish-callout {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--accent);
  padding: 24px 28px;
  margin-bottom: 48px;
  border-radius: 2px;
}

.detail-finish-callout__icon {
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 2px;
}

.detail-finish-callout__text {
  font-size: 0.9rem;
  color: var(--silver);
  line-height: 1.6;
  margin-bottom: 10px;
}

.detail-finish-callout__link {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  transition: color 0.2s;
}

.detail-finish-callout__link:hover { color: #e8c89a; }

/* --- Detail CTA --- */
.detail-cta {
  text-align: center;
  padding: 24px 0 0;
}

.detail-cta .btn { padding: 18px 64px; }

/* --- Sibling Products --- */
.detail-siblings {
  background: var(--dark);
  border-top: 1px solid var(--border);
  padding: 64px 0 80px;
}

.detail-siblings__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

.detail-siblings__label {
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
  margin-bottom: 32px;
}

/* --- Responsive --- */
@media (max-width: 768px) {
  .cat-hero { min-height: 50vh; padding-bottom: 48px; }
  .cat-hero__content { padding: 0 24px; }
  .cat-hero h1 { font-size: 2rem; }
  .cat-breadcrumb { padding: 16px 24px; }
  .product-grid { grid-template-columns: 1fr; gap: 12px; }
  .other-collections__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .product-card__specs { grid-template-columns: 1fr; }
  .other-collections__grid { grid-template-columns: 1fr 1fr; }
}