/* ===== VX / Dark Web Style ===== */
:root {
  --bg: #050505;
  --bg-card: #0c0c0c;
  --bg-elevated: #111111;
  --bg-input: #0a0a0a;
  --border: #1f1f1f;
  --border-light: #2a2a2a;
  --text: #e8e8e8;
  --text-muted: #777777;
  --text-dim: #555555;
  --accent: #00e5ff;
  --accent-dim: rgba(0, 229, 255, 0.15);
  --accent-glow: 0 0 12px rgba(0, 229, 255, 0.4);
  --success: #00ff88;
  --success-dim: rgba(0, 255, 136, 0.12);
  --success-glow: 0 0 10px rgba(0, 255, 136, 0.35);
  --warning: #ffaa00;
  --warning-dim: rgba(255, 170, 0, 0.12);
  --warning-glow: 0 0 10px rgba(255, 170, 0, 0.35);
  --danger: #ff3355;
  --danger-dim: rgba(255, 51, 85, 0.12);
  --danger-glow: 0 0 10px rgba(255, 51, 85, 0.35);
  --radius: 6px;
  --font: 'Cairo', system-ui, -apple-system, sans-serif;
  --mono: 'Courier New', Courier, monospace;
}

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

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.6;
  background-image:
    radial-gradient(ellipse at 20% 0%, rgba(0, 229, 255, 0.03) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(0, 255, 136, 0.02) 0%, transparent 40%);
}

.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===== Header ===== */
.header {
  background: rgba(8, 8, 8, 0.95);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-icon {
  font-size: 22px;
  filter: grayscale(1) brightness(1.4);
}

.logo h1 {
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
}

.logo-sub {
  font-size: 0.68rem;
  color: var(--text-dim);
  display: block;
  margin-top: -3px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.nav {
  display: flex;
  gap: 2px;
  background: var(--bg);
  padding: 3px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.nav-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 8px 18px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.85rem;
  min-width: 42px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-btn:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.nav-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: var(--accent-glow);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.search-box {
  position: relative;
}

.search-box input {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 38px 9px 14px;
  border-radius: var(--radius);
  width: 240px;
  font-family: var(--font);
  font-size: 0.85rem;
  transition: all 0.2s;
}

.search-box input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.search-box input::placeholder {
  color: var(--text-dim);
}

.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  opacity: 0.4;
  font-size: 0.85rem;
}

/* ===== Main ===== */
.main {
  padding: 36px 0 80px;
  min-height: calc(100vh - 130px);
}

.view {
  display: none;
}

.view.active {
  display: block;
  animation: fadeIn 0.25s ease;
}

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

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.page-header h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.subtitle {
  color: var(--text-dim);
  margin-top: 4px;
  font-size: 0.85rem;
  font-family: var(--mono);
  letter-spacing: 0.04em;
}

.stats {
  display: flex;
  gap: 10px;
}

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 22px;
  text-align: center;
}

.stat-num {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 229, 255, 0.5);
  font-family: var(--mono);
}

.stat-label {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ===== Empty State ===== */
.empty-state {
  text-align: center;
  padding: 90px 20px;
  background: var(--bg-card);
  border: 1px dashed var(--border-light);
  border-radius: var(--radius);
}

.empty-icon {
  font-size: 42px;
  margin-bottom: 14px;
  opacity: 0.5;
  filter: grayscale(1);
}

.empty-state h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

.empty-state p {
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.9rem;
}

/* ===== Products Grid ===== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.product-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.2s ease;
  cursor: pointer;
  position: relative;
}

.product-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--border-light), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}

.product-card:hover {
  border-color: var(--accent);
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.08), inset 0 0 30px rgba(0, 229, 255, 0.02);
  transform: translateY(-3px);
}

.product-card:hover::before {
  opacity: 1;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.product-card-img {
  width: 100%;
  height: 190px;
  object-fit: contain;
  background: var(--bg-elevated);
  padding: 18px;
  border-bottom: 1px solid var(--border);
}

.product-card-body {
  padding: 14px 16px 16px;
}

.product-card-sku {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-bottom: 4px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
}

.product-card-name {
  font-size: 0.92rem;
  font-weight: 600;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.7em;
  line-height: 1.35;
}

.product-card-price {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.price-current {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
  font-family: var(--mono);
}

.price-old {
  font-size: 0.8rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-family: var(--mono);
}

.product-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.stock-badge {
  font-size: 0.7rem;
  padding: 3px 10px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--mono);
}

.stock-badge.in-stock {
  background: var(--success-dim);
  color: var(--success);
  box-shadow: var(--success-glow);
  text-shadow: 0 0 6px rgba(0, 255, 136, 0.4);
}

.stock-badge.out-stock {
  background: var(--danger-dim);
  color: var(--danger);
  box-shadow: var(--danger-glow);
  text-shadow: 0 0 6px rgba(255, 51, 85, 0.4);
}

.stock-badge.arriving {
  background: var(--warning-dim);
  color: var(--warning);
  box-shadow: var(--warning-glow);
  text-shadow: 0 0 6px rgba(255, 170, 0, 0.4);
}

.stock-badge.order-48h {
  background: rgba(0, 229, 255, 0.1);
  color: var(--accent);
  box-shadow: var(--accent-glow);
}

.delete-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.9rem;
  padding: 4px;
  transition: all 0.2s;
  opacity: 0.5;
}

.delete-btn:hover {
  color: var(--danger);
  opacity: 1;
  text-shadow: 0 0 8px rgba(255, 51, 85, 0.5);
}

/* ===== Form ===== */
.add-form {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 32px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group.full {
  grid-column: 1 / -1;
}

.form-group label {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.form-group input,
.form-group textarea {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.9rem;
  transition: all 0.2s;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.form-group input::placeholder,
.form-group textarea::placeholder {
  color: var(--text-dim);
}

.availability-section {
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.availability-section h3 {
  font-size: 0.95rem;
  margin-bottom: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
}

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

.store-item {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.store-item label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
}

.store-item select {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 7px 9px;
  border-radius: 4px;
  font-family: var(--font);
  font-size: 0.82rem;
  cursor: pointer;
}

.store-item select:focus {
  outline: none;
  border-color: var(--accent);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 28px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 22px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn-primary {
  background: var(--accent-dim);
  color: var(--accent);
  border: 1px solid rgba(0, 229, 255, 0.3);
  box-shadow: var(--accent-glow);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.btn-primary:hover {
  background: rgba(0, 229, 255, 0.25);
  box-shadow: 0 0 18px rgba(0, 229, 255, 0.5);
}

.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  color: var(--text);
  border-color: var(--border-light);
  background: var(--bg-elevated);
}

/* ===== Product Detail ===== */
.back-btn {
  background: transparent;
  border: none;
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  padding: 0;
  transition: all 0.2s;
  letter-spacing: 0.04em;
}

.back-btn:hover {
  color: var(--accent);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

.product-detail {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.detail-top {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

.detail-image {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  min-height: 380px;
  border-left: 1px solid var(--border);
}

.detail-image img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
}

.detail-info {
  padding: 36px 40px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-sku {
  font-size: 0.75rem;
  color: var(--text-dim);
  font-family: var(--mono);
  letter-spacing: 0.06em;
}

.detail-name {
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
}

.detail-price .current {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.4);
  font-family: var(--mono);
}

.detail-price .old {
  font-size: 1rem;
  color: var(--text-dim);
  text-decoration: line-through;
  font-family: var(--mono);
}

.detail-url {
  font-size: 0.8rem;
  margin-top: 4px;
}

.detail-url a {
  color: var(--accent);
  text-decoration: none;
  word-break: break-all;
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

.detail-url a:hover {
  text-decoration: underline;
}

.detail-section {
  padding: 28px 40px;
  border-top: 1px solid var(--border);
}

.detail-section h3 {
  font-size: 0.85rem;
  margin-bottom: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-family: var(--mono);
}

.detail-desc {
  color: var(--text-muted);
  line-height: 1.85;
  white-space: pre-wrap;
  font-size: 0.92rem;
}

.specs-table {
  width: 100%;
  border-collapse: collapse;
}

.specs-table tr {
  border-bottom: 1px solid var(--border);
}

.specs-table tr:last-child {
  border-bottom: none;
}

.specs-table td {
  padding: 11px 0;
  font-size: 0.9rem;
}

.specs-table td:first-child {
  color: var(--text-dim);
  width: 38%;
  font-weight: 500;
  font-family: var(--mono);
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}

.availability-table {
  width: 100%;
  border-collapse: collapse;
}

.availability-table th,
.availability-table td {
  padding: 11px 14px;
  text-align: right;
  border-bottom: 1px solid var(--border);
  font-size: 0.88rem;
}

.availability-table th {
  background: var(--bg);
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.availability-table tr:last-child td {
  border-bottom: none;
}

/* ===== Stores List ===== */
.stores-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.store-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  transition: border-color 0.2s;
}

.store-card:hover {
  border-color: var(--border-light);
}

.store-card h3 {
  font-size: 0.95rem;
  margin-bottom: 6px;
  font-weight: 700;
}

.store-card p {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 3px;
}

.store-card .phone {
  color: var(--accent);
  font-weight: 600;
  margin-top: 8px;
  font-family: var(--mono);
  text-shadow: 0 0 6px rgba(0, 229, 255, 0.3);
}

/* ===== Footer ===== */
.footer {
  border-top: 1px solid var(--border);
  padding: 18px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: 0.72rem;
  font-family: var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .detail-top {
    grid-template-columns: 1fr;
  }

  .detail-image {
    border-left: none;
    border-bottom: 1px solid var(--border);
    min-height: 280px;
  }

  .header-inner {
    flex-wrap: wrap;
    height: auto;
    padding: 12px 0;
    gap: 12px;
  }

  .search-box input {
    width: 100%;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .page-header {
    flex-direction: column;
    gap: 14px;
  }

  .detail-info,
  .detail-section {
    padding: 24px 20px;
  }
}

/* ===== Filters Bar ===== */
.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 24px;
  padding: 16px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.filter-group label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: var(--mono);
}

.filter-group select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  min-width: 140px;
  cursor: pointer;
}

.filter-group select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.btn-sm {
  padding: 8px 14px;
  font-size: 0.8rem;
}

/* ===== Settings ===== */
.settings-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.settings-section {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 28px;
}

.settings-section h3 {
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  color: var(--text);
}

.settings-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.7;
}

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

.pref-store-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 14px;
  cursor: pointer;
  transition: all 0.2s;
}

.pref-store-item:hover {
  border-color: var(--border-light);
}

.pref-store-item.active {
  border-color: var(--accent);
  background: var(--accent-dim);
  box-shadow: var(--accent-glow);
}

.pref-store-item input {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.pref-store-item span {
  font-size: 0.85rem;
  font-weight: 600;
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* Preferred badge on cards */
.pref-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-dim);
  color: var(--accent);
  font-size: 0.65rem;
  padding: 2px 8px;
  border-radius: 3px;
  font-family: var(--mono);
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: var(--accent-glow);
  z-index: 2;
}

/* ===== ORVEX Logo Mark ===== */
.logo-mark {
  font-size: 1.4rem;
  color: var(--accent);
  text-shadow: 0 0 12px rgba(0, 229, 255, 0.5);
  line-height: 1;
}

/* ===== Settings Rows ===== */
.settings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.settings-row label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
}

.settings-row select {
  background: var(--bg-input);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 8px 12px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.85rem;
  min-width: 160px;
  cursor: pointer;
}

.settings-row select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
}

.session-info {
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  line-height: 1.8;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
}

/* ===== Store Main Card (expandable) ===== */
.store-main-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 16px;
}

.store-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.store-main-header:hover {
  background: var(--bg-elevated);
}

.store-main-info h3 {
  font-size: 1.15rem;
  font-weight: 800;
  margin-bottom: 4px;
  letter-spacing: 0.02em;
}

.store-main-desc {
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.store-main-meta {
  display: flex;
  align-items: center;
  gap: 14px;
}

.branch-count {
  font-size: 0.75rem;
  font-family: var(--mono);
  color: var(--accent);
  background: var(--accent-dim);
  padding: 4px 10px;
  border-radius: 4px;
  box-shadow: var(--accent-glow);
}

.toggle-icon {
  color: var(--text-dim);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.store-main-header:hover .toggle-icon {
  color: var(--accent);
}

.store-branches {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
  padding: 0 20px 20px;
  border-top: 1px solid var(--border);
  padding-top: 16px;
}

.branch-card {
  margin: 0;
}

/* ===== Icon Button (Settings Gear) ===== */
.icon-btn {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  font-size: 1.15rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
  flex-shrink: 0;
}

.icon-btn:hover {
  color: var(--accent);
  border-color: var(--accent);
  box-shadow: var(--accent-glow);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.5);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Store detail phone in header */
.store-detail-phone {
  font-size: 1rem;
}
.store-detail-phone .phone {
  color: var(--accent);
  font-family: var(--mono);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.35);
}

/* ===== Search Results Hero ===== */
.search-hero {
  margin-bottom: 28px;
  padding: 20px 24px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

.search-label {
  display: block;
  font-size: 0.72rem;
  font-family: var(--mono);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 8px;
}

.search-query-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent);
  text-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
  letter-spacing: 0.02em;
  word-break: break-word;
  margin: 0 0 10px 0;
  line-height: 1.3;
}

.search-count-line {
  font-size: 0.9rem;
  color: var(--text-muted);
  font-family: var(--mono);
  margin: 0;
}

.search-count-line span {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05rem;
}

/* ===== Sidebar (push layout – search page only) ===== */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 260px;
  height: 100vh;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  z-index: 90;
  transform: translateX(-100%);
  transition: transform 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 0;
}

body.search-mode .sidebar.open {
  transform: translateX(0);
}

body.search-mode.sidebar-open .header,
body.search-mode.sidebar-open .main,
body.search-mode.sidebar-open .footer {
  margin-left: 260px;
  transition: margin-left 0.25s ease;
}

body.search-mode .header,
body.search-mode .main,
body.search-mode .footer {
  transition: margin-left 0.25s ease;
}

/* Show hamburger only in search mode via JS */


.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px;
  border-bottom: 1px solid var(--border);
}

.sidebar-close {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  width: 36px;
  height: 36px;
  border-radius: var(--radius);
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.sidebar-close:hover {
  color: var(--danger);
  border-color: var(--danger);
}

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

.sidebar-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  padding: 12px 16px;
  border-radius: var(--radius);
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: right;
  transition: all 0.2s;
}

.sidebar-btn:hover {
  background: var(--bg-elevated);
  color: var(--text);
}

.sidebar-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
  box-shadow: var(--accent-glow);
  text-shadow: 0 0 8px rgba(0, 229, 255, 0.4);
}

/* ===== Hamburger ===== */
.hamburger {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.2s;
  line-height: 1;
}

.hamburger:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--accent-glow);
}

/* ===== Header adjustments ===== */
.header-inner {
  gap: 12px;
}

.logo-mobile {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.logo-mobile h1 {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.header-actions {
  flex: 1;
  min-width: 0;
}

.search-box-wide {
  width: 100%;
}

.search-box-wide input {
  width: 100%;
  padding-left: 70px;
}

/* Clear button inside search */
.search-clear {
  position: absolute;
  left: 36px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 0.85rem;
  width: 24px;
  height: 24px;
  display: none;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.15s;
  z-index: 2;
}

.search-clear:hover {
  color: var(--danger);
  background: var(--danger-dim);
}

/* Hide old top nav if any remnant */
