/* ====== Grundinställningar ====== */
* { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --svart: #0d0d10;
  --svart2: #16161b;   /* kort & sektioner */
  --svart3: #1f1f26;   /* kanter/inputs */
  --guld: #e3b53a;
  --guld-ljus: #ffe9a3;
  --silver: #d7d7de;
  --text: #eceaf2;
  --gra: #9b97a8;
  --rea: #e2456f;
}

body {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: var(--text);
  background: var(--svart);
  line-height: 1.6;
}

/* Guld-gradient som återanvänds */
.btn,
.add-btn,
.checkout-btn,
.search-btn {
  background: linear-gradient(135deg, var(--guld-ljus), var(--guld));
  color: #1a1407;
}

/* ====== Svart topplist ====== */
.topbar {
  background: #000;
  border-bottom: 1px solid #2a2412;
  font-size: 0.85rem;
}
.topbar-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0.5rem 1.5rem;
  display: flex;
  gap: 1.5rem;
  justify-content: flex-end;
}
.topbar a { color: var(--silver); text-decoration: none; opacity: 0.85; }
.topbar a:hover { color: var(--guld-ljus); opacity: 1; }

/* ====== Header ====== */
.site-header {
  background: #0a0a0d;
  border-bottom: 2px solid var(--guld);
}
.header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.logo { height: 66px; width: auto; flex-shrink: 0; mix-blend-mode: screen; }

.search {
  flex-grow: 1;
  display: flex;
  background: var(--svart3);
  border: 1px solid #34343f;
  border-radius: 999px;
  overflow: hidden;
  max-width: 520px;
}
.search input {
  flex-grow: 1;
  border: none;
  background: transparent;
  padding: 0.7rem 1.2rem;
  font-size: 1rem;
  outline: none;
  color: var(--text);
}
.search input::placeholder { color: #7c7890; }
.search-btn {
  border: none;
  font-size: 1.1rem;
  padding: 0 1.3rem;
  cursor: pointer;
}
.search-btn:hover { filter: brightness(1.08); }

.header-icons { display: flex; align-items: center; gap: 0.75rem; flex-shrink: 0; }
.icon-btn, .cart-btn {
  position: relative;
  background: transparent;
  border: 1px solid var(--guld);
  color: var(--guld-ljus);
  font-size: 1.2rem;
  width: 46px; height: 46px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none;
  transition: background 0.15s ease;
}
.icon-btn:hover, .cart-btn:hover { background: rgba(227,181,58,0.15); }
.icon-btn.active { background: var(--guld); color: #1a1407; border-color: var(--guld); }
.cart-count {
  position: absolute;
  top: -4px; right: -4px;
  min-width: 22px; height: 22px; line-height: 22px;
  text-align: center;
  background: var(--guld);
  color: #1a1407;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 800;
}

/* ====== Kategori-meny ====== */
.catnav {
  background: #000;
  display: flex; justify-content: center; flex-wrap: wrap;
  gap: 0.5rem 1.75rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid #1c1c22;
}
.catnav a {
  color: var(--silver);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.catnav a:hover { color: var(--guld-ljus); }
.catnav a.active { color: var(--guld); border-bottom: 2px solid var(--guld); padding-bottom: 2px; }

/* ====== Hero ====== */
.hero2 {
  background: radial-gradient(circle at 50% 0%, #1b160c, var(--svart) 65%);
  text-align: center;
}
.hero2-inner {
  max-width: 720px;
  margin: 0 auto;
  padding: 3rem 1.5rem 3.5rem;
}
.hero-logo {
  width: 300px;
  max-width: 80%;
  height: auto;
  margin-bottom: 1.5rem;
  mix-blend-mode: screen;
}
.hero2 h1 { font-size: 2.3rem; line-height: 1.2; margin-bottom: 1rem; color: var(--silver); }
.hero2 h1 span { color: var(--guld); }
.hero2 p { color: var(--gra); font-size: 1.15rem; margin-bottom: 1.75rem; }

/* ====== Knappar ====== */
.btn {
  display: inline-block;
  font-weight: 800;
  text-decoration: none;
  padding: 0.85rem 1.8rem;
  border-radius: 999px;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  box-shadow: 0 6px 18px rgba(227,181,58,0.25);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(227,181,58,0.4); }
.btn-lg { font-size: 1.1rem; padding: 1rem 2.4rem; }

/* ====== Trygghets-ikoner ====== */
.usps {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}
.usp {
  background: var(--svart2);
  border: 1px solid #26262e;
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
}
.usp-icon {
  font-size: 1.6rem;
  width: 54px; height: 54px;
  margin: 0 auto 0.6rem;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--guld-ljus), var(--guld));
  border-radius: 12px;
}
.usp strong { display: block; color: var(--text); }
.usp span { color: var(--gra); font-size: 0.85rem; }

/* ====== Sektioner ====== */
.section { max-width: 1100px; margin: 0 auto; padding: 3rem 1.5rem; }
.section-alt { background: var(--svart2); border: 1px solid #24242c; border-radius: 24px; margin: 1.5rem auto; }
.section-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 2rem;
  color: var(--silver);
}
.section-title::after {
  content: "";
  display: block;
  width: 60px; height: 3px;
  margin: 0.6rem auto 0;
  background: var(--guld);
  border-radius: 2px;
}

/* ====== Produktrutnät ====== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
}

.no-products {
  text-align: center;
  color: var(--gra);
  padding: 2rem 1rem;
  font-size: 1.05rem;
}
.card {
  position: relative;
  background: var(--svart2);
  border: 1px solid #2a2a33;
  border-radius: 16px;
  padding: 1.25rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--guld);
  box-shadow: 0 10px 26px rgba(227,181,58,0.18);
}
.sale-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: var(--rea);
  color: #fff;
  font-weight: 800;
  font-size: 0.8rem;
  padding: 0.2rem 0.55rem;
  border-radius: 8px;
}
.card-img {
  font-size: 4rem;
  text-align: center;
  padding: 1.25rem 0;
  background: #0f0f13;
  border: 1px solid #232329;
  border-radius: 12px;
  margin-bottom: 1rem;
}

/* Produktkort med riktigt foto */
.card-img.photo {
  padding: 0;
  background: #0f0f13;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: flex;
  cursor: zoom-in;
}
.card-img.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.card:hover .card-img.photo img { transform: scale(1.07); }

.new-badge {
  position: absolute;
  top: 12px; left: 12px;
  background: linear-gradient(135deg, var(--guld-ljus), var(--guld));
  color: #1a1407;
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.5px;
  padding: 0.2rem 0.6rem;
  border-radius: 8px;
  z-index: 2;
}
.card h3 { font-size: 1.05rem; margin-bottom: 1rem; flex-grow: 1; color: var(--text); }

.card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.price { font-weight: 800; font-size: 1.1rem; color: var(--guld-ljus); }
.price s { color: #6f6b80; font-weight: 600; font-size: 0.9rem; }
.sale-price { color: var(--rea); }

.add-btn {
  border: none;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.5px;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.add-btn:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(227,181,58,0.4); }

/* ====== "Så funkar det"-steg ====== */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.25rem;
}
.step {
  background: #101015;
  border: 1px solid #26262e;
  border-radius: 16px;
  padding: 1.5rem 1rem;
  text-align: center;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; margin-bottom: 0.75rem;
  background: linear-gradient(135deg, var(--guld-ljus), var(--guld));
  color: #1a1407; font-weight: 800; border-radius: 50%;
}
.step p { color: var(--gra); font-size: 0.95rem; }
.step strong { color: var(--text); }

/* ====== Kontakt ====== */
.kontakt {
  text-align: center;
  font-size: 1.1rem;
}
.kontakt p { margin: 0.4rem 0; color: var(--text); }
.kontakt-namn { font-weight: 800; font-size: 1.25rem; color: var(--silver); }
.kontakt a { color: var(--guld-ljus); text-decoration: none; }
.kontakt a:hover { text-decoration: underline; }

/* ====== Fot ====== */
.footer {
  text-align: center;
  padding: 2.5rem 1.5rem;
  margin-top: 1.5rem;
  background: #000;
  border-top: 2px solid var(--guld);
  color: var(--gra);
  font-size: 0.9rem;
}
.footer p { margin: 0.3rem 0; }
.footer-tiktok { color: var(--guld-ljus); text-decoration: none; font-weight: 700; }
.footer-tiktok:hover { text-decoration: underline; }

/* ====== Varukorgspanel ====== */
.cart-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.65);
  opacity: 0; visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 40;
}
.cart-overlay.show { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0;
  width: 370px; max-width: 90vw; height: 100%;
  background: var(--svart);
  border-left: 1px solid #2a2a33;
  box-shadow: -8px 0 30px rgba(0,0,0,0.5);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  z-index: 50;
  display: flex; flex-direction: column;
}
.cart-drawer.open { transform: translateX(0); }

.cart-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  background: #000;
  border-bottom: 2px solid var(--guld);
  color: var(--guld-ljus);
}
.cart-head h2 { font-size: 1.2rem; }
.cart-close { background: none; border: none; color: var(--silver); font-size: 1.3rem; cursor: pointer; line-height: 1; }

.cart-items { flex-grow: 1; overflow-y: auto; padding: 1rem 1.5rem; }
.cart-empty { color: var(--gra); text-align: center; margin-top: 2rem; }

.cart-item {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.85rem 0; border-bottom: 1px solid #24242c;
}
.cart-item-info { flex-grow: 1; }
.cart-item-info strong { display: block; color: var(--text); }
.cart-item-info span { color: var(--gra); font-size: 0.85rem; }
.qty { display: flex; align-items: center; gap: 0.5rem; }
.qty-btn {
  width: 28px; height: 28px;
  border: 1px solid var(--guld); background: transparent; color: var(--guld-ljus);
  border-radius: 50%; font-weight: 700; cursor: pointer; line-height: 1;
}
.qty-btn:hover { background: var(--guld); color: #1a1407; }
.qty-num { min-width: 18px; text-align: center; font-weight: 700; }
.cart-item-sum { font-weight: 700; min-width: 60px; text-align: right; color: var(--guld-ljus); }

.cart-foot { padding: 1.25rem 1.5rem; border-top: 1px solid #24242c; background: #0a0a0d; }
.cart-total-row { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; margin-bottom: 1rem; }
.checkout-btn { width: 100%; border: none; cursor: pointer; text-align: center; font-weight: 800; }
.cart-note { font-size: 0.8rem; color: var(--gra); margin-top: 0.85rem; text-align: center; }
.cart-shipping { text-align: center; font-size: 0.85rem; font-weight: 700; margin: 0 0 0.85rem; color: var(--guld-ljus); }
.cart-shipping.gratis { color: #5fcf80; }

.cart-form { display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 0.85rem; }
.cart-form input, .cart-form textarea {
  background: var(--svart3);
  border: 1px solid #34343f;
  color: var(--text);
  border-radius: 8px;
  padding: 0.55rem 0.7rem;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}
.cart-form input::placeholder, .cart-form textarea::placeholder { color: #7c7890; }
.cart-status { font-size: 0.85rem; text-align: center; margin-top: 0.6rem; }
.cart-status.ok { color: #5fcf80; font-weight: 700; }
.cart-status.fel { color: var(--rea); font-weight: 700; }

/* ====== Stor bild (lightbox) ====== */
.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease;
  z-index: 60;
  cursor: zoom-out;
}
.lightbox.show { opacity: 1; visibility: visible; }

.lightbox-content { max-width: 92vw; max-height: 92vh; text-align: center; }
.lightbox-content img {
  max-width: 92vw;
  max-height: 80vh;
  border-radius: 16px;
  border: 1px solid #2a2a33;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.7);
}
.lightbox-content figcaption {
  color: var(--guld-ljus);
  margin-top: 1rem;
  font-size: 1.25rem;
  font-weight: 700;
}
.lightbox-close {
  position: absolute;
  top: 1.2rem;
  right: 1.6rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

/* ====== Admin-läge (bara för Björn) ====== */
.admin-link {
  margin-top: 1rem;
  background: none;
  border: 1px solid #2a2a33;
  color: #6f6b80;
  font-size: 0.8rem;
  padding: 0.3rem 0.8rem;
  border-radius: 999px;
  cursor: pointer;
}
.admin-link:hover { color: var(--guld-ljus); border-color: var(--guld); }

.admin-bar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 70;
  background: var(--guld);
  color: #1a1407;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
}
.admin-bar button {
  background: #1a1407;
  color: var(--guld-ljus);
  border: none;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

/* Admin-knappar på varje produktkort (syns bara i admin-läge) */
.admin-controls { display: none; gap: 0.4rem; margin-top: 0.7rem; }
body.admin-on .admin-controls { display: flex; }
.adm-btn {
  flex: 1;
  background: #1f1f26;
  border: 1px solid var(--guld);
  color: var(--guld-ljus);
  border-radius: 8px;
  padding: 0.4rem 0.2rem;
  font-size: 0.75rem;
  font-weight: 700;
  cursor: pointer;
}
.adm-btn:hover { background: #2a2a33; }
.adm-btn.active { background: var(--guld); color: #1a1407; }

/* ====== Mobil ====== */
@media (max-width: 640px) {
  .header-inner { flex-wrap: wrap; }
  .search { order: 3; max-width: 100%; width: 100%; }
  .logo { height: 52px; }
  .hero2 h1 { font-size: 1.8rem; }
  .topbar-inner { justify-content: center; gap: 1rem; }
}
