:root {
  --beige-lightest: #faf6f0;
  --beige-light: #f5efe6;
  --beige: #e8dfd3;
  --beige-dark: #d4c5b0;
  --brown-light: #8b6f47;
  --brown: #5c4033;
  --brown-dark: #3d2b1f;
  --brown-darkest: #2a1d14;
  --gold: #b8943e;
  --gold-light: #d4b05c;
}

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

body {
  font-family: 'Lora', Georgia, serif;
  background-color: var(--beige-lightest);
  color: var(--brown-dark);
  line-height: 1.7;
}

h1, h2, h3, h4 {
  font-family: 'Cinzel', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

html { scroll-behavior: smooth; }

/* ── Norse knotwork border pattern (SVG) ── */
.norse-border {
  width: 100%;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='24' viewBox='0 0 120 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12 C10 4, 20 4, 30 12 S50 20, 60 12 S80 4, 90 12 S110 20, 120 12' stroke='%238b6f47' stroke-width='2' fill='none'/%3E%3Cpath d='M0 12 C10 20, 20 20, 30 12 S50 4, 60 12 S80 20, 90 12 S110 4, 120 12' stroke='%238b6f47' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 24px;
  opacity: 0.6;
}

.norse-border-gold {
  width: 100%;
  height: 24px;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='24' viewBox='0 0 120 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M0 12 C10 4, 20 4, 30 12 S50 20, 60 12 S80 4, 90 12 S110 20, 120 12' stroke='%23b8943e' stroke-width='2' fill='none'/%3E%3Cpath d='M0 12 C10 20, 20 20, 30 12 S50 4, 60 12 S80 20, 90 12 S110 4, 120 12' stroke='%23b8943e' stroke-width='2' fill='none'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
  background-size: 120px 24px;
  opacity: 0.5;
}

/* ── Runic divider ── */
.rune-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 40px 0;
  color: var(--brown-light);
  opacity: 0.5;
  font-size: 14px;
  letter-spacing: 8px;
}
.rune-divider::before,
.rune-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: linear-gradient(to right, transparent, var(--brown-light), transparent);
}

/* ── Navigation ── */
nav {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 246, 240, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--beige-dark);
  z-index: 100;
  padding: 0 20px;
}
nav .nav-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
nav .nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--brown-dark);
}
nav .nav-logo img {
  height: 45px;
  width: 45px;
}
nav .nav-logo span {
  font-family: 'Cinzel', serif;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: 0.1em;
}
nav ul {
  list-style: none;
  display: flex;
  gap: 32px;
}
nav a {
  text-decoration: none;
  color: var(--brown);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0.03em;
  transition: color 0.2s;
}
nav a:hover { color: var(--gold); }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--brown-dark); margin: 5px 0; transition: 0.3s; }

@media (max-width: 768px) {
  .nav-toggle { display: block; }
  nav ul {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--beige-lightest);
    flex-direction: column;
    padding: 20px;
    gap: 16px;
    border-bottom: 1px solid var(--beige-dark);
  }
  nav ul.open { display: flex; }
}

/* ── General section layout ── */
section {
  padding: 80px 20px;
}
.container {
  max-width: 1100px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: clamp(26px, 4vw, 38px);
  color: var(--brown-darkest);
  margin-bottom: 12px;
}
.section-subtitle {
  text-align: center;
  font-size: 16px;
  color: var(--brown-light);
  margin-bottom: 48px;
  font-style: italic;
}

/* ── Footer ── */
footer {
  background: var(--brown-darkest);
  color: var(--beige);
  text-align: center;
  padding: 40px 20px;
}
footer img { width: 60px; height: 60px; margin-bottom: 16px; filter: brightness(1.8) contrast(0.8); }
footer p { font-size: 14px; color: var(--beige-dark); margin-bottom: 4px; }
footer .footer-tagline {
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.15em;
  color: var(--gold);
  margin-top: 12px;
}

/* ── Buttons ── */
.btn {
  display: inline-block;
  padding: 14px 40px;
  background: var(--brown);
  color: var(--beige-lightest);
  text-decoration: none;
  font-family: 'Cinzel', serif;
  font-size: 15px;
  letter-spacing: 0.12em;
  border: 2px solid var(--brown);
  transition: all 0.3s;
  cursor: pointer;
}
.btn:hover {
  background: transparent;
  color: var(--brown);
}
.btn-gold {
  background: var(--gold);
  border-color: var(--gold);
  color: var(--brown-darkest);
}
.btn-gold:hover {
  background: transparent;
  color: var(--gold);
}

/* ── Product cards (main page) ── */
.produkt-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
}
.produkt-card {
  background: var(--beige-light);
  border: 1px solid var(--beige-dark);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.produkt-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(61, 43, 31, 0.12);
}
.produkt-card.featured {
  grid-column: 1 / -1;
}
.produkt-card img {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
  border-bottom: 1px solid var(--beige-dark);
}
.produkt-card.featured img {
  height: 440px;
}
.produkt-body {
  padding: 24px;
}
.produkt-body h3 {
  font-size: 20px;
  color: var(--brown-dark);
  margin-bottom: 8px;
}
.produkt-body .badge {
  display: inline-block;
  background: var(--gold);
  color: var(--brown-darkest);
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 3px 10px;
  margin-bottom: 10px;
}
.produkt-body p {
  font-size: 15px;
  color: var(--brown);
  line-height: 1.6;
}
.produkt-body .produkt-link {
  display: inline-block;
  margin-top: 12px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  color: var(--gold);
  letter-spacing: 0.08em;
  text-decoration: none;
  border-bottom: 1px solid var(--gold);
  padding-bottom: 2px;
  transition: color 0.2s;
}
.produkt-body .produkt-link:hover {
  color: var(--brown);
  border-color: var(--brown);
}

@media (max-width: 768px) {
  .produkt-grid { grid-template-columns: 1fr; }
  .produkt-card img { height: 260px; }
  .produkt-card.featured img { height: 300px; }
}

/* ── Product detail page ── */
.product-hero {
  padding-top: 90px;
  padding-bottom: 0;
}
.product-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: var(--brown-light);
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s;
}
.product-back:hover { color: var(--gold); }

.product-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 48px;
  align-items: start;
}

.gallery-main {
  width: 100%;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid var(--beige-dark);
}
.gallery-main img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  cursor: pointer;
}
.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.gallery-thumbs img {
  width: 72px;
  height: 54px;
  object-fit: cover;
  border: 2px solid transparent;
  cursor: pointer;
  opacity: 0.6;
  transition: all 0.2s;
}
.gallery-thumbs img:hover,
.gallery-thumbs img.active {
  opacity: 1;
  border-color: var(--gold);
}

.product-info h1 {
  font-size: clamp(28px, 4vw, 40px);
  color: var(--brown-darkest);
  margin-bottom: 8px;
}
.product-info .product-tagline {
  font-size: 17px;
  color: var(--gold);
  font-style: italic;
  margin-bottom: 20px;
}
.product-info p {
  font-size: 16px;
  color: var(--brown);
  margin-bottom: 16px;
}

.product-features {
  list-style: none;
  margin: 24px 0;
  padding: 20px;
  background: var(--beige-light);
  border: 1px solid var(--beige-dark);
}
.product-features li {
  padding: 8px 0;
  font-size: 15px;
  color: var(--brown);
  border-bottom: 1px solid var(--beige-dark);
  padding-left: 24px;
  position: relative;
}
.product-features li:last-child { border-bottom: none; }
.product-features li::before {
  content: '\2726';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.product-cta {
  margin-top: 32px;
  padding: 24px;
  background: var(--brown-darkest);
  text-align: center;
}
.product-cta p {
  color: var(--beige);
  font-size: 15px;
  margin-bottom: 16px;
}
.product-cta .btn {
  border-color: var(--gold);
  background: var(--gold);
  color: var(--brown-darkest);
}
.product-cta .btn:hover {
  background: transparent;
  color: var(--gold);
}

.product-extra {
  padding: 60px 20px;
  background: var(--beige-light);
}
.product-extra h2 {
  text-align: center;
  font-size: 28px;
  margin-bottom: 12px;
}
.product-extra .section-subtitle {
  margin-bottom: 32px;
}
.extra-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  max-width: 1100px;
  margin: 0 auto;
}
.extra-gallery img {
  width: 100%;
  height: 240px;
  object-fit: cover;
  border: 1px solid var(--beige-dark);
  cursor: pointer;
  transition: transform 0.2s;
}
.extra-gallery img:hover {
  transform: scale(1.02);
}

@media (max-width: 768px) {
  .product-layout { grid-template-columns: 1fr; gap: 32px; }
  .gallery-main img { height: 300px; }
  .extra-gallery { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .extra-gallery { grid-template-columns: 1fr; }
}

/* ── Lightbox ── */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.9);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: white;
  font-size: 36px;
  cursor: pointer;
  font-family: sans-serif;
  line-height: 1;
}

/* ── Contact form styles ── */
.kontakt { background: var(--beige-light); }
.kontakt-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
}
.kontakt-info h3 {
  font-size: 22px;
  color: var(--brown-dark);
  margin-bottom: 16px;
}
.kontakt-info p {
  font-size: 15px;
  color: var(--brown);
  margin-bottom: 12px;
}
.kontakt-info a {
  color: var(--brown);
  text-decoration: underline;
  text-decoration-color: var(--gold);
  text-underline-offset: 3px;
}
.kontakt-info a:hover { color: var(--gold); }
.kontakt-detaljer {
  margin-top: 24px;
  padding: 20px;
  background: var(--beige-lightest);
  border: 1px solid var(--beige-dark);
}
.kontakt-detaljer p {
  font-size: 14px;
  margin-bottom: 8px;
}

form { display: flex; flex-direction: column; gap: 16px; }
form label {
  font-size: 14px;
  font-weight: 500;
  color: var(--brown-dark);
  letter-spacing: 0.03em;
}
form input,
form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--beige-dark);
  background: var(--beige-lightest);
  font-family: 'Lora', Georgia, serif;
  font-size: 15px;
  color: var(--brown-dark);
  outline: none;
  transition: border-color 0.2s;
}
form input:focus,
form textarea:focus {
  border-color: var(--brown-light);
}
form textarea { resize: vertical; min-height: 140px; }
form button {
  padding: 14px 32px;
  background: var(--brown);
  color: var(--beige-lightest);
  border: 2px solid var(--brown);
  font-family: 'Cinzel', serif;
  font-size: 14px;
  letter-spacing: 0.1em;
  cursor: pointer;
  transition: all 0.3s;
  align-self: flex-start;
}
form button:hover {
  background: transparent;
  color: var(--brown);
}
form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.form-status {
  padding: 12px 16px;
  font-size: 14px;
  display: none;
}
.form-status.success {
  display: block;
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.form-status.error {
  display: block;
  background: #fce4ec;
  color: #c62828;
  border: 1px solid #ef9a9a;
}

@media (max-width: 768px) {
  .kontakt-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Om Oss ── */
.om-oss { background: var(--beige-light); }
.om-oss-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.om-oss-text p {
  margin-bottom: 16px;
  font-size: 16px;
  color: var(--brown);
}
.om-oss-values {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.value-card {
  background: var(--beige-lightest);
  border: 1px solid var(--beige-dark);
  padding: 24px;
  text-align: center;
}
.value-card .icon { font-size: 32px; margin-bottom: 12px; }
.value-card h4 { font-size: 14px; color: var(--brown-dark); margin-bottom: 6px; letter-spacing: 0.08em; }
.value-card p { font-size: 13px; color: var(--brown-light); }

@media (max-width: 768px) {
  .om-oss-grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ── Hero ── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 100px 20px 60px;
  background:
    radial-gradient(ellipse at 50% 30%, rgba(184, 148, 62, 0.06) 0%, transparent 60%),
    var(--beige-lightest);
}
.hero img.hero-logo {
  width: 200px;
  height: 200px;
  margin-bottom: 32px;
  filter: drop-shadow(0 4px 12px rgba(61, 43, 31, 0.15));
}
.hero h1 {
  font-size: clamp(32px, 5vw, 56px);
  color: var(--brown-darkest);
  margin-bottom: 8px;
}
.hero .subtitle {
  font-size: clamp(16px, 2.5vw, 22px);
  color: var(--brown-light);
  font-style: italic;
  margin-bottom: 32px;
  font-weight: 400;
}
.hero p {
  max-width: 600px;
  font-size: 17px;
  color: var(--brown);
  margin-bottom: 40px;
}

/* ── Norse frame corners ── */
.norse-frame {
  position: relative;
  padding: 40px;
}
.norse-frame::before,
.norse-frame::after {
  content: '';
  position: absolute;
  width: 40px;
  height: 40px;
  border-color: var(--gold);
  opacity: 0.4;
}
.norse-frame::before {
  top: 0; left: 0;
  border-top: 2px solid;
  border-left: 2px solid;
}
.norse-frame::after {
  bottom: 0; right: 0;
  border-bottom: 2px solid;
  border-right: 2px solid;
}

/* ── Accessory card (smaller products) ── */
.accessory-label {
  display: inline-block;
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--brown-light);
  background: var(--beige);
  padding: 2px 8px;
  margin-bottom: 8px;
}

/* ── Pricing ── */
.price-tag {
  font-family: 'Cinzel', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--brown-darkest);
  margin: 12px 0 4px;
}
.price-tag small {
  font-size: 14px;
  font-weight: 400;
  color: var(--brown-light);
}
.price-details {
  font-size: 13px;
  color: var(--brown-light);
  margin-bottom: 4px;
  line-height: 1.5;
}
.price-details .shipping {
  color: var(--brown);
}
.price-details .stock {
  display: inline-block;
  padding: 2px 8px;
  font-size: 12px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.05em;
  margin-top: 4px;
}
.stock-available {
  background: #e8f5e9;
  color: #2e7d32;
  border: 1px solid #a5d6a7;
}
.stock-limited {
  background: #fff8e1;
  color: #f57f17;
  border: 1px solid #ffe082;
}
.price-card-inline {
  margin-top: 8px;
  font-family: 'Cinzel', serif;
  font-size: 16px;
  font-weight: 700;
  color: var(--brown-darkest);
}
.price-card-inline small {
  font-size: 12px;
  font-weight: 400;
  color: var(--brown-light);
}

/* ── Product page price box ── */
.price-box {
  background: var(--beige-light);
  border: 1px solid var(--beige-dark);
  padding: 20px;
  margin: 20px 0;
}
.price-box .price-tag {
  margin-top: 0;
}
.price-box table {
  width: 100%;
  margin-top: 12px;
  border-collapse: collapse;
}
.price-box td {
  padding: 6px 0;
  font-size: 14px;
  color: var(--brown);
  border-bottom: 1px solid var(--beige-dark);
}
.price-box td:first-child {
  font-weight: 600;
  width: 140px;
}
.price-box tr:last-child td {
  border-bottom: none;
}
.demo-price {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 2px solid var(--gold);
}
.demo-price .price-tag {
  font-size: 20px;
  color: var(--gold);
}
