@font-face {
  font-family: Inter;
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-400.woff2") format("woff2");
}
@font-face {
  font-family: Inter;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/inter-700.woff2") format("woff2");
}
@font-face {
  font-family: Poppins;
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("../fonts/poppins-700.woff2") format("woff2");
}

:root,
html[data-theme="fersken"] {
  --hih-brown: #3a2418;
  --hih-brown-soft: #5c3d2e;
  --hih-accent: #d4895a;
  --hih-accent-soft: #e6b089;
  --hih-accent-deep: #b86c42;
  --hih-cream: #faf4ee;
  --hih-paper: #fff;
  --hih-text: #121212;
  --hih-muted: #6b5a4e;
  --hih-line: #ead9cc;
  --hih-low: #c97d4e;
  --hih-hero-end: #f6e4d2;
  --radius: 8px;
}
html[data-theme="brun"] {
  --hih-accent: #3a2418;
  --hih-accent-soft: #5c3d2e;
  --hih-accent-deep: #2a1810;
  --hih-cream: #f7f3ee;
  --hih-line: #e4d8cc;
  --hih-low: #c45c26;
  --hih-muted: #6b5a4e;
  --hih-hero-end: #efe6dc;
}
html[data-theme="koral"] {
  --hih-accent: #fa6c41;
  --hih-accent-soft: #ff8a66;
  --hih-accent-deep: #e0552e;
  --hih-cream: #fff6f2;
  --hih-line: #f0e0d8;
  --hih-low: #fa6c41;
  --hih-muted: #6b5a4e;
  --hih-hero-end: #ffe8df;
}
html[data-theme="gronn"] {
  --hih-accent: #5c7a42;
  --hih-accent-soft: #8aa36c;
  --hih-accent-deep: #3f562c;
  --hih-cream: #f3f6ee;
  --hih-line: #d7e0cc;
  --hih-low: #6a8a48;
  --hih-muted: #5a6550;
  --hih-hero-end: #e4ecd8;
}
html[data-theme="laer"] {
  --hih-accent: #8b4e24;
  --hih-accent-soft: #b8733d;
  --hih-accent-deep: #6e3c1a;
  --hih-cream: #f6efe6;
  --hih-line: #e4d2c0;
  --hih-low: #a35a28;
  --hih-muted: #6b5344;
  --hih-hero-end: #ead8c4;
}
html[data-theme="gra"] {
  --hih-accent: #5a5754;
  --hih-accent-soft: #7a7672;
  --hih-accent-deep: #3f3c3a;
  --hih-cream: #f3f1ee;
  --hih-line: #ddd9d4;
  --hih-low: #8a6a4a;
  --hih-muted: #6a6662;
  --hih-hero-end: #e6e2dc;
}
html[data-theme="morkerod"] {
  --hih-accent: #722f2b;
  --hih-accent-soft: #9a4a44;
  --hih-accent-deep: #541f1c;
  --hih-cream: #f7f0ee;
  --hih-line: #e6d4d1;
  --hih-low: #8a3a34;
  --hih-muted: #6b534f;
  --hih-hero-end: #ecd8d5;
}
html[data-theme="beige"] {
  --hih-accent: #a89070;
  --hih-accent-soft: #c4b396;
  --hih-accent-deep: #867155;
  --hih-cream: #f6f1e8;
  --hih-line: #e6dccb;
  --hih-low: #b08a58;
  --hih-muted: #6e6558;
  --hih-hero-end: #eee4d2;
}
html[data-theme="skifer"] {
  --hih-accent: #3e5360;
  --hih-accent-soft: #5d7382;
  --hih-accent-deep: #2a3a44;
  --hih-cream: #eef2f4;
  --hih-line: #d5dde2;
  --hih-low: #6a7c4a;
  --hih-muted: #5a656c;
  --hih-hero-end: #dce5ea;
}
html[data-theme="honning"] {
  --hih-accent: #b07a32;
  --hih-accent-soft: #cda05a;
  --hih-accent-deep: #8a5c22;
  --hih-cream: #f8f3e8;
  --hih-line: #e8dcc4;
  --hih-low: #b07a32;
  --hih-muted: #6b5e48;
  --hih-hero-end: #efe2c4;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: Inter, system-ui, sans-serif;
  color: var(--hih-text);
  background: var(--hih-paper);
  line-height: 1.5;
}
a { color: inherit; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: Poppins, Inter, sans-serif; font-weight: 700; letter-spacing: -0.02em; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }
.topbar {
  position: relative;
  background: var(--hih-accent);
  color: #fff;
  font-size: 13px;
  padding: 8px 0 8px 36px;
}
.topbar .wrap { display: flex; justify-content: space-between; gap: 16px; }
.admin-dot {
  position: absolute;
  top: 50%;
  left: 8px;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
  text-decoration: none;
}
.admin-dot:hover { background: rgba(255, 255, 255, 0.55); }
.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 0;
  border-bottom: 1px solid var(--hih-line);
}
.logo img { height: 64px; width: auto; display: block; }
.nav { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; }
.nav a { text-decoration: none; font-weight: 700; font-size: 14px; }
.nav a:hover { color: var(--hih-accent); }
.header-actions { display: flex; gap: 16px; align-items: center; font-size: 14px; }
.header-actions a { text-decoration: none; }
.cart-link { font-weight: 700; color: var(--hih-accent); }

.hero {
  background: linear-gradient(120deg, var(--hih-cream), var(--hih-hero-end));
  padding: 72px 0 80px;
  margin-bottom: 48px;
}
.hero.hero-photo {
  position: relative;
  min-height: 420px;
  display: grid;
  align-items: center;
  overflow: hidden;
  padding: 64px 0;
}
.hero-photo .hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(90deg, rgba(18, 12, 8, 0.58) 0%, rgba(18, 12, 8, 0.18) 62%, rgba(18, 12, 8, 0.05) 100%);
}
.hero-photo .wrap { position: relative; z-index: 2; }
.hero-photo h1, .hero-photo p, .hero-photo .muted { color: #fff; }
.hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 0 0 12px; }
.hero p { color: var(--hih-muted); font-size: 18px; max-width: 520px; }
.hero-photo p { max-width: 480px; }
.hero-slider { position: relative; }
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.is-on { opacity: 1; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-slide.is-contain { background: #f4efe8; }
.hero-slide.is-contain img { object-fit: contain; }
.hero-dots {
  position: absolute;
  z-index: 3;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dots button {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
}
.hero-dots button.is-on { background: #fff; }
.card-crumbs {
  margin: 0;
  font-size: 11px;
  line-height: 1.3;
  color: var(--hih-muted);
}
.card-crumbs a { color: inherit; text-decoration: none; }
.card-crumbs a:hover { color: var(--hih-accent); }
.promo-graphic {
  display: flex;
  justify-content: center;
  background: #fff;
  border: 1px solid var(--hih-line);
  border-radius: var(--radius);
  padding: 16px;
}
.promo-graphic img { max-width: min(520px, 100%); height: auto; display: block; }
.btn {
  display: inline-block;
  background: var(--hih-accent);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 4px;
  padding: 12px 22px;
  font-weight: 700;
  cursor: pointer;
}
.btn:hover { background: var(--hih-accent-deep); }
.btn.light { background: #fff; color: var(--hih-accent); border: 1px solid var(--hih-accent); }
.btn.light:hover { background: var(--hih-cream); }
.btn.small { padding: 8px 14px; font-size: 13px; }

.section { padding: 24px 0 56px; }
.section h2 { font-size: 28px; margin: 0 0 8px; }
.lede { color: var(--hih-muted); margin: 0 0 24px; }

.cats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 16px; }
.cat-family { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cat-family a {
  text-decoration: none;
  padding: 6px 12px;
  border: 1px solid var(--hih-line);
  border-radius: 99px;
  font-size: 14px;
}
.cat-family a.on { background: var(--hih-accent); color: #fff; border-color: var(--hih-accent); }
.shop-cats {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 4px 2px 20px;
  margin: 0 0 8px;
  scrollbar-width: thin;
}
.shop-cat {
  flex: 0 0 96px;
  width: 96px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}
.shop-cat-pic {
  display: grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin: 0 auto 8px;
  border-radius: 18px;
  overflow: hidden;
  background: var(--hih-cream);
  border: 2px solid transparent;
  font-weight: 700;
  color: var(--hih-accent-deep);
}
.shop-cat-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.shop-cat-all { font-size: 13px; }
.shop-cat-name { display: block; font-size: 12px; font-weight: 700; line-height: 1.3; }
.shop-cat.on .shop-cat-pic { border-color: var(--hih-accent); }
.shop-cat:hover .shop-cat-pic { border-color: var(--hih-accent-soft); }
.shop-subs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.shop-subs a {
  text-decoration: none;
  padding: 7px 14px;
  border: 1px solid var(--hih-line);
  border-radius: 99px;
  font-size: 13px;
  background: #fff;
}
.shop-subs a.on { background: var(--hih-accent); color: #fff; border-color: var(--hih-accent); }
.shop-subs a:hover { border-color: var(--hih-accent); }
.cat-card {
  background: var(--hih-cream);
  border-radius: var(--radius);
  padding: 28px 16px;
  text-align: center;
  text-decoration: none;
  font-weight: 700;
}
.cat-card:hover { background: var(--hih-hero-end); color: var(--hih-accent-deep); }
.cat-card-img { padding: 0 0 14px; overflow: hidden; }
.cat-card-img img { width: 100%; height: 140px; object-fit: cover; display: block; }
.cat-card-img span { display: block; padding: 12px 10px 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 20px; }
.card {
  background: #fff;
  border: 1px solid var(--hih-line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card .ph, .card-img, .product-photo {
  height: 180px;
  background: var(--hih-cream);
  border-radius: 6px;
  overflow: hidden;
  display: block;
}
.card-img img, .product-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.product-photo { height: 360px; }
.card h3 { margin: 0; font-size: 16px; }
.card .price { font-weight: 700; color: var(--hih-accent-deep); }
.card h3 a { text-decoration: none; }
.card h3 a:hover { color: var(--hih-accent); }
.card form { margin-top: auto; }
.fav { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.fav-btn {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  font-size: 13px;
  color: var(--hih-accent-deep);
  text-decoration: underline;
  cursor: pointer;
}
.fav-btn.is-on { font-weight: 700; }
.fav-count { font-size: 12px; color: var(--hih-muted); }
.account-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 16px 0 24px;
}
.account-nav a { font-weight: 700; text-decoration: none; }
.account-nav a.on { color: var(--hih-accent-deep); text-decoration: underline; }
.account-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
}

.promo {
  background: var(--hih-accent);
  color: #fff;
  border-radius: var(--radius);
  padding: 36px;
  margin: 16px 0 48px;
}
.promo-photo {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  gap: 24px;
  align-items: center;
  overflow: hidden;
  padding: 0 28px 0 0;
}
.promo-photo img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}
.footer {
  background: var(--hih-cream);
  padding: 48px 0 24px;
  margin-top: 40px;
  font-size: 14px;
}
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 24px; }
.footer a { text-decoration: none; display: block; margin: 6px 0; color: var(--hih-brown-soft); }
.footer a:hover { color: var(--hih-accent); }
.fine { color: var(--hih-muted); font-size: 12px; margin-top: 24px; }

.flash { padding: 12px 16px; border-radius: 6px; margin: 16px 0; }
.flash.ok { background: #e8f3e4; }
.flash.error { background: #f8e4dc; }

.form { display: grid; gap: 12px; max-width: 480px; }
.form.wide { max-width: 720px; }
label { font-size: 13px; font-weight: 700; display: grid; gap: 6px; }
input, textarea, select {
  font: inherit;
  padding: 10px 12px;
  border: 1px solid var(--hih-line);
  border-radius: 4px;
  width: 100%;
}
.note { font-size: 12px; color: var(--hih-muted); font-weight: 400; }
.product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; }
@media (max-width: 720px) {
  .product-detail { grid-template-columns: 1fr; }
  .logo img { height: 48px; }
  .nav { display: none; }
  .promo-photo { grid-template-columns: 1fr; padding: 0 0 24px; }
  .hero.hero-photo { min-height: 320px; }
}

.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hih-line); font-size: 14px; }
.cart-table { margin-bottom: 24px; }
.cart-qty { display: flex; align-items: center; gap: 6px; }
.cart-qty input[type="number"] { width: 64px; text-align: center; padding: 6px 8px; }
.cart-qty .btn { min-width: 36px; padding: 6px 10px; }
.cart-qty-apply {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
.row-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.low { background: #fff1e8; }
.muted { color: var(--hih-muted); }
.searchbar { display: flex; gap: 8px; margin-bottom: 20px; }
.searchbar input { flex: 1; }
.legal-box {
  background: var(--hih-cream);
  border-left: 4px solid var(--hih-accent);
  padding: 14px 16px;
  margin: 16px 0 28px;
  font-size: 14px;
}
.legal-box p { margin: 0 0 8px; }
.legal-box p:last-child { margin-bottom: 0; }

.theme-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; }
.theme-card {
  display: block;
  border: 2px solid var(--hih-line);
  border-radius: var(--radius);
  padding: 0;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
  color: inherit;
  width: 100%;
}
.theme-card.on { border-color: var(--hih-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--hih-accent) 25%, transparent); }
.theme-swatch { height: 88px; border-radius: var(--radius) var(--radius) 0 0; }
.theme-card h3 { margin: 12px 14px 4px; font-size: 18px; }
.theme-card p { margin: 0 14px 14px; font-size: 13px; color: var(--hih-muted); font-weight: 400; }
