/* Bonnell 775 MX — Product Page Clone */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg: #ffffff;
  --fg: #222222;
  --fg-heading: #696969;
  --fg-muted: rgba(34, 34, 34, 0.6);
  --border: rgba(34, 34, 34, 0.12);
  --border-strong: rgba(34, 34, 34, 0.25);
  --yellow: #fecb00;
  --yellow-text: #100f0f;
  --btn-hover-bg: #333333;
  --soft-bg: #f5f5f5;
  --soft-bg-2: #f0f0f0;
  --outofstock: #c8c8c8;
  --font: Helvetica, Arial, "Helvetica Neue", sans-serif;
  --mono: "MDIO", "DM Mono", ui-monospace, Menlo, monospace;
  --header-h: 64px;
  --max: 1400px;
  --radius: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

ul {
  list-style: none;
}

/* Page banner (Electric Adrenaline Fix) lives in assets/logo.css — shared with homepage */

/* Don’t let product-page img rules shrink the header rider */
.logo-header img,
.page-banner img,
.rider-stack img {
  max-width: none;
  width: 100%;
  height: auto;
}

.product-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 0.5rem;
}

/* ========== Header ========== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
}

.logo img {
  height: 14px;
  width: auto;
}

.nav-desktop {
  display: none;
  gap: 1.75rem;
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.nav-desktop a {
  opacity: 0.75;
  transition: opacity 0.15s;
}

.nav-desktop a:hover {
  opacity: 1;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-actions button,
.header-actions a {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
}

.header-actions button:hover,
.header-actions a:hover {
  opacity: 1;
}

.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--fg);
}

@media (min-width: 900px) {
  .nav-desktop {
    display: flex;
  }
  .menu-toggle {
    display: none;
  }
}

/* Mobile nav */
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--header-h) 0 0 0;
  background: #fff;
  z-index: 99;
  padding: 2rem 1.5rem;
  flex-direction: column;
  gap: 1.25rem;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  font-size: 1.125rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

/* ========== Product Hero ========== */
.product-hero {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1rem 1rem 2.25rem;
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 960px) {
  .product-hero {
    grid-template-columns: 1.2fr 0.8fr;
    gap: 2.5rem;
    padding: 1.5rem 1.5rem 3rem;
    align-items: start;
  }
}

@media (max-width: 720px) {
  .product-hero {
    padding: 0.75rem 0.85rem 2rem;
    gap: 1rem;
  }

  .product-info {
    position: static;
  }

  .btn-primary,
  #claimBtn {
    width: 100%;
    min-height: 48px;
    justify-content: center;
  }

  .qty-control button {
    min-width: 44px;
    min-height: 44px;
  }

  .size-options button,
  .color-options button {
    min-height: 44px;
    min-width: 44px;
  }

  .gallery-thumbs {
    gap: 0.45rem;
  }

  .gallery-thumbs button {
    min-width: 56px;
    min-height: 56px;
  }
}

/* Gallery */
.gallery {
  position: relative;
}

.gallery-main {
  background: var(--soft-bg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: opacity 0.25s;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  color: var(--fg);
  z-index: 2;
  transition: background 0.15s;
}

.gallery-nav:hover {
  background: #fff;
}

.gallery-nav.prev {
  left: 12px;
}

.gallery-nav.next {
  right: 12px;
}

.gallery-thumbs {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: thin;
}

.gallery-thumbs button {
  flex: 0 0 72px;
  height: 72px;
  border: 1px solid transparent;
  background: var(--soft-bg);
  padding: 4px;
  transition: border-color 0.15s;
}

.gallery-thumbs button.active,
.gallery-thumbs button:hover {
  border-color: var(--fg);
}

.gallery-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Product info */
.product-info {
  position: sticky;
  top: 1rem;
}

.price {
  font-size: 1.125rem;
  margin-bottom: 0.35rem;
  color: var(--fg);
}

.price-full-label {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.price-deposit-line {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  color: var(--fg);
}

.price-deposit-line strong {
  color: var(--yellow, #fecb00);
  font-weight: 700;
}

.option-group {
  margin-bottom: 1.25rem;
}

.option-label {
  font-size: 0.8125rem;
  margin-bottom: 0.5rem;
  color: var(--fg-muted);
}

.option-label strong {
  color: var(--fg);
  font-weight: 500;
}

.size-options {
  display: flex;
  gap: 0.5rem;
}

.size-options button {
  min-width: 48px;
  height: 42px;
  padding: 0 0.85rem;
  border: 1px solid var(--border-strong);
  font-size: 0.875rem;
  transition: all 0.15s;
}

.size-options button.active {
  background: var(--fg);
  color: #fff;
  border-color: var(--fg);
}

.size-options button:hover:not(.active) {
  border-color: var(--fg);
}

.color-options {
  display: flex;
  gap: 0.625rem;
  flex-wrap: wrap;
}

.color-options button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid transparent;
  outline: 1px solid var(--border);
  position: relative;
  transition: outline-color 0.15s, outline-offset 0.15s;
}

.color-options button.active {
  outline: 2px solid var(--fg);
  outline-offset: 2px;
}

.color-options button[data-color="Slate"] {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}
.color-options button[data-color="Graphite"] {
  background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}
.color-options button[data-color="Amethyst"] {
  background: linear-gradient(135deg, #7c6b9a 0%, #5b4b7a 100%);
}
.color-options button[data-color="Texas Grey"] {
  background: linear-gradient(135deg, #9ca3af 0%, #6b7280 50%, #d4a574 100%);
}

/* Momentarily out of stock colors */
.color-options button.color-oos,
.color-options button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  filter: grayscale(0.55);
  pointer-events: none;
}

.color-options button.color-oos::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: linear-gradient(
    135deg,
    transparent 46%,
    rgba(20, 20, 20, 0.85) 48%,
    rgba(20, 20, 20, 0.85) 52%,
    transparent 54%
  );
  pointer-events: none;
}

.qty-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.qty-control {
  display: flex;
  align-items: center;
  border: 1px solid var(--border-strong);
}

.qty-control button {
  width: 40px;
  height: 40px;
  font-size: 1.125rem;
  color: var(--fg-muted);
}

.qty-control button:hover {
  color: var(--fg);
}

.qty-control span {
  min-width: 36px;
  text-align: center;
  font-size: 0.875rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  background: var(--yellow);
  color: var(--yellow-text);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: background 0.2s, color 0.2s;
}

.btn-primary:hover {
  background: var(--btn-hover-bg);
  color: #fff;
}

.btn-primary:disabled {
  background: var(--outofstock);
  color: #666;
  cursor: not-allowed;
}

.btn-primary:disabled:hover {
  background: var(--outofstock);
  color: #666;
}

.urgency-note {
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.4;
  color: #b45309;
  letter-spacing: 0.01em;
}

.purchase-note {
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--fg-muted);
}

.purchase-note a {
  color: var(--fg);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.purchase-note a:hover {
  color: var(--fg);
  opacity: 0.8;
}

/* ========== Sections ========== */
.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 4rem 1.5rem;
}

.section-alt {
  background: var(--soft-bg);
}

.section-alt .section {
  /* nested for full-bleed bg */
}

.section-full {
  padding: 4rem 1.5rem;
}

.section h2 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 400;
  color: var(--fg);
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}

.section h3 {
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  font-weight: 400;
  margin-bottom: 0.75rem;
}

.lead {
  font-size: 1rem;
  color: var(--fg-muted);
  max-width: 720px;
  line-height: 1.7;
}

/* Overview stats */
.stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .stats {
    grid-template-columns: repeat(5, 1fr);
  }
}

.stat {
  background: #fff;
  padding: 1.25rem 1rem;
  text-align: center;
}

.stat-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  margin-bottom: 0.35rem;
}

.stat-value {
  font-size: 1rem;
  font-weight: 500;
}

/* Feature blocks */
.feature {
  display: grid;
  gap: 2rem;
  align-items: center;
  padding: 3.5rem 0;
  border-bottom: 1px solid var(--border);
}

.feature:last-child {
  border-bottom: none;
}

@media (min-width: 900px) {
  .feature {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
  /* Only reorder the column wrapper — not the image inside it,
     or the Learn more button ends up above the photo. */
  .feature.reverse .feature-media-col {
    order: 2;
  }
  .feature.reverse .feature-copy {
    order: 1;
  }
}

.feature-media {
  background: var(--soft-bg);
  aspect-ratio: 4 / 3;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.feature-media.contain img {
  object-fit: contain;
  padding: 1.5rem;
}

.feature-copy p {
  color: var(--fg-muted);
  line-height: 1.7;
}

/* Components grid */
.components-video-section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.components-video-wrap {
  width: 100%;
  max-width: 920px;
  margin: 0 auto;
  border-radius: 12px;
  overflow: hidden;
  background: #111;
}

.components-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.components-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .components-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
  }
}

.component-card {
  background: #fff;
  border: 1px solid var(--border);
  overflow: hidden;
  transition: border-color 0.15s;
}

.component-card:hover {
  border-color: var(--border-strong);
}

.component-card-img {
  aspect-ratio: 1;
  background: var(--soft-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.component-card-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.component-card h4 {
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.875rem 1rem 0.35rem;
  text-align: center;
}

.learn-more-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  padding: 0 1rem 1rem;
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--fg-muted);
  transition: color 0.15s;
}

.feature-media-col {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
}

.feature-media-col .feature-media {
  width: 100%;
  order: 0;
}

.feature-media-col .feature-learn-more {
  order: 1;
}

.feature-learn-more {
  width: auto;
  justify-content: flex-start;
  padding: 0.25rem 0 0;
}

.learn-more-btn:hover {
  color: var(--fg);
}

.learn-more-btn svg {
  flex-shrink: 0;
}

/* Specs accordion */
.specs-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin: 2rem 0 1.5rem;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.specs-tabs button {
  padding: 0.5rem 0.875rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  border-radius: var(--radius);
  transition: all 0.15s;
}

.specs-tabs button.active {
  background: var(--fg);
  color: #fff;
}

.specs-tabs button:hover:not(.active) {
  background: var(--soft-bg-2);
  color: var(--fg);
}

.spec-panel {
  display: none;
}

.spec-panel.active {
  display: block;
}

.spec-table {
  width: 100%;
  border-collapse: collapse;
}

.spec-table tr {
  border-bottom: 1px solid var(--border);
}

.spec-table th,
.spec-table td {
  padding: 0.875rem 0.5rem;
  text-align: left;
  vertical-align: top;
  font-size: 0.875rem;
}

.spec-table th {
  width: 35%;
  font-weight: 500;
  color: var(--fg-muted);
  padding-right: 1rem;
}

.spec-table td strong {
  font-weight: 600;
}

.spec-group-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--fg);
  display: inline-block;
}

.spec-group-title:first-child {
  margin-top: 0;
}

.warning-box {
  background: #fff8e6;
  border: 1px solid #f0d78c;
  padding: 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
}

.warning-box strong {
  color: #8b0000;
}

/* Geometry table */
.geo-wrap {
  overflow-x: auto;
  margin-top: 1.5rem;
  border: 1px solid var(--border);
}

.geo-table {
  width: 100%;
  min-width: 520px;
  border-collapse: collapse;
  font-size: 0.8125rem;
}

.geo-table th,
.geo-table td {
  padding: 0.65rem 0.85rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.geo-table th {
  background: var(--soft-bg);
  font-weight: 600;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.geo-table td:first-child,
.geo-table td:nth-child(2) {
  text-align: left;
}

.geo-table td:first-child {
  font-weight: 600;
  color: var(--fg-muted);
  width: 2rem;
}

.geo-table tbody tr:hover {
  background: rgba(0, 0, 0, 0.02);
}

/* What's in the box */
.box-list {
  margin-top: 1.5rem;
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .box-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.box-item {
  background: #fff;
  border: 1px solid var(--border);
  padding: 1.5rem;
}

.box-item h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.box-item p {
  font-size: 0.8125rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Video cards */
.video-grid {
  display: grid;
  gap: 1.25rem;
  margin-top: 2rem;
}

@media (min-width: 700px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.video-card {
  position: relative;
  overflow: hidden;
  background: #111;
  aspect-ratio: 16 / 10;
  cursor: pointer;
  width: 100%;
  padding: 0;
  border: none;
  display: block;
  text-align: left;
  color: inherit;
  font: inherit;
}

.video-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.85;
  transition: opacity 0.2s, transform 0.3s;
}

.video-card:hover img {
  opacity: 1;
  transform: scale(1.03);
}

.video-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.55) 0%, transparent 50%);
  color: #fff;
}

.play-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  transition: transform 0.15s;
}

.video-card:hover .play-btn {
  transform: scale(1.08);
}

.video-card h4 {
  position: absolute;
  bottom: 1rem;
  left: 1rem;
  right: 1rem;
  font-size: 0.9375rem;
  font-weight: 500;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Disclaimer */
.disclaimer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 2rem 1.5rem 3rem;
  font-size: 0.75rem;
  color: var(--fg-muted);
  line-height: 1.6;
}

/* Footer */
.site-footer {
  background: #1a1a1a;
  color: rgba(255, 255, 255, 0.75);
  padding: 3rem 1.5rem 2rem;
}

.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 2rem;
}

@media (min-width: 700px) {
  .footer-inner {
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
  }
}

.footer-brand img {
  height: 14px;
  filter: brightness(0) invert(1);
  margin-bottom: 1rem;
}

.footer-brand p {
  font-size: 0.8125rem;
  line-height: 1.6;
  max-width: 280px;
}

.footer-col h5 {
  color: #fff;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 1rem;
  font-weight: 600;
}

.footer-col a {
  display: block;
  font-size: 0.8125rem;
  padding: 0.3rem 0;
  opacity: 0.7;
  transition: opacity 0.15s;
}

.footer-col a:hover {
  opacity: 1;
}

.footer-bottom {
  max-width: var(--max);
  margin: 2.5rem auto 0;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.75rem;
  opacity: 0.5;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
}

/* Clone badge */
.clone-badge {
  position: fixed;
  bottom: 1rem;
  right: 1rem;
  z-index: 200;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 0.6875rem;
  padding: 0.4rem 0.75rem;
  border-radius: 4px;
  letter-spacing: 0.03em;
}

/* Full-bleed helpers */
.bleed {
  width: 100%;
  background: var(--soft-bg);
}

/* ========== Size Chart ========== */
.size-chart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.75rem;
  font-size: 0.8125rem;
  color: var(--fg-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: color 0.15s;
}

.size-chart-trigger:hover {
  color: var(--fg);
}

.size-chart-trigger svg {
  flex-shrink: 0;
}

.size-chart-modal {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.size-chart-modal[hidden] {
  display: none;
}

.size-chart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.size-chart-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(960px, 100%);
  max-height: min(90vh, 900px);
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  padding: 1.5rem 1.25rem 1.75rem;
}

.size-chart-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  border-radius: 50%;
  transition: background 0.15s;
}

.size-chart-close:hover {
  background: var(--soft-bg);
}

.size-chart-title {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  padding-right: 2rem;
}

.size-chart-row {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

@media (min-width: 800px) {
  .size-chart-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .size-chart-table-wrap {
    flex: 1 1 55%;
    min-width: 0;
  }

  .legend {
    flex: 1 1 45%;
  }
}

.size-chart-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-custom {
  width: 100%;
  min-width: 320px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid #ddd;
  border-collapse: collapse;
}

.table-custom th,
.table-custom td {
  text-align: center;
  padding: 8px;
  font-size: 0.8125rem;
  border-bottom: 1px solid #ddd;
  border-left: 1px solid #ddd;
}

.table-custom th {
  background: #fafafa;
  font-weight: 600;
  vertical-align: middle;
}

.table-custom td:first-child,
.table-custom th:first-child {
  border-left: none;
}

.table-custom tbody tr:last-child td {
  border-bottom: none;
}

.table-custom .color-yellow {
  background-color: #fdc40f;
  color: #000;
  font-weight: bold;
}

.table-custom .color-blue {
  background-color: #4d5693;
  color: #fff;
  font-weight: bold;
}

.table-custom .color-green {
  background-color: #567a69;
  color: #fff;
  font-weight: bold;
}

.table-custom .color-light-green {
  background-color: #81b19a;
  color: #fff;
  font-weight: bold;
}

.table-custom .color-dark-blue {
  background-color: #3d405b;
  color: #fff;
  font-weight: bold;
}

.legend {
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
  border: 1px solid #ddd;
}

.legend-item {
  display: flex;
  align-items: flex-start;
  border: 1px solid #ddd;
  border-left: 56px solid;
  margin-bottom: 5px;
  padding: 8px 10px;
  font-size: 0.875rem;
}

.legend-item.blue {
  border-left-color: #4d5693;
}

.legend-item.dark-blue {
  border-left-color: #3d405b;
}

.legend-item.yellow {
  border-left-color: #fdc40f;
}

.legend-item.green {
  border-left-color: #567a69;
}

.legend-item.light-green {
  border-left-color: #81b19a;
}

.legend-title {
  font-weight: 700;
  margin-bottom: 4px;
  font-size: 0.875rem;
}

.legend-description {
  font-size: 0.75rem;
  color: #555;
  line-height: 1.45;
}

.size-chart-logo {
  display: flex;
  justify-content: center;
  padding-top: 0.85rem;
}

.size-chart-logo img {
  max-width: 150px;
  height: auto;
}

@media (max-width: 799px) {
  .legend-item {
    border-left-width: 12px;
    border-top: 10px solid;
    border-top-color: inherit;
    flex-direction: column;
  }

  .legend-item.blue {
    border-top-color: #4d5693;
  }

  .legend-item.dark-blue {
    border-top-color: #3d405b;
  }

  .legend-item.yellow {
    border-top-color: #fdc40f;
  }

  .legend-item.green {
    border-top-color: #567a69;
  }

  .legend-item.light-green {
    border-top-color: #81b19a;
  }
}

body.size-chart-open,
body.video-modal-open,
body.learn-modal-open {
  overflow: hidden;
}

/* ========== Learn More Modal ========== */
.learn-modal {
  position: fixed;
  inset: 0;
  z-index: 310;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.learn-modal[hidden] {
  display: none;
}

.learn-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.learn-modal-dialog {
  position: relative;
  z-index: 1;
  background: #fff;
  width: min(640px, 100%);
  max-height: min(85vh, 800px);
  overflow: auto;
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.2);
  padding: 1.75rem 1.5rem 1.5rem;
}

.learn-modal-close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg);
  border-radius: 50%;
  transition: background 0.15s;
}

.learn-modal-close:hover {
  background: var(--soft-bg);
}

.learn-modal-body h3 {
  font-size: 1.25rem;
  font-weight: 500;
  margin-bottom: 1rem;
  padding-right: 2rem;
  color: var(--fg);
}

.learn-modal-img {
  margin: 0 0 1.25rem;
  background: var(--soft-bg);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
}

.learn-modal-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 0.75rem;
}

.learn-modal-body h4 {
  font-size: 0.9375rem;
  font-weight: 600;
  margin: 1.25rem 0 0.5rem;
  color: var(--fg);
}

.learn-modal-body p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--fg-muted);
  margin-bottom: 0.85rem;
}

.learn-modal-body ul {
  margin: 0 0 0.85rem 1.1rem;
  list-style: disc;
}

.learn-modal-body li {
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--fg-muted);
  margin-bottom: 0.4rem;
}

.learn-modal-body li strong {
  color: var(--fg);
}

.learn-more-external {
  display: inline-block;
  margin-top: 0.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--fg);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.learn-more-external:hover {
  opacity: 0.75;
}

/* ========== Video Modal ========== */
.video-modal {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.video-modal[hidden] {
  display: none;
}

.video-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
}

.video-modal-dialog {
  position: relative;
  z-index: 1;
  background: #111;
  width: min(960px, 100%);
  border-radius: 8px;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4);
  padding: 1.25rem 1rem 1rem;
  color: #fff;
}

.video-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  border-radius: 50%;
  transition: background 0.15s;
  z-index: 2;
}

.video-modal-close:hover {
  background: rgba(255, 255, 255, 0.15);
}

.video-modal-title {
  font-size: 1rem;
  font-weight: 500;
  margin-bottom: 0.85rem;
  padding-right: 2.5rem;
  color: #fff;
}

.video-modal-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
}

.video-modal-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}
