/* I Medgang og Modgang — shop styles */
:root {
  --green: #2f5d50;
  --green-dark: #234439;
  --rose: #c47a6d;
  --rose-soft: #f7ece8;
  --cream: #faf6f0;
  --ink: #2b2b28;
  --muted: #5a564e;
  --line: #e5ddd2;
}

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

body {
  font-family: Georgia, 'Times New Roman', serif;
  background: var(--cream);
  color: var(--ink);
  line-height: 1.6;
}

.wrap { max-width: 1040px; margin: 0 auto; padding: 0 20px; }

a { color: var(--green); }

:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; border-radius: 2px; }

/* Topbar */
.topbar {
  background: rgba(250, 246, 240, .92);
  backdrop-filter: blur(6px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.topbar__inner { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.logo { font-size: 1.25rem; font-weight: bold; color: var(--green); text-decoration: none; letter-spacing: .02em; }
.logo span { color: var(--rose); font-style: italic; }
.cart-btn {
  font: inherit; background: none; border: 1px solid var(--green);
  color: var(--green); border-radius: 999px; padding: 8px 18px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 8px;
  transition: background .2s, color .2s;
}
.cart-btn:hover { background: var(--green); color: #fff; }
.cart-count {
  display: inline-block; min-width: 22px; text-align: center;
  background: var(--rose); color: #fff; border-radius: 999px; font-size: .85rem; padding: 1px 6px;
}

/* Hero */
.hero { position: relative; text-align: center; padding: 100px 0 84px; overflow: hidden; }
.hero__amp {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -54%);
  font-size: clamp(20rem, 46vw, 34rem);
  font-style: italic; line-height: 1;
  color: rgba(196, 122, 109, .09);
  user-select: none; pointer-events: none;
}
.hero__inner { position: relative; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); color: var(--green-dark); line-height: 1.15; font-weight: normal; }
.hero h1 em { color: var(--rose); font-style: italic; }
.hero__sub { margin: 22px 0 34px; font-size: 1.15rem; color: var(--muted); }

.btn {
  display: inline-block; font: inherit; text-decoration: none; cursor: pointer;
  border: none; border-radius: 999px; padding: 14px 36px; font-size: 1.05rem;
  transition: background .2s, transform .15s;
}
.btn--primary { background: var(--green); color: #fff; }
.btn--primary:hover { background: var(--green-dark); }
.btn--primary:active { transform: scale(.98); }
.btn--full { width: 100%; }
.btn--outline { background: #fff; color: var(--green); border: 1px solid var(--green); }
.btn--outline:hover { background: var(--green); color: #fff; }
.checkout .btn--full + .btn--full { margin-top: 8px; }

/* USP bar */
.usp { background: var(--green); color: #f2ede4; padding: 18px 0; }
.usp__grid { display: flex; gap: 24px; justify-content: space-around; flex-wrap: wrap; }
.usp__item { display: inline-flex; align-items: center; gap: 10px; font-size: .98rem; }
.usp__item svg { width: 21px; height: 21px; color: #a8c5b8; flex: none; }

/* Products */
.section-title { text-align: center; font-size: 2rem; color: var(--green-dark); margin: 70px 0 12px; font-weight: normal; }
.section-title::after {
  content: '&'; display: block; font-style: italic; color: var(--rose);
  font-size: 1.3rem; margin-top: 6px;
}
.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px; margin: 36px 0 80px;
}
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(43, 43, 40, .09); }
.card__imgwrap {
  height: 210px; overflow: hidden;
  background: linear-gradient(120deg, #ecf2ee 50%, var(--rose-soft) 50%);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 18px 26px 0;
}
.card__img {
  max-width: 100%; height: auto; display: block;
  border: 1px solid var(--line); border-bottom: none;
  border-radius: 6px 6px 0 0;
  box-shadow: 0 6px 18px rgba(43, 43, 40, .14);
}
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.card__tag { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--rose); margin-bottom: 6px; }
.card__body h3 { color: var(--green-dark); font-size: 1.2rem; margin-bottom: 8px; font-weight: normal; }
.card__body p { font-size: .95rem; color: var(--muted); flex: 1; }
.card__foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.card__price { font-weight: bold; font-size: 1.15rem; }
.card__add {
  font: inherit; background: none; color: var(--rose); border: 1px solid var(--rose);
  border-radius: 999px; padding: 9px 18px; cursor: pointer; font-size: .95rem;
  transition: background .2s, color .2s;
}
.card__add:hover { background: var(--rose); color: #fff; }

/* About + footer */
.about { background: #f1e9de; padding: 64px 0; text-align: center; position: relative; overflow: hidden; }
.about .wrap { position: relative; }
.about__amp {
  position: absolute; top: -46px; left: 50%; transform: translateX(-50%);
  font-size: 7rem; font-style: italic; color: rgba(196, 122, 109, .12);
  user-select: none; pointer-events: none;
}
.about h2 { color: var(--green-dark); margin-bottom: 16px; font-weight: normal; position: relative; }
.about p { max-width: 640px; margin: 0 auto; position: relative; }
.footer { background: var(--green-dark); color: #cfe0d8; text-align: center; padding: 36px 0; }
.footer p { margin: 4px 0; }

/* Cart drawer */
.drawer-overlay {
  position: fixed; inset: 0; background: rgba(35, 68, 57, .45);
  opacity: 0; pointer-events: none; transition: opacity .25s; z-index: 90;
}
.drawer {
  position: fixed; top: 0; right: -440px; width: min(440px, 100vw); height: 100vh;
  background: #fff; z-index: 100; transition: right .25s ease;
  display: flex; flex-direction: column; padding: 24px; overflow-y: auto;
}
body.drawer-open .drawer { right: 0; }
body.drawer-open .drawer-overlay { opacity: 1; pointer-events: auto; }
.drawer__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.drawer__head h3 { color: var(--green-dark); font-weight: normal; font-size: 1.4rem; }
.drawer__close { font-size: 1.8rem; background: none; border: none; cursor: pointer; color: #999; line-height: 1; }
.drawer__items { border-top: 1px solid var(--line); }
.cart-row {
  display: flex; justify-content: space-between; align-items: center; gap: 10px;
  padding: 12px 0; border-bottom: 1px solid var(--line); font-size: .95rem;
}
.cart-row__qty { display: flex; align-items: center; gap: 8px; }
.cart-row__qty button {
  width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; cursor: pointer; font-size: 1rem; line-height: 1;
}
.cart-row__qty button:hover { border-color: var(--green); color: var(--green); }
.cart-empty { padding: 24px 0; color: #888; text-align: center; font-style: italic; }
.drawer__total { text-align: right; font-size: 1.1rem; padding: 14px 0; }

/* Checkout form */
.checkout h4 { color: var(--green-dark); margin: 8px 0 12px; font-weight: normal; font-size: 1.1rem; }
.checkout label { display: block; font-size: .9rem; margin-bottom: 10px; color: var(--muted); }
.checkout input, .checkout textarea {
  display: block; width: 100%; font: inherit; font-size: 1rem;
  padding: 9px 12px; margin-top: 4px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--cream);
}
.checkout input:focus, .checkout textarea:focus { outline: 2px solid var(--green); border-color: var(--green); background: #fff; }
.checkout .btn { margin-top: 6px; }
.checkout__note { font-size: .82rem; color: #888; margin-top: 10px; }

/* Bekræftelses- og frigivelsessider (bestil.php / frigiv.php) */
.confirm { max-width: 620px; margin: 60px auto; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 40px; }
.confirm h1 { color: var(--green-dark); margin-bottom: 6px; font-weight: normal; }
.confirm h2 { color: var(--green-dark); font-weight: normal; font-size: 1.25rem; }
.confirm .ordernr { font-size: 1.3rem; color: var(--rose); font-weight: bold; }
.confirm table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.confirm td { padding: 8px 4px; border-bottom: 1px solid var(--line); }
.confirm td:last-child { text-align: right; }
.mobilepay-box {
  background: #5a78ff10; border: 2px solid #5a78ff; border-radius: 12px;
  padding: 22px; margin: 24px 0; text-align: center;
}
.mobilepay-box .nr { font-size: 2rem; font-weight: bold; color: #4056c9; letter-spacing: .05em; }
.mobilepay-box p { margin: 6px 0; }
.confirm .error { color: #b3372c; }
.confirm .venter {
  background: var(--rose-soft); border-radius: 12px; padding: 18px 22px; margin: 20px 0;
  font-size: .95rem; color: var(--muted);
}

@media (max-width: 560px) {
  .hero { padding: 64px 0 54px; }
  .confirm { margin: 20px; padding: 24px; }
  .usp__grid { flex-direction: column; gap: 10px; align-items: center; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; }
}
