﻿/* =============================================
   COLLECTION PAGES – 4-column grid layout
   Shared by: cat-bedroom, cat-living-room,
   cat-powder-bathroom, cat-commercial, cat-temple
   ============================================= */

/* ── Hero (re-uses gp-hero from gallery-pages.css) ── */

/* ── Product grid section ── */
.cat-section {
  background: #FAF7F2;
  padding: 60px 20px 80px;
}
main > .cat-section:first-child {
  padding-top: 121px; /* 60px + navbar offset */
}
.cat-section .section-head {
  text-align: center;
  margin-bottom: 44px;
}
.cat-section .section-head h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 10px;
}
.cat-section .section-rule {
  display: block;
  width: 48px;
  height: 1px;
  background: #C4B5A5;
  margin: 0 auto 10px;
}
.cat-section .section-hint {
  font-family: 'Inter', sans-serif;
  font-size: 0.85rem;
  color: #6B5F54;
  font-style: italic;
}

/* 4-column grid */
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 20px;
  max-width: 1320px;
  margin: 0 auto;
}

/* Card */
.cat-card {
  background: #fff;
  border: 1px solid #E0D8CE;
  cursor: pointer;
  transition: box-shadow 0.28s;
}
.cat-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.1); }

.cat-card-img {
  aspect-ratio: 1 / 1;
  height: auto;
  overflow: hidden;
  background: #faf7f2;
  position: relative;
  cursor: zoom-in;
}
.cat-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.45s ease, transform 0.45s ease;
}
.cat-card-img .img-primary {
  position: relative;
  z-index: 1;
  opacity: 1;
  transform: scale(1);
}
.cat-card-img .img-hover {
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0;
  transform: scale(1.04);
}
.cat-card:hover .img-primary {
  opacity: 0;
  transform: scale(1.04);
}
.cat-card:hover .img-hover {
  opacity: 1;
  transform: scale(1);
}

.cat-card-info {
  padding: 14px 16px 18px;
}
.cat-card-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 4px;
}
.cat-card-info h3 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: 1rem;
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 3px;
}
.cat-card-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  color: #8B7355;
}

/* ── Price (decor pages) ── */
.cat-card-price {
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  font-weight: 700;
  color: #1a1a1a;
  margin-top: 8px;
  letter-spacing: 0.01em;
}
.cat-card-price span {
  font-size: 0.72rem;
  font-weight: 400;
  color: #8B7355;
  margin-left: 4px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.cat-card-enquire {
  display: inline-block;
  margin-top: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: #3a2e26;
  padding: 8px 18px;
  text-decoration: none;
  border-radius: 1px;
  transition: background 0.2s;
}
.cat-card-enquire:hover { background: #C4964A; }
.cat-card-enquire::after { display: none !important; }

/* ── Mid-band (spans all 4 columns) ── */
.cat-mid-band {
  grid-column: 1 / -1;
  background: #3a2e26;
  padding: 20px 40px;
  margin: 8px 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-mid-band-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  max-width: 960px;
  flex-wrap: wrap;
}
.cat-mid-eyebrow { display: none; }
.cat-mid-title {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(0.95rem, 1.6vw, 1.15rem);
  font-weight: 500;
  color: #fff;
  margin: 0;
  line-height: 1.4;
  flex: 1;
}
.cat-mid-sub { display: none; }
.cat-mid-btn {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #3a2e26;
  background: #fff;
  padding: 10px 28px;
  text-decoration: none;
  transition: background 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}
.cat-mid-btn:hover { background: #C4B5A5; color: #3a2e26; }
.cat-mid-btn::after { display: none !important; }
.cat-mid-band p, .cat-mid-band a { color: #fff; }
.cat-mid-band a:hover { color: #C4B5A5; }
@media (max-width: 640px) {
  .cat-mid-band { padding: 18px 20px; }
  .cat-mid-band-inner { flex-direction: column; align-items: flex-start; gap: 12px; }
}

/* ── Lightbox ── */
.lb-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20,14,10,0.88);
  z-index: 9999;
  overflow-y: auto;
  padding: 40px 20px;
}
.lb-overlay.active { display: flex; align-items: flex-start; justify-content: center; }
.lb-box {
  background: #FAF7F2;
  max-width: 1060px;
  width: 100%;
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 1fr;
}
.lb-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.lb-images img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  min-height: 460px;
}
.lb-info {
  padding: 48px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid #E0D8CE;
}
.lb-tag {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8B7355;
  margin-bottom: 12px;
}
.lb-info h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.5rem, 2.8vw, 2rem);
  font-weight: 500;
  color: #1a1a1a;
  margin-bottom: 8px;
  line-height: 1.2;
}
.lb-rule {
  width: 48px; height: 1px;
  background: #C4B5A5;
  margin: 16px 0;
}
.lb-desc {
  font-family: 'Inter', sans-serif;
  font-size: 0.88rem;
  color: #5A5048;
  line-height: 1.85;
  margin-bottom: 32px;
}
.lb-cta {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 28px;
  background: #3a2e26;
  color: #fff;
  text-decoration: none;
  border: 1px solid #3a2e26;
  transition: background 0.2s;
  align-self: flex-start;
}
.lb-cta:hover { background: #1a1a1a; }
.lb-cta::after { display: none !important; }
.lb-close {
  position: absolute;
  top: 16px; right: 16px;
  width: 36px; height: 36px;
  background: #fff;
  border: 1px solid #E0D8CE;
  border-radius: 50%;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem;
  color: #3a2e26;
  z-index: 10;
  transition: background 0.2s, color 0.2s;
}
.lb-close:hover { background: #3a2e26; color: #fff; }

/* ── CTA strip ── */
.cat-cta-section {
  background: #F2EDE6;
  text-align: center;
  padding: 72px 20px;
  border-top: 1px solid #E0D8CE;
}
.cat-cta-section h2 {
  font-family: 'Josefin Sans', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 500;
  margin-bottom: 12px;
  color: #1a1a1a;
}
.cat-cta-section p {
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  color: #5A5048;
  margin-bottom: 32px;
}

/* ── Responsive ── */
@media (max-width: 1100px) {
  .cat-grid { grid-template-columns: repeat(4, 1fr); gap: 18px 14px; }
}
@media (max-width: 800px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 12px; }
  .cat-mid-band { padding: 40px 24px; }
  .lb-box { grid-template-columns: 1fr; }
  .lb-images { grid-template-columns: 1fr 1fr; }
  .lb-images img { min-height: 240px; }
  .lb-info { border-left: none; border-top: 1px solid #E0D8CE; padding: 28px 20px; }
}
@media (max-width: 768px) {
  main > .cat-section:first-child { padding-top: 103px; } /* 40px + 63px navbar */
  .cat-section { padding: 40px 12px 60px; }
  .cat-cta-section { padding: 48px 20px; }
}
@media (max-width: 480px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); gap: 12px 10px; }
}
