/* ------------------------------
   FARVER + GENERELLE VARIABLES
------------------------------ */
:root {
  --color-text: #222222;
  --color-primary: #9ed354;
  --color-accent: #fc90c2;
  --color-bg: #f8f6f1;
  --color-white: #ffffff;
  --color-border: rgba(34, 34, 34, 0.08);
  --shadow-soft: 0 18px 40px rgba(34, 34, 34, 0.08);
  --radius-xl: 28px;
  --radius-pill: 999px;
  --max-width: 1280px;
}

/* Nulstiller standard spacing */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "Manrope", sans-serif;
  line-height: 1.5;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

/* Gør indholdet centreret på siden */
.container {
  width: min(100% - 48px, var(--max-width));
  margin: 0 auto;
}

/* ------------------------------
   HEADER
------------------------------ */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  background: rgba(248, 246, 241, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.header-inner {
  min-height: 88px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}

.logo {
  font-family: "Mohave", sans-serif;
  font-size: 3rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  align-items: center;
  gap: 36px;
  font-size: 1rem;
  font-weight: 700;
}

.nav a:hover {
  color: var(--color-primary);
}

.basket-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.basket-count {
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 800;
}

/* ------------------------------
   HERO / FORSIDE
------------------------------ */
.hero {
  min-height: 100vh;
  padding: 150px 0 70px;
  position: relative;
  overflow: hidden;
}

/* Hero-indhold bliver sat op i en kolonne:
   tekst øverst, produkt i midten, knapper nederst */
.hero-inner {
  min-height: 760px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Swoosh ligger bagved */
.hero-wave {
  position: absolute;
  left: 50%;
  bottom: 110px;
  transform: translateX(-50%);
  width: 100vw;
  max-width: none;
  z-index: 1;
  pointer-events: none;
}

/* Tekst */
.hero-content {
  position: relative;
  z-index: 3;
  max-width: 760px;
  margin-top: 10px;
}

.hero-title {
  font-family: "Mohave", sans-serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-weight: 700;
  line-height: 0.9;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.hero-subtitle {
  color: var(--color-accent);
  font-size: clamp(1.2rem, 2vw, 2rem);
  font-weight: 700;
  margin-bottom: 18px;
}

.hero-text {
  max-width: 620px;
  margin: 0 auto;
  font-size: 1.2rem;
  color: rgba(34, 34, 34, 0.82);
}

/* Produktet i midten */
.hero-product {
  position: relative;
  z-index: 2;
  width: min(420px, 38vw);
  margin-top: 36px;
  filter: drop-shadow(0 22px 30px rgba(34, 34, 34, 0.14));
}

/* Knapperne er nu under produktet */
.hero-actions {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 22px;
}

/* Knapper generelt */
.btn {
  min-width: 210px;
  min-height: 58px;
  padding: 0 28px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  justify-content: center;
  align-items: center;
  font-weight: 800;
  font-size: 1.05rem;
  transition:
    transform 0.2s ease,
    background 0.2s ease,
    color 0.2s ease;
}

.btn:hover {
  transform: scale(1.03);
}

.btn-primary {
  background: var(--color-primary);
  color: var(--color-text);
}

.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(34, 34, 34, 0.18);
  color: var(--color-text);
}

/* ------------------------------
   PRODUKTER
------------------------------ */
.discover {
  padding: 56px 0 100px;
}

.section-heading {
  text-align: center;
  margin-bottom: 40px;
}

.section-title {
  font-family: "Mohave", sans-serif;
  font-size: clamp(3rem, 7vw, 5rem);
  line-height: 0.95;
  margin-bottom: 12px;
}

.section-subtitle {
  color: var(--color-accent);
  font-size: 1.25rem;
  font-weight: 700;
}

/* 3 kolonner på desktop */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 26px 26px 28px;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 24px 48px rgba(34, 34, 34, 0.1);
}

/* Holder produktbilledet pænt centreret */
.product-image-wrap {
  height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.product-image {
  max-height: 240px;
  object-fit: contain;
}

.product-name {
  font-size: 1.7rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.product-price {
  color: var(--color-accent);
  font-size: 1.3rem;
  font-weight: 800;
  margin-bottom: 18px;
}

/* Knap inde i produktkort */
.product-card .btn {
  width: 100%;
  min-width: 0;
  min-height: 54px;
  font-size: 1rem;
}

/* Bestseller label */
.product-tag {
  display: inline-block;
  margin-top: 14px;
  background: rgba(252, 144, 194, 0.16);
  color: var(--color-accent);
  border-radius: 14px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 800;
  position: static;
  transform: none;
}

/* ------------------------------
   FOOTER
------------------------------ */
.site-footer {
  padding: 32px 0 48px;
  border-top: 1px solid rgba(34, 34, 34, 0.08);
  background: rgba(248, 246, 241, 0.55);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-logo {
  font-family: "Mohave", sans-serif;
  font-size: 2.2rem;
  margin-bottom: 6px;
}

.footer-status {
  text-align: right;
}

.opening-status {
  font-weight: 800;
}

.opening-status.open {
  color: #a1e153;
}

.opening-status.closed {
  color: var(--color-accent);
}

/* ------------------------------
   TOAST / BESKED
------------------------------ */
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  background: var(--color-text);
  color: var(--color-white);
  padding: 14px 18px;
  border-radius: 16px;
  box-shadow: 0 14px 35px rgba(34, 34, 34, 0.22);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition:
    opacity 0.25s ease,
    transform 0.25s ease;
  z-index: 200;
  font-weight: 700;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* ------------------------------
   RESPONSIVE
------------------------------ */
@media (max-width: 980px) {
  .nav {
    gap: 20px;
    font-size: 0.9rem;
  }

  .hero-inner {
    min-height: 680px;
  }

  .hero-wave {
    bottom: 90px;
  }

  .hero-product {
    width: min(340px, 56vw);
    margin-top: 28px;
  }

  .products-grid {
    grid-template-columns: 1fr;
    max-width: 520px;
    margin: 0 auto;
  }

  .footer-status {
    text-align: left;
  }
}

@media (max-width: 680px) {
  .container {
    width: min(100% - 32px, var(--max-width));
  }

  .header-inner {
    min-height: 80px;
  }

  .logo {
    font-size: 2.2rem;
  }

  .nav {
    gap: 14px;
    font-size: 0.78rem;
  }

  .hero {
    padding-top: 120px;
  }

  .hero-inner {
    min-height: 620px;
  }

  .hero-title {
    font-size: clamp(4rem, 14vw, 6rem);
  }

  .hero-text {
    font-size: 1rem;
  }

  .hero-wave {
    width: 150%;
    bottom: 80px;
  }

  .hero-product {
    width: min(280px, 72vw);
    margin-top: 24px;
  }

  .hero-actions {
    margin-top: 18px;
  }

  .product-name {
    font-size: 1.45rem;
  }
}
/* ----------------------------------
   GENEREL SIDEPADDING TIL INDERSIDER
---------------------------------- */
.page-section {
  padding: 140px 0 80px;
}

/* ----------------------------------
   BASKET + PAYMENT LAYOUT
---------------------------------- */
.basket-layout,
.payment-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
  align-items: start;
}

.basket-card,
.summary-card {
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-soft);
  padding: 28px;
}

.basket-card-title {
  font-family: "Mohave", sans-serif;
  font-size: 2rem;
  margin-bottom: 20px;
}

.basket-item {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(34, 34, 34, 0.08);
}

.basket-item:last-child {
  border-bottom: none;
}

.basket-item-image {
  width: 90px;
  height: 90px;
  object-fit: contain;
  flex-shrink: 0;
}

.basket-item-info h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.basket-item-info p {
  color: var(--color-accent);
  font-weight: 700;
}

.remove-button {
  margin-left: auto;
  color: var(--color-accent);
  font-weight: 700;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 18px;
  font-size: 1.05rem;
  font-weight: 700;
}

.summary-button {
  width: 100%;
  margin-top: 10px;
}

/* Tom kurv / tom payment */
.empty-state {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}

.empty-state p {
  font-size: 1.1rem;
}

/* ----------------------------------
   PAYMENT FORM
---------------------------------- */
.payment-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.payment-form label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-weight: 700;
}

.payment-form input {
  min-height: 52px;
  padding: 0 16px;
  border-radius: 16px;
  border: 1px solid rgba(34, 34, 34, 0.12);
  background: rgba(255, 255, 255, 0.7);
  font: inherit;
}

/* ----------------------------------
   RESPONSIVE TIL BASKET / PAYMENT
---------------------------------- */
@media (max-width: 980px) {
  .basket-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }
}
/* ------------------------------
   MENU TOGGLE
------------------------------ */
.menu-toggle {
  display: none;
  font-size: 1.8rem;
  color: var(--color-text);
}

/* ------------------------------
   FILTER BAR
------------------------------ */
.filter-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

.filter-btn {
  padding: 12px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  border: 1px solid rgba(34, 34, 34, 0.1);
  font-weight: 700;
}

.filter-btn.active {
  background: var(--color-primary);
}

/* ------------------------------
   CONFIRMATION BOX
------------------------------ */
.confirmation-box {
  margin-top: 24px;
  padding: 20px;
  border-radius: 20px;
  background: rgba(158, 211, 84, 0.16);
}

.hidden {
  display: none;
}

/* ------------------------------
   MOBILMENU
------------------------------ */
@media (max-width: 820px) {
  .menu-toggle {
    display: block;
  }

  .nav {
    position: absolute;
    top: 88px;
    right: 24px;
    background: var(--color-bg);
    border: 1px solid rgba(34, 34, 34, 0.08);
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    padding: 18px;
    flex-direction: column;
    align-items: flex-start;
    min-width: 180px;
    display: none;
  }

  .nav.open {
    display: flex;
  }
}
