/* ============================================================
   GAUTAM GOLD — catalog.css
   Catalog page ONLY. style.css must be loaded before this.
   Contains: Hero banner, Sidebar, Product grid, Dark mode.
   Navigation, CTA Card, Footer are all in style.css.
   ============================================================ */

/* ── CATALOG HERO BANNER ──────────────────────────────── */
.cat-hero {
  margin-top: 64px;
  background: radial-gradient(ellipse 110% 100% at 50% 0%,
    #faf6ec 0%, #f2ebd6 55%, #ede4c8 100%);
  text-align: center;
  padding: 3rem 1.5rem 3.5rem;
}
.cat-hero h1 {
  font-family: 'Inria Serif', Georgia, serif;
  font-size: 24px; font-weight: 700;
  color: #1a1a1a; line-height: 30px; margin-bottom: .75rem;
}
.cat-hero p {
  font-family: 'Inria Serif', Georgia, serif;
  font-size: 20px; font-weight: 400;
  color: #444; line-height: 24px;
}

/* ── CATALOG BODY LAYOUT ──────────────────────────────── */
.cat-body { background: #fff; padding: 3rem 0 5rem; }

.cat-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 4rem;
  align-items: start;
}

/* ── SIDEBAR ──────────────────────────────────────────── */
.cat-sidebar { position: sticky; top: 84px; }

.cat-sidebar-title {
  font-family: 'Inria Serif', Georgia, serif;
  font-size: 20px; font-weight: 700;
  color: #1a1a1a; line-height: 24px; margin-bottom: 1.5rem;
}

.cat-category-list { display: flex; flex-direction: column; }

.cat-cat-btn {
  background: none; border: none; cursor: pointer;
  font-family: 'Inria Serif', Georgia, serif;
  font-size: 18px; font-weight: 400; color: #888;
  text-align: left; padding: .5rem 0; line-height: 24px;
  transition: color .2s; width: 100%;
}
.cat-cat-btn:hover        { color: #9B7C2E; }
.cat-cat-btn.active       { color: #9B7C2E; font-weight: 700; }

/* ── MAIN AREA HEADER ─────────────────────────────────── */
.cat-main-header {
  display: flex; align-items: center;
  justify-content: space-between; margin-bottom: 1.75rem;
}
.cat-active-title {
  font-family: 'Inria Serif', Georgia, serif;
  font-size: 20px; font-weight: 700;
  color: #1a1a1a; line-height: 24px;
}
.cat-toggle-btn {
  background: #fff; border: 1px solid #d0ccc4; border-radius: 6px;
  font-family: 'Inria Serif', Georgia, serif;
  font-size: 13px; font-weight: 400; color: #1a1a1a;
  padding: .3rem .9rem; cursor: pointer; white-space: nowrap;
  transition: background .2s; line-height: 20px; flex-shrink: 0;
}
.cat-toggle-btn:hover { background: #f5f0e8; }

/* ── PRODUCT GRID ─────────────────────────────────────── */
.cat-product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.cat-product-card {
  border: none;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}
.cat-product-card:hover {
  box-shadow: 0 4px 12px rgba(255, 255, 255, 0.08);
}

/* Square image container */
.cat-product-img-wrap {
  background: #f7f7f7; aspect-ratio: 1/1; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 1.25rem;
}
.cat-product-img-wrap img {
  width: 100%; height: 100%;
  object-fit: contain;
  transition: transform .4s ease;
}
.cat-product-card:hover .cat-product-img-wrap img { transform: scale(1.05); }

/* Meta label */
.cat-product-meta {
  font-family: 'Inria Serif', Georgia, serif;
  font-size: 14px;
  font-weight: 400;
  color: #333;
  padding: 12px 16px;
  background: #ffffff;
}

/* ── DARK MODE ────────────────────────────────────────── */
.cat-product-grid.dark-bg .cat-product-card     { background: #2a2218; border-color: #3a3020; }
.cat-product-grid.dark-bg .cat-product-img-wrap { background: #2a2218; }
.cat-product-grid.dark-bg .cat-product-meta     { background: #1e1a12; color: #aaa; border-color: #3a3020; }

/* ── VIEW MORE ────────────────────────────────────────── */
.cat-view-more-wrap { text-align: center; margin-top: 2.5rem; }

/* ── RESPONSIVE — TABLET ──────────────────────────────── */
@media (max-width: 960px) {
  .cat-layout { grid-template-columns: 180px 1fr; gap: 2.5rem; }
  .cat-product-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── RESPONSIVE — MOBILE ──────────────────────────────── */
@media (max-width: 640px) {
  .cat-hero { padding: 2rem 1.25rem 2.5rem; }
  .cat-hero h1 { font-size: 20px; line-height: 26px; }
  .cat-hero p  { font-size: 16px; }

  .cat-layout   { grid-template-columns: 1fr; gap: 1.5rem; }
  .cat-sidebar  { position: static; }

  /* Horizontal scrollable pill tabs */
  .cat-category-list {
  flex-direction: row;
  flex-wrap: wrap;
  overflow: visible;
  gap: .5rem;
}
  .cat-category-list::-webkit-scrollbar { display: none; }
  .cat-cat-btn {
  white-space: nowrap;
  background: #f0ece3;
  border-radius: 20px;
  padding: .35rem 1rem;
  font-size: 14px;
  width: auto;
  line-height: 20px;
}
  .cat-cat-btn.active { background: #9B7C2E; color: #fff; }

  .cat-product-grid { grid-template-columns: repeat(2, 1fr); gap: .75rem; }
}

@media (max-width: 380px) {
  .cat-product-grid { grid-template-columns: 1fr; }
}
