/*
 * product-layout.css — AV Horeca Solutions
 * Single source of truth for all product category pages.
 * Linked by: tea-coffee-milk.html, table-top-electrical.html,
 *            table-top-induction.html, bulk-induction.html,
 *            pots-pans.html, copper-serveware.html, buffet-products.html
 *
 * DO NOT add product layout rules to global.css.
 * DO NOT duplicate rules in this file.
 * Edit here → changes apply to all product pages consistently.
 */

/* ── Category hero intro block ── */
.cat-hero {
  background: rgba(224,90,32,0.06);
  border: 1px solid rgba(224,90,32,0.15);
  border-radius: var(--rl);
  padding: 24px 28px;
  margin-bottom: 36px;
}
.cat-hero-name {
  font-family: 'Syne', sans-serif;
  font-size: 20px;
  font-weight: 800;
  color: var(--wh);
  margin-bottom: 8px;
}
.cat-hero-desc {
  font-size: 14px;
  color: var(--tx2);
  line-height: 1.65;
  margin-bottom: 14px;
}
.cat-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 18px;
}
.cat-hero-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Product section (prod-sec) ── */
.prod-sec {
  margin-bottom: 52px;
  padding-bottom: 52px;
  border-bottom: 1px solid var(--bd);
}
.prod-sec:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

/* ── Product section header (ps-*) ── */
.ps-hdr {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
  padding: 0 0 0 16px;
  border-left: 4px solid var(--or);
  border-radius: 0;
}
.ps-ic {
  font-size: 26px;
  flex-shrink: 0;
  margin-top: 3px;
  writing-mode: horizontal-tb;
  text-orientation: mixed;
}
.ps-ttl {
  font-family: 'Syne', sans-serif;
  font-size: 18px;
  font-weight: 800;
  color: var(--wh);
  line-height: 1.25;
  writing-mode: horizontal-tb;
}
.ps-sub {
  font-size: 12px;
  color: var(--tx3);
  margin-top: 4px;
  line-height: 1.5;
  writing-mode: horizontal-tb;
}
.ps-badge {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  background: rgba(245,158,11,0.10);
  color: var(--gd);
  border: 1px solid rgba(245,158,11,0.2);
  white-space: nowrap;
  align-self: flex-start;
}

/* ── Product grid (pg) ── */
.pg {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .pg { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 540px) {
  .pg { grid-template-columns: 1fr; }
}

/* ── Product card (pf-card) ── */
.pf-card {
  background: var(--dk3);
  border: 1px solid var(--bd);
  border-radius: var(--rl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.pf-card:hover {
  border-color: var(--bd3);
  box-shadow: 0 8px 32px rgba(0,0,0,0.22);
}

/* ── Card image area ── */
.pf-img {
  height: 200px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: rgba(255,255,255,0.03);
  border-bottom: 1px solid var(--bd);
  flex-shrink: 0;
  writing-mode: horizontal-tb;
}

/* ── Card body ── */
.pf-body {
  padding: 18px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pf-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.pf-name {
  font-family: 'Syne', sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--wh);
  margin-bottom: 6px;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: break-word;
  writing-mode: horizontal-tb;
}

.pf-desc {
  font-size: 13px;
  color: var(--tx2);
  line-height: 1.55;
  margin-bottom: 12px;
  flex: 1 1 auto;
  writing-mode: horizontal-tb;
}

.pf-price { margin-top: 4px; }

/* ── Card footer ── */
.pf-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--bd);
  flex-shrink: 0;
}

/* ── Price placeholder ── */
.tbd {
  display: block;
  font-size: 13px;
  color: var(--gr);
  font-weight: 700;
  margin-bottom: 10px;
}

/* ── WhatsApp enquire button in card footer ── */
.wa-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: var(--r);
  background: #25D366;
  color: #fff;
  font-family: 'Syne', sans-serif;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  width: 100%;
  min-height: 40px;
  box-sizing: border-box;
  writing-mode: horizontal-tb;
}
.wa-btn:hover {
  background: #1EBD5A;
  transform: translateY(-1px);
}

/* ── Model table (mt) ── */
.table-wrap {
  overflow-x: auto;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
}
.mt {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin-bottom: 0;
}
.mt th {
  padding: 6px 10px;
  background: var(--dk5);
  color: var(--tx3);
  font-weight: 600;
  text-align: left;
  border-bottom: 1px solid var(--bd);
  white-space: nowrap;
}
.mt td {
  padding: 7px 10px;
  color: var(--tx2);
  border-bottom: 1px solid var(--bd);
}
.mt tr:last-child td { border-bottom: none; }
.mt td:first-child {
  font-family: 'JetBrains Mono', 'Courier New', monospace;
  font-size: 11px;
  color: var(--or);
  font-weight: 500;
}

/* ── Popular badge (inline in table) ── */
.pop {
  font-size: 9px;
  font-weight: 700;
  color: var(--gd);
  background: rgba(245,158,11,0.08);
  border: 1px solid rgba(245,158,11,0.2);
  padding: 1px 6px;
  border-radius: 4px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ── Tag variants for product cards ── */
.tag.t-hero {
  background: rgba(245,158,11,0.10);
  color: var(--gd);
  border-color: rgba(245,158,11,0.2);
}
.tag.t-fast {
  background: rgba(34,197,94,0.10);
  color: var(--gr);
  border-color: rgba(34,197,94,0.2);
}

/* ── Button colour variants (product pages only) ── */
.btn.b-wa { background: #25D366; color: #fff; box-shadow: 0 4px 18px rgba(37,211,102,0.25); }
.btn.b-wa:hover { background: #1EBD5A; transform: translateY(-1px); }
.btn.b-wh { background: #fff; color: var(--or); font-weight: 700; }
.btn.b-wh:hover { background: rgba(255,255,255,0.92); }
.btn.b-tr { background: rgba(255,255,255,0.10); color: #fff; border: 1px solid rgba(255,255,255,0.22); }
.btn.b-tr:hover { background: rgba(255,255,255,0.18); }
.btn.b-ol { background: transparent; color: var(--tx2); border: 1px solid var(--bd2); }
.btn.b-ol:hover { border-color: var(--or); color: var(--or); }

/* ── Responsive tweaks ── */
@media (max-width: 768px) {
  .cat-hero { padding: 18px 20px; }
  .cat-hero-name { font-size: 17px; }
  .ps-hdr { flex-wrap: wrap; }
  .ps-badge { margin-left: 0; }
  .prod-sec { margin-bottom: 40px; padding-bottom: 40px; }
}

@media (max-width: 540px) {
  .mt thead { display: none; }
  .mt td {
    display: block;
    padding: 3px 0;
    border-bottom: none;
  }
  .mt td:first-child {
    font-weight: 700;
    color: var(--or);
    margin-top: 8px;
  }
  .mt tr {
    display: block;
    border-bottom: 1px solid var(--bd);
    padding: 6px 0;
  }
  .mt tr:last-child { border-bottom: none; }
  .pf-img { height: 160px; font-size: 52px; }
}
