/* ── QR page — all rules scoped under .qr-page to avoid conflicts with Bootstrap ── */

/* ── Navbar overrides (same classes as main site) ───────────── */
.custom-navbar {
  background-color: rgba(33, 37, 41, 0.95);
  backdrop-filter: blur(5px);
  transition: box-shadow 0.3s ease;
}

.custom-navbar:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.navbar-brand img {
  transition: transform 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.05);
}

.nav-link {
  transition: color 0.3s ease;
  position: relative;
  padding-bottom: 4px;
}

.nav-link:focus {
  outline: none;
  box-shadow: none;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #0d6efd;
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* ── Page layout ────────────────────────────────────────────── */
.qr-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  background: #f8f9fa;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.qr-page #hero-page,
.qr-page #lookup-page {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.qr-page #lookup-page {
  padding-top: 66px; /* fixed navbar height */
}

.qr-page .qr-content {
  flex: 1;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  padding: 0 1rem;
}

.qr-page .page-header {
  padding: 2rem 0 1rem;
  border-bottom: 2px solid #0d6efd;
  margin-bottom: 2rem;
}

.qr-page .page-header h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0d6efd;
  letter-spacing: -.02em;
}

/* ── Footer ─────────────────────────────────────────────────── */
.qr-page .site-footer {
  background-color: #343a40;
  color: #f8f9fa;
  padding: 2rem 0;
  margin-top: 3rem;
}

.qr-page .site-footer h6 {
  font-family: 'Poppins', sans-serif;
}

.qr-page .footer-link {
  color: #f8f9fa;
  text-decoration: none;
}

.qr-page .footer-link:hover {
  color: #0d6efd;
}

.qr-page .footer-icon {
  color: #f8f9fa;
}

.qr-page .footer-icon:hover {
  color: #0d6efd;
}

/* ── Status boxes ───────────────────────────────────────────── */
.qr-page .status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .75rem;
  padding: 2.5rem 1rem;
  text-align: center;
  color: #6c757d;
}

.qr-page .status-box.error {
  background: #fff5f5;
  border: 1px solid #fc8181;
  border-radius: 10px;
  color: #c53030;
  font-weight: 500;
}

.qr-page .hidden { display: none !important; }

/* ── Spinner ────────────────────────────────────────────────── */
.qr-page .qr-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #dee2e6;
  border-top-color: #0d6efd;
  border-radius: 50%;
  animation: qr-spin .8s linear infinite;
}

@keyframes qr-spin { to { transform: rotate(360deg); } }

/* ── Product card ───────────────────────────────────────────── */
.qr-page .product-card {
  background: #fff;
  border: 1px solid #dee2e6;
  border-radius: 10px;
  box-shadow: 0 4px 24px rgba(0,0,0,.08);
  overflow: hidden;
}

.qr-page .product-card .product-card-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: #0d6efd;
  color: #fff;
}

.qr-page .product-card .product-card-header h2 {
  font-family: 'Poppins', sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: .04em;
  margin: 0;
}

.qr-page .product-card .product-badge {
  display: inline-block;
  padding: .25rem .75rem;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.4);
  border-radius: 20px;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .06em;
  white-space: nowrap;
}

/* ── Sections inside card ───────────────────────────────────── */
.qr-page .card-section {
  padding: 1.25rem 1.5rem;
  border-top: 1px solid #dee2e6;
}

.qr-page .card-section:first-of-type { border-top: none; }

.qr-page .card-section h3 {
  font-size: .75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #6c757d;
  margin-bottom: .85rem;
}

/* ── Spec table ─────────────────────────────────────────────── */
.qr-page .spec-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .93rem;
}

.qr-page .spec-table tr:nth-child(even) { background: #f8f9fa; }

.qr-page .spec-table th,
.qr-page .spec-table td {
  padding: .55rem .75rem;
  text-align: left;
}

.qr-page .spec-table th {
  width: 40%;
  color: #6c757d;
  font-weight: 500;
}

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

/* ── Supplier DL ────────────────────────────────────────────── */
.qr-page .supplier-info { font-size: .93rem; }

.qr-page .dl-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: .5rem;
  padding: .45rem 0;
  border-bottom: 1px solid #dee2e6;
}

.qr-page .dl-row:last-child { border-bottom: none; }

.qr-page .supplier-info dt {
  color: #6c757d;
  font-weight: 500;
}

.qr-page .supplier-info dd {
  font-weight: 600;
  word-break: break-all;
}

.qr-page .supplier-info a {
  color: #0d6efd;
  text-decoration: none;
}

.qr-page .supplier-info a:hover { text-decoration: underline; }

/* ── Download button ────────────────────────────────────────── */
.qr-page .download-btn {
  display: inline-block;
  padding: .5rem 1.25rem;
  background: #0d6efd;
  color: #fff;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: .9rem;
  transition: all 0.3s ease;
}

.qr-page .download-btn:hover {
  background: #0b5ed7;
  transform: translateY(-2px);
  box-shadow: 0 8px 15px rgba(13, 110, 253, 0.4);
}

/* ── Safety / recycling ─────────────────────────────────────── */
.qr-page .safety-img {
  max-width: 100%;
  width: 460px;
  height: auto;
  margin-bottom: 1rem;
  display: block;
}

.qr-page .safety-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: .88rem;
  line-height: 1.6;
}

.qr-page .safety-list li {
  margin-bottom: .5rem;
}

.qr-page .recycling-img {
  max-width: 100%;
  width: 220px;
  height: auto;
  margin-top: 1rem;
  display: block;
}

/* ── Accessibility ──────────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .qr-page * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── Responsive ─────────────────────────────────────────────── */
@media (max-width: 480px) {
  .qr-page .product-card-header { flex-direction: column; align-items: flex-start; gap: .5rem; }
  .qr-page .dl-row { grid-template-columns: 90px 1fr; }
}

/* ══════════════════════════════════════════════════════════════
   Hero landing page
   ══════════════════════════════════════════════════════════════ */
.hero-page {
  --hero-ink: #15171c;
  --hero-ink-soft: #565c68;
  --hero-paper: #fbfaf8;
  --hero-line: #e7e5e0;
  --hero-card: #ffffff;
  --hero-accent1: #f0b429;
  --hero-accent1: oklch(0.8 0.19 95);
  --hero-accent2: #5546d1;
  --hero-accent2: oklch(0.55 0.19 275);

  position: relative;
  overflow: hidden;
  background: var(--hero-paper);
  color: var(--hero-ink);
  font-family: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.hero-page::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(640px 520px at 88% -6%, color-mix(in oklch, var(--hero-accent1) 30%, transparent) 0%, transparent 70%),
    radial-gradient(680px 560px at -8% 42%, color-mix(in oklch, var(--hero-accent2) 26%, transparent) 0%, transparent 72%),
    radial-gradient(520px 440px at 62% 88%, color-mix(in oklch, var(--hero-accent1) 16%, transparent) 0%, transparent 70%);
}

.hero-page::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.55;
  background-image: radial-gradient(color-mix(in oklch, var(--hero-ink) 22%, transparent) 1.3px, transparent 1.3px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(900px 640px at 68% 8%, #000 0%, transparent 68%);
  mask-image: radial-gradient(900px 640px at 68% 8%, #000 0%, transparent 68%);
}

.hero-page h1 { margin: 0; font-family: 'Space Grotesk', 'Manrope', sans-serif; }

.hero-wrap {
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  padding: 0 32px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.hero-accent1-text { color: var(--hero-accent1); }
.hero-accent2-text { color: var(--hero-accent2); }

/* ── Nav ─────────────────────────────────────────────────────── */
.hero-nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 32px;
}

.hero-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.01em;
  color: var(--hero-ink);
  text-decoration: none;
}

.hero-nav-links {
  display: flex;
  align-items: center;
  gap: 36px;
}

.hero-nav-links a {
  font-size: 14.5px;
  font-weight: 600;
  color: var(--hero-ink-soft);
  text-decoration: none;
}

.hero-nav-links a:hover { color: var(--hero-ink); }

.hero-cta-btn {
  background: var(--hero-ink);
  color: #fff;
  padding: 11px 22px;
  border-radius: 100px;
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.hero-cta-btn:hover {
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 8px 18px -8px rgba(21, 23, 28, 0.45);
}

/* ── Hero content ────────────────────────────────────────────── */
.hero-main {
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  padding: 28px 32px 60px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 26px;
  max-width: 560px;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  background: var(--hero-card);
  border: 1px solid var(--hero-line);
  border-radius: 100px;
  padding: 7px 14px 7px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--hero-ink-soft);
}

.hero-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--hero-accent1);
  flex-shrink: 0;
}

.hero-title {
  font-size: 56px;
  line-height: 1.03;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-sub {
  font-size: 17px;
  line-height: 1.6;
  color: var(--hero-ink-soft);
  margin: 0;
}

/* ── Search ──────────────────────────────────────────────────── */
.hero-search {
  display: flex;
  gap: 10px;
  background: var(--hero-card);
  border: 1px solid var(--hero-line);
  border-radius: 16px;
  padding: 8px;
  box-shadow: 0 12px 30px -18px rgba(21, 23, 28, 0.25);
}

.hero-search-field {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  padding: 8px 12px;
}

.hero-search-field input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 15px;
  font-family: inherit;
  color: var(--hero-ink);
  min-width: 0;
}

.hero-search-field input::placeholder { color: #9a9fa8; }

.hero-search-btn {
  background: var(--hero-accent2);
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 0 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  white-space: nowrap;
  min-height: 44px;
  transition: filter 0.15s ease;
}

.hero-search-btn:hover { filter: brightness(0.92); }
.hero-search-btn:disabled { opacity: 0.6; cursor: wait; }

.hero-search-feedback {
  font-size: 14px;
  line-height: 1.5;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff5f5;
  border: 1px solid #fc8181;
  color: #c53030;
  font-weight: 500;
  margin-top: -10px;
}

.hero-search-feedback.hero-search-feedback-multi {
  background: var(--hero-card);
  border-color: var(--hero-line);
  color: var(--hero-ink);
}

.hero-search-feedback ul {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.hero-search-feedback a {
  color: var(--hero-accent2);
  font-weight: 700;
  text-decoration: none;
}

.hero-search-feedback a:hover { text-decoration: underline; }

/* ── Trust strip ─────────────────────────────────────────────── */
.hero-trust {
  display: flex;
  align-items: center;
  gap: 22px;
  padding-top: 6px;
  flex-wrap: wrap;
}

.hero-trust-label {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a9fa8;
}

.hero-trust-logos {
  display: flex;
  gap: 18px;
}

.hero-trust-logos span {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: #b7bac2;
}

/* ── Visual ──────────────────────────────────────────────────── */
.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
}

.hero-battery {
  position: relative;
  width: 280px;
}

.hero-battery-svg { width: 280px; height: 380px; display: block; }

.hero-badges { display: contents; }

.hero-badge {
  position: absolute;
  background: var(--hero-card);
  border: 1px solid var(--hero-line);
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 14px 28px -16px rgba(21, 23, 28, 0.3);
}

.hero-badge-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: #9a9fa8;
}

.hero-badge-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 22px;
  font-weight: 700;
  color: var(--hero-ink);
}

.hero-badge-voltage { top: -6px; right: -96px; }
.hero-badge-cca { top: 150px; left: -108px; }
.hero-badge-capacity { bottom: 8px; right: -88px; }

/* ── Hero responsive ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero-nav-links { display: none; }

  .hero-main {
    grid-template-columns: 1fr;
    padding: 12px 20px 40px;
    gap: 22px;
  }

  .hero-nav-inner { padding: 20px; }

  .hero-title { font-size: 34px; line-height: 1.08; }

  .hero-sub { font-size: 15.5px; }

  .hero-search { flex-direction: column; }

  .hero-search-btn { padding: 14px 24px; }

  .hero-visual { order: 2; min-height: 0; padding-top: 8px; }

  .hero-battery { width: 190px; }

  .hero-battery-svg { width: 190px; height: 258px; }

  .hero-badges {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: 16px;
  }

  .hero-badge {
    position: static;
    text-align: center;
    padding: 12px 10px;
  }
}

@media (max-width: 480px) {
  .hero-wrap { padding: 0 20px; }
  .hero-title { font-size: 28px; }
}
