/* ============================================
   DEIGLIG UB — Brand Design System
   Colors, fonts, layout, animations
   ============================================ */

/* --- Google Fonts --- */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:wght@400;700;800&family=DM+Sans:wght@400;500;700&family=Pangolin&display=swap');

/* --- Brand Tokens --- */
:root {
  --kjeks: #D9A066;
  --sjokolade: #5A3A2E;
  --karamell: #C47A2C;
  --vanilje: #FFE08A;
  --mork-sjokolade: #2B1A12;
  --krem: #F6E7D8;

  --font-heading: 'Bricolage Grotesque', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --font-handwritten: 'Pangolin', cursive;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --shadow-soft: 0 4px 24px rgba(43, 26, 18, 0.08);
  --shadow-medium: 0 8px 32px rgba(43, 26, 18, 0.12);
  --shadow-warm: 0 8px 40px rgba(196, 122, 44, 0.15);

  --transition-fast: 0.18s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-smooth: 0.28s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-bounce: 0.22s cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-quart: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Reset & Base --- */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  color: var(--sjokolade);
  background: var(--krem);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background: rgba(196, 122, 44, 0.2);
  color: var(--mork-sjokolade);
}

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

a {
  color: var(--karamell);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover {
  color: var(--sjokolade);
}

h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 800;
  line-height: 1.15;
  color: var(--mork-sjokolade);
}

h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.6rem); letter-spacing: -0.015em; }
h3 { font-size: clamp(1.2rem, 2.5vw, 1.6rem); letter-spacing: -0.01em; }

p {
  max-width: 65ch;
  font-size: 1.05rem;
}

/* --- Skip Link --- */
.skip-link {
  position: absolute;
  top: -100%;
  left: 16px;
  z-index: 9999;
  background: var(--mork-sjokolade);
  color: var(--vanilje);
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-family: var(--font-heading);
  font-weight: 700;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

/* --- Utility --- */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 80px 0;
}

.section--krem { background: var(--krem); }
.section--kjeks { background: var(--kjeks); }
.section--mork { background: linear-gradient(135deg, var(--mork-sjokolade) 0%, var(--sjokolade) 100%); color: var(--krem); position: relative; overflow: hidden; }
.section--mork::before { content: ''; position: absolute; top: -50%; right: -20%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(196, 122, 44, 0.12) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.section--mork::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 400px; height: 400px; background: radial-gradient(circle, rgba(255, 224, 138, 0.08) 0%, transparent 70%); border-radius: 50%; pointer-events: none; }
.section--mork h2, .section--mork h3 { color: var(--vanilje); }

.text-center { text-align: center; }
.text-handwritten { font-family: var(--font-handwritten); }
.text-karamell { color: var(--karamell); }
.text-vanilje { color: var(--vanilje); }

.accent-line {
  font-family: var(--font-handwritten);
  font-size: 1.1rem;
  color: var(--sjokolade);
  opacity: 0.65;
  margin-bottom: 8px;
}

.section--mork .accent-line {
  color: var(--vanilje);
  opacity: 0.7;
}

.section--kjeks .accent-line {
  color: var(--mork-sjokolade);
  opacity: 0.6;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  padding: 14px 32px;
  border-radius: var(--radius-xl);
  border: none;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart), background-color 0.18s ease;
  position: relative;
  overflow: hidden;
}

.btn::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.12);
  transform: translateX(-100%);
  transition: transform 0.25s var(--ease-out-quart);
}

@media (hover: hover) and (pointer: fine) {
  .btn:hover::after {
    transform: translateX(0);
  }
}

.btn--primary {
  background: var(--mork-sjokolade);
  color: var(--vanilje);
  box-shadow: 0 4px 16px rgba(43, 26, 18, 0.2);
}

@media (hover: hover) and (pointer: fine) {
  .btn--primary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(43, 26, 18, 0.25);
    background-color: var(--sjokolade);
  }
}

.btn--primary:active {
  transform: translateY(0) scale(0.97);
  box-shadow: 0 2px 8px rgba(43, 26, 18, 0.2);
  transition-duration: 0.1s;
}

.btn--secondary {
  background: var(--karamell);
  color: var(--krem);
  font-weight: 800;
}

@media (hover: hover) and (pointer: fine) {
  .btn--secondary:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(196, 122, 44, 0.35);
    background-color: var(--sjokolade);
  }
}

.btn--secondary:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.btn--outline {
  background: transparent;
  color: var(--sjokolade);
  border: 2px solid var(--sjokolade);
}

@media (hover: hover) and (pointer: fine) {
  .btn--outline:hover {
    background-color: var(--sjokolade);
    color: var(--vanilje);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 8px 24px rgba(90, 58, 46, 0.2);
  }
}

.btn--outline:active {
  transform: scale(0.97);
  transition-duration: 0.1s;
}

.btn--small {
  padding: 10px 20px;
  font-size: 0.9rem;
  min-height: 44px;
}

/* --- Navigation --- */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(246, 231, 216, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(90, 58, 46, 0.08);
  transition: box-shadow 0.28s var(--ease-out-quart);
}

.navbar.scrolled {
  box-shadow: var(--shadow-soft);
}


.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.navbar__logo {
  display: flex;
  align-items: center;
  gap: 5px;
}

.navbar__logo img:first-child {
  width: 68px;
  height: 68px;
  object-fit: contain;
  transition: transform var(--transition-bounce);
}

.navbar__logo:hover img:first-child {
  transform: rotate(-8deg) scale(1.05);
}

.navbar__logo img:last-child {
  height: 32px;
  object-fit: contain;
  margin-top: 5px;
}

.navbar__links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
}

.navbar__links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--sjokolade);
  position: relative;
  padding: 4px 0;
}

.navbar__links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--karamell), var(--vanilje));
  border-radius: 3px;
  transition: width 0.3s var(--ease-out-expo);
}

.navbar__links a:hover::after,
.navbar__links a.active::after {
  width: 100%;
}

.navbar__links a:hover {
  color: var(--karamell);
}

.navbar__actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-toggle {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  background: rgba(90, 58, 46, 0.08);
  border: none;
  padding: 10px 14px;
  min-height: 44px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  color: var(--sjokolade);
  transition: background-color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
  .lang-toggle:hover {
    background-color: rgba(90, 58, 46, 0.15);
  }
}

.lang-toggle:active {
  background-color: rgba(90, 58, 46, 0.22);
  transition-duration: 0.08s;
}

.cart-btn {
  position: relative;
  background: var(--mork-sjokolade);
  color: var(--vanilje);
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.2rem;
  transition: transform 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart);
}

@media (hover: hover) and (pointer: fine) {
  .cart-btn:hover {
    transform: scale(1.08);
    box-shadow: var(--shadow-warm);
  }
}

.cart-btn:active {
  transform: scale(0.93);
  transition-duration: 0.1s;
}

.cart-btn__count {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--karamell);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0);
  transition: transform var(--transition-bounce);
}

.cart-btn__count.visible {
  transform: scale(1);
  animation: countPop 0.4s var(--ease-out-quart);
}

@keyframes countPop {
  0% { transform: scale(0.4); opacity: 0; }
  60% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}

/* Mobile menu toggle */
.navbar__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}

.navbar__hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--sjokolade);
  border-radius: 2px;
  transition: transform 0.2s var(--ease-out-quart), opacity 0.2s ease;
}

/* --- Hero Section --- */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: linear-gradient(160deg, var(--krem) 30%, #f0d4b8 100%);
  padding-top: 72px;
  position: relative;
  overflow: hidden;
}

.hero__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero__content {
  padding: 40px 0;
  position: relative;
  z-index: 3;
}

.hero__badge {
  display: inline-block;
  font-family: var(--font-handwritten);
  font-size: 1rem;
  color: var(--mork-sjokolade);
  background: var(--vanilje);
  padding: 8px 20px;
  border-radius: var(--radius-xl);
  margin-bottom: 20px;
}

.hero__title {
  margin-bottom: 20px;
}

.hero__title span {
  color: var(--karamell);
}

.hero__subtitle {
  font-size: 1.15rem;
  color: var(--sjokolade);
  opacity: 0.85;
  margin-bottom: 32px;
  max-width: 480px;
}

.hero__buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__mascot {
  width: 520px;
  max-width: 100%;
  max-height: 600px;
  object-fit: cover;
  object-position: top center;
  filter: drop-shadow(0 20px 40px rgba(43, 26, 18, 0.2));
  position: relative;
  z-index: 2;
  /* animation set in "Loud Mascot Animation" section below */
}


/* --- Mascot Speech Bubble --- */
.mascot-bubble {
  position: fixed;
  background: var(--mork-sjokolade);
  color: var(--vanilje);
  font-family: var(--font-handwritten);
  font-size: 1.15rem;
  padding: 14px 24px;
  border-radius: var(--radius-xl);
  box-shadow: 0 10px 30px rgba(43, 26, 18, 0.3);
  z-index: 9999;
  pointer-events: none;
  opacity: 0;
  transform: scale(0.85) translateY(10px);
  transition: opacity 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}

.mascot-bubble.show {
  opacity: 1;
  transform: scale(1) translateY(-25px);
  transition: opacity 0.28s var(--ease-out-expo), transform 0.28s var(--ease-out-expo);
}

.mascot-bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  margin-left: -8px;
  width: 16px;
  height: 16px;
  background: var(--mork-sjokolade);
  transform: rotate(45deg);
  border-radius: 2px;
}


/* --- Features / USP Section --- */
.features {
  display: grid;
  grid-template-columns: 1.2fr 1fr 0.9fr;
  gap: 32px;
  margin-top: 48px;
  align-items: start;
}

.feature-card:nth-child(2) { margin-top: 40px; }
.feature-card:nth-child(3) { margin-top: 16px; }

.feature-card {
  --glow-x: 50%;
  --glow-y: 50%;
  background: white;
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  text-align: center;
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
  border: 1px solid rgba(90, 58, 46, 0.06);
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.feature-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 200px at var(--glow-x) var(--glow-y), rgba(255, 224, 138, 0.35) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover::after {
    opacity: 1;
  }
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--karamell);
  transform: scaleX(0);
  transition: transform 0.4s var(--ease-out-expo);
}

.feature-card:nth-child(1)::before { background: var(--karamell); }
.feature-card:nth-child(2)::before { background: var(--vanilje); }
.feature-card:nth-child(3)::before { background: var(--kjeks); }

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-medium);
  }

  .feature-card:hover::before {
    transform: scaleX(1);
  }
}

.feature-card__icon {
  font-size: 2.4rem;
  margin-bottom: 16px;
  display: inline-block;
  transition: transform 0.25s var(--ease-out-quart);
}

@media (hover: hover) and (pointer: fine) {
  .feature-card:hover .feature-card__icon {
    transform: scale(1.2) rotate(-5deg);
  }
}

.feature-card h3 {
  margin-bottom: 8px;
}

.feature-card p {
  font-size: 0.95rem;
  opacity: 0.8;
  margin: 0 auto;
}

/* --- Product Cards --- */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.product-card {
  --glow-x: 50%;
  --glow-y: 50%;
  background: white;
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
  border: 1px solid rgba(90, 58, 46, 0.06);
  cursor: pointer;
  position: relative;
  isolation: isolate;
}

.product-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle 160px at var(--glow-x) var(--glow-y), rgba(196, 122, 44, 0.18) 0%, transparent 65%);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
  z-index: -1;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover::after {
    opacity: 1;
  }
}

.product-card__body {
  padding: 20px;
}

@media (hover: hover) and (pointer: fine) {
  .product-card:hover {
    transform: translateY(-6px) rotate(-0.5deg);
    box-shadow: 0 20px 40px rgba(43, 26, 18, 0.15);
  }

  .product-card:nth-child(even):hover {
    transform: translateY(-6px) rotate(0.5deg);
  }
}

/* Stripe texture overlay shared by all product images */
.product-card__image {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  background:
    repeating-linear-gradient(
      -45deg,
      transparent 0px,
      transparent 8px,
      rgba(255, 255, 255, 0.07) 8px,
      rgba(255, 255, 255, 0.07) 9px
    ),
    linear-gradient(135deg, var(--kjeks) 0%, #e8b97a 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  overflow: hidden;
  position: relative;
}

.product-card:nth-child(2) .product-card__image {
  background:
    repeating-linear-gradient(-45deg, transparent 0px, transparent 8px, rgba(255,255,255,0.07) 8px, rgba(255,255,255,0.07) 9px),
    linear-gradient(135deg, var(--vanilje) 0%, var(--kjeks) 100%);
}

.product-card:nth-child(3) .product-card__image {
  background:
    repeating-linear-gradient(-45deg, transparent 0px, transparent 8px, rgba(255,255,255,0.07) 8px, rgba(255,255,255,0.07) 9px),
    linear-gradient(135deg, #e8c9a0 0%, var(--karamell) 100%);
}

.product-card:nth-child(4) .product-card__image {
  background:
    repeating-linear-gradient(-45deg, transparent 0px, transparent 8px, rgba(255,255,255,0.05) 8px, rgba(255,255,255,0.05) 9px),
    linear-gradient(135deg, var(--sjokolade) 0%, var(--mork-sjokolade) 100%);
}

.product-card:nth-child(5) .product-card__image {
  background:
    repeating-linear-gradient(-45deg, transparent 0px, transparent 8px, rgba(255,255,255,0.07) 8px, rgba(255,255,255,0.07) 9px),
    linear-gradient(135deg, var(--vanilje) 0%, #f5d4a0 100%);
}

.product-card:nth-child(6) .product-card__image {
  background:
    repeating-linear-gradient(-45deg, transparent 0px, transparent 8px, rgba(255,255,255,0.06) 8px, rgba(255,255,255,0.06) 9px),
    linear-gradient(135deg, #b8c4d8 0%, var(--krem) 100%);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform var(--transition-smooth);
}

.product-card:hover .product-card__image img {
  transform: scale(1.05);
}

.product-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--karamell);
  color: white;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.75rem;
  padding: 4px 12px;
  border-radius: var(--radius-xl);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.product-card__name {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  margin-bottom: 4px;
}

.product-card__desc {
  font-size: 0.9rem;
  opacity: 0.7;
  margin-bottom: 16px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-card__price {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.3rem;
  color: var(--mork-sjokolade);
}

.product-card__price span {
  font-size: 0.85rem;
  font-weight: 400;
  opacity: 0.6;
}

.product-card__size {
  font-size: 0.8rem;
  opacity: 0.5;
  margin-top: 2px;
}

.product-card__qty {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--mork-sjokolade);
  color: var(--vanilje);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.85rem;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  transform: scale(0);
  transition: transform 0.25s var(--ease-out-quart);
}

.product-card__qty.visible {
  transform: scale(1);
}

.add-to-cart-btn {
  background: var(--karamell);
  color: white;
  border: none;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
  transition: transform 0.2s var(--ease-out-quart), box-shadow 0.2s var(--ease-out-quart), background-color 0.18s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(196, 122, 44, 0.3);
}

@media (hover: hover) and (pointer: fine) {
  .add-to-cart-btn:hover {
    transform: scale(1.12) rotate(90deg);
    box-shadow: 0 6px 20px rgba(196, 122, 44, 0.4);
    background-color: var(--mork-sjokolade);
  }
}

.add-to-cart-btn:active {
  transform: scale(0.92);
  transition-duration: 0.1s;
}

/* Cart added animation */
.add-to-cart-btn.added {
  animation: cartPop 0.4s ease;
}

@keyframes cartPop {
  0% { transform: scale(1); }
  30% { transform: scale(1.3) rotate(12deg); }
  60% { transform: scale(0.9); }
  100% { transform: scale(1); }
}

/* --- Cart Drawer --- */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43, 26, 18, 0.4);
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s var(--ease-out-quart), visibility 0.28s;
}

.cart-overlay.open {
  opacity: 1;
  visibility: visible;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--krem);
  z-index: 2001;
  transform: translateX(100%);
  transition: transform 0.4s var(--ease-out-expo);
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--karamell);
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px;
  border-bottom: 1px solid rgba(90, 58, 46, 0.1);
}

.cart-drawer__header h2 {
  font-size: 1.4rem;
}

.cart-drawer__close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--sjokolade);
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition-fast);
}

.cart-drawer__close:hover {
  transform: rotate(90deg);
}

.cart-drawer__items {
  flex: 1;
  overflow-y: auto;
  padding: 16px 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid rgba(90, 58, 46, 0.06);
}

.cart-item__image {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-md);
  background: var(--kjeks);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  flex-shrink: 0;
}

.cart-item__info {
  flex: 1;
}

.cart-item__name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.95rem;
}

.cart-item__price {
  font-size: 0.9rem;
  opacity: 0.7;
}

.cart-item__qty {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-item__qty button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(90, 58, 46, 0.2);
  background: white;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.cart-item__qty button:hover {
  background: var(--sjokolade);
  color: white;
  border-color: var(--sjokolade);
}

.cart-item__qty span {
  font-weight: 700;
  min-width: 20px;
  text-align: center;
}

.cart-drawer__empty {
  text-align: center;
  padding: 48px 24px;
  opacity: 0.6;
}

.cart-drawer__empty .mascot-small {
  width: 80px;
  margin: 0 auto 16px;
  opacity: 0.5;
}

.cart-drawer__footer {
  padding: 24px;
  border-top: 1px solid rgba(90, 58, 46, 0.1);
}

.cart-drawer__total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.2rem;
}

.cart-drawer__footer .btn {
  width: 100%;
  justify-content: center;
}

/* --- About Section / Page --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.about-grid__image {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--kjeks);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.about-grid__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 32px;
}

.value-card {
  background: white;
  padding: 24px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(90, 58, 46, 0.06);
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
  position: relative;
  overflow: hidden;
}

.value-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--karamell), var(--vanilje));
  transform: scaleX(0);
  transition: transform 0.3s var(--ease-out-expo);
  transform-origin: left;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}

.value-card:hover::after {
  transform: scaleX(1);
}

.value-card__icon {
  font-size: 1.6rem;
  margin-bottom: 8px;
}

.value-card h4 {
  font-size: 1rem;
  margin-bottom: 4px;
}

.value-card p {
  font-size: 0.9rem;
  opacity: 0.75;
}

/* --- Testimonials --- */
.testimonials {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  grid-template-rows: auto auto;
  gap: 24px;
  align-items: start;
}

.testimonial-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid rgba(90, 58, 46, 0.06);
  border-left: 4px solid var(--karamell);
  transition: transform 0.25s var(--ease-out-quart), box-shadow 0.25s var(--ease-out-quart);
}

/* Featured first card — dark, tall, spans both rows */
.testimonial-card:first-child {
  grid-row: 1 / 3;
  background: var(--mork-sjokolade);
  color: var(--krem);
  border-left-color: var(--karamell);
  padding: 40px 36px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.testimonial-card:nth-child(2) {
  border-left-color: var(--vanilje);
}

.testimonial-card:nth-child(3) {
  border-left-color: var(--kjeks);
}

@media (hover: hover) and (pointer: fine) {
  .testimonial-card:hover {
    transform: translateY(-4px) rotate(-0.5deg);
    box-shadow: var(--shadow-medium);
  }

  .testimonial-card:first-child:hover {
    transform: translateY(-4px) rotate(0.3deg);
    box-shadow: 0 20px 40px rgba(43, 26, 18, 0.3);
  }
}

.testimonial-card__stars {
  color: var(--karamell);
  font-size: 1rem;
  margin-bottom: 16px;
  letter-spacing: 2px;
}

.testimonial-card:first-child .testimonial-card__stars {
  color: var(--vanilje);
  font-size: 1.2rem;
}

.testimonial-card p {
  font-size: 0.95rem;
  font-style: italic;
  margin-bottom: 16px;
  opacity: 0.85;
  max-width: 100%;
}

.testimonial-card:first-child p {
  font-size: 1.15rem;
  line-height: 1.65;
  opacity: 0.9;
  color: var(--krem);
}

.testimonial-card__author {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
}

.testimonial-card:first-child .testimonial-card__author {
  color: var(--vanilje);
  opacity: 0.7;
}

/* --- Contact Form --- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.9rem;
  margin-bottom: 6px;
  color: var(--sjokolade);
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid rgba(90, 58, 46, 0.12);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: 1rem;
  background: white;
  color: var(--sjokolade);
  transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--karamell);
  box-shadow: 0 0 0 3px rgba(196, 122, 44, 0.15);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.btn[disabled],
.btn.loading {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn.loading::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  margin-right: 4px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* --- FAQ --- */
.faq-list {
  max-width: 640px;
}

.faq-item {
  border-bottom: 1px solid rgba(90, 58, 46, 0.1);
}

.faq-item__question {
  width: 100%;
  background: none;
  border: none;
  padding: 20px 0;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--sjokolade);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  transition: color var(--transition-fast);
}

.faq-item__question:hover {
  color: var(--karamell);
}

.faq-item__question::after {
  content: '+';
  font-size: 1.4rem;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(196, 122, 44, 0.08);
  border-radius: 50%;
  flex-shrink: 0;
  transition: transform 0.3s var(--ease-out-quart), background-color 0.2s ease, color 0.2s ease;
}

.faq-item__question:hover::after {
  background: rgba(196, 122, 44, 0.15);
}

.faq-item.open .faq-item__question::after {
  transform: rotate(45deg);
  background: var(--karamell);
  color: white;
}

.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height var(--transition-smooth), padding var(--transition-smooth);
}

.faq-item.open .faq-item__answer {
  max-height: 300px;
  padding-bottom: 20px;
}

.faq-item__answer p {
  font-size: 0.95rem;
  opacity: 0.8;
}

/* --- Footer --- */
.footer {
  background: var(--mork-sjokolade);
  color: var(--krem);
  padding: 64px 0 32px;
}

.footer__inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer__brand p {
  opacity: 0.7;
  font-size: 0.95rem;
  margin-top: 12px;
  max-width: 280px;
}

.footer__brand .navbar__logo img:last-child {
  filter: brightness(3);
}

.footer h4 {
  color: var(--vanilje);
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: 10px;
}

.footer ul a {
  color: rgba(246, 231, 216, 0.7);
  font-size: 0.95rem;
  transition: color var(--transition-fast);
}

.footer ul a:hover {
  color: var(--vanilje);
}

.footer__bottom {
  border-top: 1px solid rgba(246, 231, 216, 0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  opacity: 0.6;
}

.footer__socials {
  display: flex;
  gap: 16px;
}

.footer__socials a {
  color: var(--krem);
  font-size: 1.2rem;
  transition: color var(--transition-fast), transform var(--transition-fast);
}

.footer__socials a:hover {
  color: var(--vanilje);
  transform: translateY(-2px);
}

/* --- Scroll Reveal Animations --- */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.45s var(--ease-out-quart), transform 0.45s var(--ease-out-quart);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-left {
  opacity: 0;
  transform: translateX(-36px);
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.reveal-left.visible {
  opacity: 1;
  transform: translateX(0);
}

.reveal-right {
  opacity: 0;
  transform: translateX(36px);
  transition: opacity 0.45s var(--ease-out-expo), transform 0.45s var(--ease-out-expo);
}

.reveal-right.visible {
  opacity: 1;
  transform: translateX(0);
}

/* Stagger children */
.stagger-children > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.4s var(--ease-out-quart), transform 0.4s var(--ease-out-quart);
}

.stagger-children.visible > *:nth-child(1) { transition-delay: 0.04s; }
.stagger-children.visible > *:nth-child(2) { transition-delay: 0.09s; }
.stagger-children.visible > *:nth-child(3) { transition-delay: 0.14s; }
.stagger-children.visible > *:nth-child(4) { transition-delay: 0.19s; }
.stagger-children.visible > *:nth-child(5) { transition-delay: 0.24s; }
.stagger-children.visible > *:nth-child(6) { transition-delay: 0.29s; }

.stagger-children.visible > * {
  opacity: 1;
  transform: translateY(0);
}

/* --- Mascot Animations --- */
.mascot-wave {
  transition: transform 0.4s var(--ease-out-quart);
  cursor: pointer;
}

.mascot-wave:hover {
  transform: rotate(-10deg) scale(1.08);
}

.mascot-bounce {
  transition: transform 0.4s var(--ease-out-quart);
  cursor: pointer;
}

.mascot-bounce:hover {
  animation: mascotJump 0.5s var(--ease-out-quart);
}

@keyframes mascotJump {
  0% { transform: translateY(0) scale(1); }
  20% { transform: translateY(4px) scale(1.02, 0.96); }
  50% { transform: translateY(-20px) scale(0.98, 1.04); }
  70% { transform: translateY(-10px) scale(1); }
  85% { transform: translateY(2px) scale(1.01, 0.99); }
  100% { transform: translateY(0) scale(1); }
}


/* --- Page Header (for inner pages) --- */
.page-header {
  background: linear-gradient(135deg, var(--kjeks) 0%, #e8b97a 50%, var(--vanilje) 100%);
  padding: 120px 0 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-header::before {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--krem);
  border-radius: 40px 40px 0 0;
}

.page-header::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 50%, rgba(255, 224, 138, 0.3) 0%, transparent 60%),
              radial-gradient(circle at 80% 30%, rgba(196, 122, 44, 0.15) 0%, transparent 50%);
  pointer-events: none;
}

.page-header h1 {
  position: relative;
  z-index: 1;
}

.page-header .accent-line {
  position: relative;
  z-index: 1;
}

.page-header .mascot-header {
  position: absolute;
  right: 10%;
  bottom: 20px;
  width: 100px;
  opacity: 0.3;
  z-index: 0;
}

/* --- Order Info --- */
.order-info {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding: 32px 0;
  border-top: 1px solid rgba(90, 58, 46, 0.08);
}

.order-info__item h4 {
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.order-info__item p {
  font-size: 0.9rem;
  opacity: 0.65;
  max-width: none;
}

.order-info__allergens {
  font-size: 0.8rem;
  opacity: 0.45;
  margin-top: 16px;
}

/* --- Checkout visibility --- */
.checkout-hidden {
  display: none;
}

/* --- Checkout form --- */
.checkout-section {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px;
  border: 1px solid rgba(90, 58, 46, 0.06);
}

.checkout-section h3 {
  margin-bottom: 24px;
  padding-bottom: 12px;
  border-bottom: 2px solid rgba(90, 58, 46, 0.06);
}

.order-summary {
  background: rgba(217, 160, 102, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  margin-top: 24px;
}

.order-summary__row {
  display: flex;
  justify-content: space-between;
  padding: 8px 0;
  font-size: 0.95rem;
}

.order-summary__row--total {
  border-top: 2px solid rgba(90, 58, 46, 0.1);
  margin-top: 8px;
  padding-top: 12px;
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.1rem;
}

/* --- Cookie banner (ironic) --- */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120%);
  background: linear-gradient(135deg, var(--mork-sjokolade) 0%, var(--sjokolade) 100%);
  color: var(--krem);
  padding: 20px 28px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  gap: 16px;
  z-index: 3000;
  box-shadow: 0 12px 40px rgba(43, 26, 18, 0.25);
  transition: transform 0.6s var(--ease-out-expo);
  max-width: 500px;
  border: 1px solid rgba(196, 122, 44, 0.2);
}

.cookie-banner.show {
  transform: translateX(-50%) translateY(0);
  animation: bannerPeek 0.6s var(--ease-out-expo);
}

@keyframes bannerPeek {
  0% { transform: translateX(-50%) translateY(120%) scale(0.9); }
  60% { transform: translateX(-50%) translateY(-8px) scale(1.02); }
  100% { transform: translateX(-50%) translateY(0) scale(1); }
}

.cookie-banner p {
  font-size: 0.9rem;
  opacity: 0.9;
}

.cookie-banner .btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* --- Responsive --- */
@media (max-width: 968px) {
  .hero__inner {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero__subtitle { margin: 0 auto 32px; }
  .hero__buttons { justify-content: center; }

  .hero__visual { order: -1; padding-top: 24px; }
  .hero__mascot { width: 300px; }

  .navbar__logo img:first-child {
    width: 44px;
    height: 44px;
  }

  .navbar__logo img:last-child {
    height: 24px;
    margin-top: 3px;
  }

  .features {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin-left: auto;
    margin-right: auto;
    align-items: stretch;
  }

  .feature-card:nth-child(2),
  .feature-card:nth-child(3) {
    margin-top: 0;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .order-info {
    grid-template-columns: 1fr;
    gap: 24px;
  }

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

  .testimonial-card:first-child {
    grid-row: 1;
  }

  .footer__inner {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }

  .navbar__links {
    display: none;
  }

  .navbar__hamburger {
    display: flex;
  }

  /* Mobile nav open */
  .navbar__links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(246, 231, 216, 0.98);
    backdrop-filter: blur(16px);
    padding: 24px;
    gap: 20px;
    border-bottom: 1px solid rgba(90, 58, 46, 0.1);
    animation: slideDown 0.3s ease;
  }
}

@media (max-width: 600px) {
  .section { padding: 56px 0; }
  .container { padding: 0 16px; }

  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .about-values {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .cookie-banner {
    left: 16px;
    right: 16px;
    transform: translateX(0) translateY(120%);
    max-width: none;
  }

  .cookie-banner.show {
    transform: translateX(0) translateY(0);
  }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* --- Marquee Strip --- */
.marquee-strip {
  background: var(--mork-sjokolade);
  color: var(--vanilje);
  padding: 14px 0;
  overflow: hidden;
  white-space: nowrap;
  border-top: 1px solid rgba(255, 224, 138, 0.12);
  border-bottom: 1px solid rgba(255, 224, 138, 0.12);
  user-select: none;
}

.marquee-track {
  display: inline-flex;
  gap: 36px;
  align-items: center;
  font-family: var(--font-handwritten);
  font-size: 1.05rem;
  animation: marqueeScroll 32s linear infinite;
  will-change: transform;
}

.marquee-strip:hover .marquee-track {
  animation-play-state: paused;
}

.marquee-sep {
  color: var(--karamell);
  font-size: 0.65rem;
  opacity: 0.8;
}

@keyframes marqueeScroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
  .marquee-track {
    animation: none;
  }
}


@keyframes mascotPulseGlow {
  0%, 100% { filter: drop-shadow(0 20px 40px rgba(43, 26, 18, 0.2)) drop-shadow(0 0 0px rgba(255, 224, 138, 0)); }
  50% { filter: drop-shadow(0 20px 40px rgba(43, 26, 18, 0.2)) drop-shadow(0 0 30px rgba(255, 224, 138, 0.4)); }
}

@keyframes mascotWiggle {
  0%, 100% { transform: translateY(0) rotate(0deg) scale(1); }
  10% { transform: translateY(-12px) rotate(2deg) scale(1.02); }
  20% { transform: translateY(-20px) rotate(-1.5deg) scale(1.04); }
  35% { transform: translateY(-10px) rotate(1deg) scale(1.01); }
  50% { transform: translateY(-24px) rotate(0deg) scale(1.03); }
  65% { transform: translateY(-14px) rotate(-2deg) scale(1.02); }
  80% { transform: translateY(-8px) rotate(1.5deg) scale(1.01); }
}

.hero__mascot {
  animation: mascotEntrance 1.2s var(--ease-out-expo) both, mascotWiggle 5s ease-in-out 1.2s infinite;
}

.hero__mascot:hover {
  animation: mascotPulseGlow 1.5s ease-in-out infinite;
  transform: scale(1.08) rotate(-3deg);
  transition: transform 0.4s var(--ease-out-expo);
}

@keyframes blobPulse {
  0%, 100% { transform: rotate(0deg) scale(1); opacity: 0.8; }
  25% { transform: rotate(90deg) scale(1.08); opacity: 1; }
  50% { transform: rotate(180deg) scale(0.95); opacity: 0.9; }
  75% { transform: rotate(270deg) scale(1.05); opacity: 1; }
}

.hero__blob {
  animation: blobPulse 10s ease-in-out infinite;
}

/* --- Reduced Motion --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal, .reveal-left, .reveal-right,
  .stagger-children > * {
    opacity: 1 !important;
    transform: none !important;
  }

  .hero__mascot {
    animation: none;
  }
}

/* --- Focus Styles --- */
:focus-visible {
  outline: 3px solid var(--karamell);
  outline-offset: 2px;
  border-radius: 4px;
}

.btn:focus-visible {
  outline-offset: 3px;
}

.navbar__links a:focus-visible,
.faq-item__question:focus-visible {
  outline-offset: 4px;
  border-radius: 4px;
}

/* Remove default outline for mouse users */
:focus:not(:focus-visible) {
  outline: none;
}
