/* ═══════════════════════════════════════════════════════
   JUNKIEE ARTISAN KEYCAPS — style.css
   Aesthetic: Dark collector's boutique × underground craft
   Fonts: KnightWarrior (display) + DeatheMaachNcv (body) + Lato (ui)
════════════════════════════════════════════════════════ */


/* ── CUSTOM FONTS ──────────────────────────────────────
   KnightWarrior  → Titles, headings, display text
   DeatheMaachNcv → Body copy, paragraphs, descriptions
   Ponter Alt → Product names
   Lato           → Labels, badges, UI metadata
──────────────────────────────────────────────────────── */
@font-face {
  font-family: 'KnightWarrior';
  src: url('./fonts/KnightWarrior-w16n8.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Ponter Alt';
  src: url('./fonts/Ponter Alt.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'DeatheMaachNcv';
  src: url('./fonts/DeatheMaachNcv-2ejv.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}


@font-face {
  font-family: 'Lato';
  src: url('./fonts/Lato-Regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── RESET & ROOT ─────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #080808;
  --bg-2:       #0f0f0f;
  --bg-3:       #161616;
  --bg-4:       #1e1e1e;
  --gold:       #c8a96e;
  --gold-light: #e0c98a;
  --gold-dark:  #8a6e3a;
  --gold-muted: #6b5530;
  --cream:      #f0ede6;
  --cream-muted:#b8b0a0;
  --border:     #232323;
  --border-2:   #2e2e2e;
  --red:        #c0392b;
  --green:      #2ecc71;
  --white:      #ffffff;

  --font-display: 'KnightWarrior', Georgia, serif;
  --font-body:    'DeatheMaachNcv', Georgia, serif;
  --font-mono:    'Lato', sans-serif;

  --nav-h: 68px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 4px 24px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 32px rgba(200,169,110,0.12);

  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 19px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ── GRAIN TEXTURE ────────────────────────────────────── */
.grain {
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='1'/%3E%3C/svg%3E");
  opacity: 0.025;
  pointer-events: none;
  z-index: 9999;
  animation: grainShift 0.5s steps(1) infinite;
}
@keyframes grainShift {
  0%   { transform: translate(0, 0); }
  20%  { transform: translate(-2px, 1px); }
  40%  { transform: translate(1px, -2px); }
  60%  { transform: translate(2px, 1px); }
  80%  { transform: translate(-1px, 2px); }
  100% { transform: translate(0, 0); }
}

/* ── SCROLLBAR ────────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--gold-muted); border-radius: 3px; }

/* ── SELECTION ────────────────────────────────────────── */
::selection { background: var(--gold); color: var(--bg); }

/* ── TYPOGRAPHY ───────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: 0.05em; font-weight: 400; }
a { color: var(--gold); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--gold-light); }

/* ── BUTTONS ──────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 28px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.22s var(--ease);
  white-space: nowrap;
  text-decoration: none;
}
.btn-primary {
  background: var(--gold);
  color: var(--bg);
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-light);
  border-color: var(--gold-light);
  color: var(--bg);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(200,169,110,0.3);
}
.btn-ghost {
  background: transparent;
  color: var(--cream-muted);
  border-color: var(--border-2);
}
.btn-ghost:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
.btn-danger {
  background: transparent;
  color: var(--red);
  border-color: rgba(192,57,43,0.4);
}
.btn-danger:hover {
  background: rgba(192,57,43,0.12);
}
.btn-full { width: 100%; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }

/* ── NAVBAR ───────────────────────────────────────────── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  transition: background 0.3s, border-color 0.3s;
  border-bottom: 1px solid transparent;
}
.navbar.scrolled {
  background: rgba(8,8,8,0.96);
  backdrop-filter: blur(16px);
  border-bottom-color: var(--border);
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-icon {
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
}
.logo-text {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.2em;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-link {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0; right: 0;
  height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s var(--ease);
}
.nav-link:hover, .nav-link-active {
  color: var(--cream);
}
.nav-link:hover::after, .nav-link-active::after { transform: scaleX(1); }
.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-shrink: 0;
}
.cart-btn {
  position: relative;
  color: var(--cream-muted);
  transition: color 0.2s;
  display: flex;
  align-items: center;
}
.cart-btn:hover { color: var(--gold); }
.cart-badge {
  position: absolute;
  top: -8px; right: -10px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.80rem;
  font-weight: 400;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  transition: transform 0.2s var(--ease-out);
}
.cart-badge.bump { transform: scale(1.35); }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--cream-muted);
  transition: all 0.25s var(--ease);
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); background: var(--gold); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); background: var(--gold); }

.mobile-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  z-index: 1099;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.mobile-overlay.active { opacity: 1; pointer-events: all; }

/* ── HERO ─────────────────────────────────────────────── */
.hero {
  height: 42vh;             /* short banner strip — tweak this one value to resize */
  min-height: 260px;        /* never collapses too small on tiny screens */
  max-height: 520px;        /* never grows too tall on huge screens */
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  padding: 0 24px;
}
.hero-bg {
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: url('images/og-banner-bg.jpg');
  background-size: cover;           /* always fills the box, no gaps */
  background-position: center 40%; /* focus slightly above center of image */
  background-repeat: no-repeat;
}
/* Dark overlay so text stays legible over the banner */
.hero-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
.hero-content {
  position: relative;
  text-align: center;
  max-width: 780px;
  animation: heroReveal 1s var(--ease-out) both;
}
@keyframes heroReveal {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 18vw, 12rem);
  line-height: 0.9;
  letter-spacing: 0.05em;
  color: var(--cream);
  margin-top: 65px;
  animation: heroReveal 1s 0.2s var(--ease-out) both;
  text-shadow: 0 0 80px rgba(200,169,110,0.15);
}
.hero-cta {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;

  animation: heroReveal 1s 0.4s var(--ease-out) both;
}
/* ── Hero Social Icons ─────────────────────────────── */
.hero-social {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  margin-top: 10px;
  animation: heroReveal 1s 0.5s var(--ease-out) both;
}
.hero-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: background 0.2s, transform 0.2s, border-color 0.2s;
}
.hero-social-link:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-3px);
}
.hero-social-link img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}


/* ── SEARCH ───────────────────────────────────────────── */
.search-section {
  padding: 28px 24px;
  position: relative;
  z-index: 2;
}
.search-wrap {
  max-width: 600px;
  margin: 0 auto;
}
/* ── Search bar: pill shape, dark, icon-right like reference image ── */
.search-box {
  display: flex;
  align-items: center;
  background: #1a1a1a;
  border: 1.5px solid #333;
  border-radius: 50px;          /* full pill */
  height: 52px;
  padding: 0 6px 0 22px;
  gap: 4px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--gold, #c8a96e);
  box-shadow: 0 0 0 3px rgba(200,169,110,0.10);
}
.search-input {
  flex: 1;
  min-width: 0;
  background: none;
  border: none;
  outline: none;
  /* font-family: var(--font-body, 'DeatheMaachNcv', Georgia, serif); */
  font-family: 'Lato', sans-serif;
  font-size: 1rem;
  color: #e8e0d0;
  letter-spacing: 0.03em;
  padding: 0;
  line-height: 1;
}
.search-input::placeholder {
  color: rgba(232,224,208,0.35);
}
/* ✕ clear button — shown when there's text */
.search-clear {
  flex-shrink: 0;
  background: none;
  border: none;
  color: rgba(232,224,208,0.4);
  cursor: pointer;
  font-size: 0.8rem;
  padding: 4px 6px;
  opacity: 0;
  transition: opacity 0.2s, color 0.2s;
  line-height: 1;
}
.search-clear.visible { opacity: 1; }
.search-clear:hover { color: var(--gold, #c8a96e); }
/* vertical divider before icon button */
.search-box::before {
  display: none; /* we'll use the button's left-border instead */
}
/* icon-only search button — sits right of divider */
.search-submit-btn {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  border-left: 1.5px solid #333;
  color: rgba(232,224,208,0.5);
  cursor: pointer;
  width: 46px;
  height: 36px;
  padding: 0;
  border-radius: 0 50px 50px 0;
  transition: color 0.2s;
}
.search-submit-btn:hover { color: var(--gold, #c8a96e); }
.search-submit-btn span { display: none; } /* hide the "Cari" text */

/* ── CATEGORIES CAROUSEL ──────────────────────────────── */
.categories-section {
  padding: 32px 0 24px;
}
.categories-header {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
}
.cat-arrow {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  background: var(--bg-3);
  border: 1px solid var(--border);
  color: var(--cream-muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}
.cat-prev { border-radius: var(--radius) 0 0 var(--radius); }
.cat-next { border-radius: 0 var(--radius) var(--radius) 0; }
.cat-arrow:hover { background: var(--bg-4); color: var(--gold); border-color: var(--gold); }
.cat-arrow:disabled { opacity: 0.3; cursor: default; }
.categories-track-wrap {
  flex: 1;
  overflow: hidden;
}
.categories-track {
  display: flex;
  gap: 10px;
  padding: 4px 16px;
  transition: transform 0.4s var(--ease-out);
  width: max-content;
}

/* ── PRODUCTS GRID ────────────────────────────────────── */
.products-section {
  max-width: 1280px;
  margin: 0 auto;
  padding: 24px 24px 80px;
}
.products-header {
  margin-bottom: 32px;
}
.section-title {
  font-family: var(--font-display);
  font-size: 40px;
  color: var(--cream);
  letter-spacing: 0.08em;
}
.section-sub {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: var(--cream-muted);
  letter-spacing: 0.12em;
  margin-top: 6px;
}
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.products-empty {
  text-align: center;
  padding: 60px 24px;
  color: var(--cream-muted);
  font-style: italic;
}

/* ── PRODUCT CARD ─────────────────────────────────────── */
/* product-card is an <a> tag — reset link styles */
a.product-card {
  text-decoration: none;
  color: inherit;
  display: block;
}

.product-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.25s, transform 0.3s var(--ease), box-shadow 0.3s;
  position: relative;
  cursor: pointer;
  animation: cardReveal 0.5s var(--ease-out) both;
}
@keyframes cardReveal {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.product-card:hover {
  border-color: var(--gold-muted);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}
.product-image-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  position: relative;
  overflow: hidden;
  background: var(--bg-3);
}
.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-image { transform: scale(1.06); }
.product-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: linear-gradient(135deg, var(--bg-3) 0%, var(--bg-4) 100%);
}
.placeholder-icon { font-size: 3rem; opacity: 0.5; }
.product-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: var(--gold);
  color: var(--bg);
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 2px;
}
.badge-low { background: #e67e22; }
.badge-out { background: var(--red); }
.product-body {
  padding: 16px;
}
.product-category {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: #ffffff;
  letter-spacing: 0.05em;
  margin-bottom: 8px;
  line-height: 1.1;
}
.product-material {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cream-muted);
  letter-spacing: 0.1em;
  margin-bottom: 12px;
}
.product-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.product-price {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: #c8a96e;
  letter-spacing: 0.04em;
}
.product-stock {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: var(--cream-muted);
  letter-spacing: 0.08em;
}
.add-to-cart-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--cream-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}
.add-to-cart-btn:hover {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--bg);
}
.add-to-cart-btn.added {
  background: var(--green);
  border-color: var(--green);
  color: var(--bg);
}
.add-to-cart-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

/* ── TOAST ────────────────────────────────────────────── */
.toast-container {
  position: fixed;
  bottom: 28px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-left: 3px solid var(--gold);
  border-radius: var(--radius);
  padding: 14px 18px;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--cream);
  letter-spacing: 0.06em;
  max-width: 340px;
  pointer-events: all;
  box-shadow: var(--shadow);
  animation: toastIn 0.35s var(--ease-out) both;
}
.toast.toast-error { border-left-color: var(--red); }
.toast.toast-success { border-left-color: var(--green); }
.toast.toast-out { animation: toastOut 0.3s var(--ease) both; }
@keyframes toastIn {
  from { opacity: 0; transform: translateX(20px) translateY(10px); }
  to   { opacity: 1; transform: translateX(0) translateY(0); }
}
@keyframes toastOut {
  from { opacity: 1; transform: translateX(0); }
  to   { opacity: 0; transform: translateX(20px); }
}
.toast-icon { font-size: 1rem; }

/* ── PAGE LAYOUT (cart & profile) ────────────────────── */
.page-main {
  min-height: 100svh;
  padding-top: var(--nav-h);
}
.page-hero-mini {
  text-align: center;
  padding: 56px 24px 40px;
  position: relative;
}
.page-title {
  font-family: var(--font-display);
  font-size: clamp(3rem, 8vw, 6rem);
  color: var(--cream);
  letter-spacing: 0.08em;
}

/* ── CART PAGE ────────────────────────────────────────── */
.cart-layout {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px 80px;
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}
.cart-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 60px;
  color: var(--cream-muted);
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
.spinner {
  width: 32px; height: 32px;
  border: 2px solid var(--border-2);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.cart-empty {
  text-align: center;
  padding: 80px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.empty-icon { font-size: 3rem; }
.cart-empty h3 {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  letter-spacing: 0.06em;
}
.cart-empty p { color: var(--cream-muted); font-style: italic; }

/* Cart item row */
.cart-item {
  display: grid;
  grid-template-columns: 90px 1fr auto;
  gap: 20px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  animation: cardReveal 0.3s var(--ease-out) both;
}
.cart-item-image {
  width: 90px; height: 90px;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--bg-3);
}
.cart-item-placeholder {
  width: 90px; height: 90px;
  background: var(--bg-3);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}
.cart-item-name {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--cream);
  letter-spacing: 0.04em;
  margin-bottom: 4px;
}
.cart-item-price {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--gold);
  margin-bottom: 10px;
}
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 10px;
}
.qty-btn {
  width: 28px; height: 28px;
  background: var(--bg-4);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--cream);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold); }
.qty-num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  min-width: 24px;
  text-align: center;
}
.cart-item-right {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
}
.cart-item-subtotal {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--cream);
  white-space: nowrap;
}
.cart-remove-btn {
  background: none;
  border: none;
  color: var(--cream-muted);
  cursor: pointer;
  font-size: 0.82rem;
  font-family: var(--font-mono);
  letter-spacing: 0.1em;
  padding: 4px 0;
  transition: color 0.2s;
}
.cart-remove-btn:hover { color: var(--red); }

/* Cart summary */
.cart-summary {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  position: sticky;
  top: calc(var(--nav-h) + 20px);
}
.summary-title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--cream);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
}
.summary-rows { display: flex; flex-direction: column; gap: 12px; }
.summary-row {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--cream-muted);
}
.summary-divider { height: 1px; background: var(--border); margin: 16px 0; }
.summary-total {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 0.9rem;
  color: var(--cream);
  font-weight: 400;
  margin-bottom: 16px;
}
#summaryTotal { color: var(--gold); }
.summary-note {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cream-muted);
  letter-spacing: 0.08em;
  margin-bottom: 20px;
  padding: 12px;
  background: var(--bg-3);
  border-radius: var(--radius);
}
.cart-summary .btn { margin-top: 10px; }

/* ── PROFILE / AUTH ───────────────────────────────────── */
.auth-container {
  max-width: 480px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.auth-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
}
.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.auth-tab {
  flex: 1;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 10px 0;
  margin-bottom: -1px;
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream-muted);
  cursor: pointer;
  transition: all 0.2s;
}
.auth-tab.active { border-bottom-color: var(--gold); color: var(--gold); }
.auth-desc {
  font-style: italic;
  color: var(--cream-muted);
  margin-bottom: 24px;
  font-size: 1rem;
}
.form-group { margin-bottom: 18px; }
.form-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--cream-muted);
  margin-bottom: 8px;
}
.form-input {
  width: 100%;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  padding: 13px 16px;
  font-family: var(--font-mono);
  font-size: 0.90rem;
  color: var(--cream);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0.04em;
}
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200,169,110,0.1);
}
.form-input::placeholder { color: var(--cream-muted); opacity: 0.4; }
.input-wrap { position: relative; }
.toggle-pw {
  position: absolute;
  right: 12px; top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  font-size: 0.9rem;
  opacity: 0.5;
  transition: opacity 0.2s;
}
.toggle-pw:hover { opacity: 1; }
.form-footer { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.form-link {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  color: var(--cream-muted);
  transition: color 0.2s;
}
.form-link:hover { color: var(--gold); }
.auth-switch {
  text-align: center;
  margin-top: 16px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--cream-muted);
  letter-spacing: 0.08em;
}
.auth-switch a { color: var(--gold); }

/* OTP / Verify */
.verify-icon { font-size: 2.5rem; text-align: center; margin: 8px 0 12px; }
.verify-email-hint {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: var(--gold);
  margin-bottom: 24px;
  letter-spacing: 0.08em;
}
.otp-inputs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-bottom: 24px;
}
.otp-input {
  width: 48px; height: 60px;
  text-align: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius);
  color: var(--gold);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  letter-spacing: 0;
}
.otp-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(200,169,110,0.12);
}

/* Profile card (logged in) */
.profile-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
}
.profile-avatar {
  width: 80px; height: 80px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 2.5rem;
  color: var(--bg);
  margin: 0 auto 20px;
}
.profile-name {
  font-family: var(--font-display);
  font-size: 2rem;
  color: var(--cream);
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.profile-email {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--cream-muted);
  margin-bottom: 4px;
  letter-spacing: 0.08em;
}
.profile-since {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cream-muted);
  opacity: 0.5;
  margin-bottom: 28px;
}
.profile-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.profile-badges { display: flex; gap: 8px; justify-content: center; }
.badge {
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.14em;
  color: var(--gold);
  border: 1px solid var(--gold-muted);
  padding: 5px 12px;
  border-radius: 99px;
}

/* ── FOOTER ───────────────────────────────────────────── */
.footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 60px 24px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.footer-brand .logo-text {
  font-size: 1.8rem;
  display: block;
  margin-bottom: 12px;
}
.footer-brand p {
  font-style: italic;
  color: var(--cream-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}
.footer-links h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.footer-links a {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.80rem;
  color: var(--cream-muted);
  letter-spacing: 0.06em;
  text-decoration: none;
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--cream); }
.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.footer-bottom p {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--cream-muted);
  opacity: 0.5;
  letter-spacing: 0.08em;
}
.footer-tagline { font-style: italic; }

/* ── RESPONSIVE ───────────────────────────────────────── */
@media (max-width: 1024px) {
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 32px; }
  .cart-layout { grid-template-columns: 1fr; }
  .cart-summary { position: static; }
}

@media (max-width: 768px) {
  :root { --nav-h: 60px; }

  .nav-links {
    position: fixed;
    top: var(--nav-h); right: 0;
    width: 280px;
    height: calc(100svh - var(--nav-h));
    background: var(--bg-2);
    border-left: 1px solid var(--border);
    flex-direction: column;
    align-items: flex-start;
    padding: 32px 24px;
    gap: 24px;
    z-index: 999;
    transform: translateX(100%);
    transition: transform 0.35s var(--ease-out);
  }
  .nav-links.open { transform: translateX(0); }
  .nav-link { font-size: 0.84rem; }
  .hamburger { display: flex; }

  .hero-stats { gap: 20px; }
  .stat-divider { height: 28px; }

  .products-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  /* .product-name { font-size: 1.35rem; } */

  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }

  .cart-item { grid-template-columns: 72px 1fr auto; gap: 14px; }
  .cart-item-image, .cart-item-placeholder { width: 72px; height: 72px; }

  .auth-card { padding: 24px 20px; }
  .otp-inputs { gap: 6px; }
  .otp-input { width: 40px; height: 52px; font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-stats { flex-direction: column; gap: 12px; }
  .stat-divider { display: none; }
  .footer-inner { grid-template-columns: 1fr; }
  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .profile-actions { flex-direction: column; }
}


/* ── PAGINATION ──────────────────────────────────────── */
.pagination-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 40px 0 60px;
}
.pagination-info {
  font-family: var(--font-mono);
  font-size: 0.84rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.pagination-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}
.page-btn {
  min-width: 38px;
  height: 38px;
  padding: 0 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  border-radius: 4px;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
  letter-spacing: 0.03em;
}
.page-btn:hover:not(:disabled):not(.page-btn-active) {
  background: var(--surface);
  border-color: var(--cream);
  color: var(--cream);
}
.page-btn-active {
  background: var(--cream);
  color: var(--bg);
  border-color: var(--cream);
  font-weight: 600;
  cursor: default;
}
.page-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.page-ellipsis {
  border-color: transparent;
  background: transparent;
  min-width: 24px;
  color: var(--muted);
  letter-spacing: 0;
}
.page-prev, .page-next {
  padding: 0 14px;
  letter-spacing: 0.05em;
}
@media (max-width: 480px) {
  .page-prev span, .page-next span { display: none; }
  .page-btn { min-width: 34px; height: 34px; font-size: 0.84rem; }
}

/* ── FOOTER CONTACT INFO ──────────────────────────── */
.footer-contact-info {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-address,
.footer-email {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--cream-muted);
  line-height: 1.6;
  letter-spacing: 0.04em;
}
.footer-email a {
  color: var(--cream-muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-email a:hover { color: var(--gold); }

/* ── MOBILE DRAWER SIDEBAR ─────────────────────────── */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(300px, 85vw);
  height: 100svh;
  background: var(--bg-2);
  border-left: 1px solid var(--border);
  z-index: 1100;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.mobile-drawer.open {
  transform: translateX(0);
}
.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.mobile-drawer-close {
  background: none;
  border: none;
  color: var(--cream-muted);
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s, background 0.2s;
}
.mobile-drawer-close:hover {
  color: var(--cream);
  background: var(--bg-3);
}
.mobile-drawer-nav {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  gap: 6px;
  overflow-y: auto;
}
.mobile-nav-link {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.80rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--cream-muted);
  text-decoration: none;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.mobile-nav-link:hover,
.mobile-nav-link.nav-link-active {
  color: var(--gold);
  background: rgba(200,169,110,0.06);
  border-color: var(--border);
}
.mobile-drawer-footer {
  padding: 20px 24px;
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

/* ── FOOTER CONTACT ──────────────────────────────────── */
.footer-contact {
  margin-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.footer-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.7rem;
  color: var(--txt-2, rgba(232,224,208,0.55));
  line-height: 1.5;
}
.footer-contact-row svg {
  flex-shrink: 0;
  margin-top: 2px;
  opacity: 0.7;
}
.footer-contact-row a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
}
.footer-contact-row a:hover {
  color: var(--gold, #c9a96e);
}


/* ── PRODUCT NAME FONT OVERRIDE ───────────────────────────
   Product names use Ponter Alt.
──────────────────────────────────────────────────────────── */
.product-name,
.pcard-name,
.cart-item-name,
.knob-card-name {
  font-family: 'Ponter Alt', sans-serif;
  font-weight: 100;
  letter-spacing: 0.08em;
  color: #ffffff;
  -webkit-text-stroke: 0px;
  text-transform: none;
}

/* Carousel card names — Ponter Alt but smaller to fit the compact card */
.na-card-name {
  font-family: 'Ponter Alt', sans-serif;
  font-size: 0.78rem;
  font-weight: 100;
  letter-spacing: 0.08em;
  color: #ffffff;
  -webkit-text-stroke: 0px;
  text-transform: none;
}

/* ── SELECTED TITLES → PURE WHITE ─────────────────────────
   Key display titles get #fff for maximum punch.
──────────────────────────────────────────────────────────── */
.hero-title,
.hero-title-line,
.section-title,
.page-title,
.logo-text,
.cart-sidebar-title,
.summary-title,
.orders-section-title,
.compat-hero-title,
.compat-cta-title {
  color: #ffffff;
}

/* Contact page hero and form titles stay cream-gold */
.contact-hero-title,
.contact-form-title {
  color: var(--cream);
}

/* Nav logo stays cream so it doesn't blow out against dark bg */
.logo-text {
  color: var(--cream);
}

/* ── HERO TITLE — also white ──────────────────────────── */
.hero-title {
  color: #ffffff;
  text-shadow: 0 2px 40px rgba(0,0,0,0.5), 0 0 80px rgba(200,169,110,0.15);
}

/* ── BODY FONT for body tag ──────────────────────────── */
body {
  /* font-family: var(--font-body); */
    font-family: 'Lato', sans-serif;

}


/* ── LEAGUE GOTHIC @font-face (body p tags on content pages) ── */
@font-face {
  font-family: 'League Gothic';
  src: url('./fonts/league-gothic.regular.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

/* ── PRODUK TERPOPULER label → KnightWarrior ───────────────── */
.na-label {
  font-family: 'KnightWarrior', Georgia, serif !important;
  font-size: 1.05rem;
  letter-spacing: 0.18em;
  color: var(--cream);
}

/* ── Carousel card price → #c8a96e always ──────────────────── */
.na-card-price {
  font-family: var(--font-mono);
  font-size: .75rem;
  color: #c8a96e !important;
}

/* ── Search input placeholder → Ponter Alt ─────────────────── */
.search-input {
  /* font-family: 'Ponter Alt', sans-serif; */
  font-family: 'Lato', sans-serif;
}
.search-input::placeholder {
  font-family: 'Lato', sans-serif;
  /* font-family: 'Ponter Alt', sans-serif; */
  color: rgba(232,224,208,0.35);
}

/* ── Footer: "Professional underground crafters" + contact rows → Lato ── */
.footer-brand p,
.footer-contact-row,
.footer-contact-row a,
.footer-contact-row span,
.footer-bottom p {
  font-family: 'Lato', sans-serif;
  font-style: normal;
  letter-spacing: 0.03em;
}
