@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&family=Space+Mono:ital,wght@0,400;0,700;1,400&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&display=swap');

/* ═══════════════════════════════════════════════
   CACHE BRAND — DESIGN SYSTEM v3
   Aesthetic: Editorial Streetwear × Industrial
   ═══════════════════════════════════════════════ */

:root {
  --black:     #080808;
  --off-black: #0e0e0e;
  --card-bg:   #111111;
  --surface:   #161616;
  --border:    #1e1e1e;
  --border-2:  #2a2a2a;
  --white:     #f2f0ec;
  --white-dim: #9a9590;
  --white-faint:#3a3835;
  --accent:    #c8f53c;
  --accent-dim:rgba(200,245,60,0.12);
  --accent-glow:rgba(200,245,60,0.25);
  --red:       #ff3030;
  --orange:    #ff7b00;
  --font-display:'Bebas Neue', sans-serif;
  --font-mono:   'Space Mono', monospace;
  --font-body:   'DM Sans', sans-serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t: all 0.3s var(--ease);
}

/* THEME OVERRIDES */
body.theme-neon {
  --accent: #ff2d78;
  --accent-dim: rgba(255,45,120,0.12);
  --accent-glow: rgba(255,45,120,0.25);
}
body.theme-minimalist {
  --accent: #ff6a00;
  --accent-dim: rgba(255,106,0,0.12);
  --accent-glow: rgba(255,106,0,0.25);
}


/* ════════════════════════════════════════
   LIGHT MODE THEME
   ════════════════════════════════════════ */
body.theme-light,
html.theme-light-html body {
  --black:      #f8f7f5;
  --off-black:  #eeece8;
  --card-bg:    #ffffff;
  --surface:    #f2f0eb;
  --border:     #dedad2;
  --border-2:   #c4c0b6;
  --white:      #18171a;
  --white-dim:  #4a4752;
  --white-faint:#8a8794;
  --accent:     #6c47ff;
  --accent-dim: rgba(108,71,255,0.10);
  --accent-glow:rgba(108,71,255,0.22);
  --red:        #d42020;
  --orange:     #d45a00;
  background: var(--black);
  color: var(--white);
}

body.theme-light .cyber-navbar {
  background: rgba(248,247,245,0.95);
  border-bottom-color: var(--border);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

body.theme-light .brand-logo-text {
  color: var(--white);
}

body.theme-light .nav-link-custom {
  color: var(--white-dim);
}
body.theme-light .nav-link-custom:hover,
body.theme-light .nav-link-custom.active {
  color: var(--accent);
  background: var(--accent-dim);
}

body.theme-light .homepage-hero::after {
  background: radial-gradient(ellipse, rgba(108,71,255,0.04), transparent 70%);
}

body.theme-light .cyber-card {
  background: var(--card-bg);
  border-color: var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
body.theme-light .cyber-card:hover {
  background: #f7f6ff;
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(108,71,255,0.12);
}

body.theme-light .card-img-wrapper { background: #f2f0eb; }

body.theme-light .card-name { color: var(--white); }
body.theme-light .card-price { color: var(--accent); }
body.theme-light .card-category { color: var(--white-faint); }

body.theme-light .btn-cyber-solid {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
}
body.theme-light .btn-cyber-solid:hover {
  background: transparent;
  color: var(--accent);
  border-color: var(--accent);
}

body.theme-light .btn-cyber-outline {
  border-color: var(--border-2);
  color: var(--white-dim);
}
body.theme-light .btn-cyber-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}

body.theme-light .cyber-input {
  background: #ffffff;
  border-color: var(--border-2);
  color: var(--white);
}
body.theme-light .cyber-input::placeholder { color: var(--white-faint); }
body.theme-light .cyber-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(108,71,255,0.10);
}

body.theme-light .admin-table th {
  background: var(--surface);
  color: var(--white-dim);
}
body.theme-light .admin-table tbody tr:hover { background: #f5f3ff; }
body.theme-light .empty-terminal { background: var(--surface); }
body.theme-light .login-wrapper { background: var(--off-black); }
body.theme-light .cyber-footer {
  background: var(--off-black);
  border-top-color: var(--border);
}

body.theme-light .alert-cyber-success {
  background: rgba(108,71,255,0.06);
  border-color: rgba(108,71,255,0.25);
  color: var(--white);
}

body.theme-light .section-tag {
  color: var(--accent);
  border-color: var(--accent-dim);
  background: var(--accent-dim);
}

body.theme-light .section-heading { color: var(--white); }
body.theme-light .section-sub { color: var(--white-dim); }

body.theme-light::-webkit-scrollbar-track { background: var(--off-black); }
body.theme-light::-webkit-scrollbar-thumb { background: var(--border-2); }
body.theme-light::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* Noise texture very subtle in light mode */
body.theme-light::before { opacity: 0.15; }

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

html {
  scroll-behavior: smooth;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.6;
}

.font-mono { font-family: var(--font-mono); letter-spacing: 0.03em; }

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: var(--black); }
::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 2px; }
::-webkit-scrollbar-thumb:hover { background: var(--white-dim); }

/* ── NOISE TEXTURE ── */
body::before {
  content: "";
  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='0.035'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9998;
  opacity: 0.6;
}

/* ── LAYOUT ── */
.main-container { flex: 1; display: flex; flex-direction: column; }
.container-custom { max-width: 1240px; margin: 0 auto; padding: 0 2rem; width: 100%; }


.brand-logo-text {
  font-family: var(--font-display);
  font-size: 1.9rem;
  letter-spacing: 0.12em;
  color: var(--white);
  text-decoration: none;
  line-height: 1;
  display: flex;
  align-items: center;
  gap: 0.15em;
  transition: var(--t);
}
.brand-logo-text span {
  color: var(--accent);
  font-size: 0.65em;
  vertical-align: super;
  font-family: var(--font-mono);
}
.brand-logo-text:hover { opacity: 0.7; }

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

.nav-link-custom {
  color: var(--white-dim);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.4rem 0.9rem;
  border-radius: 3px;
  transition: var(--t);
  position: relative;
}
.nav-link-custom:hover, .nav-link-custom.active {
  color: var(--white);
  background: var(--border);
}
.nav-link-custom.active { color: var(--accent); }

.system-status {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--white-faint);
  letter-spacing: 0.08em;
  border: 1px solid var(--border);
  padding: 0.3rem 0.75rem;
  border-radius: 3px;
}
.status-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
  animation: pulse 2.5s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { opacity: 0.4; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* ════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════ */
.cyber-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--off-black);
  padding: 1.75rem 2.5rem;
}
.footer-content {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--white-faint);
}
.footer-specs {
  display: flex;
  gap: 2rem;
  text-transform: uppercase;
}
.footer-specs span::before { content: '/ '; color: var(--accent); }

/* ════════════════════════════════════════
   HERO
   ════════════════════════════════════════ */
.homepage-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 2rem 5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Cross-hatch background pattern */
.homepage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--border) 1px, transparent 1px),
    linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, black 40%, transparent 100%);
  opacity: 0.4;
}

.homepage-hero::after {
  content: '';
  position: absolute;
  bottom: 0; left: 50%;
  transform: translateX(-50%);
  width: 600px; height: 300px;
  background: radial-gradient(ellipse, var(--accent-glow), transparent 70%);
  pointer-events: none;
  pointer-events: none;
}

.hero-subtitle {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--accent);
  letter-spacing: 0.3em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  position: relative;
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(5rem, 14vw, 12rem);
  letter-spacing: 0.06em;
  line-height: 0.9;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 2rem;
  position: relative;
}

.hero-title span { color: var(--accent); }

.hero-desc {
  color: var(--white-dim);
  font-size: 1rem;
  max-width: 540px;
  line-height: 1.65;
  margin-bottom: 0;
  position: relative;
}

/* ════════════════════════════════════════
   PRODUCT GRID CARDS
   ════════════════════════════════════════ */
.grid-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5px;
  margin-bottom: 4rem;
  background: var(--border);
  border: 1px solid var(--border);
}

.cyber-card {
  background: var(--card-bg);
  position: relative;
  display: flex;
  flex-direction: column;
  transition: var(--t);
  overflow: hidden;
}
.cyber-card:hover { background: #141414; }



/* Corner brackets */
.card-bracket-tl, .card-bracket-br {
  position: absolute;
  width: 14px; height: 14px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 10;
}
.card-bracket-tl {
  top: 10px; left: 10px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
}
.card-bracket-br {
  bottom: 10px; right: 10px;
  border-bottom: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
}


.card-img-wrapper {
  position: relative;
  padding-top: 115%;
  background: #080808;
  overflow: hidden;
}

.card-img-custom {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 8px;
  transition: transform 0.5s var(--ease);
}
.cyber-card:hover .card-img-custom { transform: scale(1.03); }

.card-tag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0.2rem 0.6rem;
  background: rgba(8,8,8,0.85);
  border: 1px solid var(--border-2);
  color: var(--accent);
}

.card-body-custom {
  padding: 1.4rem 1.6rem 1.6rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  border-top: 1px solid var(--border);
}

.card-code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--white-faint);
  letter-spacing: 0.1em;
  margin-bottom: 0.35rem;
}

.card-title-custom {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--white);
  margin-bottom: 1rem;
  line-height: 1.1;
}

.card-specs {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.card-price {
  font-family: var(--font-mono);
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}

/* ════════════════════════════════════════
   CATEGORY FILTERS
   ════════════════════════════════════════ */
.category-filters {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 0;
  padding: 1.75rem 0;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  margin-bottom: 1.5px;
}

.filter-btn {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.45rem 1.2rem;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
}
.filter-btn:hover {
  border-color: var(--white-dim);
  color: var(--white);
}
.filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  font-weight: 700;
}

/* ════════════════════════════════════════
   BUTTONS
   ════════════════════════════════════════ */
.btn-cyber {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-cyber:hover {
  border-color: var(--white);
  color: var(--white);
  background: var(--surface);
}

.btn-cyber-solid {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: var(--black);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: var(--t);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
}
.btn-cyber-solid:hover {
  background: transparent;
  color: var(--accent);
}

.btn-cyber-secondary {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--white-faint);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.6rem 1.4rem;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.btn-cyber-secondary:hover {
  border-color: var(--white-faint);
  color: var(--white-dim);
}

/* ════════════════════════════════════════
   FORMS
   ════════════════════════════════════════ */
.cyber-input-group { margin-bottom: 1.5rem; }

.cyber-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white-faint);
  margin-bottom: 0.5rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.cyber-input {
  width: 100%;
  background: var(--off-black);
  border: 1px solid var(--border-2);
  color: var(--white);
  padding: 0.8rem 1rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: var(--t);
  outline: none;
  border-radius: 0;
  -webkit-appearance: none;
}
.cyber-input::placeholder { color: var(--white-faint); }
.cyber-input:focus {
  border-color: var(--accent);
  background: var(--card-bg);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
textarea.cyber-input { resize: vertical; line-height: 1.5; }

/* Size / Color chips */
.size-checkbox-group {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.size-checkbox-item { position: relative; }
.size-checkbox-item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.size-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  background: var(--off-black);
  border: 1px solid var(--border-2);
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  cursor: pointer;
  user-select: none;
  transition: var(--t);
}
.size-checkbox-item input:checked ~ .size-label {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--black);
  font-weight: 700;
}
.size-checkbox-item:hover .size-label {
  border-color: var(--white-dim);
  color: var(--white);
}

/* ════════════════════════════════════════
   ALERTS
   ════════════════════════════════════════ */
.alert-cyber {
  background: rgba(255,48,48,0.07);
  border: 1px solid rgba(255,48,48,0.4);
  color: #ff6060;
  padding: 0.9rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}
.alert-cyber-success {
  background: var(--accent-dim);
  border: 1px solid rgba(200,245,60,0.3);
  color: var(--accent);
  padding: 0.9rem 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════
   EMPTY TERMINAL STATE
   ════════════════════════════════════════ */
.empty-terminal {
  max-width: 580px;
  margin: 3.5rem auto;
  border: 1px solid var(--border-2);
  background: var(--off-black);
  padding: 2.5rem;
  position: relative;
}
.empty-terminal::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: linear-gradient(90deg, var(--accent), transparent);
}
.empty-terminal-header {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1rem;
  margin-bottom: 1.5rem;
  color: var(--white-faint);
}
.empty-terminal-dots { display: flex; gap: 0.4rem; }
.terminal-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-2);
}
.terminal-dot.active { background: var(--accent); }
.terminal-title {
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.9rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.terminal-text {
  color: var(--white-dim);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.65;
  margin-bottom: 2rem;
}

/* ════════════════════════════════════════
   DESIGN DETAIL PAGE
   ════════════════════════════════════════ */
.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  align-items: start;
}
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 3rem; }
}

.detail-img-card {
  position: sticky;
  top: 80px;
  background: var(--off-black);
  border: 1px solid var(--border);
  overflow: hidden;
}
.detail-img {
  width: 100%;
  display: block;
  object-fit: contain;
  max-height: 700px;
  background: #080808;
}

.detail-info { display: flex; flex-direction: column; padding: 1rem 0; }

.detail-code {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white-faint);
  letter-spacing: 0.15em;
  margin-bottom: 0.6rem;
  text-transform: uppercase;
}

.detail-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  line-height: 0.95;
  margin-bottom: 1.5rem;
  color: var(--white);
}

.detail-price {
  font-family: var(--font-mono);
  font-size: 2rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 2.5rem;
  display: flex;
  align-items: center;
  gap: 1.2rem;
}
.detail-price::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-2);
}

.detail-section-title {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white-faint);
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.detail-section-title::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.detail-desc { color: var(--white-dim); line-height: 1.7; font-size: 0.95rem; }

/* Specs table */
.tech-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; margin-bottom: 2rem; }
.tech-table tr { border-bottom: 1px solid var(--border); }
.tech-table td { padding: 0.85rem 0; }
.tech-table td:first-child { color: var(--white-faint); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; width: 45%; }
.tech-table td:last-child { color: var(--white); text-align: right; }

/* ════════════════════════════════════════
   ADMIN LAYOUT
   ════════════════════════════════════════ */
.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid var(--border);
  padding-bottom: 1.75rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.admin-title-group { display: flex; flex-direction: column; gap: 0.3rem; }
.admin-subtitle {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.admin-title {
  font-family: var(--font-display);
  font-size: 2.8rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  line-height: 1;
}

/* Admin stat cards */
.admin-stat-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  padding: 1.75rem;
  position: relative;
  overflow: hidden;
  transition: var(--t);
}
.admin-stat-card::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s var(--ease);
}


/* Admin table */
.admin-table-wrapper {
  background: var(--off-black);
  border: 1px solid var(--border);
  overflow-x: auto;
  margin-bottom: 2rem;
}
.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  text-align: left;
  min-width: 700px;
}
.admin-table th {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border);
  color: var(--white-faint);
  padding: 0.9rem 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 400;
}
.admin-table td {
  padding: 1rem 1.4rem;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  color: var(--white-dim);
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr {
  transition: background 0.15s ease;
}
.admin-table tbody tr:hover { background: var(--surface); }
.admin-img-thumb {
  width: 42px; height: 42px;
  object-fit: cover;
  border: 1px solid var(--border);
}

.admin-actions { display: flex; gap: 0.4rem; }
.btn-admin-action {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.8rem;
  text-decoration: none;
  cursor: pointer;
  transition: var(--t);
  border: 1px solid;
  background: transparent;
  display: inline-block;
}
.btn-admin-action.edit { border-color: var(--border-2); color: var(--white-dim); }
.btn-admin-action.edit:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-admin-action.delete { border-color: rgba(255,48,48,0.3); color: rgba(255,96,96,0.7); }
.btn-admin-action.delete:hover { border-color: var(--red); color: var(--red); background: rgba(255,48,48,0.08); }

/* ════════════════════════════════════════
   LOGIN
   ════════════════════════════════════════ */
.login-wrapper {
  max-width: 420px;
  width: 100%;
  padding: 3.5rem 3rem;
  background: var(--off-black);
  border: 1px solid var(--border);
  position: relative;
}
.login-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 2px;
  background: var(--accent);
}
.login-header { text-align: center; margin-bottom: 2.5rem; }
.login-logo {
  font-family: var(--font-display);
  font-size: 3rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
  color: var(--white);
}
.login-logo span { color: var(--accent); }
.login-desc {
  font-family: var(--font-mono);
  font-size: 0.65rem;
  color: var(--white-faint);
  text-transform: uppercase;
  letter-spacing: 0.2em;
}

/* ════════════════════════════════════════
   FILE UPLOAD
   ════════════════════════════════════════ */
.file-upload-wrapper {
  position: relative;
  border: 1px dashed var(--border-2);
  background: var(--off-black);
  padding: 2.5rem 2rem;
  text-align: center;
  transition: var(--t);
  cursor: pointer;
}
.file-upload-wrapper:hover { border-color: var(--white-dim); background: var(--surface); }
.file-upload-input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
  width: 100%;
  height: 100%;
}
.file-upload-text { font-family: var(--font-mono); font-size: 0.78rem; color: var(--white-dim); }
.file-upload-text span { color: var(--accent); }
.preview-container { display: none; }
.preview-img { max-width: 100px; max-height: 100px; object-fit: cover; border: 1px solid var(--border); }

/* ════════════════════════════════════════
   CHECKOUT / ORDER DETAILS
   ════════════════════════════════════════ */
.cyber-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════
   DARK/LIGHT MODE TOGGLE SWITCH
   ════════════════════════════════════════ */
.theme-toggle {
  position: relative;
  width: 56px;
  height: 28px;
  border-radius: 99px;
  background: var(--surface);
  border: 1px solid var(--border-2);
  cursor: pointer;
  transition: background 0.4s var(--ease), border-color 0.4s var(--ease);
  display: flex;
  align-items: center;
  padding: 0;
  flex-shrink: 0;
}
.theme-toggle:hover {
  border-color: var(--white-dim);
}

.theme-toggle-thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--white);
  transition: transform 0.4s var(--ease), background 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.theme-toggle.is-light .theme-toggle-thumb {
  transform: translateX(28px);
}

.theme-toggle-icon {
  width: 12px;
  height: 12px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.theme-toggle-icon.sun {
  color: var(--black);
}
.theme-toggle-icon.moon {
  color: var(--black);
}

/* ════════════════════════════════════════
   GOOGLE SIGN-IN BUTTON
   ════════════════════════════════════════ */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.75rem 0;
  color: var(--white-faint);
  font-family: var(--font-mono);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-2);
}

.btn-google-signin {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  height: 52px;
  background: var(--off-black);
  border: 1px solid var(--border-2);
  border-radius: 0;
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--t);
  text-decoration: none;
  position: relative;
  overflow: hidden;
}
.btn-google-signin::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(66,133,244,0.04), rgba(234,67,53,0.04), rgba(251,188,4,0.04), rgba(52,168,83,0.04));
  opacity: 0;
  transition: opacity 0.3s ease;
}
.btn-google-signin:hover {
  border-color: var(--white-dim);
  background: var(--surface);
}
.btn-google-signin:hover::before {
  opacity: 1;
}
.btn-google-signin:active {
  transform: scale(0.98);
}

.google-icon-wrapper {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.google-icon-wrapper svg {
  width: 20px;
  height: 20px;
}

/* Light mode overrides for Google button */
body.theme-light .btn-google-signin {
  background: #fff;
  border-color: var(--border-2);
}
body.theme-light .btn-google-signin:hover {
  background: var(--off-black);
  border-color: var(--white-dim);
}

/* Google not configured warning */
.google-not-configured {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: rgba(255,123,0,0.06);
  border: 1px solid rgba(255,123,0,0.2);
  color: var(--orange);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.03em;
  margin-bottom: 1.5rem;
}

/* ════════════════════════════════════════
   NAVBAR RESPONSIVE
   ════════════════════════════════════════ */
.cyber-navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(8,8,8,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0 2.5rem;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.nav-links-desktop {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.25rem;
  align-items: center;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.nav-auth-desktop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-cart-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--white);
  border: none;
  background: none;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 3px;
  transition: background 0.2s;
}
.nav-cart-btn:hover { background: var(--surface); }

.cart-badge {
  font-size: 0.65rem;
  background: var(--accent);
  color: var(--black);
  border-radius: 99px;
  padding: 0 6px;
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

/* ── Hamburger button ── */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 38px;
  height: 38px;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 3px;
  cursor: pointer;
  padding: 0;
  transition: border-color 0.2s;
  flex-shrink: 0;
}
.nav-hamburger:hover { border-color: var(--accent); }

.ham-line {
  display: block;
  width: 18px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: all 0.3s var(--ease);
  transform-origin: center;
}

/* Hamburger → X animation */
.nav-hamburger.open .ham-line:nth-child(1) {
  transform: translateY(6.5px) rotate(45deg);
}
.nav-hamburger.open .ham-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.nav-hamburger.open .ham-line:nth-child(3) {
  transform: translateY(-6.5px) rotate(-45deg);
}

/* ── Mobile Drawer ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8,8,8,0.97);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 999;
  border-top: 1px solid var(--border);
  transform: translateY(-10px);
  opacity: 0;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}
.mobile-menu-inner {
  padding: 2rem 1.5rem 3rem;
  max-width: 480px;
  margin: 0 auto;
}
.mobile-menu-links {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-nav-link {
  display: block;
  font-family: var(--font-display);
  font-size: 2rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--white-dim);
  text-decoration: none;
  padding: 1rem 0;
  border-bottom: 1px solid var(--border);
  transition: color 0.2s, padding-left 0.2s;
}
.mobile-nav-link:hover {
  color: var(--white);
  padding-left: 0.5rem;
}
.mobile-nav-link:first-child { border-top: 1px solid var(--border); }
.mobile-nav-cta {
  color: var(--accent) !important;
}
.mobile-menu-divider {
  height: 1px;
  background: var(--border-2);
  margin: 1.5rem 0;
}
.mobile-menu-auth {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.mobile-menu-auth .mobile-nav-link {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  letter-spacing: 0.1em;
  color: var(--white-faint);
  border: none;
  padding: 0.75rem 0;
}
.mobile-menu-auth .mobile-nav-link:first-child { border-top: none; }
.mobile-nav-greeting {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: block;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

/* ════════════════════════════════════════
   RESPONSIVE BREAKPOINTS
   ════════════════════════════════════════ */

/* Tablet — 1024px */
@media (max-width: 1024px) {
  .cyber-navbar { padding: 0 1.5rem; }
  .container-custom { padding: 0 1.5rem; }
}

/* Small tablet — 900px */
@media (max-width: 900px) {
  .detail-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .detail-img-card { position: static; }
  .checkout-grid { grid-template-columns: 1fr !important; }
}

/* Mobile — 768px */
@media (max-width: 768px) {
  /* Navbar */
  .cyber-navbar { padding: 0 1rem; height: 60px; }
  .nav-links-desktop { display: none; }
  .nav-hamburger { display: flex; }
  .system-status { display: none; }
  .nav-auth-desktop { display: none; }

  /* Mobile menu correct top offset */
  .mobile-menu { top: 60px; }

  /* Container */
  .container-custom { padding: 0 1rem; }

  /* Hero */
  .homepage-hero { padding: 4rem 1rem 3rem; }
  .hero-title { font-size: clamp(3rem, 16vw, 6rem); }
  .hero-desc { font-size: 0.9rem; }

  /* Product grid — 2 columns on tablet */
  .grid-catalog { grid-template-columns: 1fr 1fr; gap: 1px; }

  /* Admin */
  .admin-title { font-size: 2rem; }
  .admin-header { flex-direction: column; align-items: flex-start; }

  /* Footer */
  .cyber-footer { padding: 1.25rem 1rem; }
  .footer-content { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
  .footer-specs { gap: 1rem; }

  /* Detail page */
  .detail-title { font-size: clamp(2rem, 10vw, 3rem); }
  .detail-price { font-size: 1.5rem; }

  /* Login */
  .login-wrapper { padding: 2.5rem 1.5rem; margin: 1rem; }

  /* Category filters scrollable */
  .category-filters { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 1rem; }
  .category-filters::-webkit-scrollbar { height: 2px; }
  .filter-btn { white-space: nowrap; flex-shrink: 0; }
}

/* Small mobile — 480px */
@media (max-width: 480px) {
  /* 1 column product grid */
  .grid-catalog { grid-template-columns: 1fr; gap: 1px; }
  .hero-title { font-size: clamp(2.8rem, 18vw, 5rem); }
  .hero-subtitle { font-size: 0.65rem; letter-spacing: 0.2em; }

  /* Touch-friendly buttons */
  .btn-cyber-solid { padding: 0.85rem 1.5rem; font-size: 0.8rem; }
  .btn-cyber { padding: 0.75rem 1.2rem; }
  .size-label { width: 44px; height: 44px; }

  /* Login full-width */
  .login-wrapper { margin: 0.5rem; width: calc(100% - 1rem); }

  /* Admin table scroll */
  .admin-table-wrapper { overflow-x: auto; }

  /* Detail page */
  .detail-grid { padding: 0 1rem; }
}

/* Very small — 360px */
@media (max-width: 360px) {
  .brand-logo-text { font-size: 1.5rem; }
  .hero-title { font-size: 2.5rem; }
  .mobile-nav-link { font-size: 1.6rem; }
}

/* ════════════════════════════════════════
   TOUCH IMPROVEMENTS
   ════════════════════════════════════════ */
@media (hover: none) and (pointer: coarse) {
  /* Increase tap targets */
  .nav-link-custom { padding: 0.5rem 1rem; }
  .filter-btn { padding: 0.6rem 1.4rem; }
  .btn-admin-action { padding: 0.5rem 1rem; }
}

