/* Yuanheng Overseas Store — professional theme */
:root {
  --navy-950: #070f1c;
  --navy-900: #0b1730;
  --navy-800: #122447;
  --navy-700: #1a3360;
  --teal-400: #2dd4bf;
  --teal-500: #14b8a6;
  --teal-600: #0d9488;
  --slate-100: #f1f5f9;
  --slate-200: #e2e8f0;
  --slate-300: #cbd5e1;
  --slate-400: #94a3b8;
  --slate-500: #64748b;
  --white: #ffffff;
  --text: #0f172a;
  --muted: #64748b;
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --shadow: 0 10px 30px rgba(7, 15, 28, 0.12);
  --shadow-sm: 0 4px 14px rgba(15, 23, 42, 0.06);
  --shadow-hover: 0 14px 36px rgba(7, 15, 28, 0.16);
  --max: 1120px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  /* Spacing scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-7: 2rem;
  --space-8: 2.5rem;
  --space-9: 3.5rem;
  --space-10: 4.5rem;
  --container-pad: 1.25rem;
  --section-y: clamp(2.75rem, 5vw, 4rem);
  --card-gap: 1.35rem;
  --focus-ring: 0 0 0 3px rgba(20, 184, 166, 0.45);
  --focus-ring-dark: 0 0 0 3px rgba(45, 212, 191, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: #f8fafc;
  line-height: 1.65;
  font-size: 1rem;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(20, 184, 166, 0.28);
  color: var(--navy-950);
}

img {
  max-width: 100%;
  display: block;
  border-radius: 0; /* media regions control radius */
}

a {
  color: var(--teal-600);
  text-decoration: none;
}

a:hover {
  color: var(--teal-500);
}

.container {
  width: min(100% - (var(--container-pad) * 2), var(--max));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 23, 48, 0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(45, 212, 191, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding: 0.8rem 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--white);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--white);
}

.logo-img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: #000;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  display: grid;
  place-items: center;
  color: var(--navy-950);
  font-size: 0.85rem;
  font-weight: 800;
}

.logo-text small {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--slate-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  line-height: 1.3;
  margin-top: 0.1rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.15rem;
}

.nav a {
  color: var(--slate-300);
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  line-height: 1.25;
  transition: color 0.15s ease, background 0.15s ease;
}

.nav a:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.07);
}

.nav a.active {
  color: var(--white);
  background: rgba(45, 212, 191, 0.12);
  box-shadow: inset 0 -2px 0 var(--teal-400);
}

.nav-cart {
  position: relative;
  margin-left: 0.35rem;
}

.cart-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 1.15rem;
  height: 1.15rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: var(--teal-500);
  color: var(--navy-950);
  font-size: 0.7rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  line-height: 1;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: var(--white);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
}

.nav-toggle:hover {
  border-color: rgba(45, 212, 191, 0.5);
  background: rgba(255, 255, 255, 0.05);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: none;
  border-radius: 10px;
  padding: 0.7rem 1.15rem;
  font-weight: 600;
  font-size: 0.95rem;
  font-family: inherit;
  line-height: 1.25;
  cursor: pointer;
  transition: filter 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:focus-visible,
.nav a:focus-visible,
.nav-toggle:focus-visible,
.filter-bar a:focus-visible,
.pay-tab:focus-visible,
.social-link:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.site-header .btn:focus-visible,
.site-header .nav a:focus-visible,
.site-header .nav-toggle:focus-visible,
.hero .btn:focus-visible {
  box-shadow: var(--focus-ring-dark);
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-400), var(--teal-600));
  color: var(--navy-950);
}

.btn-primary:hover {
  filter: brightness(1.06);
  color: var(--navy-950);
}

.btn-secondary {
  background: var(--navy-800);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--navy-700);
  color: var(--white);
}

.btn-outline {
  background: transparent;
  border: 1.5px solid var(--slate-300);
  color: var(--navy-800);
}

.btn-outline:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.06);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-500);
  border: 1.5px solid transparent;
}

.btn-ghost:hover {
  color: var(--navy-800);
  background: rgba(15, 23, 42, 0.04);
}

/* Ghost / outline on dark surfaces (hero, CTA, page-hero) */
.hero .btn-ghost,
.cta-band .btn-ghost,
.page-hero .btn-ghost {
  color: var(--slate-200);
  border-color: rgba(255, 255, 255, 0.28);
}

.hero .btn-ghost:hover,
.cta-band .btn-ghost:hover,
.page-hero .btn-ghost:hover {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(45, 212, 191, 0.55);
}

.hero .btn-outline,
.cta-band .btn-outline,
.page-hero .btn-outline {
  border-color: rgba(255, 255, 255, 0.4);
  color: var(--white);
}

.hero .btn-outline:hover,
.cta-band .btn-outline:hover,
.page-hero .btn-outline:hover {
  border-color: var(--teal-400);
  color: var(--teal-400);
  background: rgba(45, 212, 191, 0.1);
}

.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.85rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 1.4rem;
  font-size: 1rem;
}

main {
  flex: 1;
}

/* Hero */
.hero {
  background:
    radial-gradient(ellipse 80% 60% at 80% 0%, rgba(20, 184, 166, 0.22), transparent 55%),
    radial-gradient(ellipse 50% 40% at 10% 80%, rgba(26, 51, 96, 0.55), transparent 50%),
    linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: var(--space-10) 0 var(--space-9);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: var(--space-8);
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal-400);
  font-weight: 700;
  margin-bottom: 0.9rem;
  line-height: 1.3;
}

.hero h1 {
  font-size: clamp(1.9rem, 4vw, 2.75rem);
  line-height: 1.12;
  margin: 0 0 0.85rem;
  letter-spacing: -0.025em;
  font-weight: 700;
}

.hero-lead {
  color: var(--slate-300);
  font-size: 1.05rem;
  line-height: 1.7;
  max-width: 36rem;
  margin: 0 0 var(--space-6);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.85rem;
}

.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.35rem;
}

.hero-stats div {
  min-width: 7rem;
}

.hero-stats strong {
  display: block;
  font-size: 1.15rem;
  color: var(--teal-400);
  line-height: 1.25;
  margin-bottom: 0.15rem;
}

.hero-stats span {
  font-size: 0.82rem;
  color: var(--slate-400);
  line-height: 1.4;
}

.hero-panel {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.hero-panel h2 {
  margin: 0 0 0.9rem;
  font-size: 1rem;
  line-height: 1.3;
  color: var(--slate-200);
  letter-spacing: -0.01em;
}

.pillar-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.pillar-list li {
  background: rgba(7, 15, 28, 0.35);
  border-radius: var(--radius);
  padding: 0.95rem 1.05rem;
  border: 1px solid rgba(45, 212, 191, 0.12);
}

.pillar-list strong {
  display: block;
  color: var(--white);
  margin-bottom: 0.25rem;
  line-height: 1.3;
}

.pillar-list span {
  color: var(--slate-400);
  font-size: 0.88rem;
  line-height: 1.55;
}

/* Sections */
.section {
  padding: var(--section-y) 0;
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

.section-head h2 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.4rem, 2.5vw, 1.85rem);
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.section-head p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
  max-width: 40rem;
  font-size: 0.98rem;
}

.pillars {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--card-gap);
}

.pillar-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.pillar-card:hover {
  box-shadow: var(--shadow);
  transform: translateY(-2px);
}

.pillar-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(20, 184, 166, 0.12);
  display: grid;
  place-items: center;
  margin-bottom: 0.95rem;
  color: var(--teal-600);
  font-weight: 800;
  flex-shrink: 0;
}

.pillar-card h3 {
  margin: 0 0 0.45rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  font-size: 1.1rem;
}

.pillar-card p {
  margin: 0 0 1rem;
  color: var(--muted);
  line-height: 1.6;
  flex: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: var(--card-gap);
  align-items: stretch;
}

.product-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(20, 184, 166, 0.28);
}

.product-card-media {
  aspect-ratio: 16 / 10;
  background: var(--navy-900);
  overflow: hidden;
  flex-shrink: 0;
}

.product-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.product-card:hover .product-card-media img {
  transform: scale(1.03);
}

.product-card-body {
  padding: 1.05rem 1.15rem 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  flex: 1;
  min-height: 0;
}

.product-card-meta {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
}

.product-card-meta .cat {
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.product-card h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(1.3em * 2);
}

.product-card h3 a {
  color: var(--text);
}

.product-card h3 a:hover {
  color: var(--teal-600);
}

.product-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.55rem;
  border-top: 1px solid var(--slate-100);
}

.price {
  font-weight: 700;
  color: var(--navy-800);
  font-size: 0.95rem;
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 0.22rem 0.5rem;
  border-radius: 999px;
  background: var(--slate-200);
  color: var(--slate-500);
  line-height: 1.2;
}

.badge-buy {
  background: rgba(20, 184, 166, 0.15);
  color: var(--teal-600);
}

.badge-rfq {
  background: rgba(26, 51, 96, 0.12);
  color: var(--navy-700);
}

.empty-state,
.empty {
  color: var(--muted);
  text-align: center;
  padding: var(--space-7) var(--space-4);
  background: var(--white);
  border: 1px dashed var(--slate-300);
  border-radius: var(--radius);
  font-size: 0.95rem;
}

.cta-band {
  background: linear-gradient(120deg, var(--navy-900), var(--navy-700));
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
}

.cta-band h2 {
  margin: 0 0 0.4rem;
  font-size: 1.4rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.cta-band p {
  margin: 0;
  color: var(--slate-300);
  max-width: 36rem;
  line-height: 1.6;
}

/* Page hero small */
.page-hero {
  background: linear-gradient(160deg, var(--navy-950), var(--navy-800));
  color: var(--white);
  padding: 2.85rem 0;
}

.page-hero h1 {
  margin: 0 0 0.55rem;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
}

.page-hero p {
  margin: 0;
  color: var(--slate-300);
  max-width: 40rem;
  line-height: 1.65;
  font-size: 1.02rem;
}

/* Product detail */
.product-detail {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: var(--space-7);
  align-items: start;
}

.product-gallery {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.product-gallery img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: var(--navy-900);
}

.product-info h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

.product-info .lead {
  color: var(--muted);
  line-height: 1.65;
}

.buy-box {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.35rem;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.buy-box .price-lg {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy-900);
  font-variant-numeric: tabular-nums;
  line-height: 1.2;
}

.buy-box .price-note {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.3rem 0 1rem;
  line-height: 1.5;
}

.buy-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
}

.feature-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.6rem;
}

.feature-list li {
  padding-left: 1.35rem;
  position: relative;
  color: var(--slate-500);
  line-height: 1.55;
}

.feature-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--teal-500);
}

.paypal-placeholder {
  background: #f0f9ff;
  border: 1px dashed #7dd3fc;
  border-radius: 10px;
  padding: 1rem;
  font-size: 0.9rem;
  color: #0c4a6e;
  line-height: 1.55;
}

.paypal-placeholder code {
  background: rgba(12, 74, 110, 0.08);
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  font-size: 0.85em;
}

#paypal-success {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  border-radius: 10px;
  color: #065f46;
}

.muted {
  color: var(--muted);
}

.small {
  font-size: 0.85rem;
}

.error {
  color: #b91c1c;
}

/* About / content */
.prose {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.85rem;
  max-width: 48rem;
  line-height: 1.7;
  box-shadow: var(--shadow-sm);
}

.prose h2 {
  margin-top: 1.75rem;
  margin-bottom: 0.55rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.prose h2:first-child {
  margin-top: 0;
}

.prose ul {
  padding-left: 1.2rem;
}

.prose p {
  margin: 0 0 0.9rem;
}

.split-2 {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-6);
}

.card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow-sm);
}

/* Forms */
.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid label {
  display: grid;
  gap: 0.4rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--navy-800);
  line-height: 1.35;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  font: inherit;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--white);
  color: var(--text);
  line-height: 1.4;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.form-grid textarea {
  min-height: 140px;
  resize: vertical;
}

.form-grid input:hover,
.form-grid select:hover,
.form-grid textarea:hover {
  border-color: var(--slate-400);
}

.form-grid input:focus,
.form-grid select:focus,
.form-grid textarea:focus {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--teal-500);
}

.form-grid input:focus-visible,
.form-grid select:focus-visible,
.form-grid textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--teal-500);
}

/* Cart */
.cart-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
}

.cart-table th,
.cart-table td {
  padding: 0.95rem 1.05rem;
  text-align: left;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: middle;
}

.cart-table th {
  background: var(--slate-100);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-500);
  font-weight: 700;
}

.cart-item {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.cart-item img {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  background: var(--navy-900);
}

.cart-table input[type="number"] {
  width: 4.5rem;
  padding: 0.45rem;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  font: inherit;
}

.cart-table input[type="number"]:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
  border-color: var(--teal-500);
}

.cart-summary {
  margin-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.checkout-lines {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}

.checkout-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid var(--slate-200);
  line-height: 1.45;
}

.checkout-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.35rem;
}

.filter-bar a {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--slate-200);
  color: var(--slate-500);
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.25;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.filter-bar a.active,
.filter-bar a:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
  background: rgba(20, 184, 166, 0.08);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-400);
  padding: var(--space-8) 0 var(--space-6);
  margin-top: var(--space-7);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: var(--space-6);
  margin-bottom: 1.85rem;
}

.site-footer h3 {
  color: var(--white);
  margin: 0 0 0.8rem;
  font-size: 0.95rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.site-footer a {
  color: var(--slate-300);
}

.site-footer a:hover {
  color: var(--teal-400);
}

.footer-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.45rem;
  line-height: 1.45;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 1.1rem;
  font-size: 0.85rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem;
  line-height: 1.45;
}

/* Optional light scrollbar polish */
@supports (scrollbar-color: auto) {
  * {
    scrollbar-width: thin;
    scrollbar-color: rgba(100, 116, 139, 0.45) transparent;
  }
}

@media (max-width: 900px) {
  .hero-grid,
  .product-detail,
  .split-2,
  .pillars,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .nav-toggle {
    display: inline-flex;
    align-items: center;
    margin-left: auto;
  }

  .nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--navy-900);
    flex-direction: column;
    align-items: stretch;
    padding: 0.65rem var(--container-pad) 1rem;
    border-bottom: 1px solid rgba(45, 212, 191, 0.15);
    box-shadow: 0 12px 28px rgba(7, 15, 28, 0.35);
    max-height: min(70vh, 28rem);
    overflow-y: auto;
    gap: 0.15rem;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    padding: 0.75rem 0.9rem;
    font-size: 0.98rem;
  }

  .nav a.active {
    box-shadow: inset 3px 0 0 var(--teal-400);
  }

  .nav-cart {
    margin-left: 0;
    margin-top: 0.25rem;
  }

  .header-inner {
    position: relative;
    flex-wrap: wrap;
  }

  .hero {
    padding: 3.25rem 0 3rem;
  }

  .section {
    padding: clamp(2.25rem, 4vw, 3rem) 0;
  }

  .cart-table {
    display: block;
    overflow-x: auto;
  }
}


/* Equipment training videos */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--card-gap);
  align-items: stretch;
}
.video-card {
  background: var(--white);
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 100%;
  box-shadow: var(--shadow-sm);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.video-card:hover {
  transform: translateY(-3px);
  border-color: rgba(20, 184, 166, 0.35);
  box-shadow: var(--shadow);
}
.video-thumb {
  display: block;
  aspect-ratio: 16 / 9;
  background: #070f1c;
  overflow: hidden;
  flex-shrink: 0;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.video-card-body {
  padding: 1.05rem 1.15rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}
.video-card-body h3 {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.video-card-body h3 a {
  color: var(--text);
  text-decoration: none;
}
.video-card-body h3 a:hover {
  color: var(--teal-600);
}
.video-card-body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
  flex: 1;
}
.pillars-3 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
@media (max-width: 720px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
  .product-grid {
    grid-template-columns: 1fr;
  }
  .hero-actions .btn {
    flex: 1 1 auto;
  }
}

/* Theme background helpers */
body.has-bg-image {
  background-repeat: no-repeat;
}
body.has-bg-image .site-header,
body.has-bg-image .site-footer {
  backdrop-filter: blur(10px);
}

/* Social / lead-gen links */
.social-links-wrap { margin: 0.5rem 0 1rem; }
.social-links {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
}
.social-links li { margin: 0; }
.social-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal-600);
  border-radius: 999px;
}
a.social-link:hover { color: var(--teal-500); text-decoration: underline; }
.social-link.is-placeholder { opacity: 0.85; }
.footer-social { margin-top: 0.85rem; }
.site-footer .social-links a { color: var(--teal-400); }
.site-footer .social-links a:hover { color: #5eead4; }
a.social-facebook {
  border: 1px solid rgba(45, 212, 191, 0.35);
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
}

/* Uploaded / file videos */
.video-thumb-file {
  background: #070f1c;
  aspect-ratio: 16 / 9;
}
.video-thumb-file video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.header-facebook {
  display: none;
  color: #fff !important;
  border: 1px solid rgba(45, 212, 191, 0.45);
  border-radius: 999px;
  padding: 0.3rem 0.8rem;
  font-size: 0.85rem;
  white-space: nowrap;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.header-facebook:hover {
  color: var(--teal-400) !important;
  background: rgba(45, 212, 191, 0.08);
}
@media (min-width: 901px) {
  .header-facebook { display: inline-flex; margin-left: auto; margin-right: 0.35rem; }
}


/* Checkout payment methods */
.checkout-pay .pay-method-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1.25rem;
}
.pay-tab {
  appearance: none;
  border: 1.5px solid var(--slate-300);
  background: #fff;
  color: var(--navy-800);
  border-radius: 999px;
  padding: 0.5rem 0.95rem;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.pay-tab:hover {
  border-color: var(--teal-500);
  color: var(--teal-600);
}
.pay-tab.is-active {
  background: var(--navy-800);
  border-color: var(--navy-800);
  color: #fff;
}
.pay-panel-title {
  margin-top: 0;
  font-size: 1.05rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.pay-qr-wrap {
  margin: 0.75rem 0 1rem;
}
.pay-qr {
  width: min(220px, 100%);
  height: auto;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  background: #fff;
  padding: 0.5rem;
}
.pay-card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0.75rem 0 1rem;
}
.pay-card-brands li {
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  padding: 0.28rem 0.65rem;
  font-size: 0.85rem;
  background: var(--slate-100);
  color: var(--navy-800);
  font-weight: 600;
}
