/* ============================================
   MAJOKA HARDWARE — Products page overrides
   Extracted from the original products.html inline <style>.
   Loaded only on the products page template.
   ============================================ */

/* ---- CATEGORY LIST ---- */
.cats { padding: 48px 0 56px; }
.cat {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--border);
  position: relative;
  scroll-margin-top: 100px;
}
.cat:last-child { border-bottom: 1px solid var(--border); }
.cat-left {
  display: flex; flex-direction: column; align-items: stretch; gap: 14px;
  padding-top: 4px;
}
.cat-num {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px; font-weight: 600;
  color: var(--red); letter-spacing: 0.5px;
}
.cat-img {
  width: 100%; aspect-ratio: 4/3;
  overflow: hidden;
  background: linear-gradient(135deg, #F4F4F2 0%, #ECECE8 100%);
  position: relative;
}
.cat-img img {
  width: 100%; height: 100%;
  object-fit: cover; display: block;
  transition: transform .6s var(--ease), filter .35s var(--ease);
  filter: saturate(0.92);
}
.cat:hover .cat-img img { transform: scale(1.06); filter: saturate(1.05); }
.cat-img::after {
  content: ''; position: absolute;
  left: 0; bottom: 0; width: 100%; height: 3px;
  background: var(--red);
  transform: scaleX(0); transform-origin: left;
  transition: transform .4s var(--ease);
}
.cat:hover .cat-img::after { transform: scaleX(1); }
.cat-body { padding-top: 4px; }
.cat-title {
  font-size: 28px; font-weight: 700;
  color: var(--ink); letter-spacing: -0.7px;
  line-height: 1.2;
}
.cat-desc {
  font-size: 16.5px; color: var(--text);
  line-height: 1.7; margin-top: 12px;
  max-width: 820px;
}
.cat-chips {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-top: 16px;
}
.cat-chip {
  font-size: 13px; font-weight: 500;
  color: var(--text);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 8px 14px;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
  cursor: default;
}
.cat-chip:hover {
  background: #fff; color: var(--ink);
  border-color: var(--ink); transform: translateY(-1px);
}

/* ---- NEED SOMETHING (page-specific tweaks over main.css base) ---- */
.need-inner { padding: 48px 0; }
.need h2 {
  font-size: 36px;
  letter-spacing: -0.8px;
}
.need p {
  font-size: 16.5px;
  margin-top: 14px;
  max-width: 600px;
}

/* ---- DELIVERY CTA (page-specific tweaks) ---- */
.deliver { padding: 56px 0; margin-top: 24px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 960px) {
  .cat { grid-template-columns: 200px 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .cat { grid-template-columns: 1fr; gap: 16px; padding: 24px 0; }
  .cat-left { gap: 10px; }
  .cat-img { aspect-ratio: 16/9; }
  .cat-title { font-size: 24px; }
  .need h2 { font-size: 28px; }
}
