@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-400.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-500.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-600.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-700.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "IBM Plex Sans";
  src: url("../fonts/ibm-plex-sans-700.ttf") format("truetype");
  font-weight: 800;
  font-style: normal;
  font-display: swap;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--blue) 78%, white);
  outline-offset: 3px;
}

.section {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 74px 0;
}

.section-alt {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-inline: max(16px, calc((100% - 1180px) / 2));
  background: var(--surface);
}

.section-head {
  max-width: 760px;
  margin-bottom: 30px;
}

.section-head-wide {
  max-width: 900px;
}

.section-head h2,
.about-copy h2,
.contact-copy h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(31px, 6vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.section-head p,
.about-copy p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  text-shadow: 0 0 10px color-mix(in srgb, var(--blue) 22%, transparent);
  filter: drop-shadow(0 0 8px color-mix(in srgb, var(--blue) 18%, transparent));
}

.eyebrow {
  text-shadow: 0 0 10px color-mix(in srgb, var(--blue) 26%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--blue) 34%, transparent), 0 0 18px color-mix(in srgb, var(--blue) 16%, transparent);
}

.section-kicker::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
}

.brand {
  transition: color .2s ease, transform .2s ease;
}

@keyframes electric-pulse {
  0% {
    box-shadow: 0 0 8px rgba(59, 169, 232, 0.6), 0 0 20px rgba(124, 171, 79, 0.4);
    filter: brightness(1.1) saturate(1.2);
  }
  50% {
    box-shadow: 0 0 16px rgba(59, 169, 232, 0.9), 0 0 32px rgba(124, 171, 79, 0.7);
    filter: brightness(1.25) saturate(1.4);
  }
  100% {
    box-shadow: 0 0 8px rgba(59, 169, 232, 0.6), 0 0 20px rgba(124, 171, 79, 0.4);
    filter: brightness(1.1) saturate(1.2);
  }
}

.brand-logo {
  transition: transform .2s ease, filter .2s ease, box-shadow .2s ease;
  border-radius: 6px;
}

.brand:hover {
  color: var(--blue);
}

.brand:hover .brand-logo {
  transform: translateY(-2px) scale(1.05);
  animation: electric-pulse 1.4s infinite ease-in-out;
}

.brand:hover .brand-text small {
  color: color-mix(in srgb, var(--blue) 42%, var(--muted));
}

.hero .eyebrow {
  padding-inline: 14px 16px;
  border-color: color-mix(in srgb, var(--blue) 40%, white 10%);
  background: color-mix(in srgb, var(--blue) 10%, transparent);
}

.btn:hover,
.icon-btn:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--blue) 42%, var(--line));
  box-shadow:
    var(--shadow),
    0 10px 26px color-mix(in srgb, var(--blue) 12%, transparent);
}

.btn:active,
.icon-btn:active {
  transform: translateY(0) scale(.98);
  box-shadow: none;
}

.theme-toggle {
  width: 44px;
  padding: 0;
  justify-content: center;
}

.btn,
.icon-btn,
.feature-card,
.product-card,
.stat-card,
.why-panel,
.about-image,
.contact-form,
.contact-list a,
.contact-list span {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, color .2s ease, filter .2s ease;
}

.btn,
.icon-btn {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.stretched-link::after {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  content: "";
}

.btn svg,
.icon-btn svg,
.contact-list svg,
.footer-contact svg {
  transition: transform .2s ease;
}

.btn:hover svg,
.icon-btn:hover svg,
.contact-list a:hover svg,
.footer-contact a:hover svg {
  transform: translateX(1px) scale(1.08);
}

.btn-primary:hover {
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 86%, white), var(--success));
  border-color: color-mix(in srgb, var(--success) 72%, var(--blue));
}

.hero-card {
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.hero-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 38%, var(--line));
  box-shadow:
    0 28px 78px rgba(0, 0, 0, .34),
    0 0 34px color-mix(in srgb, var(--blue) 13%, transparent);
}

.hero-stat {
  transition: transform .2s ease, border-color .2s ease, background .2s ease, box-shadow .2s ease;
}

.hero-stat:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue) 48%, var(--line));
  background: rgba(13, 24, 36, 0.9);
  box-shadow: 0 10px 24px rgba(59, 169, 232, 0.14);
}

.hero-battery,
.about-image img {
  transition: transform .25s ease, filter .25s ease;
}

.feature-grid {
  display: grid;
  gap: 14px;
}

.feature-grid-expanded {
  margin-bottom: 18px;
}

.feature-card {
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.feature-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 36%, var(--line));
  box-shadow:
    var(--shadow),
    0 18px 34px color-mix(in srgb, var(--blue) 10%, transparent);
}

.feature-card:hover .feature-icon {
  transform: translateY(-2px) rotate(-3deg);
  background: color-mix(in srgb, var(--blue) 18%, var(--card));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--blue) 14%, transparent);
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--blue-soft);
  color: var(--blue);
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}

.feature-icon svg {
  width: 22px;
  height: 22px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 21px;
  line-height: 1.18;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
}

.why-panel {
  display: grid;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border: 1px solid color-mix(in srgb, var(--blue) 22%, var(--line));
  border-radius: 12px;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 62%),
    var(--card);
  box-shadow: var(--shadow);
}

.why-panel:hover,
.about-image:hover,
.contact-form:focus-within {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  box-shadow:
    var(--shadow),
    0 18px 36px color-mix(in srgb, var(--blue) 10%, transparent);
}

.why-panel h3 {
  margin: 0 0 6px;
  font-size: clamp(23px, 5vw, 32px);
  line-height: 1.12;
}

.why-panel p {
  margin: 0;
  color: var(--muted);
}

.section-stats {
  position: relative;
  display: grid;
  gap: 26px;
}

.stats-intro {
  max-width: 760px;
}

.stats-intro h2 {
  margin: 8px 0 12px;
  font-family: var(--font-display);
  font-size: clamp(31px, 6vw, 48px);
  line-height: 1.08;
  letter-spacing: 0;
}

.stats-intro p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.stats-grid {
  display: grid;
  gap: 14px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.stat-card:hover {
  border-color: color-mix(in srgb, var(--success) 34%, var(--line));
  box-shadow:
    var(--shadow),
    0 14px 28px color-mix(in srgb, var(--success) 8%, transparent);
}

.stat-card:hover strong {
  color: var(--blue);
  text-shadow: none;
}

.stat-card strong {
  display: block;
  margin-bottom: 6px;
  color: var(--blue);
  font-family: var(--font-display);
  font-size: clamp(34px, 9vw, 52px);
  line-height: 1;
}

.stat-card span {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-weight: 800;
}

.stat-card p {
  margin: 0;
  color: var(--muted);
}

.range-meter {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.range-meter-head,
.range-labels {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.range-meter-head span {
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 12px;
}

.range-meter-head strong {
  color: var(--ink);
}

.range-track {
  display: grid;
  gap: 8px;
  margin: 18px 0 12px;
}

.range-track span {
  display: block;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--success));
}

.range-labels {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  gap: 16px;
}

.product-card {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
  position: relative;
}

.product-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--blue) 34%, var(--line));
  box-shadow:
    var(--shadow),
    0 20px 38px color-mix(in srgb, var(--blue) 10%, transparent);
}

.product-card:hover .product-image svg,
.hero-card:hover .hero-battery,
.about-image:hover img {
  transform: translateY(-3px) scale(1.015);
}

.product-image {
  display: grid;
  place-items: center;
  min-height: 210px;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  padding: 0;
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 58%),
    var(--surface);
}

.product-image svg {
  width: min(100%, 360px);
  filter: drop-shadow(0 18px 26px rgba(16, 17, 20, .12));
  transition: transform .25s ease, filter .25s ease;
}

.product-body {
  display: grid;
  gap: 16px;
  padding: 20px;
}

.product-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.product-top h3 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
}

.price {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--success) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--success) 20%, transparent);
  color: var(--success-dark);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  box-shadow: 0 2px 8px color-mix(in srgb, var(--success) 8%, transparent);
}

.price del {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration-thickness: 1.5px;
  opacity: 0.85;
}

:root[data-theme="dark"] .price {
  color: #71e4ae;
  background: color-mix(in srgb, #71e4ae 12%, transparent);
  border-color: color-mix(in srgb, #71e4ae 20%, transparent);
}

:root[data-theme="dark"] .price del {
  color: color-mix(in srgb, #71e4ae 50%, var(--muted));
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .price {
    color: #71e4ae;
    background: color-mix(in srgb, #71e4ae 12%, transparent);
    border-color: color-mix(in srgb, #71e4ae 20%, transparent);
  }
  :root:not([data-theme="light"]) .price del {
    color: color-mix(in srgb, #71e4ae 50%, var(--muted));
  }
}

.spec-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.spec-list div {
  min-width: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--line) 78%, transparent);
  border-radius: 8px;
  background: color-mix(in srgb, var(--surface) 70%, transparent);
}

.spec-list dt {
  margin-bottom: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.25;
}

.spec-list dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.detail-specs .spec-list {
  gap: 12px;
  grid-auto-flow: row;
  align-items: stretch;
}

.detail-specs .spec-list > div {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 84px;
}

.detail-specs .terminal-assembly-spec {
  grid-column: 1 / -1 !important;
  display: grid;
  grid-template-columns: minmax(0, 160px) minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-height: 0;
}

.detail-specs .spec-list > div[style*="grid-column"] {
  grid-column: 1 / -1 !important;
}

.terminal-assembly-spec {
  display: grid;
  gap: 6px;
  align-items: start;
}

.terminal-assembly-spec dd {
  display: flex;
  align-items: center;
}

.terminal-assembly-image {
  display: block;
  width: 100%;
  max-width: 180px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: var(--bg);
}

.btn-product {
  width: 100%;
  position: relative;
  z-index: 2;
}

.about-grid,
.contact-grid {
  display: grid;
  gap: 30px;
  align-items: center;
}

.about-image {
  display: block;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.about-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  aspect-ratio: 620 / 460;
}

.check-list {
  display: grid;
  gap: 12px;
  padding: 0;
  margin: 24px 0;
  list-style: none;
}

.check-list li {
  display: flex;
  gap: 10px;
  color: var(--muted);
}

.check-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--success);
  margin-top: 2px;
}

.contact-grid {
  align-items: start;
}

.contact-list {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.contact-list a,
.contact-list span {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: var(--card);
  color: var(--ink);
  font-weight: 700;
}

.contact-list a:hover {
  color: var(--blue);
  transform: translateX(3px);
  box-shadow:
    var(--shadow),
    0 12px 24px color-mix(in srgb, var(--blue) 9%, transparent);
}

.contact-list svg {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  color: var(--blue);
}

.contact-form {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.form-row {
  display: grid;
  gap: 16px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field label {
  font-size: 13px;
  font-weight: 800;
  color: var(--ink);
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--bg);
  color: var(--ink);
  padding: 11px 12px;
}

.form-field textarea {
  resize: vertical;
  min-height: 128px;
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 4px var(--blue-soft);
}

.form-submit {
  width: 100%;
}

.form-note {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.site-footer {
  border-top: 1px solid var(--line);
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--blue) 8%, transparent), transparent 58%),
    var(--bg);
}

.footer-inner {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 24px;
  display: grid;
  gap: 24px;
  color: var(--muted);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav a {
  color: var(--muted);
  font-weight: 700;
}

.footer-nav a:hover {
  color: var(--blue);
}

.footer-columns {
  display: grid;
  gap: 22px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.footer-col {
  display: grid;
  align-content: start;
  gap: 9px;
}

.footer-col h2 {
  margin: 0 0 4px;
  color: var(--ink);
  font-size: 14px;
  text-transform: uppercase;
}

.footer-col a,
.footer-col span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.footer-col a:hover {
  color: var(--blue);
}

.footer-contact a,
.footer-contact span {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

.footer-contact svg {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--blue);
}

.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.footer-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.footer-inner p,
.footer-bottom a {
  margin: 0;
  font-size: 14px;
}

.footer-bottom a {
  color: var(--blue);
  font-weight: 800;
}

.back-to-top {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

.reveal.is-visible {
  opacity: 1;
  transform: none;
  transition: opacity .55s ease, transform .55s ease;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 640px) {
  .section {
    padding-block: 88px;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid-expanded {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .why-panel {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 26px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .form-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 920px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .feature-grid-expanded,
  .stats-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .feature-grid-expanded .feature-card:nth-child(1),
  .feature-grid-expanded .feature-card:nth-child(2) {
    grid-column: span 2;
  }

  .feature-grid-expanded .feature-card:nth-child(n + 3) {
    grid-column: span 1;
  }

  .about-grid,
  .contact-grid {
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr);
    gap: 56px;
  }

  .contact-grid {
    grid-template-columns: minmax(0, .82fr) minmax(420px, 1fr);
  }

  .footer-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }

  .footer-columns,
  .footer-bottom {
    grid-column: 1 / -1;
  }

  .footer-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1180px) {
  .product-grid {
    gap: 20px;
  }
}

@media (max-width: 779px) {
  .footer-bottom {
    gap: 14px;
  }

  .footer-actions {
    width: 100%;
    justify-content: space-between;
    gap: 12px;
  }

  .footer-bottom p {
    width: 100%;
  }
}

@media (max-width: 520px) {

  .section,
  .footer-inner {
    width: min(100% - 24px, 1180px);
  }

  .section-alt {
    width: 100%;
    margin-inline: 0;
    padding-inline: 0;
  }

  .section-alt .section-head,
  .section-alt .product-grid,
  .section-alt .contact-grid {
    width: 100%;
    max-width: none;
    margin-inline: 0;
    box-sizing: border-box;
    padding-inline: 12px;
  }

  .nav-cta {
    display: none;
  }

  .product-top {
    display: grid;
  }

  .spec-list {
    grid-template-columns: 1fr;
  }

  .spec-list > div {
    grid-column: auto !important;
  }

  .detail-enquire .btn {
    max-width: none !important;
  }
}
/* ==========================================
   Product Detail Gallery & Homepage Slideshow
   ========================================== */

/* Main image viewport inside product detail */
.main-image-viewport {
  position: relative;
  width: min(100%, 520px);
  min-width: 0;
  aspect-ratio: 5 / 4;
  min-height: 420px;
  overflow: hidden;
  background: var(--bg);
  border-radius: 12px;
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.gallery-container {
  width: min(100%, 520px);
  min-width: 0;
  overflow: hidden;
}

.main-image-viewport img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease-in-out;
}

.main-image-viewport img.fade {
  opacity: 0;
}

/* Gallery Navigation Arrows */
.gallery-arrow, .slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: color-mix(in srgb, var(--card) 90%, transparent);
  border: 1px solid var(--line);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  transition: all 0.2s ease;
  z-index: 10;
  box-shadow: var(--shadow);
}

.gallery-arrow:hover, .slider-arrow:hover {
  background: var(--blue);
  color: #fff;
  border-color: var(--blue);
}

.prev-arrow {
  left: 12px;
}

.next-arrow {
  right: 12px;
}

/* Thumbnail Gallery */
.gallery-thumbnails {
  display: flex;
  gap: 12px;
  margin-top: 16px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 4px;
}

.thumb-btn {
  width: 86px;
  height: 86px;
  flex: 0 0 auto;
  border-radius: 8px;
  border: 2px solid transparent;
  overflow: hidden;
  cursor: pointer;
  padding: 4px;
  background: var(--surface);
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.thumb-btn img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.thumb-btn.active {
  border-color: var(--blue);
  background: var(--bg);
  box-shadow: 0 0 8px color-mix(in srgb, var(--blue) 25%, transparent);
}

/* Homepage Hero Slider/Slideshow styles */
.hero-image-card {
  position: relative;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: linear-gradient(135deg, color-mix(in srgb, var(--blue) 12%, transparent), transparent 58%), var(--card);
}

.hero-image {
  display: block;
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.product-image img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: contain;
  filter: drop-shadow(0 10px 16px rgba(16, 17, 20, 0.12));
  transition: transform 0.25s ease;
}

.product-card:hover .product-image img {
  transform: translateY(-4px) scale(1.03);
}

/* Progress indicator line for product detail gallery */
.gallery-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--blue), var(--success));
  width: 0%;
  z-index: 12;
}

@media (max-width: 520px) {
  .main-image-viewport {
    aspect-ratio: 1 / 1;
    min-height: 320px;
    padding: 10px;
  }

  .gallery-arrow {
    width: 34px;
    height: 34px;
  }

  .thumb-btn {
    width: 66px;
    height: 66px;
  }
}

@media (max-width: 380px) {
  .gallery-arrow {
    width: 30px;
    height: 30px;
  }

  .prev-arrow {
    left: 6px;
  }

  .next-arrow {
    right: 6px;
  }
}


