:root {
  --bg: #030406;
  --panel: #0a0d12;
  --card: #10141d;
  --text: #eaf0fb;
  --muted: #a8b3c8;
  --blue: #00d4ff;
  --purple: #7a00ff;
  --border: #1f2838;
}

* {
  box-sizing: border-box;
}

html {
  background: #01030a;
}

body {
  margin: 0;
  min-height: 100%;
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 214, 197, 0.06), transparent 32%),
    radial-gradient(circle at 80% 25%, rgba(18, 119, 255, 0.08), transparent 38%),
    linear-gradient(165deg, #020614 0%, #041125 45%, #01030a 100%);
  color: var(--text);
  font-family: "Montserrat", sans-serif;
}

.container {
  width: min(1120px, 92vw);
  margin: 0 auto;
}

.section {
  padding: 4.5rem 0;
}

h1,
h2,
h3,
.logo,
.kicker {
  font-family: "Orbitron", sans-serif;
}

.hero {
  min-height: 92vh;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 214, 197, 0.08), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(18, 119, 255, 0.1), transparent 35%),
    linear-gradient(160deg, #020614, #041125 55%, #01030a);
}

.hero-scene,
.scene-grid,
.scene-orb,
.scene-ring,
.scene-particles,
.dna-strand,
.dna-glow,
.scene-vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.hero-scene {
  z-index: 0;
  isolation: isolate;
}

.scene-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(53, 214, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(53, 214, 255, 0.06) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(circle at center, black 35%, transparent 80%);
  opacity: 0.14;
  animation: drift-grid 24s linear infinite;
}

.scene-orb {
  background: radial-gradient(
    circle at center,
    rgba(53, 214, 255, 0.16) 0%,
    rgba(18, 214, 197, 0.08) 20%,
    rgba(18, 119, 255, 0.06) 35%,
    transparent 62%
  );
  filter: blur(10px);
  transform: scale(1.15);
  animation: pulse-orb 12s ease-in-out infinite;
  mix-blend-mode: screen;
}

.scene-ring {
  inset: auto;
  border-radius: 50%;
  border: 1px solid rgba(53, 214, 255, 0.2);
  box-shadow: 0 0 24px rgba(53, 214, 255, 0.09);
  position: absolute;
  pointer-events: none;
  will-change: transform;
}

.ring-a {
  width: 40vmin;
  height: 40vmin;
  left: 10%;
  top: 18%;
  animation: rotate-ring 40s linear infinite;
}

.ring-b {
  width: 56vmin;
  height: 56vmin;
  right: 12%;
  top: 12%;
  border-color: rgba(73, 146, 255, 0.22);
  animation: rotate-ring 52s linear infinite reverse;
}

.ring-c {
  width: 48vmin;
  height: 48vmin;
  left: 16%;
  bottom: 10%;
  border-color: rgba(125, 211, 252, 0.18);
  animation: rotate-ring 46s linear infinite;
}

.ring-dot {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -50%);
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7de3ff;
  box-shadow: 0 0 18px rgba(103, 232, 249, 0.8);
}

.ring-b .ring-dot {
  background: #93c5fd;
  box-shadow: 0 0 18px rgba(147, 197, 253, 0.8);
}

.ring-c .ring-dot {
  width: 9px;
  height: 9px;
  background: #bae6fd;
  box-shadow: 0 0 14px rgba(186, 230, 253, 0.85);
}

.dna-strand {
  width: 1px;
  top: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent, rgba(34, 211, 238, 0.52), transparent);
  opacity: 0.32;
}

.dna-left {
  left: 8%;
}

.dna-right {
  left: auto;
  right: 10%;
  background: linear-gradient(to bottom, transparent, rgba(59, 130, 246, 0.52), transparent);
}

.dna-glow {
  width: 64px;
  top: 0;
  bottom: 0;
}

.dna-left-glow {
  left: calc(8% - 32px);
  background: radial-gradient(circle, rgba(34, 211, 238, 0.2) 0%, transparent 65%);
  animation: pulse-orb 8s ease-in-out infinite;
}

.dna-right-glow {
  left: auto;
  right: calc(10% - 32px);
  background: radial-gradient(circle, rgba(59, 130, 246, 0.2) 0%, transparent 65%);
  animation: pulse-orb 9s ease-in-out infinite;
}

.scene-particles {
  position: absolute;
  inset: 0;
  z-index: 0;
}

.scene-particle {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.4);
  will-change: transform, opacity;
}

.float-0 {
  animation-name: float0;
}

.float-1 {
  animation-name: float1;
}

.float-2 {
  animation-name: float2;
}

.float-3 {
  animation-name: float3;
}

.scene-vignette {
  z-index: 1;
  background:
    linear-gradient(to bottom, rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0.6)),
    radial-gradient(circle at center, transparent 46%, rgba(2, 6, 20, 0.32) 72%, rgba(0, 0, 0, 0.75) 100%);
}

@keyframes drift-grid {
  from {
    transform: translate3d(0, 0, 0);
  }
  to {
    transform: translate3d(0, 24px, 0);
  }
}

@keyframes pulse-orb {
  0%,
  100% {
    transform: scale(1.1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.18);
    opacity: 0.82;
  }
}

@keyframes rotate-ring {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes float0 {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.35;
  }
  50% {
    transform: translateY(-22px) translateX(10px);
    opacity: 0.9;
  }
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.35;
  }
}

@keyframes float1 {
  0% {
    transform: translateY(0) translateX(0);
    opacity: 0.25;
  }
  50% {
    transform: translateY(18px) translateX(-12px);
    opacity: 0.75;
  }
  100% {
    transform: translateY(0) translateX(0);
    opacity: 0.25;
  }
}

@keyframes float2 {
  0% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
  50% {
    transform: translateY(-16px) scale(1.25);
    opacity: 0.8;
  }
  100% {
    transform: translateY(0) scale(1);
    opacity: 0.3;
  }
}

@keyframes float3 {
  0% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.22;
  }
  50% {
    transform: translateY(24px) translateX(8px) scale(0.9);
    opacity: 0.65;
  }
  100% {
    transform: translateY(0) translateX(0) scale(1);
    opacity: 0.22;
  }
}

@media (max-width: 680px) {
  .ring-a {
    width: 32vmin;
    height: 32vmin;
  }

  .ring-b {
    width: 44vmin;
    height: 44vmin;
  }

  .ring-c {
    width: 38vmin;
    height: 38vmin;
  }
}

.nav {
  position: relative;
  z-index: 2;
  padding-top: 1.2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.nav-spread {
  width: 100%;
  max-width: none;
  margin: 0;
  padding-left: clamp(0.65rem, 2vw, 2.25rem);
  padding-right: clamp(0.65rem, 2vw, 2.25rem);
  box-sizing: border-box;
  justify-content: space-between;
  align-items: center;
  gap: 0.2rem 0.15rem;
  flex-wrap: nowrap;
}

.nav-spread .nav-link-item {
  font-family: "Montserrat", sans-serif;
  color: #d5deea;
  text-decoration: none;
  font-size: clamp(0.62rem, 1.05vw, 0.88rem);
  font-weight: 600;
  padding: 0.2rem 0.08rem;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

.nav-spread .nav-link-item:hover {
  color: var(--blue);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  text-decoration: none;
  color: inherit;
  flex-shrink: 0;
}

.nav-brand .logo {
  color: #eaf0fb;
  font-size: clamp(0.72rem, 1.35vw, 1.2rem);
  letter-spacing: 0.06em;
}

.top-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 0.8rem;
  font-size: 0.92rem;
  font-weight: 600;
}

.top-links a {
  color: #d5deea;
  text-decoration: none;
  padding: 0.25rem 0.1rem;
}

.top-links a:hover {
  color: var(--blue);
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.logo-image {
  width: 124px;
  height: 124px;
  border-radius: 0;
  object-fit: contain;
  mix-blend-mode: screen;
}

.nav-spread .logo-image {
  width: clamp(48px, 6.5vw, 92px);
  height: clamp(48px, 6.5vw, 92px);
  mix-blend-mode: normal;
}

.nav-spread .cart-link {
  flex-shrink: 0;
  font-size: clamp(0.62rem, 1.05vw, 0.88rem);
  padding: 0.38rem 0.55rem;
}

.logo-image-right {
  width: 64px;
  height: 64px;
  border-radius: 999px;
  box-shadow: 0 0 22px rgba(0, 212, 255, 0.28);
}

.logo {
  font-size: 1.35rem;
  letter-spacing: 0.05em;
}

.cart-link {
  border: 1px solid #2f4664;
  font-family: inherit;
  font-size: 0.95rem;
  text-decoration: none;
  color: #dff3ff;
  padding: 0.5rem 0.75rem;
  border-radius: 999px;
  font-weight: 700;
  background: rgba(11, 18, 35, 0.8);
  cursor: pointer;
}

.cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--blue), var(--purple));
  color: #000;
  font-size: 0.75rem;
  margin-left: 0.35rem;
}

.hero-content {
  position: relative;
  z-index: 2;
  padding-top: 8rem;
  max-width: 760px;
}

.kicker {
  letter-spacing: 0.08em;
  color: var(--blue);
  text-transform: uppercase;
}

h1 {
  font-size: clamp(2rem, 6vw, 5rem);
  margin: 0.4rem 0 1rem;
}

.hero-lead {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.hero-sub,
.story p,
.section-head p,
.cta p,
.qv-note {
  color: var(--muted);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  margin-top: 1.5rem;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.72rem 1.2rem;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.24s ease;
}

.btn-primary {
  background: linear-gradient(90deg, var(--blue), var(--purple));
}

.btn-secondary {
  background: #141414;
  border-color: #2a2a2a;
  color: #fff;
}

.btn-outline {
  background: transparent;
  border-color: #314766;
  color: #fff;
}

.btn:hover {
  transform: translateY(-2px);
}

.section-head {
  margin-bottom: 1.2rem;
}

#catalog {
  background: #ffffff;
  color: #101828;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  border-radius: 0;
  padding: 2rem clamp(1rem, 3vw, 2.5rem);
  margin-top: -2.5rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

#catalog .section-head p {
  color: #475467;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.product-card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1rem;
  overflow: hidden;
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}

.product-card:hover {
  transform: scale(1.05);
  border-color: rgba(0, 212, 255, 0.5);
  box-shadow: 0 0 24px rgba(122, 0, 255, 0.2);
}

.product-media {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #d8deea;
  object-fit: cover;
  transition: transform 0.24s ease;
}

.product-media-wrap {
  position: relative;
}

.vial-brand-overlay {
  position: absolute;
  width: 42%;
  max-width: 9.5rem;
  left: 50%;
  transform: translateX(-50%);
  bottom: 9%;
  background: rgba(245, 248, 255, 0.96);
  border: 1px solid #cfd8ea;
  border-radius: 6px;
  padding: 0.2rem 0.28rem;
  color: #0b1220;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.vial-brand-overlay span {
  display: block;
  font-size: 0.55rem;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vial-brand-overlay--cart span {
  font-size: 0.45rem;
}

.product-card:hover .product-media {
  transform: scale(1.06);
}

.product-meta {
  margin-top: 0.9rem;
}

.product-meta h3 {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: #ffffff;
}

.product-cat {
  color: #dbeafe;
  font-size: 0.85rem;
}

.product-price {
  color: #ffffff;
  font-weight: 700;
  margin-top: 0.45rem;
}

.product-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.86), rgba(0, 0, 0, 0.2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.product-card:hover .product-overlay {
  opacity: 1;
}

.savings-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.save-card {
  background: #0f0f0f;
  border: 1px solid #1f2d42;
  border-radius: 16px;
  padding: 1rem;
}

.save-card strong {
  color: var(--blue);
}

.trust {
  background: var(--panel);
}

.trust-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.trust-grid > div {
  background: #0f0f0f;
  border: 1px solid #1e1e1e;
  border-radius: 12px;
  padding: 1rem;
  text-align: center;
}

.cta {
  text-align: center;
}

.footer {
  border-top: 1px solid #1a1a1a;
  padding: 1.5rem 0;
  color: #99a2b3;
  font-size: 0.92rem;
  background: #050505;
}

.gate-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.72);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gate-card {
  width: min(680px, 95vw);
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 16px;
  padding: 1.5rem;
}

.gate-kicker {
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--blue);
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.gate-card ul {
  color: var(--muted);
}

.gate-actions {
  display: flex;
  gap: 0.7rem;
  flex-wrap: wrap;
}

.quick-view {
  width: min(560px, 95vw);
  border-radius: 14px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #101828;
  padding: 1.2rem;
}

.quick-view h3 {
  color: #0a0a0a;
  margin-top: 0;
  margin-bottom: 0.35rem;
}

.quick-view > p:not(.qv-note):not(.qv-price) {
  color: #374151;
  margin: 0 0 0.75rem;
}

.quick-view label {
  display: block;
  color: #111827;
  font-weight: 600;
  font-size: 0.95rem;
}

.quick-view .qv-price {
  color: #0a0a0a;
  font-weight: 700;
  margin: 0.5rem 0 0;
}

.quick-view .qv-note {
  color: #4b5563;
}

.quick-view::backdrop {
  background: rgba(15, 23, 42, 0.5);
}

.quick-view select {
  width: 100%;
  margin: 0.6rem 0 0.9rem;
  padding: 0.65rem;
  border-radius: 10px;
  background: #ffffff;
  color: #101828;
  border: 1px solid #98a2b3;
}

.quick-view select option {
  color: #101828;
  background: #ffffff;
}

.qv-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin: 1rem 0 0.5rem;
}

.close-btn {
  border: 1px solid #98a2b3;
  border-radius: 999px;
  width: 34px;
  height: 34px;
  color: #101828;
  background: #ffffff;
  float: right;
  cursor: pointer;
}

.cart-page {
  position: relative;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 20%, rgba(18, 214, 197, 0.08), transparent 30%),
    radial-gradient(circle at 80% 30%, rgba(18, 119, 255, 0.1), transparent 35%),
    linear-gradient(160deg, #020614, #041125 55%, #01030a);
  color: var(--text);
}

.cart-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.cart-bg .hero-scene {
  position: absolute;
  inset: 0;
}

.cart-nav,
.cart-main {
  position: relative;
  z-index: 1;
}

.cart-main {
  padding: 2.5rem 0 4rem;
}

.cart-main h1 {
  color: #eaf0fb;
  text-shadow: 0 1px 24px rgba(0, 0, 0, 0.45);
}

.cart-panel h2 {
  color: #111827;
}

.cart-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1rem;
}

.cart-panel {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

.cart-panel h2:first-of-type {
  margin-top: 0;
}

.cart-checkout-lead {
  color: #4b5563;
}

.checkout-items-preview {
  display: grid;
  gap: 0.65rem;
  margin: 0.75rem 0 1rem;
  padding: 0.65rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.checkout-preview-row {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 0.65rem;
  align-items: center;
}

.checkout-preview-media .cart-item-thumb-wrap {
  max-width: 88px;
}

.checkout-preview-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-size: 0.9rem;
  color: #111827;
}

.checkout-preview-meta {
  font-size: 0.82rem;
  color: #6b7280;
}

.cart-item {
  display: grid;
  grid-template-columns: 104px 1fr auto;
  gap: 0.75rem;
  align-items: center;
  border-bottom: 1px solid #e4e7ec;
  padding: 0.7rem 0;
}

.cart-item-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  justify-content: flex-end;
}

.cart-item-media {
  min-width: 0;
}

.cart-item-thumb-wrap {
  position: relative;
  width: 100%;
  max-width: 104px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #d8deea;
  background: #fff;
}

.cart-item-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.cart-item-details {
  min-width: 0;
  color: #111827;
}

.cart-item-details small {
  color: #6b7280;
}

.cart-item-price {
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.cart-item input {
  width: 70px;
  background: #ffffff;
  color: #101828;
  border: 1px solid #98a2b3;
  border-radius: 8px;
  padding: 0.4rem;
}

.checkout-form {
  display: grid;
  gap: 0.65rem;
}

.checkout-form input,
.checkout-form textarea {
  width: 100%;
  border: 1px solid #98a2b3;
  border-radius: 10px;
  background: #ffffff;
  color: #101828;
  padding: 0.65rem;
}

.checkout-form h3 {
  margin: 0.7rem 0 0.2rem;
  font-size: 1rem;
  color: #111827;
}

.checkout-copy {
  color: #4b5563;
  margin: 0.1rem 0 0.45rem;
  font-size: 0.92rem;
}

.checkout-grid-2,
.checkout-grid-3 {
  display: grid;
  gap: 0.6rem;
}

.checkout-grid-2 {
  grid-template-columns: 1fr 1fr;
}

.checkout-grid-3 {
  grid-template-columns: 1.2fr 1fr 1fr;
}

.checkbox-row,
.radio-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.92rem;
  color: #111827;
}

.checkbox-row input,
.radio-row input {
  width: 16px;
  height: 16px;
}

.trust-copy {
  margin-top: 1rem;
  border-top: 1px solid #e5e7eb;
  padding-top: 0.8rem;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(520px, 94vw);
  background: #0b0b10;
  border-left: 1px solid #21283a;
  z-index: 1200;
  padding: 1rem;
  transform: translateX(102%);
  transition: transform 0.25s ease;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.7rem;
}

.drawer-items {
  overflow: auto;
  padding-right: 0.3rem;
}

.drawer-item {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 0.55rem;
  align-items: center;
  border-bottom: 1px solid #1a1f2e;
  padding: 0.75rem 0;
}

.drawer-footer {
  border-top: 1px solid #1a1f2e;
  padding-top: 0.8rem;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 1100;
}

@media (max-width: 680px) {
  .hero-content {
    padding-top: 6rem;
  }

  .nav-spread {
    flex-wrap: wrap;
    justify-content: space-between;
    row-gap: 0.5rem;
  }

  .nav-spread .nav-link-item {
    font-size: 0.68rem;
    white-space: normal;
    text-align: center;
    flex: 1 1 30%;
    min-width: 0;
  }

  .nav-spread .nav-brand {
    flex: 1 1 100%;
    justify-content: center;
    margin-bottom: 0.15rem;
  }

  .nav-spread .cart-link {
    flex: 1 1 auto;
    margin-left: auto;
  }

  .top-links {
    display: none;
  }

  .cart-layout {
    grid-template-columns: 1fr;
  }

  .cart-item {
    grid-template-columns: 88px 1fr;
    grid-template-rows: auto auto;
  }

  .cart-item-media {
    grid-row: 1 / span 2;
  }

  .cart-item-details {
    grid-column: 2;
  }

  .cart-item-actions {
    grid-column: 2;
    justify-content: flex-start;
  }

  .checkout-preview-row {
    grid-template-columns: 72px 1fr;
  }

  .checkout-grid-2,
  .checkout-grid-3 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1320px) {
  .product-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1080px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* —— Secure payment checkout (checkout.html) —— */
.payment-checkout-page {
  margin: 0;
  min-height: 100vh;
  background: #f4f6f9;
  color: #111827;
  font-family: "Montserrat", sans-serif;
}

.payment-checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem clamp(1rem, 3vw, 1.75rem);
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
}

.payment-back-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.payment-back-link:hover {
  text-decoration: underline;
}

.payment-checkout-logo {
  object-fit: contain;
  border-radius: 8px;
}

.payment-checkout-main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 1.25rem clamp(1rem, 3vw, 1.75rem) 3rem;
}

.payment-trust-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
  padding: 0.65rem 1rem;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  border-radius: 10px;
  font-size: 0.88rem;
  color: #065f46;
  margin-bottom: 1.25rem;
}

.payment-trust-badge {
  font-size: 1.1rem;
}

.payment-trust-divider {
  color: #6ee7b7;
}

.payment-checkout-grid {
  display: grid;
  grid-template-columns: 1fr min(380px, 100%);
  gap: 1.5rem;
  align-items: start;
}

.payment-checkout-forms {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.payment-card {
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.payment-card h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f172a;
}

.payment-card label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  color: #374151;
  margin: 0.5rem 0 0.25rem;
}

.payment-card label:first-of-type,
.payment-card h2 + label {
  margin-top: 0;
}

.payment-card input[type="text"],
.payment-card input[type="email"],
.payment-card input[type="tel"] {
  width: 100%;
  box-sizing: border-box;
  padding: 0.6rem 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.95rem;
  color: #111827;
  background: #fff;
}

.payment-card input:focus {
  outline: 2px solid #38bdf8;
  outline-offset: 1px;
  border-color: #0ea5e9;
}

.optional {
  font-weight: 400;
  color: #6b7280;
}

.payment-grid-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 0.65rem;
}

.payment-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 500;
  margin-bottom: 0.75rem;
  cursor: pointer;
}

.payment-toggle-row input {
  width: 18px;
  height: 18px;
}

.payment-shipping-fields[hidden] {
  display: none !important;
}

.payment-icons-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #1e40af;
  margin: 0 0 0.75rem;
}

.payment-icons-row span {
  padding: 0.25rem 0.45rem;
  background: #eff6ff;
  border-radius: 6px;
  border: 1px solid #bfdbfe;
}

.payment-method-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.payment-method-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  cursor: pointer;
  font-size: 0.9rem;
  margin: 0;
}

.payment-method-option.is-selected {
  border-color: #0ea5e9;
  background: #f0f9ff;
}

.payment-method-option input {
  width: 18px;
  height: 18px;
}

.payment-method-alt {
  opacity: 0.95;
}

.payment-demo-note {
  font-size: 0.78rem;
  color: #6b7280;
  margin: 0.75rem 0 0;
  line-height: 1.45;
}

.payment-trust-links a {
  color: #2563eb;
}

.payment-trust-links p {
  margin: 0 0 0.65rem;
  font-size: 0.88rem;
}

.btn-pay-now {
  width: 100%;
  margin-top: 0.25rem;
  padding: 1rem 1.25rem;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  color: #fff;
  background: linear-gradient(135deg, #0ea5e9, #2563eb);
  border: none;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-pay-now:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.42);
}

.payment-summary-card {
  position: sticky;
  top: 1rem;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 1.15rem 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.payment-summary-card h2 {
  margin: 0 0 1rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.order-summary-lines {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: 320px;
  overflow-y: auto;
}

.order-summary-line {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 0.5rem;
  align-items: center;
  font-size: 0.88rem;
}

.order-summary-thumb {
  width: 48px;
  height: 36px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5e7eb;
}

.order-summary-line-text {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.order-summary-line-text span {
  font-size: 0.78rem;
  color: #6b7280;
}

.order-summary-line-price {
  font-weight: 700;
  color: #111827;
}

.order-summary-totals {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid #e5e7eb;
}

.order-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0.35rem 0;
  font-size: 0.9rem;
}

.order-summary-row dt {
  margin: 0;
  color: #6b7280;
  font-weight: 500;
}

.order-summary-row dd {
  margin: 0;
  font-weight: 600;
  color: #111827;
}

.order-summary-total {
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 2px solid #e5e7eb;
  font-size: 1.35rem;
}

.order-summary-total dt,
.order-summary-total dd {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
}

.order-summary-tax-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0.75rem 0 0;
  line-height: 1.4;
}

.order-confirm-body {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem;
}

.order-confirm-main {
  width: min(520px, 100%);
}

.order-confirm-card {
  text-align: center;
}

.order-confirm-icon {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.order-confirm-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  color: #0f172a;
}

.order-confirm-lead {
  font-size: 1.05rem;
  color: #374151;
  margin: 0 0 1rem;
}

.order-confirm-meta {
  font-size: 0.88rem;
  color: #6b7280;
  line-height: 1.55;
}

.order-confirm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-top: 1.5rem;
}

.order-confirm-actions .btn {
  text-decoration: none;
  display: inline-block;
}

@media (max-width: 900px) {
  .payment-checkout-grid {
    grid-template-columns: 1fr;
  }

  .payment-summary-card {
    position: static;
    order: -1;
  }

  .payment-grid-3 {
    grid-template-columns: 1fr;
  }
}

/* —— Site-wide nav, footer, shop, legal, product detail, home sections —— */
.nav-link-item.is-active {
  color: var(--blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.product-media-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.product-title-link {
  color: inherit;
  text-decoration: none;
}

.product-title-link:hover {
  color: var(--blue);
}

.hero-trust-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.85rem;
  color: #b8c5d9;
  margin: 0.5rem 0 0;
}

.home-featured-section {
  background: #ffffff;
  color: #101828;
  border-radius: 20px;
  padding: 2rem;
  margin-top: -2rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.home-featured-section .section-head p,
.home-featured-section .product-cat {
  color: #475467;
}

.home-featured-section .product-meta h3,
.home-featured-section .product-price {
  color: #101828;
}

.home-see-all {
  text-align: center;
  margin-top: 1.25rem;
}

.home-shop-cta {
  text-align: center;
  padding: 2.5rem 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
}

.home-shop-cta h2 {
  margin-top: 0;
}

.home-testimonials {
  color: var(--text);
}

.testimonial-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.testimonial-card {
  margin: 0;
  padding: 1.15rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  font-size: 0.92rem;
  line-height: 1.55;
}

.testimonial-card cite {
  display: block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  color: var(--muted);
  font-style: normal;
}

.home-email-section {
  background: #0f1419;
  border: 1px solid #1f2838;
  border-radius: 16px;
  padding: 2rem;
}

.home-email-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
}

.home-email-form input[type="email"] {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  border: 1px solid #334155;
  background: #fff;
  color: #101828;
}

.home-email-note {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.home-contact-actions {
  margin-top: 1rem;
}

.email-capture-dialog {
  width: min(420px, 92vw);
  border: 1px solid #cbd5e1;
  border-radius: 14px;
  padding: 1.25rem;
  color: #101828;
}

.email-capture-dialog::backdrop {
  background: rgba(15, 23, 42, 0.55);
}

.site-footer {
  background: #050508;
  color: #9ca3af;
  padding: 2.5rem 1.25rem 1.5rem;
  border-top: 1px solid #1f2937;
}

.site-footer--on-dark {
  margin-top: 0;
}

.site-footer--dark {
  margin-top: auto;
}

.site-footer-inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  font-size: 0.88rem;
}

.site-footer-inner strong {
  color: #e5e7eb;
  display: block;
  margin-bottom: 0.5rem;
}

.site-footer-inner a {
  display: block;
  color: #93c5fd;
  text-decoration: none;
  margin: 0.25rem 0;
}

.site-footer-inner a:hover {
  text-decoration: underline;
}

.site-footer-tagline,
.site-footer-disclaimer {
  margin: 0.35rem 0 0;
  line-height: 1.45;
}

.site-footer-secure {
  margin: 0.65rem 0 0;
  font-size: 0.82rem;
  color: #6ee7b7;
}

.site-footer-copy {
  text-align: center;
  font-size: 0.78rem;
  margin: 1.5rem 0 0;
  color: #6b7280;
}

.shop-top-header {
  background: linear-gradient(180deg, #020614 0%, #061022 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.shop-trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  padding: 0.45rem 1rem;
  font-size: 0.75rem;
  color: #94a3b8;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.shop-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #030406;
  color: var(--text);
}

.shop-main {
  flex: 1;
  padding: 1.5rem 0 3rem;
}

.shop-catalog-section {
  background: #ffffff;
  color: #101828;
  border-radius: 20px;
  padding: 2rem;
  margin: 0 auto;
  width: min(1120px, 92vw);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
}

.shop-catalog-section .section-head p,
.shop-catalog-section .product-cat {
  color: #475467;
}

.shop-catalog-section .product-meta h3,
.shop-catalog-section .product-price {
  color: #101828;
}

.legal-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f8fafc;
  color: #111827;
}

.legal-main {
  flex: 1;
  padding: 2rem 0 3rem;
  max-width: 720px;
}

.legal-main h1 {
  margin-top: 0;
  color: #0f172a;
}

.legal-main h2 {
  margin-top: 1.5rem;
  font-size: 1.1rem;
  color: #1e293b;
}

.legal-lead {
  font-size: 1.05rem;
  color: #475569;
}

.contact-list {
  padding-left: 1.2rem;
}

.contact-list li {
  margin: 0.5rem 0;
}

.product-page-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #f1f5f9;
  color: #111827;
}

.product-page-main {
  flex: 1;
  padding: 1.5rem 0 3rem;
}

.product-breadcrumb {
  font-size: 0.88rem;
  margin: 0 0 1rem;
}

.product-breadcrumb a {
  color: #2563eb;
}

.product-detail-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: 1fr minmax(280px, 400px);
  align-items: start;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}

.product-detail-media {
  position: relative;
  max-width: 420px;
}

.product-detail-img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
}

.product-detail-overlay {
  font-size: 0.5rem;
}

.product-cat-pill {
  display: inline-block;
  margin: 0 0 0.35rem;
  padding: 0.2rem 0.55rem;
  background: #eff6ff;
  color: #1d4ed8;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.product-detail-title {
  margin: 0 0 0.35rem;
  font-size: 1.65rem;
  line-height: 1.2;
}

.product-detail-price {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0f172a;
  margin: 0 0 0.75rem;
}

.product-detail-short {
  color: #475569;
  line-height: 1.55;
  margin: 0 0 1rem;
}

.product-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin: 0.5rem 0 0.25rem;
}

.product-select,
.product-qty-input {
  width: 100%;
  max-width: 280px;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  margin-bottom: 0.5rem;
}

.product-add-btn {
  margin-top: 0.75rem;
  max-width: 280px;
}

.product-upsell {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid #e2e8f0;
}

.upsell-kicker {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  margin: 0 0 0.5rem;
}

.upsell-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem;
  background: #f8fafc;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
}

.upsell-price {
  display: block;
  font-size: 0.85rem;
  color: #64748b;
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
}

.product-detail-bottom {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 1.25rem 1.5rem;
}

.product-detail-bottom h2 {
  margin: 1.25rem 0 0.5rem;
  font-size: 1.05rem;
}

.product-detail-bottom h2:first-child {
  margin-top: 0;
}

.product-spec-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #334155;
}

.product-disclaimer {
  color: #b45309;
  background: #fffbeb;
  padding: 0.75rem;
  border-radius: 8px;
  border: 1px solid #fcd34d;
}

.product-reviews-placeholder {
  color: #64748b;
  font-size: 0.92rem;
}

.product-missing {
  padding: 2rem;
  text-align: center;
}

.cart-page-header-wrap {
  position: relative;
  z-index: 1;
}

.cart-continue-shop {
  margin: 0;
  padding: 0 1rem 0.5rem;
  font-size: 0.88rem;
}

.cart-continue-shop a {
  color: #93c5fd;
}

.cart-discount-box {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0.75rem 0;
}

.cart-discount-box input {
  flex: 1 1 140px;
  min-width: 0;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  border: 1px solid #98a2b3;
}

.cart-discount-hint {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0 0 0.75rem;
}

.cart-totals-breakdown p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
}

.cart-grand-total {
  margin-top: 0.65rem !important;
  padding-top: 0.65rem;
  border-top: 1px solid #e5e7eb;
  font-size: 1.05rem;
}

.btn-checkout-cta {
  min-height: 48px;
  font-size: 1.05rem;
  width: 100%;
  margin-top: 0.35rem;
}

.payment-compliance-card h2 {
  font-size: 0.95rem;
}

.order-confirm-summary-block {
  text-align: left;
  margin: 1rem 0;
  padding: 0.75rem 0;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
}

.confirm-lines {
  margin: 0;
  padding-left: 1.1rem;
  color: #374151;
}

.confirm-lines li {
  margin: 0.35rem 0;
}

.confirm-totals {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: #111827;
}

@media (max-width: 768px) {
  .product-detail-grid {
    grid-template-columns: 1fr;
  }
}
