/* Quiet, functional refinements — original brand palettes and typography are retained. */
html { scroll-padding-top: 98px; }
body { overflow-x: clip; }
#app { min-width: 0; min-height: 35vh; }
.site-header nav a[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 7px; }
.product-buy { gap: 12px; flex-wrap: wrap; }
.product-buy .text-link { white-space: nowrap; }
.product-card .product-meta { min-height: 22px; }
.product-card .compare-button { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; border-radius: 50%; }
.product-card .compare-button:hover { background: color-mix(in srgb, var(--accent, #777) 12%, transparent); }
.detail-copy .back-link { display: inline-block; margin-bottom: 20px; }
.detail-copy > p { max-width: 56ch; }
.detail-actions { display: flex; align-items: center; flex-wrap: wrap; column-gap: 14px; row-gap: 12px; margin-top: 24px; }
.detail-actions label { margin: 0; }
.detail-actions .button-outline { margin-inline-start: 0; }
.detail-gallery { min-width: 0; }
.detail-gallery img { display: block; }
.no-results { grid-column: 1 / -1; padding: 26px 0 46px; }
.no-results p { color: var(--muted); }
.no-results button { border: 0; background: none; cursor: pointer; }
.gallery-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 9px 24px; padding: 27px 6vw 0; }
.gallery-filters button { background: none; border: 0; border-bottom: 1px solid transparent; padding: 7px 0; color: var(--muted); font-size: 12px; letter-spacing: .05em; }
.gallery-filters button[aria-pressed="true"] { color: var(--ink, var(--text)); border-bottom-color: var(--accent); }
.gallery-filters button:hover { color: var(--accent); }
.gallery-filters + .gallery-grid { padding-top: 28px; }
.services-note { display: flex; gap: 20px; align-items: center; padding-top: 48px; }
.services-note p, .form-disclaimer { color: var(--muted); font-size: 12px; }
.compare-scroll { margin: 32px 6vw 0; overflow-x: auto; scrollbar-width: thin; }
.compare-scroll .compare-table { display: grid; width: max-content; min-width: 100%; grid-template-columns: 165px repeat(var(--compare-count), minmax(190px, 1fr)); padding: 1px; margin: 0; }
.compare-actions { padding: 22px 6vw 64px; }
.compare-actions button { background: transparent; border: 0; cursor: pointer; }
.compare-product button { margin-top: 10px; padding: 7px 10px; border: 1px solid var(--line); background: transparent; color: inherit; }
.form-panel #form-result:not(:empty) { padding: 12px 15px; border-inline-start: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
.form-panel input:invalid:not(:placeholder-shown):not([type="date"]):not([type="time"]) { box-shadow: none; }
.modal-open { overflow: hidden; }
.lightbox .lightbox-close { top: 14px; right: 22px; }
.lightbox .lightbox-prev, .lightbox .lightbox-next { top: 48%; right: auto; padding: 8px 12px; font-size: 28px; line-height: 1; }
.lightbox .lightbox-prev { left: 12px; }
.lightbox .lightbox-next { right: 12px; left: auto; }
.lightbox img { max-height: 75vh; }
.lightbox p { max-width: 75vw; text-align: center; }
.bag-icon { width: 21px; height: 21px; vertical-align: middle; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 900px) {
  .detail-copy { position: static; }
  .product-grid { gap: 20px; }
  .compare-scroll { margin-inline: 4vw; }
}
@media (max-width: 650px) {
  .site-header { isolation: isolate; }
  .site-header nav.open { max-height: min(70vh, 500px); overflow-y: auto; box-shadow: 0 15px 25px #00000017; }
  .header-actions select { max-width: 78px; }
  .section-heading { gap: 12px; }
  .section-heading .text-link { flex: 0 0 auto; }
  .product-buy { align-items: flex-start; }
  .product-card .product-meta { margin-top: 12px; }
  .product-card h3 { overflow-wrap: break-word; }
  .detail-actions { align-items: flex-start; }
  .detail-copy h1 { overflow-wrap: break-word; }
  .gallery-filters { padding-inline: 5vw; gap: 6px 18px; }
  .gallery-grid { gap: 10px; }
  .services-note { display: block; }
  .services-note p { margin-top: 16px; }
  .cart-row { grid-template-columns: 80px minmax(0,1fr) auto; gap: 10px; }
  .cart-row img { width: 80px; height: 85px; }
  .cart-row h2 { font-size: 16px; }
  .cart-row strong { grid-column: 3; grid-row: 1; font-size: 13px; }
  .cart-row .text-button { grid-column: 2 / -1; justify-self: end; }
  .compare-scroll { margin: 24px 16px 0; }
  .compare-scroll .compare-table { grid-template-columns: 110px repeat(var(--compare-count), minmax(160px,1fr)); }
  .lightbox { padding: 14px 35px; }
  .lightbox .lightbox-prev { left: 2px; }
  .lightbox .lightbox-next { right: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .product-image, .gallery-tile img, .button { transition: none !important; }
}


/* Compact component cards; unobtrusive technical comparisons. */
.compare-scroll .compare-table > div { background: var(--surface); }
.compare-scroll .compare-table { background: var(--line); }
.product-card .compare-button:hover { color: var(--cyan); }
.site-header nav a[aria-current="page"] { text-decoration-color: var(--cyan); }
.gallery-filters button[aria-pressed="true"] { color: var(--text); }
@media (max-width: 650px) { .product-buy .button-small { width: 100%; } .product-card .product-desc { min-height: 0; } }

/* Keep notification dots inside header bounds. */
.header-actions a { position: relative; }
.header-actions .count-badge { right: 0; top: -7px; transform: translateX(15%); }
@media (min-width: 1100px) { .header-actions { padding-right: 8px; } }
