:root {
  --bg: #07121a;
  --panel: #101d2a;
  --panel-2: #142639;
  --text: #f5f7fa;
  --muted: #9db0c5;
  --accent: #2ed3b7;
  --accent-2: #5b7cff;
  --border: rgba(255,255,255,0.12);
  --shadow: 0 20px 45px rgba(0,0,0,0.28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top left, #1e3752 0%, var(--bg) 45%, #050a0f 100%);
  color: var(--text);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.container {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
}

header {
  padding: 2rem 0 1rem;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.brand-mark {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 800;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  color: var(--muted);
}

.hero {
  padding: 4.5rem 0 3rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 2rem;
  align-items: center;
}

.hero-card, .panel {
  background: rgba(16,29,42,0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  border-radius: 24px;
}

.hero-card {
  padding: 2rem;
}

h1, h2, h3 { line-height: 1.15; margin: 0 0 0.75rem; }
h1 { font-size: clamp(2rem, 4vw, 3.2rem); }
.eyebrow {
  display: inline-block;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(46,211,183,0.16);
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lead { font-size: 1.05rem; color: var(--muted); margin-bottom: 1.4rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.85rem 1.15rem;
  border-radius: 999px;
  font-weight: 700;
  border: 1px solid transparent;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: white;
}

.btn-secondary {
  border-color: var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

.hero-side {
  padding: 2rem;
  min-height: 320px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1rem;
}

.social-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.social-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,0.04);
}

section { padding: 1.5rem 0 3.5rem; }
.section-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title h2 { font-size: 1.45rem; margin: 0; }
.section-title span { color: var(--muted); font-size: 0.95rem; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.product-card {
  overflow: hidden;
  border-radius: 20px;
  background: rgba(12,22,34,0.9);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
}

.product-card img {
  aspect-ratio: 4 / 3;
  object-fit: cover;
  width: 100%;
  background: #0f1c28;
}

.product-body { padding: 1rem 1rem 1.15rem; display: flex; flex-direction: column; gap: 0.6rem; }
.badge {
  display: inline-flex;
  width: fit-content;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: rgba(46,211,183,0.16);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
}
.product-title { font-size: 1.05rem; font-weight: 700; }
.product-price { font-size: 1rem; font-weight: 700; color: var(--accent); }
.product-text { color: var(--muted); font-size: 0.95rem; }
.card-actions { display: flex; gap: 0.6rem; margin-top: auto; }
.card-actions .btn { padding: 0.7rem 0.9rem; font-size: 0.92rem; }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: 1.2rem;
}

.contact-card, .detail-card {
  padding: 1.25rem;
}

.contact-list { display: grid; gap: 0.8rem; margin-top: 1rem; }
.contact-item { padding: 0.9rem 1rem; border-radius: 14px; background: rgba(255,255,255,0.04); }
.contact-item strong { display: block; margin-bottom: 0.2rem; }

.detail-card .gallery {
  display: grid;
  gap: 0.8rem;
}
.detail-card .gallery img {
  border-radius: 14px;
  border: 1px solid var(--border);
  cursor: pointer;
}
.detail-card .gallery .thumbs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.single-product {
  padding: 2rem;
  display: grid;
  gap: 1rem;
}
.single-product .meta { color: var(--muted); }
.single-product .main-image { border-radius: 22px; overflow: hidden; border: 1px solid var(--border); }

.back-link { color: var(--accent); font-weight: 700; }

footer {
  padding: 2rem 0 2.5rem;
  color: var(--muted);
  border-top: 1px solid rgba(255,255,255,0.08);
}

.placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  color: var(--muted);
  background: linear-gradient(135deg, rgba(46,211,183,0.15), rgba(91,124,255,0.12));
  border: 1px dashed rgba(255,255,255,0.2);
}

@media (max-width: 900px) {
  .hero-grid, .contact-grid, .product-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .topbar { flex-direction: column; align-items: flex-start; }
  .hero { padding-top: 2.5rem; }
  .hero-card, .hero-side { padding: 1.2rem; }
  .section-title { flex-direction: column; align-items: flex-start; }
}

/* === Kategori-pills (forside) === */
.category-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 24px;
}

.cat-pill {
  background: white;
  color: #333;
  font-size: 0.82rem;
  font-weight: 600;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .category-nav {
    flex-wrap: wrap;
    justify-content: center;
  }
}

.cat-pill.active,
.cat-pill:hover {
  background: #2d6a2d;
  color: white;
  border-color: #2d6a2d;
}

/* === Admin-panel === */
.admin-wrap {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1rem 3rem;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
}

.admin-nav {
  background: #1a1a2e;
  padding: 0.75rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  align-items: center;
}

.admin-nav a {
  color: #aaa;
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-nav a.active, .admin-nav a:hover { color: white; }
.admin-nav .logout { margin-left: auto; color: #e55 !important; }

.admin-card {
  background: white;
  border: 1px solid #e8e8e8;
  border-radius: 12px;
  padding: 1.25rem;
  margin-top: 1.5rem;
  color: #111;
}

.admin-table { width: 100%; border-collapse: collapse; }
.admin-table th { text-align: left; font-size: 0.75rem; color: #888; padding: 8px 10px; border-bottom: 1px solid #eee; }
.admin-table td { padding: 10px; border-bottom: 1px solid #f5f5f5; vertical-align: middle; font-size: 0.88rem; color: #111; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: #eee; }

.btn-green { background: #2d6a2d; color: white; border: none; padding: 7px 16px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; font-weight: 600; }
.btn-red { background: #e55; color: white; border: none; padding: 5px 11px; border-radius: 5px; cursor: pointer; font-size: 0.8rem; }
.btn-gray { background: #f0f0f0; color: #333; border: 1px solid #ddd; padding: 7px 14px; border-radius: 6px; cursor: pointer; font-size: 0.85rem; }
.btn-copy { background: #f0f7f0; color: #2d6a2d; border: 1px solid #c8e6c8; padding: 5px 10px; border-radius: 5px; cursor: pointer; font-size: 0.78rem; font-weight: 600; }

.form-group { display: grid; gap: 4px; margin-bottom: 1rem; }
.form-group label { font-size: 0.8rem; font-weight: 600; color: #555; }
.form-group input, .form-group textarea, .form-group select {
  border: 1px solid #ddd; border-radius: 6px; padding: 8px 10px; font-size: 0.88rem; width: 100%; box-sizing: border-box;
}
.form-group textarea { min-height: 100px; resize: vertical; }

.pill-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 999px; border: 1px solid #ddd;
  cursor: pointer; font-size: 0.82rem; font-weight: 600; color: #555;
  background: white; user-select: none;
}
.pill-toggle.selected { background: #2d6a2d; color: white; border-color: #2d6a2d; }

.thumb-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.thumb-item { position: relative; width: 80px; height: 80px; }
.thumb-item img { width: 80px; height: 80px; object-fit: cover; border-radius: 8px; border: 2px solid #ddd; }
.thumb-item.primary img { border-color: #2d6a2d; }
.thumb-item .del-img {
  position: absolute; top: -6px; right: -6px;
  background: #e55; color: white; border: none; border-radius: 50%;
  width: 20px; height: 20px; font-size: 0.75rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 1rem; font-size: 0.88rem; font-weight: 600; }
.flash.ok { background: #e8f5e9; color: #2d6a2d; }
.flash.err { background: #fdecea; color: #c62828; }

/* Badge farver */
.badge-gold   { background: #8B6914; color: white; }
.badge-green  { background: #2d6a2d; color: white; }
.badge-red    { background: #c62828; color: white; }
.badge-blue   { background: #1565c0; color: white; }
.badge-orange { background: #e65100; color: white; }
.badge-purple { background: #6a1b9a; color: white; }
.badge-gray   { background: #555555; color: white; }
.badge-black  { background: #111111; color: white; }
