/* ═══════════════════════════════════════════════════════════════
   OAKFIELD LIQUOR — PRODUCTS PAGE STYLES
   ═══════════════════════════════════════════════════════════════ */

/* ── FILTER BAR ─────────────────────────────────────────────────── */
.filter-bar {
  background: var(--off-white);
  border-bottom: 1px solid var(--border-light);
  position: sticky; top: 80px; z-index: 90;
}
.filter-bar-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 40px;
  display: flex; align-items: stretch; gap: 0;
  overflow-x: auto; scrollbar-width: none;
}
.filter-bar-inner::-webkit-scrollbar { display: none; }

.filter-btn {
  display: flex; align-items: center; gap: 8px;
  padding: 16px 22px;
  font-family: 'Lato', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--text-muted);
  background: none; border: none; cursor: pointer;
  white-space: nowrap; transition: color 0.2s;
  border-bottom: 2px solid transparent;
  flex-shrink: 0;
}
.filter-btn:hover { color: var(--red); }
.filter-btn.active { color: var(--red); border-bottom-color: var(--red); }
.filter-count {
  background: var(--red); color: var(--white);
  font-size: 9px; width: 18px; height: 18px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
}

/* ── LAYOUT ─────────────────────────────────────────────────────── */
.products-layout {
  max-width: 1280px; margin: 0 auto; padding: 60px 40px;
}
.products-with-sidebar {
  display: grid; grid-template-columns: 240px 1fr;
  gap: 48px; align-items: start;
}

/* ── SIDEBAR ────────────────────────────────────────────────────── */
.sidebar { position: sticky; top: 140px; }
.sidebar-title {
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-muted); margin-bottom: 16px;
  padding-bottom: 12px; border-bottom: 1px solid var(--border-light);
}
.sidebar-nav { list-style: none; }
.sidebar-nav li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 0; font-size: 13px; font-weight: 400;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  transition: color 0.2s, padding-left 0.2s;
}
.sidebar-nav li a:hover { color: var(--red); padding-left: 6px; }
.sidebar-nav li a.active { color: var(--red); font-weight: 700; padding-left: 6px; }
.sidebar-nav li a .count {
  font-size: 10px; font-weight: 700; color: var(--text-muted);
}
.sidebar-divider { height: 1px; background: var(--border-light); margin: 24px 0; }
.sidebar-cta { background: var(--black); padding: 24px; }
.sidebar-cta p {
  font-size: 12px; font-weight: 300;
  color: rgba(255, 255, 255, 0.6); line-height: 1.7; margin-bottom: 16px;
}
.sidebar-cta a {
  display: block; text-align: center;
  background: var(--red); color: var(--white);
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 12px; transition: background 0.2s;
}
.sidebar-cta a:hover { background: var(--red-light); }

/* ── CATEGORY SECTIONS ──────────────────────────────────────────── */
.cat-section { margin-bottom: 80px; }
.cat-section-header {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 1px solid var(--border-light);
  position: relative;
}
.cat-section-header::before {
  content: '';
  position: absolute; bottom: -1px; left: 0;
  width: 60px; height: 2px; background: var(--red);
}
.cat-section-header-left .eyebrow { margin-bottom: 8px; }
.cat-section-header-left h2 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 2.5vw, 2.2rem); font-weight: 700; color: var(--black);
}
.cat-section-header-left h2 em { color: var(--red); font-style: italic; }
.cat-count {
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.15em; text-transform: uppercase; color: var(--text-muted);
}

/* Sub-category label */
.sub-cat-label {
  background: var(--red); color: var(--white);
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  padding: 4px 10px; display: inline-block;
  margin: 24px 0 12px;
}
.sub-cat-first { margin-top: 0; }

/* ── PRODUCT TABLE ──────────────────────────────────────────────── */
.product-table { width: 100%; border-collapse: collapse; }
.product-table thead tr { border-bottom: 1px solid var(--border-light); }
.product-table thead th {
  padding: 10px 16px 10px 0;
  font-size: 9px; font-weight: 700;
  letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--text-muted); text-align: left;
}
.product-table thead th:last-child { text-align: right; padding-right: 0; }
.product-table tbody tr {
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
  transition: background 0.15s;
}
.product-table tbody tr:hover { background: var(--off-white); }
.product-table tbody td {
  padding: 12px 16px 12px 0;
  font-size: 14px; font-weight: 400;
  color: var(--black); vertical-align: middle;
}
.product-name { font-weight: 600; }
.product-available { font-size: 12px; color: var(--text-muted); font-weight: 300; }
.product-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #22C55E; display: inline-block;
  margin-right: 6px; vertical-align: middle;
}
.in-stock {
  font-size: 11px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: #22C55E; white-space: nowrap;
}

/* ── BOTTOM CTA ─────────────────────────────────────────────────── */
.products-cta {
  background: var(--off-white); border: 1px solid var(--border);
  padding: 48px;
  display: flex; align-items: center; justify-content: space-between; gap: 32px;
  margin-top: 48px;
}
.products-cta-text h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 700; margin-bottom: 8px;
}
.products-cta-text p {
  font-size: 14px; font-weight: 300;
  color: var(--text-muted); line-height: 1.7;
}

/* ── PRODUCTS RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1024px) {
  .products-with-sidebar { grid-template-columns: 1fr; }
  .sidebar { position: static; display: none; }
}
@media (max-width: 768px) {
  .products-layout { padding: 40px 20px; }
  .filter-bar-inner { padding: 0 20px; }
  .products-cta { flex-direction: column; padding: 32px 20px; }
  .product-table thead th:last-child,
  .product-table tbody td:last-child { display: none; }
}
