/* ─── CHIPFORGE shop.css ─── */
/* Extracted from inline JS styles in shop.html */

* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #0a0a0a; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
input[type="number"] { -moz-appearance: textfield; }

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: #0a0a0a; }
::-webkit-scrollbar-thumb { background: #363636; border-radius: 4px; }

/* ─── App ─── */
.app {
  font-family: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  background-color: #0a0a0a;
  color: #e0e0e0;
  min-height: 100vh;
  position: relative;
}

/* ─── Toast ─── */
.toast {
  position: fixed; top: 24px; right: 24px; z-index: 9999;
  background: #ffffff; color: #0a0a0a; padding: 12px 24px;
  border-radius: 8px; font-weight: 700; font-size: 13px;
  animation: fadeIn 0.3s ease;
  box-shadow: 0 8px 24px rgba(255,255,255,0.15);
}

/* ─── Nav ─── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,10,0.92); backdrop-filter: blur(20px);
  border-bottom: 1px solid #252525; padding: 0 24px;
}
.nav-inner {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between; align-items: center;
  height: 64px;
}
.nav-left { display: flex; align-items: center; gap: 32px; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.logo {
  font-size: 20px; font-weight: 800; cursor: pointer;
  letter-spacing: -0.5px; color: #f5f5f5;
  display: flex; align-items: center; gap: 8px;
}
.logo-icon { width: 28px; height: 28px; object-fit: contain; }
.logo-ch { color: #888888; font-weight: 800; }
.nav-links { display: flex; gap: 20px; }
.nav-link {
  font-size: 13px; color: #999999; cursor: pointer;
  transition: color 0.2s; font-weight: 500;
}
.nav-dropdown {
  position: absolute; top: calc(100% + 12px); left: 0;
  background: #161616; border: 1px solid #252525;
  border-radius: 10px; padding: 6px 0; min-width: 240px;
  box-shadow: 0 12px 32px rgba(0,0,0,0.4); z-index: 200;
}
.nav-dropdown-item {
  padding: 10px 16px; font-size: 13px; font-weight: 500;
  color: #e0e0e0; cursor: pointer; transition: background 0.15s;
  display: flex; justify-content: space-between; align-items: center;
}
.nav-dropdown-item:hover { background: #252525; }
.nav-dropdown-count {
  font-size: 11px; color: #6b6b6b; font-weight: 600;
}
.nav-search {
  background: #252525; border-radius: 8px; padding: 6px 12px;
}
.nav-search-input {
  background: transparent; border: none; color: #e0e0e0;
  font-size: 13px; outline: none; width: 160px;
  font-family: inherit;
}
.login-btn {
  background: transparent; border: 1px solid #363636;
  color: #e0e0e0; padding: 7px 16px; border-radius: 8px;
  font-size: 13px; cursor: pointer; font-family: inherit; font-weight: 600;
}
.cart-btn {
  background: transparent; border: none;
  font-size: 20px; cursor: pointer; position: relative;
  filter: grayscale(0);
}
.cart-badge {
  position: absolute; top: -6px; right: -10px;
  background: #ffffff; color: #0a0a0a; font-size: 10px;
  font-weight: 800; border-radius: 99px; padding: 2px 6px;
  font-family: inherit;
}
.user-badge {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
}
.user-avatar {
  width: 28px; height: 28px; border-radius: 99px;
  background: #505050; display: flex; align-items: center;
  justify-content: center; font-size: 13px; font-weight: 800;
}
.user-name { font-size: 13px; font-weight: 600; }

/* ─── Hero ─── */
.hero {
  position: relative; overflow: hidden;
  padding: 80px 24px 64px; text-align: center;
  background: linear-gradient(180deg, #111111 0%, #0a0a0a 100%);
}
.hero-pattern {
  position: absolute; inset: 0; opacity: 0.06;
  background-image: linear-gradient(#ffffff 1px, transparent 1px), linear-gradient(90deg, #ffffff 1px, transparent 1px);
  background-size: 40px 40px;
}
.hero-content { position: relative; max-width: 900px; margin: 0 auto; }
.hero-row { display: flex; align-items: center; gap: 48px; justify-content: center; }
.hero-logo { width: 180px; height: 180px; object-fit: contain; flex-shrink: 0; }
.hero-text { text-align: left; }
.hero-badge {
  display: inline-block; background: #252525;
  border: 1px solid #363636; border-radius: 99px;
  padding: 6px 16px; font-size: 12px; font-weight: 600;
  margin-bottom: 24px; letter-spacing: 0.5px;
}
.hero-title { font-size: 26px; font-weight: 900; line-height: 1.15; margin-bottom: 20px; letter-spacing: -0.5px; }
.hero-title-accent { color: #ffffff; }
.hero-title-accent2 { color: #888888; }
.hero-title-accent3 { color: #707070; }
.hero-sub {
  font-size: 16px; color: #999999; line-height: 1.6;
  max-width: 560px; margin: 0 0 32px;
}
.hero-search {
  display: flex; align-items: center;
  background: #252525; border: 1px solid #363636;
  border-radius: 12px; padding: 14px 20px;
  max-width: 520px; margin: 0 auto;
}
.search-icon { font-size: 20px; margin-right: 12px; color: #6b6b6b; }
.hero-search-input {
  flex: 1; background: transparent; border: none;
  color: #e0e0e0; font-size: 15px; outline: none;
  font-family: 'JetBrains Mono', monospace;
}

/* ─── Sections ─── */
.section { max-width: 1280px; margin: 0 auto; padding: 48px 24px; }
.section-title {
  font-size: 24px; font-weight: 800; margin-bottom: 28px;
  letter-spacing: -0.5px;
}

/* ─── Category Grid ─── */
.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}
.cat-card {
  background: #161616; border: 1px solid #252525;
  border-radius: 12px; padding: 24px; cursor: pointer;
  transition: all 0.25s ease;
}
.cat-card:hover {
  transform: translateY(-3px);
}
.cat-icon { font-size: 32px; margin-bottom: 12px; }
.cat-name { font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.cat-count { font-size: 12px; color: #6b6b6b; font-weight: 500; }

/* ─── Sub-categories ─── */
.sub-cat-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 24px; }
.sub-cat-chip {
  background: #252525; border: 1px solid #363636;
  border-radius: 99px; padding: 6px 14px; font-size: 12px;
  cursor: pointer; font-weight: 500;
}

/* ─── Product Grid ─── */
.product-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.product-card {
  background: #161616; border: 1px solid #252525;
  border-radius: 12px; overflow: hidden; cursor: pointer;
  transition: all 0.25s ease; position: relative;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  display: flex; flex-direction: column;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(0,0,0,0.25);
}
.card-image {
  height: 140px; display: flex; align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 40%, #2a2a2a 0%, #1a1a1a 50%, #111111 100%);
  position: relative;
  overflow: hidden;
}
.card-image img {
  filter: drop-shadow(0 8px 16px rgba(0,0,0,0.5));
}
.card-body { padding: 16px 20px 12px; flex: 1; }
.card-sku {
  font-size: 10px; font-weight: 600; color: #4a4a4a;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px;
  margin-bottom: 4px;
}
.card-cat {
  font-size: 10px; font-weight: 700; color: #6b6b6b;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 6px;
}
.card-name { font-size: 15px; font-weight: 700; margin-bottom: 6px; line-height: 1.3; }
.card-specs {
  font-size: 11px; color: #6b6b6b; margin-bottom: 12px;
  line-height: 1.4; min-height: 32px;
}
.card-footer {
  display: flex; justify-content: space-between;
  align-items: center; padding: 10px 16px;
  background: linear-gradient(135deg, #1a1a1a 0%, #141414 100%);
  border-top: 1px solid #2a2a2a;
  border-radius: 0 0 16px 16px;
  margin-top: auto;
}
.card-price { font-size: 13px; font-weight: 700; color: #ffffff; }
.card-stock { font-size: 11px; font-weight: 600; }
.card-datasheet-badge {
  margin-top: 10px; font-size: 11px; color: #999999;
  background: #252525; border-radius: 6px; padding: 4px 10px;
  display: inline-block;
}
.card-cart-btn {
  width: 32px; height: 32px; border-radius: 99px;
  background: transparent; color: #ffffff; border: none;
  font-size: 14px; font-weight: 800; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit; flex-shrink: 0;
  transition: background 0.2s;
}
.card-cart-btn:hover:not(:disabled) {
  background: #e0e0e0;
}
.card-video {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-video {
  width: 100%; height: 100%; object-fit: contain; border-radius: 16px;
}

/* ─── Detail ─── */
.detail-page { max-width: 1080px; margin: 0 auto; padding: 32px 24px; }
.back-btn {
  background: transparent; border: 1px solid #363636;
  color: #999999; padding: 8px 16px; border-radius: 8px;
  font-size: 13px; cursor: pointer; margin-bottom: 24px;
  font-family: inherit;
}
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 48px; align-items: start;
}
.detail-image {
  background: radial-gradient(circle at 50% 40%, #2a2a2a 0%, #1a1a1a 50%, #111111 100%);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  height: 400px; border: 1px solid #252525;
  overflow: hidden;
}
.detail-image img {
  filter: drop-shadow(0 16px 32px rgba(0,0,0,0.5));
  transform: scale(1.08);
}
.lightbox-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.6); z-index: 9999;
  display: flex; align-items: center; justify-content: center;
  cursor: default; animation: lightbox-fade-in 0.2s ease;
}
.lightbox-popup {
  position: relative; background: #1a1a1a; border: 1px solid #333;
  border-radius: 16px; padding: 24px;
  max-width: 700px; max-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 24px 80px rgba(0,0,0,0.7);
}
.lightbox-img {
  max-width: 100%; max-height: 70vh; object-fit: contain;
  border-radius: 8px; cursor: default;
}
.lightbox-close {
  position: absolute; top: 12px; right: 16px;
  background: transparent; border: none; color: #999;
  font-size: 22px; cursor: pointer; transition: color 0.2s;
}
.lightbox-close:hover { color: #fff; }
.lightbox-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.08); border: 1px solid #444;
  color: #ccc; font-size: 28px; width: 40px; height: 40px;
  border-radius: 99px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
}
.lightbox-arrow:hover { background: rgba(255,255,255,0.15); color: #fff; }
.lightbox-arrow-left { left: -56px; }
.lightbox-arrow-right { right: -56px; }
@keyframes lightbox-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* ─── Zoomable Lightbox (Fullscreen) ─── */
.zoom-lightbox-overlay {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: #000; z-index: 10000;
  display: flex; flex-direction: column;
  animation: lightbox-fade-in 0.2s ease;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.zoom-lightbox-top {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 16px;
  flex-shrink: 0;
}
.zoom-lightbox-hint {
  font-size: 12px; color: #666;
  font-family: 'JetBrains Mono', monospace;
}
.zoom-lightbox-close {
  background: transparent; border: none; color: #999;
  font-size: 24px; cursor: pointer; padding: 4px 8px;
  transition: color 0.2s;
}
.zoom-lightbox-close:hover { color: #fff; }
.zoom-lightbox-img-wrap {
  flex: 1; display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.zoom-lightbox-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  transform-origin: center center;
  will-change: transform;
}
.zoom-lightbox-nav {
  display: flex; align-items: center; justify-content: center; gap: 24px;
  padding: 12px 16px; flex-shrink: 0;
}
.zoom-lightbox-arrow {
  background: rgba(255,255,255,0.08); border: 1px solid #444;
  color: #ccc; width: 44px; height: 44px; border-radius: 50%;
  font-size: 24px; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  transition: background 0.2s;
}
.zoom-lightbox-arrow:hover { background: rgba(255,255,255,0.15); color: #fff; }
.zoom-lightbox-counter {
  font-size: 13px; color: #666;
  font-family: 'JetBrains Mono', monospace;
}
.zoom-lightbox-reset {
  position: absolute; bottom: 80px; left: 50%; transform: translateX(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid #444;
  color: #ccc; padding: 8px 20px; border-radius: 20px;
  font-size: 12px; cursor: pointer;
  font-family: 'JetBrains Mono', monospace;
  transition: background 0.2s;
}
.zoom-lightbox-reset:hover { background: rgba(255,255,255,0.2); color: #fff; }

.thumb-row {
  display: flex; gap: 8px; margin-top: 12px; overflow-x: auto;
  padding-bottom: 4px;
}
.thumb-item {
  width: 64px; height: 64px; border-radius: 8px; overflow: hidden;
  border: 2px solid #363636; cursor: pointer; flex-shrink: 0;
  transition: border-color 0.15s;
}
.thumb-img {
  width: 100%; height: 100%; object-fit: cover;
}
.detail-info {}
.detail-cat-badge {
  font-size: 11px; font-weight: 700; color: #6b6b6b;
  text-transform: uppercase; letter-spacing: 1px; margin-bottom: 8px;
}
.detail-sku {
  display: inline-block; font-size: 11px; font-weight: 600;
  color: #6b6b6b; background: #1a1a1a; border: 1px solid #2a2a2a;
  border-radius: 4px; padding: 2px 8px; margin-bottom: 8px;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px;
}
.detail-title { font-size: 28px; font-weight: 900; margin-bottom: 12px; letter-spacing: -0.5px; }
.detail-desc { font-size: 14px; color: #999999; line-height: 1.6; margin-bottom: 20px; }
.spec-box {
  background: #161616; border: 1px solid #252525;
  border-radius: 10px; padding: 16px; margin-bottom: 20px;
}
.spec-label {
  font-size: 10px; font-weight: 700; color: #525252;
  letter-spacing: 1.5px; margin-bottom: 8px;
}
.spec-text { font-size: 13px; color: #cccccc; line-height: 1.5; display: flex; flex-direction: column; gap: 6px; }
.spec-item { display: flex; align-items: center; gap: 10px; }
.spec-bullet { color: #525252; font-size: 10px; flex-shrink: 0; }
.detail-meta {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
}
.detail-price { font-size: 28px; font-weight: 900; color: #ffffff; }
.stock-badge {
  font-size: 12px; font-weight: 700; padding: 4px 12px;
  border-radius: 99px;
}
.add-to-cart-row {
  display: flex; gap: 0; align-items: center; margin-bottom: 28px;
  background: #161616; border: 1px solid #363636; border-radius: 12px;
  overflow: hidden; height: 52px;
}
.detail-qty-btn {
  width: 48px; height: 100%; background: transparent; border: none;
  color: #e0e0e0; font-size: 20px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s, color 0.15s;
  flex-shrink: 0;
}
.detail-qty-btn:hover { background: #252525; color: #e8870e; }
.detail-qty-btn:disabled { opacity: 0.3; cursor: default; }
.detail-qty-btn:disabled:hover { background: transparent; color: #e0e0e0; }
.detail-qty-value {
  width: 36px; text-align: center; font-size: 16px; font-weight: 700;
  color: #ffffff; font-family: inherit; flex-shrink: 0;
}
.add-to-cart-btn {
  flex: 1; height: 100%; background: #ffffff; color: #0a0a0a;
  border: none; border-left: 1px solid #363636;
  font-size: 15px; font-weight: 800; cursor: pointer;
  font-family: inherit; transition: background 0.2s;
  border-radius: 0;
}


/* ─── Datasheets ─── */
.datasheet-section {
  background: #161616; border: 1px solid #252525;
  border-radius: 12px; padding: 20px;
}
.datasheet-header {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 16px; padding-bottom: 12px;
  border-bottom: 1px solid #252525;
}
.datasheet-header-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 12px; border-bottom: 1px solid #252525;
  cursor: pointer; user-select: none;
}
.collapse-arrow {
  font-size: 16px; color: #6b6b6b; transition: transform 0.2s ease;
}
.datasheet-icon { font-size: 18px; }
.datasheet-title { font-size: 14px; font-weight: 700; }
.datasheet-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; border-radius: 8px;
  cursor: pointer; transition: background 0.15s;
  font-size: 13px;
}
.datasheet-row:hover { background: #252525; }
.datasheet-file-icon {
  width: 28px; height: 28px; border-radius: 6px;
  background: #252525; display: flex;
  align-items: center; justify-content: center;
  font-size: 14px; color: #ffffff; font-weight: 800;
  flex-shrink: 0;
}
.datasheet-name { flex: 1; font-weight: 500; }
.datasheet-size { font-size: 11px; color: #6b6b6b; }
.upload-area {
  margin-top: 12px; padding: 16px; border-radius: 8px;
  border: 1px dashed #363636; text-align: center;
  font-size: 13px; color: #6b6b6b; cursor: pointer;
}

/* ─── Modal ─── */
.overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.6); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.modal {
  background: #161616; border: 1px solid #252525;
  border-radius: 16px; width: 400px; max-width: 90vw;
  overflow: hidden;
}
.modal-header {
  display: flex; justify-content: space-between;
  align-items: center; padding: 20px 24px;
  border-bottom: 1px solid #252525;
}
.modal-title { font-size: 18px; font-weight: 800; }
.close-btn {
  background: transparent; border: none;
  color: #999999; font-size: 18px; cursor: pointer;
}
.modal-body { padding: 24px; }
.field-group { margin-bottom: 16px; }
.label {
  display: block; font-size: 12px; font-weight: 600;
  color: #999999; margin-bottom: 6px;
}
.input {
  width: 100%; padding: 10px 14px;
  background: #0a0a0a; border: 1px solid #363636;
  border-radius: 8px; color: #e0e0e0; font-size: 14px;
  font-family: inherit; outline: none;
  box-sizing: border-box;
}
.primary-btn {
  width: 100%; padding: 12px 0;
  background: #ffffff; color: #0a0a0a; border: none;
  border-radius: 10px; font-size: 14px; font-weight: 800;
  cursor: pointer; font-family: inherit;
  margin-top: 8px;
}
.switch-auth { text-align: center; font-size: 13px; color: #6b6b6b; margin-top: 16px; }
.switch-link { color: #ffffff; cursor: pointer; font-weight: 600; }

/* ─── Cart Drawer ─── */
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 420px; max-width: 100vw;
  background: #161616; border-left: 1px solid #252525;
  display: flex; flex-direction: column;
  z-index: 201;
}
.cart-items { flex: 1; overflow: auto; padding: 16px 24px; }
.empty-cart { color: #6b6b6b; text-align: center; margin-top: 48px; font-size: 14px; }
.cart-header-actions { display: flex; align-items: center; gap: 4px; }
.cart-action-btn {
  background: transparent; border: 1px solid #333; border-radius: 6px;
  padding: 4px 8px; font-size: 16px; cursor: pointer;
  transition: border-color 0.15s;
}
.cart-action-btn:hover { border-color: #555; }
.cart-import-btn {
  display: block; margin: 20px auto 0; padding: 10px 20px;
  background: #1a1a1a; border: 1px solid #333; border-radius: 8px;
  color: #9a9a9a; font-size: 13px; font-family: inherit;
  cursor: pointer;
}
.cart-import-btn:hover { border-color: #555; color: #e0e0e0; }
.cart-item {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 0; border-bottom: 1px solid #252525;
}
.cart-item-sku {
  font-size: 9px; font-weight: 600; color: #555;
  font-family: 'JetBrains Mono', monospace; letter-spacing: 0.5px;
  margin-bottom: 2px;
}
.cart-item-name { font-size: 13px; font-weight: 700; }
.cart-item-price { font-size: 12px; color: #e0e0e0; margin-top: 4px; }
.qty-controls { display: flex; align-items: center; gap: 8px; }
.qty-btn {
  width: 28px; height: 28px; border-radius: 6px;
  background: #252525; border: none;
  color: #e0e0e0; font-size: 16px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-family: inherit;
}
.qty-num { font-size: 14px; font-weight: 700; min-width: 20px; text-align: center; }
.remove-btn {
  background: transparent; border: none;
  color: #6b6b6b; font-size: 16px; cursor: pointer;
  margin-left: 8px;
}
.cart-footer {
  padding: 24px; border-top: 1px solid #252525;
  overflow-y: auto; overflow-x: hidden;
}
.cart-total {
  display: flex; justify-content: space-between;
  align-items: center; margin-bottom: 16px;
  font-size: 14px; font-weight: 600;
}
.cart-total-price { font-size: 22px; font-weight: 900; color: #ffffff; }
.cart-summary-row {
  display: flex; justify-content: space-between;
  align-items: center; font-size: 13px;
  color: #9a9a9a; margin-bottom: 8px;
}
.cart-shipping-hint {
  font-size: 12px; color: #fb923c;
  margin-bottom: 12px; text-align: center;
}
.checkout-btn {
  width: 100%; padding: 14px 0;
  background: #ffffff; color: #0a0a0a; border: none;
  border-radius: 10px; font-size: 15px; font-weight: 800;
  cursor: pointer; font-family: inherit;
}
.checkout-btn:hover { background: #e0e0e0; }
.checkout-btn:disabled { background: #555; color: #999; cursor: not-allowed; }
.checkout-pay-btn { background: #4ade80; color: #0a0a0a; }
.checkout-pay-btn:hover { background: #22c55e; }
.checkout-section-label {
  font-size: 11px; font-weight: 700; color: #6b6b6b;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px; overflow: hidden; text-overflow: ellipsis;
  white-space: nowrap;
}
.checkout-row {
  display: flex; gap: 8px; margin-bottom: 8px;
}
.checkout-input {
  flex: 1; min-width: 0; padding: 11px 12px;
  background: #1a1a1a; border: 1px solid #333; border-radius: 8px;
  color: #e0e0e0; font-size: 13px; font-family: inherit;
  outline: none; box-sizing: border-box;
}
.checkout-input::placeholder { color: #555; }
.checkout-input:focus { border-color: #4ade80; }
.checkout-input-full { width: 100%; margin-bottom: 8px; box-sizing: border-box; }
.checkout-input-zip { flex: 1; max-width: 90px; }
.checkout-country {
  display: flex; align-items: center; gap: 8px;
  font-size: 12px; color: #6b6b6b; margin-bottom: 4px;
}
.checkout-error {
  color: #ef4444; font-size: 12px;
  margin-bottom: 10px;
}
.checkout-back-btn {
  width: 100%; padding: 10px 0; margin-top: 8px;
  background: transparent; border: 1px solid #333;
  border-radius: 8px; color: #9a9a9a; font-size: 13px;
  cursor: pointer; font-family: inherit;
}
.checkout-back-btn:hover { border-color: #555; color: #e0e0e0; }

/* ─── Payment Method Picker ─── */
.pay-methods { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.pay-method {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px; background: #1a1a1a;
  border: 1px solid #333; border-radius: 8px;
  cursor: pointer; font-family: inherit; text-align: left;
  color: #e0e0e0; transition: border-color 0.15s;
  min-width: 0; overflow: hidden;
}
.pay-method:hover { border-color: #555; }
.pay-method-active { border-color: #4ade80; background: #1a2e1a; }
.pay-method-icon { font-size: 20px; width: 36px; height: 24px; text-align: center; flex-shrink: 0; display: flex; align-items: center; justify-content: center; }
.pay-method-icon img { width: 36px; height: 24px; object-fit: contain; }
.pay-method-info { display: flex; flex-direction: column; gap: 1px; }
.pay-method-label { font-size: 13px; font-weight: 700; }
.pay-method-desc { font-size: 11px; color: #6b6b6b; }
.pay-method-active .pay-method-desc { color: #7a9a7a; }

/* ─── Vorkasse Confirmation ─── */
.vorkasse-confirm { margin-bottom: 16px; }
.vorkasse-title { font-size: 16px; font-weight: 800; color: #4ade80; margin-bottom: 12px; }
.vorkasse-text { font-size: 12px; color: #9a9a9a; margin-bottom: 10px; line-height: 1.5; }
.vorkasse-details {
  background: #141414; border: 1px solid #252525;
  border-radius: 8px; padding: 12px; margin-bottom: 12px;
}
.vorkasse-row {
  display: flex; justify-content: space-between;
  font-size: 12px; padding: 5px 0;
  border-bottom: 1px solid #1e1e1e;
}
.vorkasse-row:last-child { border-bottom: none; }
.vorkasse-row span:first-child { color: #6b6b6b; }
.vorkasse-row span:last-child { color: #e0e0e0; font-weight: 600; text-align: right; }
.vorkasse-amount { color: #4ade80 !important; font-size: 14px !important; }

/* ─── Footer ─── */
.footer {
  border-top: 1px solid #252525;
  background: #0a0a0a; padding: 48px 24px 24px;
}
.footer-grid {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 32px;
}
.footer-logo {
  font-size: 18px; font-weight: 800; margin-bottom: 12px;
}
.footer-ch { color: #888888; }
.footer-text { font-size: 13px; color: #6b6b6b; line-height: 1.5; }
.footer-heading {
  font-size: 12px; font-weight: 700; color: #999999;
  text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 12px;
}
.footer-link {
  font-size: 13px; color: #6b6b6b; margin-bottom: 8px;
  cursor: pointer;
}
.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: space-between;
  align-items: center; padding-top: 24px;
  border-top: 1px solid #252525;
  font-size: 12px; color: #525252;
}
.footer-payment { font-size: 12px; color: #525252; }

/* ─── Empty State ─── */
.empty-state { color: #6b6b6b; font-size: 14px; grid-column: 1/-1; text-align: center; padding: 48px; }

/* ─── Mobile Search Bar ─── */
.mobile-search-bar {
  display: none; /* hidden on desktop */
  padding: 8px 16px 12px;
  background: #0a0a0a;
}
.mobile-search-bar-input {
  width: 100%; box-sizing: border-box;
  background: #1a1a1a; border: 1px solid #252525; border-radius: 8px;
  padding: 10px 14px; color: #e0e0e0; font-size: 14px;
  outline: none; font-family: inherit;
}
.mobile-search-bar-input:focus {
  border-color: #e8870e;
}

/* ─── Hamburger ─── */
.hamburger {
  display: none; background: transparent; border: none;
  color: #e0e0e0; font-size: 24px; cursor: pointer; padding: 4px;
  font-family: inherit;
}

/* ─── Mobile Menu ─── */
.mobile-menu {
  position: fixed; inset: 0; top: 64px; z-index: 99;
  background: rgba(10,10,10,0.98); backdrop-filter: blur(20px);
  display: flex; flex-direction: column; padding: 24px;
  overflow-y: auto;
}
.mobile-menu-inner {}
.mobile-menu-link {
  padding: 16px 0; font-size: 16px; font-weight: 600;
  color: #e0e0e0; border-bottom: 1px solid #252525;
  cursor: pointer;
}
.mobile-menu-search {
  width: 100%; padding: 12px 16px; background: #252525;
  border: 1px solid #363636; border-radius: 10px; color: #e0e0e0;
  font-size: 14px; font-family: inherit; outline: none;
  margin-bottom: 16px; box-sizing: border-box;
}

/* ─── Main ─── */
.main { min-height: 80vh; }

/* ─── Sort ─── */
.sort-bar { display: flex; justify-content: flex-end; margin-bottom: 16px; }
.sort-select {
  background: #252525; border: 1px solid #363636; border-radius: 8px;
  color: #e0e0e0; padding: 8px 12px; font-size: 13px;
  font-family: inherit; cursor: pointer; outline: none;
}

/* ─── Scroll to top ─── */
.scroll-top-btn {
  position: fixed; bottom: 32px; right: 32px; z-index: 90;
  width: 44px; height: 44px; border-radius: 99px;
  background: #252525; border: 1px solid #363636;
  color: #e0e0e0; font-size: 20px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  font-family: inherit;
}

/* ─── Responsive: Tablet Landscape ─── */
@media (max-width: 1024px) {
  /* Hero */
  .hero { padding: 56px 24px 48px; }
  .hero-row { gap: 32px; }
  .hero-logo { width: 140px; height: 140px; }
  .hero-title { font-size: 30px; }

  /* Grids */
  .cat-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
  .product-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }

  /* Detail */
  .detail-grid { gap: 32px; }

  /* Footer */
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
}

/* ─── Responsive: Tablet Portrait ─── */
@media (max-width: 768px) {
  /* Nav */
  .nav { padding: 0 12px; }
  .nav-links { display: none !important; }
  .nav-search { display: none !important; }
  .login-btn { display: none !important; }
  .user-badge { display: none !important; }
  .hamburger { display: flex !important; }
  .cart-btn-desktop { display: flex !important; }
  .mobile-search-bar { display: block !important; }

  /* Hero */
  .hero { padding: 40px 16px 32px; }
  .hero-row { flex-direction: column; gap: 20px; }
  .hero-logo { width: 80px; height: 80px; order: -1; }
  .hero-text { text-align: center; }
  .hero-title { font-size: 24px; }
  .hero-sub { font-size: 13px; margin: 0 auto 20px; }
  .hero-badge { font-size: 11px; padding: 5px 12px; margin-bottom: 16px; }

  /* Sections */
  .section { padding: 32px 16px; }
  .section-title { font-size: 20px; margin-bottom: 20px; }

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

  /* Product Cards */
  .card-body { padding: 12px 14px 16px; }
  .card-name { font-size: 13px; }
  .card-specs { font-size: 10px; min-height: 28px; margin-bottom: 10px; }
  .card-price { font-size: 15px; }
  .card-image { height: 120px; }

  /* Detail */
  .detail-page { padding: 24px 16px; }
  .detail-grid { grid-template-columns: 1fr; gap: 20px; }
  .detail-image { height: 240px; }
  .detail-title { font-size: 22px; }
  .detail-price { font-size: 24px; }

  /* Footer */
  .footer { padding: 32px 16px 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }

  /* Lightbox Popup */
  .lightbox-popup { max-width: 90vw; padding: 16px; }
  .lightbox-arrow { position: absolute; top: auto; bottom: -52px; transform: none; }
  .lightbox-arrow-left { left: calc(50% - 52px); }
  .lightbox-arrow-right { right: calc(50% - 52px); }

  /* Mobile Menu Overlay */
  .mobile-menu { display: flex !important; }
}

/* ─── Responsive: Mobile Phone ─── */
@media (max-width: 480px) {
  /* Nav */
  .nav-inner { height: 56px; }
  .logo { font-size: 17px; }

  /* Hero */
  .hero { padding: 32px 12px 24px; }
  .hero-row { gap: 16px; }
  .hero-logo { width: 64px; height: 64px; }
  .hero-title { font-size: 22px; letter-spacing: -0.5px; }
  .hero-sub { font-size: 12px; line-height: 1.5; margin: 0 auto 16px; }
  .hero-badge { font-size: 10px; padding: 4px 10px; margin-bottom: 12px; }
  .hero-search { padding: 10px 14px; border-radius: 10px; }
  .hero-search-input { font-size: 13px; }

  /* Sections */
  .section { padding: 24px 12px; }
  .section-title { font-size: 18px; margin-bottom: 16px; }

  /* Category Grid */
  .cat-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .cat-card { padding: 16px; border-radius: 10px; }
  .cat-icon { font-size: 26px; margin-bottom: 8px; }
  .cat-name { font-size: 12px; }
  .cat-count { font-size: 11px; }

  /* Product Grid */
  .product-grid { grid-template-columns: 1fr; gap: 16px; }
  .card-image { height: 160px; }
  .card-body { padding: 14px 16px 18px; padding-bottom: 22px; }
  .card-sku { font-size: 10px; }
  .card-cat { font-size: 9px; margin-bottom: 4px; }
  .card-name { font-size: 15px; margin-bottom: 4px; }
  .card-specs { font-size: 10px; min-height: 24px; margin-bottom: 8px; line-height: 1.3; }
  .card-price { font-size: 16px; }
  .card-stock { font-size: 11px; }
  .card-cart-btn { width: 36px; height: 36px; font-size: 16px; }

  /* Lightbox Popup */
  .lightbox-popup { max-width: 95vw; padding: 12px; border-radius: 12px; }
  .lightbox-img { max-height: 60vh; }
  .lightbox-arrow { width: 36px; height: 36px; font-size: 24px; bottom: -48px; }
  .lightbox-close { top: 8px; right: 12px; font-size: 20px; }

  /* Cart Drawer */
  .cart-drawer { width: 100vw; }
  .cart-items { padding: 12px 16px; }
  .cart-footer { padding: 16px; }
  .checkout-row { flex-direction: column; }
  .checkout-input-zip { max-width: 100%; }
  .cart-total-price { font-size: 20px; }
  .checkout-btn { font-size: 14px; padding: 12px 0; }

  /* Detail */
  .detail-page { padding: 16px 12px; }
  .detail-grid { gap: 16px; }
  .detail-image { height: 200px; }
  .detail-title { font-size: 20px; margin-bottom: 8px; }
  .detail-desc { font-size: 13px; margin-bottom: 16px; }
  .detail-price { font-size: 22px; }
  .detail-meta { gap: 12px; margin-bottom: 16px; }
  .add-to-cart-row { height: 46px; border-radius: 10px; }
  .detail-qty-btn { width: 42px; font-size: 18px; }
  .detail-qty-value { width: 30px; font-size: 15px; }
  .add-to-cart-btn { font-size: 14px; }
  .back-btn { font-size: 12px; padding: 6px 12px; margin-bottom: 16px; }
  .spec-box { padding: 12px; margin-bottom: 14px; }
  .spec-text { font-size: 12px; }
  .thumb-item { width: 52px; height: 52px; }

  /* Footer */
  .footer { padding: 24px 12px 16px; }
  .footer-grid { gap: 20px; }
  .footer-logo { font-size: 16px; }
  .footer-text { font-size: 12px; }
  .footer-heading { font-size: 11px; }
  .footer-link { font-size: 12px; }
  .footer-bottom { font-size: 11px; }

  /* Toast */
  .toast { left: 12px; right: 12px; top: 12px; text-align: center; }

  /* Sort */
  .sort-bar { justify-content: stretch; }
  .sort-select { width: 100%; }

  /* Scroll-to-top */
  .scroll-top-btn { bottom: 20px; right: 16px; width: 40px; height: 40px; font-size: 18px; }

  /* Mobile Menu */
  .mobile-menu { top: 56px; padding: 16px; }
  .mobile-menu-link { padding: 14px 0; font-size: 15px; }
}
