/* Layout for the automotive collection and its shared product template. */
[hidden] { display: none !important; }
.products .section-head { display: block; margin-bottom: 18px; }
.products .section-head h2 { max-width: 780px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.filter { padding: 10px 16px; border: 1px solid var(--line); border-radius: 24px; background: transparent; color: var(--ink); font-size: 12px; }
.filter.active { background: var(--ink); border-color: var(--ink); color: white; }
.filter:hover { border-color: #16816e; }
.catalog-count { color: var(--muted); font-size: 12px; margin: 20px 0; }
.product-grid { gap: 34px 18px; align-items: stretch; }
.product-card { display: flex; flex-direction: column; overflow: visible; }
.product-link { flex: 1; }
.product-visual { height: auto; aspect-ratio: 1; background: white; border: 1px solid #e6eae5; }
.product-visual img { width: 94%; height: 94%; max-width: 100%; max-height: 100%; mix-blend-mode: normal; }
.product-category { font-size: 10px; color: #157060; margin: 0 0 9px; letter-spacing: .06em; text-transform: uppercase; }
.product-info h3 { font-size: 14px; line-height: 1.45; min-height: 41px; }
.product-meta { gap: 8px; flex-wrap: wrap; }
.product-meta > span:first-child { color: var(--ink); font-weight: 700; }
.quick-add { display: block; margin-top: 16px; width: 100%; padding: 12px; background: transparent; color: var(--ink); border: 1px solid #b9c6bf; border-radius: 2px; font-size: 12px; }
.quick-add:hover { background: var(--cyan); border-color: #16816e; }
.automotive-categories .category-card img { object-fit: contain; height: 55%; width: 58%; right: 6px; bottom: 8px; mix-blend-mode: normal; }
.automotive-categories .category-card.dark img { width: 100%; height: 100%; right: 0; bottom: 0; object-fit: cover; opacity: .35; }
.automotive-categories .category-card b { max-width: 110px; }
.hero-art img { position: absolute; inset: 0; mix-blend-mode: normal; opacity: 1; object-position: 50% 63%; filter: saturate(.7); }
.feature-image { min-height: 420px; }
.feature-image img { display: block; }
.detail-media { background: white; border: 1px solid var(--line); height: auto; aspect-ratio: 1; align-self: start; }
.detail-media img { width: 94%; height: 94%; object-fit: contain; mix-blend-mode: normal; }
.product-detail { align-items: start; gap: 5vw; }
.detail-copy h1 { font-size: clamp(32px,3.4vw,49px); line-height: 1.08; }
.detail-copy .eyebrow { margin-bottom: 15px; }
.detail-sku { font-size: 11px; color: var(--muted); margin: 0 0 20px; }
.detail-buy .button { justify-content: center; max-width: none; }
.detail-status { min-height: 18px; font-size: 12px; color: #157060; margin: 12px 0 0; }
.qty-control button:disabled { opacity: .35; cursor: default; }
.detail-extra { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 12px; }
.detail-extra summary { font-weight: 700; cursor: pointer; }
.detail-extra dl { display: grid; grid-template-columns: 1fr 1.2fr; gap: 12px; line-height: 1.5; }
.detail-extra dt { color: var(--muted); }
.detail-extra dd { margin: 0; text-align: right; }
.detail-extra p { color: var(--muted); line-height: 1.7; }
.related-products { padding-top: 0; }
.related-products h2 { font-size: 34px; }
.product-missing { max-width: 800px; margin: auto; padding: 80px 24px; }
.product-missing p { line-height: 1.7; color: var(--muted); }
.product-missing h1 { font-family: 'Space Grotesk',sans-serif; font-size: 42px; }
:is(.product-link,.quick-add,.filter):focus-visible { outline: 3px solid #159d80; outline-offset: 3px; }
@media(max-width:1000px) and (min-width:801px) {
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}
@media(max-width:800px) {
  .filters { gap: 8px; overflow: visible; }
  .filter { padding: 9px 12px; font-size: 11px; }
  .product-grid { gap: 28px 12px; }
  .product-info h3 { font-size: 13px; min-height: 56px; }
  .product-meta { font-size: 11px; }
  .product-category { font-size: 9px; min-height: 22px; }
  .product-visual { height: auto; }
  .automotive-categories .category-card img { width: 48%; height: 80%; }
  .automotive-categories .category-card.dark img { width: 100%; height: 100%; }
  .detail-media { height: auto; margin-bottom: 30px; }
  .detail-copy h1 { font-size: 36px; }
  .feature-image { min-height: 0; }
  .related-products .section-head .text-link { margin-top: 18px; }
}
@media(max-width:460px) {
  .site-header { padding-inline: 14px; }
  .site-header .logo { font-size: 10px; letter-spacing: .12em; gap: 6px; }
  .site-header .logo-mark { width: 24px; height: 24px; font-size: 14px; }
  .header-actions { gap: 3px; }
  .site-header .icon-btn { width: 30px; }
  .site-header .account-btn { width: 32px; padding: 0; gap: 0; }
  .site-header .cart-trigger { min-width: 72px; height: 38px; padding: 0 8px; gap: 3px; font-size: 12px; }
  .site-header .cart-trigger b { width: 23px; height: 23px; }
  .site-header .menu-btn { width: 28px; padding: 0; }
}
