/* ============================================================
   KNOTZ — Global Stylesheet
   Design System: Volt Dark
   Fonts: Bebas Neue (display) · DM Sans (body) · Space Mono (labels)
   ============================================================ */

/* Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=DM+Sans:wght@300;400;500;600&family=Space+Mono:wght@400;700&display=swap');

/* ============================================================
   1. CSS RESET
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

ul, ol { list-style: none; }
a { text-decoration: none; color: inherit; }
button, input, select, textarea { font: inherit; border: none; background: none; outline: none; cursor: pointer; }
img, video { display: block; max-width: 100%; }

/* ============================================================
   2. DESIGN TOKENS
   ============================================================ */
:root {
  /* Colors */
  --black:     #0A0A0A;
  --off-black: #141414;
  --volt:      #E8FF00;
  --white:     #FFFFFF;
  --grey:      #888888;
  --border:    rgba(255, 255, 255, 0.08);

  /* Typography */
  --fd: 'Bebas Neue', sans-serif;
  --fb: 'DM Sans', sans-serif;
  --fm: 'Space Mono', monospace;

  /* Spacing */
  --section-pad:        100px 60px;
  --section-pad-mobile: 72px 24px;
  --nav-height:         68px;
}

/* ============================================================
   3. BASE
   ============================================================ */
html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--fb);
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Push content below fixed nav */
main { padding-top: var(--nav-height); }

/* ============================================================
   4. NAVIGATION
   ============================================================ */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-height);
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 60px;
}

.nav-logo {
  font-family: var(--fd);
  font-size: 26px;
  letter-spacing: 0.06em;
  color: var(--white);
  line-height: 1;
}

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

.nav-links a {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  transition: color 0.2s;
}

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

.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* Cart icon + badge */
.nav-cart {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.2s;
  cursor: pointer;
}

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

.nav-cart svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 14px;
  height: 14px;
  background: var(--volt);
  border-radius: 50%;
  font-family: var(--fm);
  font-size: 8px;
  color: var(--black);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transition: opacity 0.2s;
}

.cart-badge.has-items { opacity: 1; }

/* Nav CTA button */
.nav-cta {
  background: var(--volt);
  color: var(--black);
  font-family: var(--fb);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.06em;
  padding: 10px 22px;
  border-radius: 4px;
  transition: opacity 0.2s;
  white-space: nowrap;
}

.nav-cta:hover { opacity: 0.88; }

/* Mobile hamburger (hidden by default) */
.nav-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 6px;
}

.nav-menu-toggle span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--white);
  transition: transform 0.25s, opacity 0.25s;
}

/* Mobile nav drawer */
.nav-mobile-drawer {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: var(--off-black);
  border-bottom: 1px solid var(--border);
  padding: 24px;
  z-index: 99;
  flex-direction: column;
  gap: 20px;
}

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

.nav-mobile-drawer a:not(.btn-volt) {
  font-family: var(--fm);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--white);
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s;
}

.nav-mobile-drawer a:not(.btn-volt):last-child { border-bottom: none; }
.nav-mobile-drawer a:not(.btn-volt):hover,
.nav-mobile-drawer a:not(.btn-volt):active { color: var(--accent); }
.nav-mobile-drawer .btn-volt { margin-top: 8px; }

/* ============================================================
   5. TRUST BAR
   ============================================================ */
.trust {
  background: #111111;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  overflow-x: auto;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.trust::-webkit-scrollbar { display: none; }

.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  flex-shrink: 0;
}

.trust-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  line-height: 1;
  color: var(--volt);
}

.trust-icon i { display: inline-flex; }

.trust-text {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
}

.trust-divider {
  width: 1px;
  height: 28px;
  background: var(--border);
  flex-shrink: 0;
}

/* ============================================================
   6. BUTTONS
   ============================================================ */
.btn-volt {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--volt);
  color: var(--black);
  font-family: var(--fb);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.04em;
  padding: 14px 32px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
  border: none;
}

.btn-volt:hover { opacity: 0.88; transform: translateY(-1px); }
.btn-volt:active { transform: translateY(0); }

.btn-volt-sm {
  padding: 10px 22px;
  font-size: 12px;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  color: rgba(255, 255, 255, 0.6);
  font-family: var(--fm);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: color 0.2s;
  background: none;
  border: none;
  gap: 8px;
}

.btn-ghost::after {
  content: '→';
  font-size: 14px;
  font-family: var(--fb);
  font-style: normal;
  transition: transform 0.2s;
}

.btn-ghost:hover { color: var(--white); }
.btn-ghost:hover::after { transform: translateX(4px); }

/* ============================================================
   7. SECTION UTILITIES
   ============================================================ */
section { padding: var(--section-pad); }

.sec-eyebrow {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
  margin-bottom: 16px;
}

.sec-title {
  font-family: var(--fd);
  font-size: clamp(36px, 5vw, 60px);
  color: var(--white);
  line-height: 1;
  margin-bottom: 24px;
}

.sec-title .v { color: var(--volt); }

.sec-body {
  font-family: var(--fb);
  font-size: 15px;
  font-weight: 300;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  max-width: 520px;
}

/* Volt accent line */
.volt-line {
  width: 24px;
  height: 2px;
  background: var(--volt);
  margin: 20px 0;
}

/* ============================================================
   8. PRODUCT CARD (shared across shop / homepage)
   ============================================================ */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
}

.product-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3 / 4;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: var(--off-black);
}

.product-card-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

.product-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,10,10,0.85) 0%, rgba(10,10,10,0.1) 60%, transparent 100%);
  z-index: 1;
}

.product-card-body {
  position: relative;
  z-index: 2;
  padding: 24px;
}

.product-card-name {
  font-family: var(--fd);
  font-size: 32px;
  color: var(--white);
  line-height: 1;
  margin-bottom: 6px;
}

.product-card-price {
  font-family: var(--fm);
  font-size: 13px;
  color: var(--volt);
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.product-card-btn {
  display: block;
  width: 100%;
  background: var(--volt);
  color: var(--black);
  font-family: var(--fb);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.04em;
  padding: 12px 20px;
  border-radius: 4px;
  text-align: center;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.25s, transform 0.25s;
  cursor: pointer;
  border: none;
}

.product-card:hover .product-card-btn {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================
   9. FEATURE / WHY CARDS
   ============================================================ */
.card {
  padding: 40px 32px;
  border: 1px solid var(--border);
  transition: border-color 0.25s, background 0.25s;
}

.card:hover {
  border-color: rgba(232, 255, 0, 0.25);
  background: rgba(232, 255, 0, 0.03);
}

.why-accent {
  width: 24px;
  height: 2px;
  background: var(--volt);
  margin-top: 20px;
}

/* ============================================================
   10. CART SIDEBAR
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.cart-overlay.cart-open {
  opacity: 1;
  pointer-events: all;
}

.cart-sidebar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 400px;
  max-width: 100vw;
  background: var(--off-black);
  border-left: 1px solid var(--border);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.cart-sidebar.cart-open { transform: translateX(0); }

.cart-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-title {
  font-family: var(--fd);
  font-size: 22px;
  letter-spacing: 0.06em;
  color: var(--white);
}

.cart-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: color 0.2s;
  font-size: 20px;
  line-height: 1;
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -ms-overflow-style: none;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}

.cart-empty {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 28px;
  text-align: center;
}

.cart-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 44px;
  margin-bottom: 16px;
  opacity: 0.35;
  color: var(--white);
}

.cart-empty-text {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.25);
}

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.cart-item:first-child { padding-top: 0; }
.cart-item:last-child  { border-bottom: none; }

/* Name takes remaining horizontal space so price + qty sit on the right */
.cart-item-name {
  flex: 1;
  min-width: 0;
}

.cart-item-img {
  width: 72px;
  height: 96px;
  object-fit: cover;
  background: var(--black);
  flex-shrink: 0;
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cart-item-name {
  font-family: var(--fd);
  font-size: 18px;
  color: var(--white);
  line-height: 1.1;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-price {
  font-family: var(--fm);
  font-size: 12px;
  color: var(--volt);
  letter-spacing: 0.06em;
  flex-shrink: 0;
}

.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.cart-item-qty button {
  width: 24px;
  height: 24px;
  border: 1px solid var(--border);
  color: rgba(255, 255, 255, 0.6);
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  background: none;
  border-radius: 2px;
}

.cart-item-qty button:hover {
  border-color: var(--volt);
  color: var(--volt);
}

.cart-item-qty span {
  font-family: var(--fm);
  font-size: 11px;
  color: var(--white);
  min-width: 16px;
  text-align: center;
}

.cart-footer {
  padding: 20px 28px 28px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cart-subtotal-label {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.cart-subtotal-amount {
  font-family: var(--fm);
  font-size: 16px;
  color: var(--volt);
  letter-spacing: 0.04em;
}

.cart-checkout-btn {
  display: block;
  width: 100%;
  background: var(--volt);
  color: var(--black);
  font-family: var(--fb);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.06em;
  padding: 16px;
  border-radius: 4px;
  text-align: center;
  cursor: pointer;
  border: none;
  transition: opacity 0.2s;
}

.cart-checkout-btn:hover { opacity: 0.88; }
.cart-checkout-btn:disabled { opacity: 0.4; cursor: not-allowed; }

/* ============================================================
   11. FOOTER
   ============================================================ */
footer {
  background: #000000;
  border-top: 1px solid var(--border);
  padding: 48px 60px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.footer-logo {
  font-family: var(--fd);
  font-size: 24px;
  letter-spacing: 0.06em;
  color: var(--white);
}

.footer-links {
  display: flex;
  gap: 32px;
  flex-wrap: wrap;
}

.footer-links a {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
}

.footer-links a:hover { color: var(--white); }

.footer-copy {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.15);
}

/* ============================================================
   12. SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered reveal delays */
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }
.reveal-d5 { transition-delay: 0.5s; }

/* ============================================================
   13. MISC UTILITIES
   ============================================================ */

/* Divider line */
.hr { border: none; border-top: 1px solid var(--border); }

/* Volt text */
.text-volt { color: var(--volt); }
.text-grey { color: var(--grey); }
.text-muted { color: rgba(255, 255, 255, 0.35); }

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--off-black) 25%, #1e1e1e 50%, var(--off-black) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s infinite;
  border-radius: 2px;
}

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Error state */
.error-msg {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 80, 80, 0.8);
  padding: 12px 0;
}

/* ============================================================
   14. MOBILE BREAKPOINT — 900px
   ============================================================ */
@media (max-width: 900px) {
  /* Nav */
  nav {
    padding: 0 24px;
    height: 60px;
  }

  :root { --nav-height: 60px; }

  .nav-links { display: none; }
  .nav-cta   { display: none; }

  .nav-menu-toggle { display: flex; }

  /* Sections */
  section { padding: var(--section-pad-mobile); }

  /* Trust bar */
  .trust {
    padding: 16px 24px;
    gap: 24px;
    justify-content: flex-start;
  }

  .trust-divider { display: none; }

  /* Product grid */
  .product-grid { grid-template-columns: 1fr 1fr; gap: 1px; }

  /* Product card — always show CTA on mobile (no hover) */
  .product-card-btn {
    opacity: 1;
    transform: translateY(0);
  }

  /* Footer */
  footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 28px;
    padding: 36px 24px;
  }

  .footer-links { gap: 20px; }

  /* Cart sidebar */
  .cart-sidebar { width: 100vw; }
}

@media (max-width: 480px) {
  .product-grid { grid-template-columns: 1fr; }

  .trust-item:nth-child(n+5) { display: none; }
}

/* ============================================================
   15. PHOSPHOR ICON DEFAULTS
   ============================================================ */
/* Phosphor renders icons as a font glyph, sized via font-size and
   inheriting color via currentColor. Each surface (trust bar, why
   cards, etc.) already sets its own size+color, so we only need
   layout normalisation here. */
.ph, .ph-bold, .ph-fill, .ph-thin, .ph-light, .ph-duotone {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   16. COLOR SWATCHES (product cards, product page)
   ============================================================ */
.swatch {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  flex-shrink: 0;
  vertical-align: middle;
}

.swatch--lg {
  width: 22px;
  height: 22px;
}

.swatch--ring {
  box-shadow: 0 0 0 2px rgba(232, 255, 0, 0.85);
}

/* Product-card swatch overlay (replaces emoji area on shop.html) */
.card-swatch-area {
  position: absolute;
  inset: 0 0 38% 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  z-index: 2;
  pointer-events: none;
}

.card-swatch {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   17. PAYMENT / SHIPPING TRUST STRIP
   ============================================================ */
.payment-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  padding: 20px 60px;
  border-top: 1px solid var(--border);
  background: #050505;
}

.payment-strip__label {
  font-family: var(--fm);
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
  margin-right: 4px;
}

.payment-strip__label--right {
  margin-left: auto;
  margin-right: 4px;
}

.payment-strip__logos {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.payment-logo {
  height: 18px;
  width: auto;
  filter: brightness(0) invert(1);
  opacity: 0.65;
  transition: opacity 0.2s;
}

.payment-logo:hover { opacity: 1; }

.payment-logo-text {
  font-family: var(--fm);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  padding: 4px 10px;
  border: 1px solid var(--border);
  border-radius: 3px;
  line-height: 1;
}

.payment-logo-text i {
  margin-right: 6px;
  font-size: 12px;
  color: var(--volt);
}

/* Product page — bigger version embedded near the buy button */
.payment-strip--inline {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 18px 0;
  margin: 24px 0 0;
  background: transparent;
  gap: 14px;
}

.payment-strip--inline .payment-strip__label {
  font-size: 8px;
  letter-spacing: 0.2em;
}

@media (max-width: 900px) {
  .payment-strip {
    padding: 18px 24px;
    gap: 14px;
  }
  .payment-strip__logos { gap: 12px; }
  .payment-logo { height: 16px; }
}
