/* Catalog additions on top of styles.css */
.topnav { display: flex; gap: 20px; }
.topnav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.topnav a:hover { color: var(--brand); }

.hero .media img { width: 100%; height: 100%; object-fit: cover; }
.hero-collage {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 12px; height: 100%;
  background: color-mix(in srgb, var(--brand) 8%, var(--surface));
}

/* Illustrated product tile used until real photos are added */
.art { width: 100%; height: 100%; }
.art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.art-tile {
  width: 100%; height: 100%; display: grid; place-items: center;
  background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 12%, var(--surface)), color-mix(in srgb, var(--accent) 18%, var(--surface)));
  color: var(--brand-dark); border-radius: 14px;
}
.art-tile svg { width: 42%; height: auto; max-width: 140px; }
.art-tile.big svg { max-width: 220px; }

.cat-card {
  display: block; text-decoration: none; color: var(--text); text-align: left;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px;
  transition: transform .15s, box-shadow .15s;
}
.cat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.cat-card .icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand);
}
.cat-card .icon svg { width: 28px; height: 28px; }
.cat-card h3 { margin: 0; }

.shop-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 24px; }
.shop-head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters button {
  border: 2px solid var(--line); background: var(--surface); color: var(--text); border-radius: 999px;
  padding: 8px 16px; font: inherit; font-weight: 600; cursor: pointer;
}
.filters button[aria-pressed="true"] { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }

.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.product-card {
  display: flex; flex-direction: column; text-decoration: none; color: var(--text);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  transition: transform .15s, box-shadow .15s;
}
.product-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.product-card .art { aspect-ratio: 1; padding: 10px; }
.pc-body { padding: 4px 18px 20px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.pc-body h3 { margin: 0; font-size: 1rem; }
.pc-body p { margin: 0; color: var(--muted); font-size: .9rem; flex: 1; }
.pc-price { font-weight: 800; font-size: 1.05rem; margin-top: 6px; }

.crumbs { padding-top: 24px; font-size: .9rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
.p-title { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.buy { padding-top: 24px; }
.buy .media { padding: 12px; }
.btn[disabled] { background: var(--muted); cursor: not-allowed; transform: none; opacity: .75; }
#related-wrap h2 { margin-bottom: 24px; }

.split .faq { margin: 0; }

@media (max-width: 960px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 860px) {
  .product-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .topnav { gap: 14px; }
  .topnav a { font-size: .85rem; }
}
@media (max-width: 420px) { .topnav a:nth-child(2) { display: none; } }

/* Product photo gallery */
#p-thumbs { margin-top: 12px; }
#p-thumbs button { background: var(--surface); }
#p-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.art img { background: #fff; }
.hero-collage .art-tile { overflow: hidden; padding: 0; }
.hero-collage .art-tile img { width: 100%; height: 100%; object-fit: cover; }

/* Legal pages */
.policy h3 { margin: 24px 0 8px; }
.policy li { margin-bottom: 6px; }
.policy .eff { color: var(--muted); font-size: .9rem; }
.policy .callout { background: color-mix(in srgb, var(--accent) 18%, var(--surface)); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.policy h2 a { color: inherit; text-decoration: none; }
.fine-left { color: var(--muted); font-size: .9rem; }
.legal-note { font-size: .85rem; color: var(--muted); margin-top: 8px; }
.legal-note a { color: var(--muted); }

/* Size guide */
.table-wrap { overflow-x: auto; margin: 12px 0; }
.guide-table { width: 100%; border-collapse: collapse; min-width: 520px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.guide-table th, .guide-table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .95rem; }
.guide-table th { background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.hero .btn.ghost { margin-left: 8px; }
