@import url('https://fonts.googleapis.com/css2?family=Syne:wght@400;500;600;700;800&family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;1,9..40,300&family=DM+Mono:wght@300;400;500&display=swap');

/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #050810;
  --bg-1:      #090e1a;
  --bg-2:      #0e1628;
  --bg-3:      #131e35;
  --surface:   #0d1624;
  --surface-2: #121d32;
  --surface-3: #1a2540;

  --accent:    #0ea5e9;
  --accent-2:  #38bdf8;
  --accent-3:  #7dd3fc;
  --accent-glow: rgba(14,165,233,0.22);
  --accent-dim:  rgba(14,165,233,0.08);

  --green:  #22c55e;
  --red:    #ef4444;
  --orange: #f97316;
  --yellow: #eab308;
  --purple: #a855f7;

  --text-100: #f0f6ff;
  --text-200: #c8d8f0;
  --text-400: #7a98be;
  --text-500: #4d6a8a;
  --text-600: #2e4560;

  --border:   rgba(14,165,233,0.14);
  --border-2: rgba(14,165,233,0.07);

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.5);
  --shadow:    0 8px 32px rgba(0,0,0,0.6);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.7);
  --glow:      0 0 60px rgba(14,165,233,0.2);
  --glow-sm:   0 0 24px rgba(14,165,233,0.15);
}

/* ─── RESET ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;}
body{background:var(--bg);color:var(--text-200);font-family:var(--font-body);font-size:16px;line-height:1.6;min-height:100vh;overflow-x:hidden;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
button{cursor:pointer;border:none;background:none;font-family:var(--font-body);}
input,textarea,select{font-family:var(--font-body);}
.hidden{display:none!important;}

/* ─── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar{width:5px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:var(--bg-3);border-radius:3px;}
::-webkit-scrollbar-thumb:hover{background:var(--accent);}

/* ─── PAGE ────────────────────────────────────────────────── */
.page{display:flex;flex-direction:column;min-height:100vh;}

/* ─── ANIMATED BACKGROUND NOISE ──────────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
  opacity: 0.4;
}

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(5,8,16,0.88);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar-brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 14px rgba(14,165,233,0.5));
  transition: filter 0.3s, transform 0.3s;
}
.navbar-brand img:hover {
  filter: drop-shadow(0 0 24px rgba(14,165,233,0.8));
  transform: scale(1.05);
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-400);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-100); background: var(--accent-dim); }
.nav-link.active { color: var(--accent); }
.nav-user {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-400);
  font-weight: 500;
}
.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-mono);
  line-height: 1;
  animation: cartPop 0.3s ease;
}
@keyframes cartPop { 0%{transform:scale(0);} 70%{transform:scale(1.3);} 100%{transform:scale(1);} }
.nav-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(14,165,233,0.3);
}
.nav-btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 32px rgba(14,165,233,0.6); transform: translateY(-1px); }
.nav-btn-ghost { color: var(--text-400); }
.nav-btn-ghost:hover { color: var(--text-100); background: var(--accent-dim); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 6rem 2rem 5rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 90% 70% at 50% -5%, rgba(14,165,233,0.22) 0%, transparent 65%),
    radial-gradient(ellipse 60% 50% at 85% 85%, rgba(14,165,233,0.08) 0%, transparent 55%),
    radial-gradient(ellipse 40% 30% at 10% 70%, rgba(168,85,247,0.05) 0%, transparent 50%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.05) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 90% 90% at 50% 50%, black 20%, transparent 80%);
  animation: gridDrift 20s linear infinite;
}
@keyframes gridDrift { from{background-position:0 0;} to{background-position:56px 56px;} }

/* Floating orbs */
.hero-bg::before {
  content: '';
  position: absolute;
  width: 600px; height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,0.06) 0%, transparent 70%);
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  animation: orbPulse 6s ease-in-out infinite;
}
@keyframes orbPulse { 0%,100%{transform:translate(-50%,-50%) scale(1);opacity:0.6;} 50%{transform:translate(-50%,-50%) scale(1.15);opacity:1;} }

.hero-content { position: relative; z-index: 1; max-width: 820px; animation: heroReveal 0.8s ease both; }
@keyframes heroReveal { from{opacity:0;transform:translateY(24px);} to{opacity:1;transform:translateY(0);} }

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(14,165,233,0.1);
  border: 1px solid rgba(14,165,233,0.25);
  border-radius: 100px;
  padding: 0.4rem 1.1rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--accent-3);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 1.75rem;
  font-family: var(--font-mono);
  animation: heroReveal 0.8s ease 0.1s both;
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 20px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:0.5;transform:scale(0.8);}
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(3rem, 7vw, 5.5rem);
  font-weight: 800;
  line-height: 1.02;
  color: var(--text-100);
  letter-spacing: -0.03em;
  margin-bottom: 1.5rem;
  animation: heroReveal 0.8s ease 0.2s both;
}
.hero-content h1 .blue {
  color: var(--accent);
  text-shadow: 0 0 60px rgba(14,165,233,0.5), 0 0 120px rgba(14,165,233,0.2);
  position: relative;
}
.hero-desc {
  font-size: 1.15rem;
  color: var(--text-400);
  max-width: 540px;
  margin: 0 auto 2.75rem;
  font-weight: 300;
  line-height: 1.75;
  animation: heroReveal 0.8s ease 0.3s both;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; animation: heroReveal 0.8s ease 0.4s both; }

/* ─── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: linear-gradient(90deg, var(--bg-1), var(--bg-2), var(--bg-1));
  padding: 1.5rem 2rem;
  position: relative;
  overflow: hidden;
}
.stats-bar::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(14,165,233,0.03), transparent);
  animation: shimmer 4s ease-in-out infinite;
}
@keyframes shimmer { 0%,100%{opacity:0;} 50%{opacity:1;} }
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 4rem;
  flex-wrap: wrap;
  position: relative;
}
.stat {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  transition: transform 0.2s;
}
.stat:hover { transform: translateY(-2px); }
.stat-icon {
  font-size: 1.4rem;
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.stat-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-100);
}
.stat-text span {
  font-size: 0.76rem;
  color: var(--text-500);
  font-weight: 400;
}

/* ─── CONTAINER ───────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3.5rem 2rem 5rem;
}
.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2.5rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: -0.03em;
}
.section-sub {
  font-size: 0.88rem;
  color: var(--text-500);
  margin-top: 0.3rem;
}

/* ─── SEARCH ──────────────────────────────────────────────── */
.search-wrapper { margin-bottom: 2.5rem; }
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  gap: 0.75rem;
  max-width: 580px;
  margin: 0 auto 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim), var(--glow-sm);
}
.search-box svg { width: 18px; height: 18px; color: var(--text-500); flex-shrink: 0; }
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-100);
  font-size: 0.95rem;
  font-weight: 400;
}
.search-box input::placeholder { color: var(--text-600); }
.search-box button {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.35rem;
  border-radius: var(--r);
  transition: background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.search-box button:hover { background: var(--accent-2); box-shadow: 0 0 20px rgba(14,165,233,0.5); }

/* ─── CATEGORIES ──────────────────────────────────────────── */
.categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cat-btn {
  padding: 0.4rem 1.1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-400);
  background: var(--bg-1);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.cat-btn:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 20px rgba(14,165,233,0.35); }

/* ─── PRODUCT GRID ────────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 1.5rem;
}
.p-card {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
  position: relative;
  animation: cardReveal 0.5s ease both;
}
@keyframes cardReveal { from{opacity:0;transform:translateY(16px);} to{opacity:1;transform:translateY(0);} }
.p-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(14,165,233,0.04) 0%, transparent 50%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}
.p-card:hover {
  border-color: rgba(14,165,233,0.3);
  transform: translateY(-6px);
  box-shadow: var(--shadow), 0 0 50px rgba(14,165,233,0.08);
}
.p-card:hover::before { opacity: 1; }
.p-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
}
.p-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.p-card:hover .p-card-img-wrap img { transform: scale(1.06); }
.p-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(5,8,16,0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.7rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--accent-3);
  font-family: var(--font-mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.p-card-body { padding: 1.35rem 1.35rem 0.75rem; flex: 1; }
.p-card-name {
  font-family: var(--font-head);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 0.45rem;
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.p-card-desc {
  font-size: 0.83rem;
  color: var(--text-500);
  line-height: 1.55;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-card-footer {
  padding: 0.85rem 1.35rem 1.35rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border-2);
  margin-top: 0.75rem;
}
.p-card-price {
  font-family: var(--font-head);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-100);
  letter-spacing: -0.02em;
}
.p-card-price .eur {
  font-size: 0.85rem;
  color: var(--text-400);
  font-weight: 500;
  vertical-align: super;
  margin-right: 2px;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
  position: relative;
  overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.08) 0%, transparent 100%);
  opacity: 0;
  transition: opacity 0.2s;
}
.btn:hover::after { opacity: 1; }
.btn-blue {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 24px rgba(14,165,233,0.25);
}
.btn-blue:hover { background: var(--accent-2); box-shadow: 0 0 36px rgba(14,165,233,0.5); transform: translateY(-2px); }
.btn-blue:active { transform: translateY(0); }
.btn-outline {
  background: transparent;
  color: var(--text-200);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-red { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-red:hover { background: rgba(239,68,68,0.28); }
.btn-ghost { background: none; color: var(--text-400); padding: 0.4rem; }
.btn-ghost:hover { color: var(--red); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.9rem 2.2rem; font-size: 1rem; border-radius: var(--r-lg); }

/* ─── PAGER ───────────────────────────────────────────────── */
.pager { display:flex; align-items:center; justify-content:center; gap:1rem; margin-top:3rem; }
.pager span { font-family:var(--font-mono); font-size:0.82rem; color:var(--text-500); }

/* ─── EMPTY / SPIN ────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-500);
}
.empty h3 { font-family:var(--font-head); font-size:1.3rem; color:var(--text-200); margin-bottom:0.5rem; }
.empty p { margin-bottom:1.5rem; font-size:0.9rem; }
.spin {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 3rem auto;
}
@keyframes spin { to{transform:rotate(360deg);} }

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 2.5rem 2rem;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1.5rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand img { height: 30px; opacity: 0.6; transition: opacity 0.2s; }
.footer-brand img:hover { opacity: 1; }
.footer-copy { font-size: 0.82rem; color: var(--text-600); }
.footer-links { display:flex; gap:1.75rem; flex-wrap: wrap; }
.footer-links a { font-size:0.82rem; color:var(--text-600); transition:color 0.2s; }
.footer-links a:hover { color:var(--accent); }
.hl { color: var(--accent); }

/* ─── AUTH ────────────────────────────────────────────────── */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
}
.auth-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 20%, rgba(14,165,233,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.auth-box {
  width: 100%;
  max-width: 430px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.75rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg), 0 0 100px rgba(14,165,233,0.07);
  animation: heroReveal 0.6s ease both;
}
.auth-box h1 {
  font-family: var(--font-head);
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--text-100);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.auth-box .sub { font-size:0.88rem; color:var(--text-500); margin-bottom:1.75rem; }
.auth-switch { text-align:center; margin-top:1.25rem; font-size:0.85rem; color:var(--text-500); }
.auth-switch a { color:var(--accent); font-weight:500; }
.auth-switch a:hover { color:var(--accent-2); }

/* ─── FORM FIELDS ─────────────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-400);
  margin-bottom: 0.4rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.7rem 0.95rem;
  color: var(--text-100);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input::placeholder, .textarea::placeholder { color: var(--text-600); }
.textarea { resize: vertical; min-height: 90px; }
.select { -webkit-appearance: none; appearance: none; }

/* ─── OVERLAY / DIALOG ────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.overlay.open { display: flex; }
.dialog {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg), var(--glow-sm);
  position: relative;
  animation: dialogReveal 0.3s ease both;
}
@keyframes dialogReveal { from{opacity:0;transform:scale(0.95) translateY(10px);} to{opacity:1;transform:scale(1) translateY(0);} }
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.dialog-head h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: -0.01em;
}
.dialog-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text-400);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}
.dialog-close:hover { background: var(--red); color: #fff; }

/* ─── CHECKOUT MODAL ──────────────────────────────────────── */
.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 4px;
}
.checkout-step {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  border-radius: calc(var(--r) - 2px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-500);
  transition: all 0.25s;
  font-family: var(--font-mono);
}
.checkout-step.active { background: var(--accent); color: #fff; box-shadow: 0 0 16px rgba(14,165,233,0.4); }
.checkout-step.done { color: var(--accent); }

.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.5rem; }
.pay-method {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-2);
}
.pay-method:hover { border-color: var(--accent); background: var(--accent-dim); transform: translateY(-2px); }
.pay-method.selected { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent), 0 0 20px rgba(14,165,233,0.2); }
.pay-method .pay-icon { font-size: 1.6rem; }
.pay-method .pay-name { font-size: 0.82rem; font-weight: 600; color: var(--text-200); }
.pay-method .pay-desc { font-size: 0.72rem; color: var(--text-500); text-align: center; }

.order-summary {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 1rem;
  margin: 1rem 0;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: var(--text-400);
}
.order-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  color: var(--text-100);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1rem;
}

/* ─── IMAGE UPLOAD ────────────────────────────────────────── */
.img-drop {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-2);
  position: relative;
}
.img-drop:hover, .img-drop.has-img { border-color: var(--accent); }
.img-drop img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }

/* ─── CART ────────────────────────────────────────────────── */
.cart-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.cart-row:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.cart-thumb {
  width: 80px; height: 80px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-2);
}
.cart-info { flex: 1; }
.cart-info h4 { font-family:var(--font-head); font-size:0.95rem; color:var(--text-100); font-weight:600; margin-bottom:0.2rem; }
.cart-info p { font-size:0.82rem; color:var(--text-500); }
.qty-ctrl {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.qty-ctrl button {
  width: 32px; height: 32px;
  font-size: 1rem;
  color: var(--text-400);
  transition: background 0.2s, color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.qty-ctrl button:hover { background: var(--accent); color: #fff; }
.qty-ctrl span { padding: 0 0.75rem; font-family:var(--font-mono); font-size:0.88rem; color:var(--text-200); min-width: 36px; text-align:center; }
.cart-price { font-family:var(--font-head); font-size:1.1rem; font-weight:700; color:var(--text-100); min-width:80px; text-align:right; }

.cart-total-box {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--text-100);
}
.mt-3 { margin-top: 1rem; }

/* ─── ORDERS ──────────────────────────────────────────────── */
.order-card {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.order-card:hover { border-color: var(--border); box-shadow: var(--shadow-sm); }
.flex-between { display:flex; align-items:center; justify-content:space-between; }
.mb-2 { margin-bottom: 0.5rem; }

/* ─── TAGS ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.7rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-green  { background: rgba(34,197,94,0.12);  color: var(--green);  border: 1px solid rgba(34,197,94,0.2); }
.tag-red    { background: rgba(239,68,68,0.12);   color: var(--red);    border: 1px solid rgba(239,68,68,0.2); }
.tag-blue   { background: rgba(14,165,233,0.12);  color: var(--accent); border: 1px solid var(--border); }
.tag-orange { background: rgba(249,115,22,0.12);  color: var(--orange); border: 1px solid rgba(249,115,22,0.2); }

/* ─── ADMIN ───────────────────────────────────────────────── */
.admin-shell { display:flex; flex:1; min-height:0; }
.admin-side {
  width: 230px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}
.admin-side-label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--text-600);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 0 1.25rem 1rem;
}
.admin-link {
  padding: 0.7rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-400);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  border-left: 2px solid transparent;
  display: flex; align-items: center; gap: 0.65rem;
}
.admin-link:hover { color: var(--text-100); background: var(--accent-dim); }
.admin-link.on { color: var(--accent); border-left-color: var(--accent); background: var(--accent-dim); }
.admin-main { flex:1; padding: 2rem; overflow-y: auto; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.75rem;
}
.admin-top h2 {
  font-family: var(--font-head); font-size:1.5rem; font-weight:700;
  color: var(--text-100); letter-spacing:-0.02em;
}

/* ─── TABLE ───────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.tbl { width:100%; border-collapse:collapse; }
.tbl thead tr { background: var(--bg-2); }
.tbl th {
  padding: 0.8rem 1rem; text-align:left;
  font-family:var(--font-mono); font-size:0.68rem; font-weight:600;
  color:var(--text-500); letter-spacing:0.1em; text-transform:uppercase;
  border-bottom: 1px solid var(--border);
}
.tbl td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.88rem; color: var(--text-200);
  vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background 0.15s; }
.tbl tbody tr:hover { background: var(--accent-dim); }
.tbl-thumb { width:40px; height:40px; border-radius:var(--r-sm); object-fit:cover; background:var(--bg-2); }

/* ─── TOAST ───────────────────────────────────────────────── */
.toast-wrap {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 999; display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  background: rgba(9,14,26,0.95);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.8rem 1.35rem;
  font-size: 0.88rem;
  color: var(--text-100);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-width: 320px;
  backdrop-filter: blur(16px);
}
.toast.success { border-color: rgba(34,197,94,0.35); background: rgba(34,197,94,0.12); color: var(--green); }
.toast.error   { border-color: rgba(239,68,68,0.35);  background: rgba(239,68,68,0.12);  color: var(--red);   }
@keyframes slideIn { from{transform:translateX(110%);opacity:0;} to{transform:translateX(0);opacity:1;} }

/* ─── CONTACT PAGE ────────────────────────────────────────── */
.contact-hero {
  position: relative;
  padding: 6rem 2rem 4rem;
  text-align: center;
  overflow: hidden;
}
.contact-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(14,165,233,0.18) 0%, transparent 70%);
  pointer-events: none;
}
.contact-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 800;
  color: var(--text-100);
  letter-spacing: -0.03em;
  margin-bottom: 1rem;
  position: relative;
}
.contact-hero p {
  font-size: 1.1rem;
  color: var(--text-400);
  max-width: 500px;
  margin: 0 auto;
  font-weight: 300;
  line-height: 1.7;
  position: relative;
}
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-card {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  transition: border-color 0.2s, transform 0.2s;
}
.contact-card:hover { border-color: var(--border); transform: translateX(4px); }
.contact-card-icon {
  width: 44px; height: 44px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-card h3 { font-family: var(--font-head); font-size: 0.95rem; font-weight: 700; color: var(--text-100); margin-bottom: 0.25rem; }
.contact-card p { font-size: 0.85rem; color: var(--text-400); line-height: 1.5; }
.contact-card a { color: var(--accent); }
.contact-form-box {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(14,165,233,0.05);
}
.contact-form-box h2 {
  font-family: var(--font-head);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}
.contact-form-box .sub { font-size: 0.85rem; color: var(--text-500); margin-bottom: 1.75rem; }
.contact-main-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 1.25rem;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: var(--r);
  color: var(--accent-2);
  font-size: 0.9rem;
  font-weight: 600;
  transition: all 0.2s;
  text-decoration: none;
}
.contact-main-link:hover { background: rgba(14,165,233,0.15); border-color: rgba(14,165,233,0.3); transform: translateY(-2px); }

/* ─── MISC UTILS ──────────────────────────────────────────── */
.text-center { text-align:center; }
.surface-3 { background: var(--surface-3); }

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-inner { padding: 0 1rem; }
  .hero { padding: 3.5rem 1rem 3rem; min-height: 460px; }
  .hero-content h1 { font-size: 2.6rem; }
  .container { padding: 2rem 1rem 3rem; }
  .products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; padding: 0.75rem; }
  .admin-link { border-left: none; border-bottom: 2px solid transparent; padding: 0.5rem 0.85rem; }
  .admin-link.on { border-left: none; border-bottom-color: var(--accent); }
  .admin-main { padding: 1.25rem; }
  .cart-row { flex-wrap: wrap; }
  .stats-inner { gap: 1.5rem; }
  .payment-methods { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
  .contact-grid { grid-template-columns: 1fr; }
  .contact-hero { padding: 4rem 1.5rem 2.5rem; }
}


/* ─── TOKENS ─────────────────────────────────────────────── */
:root {
  --bg:        #080c12;
  --bg-1:      #0d1420;
  --bg-2:      #111c2e;
  --bg-3:      #162238;
  --surface:   #0f1928;
  --surface-2: #162035;

  --accent:    #0ea5e9;
  --accent-2:  #38bdf8;
  --accent-glow: rgba(14,165,233,0.18);
  --accent-dim:  rgba(14,165,233,0.08);

  --green:  #22c55e;
  --red:    #ef4444;
  --orange: #f97316;
  --yellow: #eab308;

  --text-100: #f0f6ff;
  --text-200: #c8d8f0;
  --text-400: #7a98be;
  --text-500: #4d6a8a;
  --text-600: #2e4560;

  --border:   rgba(14,165,233,0.12);
  --border-2: rgba(14,165,233,0.06);

  --font-head: 'Syne', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-mono: 'DM Mono', monospace;

  --r-sm: 8px;
  --r:    14px;
  --r-lg: 20px;
  --r-xl: 28px;

  --shadow-sm: 0 2px 8px rgba(0,0,0,0.4);
  --shadow:    0 8px 32px rgba(0,0,0,0.5);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.6);
  --glow:      0 0 40px rgba(14,165,233,0.15);
}

/* ─── RESET ───────────────────────────────────────────────── */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0;}
html{scroll-behavior:smooth;-webkit-font-smoothing:antialiased;}
body{background:var(--bg);color:var(--text-200);font-family:var(--font-body);font-size:16px;line-height:1.6;min-height:100vh;overflow-x:hidden;}
a{color:inherit;text-decoration:none;}
img{display:block;max-width:100%;}
button{cursor:pointer;border:none;background:none;font-family:var(--font-body);}
input,textarea,select{font-family:var(--font-body);}
.hidden{display:none!important;}

/* ─── SCROLLBAR ───────────────────────────────────────────── */
::-webkit-scrollbar{width:6px;}
::-webkit-scrollbar-track{background:var(--bg);}
::-webkit-scrollbar-thumb{background:var(--bg-3);border-radius:3px;}
::-webkit-scrollbar-thumb:hover{background:var(--accent);}

/* ─── PAGE ────────────────────────────────────────────────── */
.page{display:flex;flex-direction:column;min-height:100vh;}

/* ─── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,12,18,0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}
.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 68px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}
.navbar-brand {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.navbar-brand img {
  height: 38px;
  width: auto;
  filter: drop-shadow(0 0 12px rgba(14,165,233,0.4));
  transition: filter 0.3s;
}
.navbar-brand img:hover {
  filter: drop-shadow(0 0 20px rgba(14,165,233,0.7));
}
.navbar-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.nav-link {
  padding: 0.45rem 0.85rem;
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-400);
  transition: color 0.2s, background 0.2s;
  white-space: nowrap;
}
.nav-link:hover { color: var(--text-100); background: var(--accent-dim); }
.nav-link.active { color: var(--accent); }
.nav-user {
  padding: 0.45rem 0.85rem;
  font-size: 0.85rem;
  color: var(--text-400);
  font-weight: 500;
}
.cart-link { position: relative; }
.cart-count {
  position: absolute;
  top: 2px; right: 2px;
  background: var(--accent);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  font-family: var(--font-mono);
  line-height: 1;
}
.nav-btn {
  padding: 0.5rem 1.1rem;
  border-radius: var(--r-sm);
  font-size: 0.85rem;
  font-weight: 600;
  transition: all 0.2s;
  white-space: nowrap;
}
.nav-btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(14,165,233,0.3);
}
.nav-btn-primary:hover { background: var(--accent-2); box-shadow: 0 0 28px rgba(14,165,233,0.5); }
.nav-btn-ghost { color: var(--text-400); }
.nav-btn-ghost:hover { color: var(--text-100); background: var(--accent-dim); }

/* ─── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 540px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  padding: 5rem 2rem 4rem;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(14,165,233,0.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 40% at 80% 80%, rgba(14,165,233,0.06) 0%, transparent 60%);
  pointer-events: none;
}
.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(14,165,233,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14,165,233,0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black 20%, transparent 80%);
}
.hero-content { position: relative; z-index: 1; max-width: 760px; }
.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent-dim);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.35rem 1rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent-2);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
}
.dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%,100%{opacity:1;transform:scale(1);}
  50%{opacity:0.6;transform:scale(0.85);}
}
.hero-content h1 {
  font-family: var(--font-head);
  font-size: clamp(2.8rem, 6vw, 5rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--text-100);
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
}
.hero-content h1 .blue {
  color: var(--accent);
  text-shadow: 0 0 40px rgba(14,165,233,0.4);
}
.hero-desc {
  font-size: 1.1rem;
  color: var(--text-400);
  max-width: 520px;
  margin: 0 auto 2.5rem;
  font-weight: 300;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }

/* ─── STATS BAR ───────────────────────────────────────────── */
.stats-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--bg-1);
  padding: 1.25rem 2rem;
}
.stats-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 3rem;
  flex-wrap: wrap;
}
.stat {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.stat-icon { font-size: 1.2rem; }
.stat-text strong {
  display: block;
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-100);
}
.stat-text span {
  font-size: 0.78rem;
  color: var(--text-500);
  font-weight: 400;
}

/* ─── CONTAINER ───────────────────────────────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}
.container-sm {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── SECTION HEADER ──────────────────────────────────────── */
.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 2rem;
  gap: 1rem;
  flex-wrap: wrap;
}
.section-title {
  font-family: var(--font-head);
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: -0.02em;
}
.section-sub {
  font-size: 0.88rem;
  color: var(--text-500);
  margin-top: 0.25rem;
}

/* ─── SEARCH ──────────────────────────────────────────────── */
.search-wrapper { margin-bottom: 2.5rem; }
.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 0.5rem 0.5rem 0.5rem 1.25rem;
  gap: 0.75rem;
  max-width: 560px;
  margin: 0 auto 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-box svg { width: 18px; height: 18px; color: var(--text-500); flex-shrink: 0; }
.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text-100);
  font-size: 0.95rem;
  font-weight: 400;
}
.search-box input::placeholder { color: var(--text-600); }
.search-box button {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 0.85rem;
  padding: 0.55rem 1.25rem;
  border-radius: var(--r);
  transition: background 0.2s, box-shadow 0.2s;
  flex-shrink: 0;
}
.search-box button:hover { background: var(--accent-2); box-shadow: 0 0 16px rgba(14,165,233,0.4); }

/* ─── CATEGORIES ──────────────────────────────────────────── */
.categories {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.cat-btn {
  padding: 0.4rem 1rem;
  border-radius: 100px;
  font-size: 0.82rem;
  font-weight: 500;
  border: 1px solid var(--border);
  color: var(--text-400);
  background: var(--bg-1);
  transition: all 0.2s;
  font-family: var(--font-body);
}
.cat-btn:hover { border-color: var(--accent); color: var(--accent); }
.cat-btn.active { background: var(--accent); border-color: var(--accent); color: #fff; box-shadow: 0 0 16px rgba(14,165,233,0.3); }

/* ─── PRODUCT GRID ────────────────────────────────────────── */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.p-card {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s, transform 0.25s, box-shadow 0.25s;
  position: relative;
}
.p-card:hover {
  border-color: var(--border);
  transform: translateY(-4px);
  box-shadow: var(--shadow), 0 0 40px rgba(14,165,233,0.06);
}
.p-card-img-wrap {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  background: var(--bg-2);
}
.p-card-img-wrap img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.p-card:hover .p-card-img-wrap img { transform: scale(1.04); }
.p-card-cat {
  position: absolute;
  top: 12px; left: 12px;
  background: rgba(8,12,18,0.8);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.25rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--accent-2);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.p-card-body { padding: 1.25rem 1.25rem 0.75rem; flex: 1; }
.p-card-name {
  font-family: var(--font-head);
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-100);
  margin-bottom: 0.4rem;
  letter-spacing: -0.01em;
}
.p-card-desc {
  font-size: 0.83rem;
  color: var(--text-500);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.p-card-footer {
  padding: 0.75rem 1.25rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border-top: 1px solid var(--border-2);
  margin-top: 0.75rem;
}
.p-card-price {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--text-100);
  letter-spacing: -0.02em;
}
.p-card-price .eur {
  font-size: 0.85rem;
  color: var(--text-400);
  font-weight: 500;
  vertical-align: super;
  margin-right: 2px;
}

/* ─── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.4rem;
  border-radius: var(--r);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s;
  cursor: pointer;
  border: none;
  font-family: var(--font-body);
  white-space: nowrap;
}
.btn-blue {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 20px rgba(14,165,233,0.2);
}
.btn-blue:hover { background: var(--accent-2); box-shadow: 0 0 28px rgba(14,165,233,0.45); transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: var(--text-200);
  border: 1px solid var(--border);
}
.btn-outline:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.btn-red { background: rgba(239,68,68,0.15); color: var(--red); border: 1px solid rgba(239,68,68,0.2); }
.btn-red:hover { background: rgba(239,68,68,0.25); }
.btn-ghost { background: none; color: var(--text-400); padding: 0.4rem; }
.btn-ghost:hover { color: var(--red); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.8rem; }
.btn-lg { padding: 0.85rem 2rem; font-size: 1rem; border-radius: var(--r-lg); }

/* ─── PAGER ───────────────────────────────────────────────── */
.pager { display:flex; align-items:center; justify-content:center; gap:1rem; margin-top:3rem; }
.pager span { font-family:var(--font-mono); font-size:0.82rem; color:var(--text-500); }

/* ─── EMPTY / SPIN ────────────────────────────────────────── */
.empty {
  text-align: center;
  padding: 5rem 2rem;
  color: var(--text-500);
}
.empty h3 { font-family:var(--font-head); font-size:1.3rem; color:var(--text-200); margin-bottom:0.5rem; }
.empty p { margin-bottom:1.5rem; font-size:0.9rem; }
.spin {
  width: 36px; height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 3rem auto;
}
@keyframes spin { to{transform:rotate(360deg);} }

/* ─── FOOTER ──────────────────────────────────────────────── */
.site-footer {
  margin-top: auto;
  border-top: 1px solid var(--border);
  background: var(--bg-1);
  padding: 2rem;
  text-align: center;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.footer-brand img { height: 28px; opacity: 0.7; }
.footer-copy { font-size: 0.82rem; color: var(--text-600); }
.footer-links { display:flex; gap:1.5rem; }
.footer-links a { font-size:0.82rem; color:var(--text-600); transition:color 0.2s; }
.footer-links a:hover { color:var(--accent); }
.hl { color: var(--accent); }

/* ─── AUTH ────────────────────────────────────────────────── */
.auth-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4rem 1.5rem;
  position: relative;
}
.auth-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 50% at 50% 20%, rgba(14,165,233,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.auth-box {
  width: 100%;
  max-width: 420px;
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--shadow-lg), 0 0 80px rgba(14,165,233,0.06);
}
.auth-box h1 {
  font-family: var(--font-head);
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-100);
  margin-bottom: 0.3rem;
  letter-spacing: -0.02em;
}
.auth-box .sub { font-size:0.88rem; color:var(--text-500); margin-bottom:1.75rem; }
.auth-switch { text-align:center; margin-top:1.25rem; font-size:0.85rem; color:var(--text-500); }
.auth-switch a { color:var(--accent); font-weight:500; }
.auth-switch a:hover { color:var(--accent-2); }

/* ─── FORM FIELDS ─────────────────────────────────────────── */
.field { margin-bottom: 1rem; }
.field label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-400);
  margin-bottom: 0.4rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  font-family: var(--font-mono);
}
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.9rem;
  color: var(--text-100);
  font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  font-family: var(--font-body);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.input::placeholder, .textarea::placeholder { color: var(--text-600); }
.textarea { resize: vertical; min-height: 90px; }
.select { -webkit-appearance: none; appearance: none; }

/* ─── OVERLAY / DIALOG ────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.7);
  backdrop-filter: blur(6px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.overlay.open { display: flex; }
.dialog {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2rem;
  width: 100%;
  max-width: 520px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  position: relative;
}
.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
}
.dialog-head h2 {
  font-family: var(--font-head);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-100);
  letter-spacing: -0.01em;
}
.dialog-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--bg-3);
  color: var(--text-400);
  font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, color 0.2s;
  cursor: pointer;
  border: none;
}
.dialog-close:hover { background: var(--red); color: #fff; }

/* ─── CHECKOUT MODAL ──────────────────────────────────────── */
.checkout-steps {
  display: flex;
  gap: 0;
  margin-bottom: 1.75rem;
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 4px;
}
.checkout-step {
  flex: 1;
  text-align: center;
  padding: 0.5rem;
  border-radius: calc(var(--r) - 2px);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-500);
  transition: all 0.2s;
  font-family: var(--font-mono);
}
.checkout-step.active { background: var(--accent); color: #fff; }
.checkout-step.done { color: var(--accent); }

.payment-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; margin-top: 0.5rem; }
.pay-method {
  border: 2px solid var(--border);
  border-radius: var(--r);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  background: var(--bg-2);
}
.pay-method:hover { border-color: var(--accent); background: var(--accent-dim); }
.pay-method.selected { border-color: var(--accent); background: var(--accent-dim); box-shadow: 0 0 0 1px var(--accent); }
.pay-method .pay-icon { font-size: 1.6rem; }
.pay-method .pay-name { font-size: 0.82rem; font-weight: 600; color: var(--text-200); }
.pay-method .pay-desc { font-size: 0.72rem; color: var(--text-500); text-align: center; }

.order-summary {
  background: var(--bg-2);
  border-radius: var(--r);
  padding: 1rem;
  margin: 1rem 0;
}
.order-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  padding: 0.3rem 0;
  color: var(--text-400);
}
.order-summary-row.total {
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  color: var(--text-100);
  font-weight: 700;
  font-family: var(--font-head);
  font-size: 1rem;
}

/* ─── IMAGE UPLOAD ────────────────────────────────────────── */
.img-drop {
  border: 2px dashed var(--border);
  border-radius: var(--r);
  aspect-ratio: 16/9;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s, background 0.2s;
  background: var(--bg-2);
  position: relative;
}
.img-drop:hover, .img-drop.has-img { border-color: var(--accent); }
.img-drop img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; }

/* ─── CART ────────────────────────────────────────────────── */
.cart-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  padding: 1.25rem;
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  margin-bottom: 0.75rem;
  transition: border-color 0.2s;
}
.cart-row:hover { border-color: var(--border); }
.cart-thumb {
  width: 80px; height: 80px;
  border-radius: var(--r-sm);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg-2);
}
.cart-info { flex: 1; }
.cart-info h4 { font-family:var(--font-head); font-size:0.95rem; color:var(--text-100); font-weight:600; margin-bottom:0.2rem; }
.cart-info p { font-size:0.82rem; color:var(--text-500); }
.qty-ctrl {
  display: flex; align-items: center; gap: 0;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  overflow: hidden;
}
.qty-ctrl button {
  width: 32px; height: 32px;
  font-size: 1rem;
  color: var(--text-400);
  transition: background 0.2s, color 0.2s;
  background: none;
  border: none;
  cursor: pointer;
}
.qty-ctrl button:hover { background: var(--accent); color: #fff; }
.qty-ctrl span { padding: 0 0.75rem; font-family:var(--font-mono); font-size:0.88rem; color:var(--text-200); min-width: 36px; text-align:center; }
.cart-price { font-family:var(--font-head); font-size:1.1rem; font-weight:700; color:var(--text-100); min-width:80px; text-align:right; }

.cart-total-box {
  background: var(--bg-1);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-top: 1rem;
}
.cart-total-row {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--font-head); font-size: 1.3rem; font-weight: 800; color: var(--text-100);
}
.mt-3 { margin-top: 1rem; }

/* ─── ORDERS ──────────────────────────────────────────────── */
.order-card {
  background: var(--bg-1);
  border: 1px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  margin-bottom: 1rem;
  transition: border-color 0.2s;
}
.order-card:hover { border-color: var(--border); }
.flex-between { display:flex; align-items:center; justify-content:space-between; }
.mb-2 { margin-bottom: 0.5rem; }

/* ─── TAGS ────────────────────────────────────────────────── */
.tag {
  display: inline-block;
  padding: 0.2rem 0.65rem;
  border-radius: 100px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tag-green  { background: rgba(34,197,94,0.12);  color: var(--green);  border: 1px solid rgba(34,197,94,0.2); }
.tag-red    { background: rgba(239,68,68,0.12);   color: var(--red);    border: 1px solid rgba(239,68,68,0.2); }
.tag-blue   { background: rgba(14,165,233,0.12);  color: var(--accent); border: 1px solid var(--border); }
.tag-orange { background: rgba(249,115,22,0.12);  color: var(--orange); border: 1px solid rgba(249,115,22,0.2); }

/* ─── ADMIN ───────────────────────────────────────────────── */
.admin-shell { display:flex; flex:1; min-height:0; }
.admin-side {
  width: 220px;
  flex-shrink: 0;
  background: var(--bg-1);
  border-right: 1px solid var(--border);
  padding: 1.5rem 0;
  display: flex;
  flex-direction: column;
}
.admin-side-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--text-600);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 0 1.25rem 1rem;
}
.admin-link {
  padding: 0.65rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-400);
  cursor: pointer;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  border-left: 2px solid transparent;
  display: flex; align-items: center; gap: 0.6rem;
}
.admin-link:hover { color: var(--text-100); background: var(--accent-dim); }
.admin-link.on { color: var(--accent); border-left-color: var(--accent); background: var(--accent-dim); }
.admin-main { flex:1; padding: 2rem; overflow-y: auto; }
.admin-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.5rem;
}
.admin-top h2 {
  font-family: var(--font-head); font-size:1.4rem; font-weight:700;
  color: var(--text-100); letter-spacing:-0.02em;
}

/* ─── TABLE ───────────────────────────────────────────────── */
.tbl-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--border); }
.tbl { width:100%; border-collapse:collapse; }
.tbl thead tr { background: var(--bg-2); }
.tbl th {
  padding: 0.75rem 1rem; text-align:left;
  font-family:var(--font-mono); font-size:0.7rem; font-weight:600;
  color:var(--text-500); letter-spacing:0.08em; text-transform:uppercase;
  border-bottom: 1px solid var(--border);
}
.tbl td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border-2);
  font-size: 0.88rem; color: var(--text-200);
  vertical-align: middle;
}
.tbl tr:last-child td { border-bottom: none; }
.tbl tbody tr { transition: background 0.15s; }
.tbl tbody tr:hover { background: var(--accent-dim); }
.tbl-thumb { width:40px; height:40px; border-radius:var(--r-sm); object-fit:cover; background:var(--bg-2); }

/* ─── TOAST ───────────────────────────────────────────────── */
.toast-wrap {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  z-index: 999; display: flex; flex-direction: column; gap: 0.5rem;
}
.toast {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 0.75rem 1.25rem;
  font-size: 0.88rem;
  color: var(--text-100);
  box-shadow: var(--shadow-lg);
  animation: slideIn 0.3s ease;
  max-width: 320px;
  backdrop-filter: blur(12px);
}
.toast.success { border-color: rgba(34,197,94,0.3); background: rgba(34,197,94,0.1); color: var(--green); }
.toast.error   { border-color: rgba(239,68,68,0.3);  background: rgba(239,68,68,0.1);  color: var(--red);   }
@keyframes slideIn { from{transform:translateX(100%);opacity:0;} to{transform:translateX(0);opacity:1;} }

/* ─── MISC UTILS ──────────────────────────────────────────── */
.text-center { text-align:center; }

/* ─── HAMBURGER ───────────────────────────────────────────── */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  padding: 6px;
  border-radius: var(--r-sm);
  cursor: pointer;
  background: none;
  border: none;
  flex-shrink: 0;
  transition: background 0.2s;
}
.hamburger:hover { background: var(--accent-dim); }
.hamburger span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text-400);
  transition: all 0.3s ease;
  transform-origin: center;
}
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed;
  top: 68px;
  left: 0; right: 0;
  background: rgba(5,8,16,0.97);
  backdrop-filter: blur(24px);
  border-bottom: 1px solid var(--border);
  z-index: 99;
  flex-direction: column;
  padding: 0.75rem 1rem 1.25rem;
  gap: 0.25rem;
  animation: menuSlide 0.2s ease;
}
.mobile-menu.open { display: flex; }
@keyframes menuSlide { from{opacity:0;transform:translateY(-8px);} to{opacity:1;transform:translateY(0);} }
.mobile-menu .nav-link {
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  border-radius: var(--r-sm);
  display: block;
}
.mobile-menu .nav-cta {
  margin-top: 0.5rem;
  display: block;
  text-align: center;
  padding: 0.75rem 1rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .navbar-inner { padding: 0 1rem; }
  .navbar-links { display: none; }
  .hamburger { display: flex; }

  .hero { padding: 3rem 1rem 2.5rem; min-height: 420px; }
  .hero-content h1 { font-size: 2.4rem; }
  .container { padding: 2rem 1rem 3rem; }
  .products { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
  .admin-shell { flex-direction: column; }
  .admin-side { width: 100%; border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; flex-wrap: wrap; padding: 0.75rem; }
  .admin-link { border-left: none; border-bottom: 2px solid transparent; padding: 0.5rem 0.85rem; }
  .admin-link.on { border-left: none; border-bottom-color: var(--accent); }
  .admin-main { padding: 1.25rem; }
  .cart-row { flex-wrap: wrap; }
  .stats-inner { gap: 1.5rem; }
  .payment-methods { grid-template-columns: 1fr 1fr; }
  .footer-inner { flex-direction: column; align-items: center; text-align: center; }
}