:root {
  --bg: #f7f7f6;
  --surface: #ffffff;
  --text: #151515;
  --muted: #666b73;
  --line: #e9eaec;
  --accent: #1f5f5b;
  --ok: #156f3d;
  --warn: #9a6a00;
  --max: 1120px;
  --radius: 16px;
  --shadow: 0 16px 36px rgba(0, 0, 0, .06);
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .45;
  }
}

/* Scoped to public layout wrapper */
.vindelev-public {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  color: var(--text);
  background: linear-gradient(180deg, #fafaf9, var(--bg));
  line-height: 1.5;
}

/* Explicit font-family on all text elements — beats any MudBlazor/Roboto resets */
.vindelev-public h1,
.vindelev-public h2,
.vindelev-public h3,
.vindelev-public h4,
.vindelev-public h5,
.vindelev-public h6,
.vindelev-public p,
.vindelev-public span,
.vindelev-public a,
.vindelev-public label,
.vindelev-public input,
.vindelev-public select,
.vindelev-public textarea,
.vindelev-public button {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
}

.vindelev-public a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* Global button styles */
.vindelev-public .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 16px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  color: var(--text);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}

.vindelev-public .btn:hover {
  background: #f3f3f2;
}

.vindelev-public .btn.primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.vindelev-public .btn.primary:hover {
  background: #333;
}

.vindelev-public .btn:disabled,
.vindelev-public .btn.primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Button spinner for loading states */
.vindelev-public .btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: btn-spin .6s linear infinite;
  flex-shrink: 0;
}

@keyframes btn-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Global card */
.vindelev-public .card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* Global eyebrow label */
.vindelev-public .eyebrow {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin: 0 0 6px;
}

/* Global price */
.vindelev-public .price {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -.3px;
}

/* Responsive grid breakpoint for checkout */
@media (max-width: 768px) {
  .vindelev-public [style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Responsive nav */
@media (max-width: 900px) {
  .menu {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .mobile-search-toggle {
    display: inline-flex !important;
  }

  .desktop-search {
    display: none !important;
  }
}

header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(247, 247, 246, .9);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.nav {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.brand img {
  height: 36px;
  width: auto;
  display: block;
}

.menu {
  display: flex;
  align-items: center;
  gap: 6px;
}

.menu a {
  padding: 10px 12px;
  border-radius: 999px;
  color: #2a2d31;
  font-size: 14px;
}

.menu a:hover,
.menu a.active {
  background: #fff;
}

.right-tools,
.nav-tools {
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-form {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.search-form input {
  width: 180px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 14px;
}

.cart-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 14px;
  white-space: nowrap;
  cursor: pointer;
  font-family: inherit;
}

.logged-in-user {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
  padding-bottom: 1px;
  transition: color 0.18s, border-color 0.18s;
}

.logged-in-user::before {
  content: "";
  display: inline-block;
  width: 16px;
  height: 16px;
  background-color: currentColor;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath d='M10 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-6 8a6 6 0 0 1 12 0H4Z'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='currentColor'%3E%3Cpath d='M10 10a4 4 0 1 0 0-8 4 4 0 0 0 0 8Zm-6 8a6 6 0 0 1 12 0H4Z'/%3E%3C/svg%3E");
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-size: contain;
  flex-shrink: 0;
  opacity: 0.55;
}

.logged-in-user:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.cart-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(31, 95, 91, .12);
  border: 1px solid rgba(31, 95, 91, .25);
  color: #18413e;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
}

.menu-btn {
  display: none;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 12px;
  cursor: pointer;
}

.mobile-search-toggle {
  display: none;
}

.mobile-search-overlay {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0 12px;
}

.mobile-search-input {
  flex: 1;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface);
  color: var(--text);
  outline: none;
}

.mobile-search-input:focus {
  border-color: var(--accent);
}

.mobile-search-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  color: var(--muted);
  flex-shrink: 0;
}

.mobile-menu {
  display: none;
  padding: 8px 0 14px;
}

.mobile-menu.show {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 12px;
  margin-top: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.mobile-search {
  margin-top: 8px;
}

.mobile-search .search-form {
  width: 100%;
  border-radius: 12px;
  padding: 10px 12px;
}

.mobile-search .search-form input {
  width: 100%;
}

footer {
  border-top: 1px solid var(--line);
  margin-top: 22px;
  padding: 20px 0 28px;
  color: var(--muted);
  font-size: 14px;
}

.footer-wrap {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.footer-links span {
  color: var(--text);
  font-weight: 600;
}

.footer-links a:hover {
  color: var(--text);
}

body.drawer-open {
  overflow: hidden;
}

.cart-drawer-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .34);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
  z-index: 80;
}

.cart-drawer-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100vh;
  background: var(--surface);
  border-left: 1px solid var(--line);
  box-shadow: -14px 0 36px rgba(0, 0, 0, .12);
  transform: translateX(100%);
  transition: transform .24s ease;
  z-index: 90;
  display: flex;
  flex-direction: column;
}

.cart-drawer.open {
  transform: translateX(0);
}

.cart-drawer-head {
  padding: 16px 16px 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cart-drawer-head h3 {
  margin: 0;
  font-size: 18px;
}

.cart-drawer-close {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.cart-drawer-body {
  padding: 12px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Kill MudBlazor extra margins inside cart */
.cart-drawer-body p,
.cart-drawer-body ul,
.cart-drawer-body h3 {
  margin: 0 !important;
}

.cart-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--muted);
}

.cart-summary {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
  color: #3f444a;
  font-size: 14px;
  margin: 0;
}

.cart-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.cart-items:empty {
  display: none;
}

.cart-items li {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  font-size: 13px;
  color: #2f343a;
  background: #fff;
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.cart-item-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-qty {
  color: var(--muted);
}

.cart-item-thumb {
  width: 34px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid var(--line);
  object-fit: cover;
  flex: 0 0 auto;
}

.cart-item-main {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.cart-item-prices {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.cart-item-line {
  color: var(--text);
  font-weight: 600;
}

.cart-item-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.cart-item-remove {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 12px;
  line-height: 1.2;
  cursor: pointer;
}

/* ── Cart drawer loading skeleton ── */
.drawer-skeleton {
  display: grid;
  gap: 6px;
  padding: 4px 0;
}

.drawer-skeleton-item {
  display: grid;
  grid-template-columns: 40px 1fr;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.drawer-sk-img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #e8e8e8;
  animation: cart-sk-pulse 1.4s ease-in-out infinite;
}

.drawer-sk-text {
  display: grid;
  gap: 7px;
}

.drawer-sk-line {
  height: 11px;
  border-radius: 6px;
  background: #e8e8e8;
  animation: cart-sk-pulse 1.4s ease-in-out infinite;
}

.drawer-sk-line.w75 {
  width: 75%;
}

.drawer-sk-line.w45 {
  width: 45%;
}

@keyframes cart-sk-pulse {

  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: .4;
  }
}

.cart-drawer-actions {
  margin-top: auto;
  position: sticky;
  bottom: 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 14px 0 18px;
  margin-left: -16px;
  margin-right: -16px;
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.drawer-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 14px;
  cursor: pointer;
}

.drawer-btn.primary {
  background: var(--text);
  color: #fff;
  border-color: var(--text);
}

.social-share-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
  text-decoration: none;
}

.share-btn:hover {
  background: #f8f8f8;
}

.share-icons-group {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.share-icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  padding: 0;
}

.share-icon-btn.copied {
  border-color: rgba(21, 111, 61, .35);
  background: rgba(21, 111, 61, .12);
}

.share-icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.share-icon-label {
  display: none;
}

body.newsletter-open {
  overflow: hidden;
}

.newsletter-floating-btn {
  position: fixed;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 70;
  border: 1px solid rgba(31, 95, 91, .35);
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 10px 12px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: var(--shadow);
  font-family: inherit;
}

.newsletter-floating-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.newsletter-floating-btn span {
  font-size: 13px;
  font-weight: 600;
}

.newsletter-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .36);
  z-index: 94;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease;
}

.newsletter-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.newsletter-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: min(460px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
  padding: 16px;
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s ease, transform .22s ease;
}

.newsletter-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.newsletter-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.newsletter-modal-head h2 {
  font-size: 22px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial !important;
  font-weight: 700 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}

.newsletter-close-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  outline: none !important;
}

.newsletter-lead {
  color: #3f444a;
  font-size: 14px;
  margin: 10px 0 12px !important;
  line-height: 1.4 !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial !important;
}

.newsletter-modal form {
  margin: 0 !important;
}

.newsletter-control {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.newsletter-control+.newsletter-control {
  margin-top: 10px;
}

.newsletter-control label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0 !important;
  font-weight: 500 !important;
}

.newsletter-control input {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 0 12px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  margin-bottom: 0 !important;
  box-sizing: border-box !important;
}

.newsletter-check {
  margin-top: 12px;
  display: inline-flex;
  align-items: flex-start;
  gap: 8px;
  color: #2f343a;
  font-size: 13px;
}

.newsletter-check input {
  width: 16px;
  height: 16px;
  margin-top: 2px;
}

.newsletter-submit-btn {
  margin-top: 12px;
  width: 100%;
  border: 1px solid rgba(31, 95, 91, .35);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 14px;
  font-family: inherit;
  padding: 10px 14px;
  cursor: pointer;
}

.newsletter-message {
  min-height: 18px;
  margin-top: 10px;
  font-size: 13px;
}

.newsletter-message.success {
  color: var(--ok);
}

body.cookie-open {
  overflow: hidden;
}

.cookie-banner {
  position: fixed;
  left: 20px;
  right: 20px;
  bottom: 20px;
  z-index: 98;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  display: none;
}

.cookie-banner.show {
  display: block;
}

.cookie-banner-head h3 {
  margin: 0;
  font-size: 18px;
}

.cookie-banner-text {
  margin: 8px 0 0;
  color: #3f444a;
  font-size: 14px;
}

.cookie-banner-actions,
.cookie-modal-actions {
  margin-top: 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.cookie-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 9px 12px;
  font-size: 14px;
  font-family: inherit;
  cursor: pointer;
}

.cookie-btn.primary {
  border-color: rgba(31, 95, 91, .35);
  background: var(--accent);
  color: #fff;
}

.cookie-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .36);
  z-index: 96;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
}

.cookie-modal-backdrop.show {
  opacity: 1;
  pointer-events: auto;
}

.cookie-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(.98);
  width: min(520px, calc(100vw - 24px));
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 14px;
  z-index: 97;
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.cookie-modal.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, -50%) scale(1);
}

.cookie-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cookie-modal-head h3 {
  margin: 0;
  font-size: 20px;
}

.cookie-close-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.cookie-options {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.cookie-option {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.cookie-option strong {
  display: block;
  font-size: 14px;
}

.cookie-option p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.cookie-option input {
  width: 18px;
  height: 18px;
}

.cookie-settings-btn {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 75;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-family: inherit;
  padding: 7px 10px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

@media (max-width: 760px) {
  footer {
    padding-bottom: 74px;
  }

  .menu {
    display: none;
  }

  .search-form {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
  }

  .share-icons-group {
    width: 100%;
    justify-content: flex-start;
    gap: 6px;
  }

  .share-icon-btn {
    width: 70px;
    height: auto;
    border-radius: 12px;
    padding: 8px 6px;
    display: inline-flex;
    flex-direction: column;
    gap: 6px;
  }

  .share-icon-label {
    display: block;
    font-size: 11px;
    line-height: 1;
    color: var(--muted);
  }

  .newsletter-floating-btn {
    top: auto;
    bottom: 12px;
    left: 12px;
    transform: none;
    padding: 10px;
  }

  .newsletter-floating-btn span {
    display: none;
  }

  .cookie-banner {
    left: 10px;
    right: 10px;
    bottom: 10px;
  }

  .cookie-banner-actions,
  .cookie-modal-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* --- Responsive Header Overrides --- */
@media (max-width: 900px) {
  .nav {
    gap: 12px;
  }

  .brand span {
    display: none;
  }

  .right-tools .search-form {
    display: none;
  }

  .right-tools .logged-in-user,
  .right-tools .cart-btn[aria-label="Log ud"],
  .right-tools .cart-btn[aria-label="Log ind"] {
    display: none;
  }

  .menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .menu {
    display: none;
  }
}