/* Zabrání probliknutí při načtení stránky v dark modu */
.no-transitions * { transition: none !important; }
/* css/style.css */
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;600;700&family=Raleway:wght@300;400;500;600&family=JetBrains+Mono:wght@300;400&family=Orbitron:wght@400;500;600;700&display=swap');

/* Microgramma D Extended — geometric condensed display font */
@font-face {
    font-family: 'Microgramma D Extended';
    src: url('https://db.onlinewebfonts.com/t/b3d6f9cc26f8fd7b49eb88c24e38dd7a.woff2') format('woff2'),
         url('https://db.onlinewebfonts.com/t/b3d6f9cc26f8fd7b49eb88c24e38dd7a.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* Microgramma D Bold Extended — used for the logo wordmark */
@font-face {
    font-family: 'Microgramma D Bold Extended';
    src: url('https://db.onlinewebfonts.com/t/49441315ab9ce55176682715f25ea4b2.woff2') format('woff2'),
         url('https://db.onlinewebfonts.com/t/49441315ab9ce55176682715f25ea4b2.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
/* ─── CSS Variables ─────────────────────────────────── */
:root {
  --bg:          #0e0e0f;
  --bg2:         #141416;
  --bg3:         #1c1c1f;
  --surface:     #1e1e22;
  --border:      #2a2a30;
  --border-hi:   #c8a96e;
  --gold:        #c8a96e;
  --gold-dim:    #9a7e4f;
  --gold-bright: #e2c48a;
  --text:        #e8e4dc;
  --text-muted:  #7a7670;
  --text-dim:    #4a4845;
  --danger:      #c0392b;
  --danger-dim:  #7b2419;
  --success:     #27ae60;
  --accent:      #8b1a1a;

  --font-display: 'Microgramma D Extended', 'Orbitron', 'Cinzel', serif;
  --font-body:    'Microgramma D Extended', 'Orbitron', 'Raleway', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --radius:  4px;
  --radius-lg: 8px;
  --shadow:  0 8px 32px rgba(0,0,0,.6);
  --shadow-gold: 0 0 20px rgba(200,169,110,.15);

  --transition: .2s ease;
}
[data-theme="light"] {
  --bg:          #f2ede5;
  --bg2:         #ede8e0;
  --bg3:         #e5e0d8;
  --surface:     #faf8f4;
  --border:      #d4cfc6;
  --border-hi:   #9a6e2a;
  --gold:        #8a5e1e;
  --gold-dim:    #b07830;
  --gold-bright: #6a4010;
  --text:        #1a1714;
  --text-muted:  #6a6560;
  --text-dim:    #aaa59e;
  --danger:      #c0392b;
  --success:     #1a7a45;
  --accent:      #8b1a1a;
}
/* ─── Reset & Base ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.7;
  min-height: 100vh;
  transition: background var(--transition), color var(--transition);
}
/* Subtle crosshatch texture overlay */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    repeating-linear-gradient(0deg, transparent, transparent 40px, rgba(200,169,110,.012) 40px, rgba(200,169,110,.012) 41px),
    repeating-linear-gradient(90deg, transparent, transparent 40px, rgba(200,169,110,.012) 40px, rgba(200,169,110,.012) 41px);
  pointer-events: none;
  z-index: 0;
}
a { color: var(--gold); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold-bright); }
img { display: block; max-width: 100%; }
/* ─── Typography ────────────────────────────────────── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: .05em;
  line-height: 1.2;
  color: var(--text);
}
.mono { font-family: var(--font-mono); }
/* ─── Layout ────────────────────────────────────────── */
.container {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
/* ─── HEADER ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14,14,15,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  transition: background var(--transition);
}
[data-theme="light"] .site-header {
  background: rgba(242,237,229,.92);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 24px;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}
.logo-text {
  font-family: 'Microgramma D Bold Extended', var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: .1em;
  text-transform: uppercase;
}
.logo-sub {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--text-muted);
  letter-spacing: .2em;
  text-transform: uppercase;
  display: block;
  margin-top: -4px;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 8px;
}
.nav-link {
  font-family: var(--font-body);
  font-size: .85rem;
  font-weight: 500;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 6px 14px;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-link:hover { color: var(--gold); background: rgba(200,169,110,.08); }
.nav-link.active { color: var(--gold); }
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}
/* Theme Toggle */
.theme-toggle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
}
.theme-toggle:hover { border-color: var(--gold); color: var(--gold); }
/* ─── Buttons ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-body);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 9px 20px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn-primary {
  background: var(--gold);
  color: #0e0e0f;
  border-color: var(--gold);
}
.btn-primary:hover {
  background: var(--gold-bright);
  border-color: var(--gold-bright);
  color: #0e0e0f;
  box-shadow: 0 4px 20px rgba(200,169,110,.3);
}
.btn-outline {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline:hover {
  background: rgba(200,169,110,.1);
  color: var(--gold-bright);
}
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: var(--border);
}
.btn-ghost:hover { color: var(--text); border-color: var(--text-muted); }
.btn-danger {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn-danger:hover { background: #e74c3c; }
.btn-sm { padding: 6px 14px; font-size: .75rem; }
.btn-lg { padding: 13px 32px; font-size: .9rem; }
/* ─── Cards ─────────────────────────────────────────── */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.card:hover {
  border-color: var(--gold-dim);
  box-shadow: var(--shadow-gold);
  transform: translateY(-2px);
}
/* ─── Item Grid ──────────────────────────────────────── */
.items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px 0;
}
.item-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .25s ease;
  cursor: pointer;
}
.item-card:hover {
  border-color: var(--gold-dim);
  box-shadow: 0 12px 40px rgba(0,0,0,.5), 0 0 0 1px rgba(200,169,110,.2);
  transform: translateY(-4px);
}
.item-photo-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg3);
}
.item-photo-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.item-card:hover .item-photo-wrap img { transform: scale(1.04); }
.item-photo-count {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.7);
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: .7rem;
  padding: 3px 8px;
  border-radius: 20px;
  letter-spacing: .05em;
}
.no-photo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-dim);
  font-size: 2rem;
}
.item-body {
  padding: 18px 20px 22px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.item-category {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 6px;
}
.item-name {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text);
}
.item-desc {
  font-size: .84rem;
  color: var(--text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 0;
  flex: 1;
}
.item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
}
.item-price {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--gold);
  font-weight: 600;
}
/* ─── Hero Section ───────────────────────────────────── */
.hero {
  padding: 20px 0 30px;
  text-align: center;
  position: relative;
}
.hero-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 18px;
}
.hero h1 {
  font-family: 'Microgramma D Bold Extended', var(--font-display);
  font-size: clamp(2.2rem, 5vw, 4rem);
  color: var(--text);
  margin-bottom: 16px;
}
.hero h1 span { color: var(--gold); }
.hero-sub {
  max-width: 1272px;
  margin: 0 auto;
  color: var(--text-muted);
  font-size: .95rem;
  text-align: center;
}
.hero-sub-2 {
  margin-top: 0;
}
/* Gold divider */
.divider {
  width: 60px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: 20px auto;
}
/* ─── Filters ────────────────────────────────────────── */
.filters {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 20px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.filter-label {
  font-family: var(--font-mono);
  font-size: .72rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 4px;
}
.filter-btn {
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .06em;
  padding: 5px 14px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all var(--transition);
}
.filter-btn:hover, .filter-btn.active {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(200,169,110,.08);
}
/* ─── Search ─────────────────────────────────────────── */
.search-wrap {
  position: relative;
  margin-left: auto;
}
.search-wrap input {
  background: var(--bg3);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 20px;
  padding: 7px 16px 7px 36px;
  font-size: .84rem;
  font-family: var(--font-body);
  width: 220px;
  transition: all var(--transition);
  outline: none;
}
.search-wrap input:focus {
  border-color: var(--gold);
  width: 280px;
}
.search-wrap .search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: .85rem;
  pointer-events: none;
}
/* ─── Modal / Lightbox ───────────────────────────────── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.85);
  z-index: 200;
  backdrop-filter: blur(4px);
  animation: fadeIn .2s ease;
}
.modal-overlay.open { display: flex; align-items: center; justify-content: center; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.modal-box {
  background: var(--bg2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  max-width: 900px;
  width: calc(100% - 48px);
  max-height: 90vh;
  overflow-y: auto;
  overflow-x: hidden;
  box-shadow: var(--shadow);
  animation: slideUp .25s ease;
  position: relative;
  -webkit-overflow-scrolling: touch;
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition);
  z-index: 2;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold); }
.modal-gallery {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--bg3);
  overflow: hidden;
}
.modal-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,.6);
  border: 1px solid var(--border);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all var(--transition);
}
.gallery-nav:hover { background: var(--gold); color: #0e0e0f; border-color: var(--gold); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-dots {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
}
.gallery-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255,255,255,.3);
  cursor: pointer;
  transition: background var(--transition);
}
.gallery-dot.active { background: var(--gold); }
.modal-info {
  padding: 28px 32px 36px;
}
.modal-info .item-category { font-size: .72rem; margin-bottom: 8px; }
.modal-info h2 { font-size: 1.8rem; margin-bottom: 12px; }
.modal-info .item-desc-full {
  color: var(--text-muted);
  font-size: .92rem;
  line-height: 1.8;
  margin-bottom: 24px;
  white-space: pre-line;
}
.modal-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.modal-price { font-size: 2rem; }
.contact-info {
  font-size: .82rem;
  color: var(--text-muted);
  text-align: right;
}
.contact-info strong { color: var(--text); display: block; }
/* ─── Login Page ─────────────────────────────────────── */
.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.login-box {
  width: 100%;
  max-width: 400px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 44px 40px;
  box-shadow: var(--shadow);
}
.login-logo {
  text-align: center;
  margin-bottom: 36px;
}
.login-logo .logo-text { font-size: 1.6rem; }
.login-logo .logo-sub  { margin-top: 4px; font-size: .7rem; }
.form-group {
  margin-bottom: 18px;
}
.form-group label {
  display: block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .15em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--bg3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-family: var(--font-body);
  font-size: .9rem;
  padding: 10px 14px;
  outline: none;
  transition: border-color var(--transition);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus { border-color: var(--gold); }
.form-group textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.alert {
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: .85rem;
  margin-bottom: 18px;
}
.alert-error   { background: rgba(192,57,43,.15); border: 1px solid var(--danger); color: #e05252; }
.alert-success { background: rgba(39,174,96,.12); border: 1px solid var(--success); color: #2ecc71; }
.alert-info    { background: rgba(200,169,110,.1); border: 1px solid var(--gold-dim); color: var(--gold); }
/* ─── Admin Panel ────────────────────────────────────── */
.admin-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  min-height: 100vh;
}
.admin-sidebar {
  background: var(--bg2);
  border-right: 1px solid var(--border);
  padding: 24px 0;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.sidebar-logo {
  padding: 0 20px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 20px;
  color: var(--text-muted);
  font-size: .85rem;
  font-weight: 500;
  transition: all var(--transition);
  border-left: 2px solid transparent;
}
.sidebar-nav a:hover { color: var(--text); background: var(--bg3); }
.sidebar-nav a.active { color: var(--gold); border-left-color: var(--gold); background: rgba(200,169,110,.07); }
.sidebar-section {
  font-family: var(--font-mono);
  font-size: .62rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 20px 6px;
}
.admin-main { padding: 32px; }
.admin-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 12px;
}
.admin-topbar h1 {
  font-size: 1.5rem;
}
/* ─── Table ──────────────────────────────────────────── */
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .87rem;
}
.data-table th {
  font-family: var(--font-mono);
  font-size: .68rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--text-muted);
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--border);
  background: var(--bg2);
}
.data-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.data-table tr:last-child td { border-bottom: none; }
.data-table tr:hover td { background: rgba(200,169,110,.04); }
.table-wrap {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
/* ─── Item Form ──────────────────────────────────────── */
.form-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  max-width: 860px;
}
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
/* Photo upload zone */
.photo-upload-zone {
  border: 2px dashed var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  text-align: center;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 16px;
}
.photo-upload-zone:hover, .photo-upload-zone.dragover {
  border-color: var(--gold);
  background: rgba(200,169,110,.05);
}
.photo-upload-zone .upload-icon { font-size: 2rem; margin-bottom: 8px; color: var(--text-dim); }
.photo-upload-zone p { color: var(--text-muted); font-size: .85rem; }
.photo-upload-zone input { display: none; }
.photos-preview {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 10px;
}
.photo-thumb {
  position: relative;
  aspect-ratio: 4/3;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.photo-thumb img { width: 100%; height: 100%; object-fit: cover; }
.photo-thumb .photo-del {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 22px;
  height: 22px;
  background: rgba(192,57,43,.85);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: .75rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.photo-thumb .photo-main-badge {
  position: absolute;
  bottom: 4px;
  left: 4px;
  background: var(--gold);
  color: #0e0e0f;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  padding: 1px 6px;
  border-radius: 3px;
}
/* Status badge */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .06em;
  font-family: var(--font-mono);
}
.badge-active   { background: rgba(39,174,96,.15); color: #2ecc71; }
.badge-inactive { background: rgba(100,100,100,.15); color: var(--text-muted); }
.badge-admin    { background: rgba(200,169,110,.15); color: var(--gold); }
.badge-editor   { background: rgba(52,152,219,.15); color: #5dade2; }
.badge-await    { background: rgba(100,100,100,.15); color: var(--text-muted); }
/* Role pill */
.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: .72rem;
  font-family: var(--font-mono);
}
/* ─── Footer ─────────────────────────────────────────── */
.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  border-top: 1px solid var(--border);
  padding: 14px 0;
  text-align: center;
  color: var(--text-dim);
  font-size: .8rem;
  font-family: var(--font-mono);
  letter-spacing: .08em;
  background: var(--bg2);
  z-index: 50;
}
body { padding-bottom: 64px; }
.site-footer a { color: var(--gold-dim); }
/* ─── Empty State ────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty-state .empty-icon { font-size: 3rem; margin-bottom: 16px; opacity: .4; }
.empty-state h3 { font-size: 1.1rem; margin-bottom: 8px; color: var(--text-dim); }
/* ─── Misc ───────────────────────────────────────────── */
.text-gold    { color: var(--gold); }
.text-muted   { color: var(--text-muted); }
.text-danger  { color: var(--danger); }
.mt-auto      { margin-top: auto; }
.gap-8        { gap: 8px; }
.flex         { display: flex; }
.flex-center  { display: flex; align-items: center; }
.w-full       { width: 100%; }
/* ─── Responsive ─────────────────────────────────────── */
/* ─── Mobile / Tablet Responsive ───────────────────── */
/* ─── Tablet (≤1024px) ───────────────────────────────── */
@media (max-width: 1024px) {
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
  .admin-main { padding: 20px 16px; }
  .contact-top { gap: 28px; }
  .lb-info { flex-direction: column; }
  .lb-info-price { text-align: left; min-width: 0; }
}

/* ─── Mobile (≤768px) ────────────────────────────────── */
@media (max-width: 768px) {
  /* Layout */
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; flex-direction: column; }
  .container { padding: 0 14px; }

  /* Header */
  .header-inner { height: auto; padding: 10px 0; flex-wrap: wrap; gap: 8px; }
  .header-nav { gap: 4px; flex-wrap: wrap; justify-content: center; }
  .nav-link { padding: 5px 10px; font-size: .78rem; }
  .logo-text { font-size: 1.1rem; }
  .header-actions { gap: 6px; }

  /* Lang switcher — dropdown opens upward on mobile */
  .lang-dropdown { top: auto; bottom: calc(100% + 6px); right: 0; }

  /* Hero */
  .hero { padding: 10px 0 15px; }
  .hero h1 { font-size: 1.8rem; }
  .hero-sub { font-size: .85rem; }

  /* Catalogue */
  .items-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .filters { gap: 6px; flex-wrap: wrap; }
  .filter-btn { font-size: .72rem; padding: 4px 10px; }
  .search-wrap { margin-left: 0 !important; width: 100%; }
  .search-wrap input { width: 100%; }
  .search-wrap input:focus { width: 100%; }
  .item-name { font-size: .95rem; }
  .item-price { font-size: 1.05rem; }

  /* Lightbox */
  .lb-info { flex-direction: column; gap: 10px; }
  .lb-info-price { text-align: left; min-width: 0; }
  .lb-price-val { font-size: 1.4rem; }

  /* Contact */
  .contact-top { grid-template-columns: 1fr; gap: 24px; padding: 28px 0 20px; }
  .cf-row2 { grid-template-columns: 1fr; }

  /* Admin forms */
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 20px 16px; }
  .admin-topbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .btn-lg { padding: 10px 22px; font-size: .82rem; }

  /* Admin table */
  .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .data-table { min-width: 600px; }

  /* Login */
  .login-box { padding: 28px 20px; }
  .modal-info { padding: 16px 16px 24px; }

  /* Stats grid */
  .stats-grid { grid-template-columns: 1fr 1fr; }
}

/* ─── Small mobile (≤480px) ──────────────────────────── */
@media (max-width: 480px) {
  /* Catalogue */
  .items-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .item-body { padding: 12px 14px 16px; }
  .item-desc { display: none; }
  .hero h1 { font-size: 1.5rem; }
  .hero-sub { display: none; }

  /* Header — keep all nav links visible, wrap onto a second line if needed */
  .header-nav { gap: 4px 8px; }
  .nav-link { padding: 4px 8px; font-size: .72rem; }

  /* Footer — smaller text so it still fits as a slim always-visible bar */
  .site-footer { padding: 8px 0; font-size: .65rem; letter-spacing: .04em; }
  .site-footer .container { padding: 0 10px; }
  body { padding-bottom: 74px; }

  /* Stats — single column */
  .stats-grid { grid-template-columns: 1fr; }

  /* Lightbox */
  .lb-nav { width: 36px; height: 36px; font-size: 1.1rem; }
  .lb-thumb { width: 54px; height: 40px; }

  /* Contact maps */
  .addresses-row { grid-template-columns: 1fr; gap: 20px; }
  .map-frame { height: 320px; }

  /* Admin sort buttons */
  .sort-btn { font-size: .68rem; padding: 4px 9px; }
}
/* ─── Scrollbar ──────────────────────────────────────── */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-dim); }
