/* ============================================================
   ZEWDITU — delt stilark
   Tokens, reset, layout, navigasjon, footer, og gjenbrukbare
   komponenter som brukes på tvers av alle sider.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  --bone:   #E3DDCF;
  --bone-2: #D8D1C0;
  --ink:    #14120E;
  --terra:  #9C4A2A;
  --gold:   #A9842F;
  --mute:   #6B6353;
  --rule:   rgba(20, 18, 14, .22);
}

/* ---------- RESET ---------- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  background: var(--bone);
  color: var(--ink);
  font-family: Inter, -apple-system, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* ---------- LAYOUT ---------- */
.wrap { padding: 0 clamp(16px, 4vw, 56px); }
.rule { height: 1px; background: var(--rule); border: 0; }

/* ---------- NAVIGASJON ---------- */
nav {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 26px clamp(16px, 4vw, 56px) 30px;
  gap: 24px;
  flex-wrap: wrap;
}
.brand {
  font-family: 'Bodoni Moda', serif;
  font-size: 19px;
  letter-spacing: .34em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.navlinks {
  display: flex;
  gap: clamp(14px, 2.6vw, 40px);
  font-size: 11px;
  letter-spacing: .19em;
  text-transform: uppercase;
}
.navlinks a {
  color: var(--ink);
  text-decoration: none;
  padding-bottom: 3px;
  border-bottom: 1px solid transparent;
  transition: border-color .35s;
}
.navlinks a:hover        { border-color: var(--ink); }
.navlinks a[aria-current="page"] { border-color: var(--terra); color: var(--terra); }

/* ---------- HERO (forside) ---------- */
.hero { padding: clamp(30px, 7vh, 80px) 0 0; }
.geez {
  font-family: 'Noto Serif Ethiopic', serif;
  font-weight: 300;
  font-size: clamp(64px, 15vw, 220px);
  line-height: .86;
  letter-spacing: -.01em;
}
.heroline {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 30px;
  flex-wrap: wrap;
  padding: 18px 0 22px;
}
.latin {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(30px, 6.4vw, 92px);
  line-height: .94;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.trans {
  font-size: 11px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
  max-width: 34ch;
  line-height: 2;
}
.trans em { font-style: normal; color: var(--terra); }

/* ---------- INDEKSTABELL ---------- */
.index {
  padding: 26px 0 34px;
  font-size: 11px;
  letter-spacing: .15em;
  text-transform: uppercase;
}
.irow {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.2fr 1fr;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--rule);
}
.irow:first-child { color: var(--mute); border-bottom-color: var(--ink); }
.irow span:last-child { text-align: right; }

/* ---------- BILDER ---------- */
figure { margin: 0; position: relative; }
figure img {
  width: 100%;
  height: clamp(300px, 62vh, 640px);
  object-fit: cover;
  object-position: center 38%;
  display: block;
  filter: saturate(.92);
}
.cap {
  position: absolute;
  left: 0;
  bottom: -26px;
  font-size: 10px;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--mute);
}


/* ---------- KAPITTELSEKSJON ---------- */
.chapters { padding: clamp(80px, 13vh, 160px) 0 0; }
.ch {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 6vw, 90px);
  padding: 38px 0;
  border-top: 1px solid var(--rule);
  align-items: start;
}
.num {
  font-family: 'Bodoni Moda', serif;
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--terra);
  padding-top: 9px;
  white-space: nowrap;
}
.ch h3 {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(26px, 4.4vw, 54px);
  line-height: 1.06;
  letter-spacing: .01em;
  margin-bottom: 14px;
}
.ch h3 .eth {
  font-family: 'Noto Serif Ethiopic', serif;
  font-weight: 300;
  font-size: .62em;
  color: var(--mute);
  margin-left: .4em;
}
.ch p {
  max-width: 60ch;
  font-size: 15px;
  line-height: 1.85;
  color: #3A352C;
}

/* ---------- PRODUKTSEKSJON ---------- */
.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(80px, 13vh, 160px) 0;
  align-items: center;
}
.product img { width: 100%; height: auto; object-fit: cover; }
.product-title {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
}
.price {
  font-family: 'Bodoni Moda', serif;
  font-size: 34px;
  margin-top: 22px;
}
.price-note {
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-top: 6px;
}

/* ---------- SPESIFIKASJONSTABEL ---------- */
.spec { border-top: 1px solid var(--ink); margin-top: 26px; }
.spec div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
  border-bottom: 1px solid var(--rule);
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.spec div span:last-child { color: var(--mute); text-align: right; }

/* ---------- KJØPSKNAPP / SHOPIFY-PLASSHOLDER ---------- */
.buy-wrapper { margin-top: 30px; }

/* Shopify Buy Button limes inn her — erstatter .buy-fallback */
.shopify-buy-btn-container { display: inline-block; }

/* Fallback-knapp vises bare når Shopify ikke er lastet inn */
.buy-fallback {
  display: inline-block;
  padding: 16px 42px;
  background: var(--ink);
  color: var(--bone);
  font-size: 11px;
  letter-spacing: .24em;
  text-transform: uppercase;
  text-decoration: none;
  border: none;
  font-family: Inter, -apple-system, sans-serif;
  cursor: pointer;
  transition: background .35s;
}
.buy-fallback:hover { background: var(--terra); }

/* ---------- INFOSIDER (frakt, angrerett, personvern) ---------- */
.info-title {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(32px, 6vw, 76px);
  line-height: 1.02;
  letter-spacing: .03em;
  padding: clamp(30px, 7vh, 72px) 0 clamp(24px, 4vh, 48px);
}
.info-sections { padding: clamp(40px, 8vh, 100px) 0 0; }
.info-section { padding: 38px 0; border-top: 1px solid var(--rule); }
.info-section:first-child { border-top-color: var(--ink); }
.info-h {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(20px, 3vw, 32px);
  letter-spacing: .02em;
  margin-bottom: 18px;
}
.info-sub {
  font-family: 'Bodoni Moda', serif;
  font-weight: 400;
  font-size: clamp(14px, 1.8vw, 18px);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--mute);
  margin: 28px 0 12px;
}
.info-p {
  max-width: 64ch;
  font-size: 15px;
  line-height: 1.85;
  color: #3A352C;
  margin-bottom: 14px;
}
.info-p a { color: var(--terra); text-decoration: none; }
.info-p a:hover { color: var(--ink); }
.info-address {
  font-style: normal;
  font-size: 15px;
  line-height: 1.85;
  color: #3A352C;
  margin: 14px 0;
}

/* Indekstabell i 2 kolonner */
.index-2col .irow { grid-template-columns: 1fr 1fr; }
.index-2col .irow span:last-child { text-align: left; }

/* ---------- KONTAKTBLOKK (bedrift.html) ---------- */
.contact-block {
  padding: 52px 0 0;
  border-top: 1px solid var(--ink);
  margin-top: clamp(60px, 10vh, 120px);
}
.contact-email {
  display: inline-block;
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(20px, 3.2vw, 36px);
  letter-spacing: .04em;
  color: var(--terra);
  text-decoration: none;
  margin-bottom: 22px;
}
.contact-email:hover { color: var(--ink); }
.contact-body {
  max-width: 58ch;
  font-size: 15px;
  line-height: 1.85;
  color: #3A352C;
  margin-bottom: 28px;
}
.contact-meta {
  font-size: 11px;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--mute);
}

/* ---------- SIDE-CTA ---------- */
.ch-cta {
  padding: 48px 0 0;
  border-top: 1px solid var(--rule);
}
.cta-link {
  font-family: 'Bodoni Moda', serif;
  font-size: clamp(16px, 2.4vw, 22px);
  letter-spacing: .06em;
  color: var(--terra);
  text-decoration: none;
}
.cta-link:hover { color: var(--ink); }

/* ---------- FOOTER ---------- */
footer {
  padding: clamp(60px, 10vh, 120px) 0 40px;
  border-top: 1px solid var(--ink);
  margin-top: clamp(60px, 10vh, 120px);
}
.fgrid {
  display: flex;
  justify-content: space-between;
  gap: 36px;
  flex-wrap: wrap;
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--mute);
  line-height: 2.1;
}
.fgrid a {
  display: block;
  color: var(--mute);
  text-decoration: none;
}
.fgrid a:hover { color: var(--ink); }
.fgeez {
  font-family: 'Noto Serif Ethiopic', serif;
  font-weight: 300;
  font-size: clamp(52px, 13vw, 150px);
  line-height: 1;
  margin-top: 54px;
  color: var(--bone-2);
  user-select: none;
}

/* ---------- RESPONSIVT ---------- */
@media (max-width: 820px) {
  .product { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .irow { grid-template-columns: 1fr 1fr; gap: 8px; }
  .irow span:last-child { text-align: left; }
}
