/* =========================================================================
   2WAHL Shop · Design System v2 · Fahrrad-XXL Rot
   ========================================================================= */

:root {
  /* Surfaces */
  --bg: #f5f7fb;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef1f6;
  --border: #e6eaf0;
  --border-strong: #d1d7e0;

  /* Text */
  --text: #0f172a;
  --text-soft: #475569;
  --text-mute: #94a3b8;

  /* Brand */
  --primary: #e30613;
  --primary-dark: #b8040f;
  --primary-light: #ffe8ea;
  --primary-tint: #fff5f5;
  --accent: #ffd200;

  /* Semantic */
  --success: #10b981;
  --success-light: #d1fae5;
  --danger: #ef4444;
  --danger-light: #fee2e2;
  --warning: #f59e0b;
  --warning-light: #fef3c7;
  --info: #3b82f6;
  --info-light: #dbeafe;

  /* Effects */
  --shadow-xs: 0 1px 2px rgba(15,23,42,.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,.08), 0 1px 2px rgba(15,23,42,.04);
  --shadow-md: 0 4px 12px rgba(15,23,42,.08);
  --shadow-lg: 0 12px 32px rgba(15,23,42,.12);
  --shadow-xl: 0 24px 48px rgba(15,23,42,.16);

  --r-sm: 6px;
  --r-md: 10px;
  --r-lg: 14px;
  --r-xl: 20px;

  --header-h: 64px;

  --font-sans: "Inter", "Segoe UI", -apple-system, BlinkMacSystemFont, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html, body {
  margin: 0; padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 14.5px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
a:hover { color: var(--primary); }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; }
input, select, textarea { font-family: inherit; }
.hide { display: none !important; }

/* ---------- App Header ---------- */
.app-header {
  height: var(--header-h);
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 24px;
  gap: 24px;
}
.app-header .brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 800; font-size: 16px; letter-spacing: -.01em;
  color: var(--text);
}
.app-header .brand .logo {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(135deg, var(--primary), #ff3a47);
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 12px rgba(227,6,19,.3);
}
.app-header .brand small { display: block; font-weight: 500; font-size: 11px; color: var(--text-mute); margin-top: -2px; }
.app-header-actions { display: flex; align-items: center; gap: 8px; }

/* ---------- Search (Shop) ---------- */
.search-wrap {
  flex: 1; max-width: 600px;
  position: relative;
}
.search-wrap input {
  width: 100%; height: 40px;
  padding: 0 16px 0 42px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-2);
  font-size: 14px;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
.search-wrap input:focus {
  outline: 0; background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.search-wrap i.search-icon {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  color: var(--text-mute); width: 18px; height: 18px;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border: 0; border-radius: var(--r-md);
  background: var(--primary); color: #fff;
  font-weight: 600; font-size: 14px;
  cursor: pointer;
  transition: background .15s, transform .08s, box-shadow .15s;
  white-space: nowrap;
}
.btn:hover { background: var(--primary-dark); }
.btn:active { transform: scale(.98); }
.btn:disabled { background: #cbd5e1; color: #94a3b8; cursor: not-allowed; }

.btn-lg { padding: 12px 24px; font-size: 15px; }
.btn-sm { padding: 6px 12px; font-size: 12.5px; gap: 4px; }
.btn-xs { padding: 4px 10px; font-size: 11.5px; gap: 4px; border-radius: 6px; }

.btn-ghost {
  background: transparent; color: var(--text);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: var(--surface-2); border-color: var(--border-strong); color: var(--primary); }

.btn-success { background: var(--success); }
.btn-success:hover { background: #059669; }
.btn-danger { background: var(--danger); }
.btn-danger:hover { background: #dc2626; }

.icon-btn {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: var(--r-md);
  color: var(--text-soft);
  cursor: pointer;
  transition: all .15s;
}
.icon-btn:hover { background: var(--surface-2); color: var(--primary); border-color: var(--border-strong); }

.icon-btn-borderless {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border: 0; background: transparent;
  border-radius: var(--r-md);
  color: var(--text-soft);
  cursor: pointer;
  transition: background .15s, color .15s;
  position: relative;
}
.icon-btn-borderless:hover { background: var(--surface-2); color: var(--primary); }
.icon-btn-borderless .badge {
  position: absolute; top: 4px; right: 4px;
  min-width: 18px; height: 18px; padding: 0 5px;
  background: var(--primary); color: #fff;
  border-radius: 999px;
  font-size: 11px; font-weight: 700;
  display: grid; place-items: center;
}

/* ---------- Login Page ---------- */
.login-page {
  min-height: 100vh;
  background:
    radial-gradient(circle at 0% 0%, rgba(227,6,19,.18), transparent 35%),
    radial-gradient(circle at 100% 100%, rgba(255,210,0,.15), transparent 35%),
    #0f1217;
  display: grid; place-items: center;
  padding: 24px;
}
.login-card {
  width: 100%; max-width: 420px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--r-xl);
  padding: 36px;
  color: #fff;
  backdrop-filter: blur(20px);
  animation: fadeUp .35s ease;
}
@keyframes fadeUp { from { opacity:0; transform: translateY(12px);} to { opacity:1; transform:none;}}
.login-card .brand { color: #fff; margin-bottom: 22px; font-size: 22px; }
.login-card .field { margin-bottom: 14px; }
.login-card label { display: block; font-size: 12.5px; color: rgba(255,255,255,.7); margin-bottom: 6px; font-weight: 600; }
.login-card input {
  width: 100%; height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--r-md);
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 14.5px;
  transition: border-color .15s, box-shadow .15s;
}
.login-card input::placeholder { color: rgba(255,255,255,.4); }
.login-card input:focus { outline: 0; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(227,6,19,.25); }
.login-card .alert {
  background: rgba(239,68,68,.15);
  border: 1px solid rgba(239,68,68,.4);
  color: #fecaca;
  padding: 10px 14px; border-radius: var(--r-md);
  font-size: 13.5px; margin-bottom: 12px;
}
.login-card .btn { width: 100%; padding: 12px; font-size: 15px; }
.login-foot { text-align: center; color: rgba(255,255,255,.5); font-size: 12.5px; margin-top: 10px; }

/* =========================================================================
   ADMIN LAYOUT
   ========================================================================= */
.admin-shell {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: calc(100vh - var(--header-h));
}

.admin-sidebar {
  background: #fff;
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: var(--header-h);
  align-self: start;
  height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--text-mute);
  padding: 0 24px 10px;
}
.sidebar-nav {
  display: flex; flex-direction: column; gap: 2px;
}
.sidebar-nav button {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 24px;
  border: 0; background: transparent;
  text-align: left;
  font-size: 14px; font-weight: 600;
  color: var(--text-soft);
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: all .12s;
}
.sidebar-nav button i { width: 18px; height: 18px; flex: none; }
.sidebar-nav button:hover { background: var(--surface-2); color: var(--text); }
.sidebar-nav button.active {
  background: var(--primary-tint);
  color: var(--primary);
  border-left-color: var(--primary);
}

.admin-main {
  padding: 32px 40px;
  width: 100%;
  min-width: 0;
}

.page-head { margin-bottom: 28px; }
.page-head h1 {
  margin: 0 0 6px;
  font-size: 26px; font-weight: 800;
  letter-spacing: -.02em;
}
.page-head .sub { margin: 0; color: var(--text-soft); font-size: 14px; }

/* Stat Cards */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.stat-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; align-items: center; gap: 16px;
  transition: transform .15s, box-shadow .15s;
}
.stat-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.stat-icon-box {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: grid; place-items: center;
  flex: none;
}
.stat-icon-box i { width: 26px; height: 26px; }
.stat-blue { background: var(--info-light); color: var(--info); }
.stat-green { background: var(--success-light); color: var(--success); }
.stat-orange { background: var(--warning-light); color: var(--warning); }
.stat-red { background: var(--danger-light); color: var(--danger); }
.stat-purple { background: #ede9fe; color: #7c3aed; }
.stat-label { font-size: 11.5px; font-weight: 600; color: var(--text-mute); text-transform: uppercase; letter-spacing: .04em; }
.stat-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; margin-top: 2px; }
.stat-sub { font-size: 12px; color: var(--text-soft); margin-top: 4px; }

/* Info cards */
.card-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.info-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.info-card h3 {
  margin: 0 0 12px;
  font-size: 13px; font-weight: 700;
  color: var(--text-soft);
  text-transform: uppercase;
  letter-spacing: .04em;
  display: flex; align-items: center; gap: 8px;
}
.info-card h3 i { width: 16px; height: 16px; color: var(--primary); }
.info-card .big-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.info-card .big-num.small { font-size: 14px; font-weight: 600; color: var(--text); }

/* Card Block */
.card-block {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  margin-bottom: 18px;
}
.card-block.accent {
  background: linear-gradient(135deg, #fff 0%, #fffbfb 100%);
  border-color: var(--primary-light);
}
.card-block h2 {
  margin: 0 0 16px;
  font-size: 17px; font-weight: 700;
  display: flex; align-items: center; gap: 10px;
}
.card-block h2 i { width: 20px; height: 20px; color: var(--primary); }
.card-block .desc { font-size: 13.5px; color: var(--text-soft); margin: -8px 0 16px; }

/* Forms */
.form-grid {
  display: grid;
  gap: 12px;
  align-items: end;
}
.form-grid.cols-3 { grid-template-columns: 2fr 2fr 1fr auto; }
.form-grid.cols-5 { grid-template-columns: 2fr 1fr 1fr 1.5fr 1fr auto; }
@media (max-width: 980px) { .form-grid { grid-template-columns: 1fr !important; } }

.field label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: var(--text-soft);
  margin-bottom: 5px;
}
.field input, .field select, .field textarea {
  width: 100%; height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  font-size: 14px;
  background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { height: 88px; padding: 10px 12px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px var(--primary-light);
}
.field .hint { font-size: 11.5px; color: var(--text-mute); margin-top: 4px; }

/* Tables */
.table-wrap {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.data-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.data-table th {
  padding: 12px 16px;
  font-size: 11.5px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
  text-align: left;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
}
.data-table td {
  padding: 14px 16px;
  font-size: 13.5px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table tbody tr:hover td { background: var(--surface-2); }
.data-table .actions { display: flex; gap: 6px; }

.mono { font-family: ui-monospace, SF Mono, Menlo, monospace; font-size: 12.5px; }
.price { color: var(--primary); font-weight: 700; font-size: 15px; }
.text-muted { color: var(--text-mute); font-size: 12px; }

/* Tags */
.tag {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
  text-transform: capitalize;
}
.tag-pending { background: var(--warning-light); color: #92400e; }
.tag-approved { background: var(--success-light); color: #065f46; }
.tag-declined { background: var(--danger-light); color: #991b1b; }
.tag-fulfilled { background: var(--info-light); color: #1e40af; }
.tag-cancelled { background: var(--surface-3); color: #475569; }
.tag-admin { background: #ede9fe; color: #6d28d9; }
.tag-mitarbeiter { background: var(--info-light); color: #1e40af; }
.tag-global { background: #fce7f3; color: #9d174d; }
.tag-pg { background: var(--info-light); color: #1e40af; }
.tag-marke { background: var(--warning-light); color: #92400e; }
.tag-artikel { background: var(--danger-light); color: #991b1b; }

/* Switch */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider {
  position: absolute; cursor: pointer; inset: 0;
  background: #cbd5e1;
  border-radius: 999px;
  transition: .15s;
}
.switch .slider::before {
  content: ""; position: absolute;
  left: 3px; top: 3px;
  width: 18px; height: 18px;
  background: #fff;
  border-radius: 50%;
  transition: .15s;
}
.switch input:checked + .slider { background: var(--success); }
.switch input:checked + .slider::before { transform: translateX(18px); }

.num-input {
  width: 80px; height: 32px;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0 8px;
  font-size: 13.5px;
}
.num-input:focus { outline: 0; border-color: var(--primary); }

/* Filter Bar */
.filter-bar {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 16px;
}
.filter-bar label { font-size: 13px; font-weight: 600; color: var(--text-soft); }
.filter-bar select {
  height: 36px; padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
  font-size: 14px;
}

/* Empty/Loading */
.empty {
  padding: 60px 20px;
  text-align: center;
  color: var(--text-mute);
}
.empty i { width: 48px; height: 48px; margin-bottom: 8px; }
.empty p { margin: 8px 0 0; }
.error-box {
  padding: 14px 18px;
  background: var(--danger-light);
  border: 1px solid #fca5a5;
  color: #991b1b;
  border-radius: var(--r-md);
  font-size: 13.5px;
}
.loading-block { padding: 60px; text-align: center; color: var(--text-mute); }

/* Action Cards */
.action-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
@media (max-width: 760px) { .action-grid { grid-template-columns: 1fr; } }
.action-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.action-card-head { display: flex; gap: 14px; align-items: center; }
.action-icon-box {
  width: 48px; height: 48px;
  border-radius: 11px;
  display: grid; place-items: center;
  flex: none;
}
.action-icon-box i { width: 24px; height: 24px; }
.action-card h4 { margin: 0; font-size: 15px; font-weight: 700; }
.action-card p { margin: 4px 0 0; font-size: 13px; color: var(--text-soft); }

/* ---------- Upload Zone ---------- */
.upload-container { margin-top: 16px; }

.file-picker {
  border: 2px dashed var(--border-strong);
  border-radius: var(--r-lg);
  padding: 32px;
  background: var(--surface-2);
  text-align: center;
  cursor: pointer;
  transition: all .15s;
}
.file-picker:hover {
  border-color: var(--primary);
  background: var(--primary-tint);
}
.file-picker.dragging {
  border-color: var(--primary);
  background: var(--primary-light);
}
.file-picker i.big-icon { width: 42px; height: 42px; color: var(--primary); margin: 0 auto 10px; }
.file-picker b { display: block; font-size: 15px; margin-bottom: 4px; }
.file-picker .hint { font-size: 12.5px; color: var(--text-mute); }

.file-display {
  display: flex; align-items: center; gap: 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 14px 16px;
}
.file-display i.file-icon { width: 32px; height: 32px; color: var(--primary); flex: none; }
.file-display .file-info { flex: 1; min-width: 0; }
.file-display .file-info b { font-size: 14px; word-break: break-all; }
.file-display .file-info .meta { font-size: 12px; color: var(--text-mute); }

.progress-row {
  margin-top: 14px;
  display: flex; align-items: center; gap: 12px;
}
.progress-bar {
  flex: 1; height: 10px;
  background: var(--surface-3);
  border-radius: 999px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--primary), #ff5a64);
  transition: width .2s;
}
.progress-text { font-size: 13px; font-weight: 700; color: var(--primary); min-width: 50px; text-align: right; }

.upload-action-row {
  display: flex; gap: 10px; margin-top: 14px;
  flex-wrap: wrap;
}

.result-box {
  margin-top: 14px;
  padding: 14px 16px;
  border-radius: var(--r-md);
  display: flex; align-items: center; gap: 10px;
  font-size: 13.5px;
}
.result-box i { width: 20px; height: 20px; flex: none; }
.result-box.ok { background: var(--success-light); color: #065f46; border: 1px solid #6ee7b7; }
.result-box.err { background: var(--danger-light); color: #991b1b; border: 1px solid #fca5a5; }

/* =========================================================================
   SHOP
   ========================================================================= */
.shop-shell {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px;
  max-width: 1600px;
  margin: 0 auto;
}

.shop-aside {
  position: sticky; top: calc(var(--header-h) + 24px);
  align-self: start;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 20px;
  max-height: calc(100vh - var(--header-h) - 48px);
  overflow-y: auto;
}
.filter-section { margin-bottom: 22px; }
.filter-section h4 {
  margin: 0 0 10px;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: var(--text-mute);
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 6px 11px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--border);
  font-size: 12.5px; color: var(--text-soft);
  cursor: pointer;
  transition: all .12s;
}
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip .count { opacity: .65; font-size: 11px; margin-left: 2px; }

/* Shop main */
.shop-toolbar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 12px 16px;
}
.shop-toolbar .count b { color: var(--text); }
.shop-toolbar select {
  height: 36px; padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: #fff;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.product-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  transition: transform .18s, box-shadow .18s, border-color .18s;
}
.product-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}
.product-media {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--surface-2);
  display: grid; place-items: center;
  overflow: hidden;
}
.product-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  padding: 14px;
  transition: transform .3s;
}
.product-card:hover .product-media img { transform: scale(1.04); }
.product-badges {
  position: absolute; top: 12px; left: 12px;
  display: flex; flex-direction: column; gap: 6px;
}
.badge-sale {
  background: var(--accent); color: var(--text);
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 800;
}
.badge-soldout {
  background: var(--text); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.badge-bware {
  background: var(--primary); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11.5px; font-weight: 700;
}
.product-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-brand { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-mute); }
.product-name {
  font-size: 15px; font-weight: 600; line-height: 1.3;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 40px;
}
.product-meta { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--text-soft); }
.product-meta span { display: inline-flex; align-items: center; gap: 4px; }
.product-meta i { width: 12px; height: 12px; }
.product-prices { margin-top: auto; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-now { font-size: 20px; font-weight: 800; color: var(--primary); }
.price-old { font-size: 12.5px; color: var(--text-mute); text-decoration: line-through; }
.price-save { font-size: 11.5px; font-weight: 700; color: var(--success); }
.product-actions { margin-top: 12px; display: flex; gap: 8px; }

/* Drawer (Cart) */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(15,23,42,.5);
  z-index: 100; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.drawer-overlay.open { opacity: 1; pointer-events: auto; }
.drawer {
  position: fixed; right: 0; top: 0; bottom: 0;
  width: 420px; max-width: 92vw;
  background: #fff;
  box-shadow: var(--shadow-xl);
  z-index: 101;
  transform: translateX(100%);
  transition: transform .25s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}
.drawer-head h3 { margin: 0; font-size: 16px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 14px 18px; }
.drawer-foot { border-top: 1px solid var(--border); padding: 18px 22px; background: var(--surface-2); }
.cart-line {
  display: grid; grid-template-columns: 60px 1fr auto; gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}
.cart-line:last-child { border-bottom: 0; }
.cart-line img { width: 60px; height: 60px; object-fit: contain; border: 1px solid var(--border); border-radius: var(--r-md); background: #fff; }
.cart-line .name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.cart-line .meta { font-size: 12px; color: var(--text-mute); }
.cart-line .price { text-align: right; font-weight: 700; color: var(--primary); }
.qty-control {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border);
  border-radius: var(--r-sm); overflow: hidden;
  height: 28px;
}
.qty-control button { width: 26px; height: 26px; border: 0; background: var(--surface-2); font-size: 16px; cursor: pointer; }
.qty-control button:hover { background: var(--surface-3); }
.qty-control input { width: 36px; height: 26px; border: 0; text-align: center; font-weight: 700; font-size: 13px; }

.cart-empty { padding: 50px 20px; text-align: center; color: var(--text-mute); }
.cart-empty i { width: 40px; height: 40px; margin-bottom: 8px; }

/* Modal */
.modal-overlay {
  position: fixed; inset: 0;
  background: rgba(15,23,42,.6);
  z-index: 120;
  display: grid; place-items: center;
  padding: 24px;
  opacity: 0; pointer-events: none;
  transition: opacity .15s;
}
.modal-overlay.open { opacity: 1; pointer-events: auto; }
.modal {
  background: #fff;
  border-radius: var(--r-xl);
  width: 100%; max-width: 900px; max-height: 92vh;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
  display: flex; flex-direction: column;
  transform: translateY(8px) scale(.98);
  transition: transform .2s;
}
.modal-overlay.open .modal { transform: none; }
.modal-head {
  padding: 16px 22px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--border);
}
.modal-body { padding: 24px; overflow-y: auto; }

.detail-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 28px; }
@media (max-width: 720px) { .detail-grid { grid-template-columns: 1fr; } }
.detail-media {
  background: var(--surface-2);
  border-radius: var(--r-lg);
  display: grid; place-items: center;
  min-height: 300px;
  padding: 18px;
}
.detail-media img { max-height: 400px; object-fit: contain; }
.detail-brand { font-size: 12px; letter-spacing: .08em; color: var(--text-mute); text-transform: uppercase; font-weight: 700; }
.detail-title { font-size: 22px; font-weight: 800; margin: 4px 0 8px; letter-spacing: -.01em; }
.detail-price-row { display: flex; gap: 10px; align-items: baseline; margin: 12px 0 18px; }
.detail-price-row .price-now { font-size: 30px; }
.spec-row { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 13.5px; padding: 5px 0; border-bottom: 1px solid var(--border); }
.spec-row:last-child { border-bottom: 0; }
.spec-row b { color: var(--text-mute); font-weight: 600; }

/* Toasts */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast {
  background: var(--text); color: #fff;
  padding: 12px 18px; border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  font-size: 13.5px;
  display: flex; align-items: center; gap: 8px;
  animation: toastIn .2s ease;
  max-width: 380px;
}
.toast.success { background: var(--success); }
.toast.error { background: var(--danger); }
@keyframes toastIn { from{transform:translateY(8px);opacity:0;} to {transform:none;opacity:1;}}

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(15,23,42,.12);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin .8s linear infinite;
  display: inline-block;
}
.spinner-w { border-top-color: #fff; border-color: rgba(255,255,255,.3); }
@keyframes spin { to {transform: rotate(360deg);} }

/* Skeleton */
.skeleton {
  background: linear-gradient(90deg, #eef1f6, #f6f8fb, #eef1f6);
  background-size: 200% 100%;
  animation: skel 1.2s linear infinite;
  border-radius: var(--r-md);
}
.skeleton-card { height: 340px; }
@keyframes skel { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* Responsive */
@media (max-width: 1100px) {
  .shop-shell { grid-template-columns: 1fr; }
  .shop-aside { position: relative; top: auto; max-height: none; }
}
@media (max-width: 960px) {
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar {
    position: relative; top: auto; height: auto;
    border-right: 0; border-bottom: 1px solid var(--border);
    padding: 16px;
  }
  .sidebar-title { padding: 0 8px 8px; }
  .sidebar-nav { flex-direction: row; flex-wrap: wrap; gap: 4px; }
  .sidebar-nav button { border-left: 0; border-radius: var(--r-md); padding: 8px 12px; }
  .sidebar-nav button.active { border-left: 0; }
  .admin-main { padding: 24px 20px; }
}

/* Product card extras */
.product-desc {
  font-size: 12.5px;
  color: var(--text-soft);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.price-uvp-line { display: flex; align-items: baseline; gap: 6px; }
.price-uvp-label { font-size: 10.5px; color: var(--text-mute); text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.price-now-line { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.price-hint { font-size: 11px; color: var(--text-mute); font-style: italic; }
