/* Sunrise Marine — Custom styles */
:root {
  --marine: #0B3D91;
  --marine-700: #0A357F;
  --marine-900: #061F4D;
  --accent: #C8102E;
  --slatey: #5B6573;
}

* { -webkit-tap-highlight-color: transparent; }

/* ============================================================
   Defensive horizontal-overflow guard
   ------------------------------------------------------------
   Catches any future single element that might leak past the
   viewport on mobile (decorative absolute-positioned bg layers,
   long unbroken strings like part numbers, wide tables, etc.)
   `overflow-x: clip` cuts off the overflow WITHOUT creating a
   scroll container (so position:sticky still works on children).
   ============================================================ */
html, body {
  overflow-x: clip;
  max-width: 100vw;
}
/* Fallback for older browsers without `clip` support */
@supports not (overflow: clip) {
  html, body { overflow-x: hidden; }
}
/* Ensure media and tables can't push the viewport wider on mobile */
img, video, svg, iframe, embed, object, canvas, table, pre {
  max-width: 100%;
}
/* Break extremely long unbroken strings (part numbers, URLs) inside
   common text containers so they never push a card wider than the grid cell */
.line-clamp-2, .line-clamp-3, p, h1, h2, h3, h4, .sm-search__title, .sm-search__pn, .sm-search__brand {
  word-break: break-word;
  overflow-wrap: anywhere;
}

/* ============ Consistent spacing system ============ */
/* Site-wide container — use everywhere */
.sm-container {
  max-width: 1440px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}
@media (min-width: 640px) {
  .sm-container { padding-left: 1.5rem; padding-right: 1.5rem; }
}
@media (min-width: 1024px) {
  .sm-container { padding-left: 2rem; padding-right: 2rem; }
}

/* Standard section vertical rhythm */
.sm-section { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .sm-section { padding-top: 4rem; padding-bottom: 4rem; } }
@media (min-width: 1024px) { .sm-section { padding-top: 5rem; padding-bottom: 5rem; } }

/* Reduced rhythm for tight pages */
.sm-section-sm { padding-top: 2rem; padding-bottom: 2rem; }
@media (min-width: 640px) { .sm-section-sm { padding-top: 2.5rem; padding-bottom: 2.5rem; } }
@media (min-width: 1024px) { .sm-section-sm { padding-top: 3rem; padding-bottom: 3rem; } }

/* Page hero rhythm */
.sm-hero-pad { padding-top: 3rem; padding-bottom: 3rem; }
@media (min-width: 640px) { .sm-hero-pad { padding-top: 4rem; padding-bottom: 4rem; } }
@media (min-width: 1024px) { .sm-hero-pad { padding-top: 5rem; padding-bottom: 5rem; } }
@media (min-width: 1280px) { .sm-hero-pad { padding-top: 6rem; padding-bottom: 6rem; } }

/* ============ Marine layered backgrounds ============ */
.marine-pattern {
  background-image:
    radial-gradient(circle at 20% 25%, rgba(255,255,255,0.06) 0, transparent 45%),
    radial-gradient(circle at 80% 70%, rgba(200,16,46,0.07) 0, transparent 45%),
    linear-gradient(135deg, #0B3D91 0%, #082A66 60%, #061F4D 100%);
}

/* Blueprint engineering grid overlay */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px, 16px 16px, 16px 16px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  mask-image: linear-gradient(180deg, transparent 0%, #000 12%, #000 85%, transparent 100%);
}

.marine-grid {
  background-image:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
}

.hero-glow {
  background-image:
    radial-gradient(ellipse 60% 50% at 75% 20%, rgba(96,165,250,0.18) 0, transparent 60%),
    radial-gradient(ellipse 50% 40% at 15% 90%, rgba(200,16,46,0.10) 0, transparent 60%);
}

/* ============ Hero background image (ken burns) ============ */
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  animation: kenBurns 24s ease-in-out infinite alternate;
  will-change: transform;
}
@keyframes kenBurns {
  0%   { transform: scale(1.0) translateX(0) translateY(0); }
  100% { transform: scale(1.10) translateX(-1.5%) translateY(-1%); }
}

/* Animated horizontal scan line sweeping down the hero */
.hero-scan-line {
  position: absolute;
  left: 0; right: 0; top: -2px;
  height: 100%;
  background: linear-gradient(180deg, transparent 0%, rgba(96,165,250,0) 49%, rgba(96,165,250,0.20) 50%, rgba(96,165,250,0) 51%, transparent 100%);
  animation: scanLine 8s linear infinite;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.6;
}
@keyframes scanLine {
  0%   { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

/* ============ Floating product tags ============ */
.floating-tag {
  position: absolute;
  display: flex;
  gap: 0.6rem;
  align-items: center;
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(12px);
  border-radius: 0.75rem;
  padding: 0.5rem 0.85rem 0.5rem 0.5rem;
  box-shadow: 0 18px 40px -15px rgba(0,0,0,0.5), 0 0 0 1px rgba(255,255,255,0.4);
  width: 230px;
  animation: floatBob 6s ease-in-out infinite;
  transition: transform .3s ease, box-shadow .3s ease;
  z-index: 2;
}
.floating-tag:hover {
  transform: scale(1.05) !important;
  z-index: 10;
  box-shadow: 0 25px 50px -15px rgba(0,0,0,0.6), 0 0 0 2px rgba(200,16,46,0.3);
}
.floating-tag__img {
  width: 44px;
  height: 44px;
  border-radius: 0.5rem;
  overflow: hidden;
  background: #EAF1F8;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.floating-tag__img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.floating-tag__meta {
  flex: 1;
  min-width: 0;
}
.floating-tag__brand {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #C8102E;
  line-height: 1;
}
.floating-tag__title {
  font-size: 11px;
  font-weight: 600;
  color: #1F2A37;
  margin-top: 2px;
  line-height: 1.25;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.floating-tag__badge {
  display: inline-block;
  margin-top: 4px;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: #0B3D91;
  color: white;
  padding: 1px 5px;
  border-radius: 3px;
}
.floating-tag__pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 12px rgba(52,211,153,0.8), 0 0 0 3px rgba(52,211,153,0.3);
  animation: pulseGlow 2s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 0 8px rgba(52,211,153,0.6), 0 0 0 0 rgba(52,211,153,0.4); }
  50% { box-shadow: 0 0 16px rgba(52,211,153,1), 0 0 0 8px rgba(52,211,153,0); }
}
@keyframes floatBob {
  0%, 100% { transform: translateY(0) rotate(var(--rot, 0deg)); }
  50%      { transform: translateY(-8px) rotate(var(--rot, 0deg)); }
}

/* Floating stat pills */
.floating-stat-red {
  position: absolute;
  bottom: -6px;
  left: -10px;
  background: linear-gradient(180deg, #C8102E, #A60D26);
  color: white;
  font-size: 11px;
  font-weight: 700;
  padding: 0.5rem 0.85rem;
  border-radius: 0.5rem;
  box-shadow: 0 14px 30px -10px rgba(200,16,46,0.55);
  transform: rotate(-2deg);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 3;
}
.floating-stat-white {
  position: absolute;
  top: -8px;
  right: -4px;
  background: white;
  color: #0B3D91;
  font-size: 10px;
  font-weight: 700;
  padding: 0.4rem 0.7rem;
  border-radius: 0.5rem;
  box-shadow: 0 12px 28px -10px rgba(0,0,0,0.35);
  transform: rotate(2deg);
  z-index: 3;
}

/* ============ Legal page hero (no photo, gradient + grid) ============ */
.legal-hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 80% at 80% 30%, rgba(200,16,46,0.18) 0, transparent 60%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(96,165,250,0.16) 0, transparent 60%),
    linear-gradient(135deg, #082A66 0%, #061F4D 65%, #040F2E 100%);
  color: white;
}
.legal-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 60px;
  background: linear-gradient(180deg, transparent 0%, white 100%);
  pointer-events: none;
}

/* ============ Legal page table of contents ============ */
.legal-toc { font-size: 13px; }
.legal-toc .toc-link {
  display: flex;
  align-items: flex-start;
  gap: .55rem;
  padding: .45rem .65rem;
  border-radius: .45rem;
  color: #5B6573;
  border-left: 2px solid transparent;
  transition: all .15s ease;
}
.legal-toc .toc-link:hover {
  background: rgba(11,61,145,0.06);
  color: #0B3D91;
  border-left-color: #C8102E;
}
.legal-toc .toc-num {
  display: inline-block;
  min-width: 22px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 10px;
  color: #A6BFDD;
  font-weight: 700;
  padding-top: 2px;
}
.legal-toc .toc-link:hover .toc-num { color: #C8102E; }

/* Smooth scroll account for sticky header */
html { scroll-behavior: smooth; scroll-padding-top: 100px; }

/* ============ Legal prose ============ */
.legal-prose {
  color: #1F2A37;
  font-size: 15px;
  line-height: 1.75;
  max-width: 78ch;
}
.legal-prose section {
  margin-bottom: 2.5rem;
  scroll-margin-top: 100px;
}
.legal-prose section + section { padding-top: .5rem; }
.legal-prose h2 {
  color: #0B3D91;
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
  position: relative;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(11,61,145,0.12);
}
.legal-prose h2::after {
  content: '';
  position: absolute;
  bottom: -1px; left: 0;
  width: 36px; height: 3px;
  background: linear-gradient(90deg, #C8102E, #0B3D91);
  border-radius: 3px;
}
.legal-prose h3 {
  color: #0B3D91;
  font-size: 16px;
  font-weight: 700;
  margin: 1.5rem 0 .5rem;
}
.legal-prose p { margin: 0 0 1rem; }
.legal-prose strong { color: #0B3D91; font-weight: 700; }
.legal-prose ul, .legal-prose ol {
  margin: 0.75rem 0 1.25rem;
  padding-left: 1.25rem;
}
.legal-prose ul li, .legal-prose ol li { margin-bottom: 0.4rem; }
.legal-prose ul li::marker { color: #C8102E; }
.legal-prose ol li::marker { color: #0B3D91; font-weight: 700; }
.legal-prose a {
  color: #0B3D91;
  text-decoration: underline;
  text-decoration-color: rgba(11,61,145,0.4);
  text-underline-offset: 3px;
  font-weight: 500;
  transition: color .15s ease;
}
.legal-prose a:hover { color: #C8102E; text-decoration-color: #C8102E; }
.legal-prose abbr { text-decoration: underline dotted; cursor: help; }
.legal-prose code {
  background: #EAF1F8;
  border: 1px solid rgba(11,61,145,0.15);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: "JetBrains Mono", ui-monospace, monospace;
  font-size: 12px;
}

.legal-prose .callout {
  margin: 1rem 0;
  padding: 1rem 1.1rem;
  border-radius: .65rem;
  background: linear-gradient(135deg, #EAF1F8 0%, rgba(234,241,248,0.4) 100%);
  border-left: 3px solid #C8102E;
  font-size: 14px;
}

.legal-dl {
  display: grid;
  grid-template-columns: minmax(140px, 200px) 1fr;
  gap: 0.75rem 1.25rem;
  margin: 1rem 0 1.25rem;
  font-size: 14px;
}
.legal-dl dt {
  font-weight: 700;
  color: #0B3D91;
  padding-top: 1px;
}
.legal-dl dd {
  margin: 0;
  color: #1F2A37;
}
@media (max-width: 640px) {
  .legal-dl { grid-template-columns: 1fr; gap: 0.25rem 0; }
  .legal-dl dt { padding-top: 0.75rem; }
  .legal-dl dt:first-child { padding-top: 0; }
}

.legal-table {
  width: 100%;
  margin: 1rem 0 1.25rem;
  font-size: 13px;
  border-collapse: collapse;
  border-radius: 0.5rem;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(11,61,145,0.15);
}
.legal-table thead {
  background: #0B3D91;
  color: white;
}
.legal-table th {
  text-align: left;
  padding: 0.6rem 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.legal-table td {
  padding: 0.55rem 0.9rem;
  border-top: 1px solid rgba(11,61,145,0.08);
  vertical-align: top;
}
.legal-table tbody tr:nth-child(odd) { background: rgba(234,241,248,0.4); }

.contact-card {
  background: linear-gradient(135deg, #0B3D91 0%, #061F4D 100%);
  color: white;
  padding: 1.1rem 1.25rem;
  border-radius: 0.75rem;
  font-size: 14px;
  margin: 1rem 0;
  line-height: 1.8;
  box-shadow: 0 14px 30px -15px rgba(11,61,145,0.4);
}
.contact-card a { color: #A6BFDD; text-decoration: underline; }
.contact-card a:hover { color: white; }
.contact-card strong { color: white; }

/* Brand pill grid for trademark page */
.brand-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 1rem 0;
}
.brand-pill {
  display: inline-block;
  background: #EAF1F8;
  color: #0B3D91;
  font-size: 12px;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border-radius: 0.4rem;
  border: 1px solid rgba(11,61,145,0.15);
}

/* Print styles */
@media print {
  header, footer, aside.legal-toc, [data-inquiry-open], .cta-primary, .cta-secondary { display: none !important; }
  .legal-prose { max-width: 100%; }
  .legal-hero { background: white !important; color: #0B3D91 !important; }
  .legal-prose a { color: #0B3D91 !important; }
}

/* ============ Generic page hero strip ============ */
.page-hero {
  position: relative;
  overflow: hidden;
  color: white;
}
.page-hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.page-hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: kenBurns 30s ease-in-out infinite alternate;
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,61,145,0.55) 0%, rgba(6,31,77,0.85) 100%),
    linear-gradient(90deg, rgba(11,61,145,0.4) 0%, rgba(11,61,145,0.1) 100%);
}
.page-hero__inner { position: relative; z-index: 1; }

/* ============ Navigation ============ */
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  border-radius: 0.5rem;
  color: #1F2A37;
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav-link:hover { color: #0B3D91; background: rgba(11,61,145,0.06); }
.nav-link.is-active { color: #0B3D91; font-weight: 600; }
.nav-link.is-active::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: linear-gradient(90deg, #0B3D91 0%, #C8102E 100%);
  border-radius: 2px;
}

/* ============ Mega menu ============ */
.mega-menu { pointer-events: none; }
.mega-menu .bg-white { pointer-events: auto; }
.group:hover .mega-menu { pointer-events: auto; }

.mega-cat-head:hover {
  color: #C8102E;
}
.mega-cat-head:hover .w-8 {
  background: #0B3D91;
  color: white;
}

.mega-sub {
  position: relative;
  padding-left: 0.5rem;
}
.mega-sub::before {
  content: '';
  position: absolute;
  left: -2px;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 60%;
  background: #C8102E;
  border-radius: 2px;
  transition: width .15s ease;
}
.mega-sub:hover::before { width: 3px; }

/* ============ CTA buttons ============ */
.cta-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.4rem;
  border-radius: 0.6rem;
  background: linear-gradient(180deg, #C8102E 0%, #A60D26 100%);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  box-shadow: 0 14px 30px -10px rgba(200,16,46,0.55), inset 0 1px 0 rgba(255,255,255,0.15);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  border: 0;
  cursor: pointer;
}
.cta-primary:hover {
  background: linear-gradient(180deg, #D8233F 0%, #A60D26 100%);
  box-shadow: 0 18px 36px -10px rgba(200,16,46,0.6), inset 0 1px 0 rgba(255,255,255,0.25);
  transform: translateY(-1px);
}
.cta-primary:active { transform: translateY(0); }

.cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.3rem;
  border-radius: 0.6rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  transition: all .15s ease;
  backdrop-filter: blur(6px);
}
.cta-secondary:hover {
  background: rgba(255,255,255,0.12);
  border-color: rgba(255,255,255,0.45);
}

/* ============ Hero product cards (uniform 1:1) ============ */
.hero-card {
  display: block;
  transition: transform .3s ease;
}
.hero-card:hover { transform: translateY(-3px); }
.hero-card > div {
  box-shadow: 0 12px 30px -12px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.04);
}

/* ============ Card lift ============ */
.card-lift {
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .25s ease;
}
.card-lift:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 35px -18px rgba(11,61,145,0.35);
  border-color: rgba(11,61,145,0.25);
}

/* ============ Live search component ============ */
.sm-search {
  position: relative;
  /* Ensure the search container creates its own stacking context that sits
     above sibling sections, so the dropdown panel renders cleanly over
     the catalog grid below the hero. */
  z-index: 30;
}
/* When the panel is open, lift the whole search above sticky header (z-40). */
.sm-search:has([data-search-panel]:not(.hidden)) {
  z-index: 60;
}

.sm-search input::-webkit-search-cancel-button,
.sm-search input::-webkit-search-decoration { -webkit-appearance: none; appearance: none; }

/* Pin search-input text color so it stays legible no matter what parent
   section it sits inside (e.g. dark hero with `text-white` would otherwise
   make typed text invisible on the white input background). */
.sm-search input[type="search"],
.sm-search__input {
  color: #1f2937;            /* steel / slate-800 — readable on white */
  -webkit-text-fill-color: #1f2937;  /* iOS Safari override */
}
.sm-search input[type="search"]::placeholder,
.sm-search__input::placeholder {
  color: rgba(100, 116, 139, 0.7);   /* slatey at 70% */
  opacity: 1;
}

.sm-search__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 60;
  background: white;
  border: 1px solid rgba(11,61,145,0.12);
  border-radius: 0.85rem;
  box-shadow: 0 20px 50px -15px rgba(15,23,42,0.25), 0 0 0 1px rgba(11,61,145,0.04);
  overflow: hidden;
  min-width: 320px;
  max-width: min(640px, 95vw);
  animation: smSearchOpen .15s ease-out;
}
@keyframes smSearchOpen {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.sm-search__panel-inner {
  max-height: min(70vh, 520px);
  overflow-y: auto;
  padding: 0.5rem;
}

/* On narrow screens, dock panel to viewport edges */
@media (max-width: 640px) {
  .sm-search__panel {
    position: fixed;
    top: auto;
    left: 8px;
    right: 8px;
    bottom: 8px;
    max-width: none;
    min-width: 0;
    max-height: 70vh;
  }
}

/* Quick chips */
.sm-search__quick {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding: 0.65rem 0.5rem 0.5rem;
  border-bottom: 1px solid rgba(11,61,145,0.08);
  margin-bottom: 0.35rem;
}
.sm-search__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 11px;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border-radius: 99px;
  background: #EAF1F8;
  color: #0B3D91;
  border: 1px solid rgba(11,61,145,0.15);
  transition: all .12s ease;
}
.sm-search__chip:hover {
  background: #0B3D91;
  color: white;
  border-color: #0B3D91;
}
.sm-search__chip--brand { background: #FFEAEE; color: #C8102E; border-color: rgba(200,16,46,0.2); }
.sm-search__chip--brand:hover { background: #C8102E; color: white; border-color: #C8102E; }

.sm-search__group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #5B6573;
  text-transform: uppercase;
  padding: 0.4rem 0.55rem 0.2rem;
}

.sm-search__list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sm-search__item {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  padding: 0.6rem 0.55rem;
  border-radius: 0.55rem;
  text-decoration: none;
  color: inherit;
  transition: background .12s ease;
}
.sm-search__item:hover,
.sm-search__item.is-active {
  background: rgba(11,61,145,0.05);
}
.sm-search__item-img {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  background: #EAF1F8;
  border-radius: 0.45rem;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11,61,145,0.08);
}
.sm-search__item-img img {
  width: 100%; height: 100%; object-fit: contain; padding: 4px;
}
.sm-search__img-fallback {
  width:100%; height:100%; background: linear-gradient(135deg,#EAF1F8,#D2DFEE);
}
.sm-search__item-body { flex: 1; min-width: 0; }
.sm-search__brand {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #C8102E;
  line-height: 1;
  margin-bottom: 2px;
}
.sm-search__title {
  font-size: 13px;
  font-weight: 600;
  color: #1F2A37;
  line-height: 1.3;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.sm-search__title mark, .sm-search__brand mark, .sm-search__pn mark {
  background: #fff4c2;
  color: inherit;
  padding: 0 1px;
  border-radius: 2px;
  font-weight: 700;
}
.sm-search__meta {
  display: flex;
  gap: 0.5rem;
  font-size: 10.5px;
  color: #5B6573;
  margin-top: 3px;
  flex-wrap: wrap;
}
.sm-search__pn {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  background: #f1f5f9;
  padding: 1px 5px;
  border-radius: 3px;
  font-size: 10px;
}
.sm-search__badges {
  display: flex;
  gap: 0.3rem;
  margin-top: 4px;
  flex-wrap: wrap;
}
.sm-search__badge {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 1px 5px;
  border-radius: 3px;
  text-transform: uppercase;
}
.sm-search__badge--atex { background: #0B3D91; color: white; }
.sm-search__badge--stock { background: #d1fae5; color: #047857; }
.sm-search__item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.35rem;
  flex-shrink: 0;
  text-align: right;
}
.sm-search__price {
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #0B3D91;
  white-space: nowrap;
}

.sm-search__empty {
  padding: 1.5rem 1rem;
  text-align: center;
}
.sm-search__source-btn {
  display: inline-block;
  padding: 0.4rem 0.85rem;
  background: #C8102E;
  color: white;
  border-radius: 0.5rem;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}
.sm-search__source-btn:hover { background: #A60D26; }

.sm-search__see-all {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 0.35rem;
  padding: 0.6rem 0.55rem;
  background: linear-gradient(180deg, #EAF1F8, #D2DFEE);
  color: #0B3D91;
  font-size: 12px;
  font-weight: 600;
  border-radius: 0.5rem;
  text-decoration: none;
  border: 1px solid rgba(11,61,145,0.15);
  transition: all .12s ease;
}
.sm-search__see-all:hover {
  background: linear-gradient(180deg, #0B3D91, #082A66);
  color: white;
  border-color: #0B3D91;
}

/* ============ Product detail gallery (responsive, capped) ============ */
.product-gallery {
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}
.product-gallery__main {
  position: relative;
  background: #fff;
  border: 1px solid rgba(11,61,145,0.10);
  border-radius: 1rem;
  overflow: hidden;
  /* fluid height between min and max; never explodes */
  aspect-ratio: 4 / 3;
  max-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  box-shadow: 0 6px 20px -10px rgba(15,23,42,0.10);
}
@media (min-width: 1024px) {
  .product-gallery__main { aspect-ratio: 1 / 1; max-height: 520px; padding: 1.5rem; }
}
.product-gallery__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: transform .4s ease, opacity .25s ease;
}
.product-gallery__main:hover .product-gallery__img {
  transform: scale(1.02);
}

/* Thumbnail strip — responsive count + horizontal scroll on tiny screens */
.product-gallery__thumbs {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0.5rem;
  margin-top: 0.75rem;
}
@media (min-width: 480px) {
  .product-gallery__thumbs { grid-template-columns: repeat(6, 1fr); }
}
@media (min-width: 1024px) {
  .product-gallery__thumbs { grid-template-columns: repeat(6, 1fr); gap: 0.5rem; }
}
.product-gallery__thumb {
  aspect-ratio: 1 / 1;
  background: #fff;
  border: 1px solid rgba(11,61,145,0.15);
  border-radius: 0.5rem;
  overflow: hidden;
  padding: 0.3rem;
  cursor: pointer;
  transition: border-color .15s ease, transform .15s ease;
}
.product-gallery__thumb:hover { border-color: #3D6FB1; }
.product-gallery__thumb.is-active {
  border-color: #0B3D91;
  box-shadow: 0 0 0 2px #0B3D91, 0 4px 12px -4px rgba(11,61,145,0.3);
}
.product-gallery__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============ Category cards (with photo backgrounds) ============ */
.cat-card {
  display: block;
  background: #fff;
  border-radius: 1rem;
  overflow: hidden;
  border: 1px solid rgba(11,61,145,0.10);
  transition: transform .35s cubic-bezier(.2,.8,.2,1), box-shadow .35s ease, border-color .25s ease;
}
.cat-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 22px 45px -20px rgba(11,61,145,0.40);
  border-color: rgba(11,61,145,0.25);
}

.cat-card__media {
  position: relative;
  height: 200px;
  overflow: hidden;
}
.cat-card__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s ease;
}
.cat-card:hover .cat-card__img {
  transform: scale(1.06);
}

.cat-card__shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11,61,145,0.25) 0%, rgba(11,61,145,0.05) 35%, rgba(6,31,77,0.85) 100%);
}

.cat-card__icon {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  padding: 9px;
  border-radius: 10px;
  background: rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
}
.cat-card__icon svg { width: 100%; height: 100%; }

.cat-card__number {
  position: absolute;
  top: 18px;
  right: 18px;
  color: rgba(255,255,255,0.7);
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 11px;
  letter-spacing: 0.18em;
  font-weight: 600;
}

.cat-card__overlay-text {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
}

.cat-card__body {
  padding: 1.1rem 1.25rem 1.25rem;
}

/* ============ Marquee ============ */
.marquee { display: flex; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee__inner { display: flex; gap: 3rem; animation: marquee 35s linear infinite; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ============ Custom scrollbar ============ */
@media (min-width: 1024px) {
  ::-webkit-scrollbar { width: 10px; }
  ::-webkit-scrollbar-track { background: #f1f5f9; }
  ::-webkit-scrollbar-thumb { background: #93a4be; border-radius: 6px; }
  ::-webkit-scrollbar-thumb:hover { background: #5b6573; }
}

/* ============ Forms ============ */
.form-input, .form-select, .form-textarea {
  width:100%; padding:.7rem .9rem; border:1px solid #D2DFEE; border-radius:.6rem;
  background:#fff; transition:border .15s, box-shadow .15s; font-size: .9rem;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline:none; border-color:#3D6FB1; box-shadow: 0 0 0 4px rgba(11,61,145,0.12);
}
.form-label { display:block; font-size:.78rem; font-weight:600; color:#1F2A37; margin-bottom:.3rem; }

/* ============ Prose ============ */
.prose-marine h2 { color: #0B3D91; }
.prose-marine a { color: #0B3D91; text-decoration: underline; }

/* ============ Section heading underline ============ */
.section-title { position: relative; }
.section-title::after {
  content:''; display:block; height:3px; width:48px;
  background: linear-gradient(90deg,#C8102E 0,#0B3D91 100%);
  border-radius:3px; margin-top:.7rem;
}
.section-title.center::after { margin-left: auto; margin-right: auto; }

/* ============ Animated underline ============ */
.link-anim { position: relative; }
.link-anim::after {
  content:''; position:absolute; left:0; right:100%; bottom:-2px; height:2px;
  background: currentColor; transition: right .25s ease;
}
.link-anim:hover::after { right: 0; }

/* ============ Ribbon ============ */
.ribbon {
  background: linear-gradient(90deg,#C8102E 0,#A60D26 100%);
  color: #fff; padding: 2px 10px; font-size: 10px; letter-spacing:0.08em; text-transform: uppercase;
}

/* ============ Number inputs ============ */
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }
input[type=number] { -moz-appearance:textfield; }

/* ============ Reduced motion ============ */
@media (prefers-reduced-motion: reduce) {
  [data-aos] { transform: none !important; opacity: 1 !important; transition: none !important; }
  .animate-floaty, .animate-pulse, .animate-slow-pulse { animation: none !important; }
}

/* ============ Mobile sticky CTA padding ============ */
@media (max-width: 1023px) {
  main { padding-bottom: 84px; }
}

/* ============ line-clamp utility ============ */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============ ultrawide guard (don't stretch infinitely) ============ */
@media (min-width: 1600px) {
  .max-w-site { max-width: 1440px; }
}

/* ============ Language selector ============ */
.sm-lang { position: relative; display: inline-block; }
.sm-lang__btn {
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  padding: 0;
  font: inherit;
}
.sm-lang__menu {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 8px;
  width: 230px;
  max-height: 340px;
  overflow-y: auto;
  background: white;
  border: 1px solid #D2DFEE;
  border-radius: 10px;
  box-shadow: 0 18px 40px -15px rgba(0,0,0,0.4);
  z-index: 1000;
  padding: 6px;
}
.sm-lang__menu--mobile {
  position: static;
  width: 100%;
  margin-top: 6px;
  max-height: 280px;
  box-shadow: 0 4px 12px rgba(11,61,145,0.08);
}
.sm-lang__opt {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  padding: 8px 10px;
  border-radius: 6px;
  color: #1F2A37;
  font-size: 13px;
  cursor: pointer;
  transition: background .15s;
}
.sm-lang__opt:hover { background: #EAF1F8; color: #0B3D91; }
.sm-lang__opt.is-active { background: #0B3D91; color: #fff; }

/* Hide Google Translate's auto-injected banner & artifacts */
.goog-te-banner-frame, .skiptranslate { display: none !important; }
body { top: 0 !important; }
.goog-tooltip, .goog-tooltip:hover { display: none !important; }
.goog-text-highlight { background: transparent !important; box-shadow: none !important; }
font[style] { background: transparent !important; }

/* ============ Floating product card carousel ============ */
.floating-tag {
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.floating-tag.is-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* ============ Montserrat (variable font) ============ */
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype-variations'),
       url('/assets/fonts/Montserrat-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('/assets/fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype-variations'),
       url('/assets/fonts/Montserrat-Italic-VariableFont_wght.ttf') format('truetype');
  font-weight: 100 900;
  font-style: italic;
  font-display: swap;
}

/* ============ Brand lockup — SUNRISE MARINE big, AUSTRALIA spread ============ */
.brand-lockup {
  display: inline-flex;
  flex-direction: column;
  font-family: 'Montserrat', 'Inter', ui-sans-serif, system-ui, sans-serif;
  line-height: 1;
  text-decoration: none;
  /* min-width prevents AUSTRALIA from collapsing if SUNRISE MARINE doesn't render yet */
}
.brand-lockup__top {
  display: block;
  font-weight: 800;
  letter-spacing: -0.005em;
  color: #0B3D91;
  white-space: nowrap;
  font-size: 18px;
}
@media (min-width: 1024px) {
  .brand-lockup__top { font-size: 22px; }
}
.brand-lockup__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin-top: 5px;
  color: #5B6573;
  font-weight: 600;
  font-size: 9.5px;
  text-transform: uppercase;
}
@media (min-width: 1024px) {
  .brand-lockup__bottom { font-size: 11px; margin-top: 6px; }
}
.brand-lockup__bottom > span {
  display: inline-block;
}

/* Footer variant — white text */
.brand-lockup--dark .brand-lockup__top    { color: #ffffff; font-size: 20px; }
.brand-lockup--dark .brand-lockup__bottom { color: #A6BFDD; font-size: 10.5px; margin-top: 6px; }
@media (min-width: 1024px) {
  .brand-lockup--dark .brand-lockup__top    { font-size: 22px; }
  .brand-lockup--dark .brand-lockup__bottom { font-size: 11px; }
}

/* Mobile drawer variant — slightly smaller */
.brand-lockup--sm .brand-lockup__top    { font-size: 16px; }
.brand-lockup--sm .brand-lockup__bottom { font-size: 9px; margin-top: 4px; }
