/* ============================================================
   HEROware — App Styles
   ============================================================ */

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

:root {
  --sidebar-w: 224px;
  --sidebar-bg: #111112;
  --sidebar-text: #f2f2f2;
  --sidebar-muted: #777;
  --sidebar-hover: rgba(255,255,255,.07);
  --sidebar-active: rgba(255,255,255,.13);

  --bg: #f5f5f7;
  --card: #fff;
  --text: #111;
  --text-2: #3a3a3a;
  --text-muted: #6b7280;
  --border: #e5e7eb;

  --accent: #2563eb;
  --accent-hover: #1d4ed8;

  --green: #16a34a;
  --green-bg: #dcfce7;
  --amber: #b45309;
  --amber-bg: #fef3c7;
  --slate: #475569;
  --slate-bg: #f1f5f9;

  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 24px;

  --shadow-sm: 0 1px 3px rgba(0,0,0,.06);
  --shadow: 0 2px 8px rgba(0,0,0,.08), 0 0 0 1px rgba(0,0,0,.03);
  --shadow-hover: 0 8px 24px rgba(0,0,0,.12), 0 0 0 1px rgba(0,0,0,.04);
}

html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
}

a { color: inherit; text-decoration: none; }

/* ── SIDEBAR ─────────────────────────────────────────────── */

.sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  color: var(--sidebar-text);
  display: flex;
  flex-direction: column;
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 200;
  overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }

.sidebar-logo {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 22px 20px 18px;
  text-decoration: none;
  flex-shrink: 0;
}
.logo-hero {
  color: var(--sidebar-text);
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -.3px;
}
.logo-ware {
  background: var(--sidebar-text);
  color: var(--sidebar-bg);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .4px;
  padding: 2px 7px;
  border-radius: 6px;
}

.sidebar-nav {
  padding: 4px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--sidebar-text);
  font-size: 13.5px;
  font-weight: 500;
  transition: background .15s;
  cursor: pointer;
}
.nav-item:hover  { background: var(--sidebar-hover); }
.nav-item.active { background: var(--sidebar-active); font-weight: 600; }
.nav-item svg    { width: 17px; height: 17px; flex-shrink: 0; opacity: .75; }

.nav-badge {
  margin-left: auto;
  background: var(--accent);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 1px 7px;
  border-radius: 20px;
  min-width: 20px;
  text-align: center;
  line-height: 18px;
}
.nav-badge--outline {
  background: transparent;
  border: 1.5px solid rgba(255,255,255,.3);
  color: var(--sidebar-text);
}

.sidebar-section {
  padding: 12px 10px 4px;
}
.sidebar-section-title {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  color: var(--sidebar-muted);
  padding: 0 12px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.cat-item {
  display: block;
  padding: 7px 12px;
  border-radius: var(--r-sm);
  color: var(--sidebar-text);
  font-size: 13px;
  transition: background .15s;
  opacity: .85;
}
.cat-item:hover  { background: var(--sidebar-hover); opacity: 1; }
.cat-item.active { background: var(--sidebar-active); opacity: 1; font-weight: 600; }

.sidebar-promo {
  margin: 12px 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--r);
  padding: 14px;
}
.promo-icon  { font-size: 20px; margin-bottom: 6px; }
.promo-title { font-size: 13px; font-weight: 700; margin-bottom: 3px; }
.promo-text  { font-size: 11.5px; color: var(--sidebar-muted); line-height: 1.55; }

.sidebar-spacer { flex: 1; min-height: 16px; }

.sidebar-user {
  padding: 14px 12px 20px;
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(255,255,255,.07);
  flex-shrink: 0;
}
.user-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: .3px;
}
.user-name { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-dept { font-size: 11px; color: var(--sidebar-muted); }

/* ── MAIN LAYOUT ─────────────────────────────────────────── */

.main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - var(--sidebar-w));
}

/* ── TOPBAR ──────────────────────────────────────────────── */

.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 32px;
  background: rgba(245,245,247,.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.search-form { flex: 1; max-width: 420px; }
.search-wrap {
  position: relative;
}
.search-icon {
  position: absolute;
  left: 13px; top: 50%;
  transform: translateY(-50%);
  width: 15px; height: 15px;
  color: var(--text-muted);
  pointer-events: none;
}
.search-input {
  width: 100%;
  padding: 8px 14px 8px 38px;
  border-radius: 22px;
  border: 1.5px solid var(--border);
  background: var(--card);
  font-size: 13.5px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.search-input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(37,99,235,.1);
}
.search-input::placeholder { color: var(--text-muted); }

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
.topbar-cart-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: var(--r-sm);
  color: var(--text-2);
  transition: background .15s;
}
.topbar-cart-btn:hover { background: var(--border); }
.topbar-cart-btn svg { width: 20px; height: 20px; }
.topbar-cart-count {
  position: absolute;
  top: 3px; right: 3px;
  background: var(--accent);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  width: 15px; height: 15px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topbar-avatar { cursor: default; }

/* ── PAGE CONTENT ────────────────────────────────────────── */

.page-content {
  padding: 32px;
  flex: 1;
}

.page-footer {
  padding: 20px 32px;
  display: flex;
  gap: 20px;
  font-size: 12px;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
}
.page-footer a { color: var(--text-muted); transition: color .15s; }
.page-footer a:hover { color: var(--text); }

/* ── BREADCRUMB ──────────────────────────────────────────── */

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 24px;
}
.breadcrumb a { color: var(--text-muted); transition: color .15s; }
.breadcrumb a:hover { color: var(--text); }
.breadcrumb svg { width: 14px; height: 14px; }
.breadcrumb span { color: var(--text); font-weight: 500; }

/* ── SHOP ────────────────────────────────────────────────── */

.shop-header { margin-bottom: 24px; }
.shop-header-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.shop-header h1 { font-size: 22px; font-weight: 700; letter-spacing: -.3px; margin-bottom: 4px; }
.shop-header p  { font-size: 13.5px; color: var(--text-muted); max-width: 540px; line-height: 1.55; }
.shop-header-count { text-align: right; flex-shrink: 0; }
.count-number { display: block; font-size: 28px; font-weight: 800; letter-spacing: -1px; line-height: 1; }
.count-label  { font-size: 11.5px; color: var(--text-muted); }

.shop-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  border-bottom: 1.5px solid var(--border);
  padding-bottom: 0;
}
.cat-tabs { display: flex; gap: 0; }
.cat-tab {
  padding: 10px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1.5px;
  transition: color .15s, border-color .15s;
  white-space: nowrap;
}
.cat-tab:hover { color: var(--text); }
.cat-tab.active { color: var(--text); border-bottom-color: var(--text); font-weight: 600; }

.sort-wrap { padding-bottom: 8px; }
.sort-select {
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 10px;
  font-size: 12.5px;
  color: var(--text-2);
  background: var(--card);
  cursor: pointer;
  outline: none;
}

/* ── DEVICE GRID ─────────────────────────────────────────── */

.device-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(252px, 1fr));
  gap: 18px;
}

.device-card {
  background: var(--card);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: box-shadow .2s, transform .18s;
}
.device-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.card-image-link { display: block; }
.card-image {
  height: 168px;
  background: #f8f8fa;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.card-image img {
  max-height: 130px;
  max-width: calc(100% - 32px);
  object-fit: contain;
}
.card-placeholder { font-size: 60px; opacity: .14; user-select: none; }

.discount-badge {
  position: absolute;
  top: 10px; left: 10px;
  background: var(--text);
  color: #fff;
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 9px;
  border-radius: 20px;
  letter-spacing: -.1px;
  white-space: nowrap;
}
.discount-badge--lg {
  top: 14px; left: 14px;
  font-size: 12px;
  padding: 5px 12px;
}
.badge-label {
  opacity: .75;
  font-weight: 500;
  margin-left: 3px;
}

.wishlist-btn {
  position: absolute;
  top: 10px; right: 10px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0,0,0,.12);
  transition: transform .15s, background .15s;
  color: var(--text-muted);
}
.wishlist-btn svg { width: 14px; height: 14px; }
.wishlist-btn:hover  { transform: scale(1.1); color: #ef4444; }
.wishlist-btn.active { color: #ef4444; background: #fff1f1; }

.card-body {
  padding: 14px 16px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-link { text-decoration: none; color: inherit; flex: 1; display: block; }
.card-mfr  { font-size: 9.5px; font-weight: 700; letter-spacing: 1.4px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 3px; }
.card-name  { font-size: 14.5px; font-weight: 650; line-height: 1.3; margin-bottom: 4px; }
.card-specs { font-size: 11.5px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }

.card-footer {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}
.card-pricing { display: flex; flex-direction: column; gap: 1px; }
.price-hero { font-size: 19px; font-weight: 800; letter-spacing: -.5px; line-height: 1; }
.price-orig { font-size: 11.5px; color: var(--text-muted); text-decoration: line-through; }

/* ── CONDITION BADGES ────────────────────────────────────── */

.cond-badge {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 12px;
  white-space: nowrap;
}
.cond-very-good { background: var(--green-bg);  color: var(--green); }
.cond-good       { background: var(--amber-bg);  color: var(--amber); }
.cond-used       { background: var(--slate-bg);  color: var(--slate); }

.info-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--slate-bg);
  color: var(--slate);
}

/* ── BUTTONS ─────────────────────────────────────────────── */

.btn-buy {
  background: var(--text);
  color: #fff;
  border: none;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s, opacity .15s;
  white-space: nowrap;
}
.btn-buy:hover         { background: #2a2a2a; }
.btn-buy--added        { background: var(--accent); cursor: default; }
.btn-buy:disabled      { opacity: .65; }

.btn-primary {
  display: inline-block;
  background: var(--text);
  color: #fff;
  border: none;
  padding: 12px 24px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}
.btn-primary:hover { background: #2a2a2a; }

.btn-secondary {
  display: inline-block;
  background: var(--border);
  color: var(--text-2);
  border: none;
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
}
.btn-secondary:hover { background: #d9d9de; }

.btn-secondary-outline {
  display: inline-block;
  background: transparent;
  color: var(--text);
  border: 1.5px solid var(--border);
  padding: 11px 22px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color .15s, background .15s;
  text-align: center;
}
.btn-secondary-outline:hover { border-color: var(--text-muted); background: var(--bg); }

.btn-checkout {
  display: block;
  background: var(--text);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  text-align: center;
  margin-top: 16px;
}
.btn-checkout:hover { background: #2a2a2a; }

/* ── DEVICE DETAIL ───────────────────────────────────────── */

.detail-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
  max-width: 960px;
}
@media (max-width: 760px) {
  .detail-layout { grid-template-columns: 1fr; gap: 24px; }
}

.detail-image-panel {}
.detail-image {
  background: #f8f8fa;
  border-radius: var(--r-lg);
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 16px;
}
.detail-image img {
  max-height: 260px;
  max-width: calc(100% - 48px);
  object-fit: contain;
}
.detail-placeholder { font-size: 100px; opacity: .14; }

.gallery-thumbs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.gallery-thumb {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 2px;
  background: #f0f0f2;
  cursor: pointer;
  overflow: hidden;
  flex-shrink: 0;
  transition: border-color .15s;
}
.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 5px;
}
.gallery-thumb--active {
  border-color: var(--accent, #111);
}
.gallery-thumb:hover:not(.gallery-thumb--active) {
  border-color: #ccc;
}

.detail-badges { display: flex; flex-wrap: wrap; gap: 8px; }

.detail-mfr  { font-size: 10px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 6px; }
.detail-name { font-size: 26px; font-weight: 800; letter-spacing: -.5px; line-height: 1.2; margin-bottom: 24px; }

.detail-pricing {
  background: var(--bg);
  border-radius: var(--r);
  padding: 18px 20px;
  margin-bottom: 24px;
}
.detail-orig-row  { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.detail-label     { font-size: 12px; color: var(--text-muted); }
.detail-orig-price { font-size: 14px; color: var(--text-muted); text-decoration: line-through; }
.detail-hero-row  { display: flex; align-items: baseline; gap: 10px; margin-bottom: 4px; }
.detail-hero-price { font-size: 34px; font-weight: 800; letter-spacing: -1px; }
.detail-tax       { font-size: 12px; color: var(--text-muted); }
.detail-savings   { font-size: 12px; color: var(--green); font-weight: 600; }

.detail-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.wishlist-btn-lg {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1.5px solid var(--border);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: color .15s, background .15s, border-color .15s;
  flex-shrink: 0;
}
.wishlist-btn-lg svg     { width: 18px; height: 18px; }
.wishlist-btn-lg:hover   { color: #ef4444; border-color: #ef4444; }
.wishlist-btn-lg.active  { color: #ef4444; background: #fff1f1; border-color: #fca5a5; }

.detail-stock {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.detail-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}
.detail-table th, .detail-table td {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-align: left;
  vertical-align: middle;
}
.detail-table th { color: var(--text-muted); font-weight: 500; width: 40%; }
.detail-mono { font-family: "SF Mono", "Fira Code", "Consolas", monospace; font-size: 12.5px; color: var(--text-2); }

.detail-notes {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--text-muted);
}

/* ── CART ────────────────────────────────────────────────── */

.cart-header { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; }
.cart-header h1 { font-size: 24px; font-weight: 800; letter-spacing: -.4px; }
.cart-meta { font-size: 13px; color: var(--text-muted); }

.cart-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 860px) {
  .cart-layout { grid-template-columns: 1fr; }
}

.cart-items { display: flex; flex-direction: column; gap: 2px; }

.cart-item {
  background: var(--card);
  border-radius: var(--r);
  padding: 16px 20px;
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.cart-item:hover { box-shadow: var(--shadow); }

.cart-item-img {
  width: 72px; height: 72px;
  background: #f8f8fa;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 30px;
  overflow: hidden;
}
.cart-item-img img { max-width: 60px; max-height: 60px; object-fit: contain; }

.cart-item-info { flex: 1; min-width: 0; }
.cart-item-mfr  { font-size: 9.5px; font-weight: 700; letter-spacing: 1.3px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 2px; }
.cart-item-name { font-size: 14px; font-weight: 650; margin-bottom: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-specs { font-size: 11.5px; color: var(--text-muted); margin-bottom: 6px; }

.cart-item-right { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.cart-item-price { font-size: 17px; font-weight: 800; }
.cart-item-orig  { font-size: 11.5px; color: var(--text-muted); text-decoration: line-through; }
.cart-remove-btn {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-muted);
  padding: 4px;
  border-radius: var(--r-sm);
  transition: color .15s, background .15s;
  margin-top: 4px;
}
.cart-remove-btn svg { width: 16px; height: 16px; }
.cart-remove-btn:hover { color: #ef4444; background: #fff1f1; }

.cart-continue { display: inline-flex; align-items: center; gap: 4px; margin-top: 16px; font-size: 13px; color: var(--text-muted); transition: color .15s; }
.cart-continue:hover { color: var(--text); }

.cart-summary {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}
.cart-summary h3 { font-size: 16px; font-weight: 700; margin-bottom: 18px; }

.summary-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 13.5px; }
.summary-row--discount { color: var(--green); font-weight: 600; }
.summary-row--total    { font-size: 16px; font-weight: 800; padding-top: 10px; }
.summary-divider { border: none; border-top: 1px solid var(--border); margin: 8px 0; }
.summary-vat { font-size: 11.5px; color: var(--text-muted); margin-top: 4px; margin-bottom: 16px; }
.free-badge { background: var(--green-bg); color: var(--green); font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 20px; }

/* ── CHECKOUT ────────────────────────────────────────────── */

.checkout-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 4px; }
.checkout-sub   { font-size: 13.5px; color: var(--text-muted); margin-bottom: 32px; }

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 28px;
  align-items: start;
}
@media (max-width: 820px) {
  .checkout-layout { grid-template-columns: 1fr; }
}

.checkout-section {
  display: flex;
  gap: 16px;
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 16px;
}
.checkout-section-num {
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 2px;
}
.checkout-section-body { flex: 1; }
.checkout-section-body h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }

.checkout-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.checkout-field label { display: block; font-size: 11.5px; color: var(--text-muted); font-weight: 500; margin-bottom: 4px; }
.field-readonly {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  background: var(--bg);
  color: var(--text-2);
}

.delivery-options { display: flex; flex-direction: column; gap: 10px; }
.delivery-option { cursor: pointer; }
.delivery-option input[type="radio"] { display: none; }
.delivery-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--r);
  transition: border-color .15s, background .15s;
}
.delivery-option input:checked + .delivery-card {
  border-color: var(--text);
  background: var(--bg);
}
.delivery-option:hover .delivery-card { border-color: var(--text-muted); }
.delivery-icon { font-size: 22px; }
.delivery-info { flex: 1; }
.delivery-info strong { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 1px; }
.delivery-info span { font-size: 12px; color: var(--text-muted); }
.delivery-free { font-size: 11.5px; font-weight: 600; color: var(--green); white-space: nowrap; }

.payment-info {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 14px 16px;
  background: var(--bg);
  border-radius: var(--r);
}
.payment-icon { font-size: 22px; }
.payment-info strong { display: block; font-size: 13.5px; font-weight: 650; margin-bottom: 3px; }
.payment-info p { font-size: 12.5px; color: var(--text-muted); }

.btn-checkout-submit {
  width: 100%;
  background: var(--text);
  color: #fff;
  border: none;
  padding: 15px;
  border-radius: var(--r-sm);
  font-size: 14.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background .15s;
  margin-top: 8px;
}
.btn-checkout-submit:hover { background: #2a2a2a; }
.checkout-legal { font-size: 11.5px; color: var(--text-muted); margin-top: 10px; }
.checkout-legal a { color: var(--accent); }

.checkout-summary {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 22px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 80px;
}
.checkout-summary h3 { font-size: 15px; font-weight: 700; margin-bottom: 16px; }
.checkout-item { display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.checkout-item-icon { font-size: 20px; }
.checkout-item-name { flex: 1; font-size: 13px; font-weight: 500; line-height: 1.4; }
.checkout-item-price { font-size: 13.5px; font-weight: 700; white-space: nowrap; }

/* ── CONFIRMATION ────────────────────────────────────────── */

.confirmation-wrap {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  padding-top: 24px;
}
.confirm-check {
  width: 72px; height: 72px;
  background: var(--green-bg);
  color: var(--green);
  font-size: 30px;
  font-weight: 700;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
}
.confirmation-wrap h1 { font-size: 26px; font-weight: 800; margin-bottom: 10px; }
.confirm-sub { font-size: 14px; color: var(--text-muted); line-height: 1.6; margin-bottom: 28px; }

.confirm-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
  margin-bottom: 24px;
  text-align: left;
}
.confirm-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.confirm-order-num { font-size: 14px; font-weight: 700; }
.confirm-invoice-badge {
  background: var(--amber-bg);
  color: var(--amber);
  font-size: 11.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
}
.confirm-item { display: flex; justify-content: space-between; padding: 8px 0; font-size: 13.5px; border-bottom: 1px solid var(--border); }
.confirm-item:last-of-type { border-bottom: none; }
.confirm-item-name { font-weight: 500; }
.confirm-item-price { font-weight: 700; }
.confirm-delivery { margin-top: 14px; font-size: 13px; color: var(--text-muted); }

/* ── ORDERS ──────────────────────────────────────────────── */

.page-title { font-size: 24px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 24px; }

.order-card {
  background: var(--card);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 14px;
}
.order-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.order-num  { font-size: 14px; font-weight: 700; margin-right: 10px; }
.order-date { font-size: 12px; color: var(--text-muted); }
.order-status { font-size: 11.5px; font-weight: 600; padding: 3px 10px; border-radius: 20px; }
.order-status--confirmed { background: var(--green-bg); color: var(--green); }
.order-status--pending   { background: var(--amber-bg); color: var(--amber); }
.order-item { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; }
.order-item:last-child { border-bottom: none; }
.order-item-name  { font-weight: 500; }
.order-item-price { font-weight: 700; }
.order-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 13px; color: var(--text-muted); }
.order-total { color: var(--text); }

/* ── EMPTY STATE ─────────────────────────────────────────── */

.empty-state {
  text-align: center;
  padding: 64px 24px;
  color: var(--text-muted);
}
.empty-icon { font-size: 48px; margin-bottom: 16px; opacity: .6; }
.empty-state h3 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.empty-state p { font-size: 13.5px; margin-bottom: 20px; }

/* ── LOGIN PAGE ──────────────────────────────────────────── */

.login-body {
  display: block;
  background: var(--bg);
}

.login-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
}
@media (max-width: 720px) {
  .login-layout { grid-template-columns: 1fr; }
  .login-left   { display: none; }
}

.login-left {
  background: #111112;
  color: #f2f2f2;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 48px;
  position: relative;
  overflow: hidden;
}
.login-left-inner { position: relative; z-index: 1; }
.login-hero-logo {
  margin-bottom: 40px;
}
.hero-logo-img {
  height: 40px;
  width: auto;
  filter: invert(1);
}

.login-badge {
  display: inline-block;
  background: rgba(255,255,255,.1);
  color: rgba(255,255,255,.75);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: 20px;
  margin-bottom: 28px;
  border: 1px solid rgba(255,255,255,.12);
}
.login-headline {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -1px;
  line-height: 1.15;
  margin-bottom: 20px;
}
.login-sub {
  font-size: 14.5px;
  color: rgba(255,255,255,.6);
  line-height: 1.65;
  margin-bottom: 36px;
  max-width: 380px;
}
.login-features { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.login-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: rgba(255,255,255,.75);
  line-height: 1.4;
}
.login-features svg {
  width: 16px; height: 16px;
  color: #4ade80;
  flex-shrink: 0;
  margin-top: 1px;
}
.login-logo-bg {
  position: absolute;
  bottom: -30px; right: -20px;
  font-size: 120px;
  font-weight: 900;
  color: rgba(255,255,255,.03);
  letter-spacing: -4px;
  line-height: 1;
  user-select: none;
  pointer-events: none;
}

.login-right {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  background: var(--bg);
}
.login-card {
  background: var(--card);
  border-radius: var(--r-xl);
  padding: 40px 36px;
  box-shadow: var(--shadow-hover);
  width: 100%;
  max-width: 380px;
}
.login-card-logo {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 28px;
}
.login-card-logo .logo-hero { font-size: 17px; font-weight: 800; color: var(--text); }
.login-card-logo .logo-ware { background: var(--text); color: #fff; font-size: 14px; font-weight: 800; padding: 2px 8px; border-radius: 6px; }

.login-card-title { font-size: 22px; font-weight: 800; letter-spacing: -.4px; margin-bottom: 6px; }
.login-card-sub { font-size: 13.5px; color: var(--text-muted); line-height: 1.55; margin-bottom: 28px; }

.sso-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border-radius: var(--r-sm);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--border);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: background .15s, border-color .15s;
  margin-bottom: 10px;
}
.sso-btn:hover { background: var(--bg); border-color: var(--text-muted); }
.sso-btn svg   { width: 18px; height: 18px; flex-shrink: 0; }

.sso-btn--dev {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
  margin-top: 4px;
}
.sso-btn--dev:hover { background: #2a2a2a; border-color: #2a2a2a; }

.sso-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 16px 0;
  font-size: 11.5px;
  color: var(--text-muted);
}
.sso-divider::before, .sso-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.dev-form { display: flex; flex-direction: column; gap: 8px; }
.dev-input {
  width: 100%;
  padding: 9px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 13.5px;
  color: var(--text);
  background: var(--bg);
  outline: none;
  transition: border-color .15s;
}
.dev-input:focus { border-color: var(--accent); background: var(--card); }
.dev-input::placeholder { color: var(--text-muted); }

.config-notice {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: var(--amber-bg);
  border: 1.5px solid #fde68a;
  border-radius: var(--r-sm);
  padding: 14px;
  font-size: 12.5px;
  margin-bottom: 10px;
  color: var(--amber);
}
.config-notice strong { display: block; margin-bottom: 3px; color: var(--amber); }
.config-notice p { color: #92400e; line-height: 1.5; }
.config-notice code { background: #fef3c7; padding: 1px 5px; border-radius: 4px; font-size: 11px; }

.login-note {
  font-size: 11.5px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 18px;
}
.login-help {
  font-size: 12px;
  color: var(--text-muted);
  text-align: center;
  margin-top: 8px;
}
.login-help a { color: var(--accent); }
