:root {
  --sky: #CDEEFF;
  --cream: #FFFBEA;
  --ink: #23401F;          /* mørk skovgrøn tekst */
  --muted: #5E7158;
  --sun: #FFD23F;
  --sun-glow: #FFF0A8;
  --grass: #6CC04A;
  --grass-dark: #3E8E2E;
  --leaf: #E8F7DC;
  --petal: #FF7EB6;
  --petal-dark: #D9558F;
  --card: #FFFFFF;
  --line: #E4EFD4;
  --radius: 20px;
  --grass-edge: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 40 20' preserveAspectRatio='none'%3E%3Cpath d='M0 20V14Q4 4 7 14Q10 0 14 14Q18 6 21 14Q25 2 28 14Q32 5 35 14Q38 3 40 14V20Z' fill='%236CC04A'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { background: var(--grass); }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  color: var(--ink); line-height: 1.5;
  font-family: "Nunito", ui-rounded, system-ui, -apple-system, "Segoe UI", sans-serif;
  background: linear-gradient(180deg, var(--sky) 0, #E6F7FF 260px, var(--cream) 520px);
  position: relative; overflow-x: hidden;
}
a { color: var(--grass-dark); }
main { flex: 1; width: 100%; max-width: 1100px; margin: 0 auto; padding: 8px 16px 56px; position: relative; }

/* Solen i hjørnet */
.sun {
  position: absolute; top: -70px; right: -70px; width: 240px; height: 240px; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 45%, var(--sun-glow) 46% 60%, transparent 61%);
  box-shadow: 0 0 80px 30px rgba(255, 220, 90, .45);
  pointer-events: none; z-index: 0;
  animation: glow 6s ease-in-out infinite alternate;
}
@keyframes glow { to { box-shadow: 0 0 110px 45px rgba(255, 220, 90, .6); } }
@media (prefers-reduced-motion: reduce) { .sun { animation: none; } }

.topbar {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap;
  max-width: 1100px; margin: 0 auto; padding: 22px 16px 18px;
}
.logo {
  font-weight: 900; font-size: 1.8rem; text-decoration: none; color: var(--grass-dark);
  letter-spacing: -.5px;
}
.logo .tld { color: var(--petal-dark); }
.tagline { color: var(--muted); font-style: italic; flex: 1; }
.mainnav { display: flex; align-items: center; gap: 6px; margin-right: 120px; }
.mainnav a {
  text-decoration: none; font-weight: 800; color: var(--ink);
  padding: 8px 14px; border-radius: 999px;
}
.mainnav a:hover, .mainnav a.on { background: rgba(255, 255, 255, .7); }
.mainnav .cart-link { background: #fff; box-shadow: 0 3px 0 var(--line); }
.badge { background: var(--petal); color: #fff; border-radius: 999px; padding: 0 8px; margin-left: 4px; }

/* Hero: en lille eng med græs i bunden */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #FFF6C7, #FFE98A);
  border-radius: var(--radius); padding: 32px 32px 56px; margin-bottom: 24px;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 28px;
  background: var(--grass-edge) repeat-x bottom / 40px 28px;
}
.hero::before {
  content: "🌼 🌷"; position: absolute; right: 24px; bottom: 16px; font-size: 2rem; z-index: 1;
}
.hero h1 { margin: 0 0 8px; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.hero p { margin: 0; max-width: 60ch; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.chip {
  text-decoration: none; padding: 6px 14px; border-radius: 999px; color: var(--ink);
  background: #fff; border: 2px solid var(--line); font-weight: 700;
}
.chip:hover { border-color: var(--grass); }
.chip.on { background: var(--grass); border-color: var(--grass); color: #fff; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 6px 0 var(--line); transition: transform .15s;
}
.card:hover { transform: translateY(-4px) rotate(-.4deg); }
.thumb {
  display: grid; place-items: center; aspect-ratio: 4/3;
  font-size: 4.5rem; text-decoration: none;
}
.thumb.big { border-radius: var(--radius); font-size: 8rem; }
.card-body { padding: 14px 16px 16px; }
.card h2 { font-size: 1.1rem; margin: 0 0 2px; }
.card h2 a { text-decoration: none; color: var(--ink); }
.meta { color: var(--muted); font-size: .9rem; margin: 0 0 10px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.price { font-weight: 900; }
.price.big { font-size: 2rem; margin: 8px 0 16px; }

.btn {
  display: inline-block; border: 0; cursor: pointer; text-decoration: none;
  background: var(--grass); color: #fff; font: inherit; font-weight: 800;
  padding: 12px 22px; border-radius: 999px; box-shadow: 0 4px 0 var(--grass-dark);
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 var(--grass-dark); }
.btn.small { padding: 6px 14px; font-size: .9rem; box-shadow: 0 3px 0 var(--grass-dark); }
.link { background: none; border: 0; color: var(--petal-dark); cursor: pointer; font: inherit; font-weight: 700; text-decoration: underline; }

.flash { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-weight: 700; }
.flash.ok { background: var(--leaf); }
.flash.error { background: #FFE0EC; }

.back { display: inline-block; margin-bottom: 16px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: start; }
.detail h1 { margin-top: 0; }
.sold { font-weight: 900; color: var(--petal-dark); font-size: 1.3rem; }

.panel { background: #fff; border-radius: var(--radius); padding: 20px 24px; box-shadow: 0 6px 0 var(--line); margin-bottom: 24px; overflow-x: auto; }
.lines { list-style: none; padding: 0; margin: 0 0 16px; }
.lines li { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 2px dashed var(--line); }
.lines li > a, .lines li > span:first-child { flex: 1; }
.lines.compact li { justify-content: space-between; }
.mini { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-size: 1.6rem; flex: none !important; }
.total { font-size: 1.2rem; }
.empty { font-size: 1.2rem; text-align: center; padding: 40px 0; }

.contact { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.contact h2 { margin: 0; }
.contact-icon {
  display: grid; place-items: center; width: 96px; height: 96px; border-radius: 50%;
  background: #FFE3EF; font-size: 3rem;
}
.email { font-size: 1.3rem; font-weight: 800; color: var(--petal-dark); overflow-wrap: anywhere; }

.two-col { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.form label { display: block; font-weight: 700; margin-bottom: 14px; }
.form input:not([type=radio]), .form textarea, .form select {
  display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; color: inherit;
  border: 2px solid var(--line); border-radius: 12px; background: var(--cream);
}
.form input:focus, .form textarea:focus, .form select:focus { outline: none; border-color: var(--grass); }
fieldset { border: 2px solid var(--line); border-radius: 12px; margin: 0 0 14px; }
.form label.radio { font-weight: 400; margin: 4px 0; }
.grid-form { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 16px; }
.grid-form .wide { grid-column: 1 / -1; }
.grid-form .btn { justify-self: start; }

table { width: 100%; border-collapse: collapse; font-size: .95rem; }
th, td { text-align: left; padding: 8px; border-bottom: 2px dashed var(--line); vertical-align: top; }
.inline { display: inline; }

/* Græsplæne med blomster i bunden */
footer {
  position: relative; text-align: center; color: #fff; font-weight: 700;
  background: var(--grass); padding: 8px 16px 28px; margin-top: 32px;
}
footer::before {
  content: ""; position: absolute; left: 0; right: 0; top: -27px; height: 28px;
  background: var(--grass-edge) repeat-x bottom / 40px 28px;
}
footer .flowers { font-size: 1.6rem; letter-spacing: .4em; margin-top: -30px; position: relative; overflow: hidden; white-space: nowrap; }
footer p { margin: 8px 0 0; }
footer a { color: #fff; }

@media (max-width: 700px) {
  .detail, .two-col { grid-template-columns: 1fr; }
  .tagline { display: none; }
  .sun { width: 160px; height: 160px; top: -60px; right: -60px; }
  .mainnav { margin-right: 0; width: 100%; }
  .logo { font-size: 1.5rem; }
  .hero { padding: 24px 20px 52px; }
}
