/* Shared styles for product category pages (and the products hub):
   breadcrumb, category nav, product grid/tiles, and the detail modal. */

.breadcrumb { font-size: 13px; color: var(--grey-700); margin-bottom: 14px; }
.breadcrumb a { color: var(--blue-deep); text-decoration: none; font-weight: 600; }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb span { color: var(--grey-200); margin: 0 6px; }
/* Every breadcrumb on this site actually sits inside .page-hero, over the navy
   scrim — where --grey-700 on --navy is about 1.4:1 and the current page's name
   simply is not readable, and --blue-deep is not much better. Repaint for the
   dark ground; the rules above stay for any future breadcrumb on white. */
.page-hero .breadcrumb { color: rgba(255,255,255,0.85); }
.page-hero .breadcrumb a { color: var(--white); text-decoration: underline; text-underline-offset: 2px; }
.page-hero .breadcrumb a:hover { color: var(--blue-light); }
.page-hero .breadcrumb span { color: rgba(255,255,255,0.45); }

.category-nav { background: var(--grey-50); border-bottom: 1px solid var(--grey-200); padding: 16px 0; position: sticky; top: 76px; z-index: 90; }
.category-nav-inner { display: flex; gap: 8px; flex-wrap: wrap; }
.cat-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 20px; font-size: 14px; font-weight: 600; color: var(--grey-700); border: 1.5px solid var(--grey-200); background: var(--white); text-decoration: none; transition: all 0.15s; }
.cat-tab:hover, .cat-tab.active { background: var(--navy); color: white; border-color: var(--navy); text-decoration: none; }
.cat-tab svg { flex-shrink: 0; }

.category-section { padding: 56px 0; border-bottom: 1px solid var(--grey-200); scroll-margin-top: 52px;   /* + html scroll-padding-top 76px = the 128px this was */ }
.category-section:last-of-type { border-bottom: none; }
.category-section.alt { background: var(--grey-50); }

.cat-header { display: flex; align-items: center; gap: 16px; margin-bottom: 32px; }
.cat-icon { width: 56px; height: 56px; background: var(--blue-pale); border-radius: var(--radius-md); display: flex; align-items: center; justify-content: center; color: var(--blue-deep); flex-shrink: 0; }
.cat-header h2 { margin-bottom: 4px; }
.cat-header p { font-size: 15px; color: var(--grey-700); }

.products-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.product-tile { background: var(--white); border: 1.5px solid var(--grey-200); border-radius: var(--radius-md); overflow: hidden; transition: all 0.18s; }
.product-tile:hover { border-color: var(--blue-light); transform: translateY(-2px); }
.product-tile.active { border-color: var(--blue-mid); box-shadow: var(--shadow-md); }
.product-image { height: 170px; background: var(--blue-pale); display: flex; align-items: center; justify-content: center; color: var(--blue-mid); overflow: hidden; }
/* Tiles hold a mix of cut-out product shots and in-situ photos at every aspect
   ratio. `contain` on white shows the whole product in each one; `cover` cropped
   portrait rails down to a fragment. */
.product-image:has(img) { background: var(--grey-100); }
.product-image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-info { padding: 18px; }
.product-info h3 { font-size: 15px; margin-bottom: 6px; }
.product-info p { font-size: 13px; color: var(--grey-700); line-height: 1.5; margin-bottom: 14px; }

.enquire-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue-deep); text-decoration: none; cursor: pointer; }
.enquire-btn:hover { color: var(--navy); text-decoration: underline; }
.more-info-btn { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--blue-deep); background: var(--blue-pale); border: none; border-radius: var(--radius-sm); padding: 7px 12px; min-height: 44px; cursor: pointer; margin-top: 10px; transition: background 0.15s; }
.more-info-btn:hover { background: var(--blue-tint); }
.more-info-btn .mi-arrow { transition: transform 0.2s; display: inline-block; }
.more-info-btn.open .mi-arrow { transform: rotate(180deg); }

.no-price-note { background: var(--blue-pale); border: 1.5px solid var(--blue-tint); border-radius: var(--radius-sm); padding: 12px 16px; font-size: 13px; color: var(--navy); margin-bottom: 28px; display: flex; gap: 10px; align-items: flex-start; }
.catalogue-cta { background: linear-gradient(135deg, var(--navy), var(--blue-deep)); border-radius: var(--radius-lg); padding: 40px; text-align: center; margin-top: 48px; }
.catalogue-cta h2 { color: white; margin-bottom: 12px; }
.catalogue-cta p { color: rgba(255,255,255,0.8); max-width: 480px; margin: 0 auto 24px; }

@media (max-width: 900px) { .products-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .products-grid { grid-template-columns: 1fr; } }

/* ---- Product detail modal ---- */
.pm-overlay { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(18,41,67,0.55); -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); opacity: 0; transition: opacity 0.25s ease; }
.pm-overlay[hidden] { display: none; }
.pm-overlay.open { opacity: 1; }
.pm-dialog { background: var(--white); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); width: 92vw; max-width: 560px; max-height: 90vh; overflow-y: auto; position: relative; transform: scale(0.96) translateY(8px); transition: transform 0.3s cubic-bezier(0.22,1,0.36,1); }
.pm-overlay.open .pm-dialog { transform: scale(1) translateY(0); }
.pm-close { position: absolute; top: 10px; right: 10px; z-index: 3; width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; font-size: 28px; line-height: 1; color: var(--navy); background: rgba(255,255,255,0.9); border: none; border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-sm); transition: background 0.15s; }
.pm-close:hover { background: var(--white); }
.pm-carousel { position: relative; border-radius: var(--radius-lg) var(--radius-lg) 0 0; overflow: hidden; background: var(--blue-pale); }
/* Taller than the old 760/360 banner and `contain` rather than `cover`: the
   carousel now carries upright products and spec drawings, which a wide crop
   sliced in half. */
.pm-track { display: flex; aspect-ratio: 760 / 440; background: #fff; transition: transform 0.4s cubic-bezier(0.22,1,0.36,1); }
.pm-slide { flex: 0 0 100%; height: 100%; }
.pm-slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.pm-placeholder { flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--blue-mid); text-align: center; padding: 24px; }
.pm-placeholder img { width: 56px; height: auto; opacity: 0.85; }
.pm-placeholder span { font-size: 14px; font-weight: 600; color: var(--blue-deep); }
.pm-prev, .pm-next { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; font-size: 26px; line-height: 1; color: var(--navy); background: rgba(255,255,255,0.9); border: none; border-radius: 50%; cursor: pointer; box-shadow: var(--shadow-sm); transition: background 0.15s; }
.pm-prev:hover, .pm-next:hover { background: var(--white); }
.pm-prev { left: 12px; } .pm-next { right: 12px; }
.pm-prev[hidden], .pm-next[hidden], .pm-dots[hidden] { display: none; }
.pm-dots { position: absolute; bottom: 10px; left: 0; right: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.pm-dots button { width: 9px; height: 9px; padding: 0; border: none; border-radius: 50%; background: rgba(255,255,255,0.6); cursor: pointer; transition: background 0.15s, transform 0.15s; }
.pm-dots button[aria-selected="true"] { background: var(--white); transform: scale(1.25); }
.pm-body { padding: 24px 28px 28px; }
.pm-body h4 { font-size: 19px; color: var(--navy); margin-bottom: 14px; }
.pm-bullets { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 16px; }
.pm-bullets li { font-size: 14px; color: var(--grey-700); display: flex; gap: 8px; line-height: 1.5; }
.pm-bullets li::before { content: '✓'; color: var(--blue-mid); font-weight: 700; flex-shrink: 0; }
.pm-body .suitable { font-size: 13px; color: var(--grey-700); margin-bottom: 18px; }
.pm-body .suitable strong { color: var(--navy); }
@media (max-width: 600px) {
  .pm-overlay { padding: 0; }
  .pm-dialog { width: 100vw; max-width: 100%; max-height: 100vh; height: 100%; border-radius: 0; }
  .pm-carousel { border-radius: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .pm-overlay, .pm-dialog, .pm-track { transition: none; }
}
