/*
Theme Name: Pokeice
Description: Pokemon TCG Shop – Light Mode
Version: 5.0
*/

/* Fonts are loaded via <link> in header.php (parallel, non-blocking) instead of @import */

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

:root {
  --bg:        #f4f6fb;
  --surface:   #ffffff;
  --surface2:  #f0f2f8;
  --surface3:  #e8ebf4;
  --border:    #dde1ee;
  --border2:   #c8cce0;
  --blue:      #ee1515;
  --blue-lt:   #ff4444;
  --blue-bg:   #ffe5e5;
  --gold:      #d97706;
  --gold-bg:   #fffbeb;
  --red:       #dc2626;
  --red-bg:    #fef2f2;
  --green:     #16a34a;
  --text:      #111827;
  --text2:     #4b5563;
  --text3:     #9ca3af;
  --r0: 0px;
  --r1: 6px;
  --r2: 10px;
  --r3: 14px;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow:    0 4px 12px rgba(0,0,0,0.08), 0 2px 4px rgba(0,0,0,0.04);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

html.dark {
  --bg:       #0f1117;
  --surface:  #1a1d27;
  --surface2: #22263a;
  --surface3: #2a2f45;
  --border:   #333850;
  --border2:  #444a64;
  --text:     #e8eaf6;
  --text2:    #9ca3c8;
  --text3:    #5a6080;
  --blue-bg:  #2a1410;
  --gold-bg:  #2a2010;
  --red-bg:   #2a1010;
  color-scheme: dark;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,h2,h3,h4,h5 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  line-height: 1.15;
  color: var(--text);
}

a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }
img { display: block; max-width: 100%; }

/* ─── TOP STRIP ─── */
#topstrip {
  background: var(--blue);
  padding: 0 max(24px, calc((100% - 1360px) / 2 + 24px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 34px;
  font-size: 12px;
  color: rgba(255,255,255,0.85);
}

.topstrip-links { flex: 1; min-width: 0; overflow: hidden; }
.ts-track { display: flex; align-items: center; gap: 28px; width: max-content; white-space: nowrap; }
.ts-track.ts-animate { gap: 0; animation: ts-scroll var(--ts-dur, 30s) linear infinite; will-change: transform; }
.ts-copy { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; }
@keyframes ts-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.topstrip-links a { color: rgba(255,255,255,0.75); transition: color 0.15s; }
.topstrip-links a:hover { color: #fff; }
.topstrip-right { display: flex; align-items: center; gap: 22px; flex-shrink: 0; white-space: nowrap; }
.topstrip-right a, .topstrip-right span { color: rgba(255,255,255,0.78); transition: color 0.15s; text-decoration: none; }
.topstrip-right a:hover { color: #fff; }

/* ─── LANG DROPDOWN ─── */
.lang-dropdown { position: relative; }

.lang-current {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--r1);
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s;
}

.lang-current:hover { background: rgba(255,255,255,0.25); }

.lang-current .chevron {
  width: 10px; height: 10px;
  opacity: 0.7;
  transition: transform 0.2s;
}

.lang-dropdown.open .chevron { transform: rotate(180deg); }

.lang-menu {
  display: none;
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  min-width: 170px;
  z-index: 999;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.lang-dropdown.open .lang-menu { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: var(--text2);
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.lang-option:last-child { border-bottom: none; }
.lang-option:hover { background: var(--surface2); color: var(--text); }
.lang-option.active { color: var(--blue); font-weight: 600; }

.lang-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  background: var(--blue-bg);
  color: var(--blue);
  padding: 1px 6px;
  border-radius: 3px;
  border: 1px solid rgba(238,21,21,0.15);
}

/* ─── HEADER ─── */
#header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 300;
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 24px;
  height: 80px;
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

.logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, #cc0d0d, #ff4040);
  border-radius: var(--r1);
  display: grid; place-items: center;
}

.logo-mark svg { width: 20px; height: 20px; fill: #fff; }

.logo-name {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}

.logo-name em { color: var(--blue); font-style: normal; }

.logo-img { height: 58px; width: auto; display: block; }
/* Dark mode: the logo art is dark, so place it on a clean white chip to stay legible */
html.dark .logo-img { background: #fff; padding: 4px 9px; border-radius: 9px; box-sizing: content-box; }

/* Search — visually centered in header */
.search-wrap {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: min(500px, 42%);
  z-index: 600;   /* above the nav (350) + nav dropdowns (400) so the search results show on top */
}

.search-wrap input {
  width: 100%;
  height: 40px;
  padding: 0 42px 0 14px;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--r1);
  color: var(--text);
  font-size: 13.5px;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
  font-family: inherit;
}

.search-wrap input::placeholder { color: var(--text3); }
.search-wrap input:focus { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgba(238,21,21,0.1); }

.search-wrap button {
  position: absolute; right: 0; top: 0;
  width: 40px; height: 40px;
  color: var(--text3);
  display: grid; place-items: center;
  transition: color 0.15s;
}

.search-wrap button:hover { color: var(--blue); }
.search-wrap button svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; }

.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 5px);
  left: 0; right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  z-index: 500;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.search-dropdown.open { display: block; }

.sdrop-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.1s;
}

.sdrop-item:last-child { border-bottom: none; }
.sdrop-item:hover { background: var(--surface2); }

.sdrop-thumb { width: 32px; height: 44px; border-radius: 4px; overflow: hidden; flex-shrink: 0; background: var(--surface2); }
.sdrop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.sdrop-name { font-size: 13px; font-weight: 600; color: var(--text); }
.sdrop-set  { font-size: 11px; color: var(--text3); margin-top: 1px; }

/* Header actions */
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }

.hbtn {
  height: 38px; padding: 0 14px;
  border-radius: var(--r1);
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text2);
  font-size: 13px; font-weight: 500;
  display: flex; align-items: center; gap: 7px;
  transition: all 0.15s;
  white-space: nowrap;
}

.hbtn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.hbtn svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; flex-shrink: 0; }

.hbtn-cart { position: relative; }

.cart-dot {
  position: absolute; top: -5px; right: -5px;
  width: 18px; height: 18px;
  background: var(--blue);
  border: 2px solid var(--surface);
  border-radius: 50%;
  font-size: 10px; font-weight: 700;
  color: #fff;
  display: grid; place-items: center;
}

/* ─── POKEBALL MENU BUTTON ─── */
.pokeball-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  border: 2.5px solid #222;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s, box-shadow 0.2s;
  background: none;
}

.pokeball-btn:hover { transform: rotate(20deg) scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }
.menu-trigger { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; flex-shrink: 0; }
.menu-trigger-label { font-size: 13px; font-weight: 700; color: var(--text); white-space: nowrap; letter-spacing: .2px; }
.menu-trigger:hover .menu-trigger-label { color: var(--blue); }
.menu-trigger:hover .pokeball-btn { transform: rotate(20deg) scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,0.2); }

.pb-top { position: absolute; top: 0; left: 0; right: 0; height: 50%; background: #e63946; }
.pb-bot { position: absolute; bottom: 0; left: 0; right: 0; height: 50%; background: #fff; }
.pb-mid {
  position: absolute;
  top: 50%; left: 0; right: 0;
  height: 3px;
  background: #222;
  transform: translateY(-50%);
}

.pb-center {
  position: absolute;
  top: 50%; left: 50%;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #fff;
  border: 2.5px solid #222;
  transform: translate(-50%, -50%);
  z-index: 2;
}

/* ─── SETTINGS PANEL ─── */
#settings-panel {
  position: fixed;
  top: 0; right: -420px;
  width: 380px;
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--border);
  z-index: 1000;
  transition: right 0.32s cubic-bezier(0.4,0,0.2,1);
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 32px rgba(0,0,0,0.12);
}

#settings-panel.open { right: 0; }

.panel-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.3);
  z-index: 999;
  backdrop-filter: blur(2px);
}

.panel-overlay.open { display: block; }

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

.panel-header h3 { font-size: 16px; font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }

.panel-close {
  width: 32px; height: 32px;
  border-radius: var(--r1);
  background: var(--surface2);
  border: 1px solid var(--border);
  color: var(--text2);
  display: grid; place-items: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.15s;
}

.panel-close:hover { background: var(--red-bg); color: var(--red); border-color: var(--red); }

.panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 16px 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.panel-section {
  background: var(--surface2);
  border: 1px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  margin-bottom: 6px;
}

.panel-section-title {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--text3);
  padding: 12px 14px 8px;
}

.panel-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 14px;
  border-top: 1px solid var(--border);
  cursor: pointer;
  transition: background 0.1s;
}

.panel-row:hover { background: var(--surface3); }

.panel-row-left { display: flex; align-items: center; gap: 10px; }

.panel-icon {
  width: 32px; height: 32px;
  border-radius: var(--r1);
  display: grid; place-items: center;
  flex-shrink: 0;
}

.panel-icon.blue   { background: var(--blue-bg); color: var(--blue); }
.panel-icon.gold   { background: var(--gold-bg); color: var(--gold); }
.panel-icon.red    { background: var(--red-bg);  color: var(--red); }
.panel-icon.green  { background: #f0fdf4; color: var(--green); }
html.dark .panel-icon.green { background: rgba(74,222,128,.12); color: #4ade80; }

/* Hide all WordPress frontend edit links */
a.post-edit-link, .wp-block-post-edit-link, .edit-link { display: none !important; }
.panel-icon.gray   { background: var(--surface3); color: var(--text2); }

.panel-icon svg { width: 16px; height: 16px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; }

.panel-label { font-size: 13.5px; font-weight: 500; color: var(--text); }
.panel-desc  { font-size: 11px; color: var(--text3); margin-top: 1px; }

.panel-arrow { color: var(--text3); font-size: 14px; }

.panel-toggle {
  width: 38px; height: 22px;
  background: var(--border);
  border-radius: 11px;
  position: relative;
  cursor: pointer;
  transition: background 0.2s;
  flex-shrink: 0;
}

.panel-toggle.on { background: var(--blue); }

.panel-toggle::after {
  content: '';
  position: absolute;
  top: 3px; left: 3px;
  width: 16px; height: 16px;
  background: #fff;
  border-radius: 50%;
  transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.panel-toggle.on::after { left: 19px; }

.panel-select {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r1);
  padding: 5px 10px;
  font-size: 13px;
  color: var(--text);
  outline: none;
  cursor: pointer;
  font-family: inherit;
}

.panel-select:focus { border-color: var(--blue); }

/* ─── NAV ─── */
#site-nav {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 1360px; margin: 0 auto; padding: 0 24px;
  display: flex; align-items: stretch;
  justify-content: center;
  /* overflow-x intentionally omitted — allows dropdowns to escape the nav bar */
}

@media (max-width: 900px) {
  .nav-inner { overflow-x: auto; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-dropdown { display: none !important; } /* no hover dropdowns on touch */
}

.nav-link {
  padding: 11px 14px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text2);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  display: block;
  transition: color 0.15s, border-color 0.15s;
}

.nav-link:hover { color: var(--text); }
.nav-link.active { color: var(--blue); border-bottom-color: var(--blue); }
.nav-link.hot { color: var(--red); font-weight: 600; }
.nav-link.hot:hover { color: #b91c1c; }

/* ─── HERO ─── */
#hero {
  background: linear-gradient(135deg, #9a0a0a 0%, #cc0d0d 40%, #ee1515 70%, #ff4040 100%);
  position: relative;
  overflow: hidden;
}

.hero-bg-pattern {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 28px 28px;
}

.hero-bg-glow {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, rgba(255,170,151,0.18) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 30%, rgba(154,10,10,0.3) 0%, transparent 50%);
}

.hero-wrap {
  position: relative; z-index: 2;
  max-width: 1360px; margin: 0 auto;
  padding: 80px 24px 88px;
  display: grid;
  grid-template-columns: 1fr 480px;
  gap: 48px;
  align-items: center;
}

.hero-kicker {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: rgba(255,255,255,0.7);
  margin-bottom: 16px;
}

.hero-kicker::before { content: ''; width: 22px; height: 2px; background: rgba(255,255,255,0.4); }

.hero-h1 {
  font-size: clamp(2.4rem, 3.8vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  color: #fff;
  margin-bottom: 18px;
  line-height: 1.08;
}

.hero-h1 .hl {
  color: #ffd0d0;
}

.hero-sub {
  font-size: 15.5px;
  color: rgba(255,255,255,0.75);
  max-width: 460px;
  line-height: 1.75;
  margin-bottom: 32px;
}

.hero-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 44px; }

.btn-white {
  height: 44px; padding: 0 24px;
  background: #fff; color: var(--blue);
  border-radius: var(--r1);
  font-size: 14px; font-weight: 700;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.15);
}

.btn-white:hover { background: #f0f7ff; transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }

.btn-white-outline {
  height: 44px; padding: 0 22px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border-radius: var(--r1);
  font-size: 14px; font-weight: 600;
  border: 1.5px solid rgba(255,255,255,0.4);
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}

.btn-white-outline:hover { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.7); }

.hero-trust { display: flex; gap: 28px; flex-wrap: wrap; }

.trust-item .trust-num {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 24px; font-weight: 800;
  color: #fff; letter-spacing: -0.5px;
}

.trust-item .trust-label { font-size: 11px; color: rgba(255,255,255,0.6); margin-top: 2px; }

/* Hero fan */
.hero-right { display: flex; align-items: center; justify-content: center; height: 400px; }

.card-fan { position: relative; width: 290px; height: 380px; }

.fan-card {
  position: absolute;
  width: 185px; aspect-ratio: 2/3;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 20px 48px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.1);
  transition: transform 0.35s ease;
  cursor: pointer;
  background: #e2e8f4;
}

.fan-card img { width: 100%; height: 100%; object-fit: cover; }

.fan-card:nth-child(1) { top: 40px; left: 0;   transform: rotate(-12deg) translateY(15px); z-index: 1; }
.fan-card:nth-child(2) { top: 10px; left: 55px; transform: rotate(-3deg);  z-index: 2; }
.fan-card:nth-child(3) { top: 22px; left: 110px;transform: rotate(6deg);   z-index: 3; }
.fan-card:nth-child(4) { top: 45px; left: 158px;transform: rotate(15deg) translateY(12px); z-index: 2; }

.card-fan:hover .fan-card:nth-child(1) { transform: rotate(-15deg) translateY(22px) translateX(-6px); }
.card-fan:hover .fan-card:nth-child(2) { transform: rotate(-4deg) translateY(-10px); }
.card-fan:hover .fan-card:nth-child(3) { transform: rotate(7deg) translateY(-8px); }
.card-fan:hover .fan-card:nth-child(4) { transform: rotate(18deg) translateY(18px) translateX(6px); }

/* Card type faces */
.cf { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.cf-water    { background: linear-gradient(155deg, #5a1505, #b00a0a, #ee1515); }
.cf-fire     { background: linear-gradient(155deg, #5e1a0c, #b04020, #d45030); }
.cf-grass    { background: linear-gradient(155deg, #0d4020, #1a7a3a, #2aa050); }
.cf-electric { background: linear-gradient(155deg, #3d3000, #9a7800, #d4aa10); }
.cf-psychic  { background: linear-gradient(155deg, #3d0c40, #8a2090, #c040b0); }
.cf-dragon   { background: linear-gradient(155deg, #1a1060, #3020a0, #5040d0); }
.cf-dark     { background: linear-gradient(155deg, #111118, #22222e, #303040); }
.cf-metal    { background: linear-gradient(155deg, #202830, #384858, #506070); }
.cf-colorless{ background: linear-gradient(155deg, #505868, #6a7488, #848ea8); }
.cf-fighting { background: linear-gradient(155deg, #3d1205, #7a2408, #a0300c); }

.cf-name { font-family: 'Space Grotesk', sans-serif; font-size: 13px; font-weight: 600; color: rgba(255,255,255,0.65); text-align: center; padding: 0 8px; }

/* ─── SECTIONS ─── */
.section { max-width: 1360px; margin: 0 auto; padding: 52px 24px; }

.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  margin-bottom: 22px; gap: 16px;
}

.section-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--blue); margin-bottom: 5px;
}

.section-title { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: var(--text); }
.section-sub   { font-size: 13px; color: var(--text3); margin-top: 3px; }

.see-all { font-size: 13px; color: var(--blue); font-weight: 600; white-space: nowrap; transition: opacity 0.15s; flex-shrink: 0; }
.see-all:hover { opacity: 0.72; }

.divider { height: 1px; background: var(--border); }

/* ─── PRODUCT CARDS ─── */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(162px, 1fr)); gap: 12px; }
.g5 { grid-template-columns: repeat(5, 1fr); }
.g6 { grid-template-columns: repeat(6, 1fr); }

.pcard {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
  display: flex; flex-direction: column;
}

.pcard:hover {
  border-color: var(--blue-lt);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(238,21,21,0.12);
}

.pcard-img {
  aspect-ratio: 2/3; position: relative;
  overflow: hidden; background: var(--surface2); flex-shrink: 0;
}

.pcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard-img .cf { position: absolute; inset: 0; }

.badge {
  position: absolute; top: 7px;
  font-size: 9px; font-weight: 800;
  padding: 2px 6px; z-index: 2;
  letter-spacing: 0.3px;
  border-radius: 4px;
  line-height: 1.4;
  text-transform: uppercase;
  box-shadow: 0 1px 2px rgba(0,0,0,0.28);
  white-space: nowrap;
}

.badge-lang {
  right: 7px;
  background: rgba(0,0,0,0.55);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  border-radius: 4px;
}

.badge-sale { left: 7px; background: var(--red);   color: #fff; border-radius: var(--r0); }
.badge-new  { left: 7px; background: var(--green);  color: #fff; border-radius: var(--r0); }
.badge-hot  { left: 7px; background: var(--gold);   color: #fff; border-radius: var(--r0); }

.pcard-body { padding: 10px 12px 12px; flex: 1; display: flex; flex-direction: column; }
.pcard-name { font-size: 13px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-set  { font-size: 11px; color: var(--text3); margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcard-slogan { font-size: 11px; font-weight: 700; color: var(--blue); margin-top: 4px; line-height: 1.35; }

.pcard-footer { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 9px; }
.pcard-lowstock { font-size: 11px; font-weight: 700; color: #ee1515; margin: 4px 0 0; display: flex; align-items: center; gap: 5px; }
.pcard-lowstock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #ee1515; flex-shrink: 0; animation: lowstock-pulse 1.4s ease-in-out infinite; }
@keyframes lowstock-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
/* Always-visible low-stock badge, bottom-left corner of the product image */
.stock-corner { position: absolute; bottom: 7px; left: 7px; z-index: 4; background: #ee1515; color: #fff; font-size: 9px; font-weight: 800; padding: 2px 6px; border-radius: 4px; letter-spacing: .3px; text-transform: uppercase; box-shadow: 0 1px 2px rgba(0,0,0,.28); line-height: 1.4; white-space: nowrap; }

.price-stack { display: flex; flex-direction: column; gap: 1px; }
.price-was { font-size: 10px; color: var(--text3); text-decoration: line-through; line-height: 1; }
.price-now { font-size: 14px; font-weight: 700; color: var(--text); line-height: 1; }
.price-now.sale { color: var(--red); }

.btn-cart {
  height: 28px; padding: 0 10px;
  background: var(--blue-bg);
  border: 1.5px solid rgba(238,21,21,0.25);
  border-radius: var(--r1);
  color: var(--blue);
  font-size: 11px; font-weight: 600;
  white-space: nowrap;
  transition: all 0.15s;
  font-family: inherit;
}

.btn-cart:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.btn-cart.done  { background: #f0fdf4; border-color: var(--green); color: var(--green); }

/* Inline add-to-cart quantity stepper (replaces the Add button once in cart) */
.pcard-stepper { display: inline-flex; align-items: center; height: 28px; border: 1.5px solid var(--blue); border-radius: var(--r1); overflow: hidden; background: var(--surface); }
.pcs-btn { width: 26px; height: 26px; border: none; background: var(--blue); color: #fff; font-size: 16px; font-weight: 800; line-height: 1; cursor: pointer; display: grid; place-items: center; font-family: inherit; padding: 0; transition: filter 0.15s; }
.pcs-btn:hover { filter: brightness(1.12); }
.pcs-qty { min-width: 40px; height: 26px; padding: 0 6px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 12.5px; font-weight: 800; color: var(--blue); background: var(--surface); }
.pcs-qty svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; flex-shrink: 0; }

/* ─── DEALS ─── */
.deals-section {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe9e9 50%, #fff5f5 100%);
  border-top: 1px solid #ffd0d0;
  border-bottom: 1px solid #ffd0d0;
}
html.dark .deals-section {
  background: linear-gradient(135deg, #1f1012 0%, #2a1416 50%, #1f1012 100%);
  border-top-color: #3a1f22;
  border-bottom-color: #3a1f22;
}

.deals-inner { max-width: 1360px; margin: 0 auto; padding: 48px 24px; }

.deals-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.deals-head .section-label { color: var(--blue); }
.deals-head .section-title { color: #92400e; }
.deals-head .see-all { color: var(--gold); }

.deals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }

.deal-row {
  background: var(--surface);
  border: 1.5px solid #ffd0d0;
  border-radius: var(--r2);
  display: flex; overflow: hidden;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: var(--shadow-sm);
}

.deal-row:hover { border-color: var(--blue); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(238,21,21,0.15); }

.deal-img { width: 90px; flex-shrink: 0; position: relative; overflow: hidden; background: var(--surface2); }
.deal-img img { width: 100%; height: 100%; object-fit: contain; padding: 7px; box-sizing: border-box; }
.deal-img .cf { position: absolute; inset: 0; }

.deal-body { padding: 14px 16px; display: flex; flex-direction: column; justify-content: center; gap: 3px; flex: 1; }
.deal-lang    { font-size: 10px; font-weight: 600; color: var(--blue); letter-spacing: 1px; text-transform: uppercase; }
.deal-name    { font-size: 14px; font-weight: 700; color: var(--text); }
.deal-setname { font-size: 11px; color: var(--text3); }

.deal-prices { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.deal-now    { font-size: 20px; font-weight: 800; color: var(--blue); letter-spacing: -0.5px; }
.deal-was    { font-size: 12px; color: var(--text3); text-decoration: line-through; }
.deal-pct    { background: var(--red); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: var(--r0); }

/* ─── SETS ─── */
.sets-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }

.set-card {
  border-radius: var(--r2);
  overflow: hidden;
  border: 1.5px solid var(--border);
  cursor: pointer;
  transition: all 0.2s;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.set-card:hover { border-color: var(--blue-lt); transform: translateY(-3px); box-shadow: 0 8px 24px rgba(238,21,21,0.1); }

.set-banner {
  height: 120px;
  display: flex; align-items: center; justify-content: center;
  position: relative; overflow: hidden; padding: 0 20px;
}

.set-banner img {
  max-width: 80%; max-height: 70px;
  object-fit: contain;
  position: relative; z-index: 2;
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,0.4));
}

.set-banner-fallback {
  text-align: center; z-index: 2; position: relative;
}

.set-banner-code { font-size: 10px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 4px; }
.set-banner-name { font-family: 'Space Grotesk', sans-serif; font-size: 18px; font-weight: 700; color: #fff; }

.set-body { padding: 12px 14px; }
.set-name { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 2px; }
.set-meta { font-size: 11px; color: var(--text3); }

.set-stats { display: flex; gap: 16px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.set-stat strong { display: block; font-size: 14px; font-weight: 700; color: var(--text); }
.set-stat span   { font-size: 10px; color: var(--text3); }

/* ─── FILTER PAGE LAYOUT ─── */
.page-layout {
  max-width: 1360px; margin: 0 auto;
  padding: 24px;
  display: grid;
  grid-template-columns: 214px 1fr;
  gap: 20px;
  align-items: start;
}

.filter-panel {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  position: sticky; top: 108px;
  box-shadow: var(--shadow-sm);
}

.filter-section { border-bottom: 1px solid var(--border); padding: 13px 15px; }
.filter-section:last-child { border-bottom: none; }

.filter-title {
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--text3); margin-bottom: 9px;
}

.filter-list { display: flex; flex-direction: column; gap: 1px; }

.filter-item {
  display: flex; align-items: center; gap: 8px;
  padding: 5px 6px; border-radius: var(--r1);
  cursor: pointer; transition: background 0.1s;
  font-size: 13px; color: var(--text2);
}

.filter-item:hover { background: var(--surface2); color: var(--text); }
.filter-item input[type=checkbox] { width: 14px; height: 14px; accent-color: var(--blue); flex-shrink: 0; }
.filter-item .cnt { margin-left: auto; font-size: 11px; color: var(--text3); }

.type-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

.price-row { display: flex; gap: 6px; align-items: center; }
.price-row input {
  flex: 1; min-width: 0;
  background: var(--surface2);
  border: 1.5px solid var(--border);
  border-radius: var(--r1);
  padding: 5px 8px; color: var(--text);
  font-size: 12px; outline: none; font-family: inherit;
}

.price-row input:focus { border-color: var(--blue); }
.price-row span { color: var(--text3); font-size: 12px; flex-shrink: 0; }

.apply-btn {
  width: 100%; margin-top: 9px; padding: 7px;
  background: var(--blue);
  border-radius: var(--r1);
  color: #fff; font-size: 12px; font-weight: 600;
  font-family: inherit; cursor: pointer;
  transition: background 0.15s;
}

.apply-btn:hover { background: #cc0d0d; }

/* Results bar */
.results-bar {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px; gap: 10px;
}

.result-count { font-size: 13px; color: var(--text2); }
.result-count strong { color: var(--text); font-weight: 600; }

.results-controls { display: flex; align-items: center; gap: 8px; }

/* Proper styled select */
.sort-sel {
  height: 36px; padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--blue);
  border-radius: var(--r1);
  color: var(--text);
  font-size: 13px; font-weight: 500;
  outline: none; cursor: pointer;
  font-family: inherit;
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 30px;
}

.sort-sel:focus { border-color: var(--blue); }
.sort-sel:hover { border-color: var(--blue); }

.view-tog { display: flex; border: 1px solid var(--blue); border-radius: var(--r1); overflow: hidden; }
.view-tog button { width: 34px; height: 34px; background: var(--surface); color: var(--text3); display: grid; place-items: center; border: none; transition: all 0.15s; }
.view-tog button:hover, .view-tog button.active { background: var(--blue-bg); color: var(--blue); }
.view-tog button svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.8; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 28px; }

.pg {
  min-width: 36px; height: 36px; padding: 0 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r1);
  color: var(--text2);
  font-size: 13px; display: grid; place-items: center;
  cursor: pointer; transition: all 0.15s; font-family: inherit;
}

.pg:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.pg.active { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.pg:disabled { opacity: 0.3; cursor: not-allowed; }

/* ─── FOOTER ─── */
#footer { background: var(--bg); border-top: 1px solid var(--border); margin-top: 60px; }

.footer-cols {
  max-width: 1360px; margin: 0 auto;
  padding: 48px 24px 36px;
  display: grid;
  grid-template-columns: 240px repeat(4, 1fr);
  gap: 40px;
}

.footer-brand p { font-size: 13px; color: var(--text3); line-height: 1.75; margin-top: 14px; max-width: 200px; }
.footer-col h5 { font-size: 10.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--text3); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col a  { font-size: 13px; color: var(--text2); transition: color 0.15s; }
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  max-width: 1360px; margin: 0 auto;
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  font-size: 11.5px; color: var(--text3);
}

.pay-icons { display: flex; gap: 5px; }
.pay-icon {
  height: 22px; padding: 0 8px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r1);
  display: flex; align-items: center;
  font-size: 10.5px; font-weight: 700;
  color: var(--text2);
}

/* ─── RARITY TIER BADGES ─── */
.rarity-tag {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
  position: relative; overflow: hidden;
}
.rarity-c   { background: #f3f4f6; color: #6b7280; border: 1px solid #d1d5db; }
.rarity-u   { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.rarity-r   { background: #fff3f3; color: #cc0d0d; border: 1px solid #ffd0d0; }
.rarity-hr  { background: #4f46e5; color: #fff; }
.rarity-rr  { background: #0891b2; color: #fff; }
.rarity-ur  { background: linear-gradient(90deg,#d97706,#f59e0b); color: #fff; }
.rarity-sr  { background: linear-gradient(90deg,#b91c1c,#ef4444); color: #fff; }
.rarity-ir  { background: linear-gradient(90deg,#6d28d9,#8b5cf6); color: #fff; }
.rarity-sir { background: linear-gradient(90deg,#7c3aed,#c026d3); color: #fff; }
.rarity-hy  { background: linear-gradient(90deg,#92400e,#d97706,#fbbf24); color: #fff; }

@keyframes rarity-shine {
  0%   { left: -100%; }
  100% { left: 220%; }
}
.rarity-sr::after, .rarity-sir::after, .rarity-hy::after, .rarity-ur::after {
  content: '';
  position: absolute; top: 0; left: -100%; width: 55%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.42), transparent);
  animation: rarity-shine 2.4s ease-in-out infinite;
}

/* ─── FORMAT LEGALITY TAGS ─── */
.format-tag {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; letter-spacing: 0.4px;
  padding: 2px 7px; border-radius: 3px; white-space: nowrap;
}
.format-std   { background: #fff3f3; color: #cc0d0d; border: 1px solid #ffd0d0; }
.format-exp   { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.format-unl   { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.format-promo { background: #fdf4ff; color: #7e22ce; border: 1px solid #e9d5ff; }

/* 1st Edition badge */
.badge-1ed {
  background: linear-gradient(135deg,#92400e,#d97706); color: #fff;
  font-size: 10px; font-weight: 700; padding: 2px 7px;
  border-radius: 3px; white-space: nowrap;
}

/* ─── PACK SIMULATOR ─── */
.pack-sim {
  background: linear-gradient(135deg,#0f172a 0%,#1e1b4b 50%,#1a3a6e 100%);
  padding: 60px 24px; text-align: center; position: relative; overflow: hidden;
}
.pack-sim::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255,255,255,0.05) 1px, transparent 1px);
  background-size: 26px 26px;
}
.pack-wrap { position: relative; z-index: 1; max-width: 960px; margin: 0 auto; }
.pack-title {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 2rem; font-weight: 800; color: #fff; letter-spacing: -0.5px; margin-bottom: 6px;
}
.pack-sub { font-size: 14px; color: rgba(255,255,255,.6); margin-bottom: 44px; }

.pack-reveal-area {
  display: flex; justify-content: center; align-items: flex-end;
  gap: 10px; margin-bottom: 36px; min-height: 180px;
}

.pack-slot {
  width: 108px; height: 152px; border-radius: 10px; flex-shrink: 0;
  position: relative; cursor: pointer;
  transform-style: preserve-3d; transition: transform 0.55s cubic-bezier(0.34,1.56,0.64,1);
  opacity: 0; transform: translateY(40px) scale(0.88);
}
.pack-slot.visible { opacity: 1; transform: translateY(0) scale(1); }
.pack-slot.flipped { transform: rotateY(180deg) scale(1); }

.pslot-back, .pslot-front {
  position: absolute; inset: 0; border-radius: 10px;
  backface-visibility: hidden; overflow: hidden;
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
}
.pslot-back {
  background: linear-gradient(155deg,#0f172a,#1e293b,#0f3460);
  display: flex; align-items: center; justify-content: center;
  border: 1px solid rgba(255,255,255,0.12);
}
.pslot-back-inner {
  width: 52px; height: 52px; border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.2);
  display: grid; place-items: center;
}
.pslot-back-inner svg { width: 28px; height: 28px; opacity: 0.4; fill: #fff; }
.pslot-front { transform: rotateY(180deg); }
.pslot-front img { width: 100%; height: 100%; object-fit: cover; }
.pslot-rarity {
  position: absolute; bottom: 5px; left: 50%;
  transform: translateX(-50%);
  font-size: 9px; font-weight: 700; padding: 2px 6px;
  border-radius: 3px; white-space: nowrap; z-index: 5;
}

.btn-open-pack {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 36px;
  background: linear-gradient(135deg,#d97706,#f59e0b);
  border-radius: 8px; color: #fff;
  font-size: 15px; font-weight: 700; font-family: inherit;
  box-shadow: 0 4px 20px rgba(217,119,6,0.45); transition: all 0.2s;
}
.btn-open-pack:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(217,119,6,0.55); }

/* ─── BUYLIST / ANKAUF PAGE ─── */
.ankauf-table {
  width: 100%; border-collapse: collapse;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--r2);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.ankauf-table th {
  background: var(--surface2); padding: 11px 14px; text-align: left;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3);
  border-bottom: 1.5px solid var(--border);
}
.ankauf-table td {
  padding: 11px 14px; border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--text2); vertical-align: middle;
}
.ankauf-table tr:last-child td { border-bottom: none; }
.ankauf-table tr:hover td { background: var(--surface2); }
.ankauf-price  { font-size: 14px; font-weight: 700; color: var(--green); }
.ankauf-credit { font-size: 12px; font-weight: 600; color: var(--blue); }
.ankauf-cat {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text3); padding: 8px 14px;
  background: var(--surface2); border-bottom: 1px solid var(--border);
}

/* ─── CONDITION GUIDE MODAL ─── */
#condition-modal {
  display: none; position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
#condition-modal.open { display: flex; }
.condition-modal-inner {
  background: var(--surface); border-radius: var(--r3);
  width: min(600px, 95vw); max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); padding: 28px;
}
.condition-row {
  display: flex; gap: 14px; padding: 14px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.condition-row:last-child { border-bottom: none; }
.cond-badge {
  font-size: 11px; font-weight: 700; padding: 4px 10px;
  border-radius: 4px; white-space: nowrap; flex-shrink: 0; margin-top: 2px;
}
.cond-nm  { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.cond-lp  { background: #fff3f3; color: #cc0d0d; border: 1px solid #ffd0d0; }
.cond-mp  { background: #fef3c7; color: #92400e; border: 1px solid #fde68a; }
.cond-hp  { background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.cond-dmg { background: #fef2f2; color: #991b1b; border: 1px solid #fca5a5; }

/* ─── SKELETON LOADING ─── */
@keyframes sk-shimmer {
  0%   { background-position: 200% center; }
  100% { background-position: -200% center; }
}
.skeleton {
  background: linear-gradient(90deg, var(--surface2) 25%, var(--surface3) 50%, var(--surface2) 75%);
  background-size: 200% 100%;
  animation: sk-shimmer 1.4s infinite;
  border-radius: 4px;
}

/* Out of stock card */
.pcard.oos { opacity: 0.6; }
.pcard.oos:hover { transform: none; box-shadow: none; border-color: var(--border); }
.oos-overlay {
  position: absolute; inset: 0; z-index: 4;
  display: flex; align-items: center; justify-content: center;
  background: rgba(240,242,248,0.6);
  pointer-events: none;
}
.oos-label {
  background: rgba(17,24,39,0.75); color: #fff;
  font-size: 11px; font-weight: 700; padding: 5px 12px;
  border-radius: 20px; letter-spacing: 0.4px;
}

/* Qty badge on card */
.badge-qty {
  left: 7px;
  background: var(--green); color: #fff; border-radius: var(--r0);
}

/* Set nav sidebar */
.set-nav { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--r2); overflow: hidden; }
.set-nav-group { border-bottom: 1px solid var(--border); }
.set-nav-group:last-child { border-bottom: none; }
.set-nav-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 13px; cursor: pointer; transition: background 0.1s;
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--text3);
}
.set-nav-header:hover { background: var(--surface2); }
.set-nav-header .chevron { transition: transform 0.2s; font-size: 10px; }
.set-nav-group.open .chevron { transform: rotate(180deg); }
.set-nav-list { display: none; }
.set-nav-group.open .set-nav-list { display: block; }
.set-nav-item {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 14px; cursor: pointer; transition: background 0.1s;
  font-size: 12.5px; color: var(--text2); border-top: 1px solid var(--border);
}
.set-nav-item:hover { background: var(--surface2); color: var(--text); }
.set-nav-item.active { background: var(--blue-bg); color: var(--blue); font-weight: 600; }
.set-nav-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* API loading banner */
.api-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 60px 24px; gap: 14px; text-align: center;
}
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid var(--border); border-top-color: var(--blue);
  animation: spin 0.8s linear infinite; flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Legal pages */
.legal-page { max-width: 860px; margin: 0 auto; padding: 48px 24px 80px; }
.legal-page h1 { font-size: 2rem; font-weight: 800; margin-bottom: 8px; }
.legal-page .legal-date { font-size: 13px; color: var(--text3); margin-bottom: 36px; }
.legal-page h2 { font-size: 16px; font-weight: 700; margin: 32px 0 10px; color: var(--text); }
.legal-page h3 { font-size: 14px; font-weight: 600; margin: 20px 0 6px; color: var(--text); }
.legal-page p  { font-size: 14px; color: var(--text2); line-height: 1.8; margin-bottom: 12px; }
.legal-page ul { font-size: 14px; color: var(--text2); line-height: 1.8; margin: 8px 0 12px 20px; }
.legal-page address { font-style: normal; font-size: 14px; color: var(--text2); line-height: 1.9; }
.legal-notice {
  background: var(--blue-bg); border: 1px solid rgba(238,21,21,0.2);
  border-radius: var(--r2); padding: 16px 20px; margin: 20px 0;
  font-size: 13px; color: var(--blue); line-height: 1.7;
}

/* ─── ANIMS ─── */
@keyframes fadeUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.anim { animation: fadeUp 0.5s ease both; }
.anim-d1 { animation-delay: 0.08s; }
.anim-d2 { animation-delay: 0.18s; }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .g6 { grid-template-columns: repeat(4, 1fr); }
  .g5 { grid-template-columns: repeat(3, 1fr); }
  .hero-wrap { grid-template-columns: 1fr; }
  .hero-right { display: none; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .page-layout { grid-template-columns: 1fr; }
  .filter-panel { position: static; }
  .g5,.g6 { grid-template-columns: repeat(2, 1fr); }
  #settings-panel { width: 100%; }
}

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

/* ─── STOCK BADGES ─── */
.stock-badge {
  position: absolute; bottom: 7px; left: 7px; z-index: 3;
  font-size: 9px; font-weight: 800; padding: 2px 6px;
  border-radius: 3px; letter-spacing: 0.3px; white-space: nowrap;
}
.stock-red    { background: #dc2626; color: #fff; }
.stock-orange { background: #d97706; color: #fff; }
.stock-green  { background: #16a34a; color: #fff; }

/* ─── SETTINGS PANEL FIXES ─── */
.panel-toggle.locked { cursor: not-allowed; opacity: 0.55; }
.panel-toggle.locked::after { transition: none; }

/* ─── ADMIN DASHBOARD ─── */
#admin-overlay-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55); z-index: 1500; backdrop-filter: blur(3px);
}
#admin-overlay-bg.open { display: block; }

#admin-dash {
  display: none; position: fixed;
  inset: 0; z-index: 1600;
  background: var(--bg);
  flex-direction: column;
  overflow: hidden;
}
#admin-dash.open { display: flex; }

.adm-topbar {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 0 24px; height: 56px; display: flex; align-items: center;
  gap: 16px; flex-shrink: 0;
}
.adm-topbar h2 { font-size: 16px; font-weight: 800; color: var(--text); flex: 1; }
.adm-tabs { display: flex; gap: 2px; }
.adm-tab {
  padding: 6px 16px; border-radius: var(--r1);
  font-size: 12.5px; font-weight: 600; color: var(--text2);
  cursor: pointer; transition: all .15s; border: none; background: none;
  font-family: inherit;
}
.adm-tab:hover { background: var(--surface2); color: var(--text); }
.adm-tab.active { background: var(--blue); color: #fff; }
.adm-close {
  width: 34px; height: 34px; border-radius: var(--r1);
  background: var(--surface2); border: 1px solid var(--border);
  color: var(--text2); display: grid; place-items: center;
  font-size: 18px; cursor: pointer; transition: all .15s; flex-shrink: 0;
}
.adm-close:hover { background: var(--red-bg); color: var(--red); border-color: var(--red); }

.adm-body {
  flex: 1; overflow-y: auto; padding: 20px 24px;
  max-width: 1400px; width: 100%; margin: 0 auto; box-sizing: border-box;
}

.adm-section { display: none; }
.adm-section.active { display: block; }

/* Stats row */
.adm-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 10px; margin-bottom: 20px; }
.adm-stat {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r2); padding: 16px 18px;
}
.adm-stat-num { font-size: 22px; font-weight: 800; color: var(--text); letter-spacing: -0.5px; }
.adm-stat-lbl { font-size: 11px; color: var(--text3); margin-top: 3px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.8px; }
.adm-stat.blue .adm-stat-num  { color: var(--blue); }
.adm-stat.green .adm-stat-num { color: var(--green); }
.adm-stat.red .adm-stat-num   { color: var(--red); }
.adm-stat.gold .adm-stat-num  { color: var(--gold); }

/* Search bar */
.adm-search-row { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.adm-search {
  flex: 1; min-width: 200px; height: 38px;
  padding: 0 14px; background: var(--surface);
  border: 1.5px solid var(--border); border-radius: var(--r1);
  color: var(--text); font-size: 13px; outline: none; font-family: inherit;
}
.adm-search:focus { border-color: var(--blue); }
.adm-btn {
  height: 38px; padding: 0 16px;
  border-radius: var(--r1); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
  border: none;
}
.adm-btn-primary { background: var(--blue); color: #fff; }
.adm-btn-primary:hover { background: #cc0d0d; }
.adm-btn-secondary { background: var(--surface); color: var(--text2); border: 1.5px solid var(--border); }
.adm-btn-secondary:hover { border-color: var(--blue); color: var(--blue); }
.adm-btn-danger { background: var(--red-bg); color: var(--red); border: 1.5px solid rgba(220,38,38,.3); }
.adm-btn-danger:hover { background: var(--red); color: #fff; }
.adm-btn-sm { height: 28px; padding: 0 10px; font-size: 11px; }

/* Email editor toolbar */
#bc-toolbar button {
  height: 28px; min-width: 28px; padding: 0 7px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 5px; cursor: pointer; font-family: inherit;
  font-size: 13px; color: var(--text2);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .12s;
}
#bc-toolbar button:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
#bc-editor:focus { box-shadow: 0 0 0 2px rgba(238,21,21,.2); }
#bc-editor h2 { font-size: 20px; font-weight: 800; margin: 12px 0 6px; }
#bc-editor h3 { font-size: 16px; font-weight: 700; margin: 10px 0 4px; }
#bc-editor p  { margin: 0 0 10px; }
#bc-editor ul { margin: 0 0 10px; padding-left: 20px; }
#bc-editor a  { color: #ee1515; }
#bc-editor img { max-width: 100%; border-radius: 6px; margin: 8px 0; display: block; }
#bc-editor hr { border: none; border-top: 1.5px solid #e2e8f0; margin: 16px 0; }

/* Demand priority badges */
.demand-badge-green  { background:#f0fdf4; color:#16a34a; }
.demand-badge-yellow { background:#fefce8; color:#ca8a04; }
.demand-badge-red    { background:#fef2f2; color:#dc2626; }

/* Data table */
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.adm-table th {
  background: var(--surface2); padding: 9px 12px;
  text-align: left; font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.8px; color: var(--text3);
  border-bottom: 1.5px solid var(--border);
}
.adm-table td {
  padding: 10px 12px; border-bottom: 1px solid var(--border);
  color: var(--text2); vertical-align: middle;
}
.adm-table tr:last-child td { border-bottom: none; }
.adm-table tr:hover td { background: var(--surface2); }
.adm-table-wrap {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r2); overflow: hidden; box-shadow: var(--shadow-sm);
}

/* Status badges */
.status-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 700; padding: 2px 8px;
  border-radius: 20px; white-space: nowrap;
}
.s-processing { background: var(--blue-bg); color: var(--blue); }
.s-shipped    { background: #f0fdf4; color: #16a34a; border: 1px solid #86efac; }
.s-delivered  { background: #f0fdf4; color: #15803d; border: 1px solid #86efac; }
.s-pending    { background: var(--gold-bg); color: var(--gold); }
.s-cancelled  { background: var(--red-bg); color: var(--red); }
.s-paid       { background: #f0fdf4; color: #15803d; }
.s-unpaid     { background: var(--red-bg); color: var(--red); }

/* Edit modal inside admin */
.adm-modal-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 2000; backdrop-filter: blur(4px);
  align-items: center; justify-content: center;
}
.adm-modal-bg.open { display: flex; }
.adm-modal {
  background: var(--surface); border-radius: var(--r3);
  width: min(600px, 95vw); max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg); padding: 28px;
}
.adm-modal h3 { font-size: 17px; font-weight: 800; margin-bottom: 20px; display: flex; align-items: center; justify-content: space-between; }
.adm-field { margin-bottom: 14px; }
.adm-field label { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); margin-bottom: 5px; }
.adm-input, .adm-select, .adm-textarea {
  width: 100%; background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--r1); color: var(--text); font-size: 13px;
  outline: none; font-family: inherit; box-sizing: border-box;
}
.adm-input, .adm-select { height: 38px; padding: 0 12px; }
.adm-textarea { padding: 10px 12px; resize: vertical; line-height: 1.5; min-height: 80px; }
.adm-input:focus, .adm-select:focus, .adm-textarea:focus { border-color: var(--blue); }
.adm-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; padding-right: 30px; }
.adm-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.adm-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* Restock slider */
.restock-wrap { display: flex; align-items: center; gap: 10px; }
.restock-num { width: 70px; text-align: center; font-size: 22px; font-weight: 800; }
.restock-minus, .restock-plus {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface2); border: 1.5px solid var(--border);
  font-size: 20px; font-weight: 700; cursor: pointer; display: grid; place-items: center;
  transition: all .15s; color: var(--text);
}
.restock-minus:hover { background: var(--red-bg); color: var(--red); border-color: var(--red); }
.restock-plus:hover  { background: #f0fdf4; color: var(--green); border-color: var(--green); }

/* ─── CHECKOUT PAGE ─── */
.checkout-wrap {
  max-width: 1100px; margin: 0 auto; padding: 28px 24px 80px;
  display: grid; grid-template-columns: 1fr 380px; gap: 28px; align-items: start;
}
@media (max-width: 860px) { .checkout-wrap { grid-template-columns: 1fr; } }

.checkout-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r2); overflow: hidden; box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.checkout-card-head {
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  display: flex; align-items: center; gap: 10px;
}
.checkout-card-head h3 { font-size: 14px; font-weight: 700; color: var(--text); }
.checkout-card-num {
  width: 24px; height: 24px; border-radius: 50%;
  background: var(--blue); color: #fff; font-size: 12px;
  font-weight: 700; display: grid; place-items: center; flex-shrink: 0;
}
.checkout-card-body { padding: 20px; }

.checkout-field { margin-bottom: 14px; }
.checkout-field label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; color: var(--text3); margin-bottom: 5px; }
.checkout-input, .checkout-select {
  width: 100%; height: 42px; padding: 0 14px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--r1); color: var(--text); font-size: 13.5px;
  outline: none; font-family: inherit; box-sizing: border-box;
  transition: border-color .15s;
}
.checkout-input:focus, .checkout-select:focus { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgba(238,21,21,.08); }
.checkout-select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%239ca3af' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 32px; }
.checkout-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* Shipping option cards */
.shipping-option {
  border: 1.5px solid var(--border); border-radius: var(--r2);
  padding: 14px 16px; cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 14px; margin-bottom: 8px;
  background: var(--surface);
}
.shipping-option:hover { border-color: var(--blue-lt); }
.shipping-option.selected { border-color: var(--blue); background: var(--blue-bg); }
.shipping-option input[type=radio] { accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.shipping-carrier-logo {
  width: 52px; height: 30px; border-radius: 4px;
  background: var(--surface2); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 800; color: var(--text2); flex-shrink: 0;
  letter-spacing: 0.5px;
}
.shipping-option-info { flex: 1; min-width: 0; }
.shipping-option-name { font-size: 13px; font-weight: 600; color: var(--text); }
.shipping-option-detail { font-size: 11px; color: var(--text3); margin-top: 2px; }
.shipping-option-note { font-size: 10px; color: var(--gold); margin-top: 2px; font-weight: 600; }
.shipping-option-price { font-size: 16px; font-weight: 800; color: var(--text); flex-shrink: 0; }
.shipping-option.cheapest .shipping-carrier-logo::after { content: ''; }
.cheapest-tag {
  font-size: 9px; font-weight: 700; background: #f0fdf4; color: var(--green);
  border: 1px solid #86efac; padding: 1px 5px; border-radius: 3px; margin-left: 6px;
}

/* Payment method selector */
.pay-method {
  border: 1.5px solid var(--border); border-radius: var(--r2);
  padding: 12px 16px; cursor: pointer; transition: all .15s;
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
}
.pay-method:hover { border-color: var(--blue-lt); }
.pay-method.selected { border-color: var(--blue); background: var(--blue-bg); }
.pay-method input[type=radio] { accent-color: var(--blue); width: 16px; height: 16px; flex-shrink: 0; }
.pay-method-icon { width: 42px; height: 26px; border-radius: 4px; background: var(--surface2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 800; color: var(--text2); flex-shrink: 0; }
.pay-method-name { font-size: 13px; font-weight: 600; color: var(--text); }
.pay-method-desc { font-size: 11px; color: var(--text3); margin-top: 1px; }

/* Order summary sidebar */
.order-summary { position: sticky; top: 108px; }
.order-item-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--border); align-items: center; }
.order-item-row:last-child { border-bottom: none; }
.order-item-thumb { width: 44px; height: 60px; border-radius: 5px; overflow: hidden; background: var(--surface2); flex-shrink: 0; }
.order-item-thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-item-name { font-size: 12.5px; font-weight: 600; color: var(--text); }
.order-item-set  { font-size: 10.5px; color: var(--text3); margin-top: 1px; }
.order-item-price { font-size: 13px; font-weight: 700; color: var(--text); margin-left: auto; flex-shrink: 0; }
.order-total-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; font-size: 13px; color: var(--text2); }
.order-total-row.grand { font-size: 16px; font-weight: 800; color: var(--text); padding-top: 12px; border-top: 1.5px solid var(--border); margin-top: 4px; }
.order-total-row.shipping { color: var(--green); }

/* Confirmation overlay */
#order-confirm-bg {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.6); z-index: 3000; backdrop-filter: blur(6px);
  align-items: center; justify-content: center;
}
#order-confirm-bg.open { display: flex; }
.order-confirm-box {
  background: var(--surface); border-radius: var(--r3);
  width: min(520px, 95vw); padding: 40px; text-align: center;
  box-shadow: var(--shadow-lg);
}
.order-confirm-icon { font-size: 52px; margin-bottom: 16px; }
.order-confirm-num { font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--text3); margin-bottom: 4px; }
.order-confirm-title { font-size: 22px; font-weight: 800; color: var(--text); margin-bottom: 10px; }
.order-confirm-sub { font-size: 14px; color: var(--text2); line-height: 1.7; margin-bottom: 24px; }

/* Export warning banner */
.export-warning {
  background: var(--gold-bg); border: 1.5px solid #fde68a;
  border-radius: var(--r2); padding: 12px 16px;
  font-size: 12.5px; color: #92400e; margin-bottom: 12px;
  display: flex; align-items: flex-start; gap: 8px;
}

/* ─── TRACKING BUTTON ─── */
.tracking-btn {
  display: inline-flex; align-items: center; gap: 7px;
  height: 34px; padding: 0 14px;
  background: var(--blue-bg); border: 1.5px solid rgba(238,21,21,.25);
  border-radius: var(--r1); color: var(--blue);
  font-size: 12px; font-weight: 600; cursor: pointer;
  transition: all .15s; text-decoration: none;
}
.tracking-btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }
.tracking-btn svg { width: 13px; height: 13px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ─── LOW STOCK ALERT ─── */
.low-stock-row { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--border); }
.low-stock-row:last-child { border-bottom: none; }
.low-stock-name { font-size: 13px; font-weight: 600; color: var(--text); flex: 1; }
.low-stock-qty-red    { font-size: 13px; font-weight: 800; color: var(--red); }
.low-stock-qty-orange { font-size: 13px; font-weight: 800; color: var(--gold); }

/* ─── ANGEBOTE PAGE FIX ─── */
.pg-btn {
  height: 32px; padding: 0 14px;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r1); color: var(--text2);
  font-size: 12px; font-weight: 600; cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.pg-btn:hover, .pg-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.product-grid-5 { grid-template-columns: repeat(5,1fr); }
@media (max-width:1100px) { .product-grid-5 { grid-template-columns: repeat(3,1fr); } }
@media (max-width:768px)  { .product-grid-5 { grid-template-columns: repeat(2,1fr); } }

/* ─── WORDPRESS ADMIN-BAR COMPENSATION ─── */
.admin-bar #settings-panel { top: 32px; height: calc(100vh - 32px); }
.admin-bar .panel-overlay   { top: 32px; }
@media screen and (max-width: 782px) {
  .admin-bar #settings-panel { top: 46px; height: calc(100vh - 46px); }
  .admin-bar .panel-overlay  { top: 46px; }
}

/* ─── NAV MEGA-DROPDOWN ─── */
#site-nav { position: relative; z-index: 350; }
.nav-item { position: relative; }
.nav-item > .nav-link { display: flex; align-items: center; gap: 4px; }
.nav-caret { font-size: 9px; opacity: .6; transition: transform .2s; }
.nav-item:hover .nav-caret { transform: rotate(180deg); }

.nav-dropdown {
  display: none; position: absolute; top: 100%; left: 0;
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: 0 var(--r2) var(--r2) var(--r2);
  box-shadow: var(--shadow-lg); z-index: 400;
  min-width: 480px; padding: 18px;
  flex-direction: row; gap: 18px;
}
.nav-item:hover .nav-dropdown { display: flex; }

.nav-dd-left { flex: 1; min-width: 0; }
.nav-dd-title {
  font-size: 10px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--text3); margin-bottom: 10px;
}
.nav-dd-items { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; }
.nav-dd-item {
  display: block; padding: 7px 10px; border-radius: var(--r1);
  font-size: 12.5px; color: var(--text2); font-weight: 500; transition: all .12s;
  white-space: nowrap;
}
.nav-dd-item:hover { background: var(--surface2); color: var(--blue); }
.nav-dd-item.all-link {
  grid-column: 1/-1; font-weight: 700; color: var(--blue);
  border-top: 1px solid var(--border); margin-top: 6px; padding-top: 10px;
}
.nav-dd-right {
  width: 160px; flex-shrink: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  background: var(--surface2); border-radius: var(--r2);
  padding: 14px 10px; text-align: center;
}
.nav-dd-preview-img {
  width: 100%; max-height: 120px; object-fit: contain; border-radius: var(--r1);
}
.nav-dd-preview-label {
  font-size: 11px; color: var(--text3); font-weight: 600;
}
.nav-dd-preview-name {
  font-size: 12px; color: var(--text); font-weight: 700; line-height: 1.3;
}

/* ─── ADMIN PIN LOGIN ─── */
.pi-login-wrap {
  min-height: calc(100vh - 200px); display: flex;
  align-items: center; justify-content: center; padding: 40px 24px;
}
.pi-login-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r3); padding: 44px; width: min(420px,100%);
  box-shadow: var(--shadow-lg); text-align: center;
}
.pi-login-logo {
  width: 60px; height: 60px;
  background: linear-gradient(135deg,#cc0d0d,#ff4040);
  border-radius: var(--r2); display: grid; place-items: center;
  margin: 0 auto 22px;
}
.pi-login-title { font-size: 22px; font-weight: 800; margin-bottom: 6px; }
.pi-login-sub   { font-size: 13px; color: var(--text3); margin-bottom: 30px; }
.pi-pin-input {
  width: 100%; height: 54px; font-size: 22px; font-weight: 800;
  text-align: center; letter-spacing: 6px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--r1); color: var(--text); outline: none;
  font-family: inherit; margin-bottom: 12px; padding: 0 16px;
  transition: border-color .15s;
}
.pi-pin-input:focus { border-color: var(--blue); background: var(--surface); box-shadow: 0 0 0 3px rgba(238,21,21,.1); }
.pi-login-btn {
  width: 100%; height: 48px; background: var(--blue); border-radius: var(--r1);
  color: #fff; font-size: 15px; font-weight: 700; cursor: pointer;
  font-family: inherit; transition: all .2s;
}
.pi-login-btn:hover { background: #cc0d0d; transform: translateY(-1px); }
.pi-login-error   { background: var(--red-bg); border: 1px solid rgba(220,38,38,.3); border-radius: var(--r1); padding: 11px 14px; font-size: 13px; color: var(--red); font-weight: 600; margin-top: 14px; }
.pi-login-success { background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--r1); padding: 11px 14px; font-size: 13px; color: #15803d; font-weight: 600; margin-top: 14px; }

/* ─── ADMIN SHIPPING TAB ─── */
.ship-order-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r2); padding: 18px 20px; margin-bottom: 14px;
  transition: opacity .3s;
}
.ship-order-header {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-bottom: 10px; border-bottom: 1px solid var(--border);
}
.ship-addr-block {
  background: var(--surface2); border: 1px solid var(--border);
  border-radius: var(--r1); padding: 12px 14px; line-height: 1.7;
  font-size: 13px; color: var(--text2);
}
.ship-addr-return { border-color: var(--blue); border-style: dashed; }
.ship-addr-title { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text3); margin-bottom: 4px; }
.ship-addr-name { font-size: 14px; font-weight: 700; color: var(--text); }
.ship-addr-line { font-size: 13px; }
.ship-addr-email { font-size: 11px; color: var(--text3); margin-top: 2px; }
.ship-items-list {
  background: var(--surface2); border-radius: var(--r1); padding: 10px 14px;
  margin-top: 4px;
}
.ship-item-row {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; padding: 3px 0; border-bottom: 1px solid var(--border);
  gap: 8px;
}
.ship-item-row:last-child { border-bottom: none; }
.ship-actions { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.print-label-btn {
  height: 40px; padding: 0 18px;
  background: var(--blue); color: #fff; border: none;
  border-radius: var(--r1); font-size: 13px; font-weight: 700;
  cursor: pointer; font-family: inherit;
  transition: all .15s;
}
.print-label-btn:hover { background: #cc0d0d; transform: translateY(-1px); }
.mark-shipped-btn {
  height: 40px; padding: 0 18px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--r1); font-size: 13px; font-weight: 600;
  cursor: pointer; font-family: inherit; color: var(--text2);
  transition: all .15s;
}
.mark-shipped-btn:hover { border-color: var(--green); color: var(--green); background: rgba(34,197,94,.06); }

/* ─── ADMIN SETTINGS TAB ─── */
.adm-settings-group {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r2); padding: 20px 22px; margin-bottom: 16px;
}
.adm-settings-title {
  font-size: 14px; font-weight: 800; color: var(--text);
  margin-bottom: 14px; padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}

/* ─── CHECKOUT VAT / MOLLIE ─── */
.vat-note { font-size: 11px; color: var(--text3); text-align: center; margin-top: 6px; }
.order-total-row.vat-row { font-size: 11px; color: var(--text3); padding: 3px 0; }
.mollie-btn {
  width: 100%; height: 52px; border-radius: var(--r1); border: none;
  background: linear-gradient(135deg,#ff6900,#ff8c00);
  color: #fff; font-size: 15px; font-weight: 800; cursor: pointer;
  font-family: inherit; transition: all .2s; margin-top: 16px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.mollie-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 20px rgba(255,105,0,.35); }

/* ─── ICE HERO THEME ─── */
.hero-ice { background: linear-gradient(135deg, #4d1205 0%, #9a0a0a 40%, #c00d0d 70%, #ee1515 100%) !important; }
.hero-ice .hero-bg-glow {
  background:
    radial-gradient(ellipse 60% 80% at 75% 50%, rgba(120,220,255,0.2) 0%, transparent 60%),
    radial-gradient(ellipse 40% 50% at 10% 30%, rgba(6,34,65,0.5) 0%, transparent 50%),
    radial-gradient(circle at 50% 100%, rgba(0,180,255,0.1) 0%, transparent 40%) !important;
}

/* ─── PRINT STYLES (shipping labels) ─── */
@media print {
  body > *:not(#print-label-area) { display: none !important; }
  #print-label-area {
    display: block !important; position: static !important;
    width: 100%; font-family: 'Courier New', monospace;
  }
}
.print-label-sheet {
  display: none; /* shown only via JS before print */
  width: 148mm; border: 2px solid #000;
  font-family: 'Courier New', monospace; padding: 0;
  page-break-inside: avoid;
}
@media print {
  .print-label-sheet { display: block !important; margin: 0 auto; }
}
.print-label-from {
  padding: 12mm 14mm 8mm; border-bottom: 1px solid #000;
  font-size: 9pt;
}
.print-label-to {
  padding: 12mm 14mm; border-bottom: 1px solid #000;
  font-size: 13pt; font-weight: bold; line-height: 1.8;
}
.print-label-order {
  padding: 6mm 14mm; font-size: 9pt;
}
.print-label-section-title {
  font-size: 7pt; text-transform: uppercase; letter-spacing: .08em;
  color: #666; margin-bottom: 4pt;
}

/* ─── PANEL ACCOUNT BLOCK ─── */
.panel-account-card {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin: 0 0 2px;
  background: var(--surface2); border-radius: var(--r2);
}
.panel-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--blue); color: #fff;
  font-size: 18px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.panel-account-info { min-width: 0; }
.panel-account-name { font-size: 14px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.panel-account-email { font-size: 11px; color: var(--text3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.panel-quick-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
  padding: 8px 0 4px;
}
.panel-quick-btn {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 10px 6px; border-radius: var(--r1);
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text2); font-size: 10px; font-weight: 600;
  cursor: pointer; text-decoration: none; font-family: inherit;
  transition: all .15s; text-align: center;
}
.panel-quick-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.panel-quick-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.panel-auth-btns {
  display: flex; gap: 8px; padding: 6px 0 8px;
}
.panel-btn-login {
  flex: 1; height: 40px; border-radius: var(--r1);
  background: var(--surface2); border: 1.5px solid var(--border);
  color: var(--text); font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all .15s;
}
.panel-btn-login:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-bg); }
.panel-btn-register {
  flex: 1; height: 40px; border-radius: var(--r1);
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; transition: all .15s;
}
.panel-btn-register:hover { background: #cc0d0d; }

.panel-link-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-radius: var(--r1); margin-bottom: 2px;
  color: var(--text); font-size: 13px; font-weight: 500;
  text-decoration: none; transition: background .12s;
  cursor: pointer;
}
.panel-link-row:hover { background: var(--surface3); }
.panel-link-danger { color: var(--red) !important; }
.panel-link-danger:hover { background: var(--red-bg) !important; }

.panel-links-footer {
  display: flex; flex-wrap: wrap; gap: 6px 14px;
  padding: 12px 4px 4px;
  border-top: 1px solid var(--border);
  margin-top: 4px;
}
.panel-links-footer a {
  font-size: 11px; color: var(--text3); text-decoration: none;
  transition: color .12s;
}
.panel-links-footer a:hover { color: var(--blue); }

/* ─── PREORDER NAV LINK ─── */
.nav-link-preorder { color: #ef4444 !important; font-weight: 700 !important; }
.nav-link-preorder:hover,
.nav-link-preorder.active { color: #dc2626 !important; background: rgba(239,68,68,.08) !important; }

/* ─── DEV TOOL FAB ─── */
#devtool-fab:hover { transform: scale(1.12) rotate(10deg); box-shadow: 0 6px 28px rgba(238,21,21,.55); }

/* ════════════════════════════════════════════════════════
   RESPONSIVE / MOBILE REFINEMENTS  (universal: phone/tablet/PC)
   Appended last so these win at matching specificity.
   ════════════════════════════════════════════════════════ */

/* Never allow stray wide content to create a horizontal scrollbar */
html { overflow-x: hidden; }
/* Watchlist/Wishlist removed — hide any remaining heart buttons + panel */
.wishlist-btn, #btn-wish, #wish-panel { display: none !important; }
img, svg, video, iframe { max-width: 100%; }
/* break very long unbreakable strings (URLs, card codes) instead of overflowing */
.pcard-name, .pcard-set, .sdrop-name, .panel-account-email, h1, h2, h3, p { overflow-wrap: anywhere; }

/* Heavier, chunkier type (djspokecenter look) */
.section-title { font-weight: 800; }
.section-label { font-weight: 800; }
.nav-link { font-weight: 700; }
.pcard-name { font-weight: 700; }
.hbtn { font-weight: 600; }
.topstrip-links a, .lang-current { font-weight: 600; }
.hero-sub-main { font-weight: 600; }

/* Category mega-nav: clean horizontal scroll on touch; items keep their size */
.nav-inner { -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.nav-inner::-webkit-scrollbar { display: none; }
@media (max-width: 900px) {
  .nav-item { flex-shrink: 0; }
  .nav-dropdown { display: none !important; }   /* hover menus aren't usable on touch */
}

/* ── Tablet ── */
@media (max-width: 1024px) {
  .cat-showcase { gap: 12px; }
}

/* Collapse fixed-sidebar 2-column layouts to a single column on small screens.
   Targets the .cat-layout class AND inline-styled grids (attr selectors + !important
   beat inline styles). Covers: karten, account, single card, ankauf, kontakt, category pages. */
@media (max-width: 820px) {
  .cat-layout,
  [style*="220px 1fr"], [style*="240px 1fr"],
  [style*="420px 1fr"], [style*="480px 1fr"],
  [style*="1fr 280px"], [style*="1fr 340px"], [style*="1fr 320px"] {
    grid-template-columns: 1fr !important;
  }
  /* allow the 1fr track to stay at viewport width so inner scroll-wrappers work
     (defeats the default grid/flex min-width:auto that blows the track out) */
  .cat-layout > *,
  [style*="220px 1fr"] > *, [style*="240px 1fr"] > *,
  [style*="420px 1fr"] > *, [style*="480px 1fr"] > *,
  [style*="1fr 280px"] > *, [style*="1fr 340px"] > *, [style*="1fr 320px"] > * {
    min-width: 0;
  }
  /* when stacked, the sticky filter/sidebar should not stay pinned */
  .cat-sidebar, .filter-panel, .shop-sidebar { position: static !important; }
}

/* ── Header: 2 rows (logo + icon actions, then full-width search) ── */
@media (max-width: 768px) {
  .header-inner {
    flex-wrap: wrap;
    height: auto;
    min-height: 56px;
    padding: 8px 14px;
    row-gap: 8px;
    column-gap: 8px;
  }
  .search-wrap { position: static; transform: none; width: 100%; order: 5; }
  .header-actions { margin-left: auto; gap: 6px; }
  .hbtn { padding: 0 11px; }
  .hbtn span[data-i18n] { display: none; }   /* icon-only action buttons */
}

/* ── Phones ── */
@media (max-width: 480px) {
  .logo-img { height: 44px; }
  .hbtn { height: 36px; padding: 0 9px; }
  .header-actions { gap: 4px; }
  .cat-showcase-wrap { padding: 28px 16px; }
  .cat-tile { height: 150px; }
  .footer-cols { grid-template-columns: 1fr !important; }
  .hero-trust-row { gap: 18px 24px; }
}

/* ─── PREORDER PAGE ─── */
.preorder-hero {
  background: linear-gradient(135deg, #450a0a 0%, #7f1d1d 40%, #b91c1c 75%, #dc2626 100%);
  min-height: 320px; display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 60px 24px; position: relative; overflow: hidden;
}
.preorder-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse 70% 80% at 50% 50%, rgba(255,100,100,.15) 0%, transparent 70%);
}
.preorder-hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,100,100,.2); border: 1px solid rgba(255,100,100,.4);
  color: rgba(255,200,200,.9); font-size: 11px; font-weight: 700;
  letter-spacing: 1.5px; text-transform: uppercase;
  padding: 6px 16px; border-radius: 20px; margin-bottom: 18px;
}
.preorder-hero h1 {
  font-size: clamp(28px, 5vw, 48px); font-weight: 800; color: #fff;
  line-height: 1.15; margin-bottom: 14px;
}
.preorder-hero-sub {
  font-size: 15px; color: rgba(255,220,220,.8); max-width: 540px; margin: 0 auto 24px; line-height: 1.7;
}
.preorder-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #dc2626; color: #fff; font-size: 11px; font-weight: 700;
  padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px;
}
.preorder-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px; padding: 0;
}
.preorder-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r2); overflow: hidden; transition: all .2s;
  display: flex; flex-direction: column;
}
.preorder-card:hover { border-color: #ef4444; transform: translateY(-3px); box-shadow: 0 8px 28px rgba(239,68,68,.15); }
.preorder-card-img {
  height: 180px; position: relative; overflow: hidden;
  background: linear-gradient(135deg,#450a0a,#b91c1c);
  display: flex; align-items: center; justify-content: center;
}
.preorder-card-img img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.preorder-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.preorder-card-name { font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.preorder-card-set  { font-size: 12px; color: var(--text3); margin-bottom: 10px; }
.preorder-card-price { font-size: 18px; font-weight: 800; color: #dc2626; margin-bottom: 4px; }
.preorder-card-release { font-size: 11px; color: var(--text3); margin-bottom: 14px; }
.preorder-card-desc { font-size: 12px; color: var(--text2); line-height: 1.6; flex: 1; margin-bottom: 14px; }
.btn-preorder {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 44px; background: linear-gradient(135deg,#b91c1c,#dc2626);
  border: none; border-radius: var(--r1); color: #fff;
  font-size: 14px; font-weight: 700; cursor: pointer; font-family: inherit;
  text-decoration: none; transition: all .2s;
}
.btn-preorder:hover { background: linear-gradient(135deg,#991b1b,#b91c1c); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(185,28,28,.4); }
.preorder-empty {
  text-align: center; padding: 80px 24px; color: var(--text3);
}
.preorder-empty-icon { font-size: 56px; margin-bottom: 16px; }
.preorder-empty-title { font-size: 18px; font-weight: 700; color: var(--text2); margin-bottom: 8px; }

/* ─── BEWERTUNG (REVIEW) PAGE ─── */
.review-wrap {
  max-width: 560px; margin: 60px auto; padding: 0 24px;
}
.review-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r2); padding: 32px; box-shadow: var(--shadow);
}
.review-stars {
  display: flex; gap: 8px; margin: 20px 0;
}
.star-btn {
  font-size: 36px; cursor: pointer; line-height: 1; transition: transform .15s;
  background: none; border: none; padding: 0; color: #d1d5db;
}
.star-btn.active { color: #f59e0b; }
.star-btn:hover { transform: scale(1.2); }
.review-textarea {
  width: 100%; min-height: 120px; padding: 12px 14px;
  background: var(--surface2); border: 1.5px solid var(--border);
  border-radius: var(--r1); color: var(--text); font-size: 14px;
  font-family: inherit; resize: vertical; line-height: 1.6; outline: none;
}
.review-textarea:focus { border-color: var(--blue); }
.review-success {
  text-align: center; padding: 40px 24px;
}
.review-success-icon { font-size: 56px; margin-bottom: 16px; }

/* ─── LEGAL PAGES ─── */
.legal-page-wrap { max-width: 760px; margin: 60px auto; padding: 0 24px 80px; }
.legal-title { font-size: 32px; font-weight: 800; color: var(--text); margin-bottom: 36px; }
.legal-section { margin-bottom: 32px; padding-bottom: 32px; border-bottom: 1px solid var(--border); }
.legal-section:last-child { border-bottom: none; }
.legal-section h2 { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.legal-section p { font-size: 14px; color: var(--text2); line-height: 1.8; margin-bottom: 10px; }
.legal-section ul { padding-left: 20px; margin-bottom: 10px; }
.legal-section ul li { font-size: 14px; color: var(--text2); line-height: 1.8; }
.legal-section a { color: var(--blue); }

/* ═══════════════════════════════════════════════════════════════════
   USABILITY / ALL-DEVICES PASS — admin panel mobile, top-strip,
   touch targets, iOS input zoom. Appended last so it wins the cascade.
   ═══════════════════════════════════════════════════════════════════ */

/* ── ADMIN PANEL — tablets ── */
@media (max-width: 1100px) {
  .adm-topbar { flex-wrap: wrap; height: auto; min-height: 56px; padding: 8px 12px; gap: 8px; }
  .adm-topbar h2 { font-size: 14px; }
  /* 13 tabs become one horizontally swipeable row */
  .adm-tabs {
    order: 3; flex-basis: 100%;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: thin; padding-bottom: 4px;
  }
  .adm-tab { white-space: nowrap; flex-shrink: 0; padding: 8px 12px; }
}

/* ── ADMIN PANEL — phones ── */
@media (max-width: 768px) {
  .adm-body { padding: 12px; }
  /* Wide data tables scroll sideways instead of being clipped */
  .adm-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .adm-table { min-width: 620px; }
  .adm-stats { grid-template-columns: repeat(2, 1fr); }
  .adm-grid2, .adm-grid3 { grid-template-columns: 1fr; }
  /* Collapse the admin's inline 2-/3-column form grids to one column */
  #admin-dash [style*="grid-template-columns: repeat(2"],
  #admin-dash [style*="grid-template-columns:repeat(2"],
  #admin-dash [style*="grid-template-columns: repeat(3"],
  #admin-dash [style*="grid-template-columns:repeat(3"],
  #admin-dash [style*="grid-template-columns: 1fr 1fr"],
  #admin-dash [style*="grid-template-columns:1fr 1fr"] { grid-template-columns: 1fr !important; }
  /* Comfortable touch targets */
  .adm-btn { min-height: 42px; }
  .adm-input, .adm-select, .adm-search { height: 42px; }
}

/* ── ADMIN modals: full-screen sheets on small phones ── */
@media (max-width: 640px) {
  .adm-modal {
    width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh;
    border-radius: 0; padding: 18px 14px;
  }
}

/* ── TOP STRIP on phones: keep the currency picker, drop the text links ── */
@media (max-width: 768px) {
  .topstrip-right { gap: 10px; }
  .topstrip-right a, .topstrip-right > span:not(:has(select)) { display: none; }
  #pi-currency-sel { font-size: 12px; }
}

/* ── Product-card steppers: finger-sized on touch screens ── */
@media (max-width: 768px) {
  .pcard-stepper { height: 36px; }
  .pcs-btn { width: 36px; height: 34px; font-size: 18px; }
  .pcs-qty { padding: 0 10px; }
}

/* ── iOS zooms into inputs below 16px font — prevent it on all forms ── */
@media (max-width: 768px) {
  input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
  input[type="password"], input[type="search"], input:not([type]),
  select, textarea { font-size: 16px !important; }
}

/* ── MICRO-INTERACTIONS — stepper, cart badge, button press ── */
/* Add → stepper: gentle pop-in (class set by JS only on first appearance) */
@keyframes pcs-pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: scale(1); } }
.pcard-stepper.pop { animation: pcs-pop .18s ease-out; }
/* Quantity change: short bump on the number / cart badge */
@keyframes pcs-bump { 0% { transform: scale(1); } 40% { transform: scale(1.28); } 100% { transform: scale(1); } }
.pcs-qty.bump { animation: pcs-bump .25s ease-out; }
.cart-dot.bump { animation: pcs-bump .3s ease-out; display: inline-grid; }
/* Press feedback (especially touch) */
.btn-cart:active, .adm-btn:active, .btn-preorder:active, .btn-restock:active { transform: scale(.95); }
.pcs-btn { transition: filter 0.15s, transform 0.1s; }
.pcs-btn:active { transform: scale(.88); }

/* ── COOKIE BANNER on phones: stack buttons full-width so "Accept All" is never off-screen ── */
@media (max-width: 600px) {
  #cookie-banner { padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); }
  #cookie-banner > div { flex-direction: column; align-items: stretch; gap: 14px; }
  #cookie-banner > div > div:last-child { width: 100%; flex-direction: column; gap: 8px; }
  #cookie-banner > div > div:last-child button { width: 100%; height: 44px; }
}

/* ── ACCESSIBILITY: respect "reduce motion" (stops marquee, pulses, pops) ── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ===================================================================
   UNIVERSAL DEVICE COMPATIBILITY - every phone/tablet/desktop.
   Appended last so it wins. Goal: never break, never scroll sideways.
   =================================================================== */

/* 1) Never allow horizontal scrolling on any screen size */
html, body { max-width: 100%; overflow-x: hidden; }

/* 2) Media + embeds never overflow their container */
img, video, iframe, embed, object { max-width: 100%; }
img { height: auto; }

/* 3) Long unbroken strings (card names, codes, emails) wrap instead of
      forcing the page wider */
.pcard-name, .pcard-set, .order-item-name, .legal-section p,
.legal-section li, .info-value, .karten-title { overflow-wrap: anywhere; }

/* 4) Safe area for notched / rounded phones (iPhone X+, modern Android) */
@supports (padding: max(0px)) {
  #topstrip {
    padding-left:  max(12px, env(safe-area-inset-left));
    padding-right: max(12px, env(safe-area-inset-right));
  }
  #cart-panel, #settings-panel, #support-panel { padding-bottom: env(safe-area-inset-bottom); }
  #toast-container { bottom: max(24px, env(safe-area-inset-bottom)); }
}

/* 5) Small phones (<=400px): tighten spacing, keep text readable */
@media (max-width: 400px) {
  .product-grid { gap: 8px; }
  .pcard-name { font-size: 12.5px; }
  h1 { overflow-wrap: anywhere; }
  .hero-welcome-img { width: 100% !important; max-width: 100% !important; }
  .section-title { font-size: clamp(1.1rem, 6vw, 1.6rem); }
}

/* 6) Very small phones (<=340px): 2-col product grids stay comfortable */
@media (max-width: 340px) {
  .product-grid, .product-grid.g5, .product-grid.g6 { grid-template-columns: 1fr 1fr; gap: 7px; }
  .logo-img { height: 40px !important; }
}
