/* ==========================================================================
   Pinkplace.dk — designsystem
   Paletten: Bubblegum (primær pink), Raspberry (accent/hover), Blush (baggrund),
   Plum (tekst), Cream (kort), Kraft (mærkat/tag-motiv)
   Skrifttyper: Fraunces (overskrifter), Caveat (håndskrevne prismærker),
   Inter (brødtekst), Space Mono (data/lager/admin-tal)
   Signatur-element: det håndskrevne, hulpunch'ede prismærke på hvert produkt -
   en hilsen til det fysiske loppemarkeds-mærkat, som binder "second hand" og
   "pink" sammen.
   ========================================================================== */

:root {
  --pink: #FF4FA0;
  --pink-soft: #FFB3D9;
  --raspberry: #C2185B;
  --blush: #FFEDF3;
  --blush-deep: #FFD9E9;
  --plum: #3B0A24;
  --cream: #FFF8F2;
  --kraft: #E8C9A0;
  --kraft-dark: #C9A874;
  --mint: #BFEFE0;
  --white: #FFFFFF;
  --shadow: 0 6px 20px rgba(59, 10, 36, 0.12);
  --shadow-lift: 0 14px 34px rgba(59, 10, 36, 0.18);
  --radius: 14px;
  --font-display: 'Fraunces', Georgia, serif;
  --font-hand: 'Caveat', cursive;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'Space Mono', 'JetBrains Mono', monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--blush);
  color: var(--plum);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-family: var(--font-display); margin: 0 0 .4em; line-height: 1.1; }
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--raspberry); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; border: 2px solid var(--plum);
  background: var(--pink); color: var(--white); font-weight: 700; font-size: 15px;
  box-shadow: var(--shadow); transition: transform .15s ease, box-shadow .15s ease;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-lift); }
.btn:active { transform: translateY(0); }
.btn-outline { background: transparent; color: var(--plum); }
.btn-outline:hover { background: var(--plum); color: var(--white); }
.btn-raspberry { background: var(--raspberry); }
.btn-small { padding: 8px 16px; font-size: 13px; }
.btn-block { width: 100%; }
.btn-danger { background: var(--white); color: var(--raspberry); border-color: var(--raspberry); }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none !important; }

/* ---------- Site header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--cream); border-bottom: 3px solid var(--plum);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; padding: 16px 24px; gap: 20px; }
.logo { font-family: var(--font-display); font-size: 28px; font-weight: 700; color: var(--plum); display: flex; align-items: baseline; gap: 4px; }
.logo .dot { color: var(--pink); }
.main-nav { display: flex; gap: 28px; font-weight: 600; }
.main-nav a { padding: 6px 2px; border-bottom: 3px solid transparent; }
.main-nav a:hover, .main-nav a.active { border-color: var(--pink); }
.header-actions { display: flex; align-items: center; gap: 16px; }
.cart-pill {
  display: flex; align-items: center; gap: 6px; background: var(--pink); color: var(--white);
  padding: 8px 16px; border-radius: 999px; font-weight: 700; border: 2px solid var(--plum);
}
.search-form { display: flex; }
.search-form input {
  border: 2px solid var(--plum); border-right: none; border-radius: 999px 0 0 999px;
  padding: 9px 14px; font-family: var(--font-body); width: 160px;
}
.search-form button {
  border: 2px solid var(--plum); border-left: none; border-radius: 0 999px 999px 0;
  background: var(--plum); color: var(--white); padding: 0 14px;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(160deg, var(--blush-deep) 0%, var(--blush) 55%, var(--cream) 100%);
  border-bottom: 3px solid var(--plum);
  padding: 64px 0 56px;
  position: relative; overflow: hidden;
}
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.hero-eyebrow {
  font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .12em;
  font-size: 12px; background: var(--plum); color: var(--cream); display: inline-block;
  padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
}
.hero h1 { font-size: clamp(34px, 5vw, 56px); }
.hero h1 .script { font-family: var(--font-hand); color: var(--raspberry); font-size: 1.15em; display: block; }
.hero p.lead { font-size: 18px; max-width: 46ch; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 22px; }
.hero-art { position: relative; aspect-ratio: 1/1; }
.tag-stack { position: relative; width: 100%; height: 100%; }
.float-tag {
  position: absolute; background: var(--kraft); border: 2px solid var(--plum); border-radius: 10px;
  padding: 14px 18px; box-shadow: var(--shadow-lift); font-family: var(--font-hand); font-size: 26px;
  color: var(--plum);
}
.float-tag::before {
  content: ''; position: absolute; top: 10px; left: 10px; width: 12px; height: 12px;
  border-radius: 50%; background: var(--blush); border: 2px solid var(--plum);
}
.float-tag.t1 { top: 6%; left: 8%; transform: rotate(-9deg); background: var(--pink-soft); }
.float-tag.t2 { top: 38%; right: 4%; transform: rotate(7deg); }
.float-tag.t3 { bottom: 8%; left: 18%; transform: rotate(-4deg); background: var(--mint); }

/* ---------- Category tabs (look like garment tags) ---------- */
.cat-tabs { display: flex; gap: 12px; flex-wrap: wrap; padding: 28px 0 8px; }
.cat-tab {
  font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .06em;
  border: 2px solid var(--plum); border-radius: 999px; padding: 9px 18px; background: var(--white);
  font-weight: 700;
}
.cat-tab:hover { background: var(--blush-deep); }
.cat-tab.active { background: var(--plum); color: var(--cream); }

/* ---------- Section heading ---------- */
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 40px 0 20px; }
.section-head h2 { font-size: 30px; }
.section-head a { font-weight: 700; border-bottom: 2px solid var(--pink); }

/* ---------- Product grid & card (signature: the price tag) ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 26px; padding-bottom: 50px; }
.product-card {
  background: var(--cream); border: 2px solid var(--plum); border-radius: var(--radius);
  overflow: visible; position: relative; transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow);
}
.product-card:hover { transform: translateY(-4px) rotate(-0.4deg); box-shadow: var(--shadow-lift); }
.product-media-frame {
  aspect-ratio: 4/5; overflow: hidden; border-radius: 12px 12px 0 0; background: var(--blush-deep);
  position: relative;
}
.product-media-frame img, .product-media-frame video { width: 100%; height: 100%; object-fit: cover; }
.no-media { display: flex; align-items: center; justify-content: center; height: 100%; font-family: var(--font-hand); font-size: 22px; color: var(--raspberry); }
.video-chip {
  position: absolute; bottom: 10px; right: 10px; background: var(--plum); color: var(--cream);
  font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border-radius: 999px;
}
.price-tag {
  position: absolute; top: -14px; left: -14px; background: var(--kraft); border: 2px solid var(--plum);
  border-radius: 8px; padding: 8px 14px 8px 20px; font-family: var(--font-hand); font-size: 24px;
  color: var(--plum); transform: rotate(-7deg); box-shadow: var(--shadow); z-index: 2;
}
.price-tag::before {
  content: ''; position: absolute; top: 9px; left: 7px; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blush); border: 2px solid var(--plum);
}
.product-info { padding: 16px 16px 18px; }
.product-info .cat-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--raspberry); letter-spacing: .08em; }
.product-info h3 { font-size: 18px; margin: 4px 0 6px; }
.product-meta { font-size: 13px; color: #7a5163; display: flex; gap: 8px; flex-wrap: wrap; }
.product-meta span { background: var(--blush); padding: 2px 8px; border-radius: 999px; }

/* ---------- Product detail ---------- */
.product-detail { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; padding: 40px 0 60px; }
.gallery-main { border: 2px solid var(--plum); border-radius: var(--radius); overflow: hidden; aspect-ratio: 1/1; background: var(--blush-deep); }
.gallery-main img, .gallery-main video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 64px; height: 64px; border: 2px solid var(--plum); border-radius: 8px; padding: 0; overflow: hidden; background: var(--blush); }
.gallery-thumbs img, .gallery-thumbs video { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumbs button.active { outline: 3px solid var(--pink); }
.detail-info .price-tag-big { font-family: var(--font-hand); font-size: 44px; color: var(--raspberry); }
.detail-meta-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 20px 0; }
.detail-meta-grid div { background: var(--cream); border: 2px solid var(--plum); border-radius: 10px; padding: 10px 14px; }
.detail-meta-grid b { display: block; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--raspberry); }
.stock-note { font-family: var(--font-mono); font-size: 13px; color: var(--raspberry); margin-bottom: 14px; }

/* ---------- Cart & checkout ---------- */
.cart-table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.cart-table th { text-align: left; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; padding: 8px; border-bottom: 2px solid var(--plum); }
.cart-table td { padding: 14px 8px; border-bottom: 1px solid var(--blush-deep); vertical-align: middle; }
.cart-row-product { display: flex; align-items: center; gap: 14px; }
.cart-row-product img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; border: 2px solid var(--plum); }
.qty-input { width: 56px; padding: 6px; border: 2px solid var(--plum); border-radius: 8px; font-family: var(--font-mono); }
.cart-summary { display: flex; justify-content: flex-end; }
.summary-box { background: var(--cream); border: 2px solid var(--plum); border-radius: var(--radius); padding: 22px; width: 320px; }
.summary-box .total-line { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 20px; font-weight: 700; margin: 14px 0; }

.checkout-grid { display: grid; grid-template-columns: 1fr 360px; gap: 40px; padding: 40px 0 60px; align-items: start; }
.form-card, .summary-box { background: var(--cream); border: 2px solid var(--plum); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 14px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 11px 13px; border: 2px solid var(--plum); border-radius: 10px;
  font-family: var(--font-body); font-size: 15px; background: var(--white);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.pay-methods { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0; }
.pay-method { border: 2px solid var(--plum); border-radius: 10px; padding: 14px; cursor: pointer; text-align: center; font-weight: 700; }
.pay-method input { display: none; }
.pay-method.selected, .pay-method:has(input:checked) { background: var(--pink); color: var(--white); }
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.alert-error { background: #FFE1EC; border: 2px solid var(--raspberry); color: var(--raspberry); }
.alert-success { background: #E3F8EF; border: 2px solid #1F9D6F; color: #1F9D6F; }
.alert-info { background: var(--blush-deep); border: 2px solid var(--plum); }

/* ---------- Empty states ---------- */
.empty-state { text-align: center; padding: 70px 20px; }
.empty-state h2 { font-family: var(--font-hand); font-size: 38px; color: var(--raspberry); }

/* ---------- Footer ---------- */
.site-footer { background: var(--plum); color: var(--blush); padding: 40px 0; margin-top: 60px; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 20px; }
.site-footer a { opacity: .85; }
.site-footer a:hover { opacity: 1; text-decoration: underline; }

/* ==========================================================================
   ADMIN
   ========================================================================== */
.admin-shell { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.admin-sidebar { background: var(--plum); color: var(--blush); padding: 28px 20px; }
.admin-sidebar .logo { color: var(--cream); margin-bottom: 30px; font-size: 24px; }
.admin-sidebar .logo .dot { color: var(--pink-soft); }
.admin-nav a {
  display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px;
  font-weight: 600; margin-bottom: 4px; font-size: 15px;
}
.admin-nav a:hover { background: rgba(255,255,255,0.08); }
.admin-nav a.active { background: var(--pink); color: var(--white); }
.admin-user { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.2); font-size: 13px; }
.admin-user form { margin-top: 8px; }
.admin-user button { background: none; border: none; color: var(--pink-soft); font-weight: 700; padding: 0; }

.admin-main { padding: 36px 40px; background: var(--blush); }
.admin-topbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.admin-topbar h1 { font-size: 28px; }
.admin-topbar a.view-site { font-family: var(--font-mono); font-size: 12px; border-bottom: 2px solid var(--pink); }

.kpi-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; margin-bottom: 32px; }
.kpi-card { background: var(--cream); border: 2px solid var(--plum); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.kpi-card .label { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; color: var(--raspberry); letter-spacing: .04em; }
.kpi-card .value { font-family: var(--font-mono); font-size: 28px; font-weight: 700; margin-top: 6px; }
.kpi-card .sub { font-size: 12px; color: #7a5163; margin-top: 4px; }

.panel { background: var(--cream); border: 2px solid var(--plum); border-radius: var(--radius); padding: 24px; margin-bottom: 28px; box-shadow: var(--shadow); }
.panel h2 { font-size: 19px; margin-bottom: 14px; }

.bar-chart { display: flex; align-items: flex-end; gap: 6px; height: 140px; }
.bar-chart .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; }
.bar-chart .bar { width: 100%; background: var(--pink); border-radius: 4px 4px 0 0; min-height: 2px; border: 2px solid var(--plum); border-bottom: none; }
.bar-chart .bar-label { font-family: var(--font-mono); font-size: 9px; margin-top: 6px; color: #7a5163; writing-mode: vertical-rl; transform: rotate(180deg); height: 30px; }

table.data-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 13px; }
table.data-table th { text-align: left; padding: 10px 8px; border-bottom: 2px solid var(--plum); text-transform: uppercase; font-size: 11px; }
table.data-table td { padding: 10px 8px; border-bottom: 1px solid var(--blush-deep); vertical-align: middle; }
table.data-table tr:hover td { background: var(--blush); }
.thumb-cell { width: 46px; height: 46px; border-radius: 6px; object-fit: cover; border: 2px solid var(--plum); }
.status-pill { font-family: var(--font-mono); font-size: 11px; padding: 3px 10px; border-radius: 999px; border: 2px solid var(--plum); text-transform: uppercase; }
.status-active { background: var(--mint); }
.status-draft { background: var(--kraft); }
.status-sold { background: var(--pink-soft); }
.status-archived { background: #ddd; }
.inline-edit { width: 90px; padding: 5px 8px; border: 2px solid var(--plum); border-radius: 6px; font-family: var(--font-mono); font-size: 13px; }
.table-actions { display: flex; gap: 8px; }
.icon-btn { border: 2px solid var(--plum); border-radius: 8px; padding: 5px 10px; background: var(--white); font-size: 13px; }
.icon-btn.danger { color: var(--raspberry); border-color: var(--raspberry); }

.filter-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 18px; flex-wrap: wrap; }
.filter-bar select, .filter-bar input { padding: 9px 12px; border: 2px solid var(--plum); border-radius: 8px; font-family: var(--font-body); }

/* Product form / media uploader */
.media-dropzone {
  border: 3px dashed var(--plum); border-radius: var(--radius); padding: 30px; text-align: center;
  background: var(--blush); cursor: pointer; margin-bottom: 16px;
}
.media-dropzone.dragover { background: var(--pink-soft); }
.media-dropzone .hint { font-family: var(--font-mono); font-size: 12px; color: var(--raspberry); margin-top: 6px; }
.media-preview-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 12px; margin-bottom: 20px; }
.media-preview-item { position: relative; border: 2px solid var(--plum); border-radius: 10px; overflow: hidden; aspect-ratio: 1/1; background: var(--blush-deep); }
.media-preview-item img, .media-preview-item video { width: 100%; height: 100%; object-fit: cover; }
.media-preview-item .remove-media {
  position: absolute; top: 4px; right: 4px; background: var(--raspberry); color: var(--white);
  border: none; border-radius: 50%; width: 26px; height: 26px; font-weight: 700; line-height: 1;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }

/* ---------- Login ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--blush); }
.login-card { background: var(--cream); border: 2px solid var(--plum); border-radius: var(--radius); padding: 40px; width: 360px; box-shadow: var(--shadow-lift); }
.login-card .logo { justify-content: center; margin-bottom: 6px; }
.login-card p.tag { text-align: center; font-family: var(--font-hand); font-size: 20px; color: var(--raspberry); margin-bottom: 24px; }

/* ---------- Responsive ---------- */
@media (max-width: 880px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .checkout-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-sidebar { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
  .admin-nav { display: flex; gap: 4px; overflow-x: auto; }
  .admin-user { display: none; }
  .form-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
}

/* ---------- Logo-billede ---------- */
.logo-img { height: 48px; width: auto; display: block; }
.logo-img-sm { height: 36px; width: auto; display: block; }
.logo-img-footer { height: 40px; width: auto; display: block; filter: brightness(0) invert(1) sepia(1) saturate(2) hue-rotate(300deg); opacity: 0.9; }

/* ---------- Rabat-badge på produktkort ---------- */
.discount-badge {
  position: absolute; top: -14px; right: -10px; z-index: 3;
  background: var(--raspberry); color: var(--white); font-family: var(--font-mono);
  font-size: 12px; font-weight: 700; padding: 5px 10px; border-radius: 999px;
  border: 2px solid var(--plum); transform: rotate(4deg);
}
.price-was {
  font-family: var(--font-mono); font-size: 13px; color: #9a6070;
  text-decoration: line-through; margin-bottom: 2px;
}
.price-tag-sale { background: var(--raspberry); color: var(--white); }
.price-tag-sale::before { background: var(--pink-soft) !important; }

/* ---------- Featured / spotlight sektion ---------- */
.featured-section { margin: 50px 0 10px; }
.featured-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 30px;
  padding-bottom: 20px;
}
.featured-card {
  background: linear-gradient(135deg, var(--blush-deep) 0%, var(--cream) 100%);
  border: 3px solid var(--plum); border-radius: var(--radius);
  overflow: visible; position: relative;
  transition: transform .18s ease, box-shadow .18s ease;
  box-shadow: var(--shadow-lift);
}
.featured-card:hover { transform: translateY(-6px) rotate(-0.3deg); }
.featured-badge {
  position: absolute; top: -16px; right: 16px; z-index: 3;
  background: var(--pink); color: var(--white); border: 2px solid var(--plum);
  font-family: var(--font-hand); font-size: 18px; padding: 4px 14px;
  border-radius: 999px; transform: rotate(2deg);
}
.featured-media {
  aspect-ratio: 3/2; overflow: hidden; border-radius: 11px 11px 0 0;
  background: var(--blush-deep); position: relative;
}
.featured-media img, .featured-media video { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Rabat på detaljevisning ---------- */
.price-block { margin-bottom: 14px; }
.price-block .price-tag-big { display: inline-block; }
.price-original { font-family: var(--font-mono); font-size: 18px; color: #9a6070;
  text-decoration: line-through; margin-right: 8px; }
.savings-note { display: inline-block; background: var(--raspberry); color: var(--white);
  font-family: var(--font-mono); font-size: 12px; padding: 3px 10px; border-radius: 999px;
  margin-left: 8px; vertical-align: middle; }

/* ---------- Kurv: rabatkode ---------- */
.discount-row { background: #E3F8EF; border: 2px solid #1F9D6F; border-radius: 10px; padding: 10px 14px; display: flex; justify-content: space-between; align-items: center; font-family: var(--font-mono); font-size: 13px; margin-bottom: 6px; }
.discount-form { display: flex; gap: 8px; margin-top: 14px; }
.discount-form input { flex: 1; padding: 10px 14px; border: 2px solid var(--plum); border-radius: 8px; font-family: var(--font-mono); font-size: 14px; text-transform: uppercase; }
.subtotal-line { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 14px; margin-bottom: 6px; color: #7a5163; }

/* ---------- Bogføring ---------- */
.moms-box { background: linear-gradient(135deg, var(--blush-deep), var(--cream)); border: 3px solid var(--plum); border-radius: var(--radius); padding: 28px; margin-bottom: 28px; }
.moms-box h2 { margin-bottom: 18px; }
.moms-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.moms-cell { background: var(--white); border: 2px solid var(--plum); border-radius: 10px; padding: 14px; }
.moms-cell .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; color: var(--raspberry); }
.moms-cell .value { font-family: var(--font-mono); font-size: 22px; font-weight: 700; margin-top: 4px; }
.moms-cell.highlight { background: var(--pink); color: var(--white); border-color: var(--raspberry); }
.moms-cell.highlight .label { color: var(--pink-soft); }
.receipt-thumb { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; border: 2px solid var(--plum); cursor: pointer; }
.receipt-link { font-family: var(--font-mono); font-size: 11px; color: var(--raspberry); text-decoration: underline; }
.cat-badge { font-family: var(--font-mono); font-size: 11px; padding: 2px 8px; border-radius: 999px; border: 2px solid var(--plum); background: var(--blush); text-transform: uppercase; }

/* ---------- Rabatkode admin ---------- */
.code-pill { font-family: var(--font-mono); font-weight: 700; font-size: 14px; background: var(--plum); color: var(--cream); padding: 4px 12px; border-radius: 999px; letter-spacing: .06em; }

/* ---------- Om os ---------- */
.about-grid { display: grid; grid-template-columns: 1.4fr 0.6fr; gap: 60px; padding: 20px 0 80px; align-items: start; }
.about-headline { font-size: clamp(28px, 4vw, 42px); margin-bottom: 20px; }
.about-text p { font-size: 16px; line-height: 1.7; margin-bottom: 16px; }
.about-text h3 { margin: 32px 0 12px; font-size: 22px; }
.about-divider { text-align: center; font-size: 22px; color: var(--pink); margin: 32px 0; letter-spacing: 12px; }
.about-sidebar { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 100px; }
.about-card { background: var(--cream); border: 2px solid var(--plum); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.about-card h3 { margin-bottom: 8px; font-size: 20px; }
.about-card p { margin: 0; font-size: 15px; line-height: 1.6; }
.about-initial { width: 52px; height: 52px; border-radius: 50%; background: var(--pink); color: var(--white); border: 2px solid var(--plum); display: flex; align-items: center; justify-content: center; font-family: var(--font-display); font-size: 26px; font-weight: 700; margin-bottom: 12px; }
@media (max-width: 880px) {
  .about-grid { grid-template-columns: 1fr; }
  .about-sidebar { position: static; }
}

/* ---------- Shop filterpanel ---------- */
.filter-panel { background: var(--cream); border: 2px solid var(--plum); border-radius: var(--radius); padding: 18px 20px; margin: 16px 0 24px; }
.filter-form { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.filter-group { display: flex; flex-direction: column; gap: 8px; }
.filter-label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--raspberry); }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chip { font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 5px 12px; border: 2px solid var(--plum); border-radius: 999px; background: var(--white); cursor: pointer; transition: background .1s; }
.filter-chip:hover { background: var(--blush-deep); }
.filter-chip.active { background: var(--plum); color: var(--cream); }
.filter-clear { font-family: var(--font-mono); font-size: 12px; color: var(--raspberry); border-bottom: 2px solid var(--raspberry); align-self: flex-end; padding-bottom: 2px; }

/* ---------- Admin CMS-bjælke ---------- */
.cms-bar {
  background: var(--plum); color: var(--cream);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px; font-family: var(--font-mono); font-size: 12px;
  position: sticky; top: 0; z-index: 9000; gap: 12px; flex-wrap: wrap;
}
.cms-bar-info { opacity: .85; }
.cms-bar-actions { display: flex; align-items: center; gap: 8px; }
.cms-toggle-btn {
  background: var(--pink); color: var(--white); border: none; border-radius: 6px;
  padding: 5px 14px; font-family: var(--font-mono); font-size: 12px; font-weight: 700;
  cursor: pointer; transition: background .15s;
}
.cms-toggle-btn:hover { background: var(--raspberry); }
.cms-admin-link { color: var(--pink-soft); border-bottom: 1px solid var(--pink-soft); font-weight: 700; }
.cms-logout-btn {
  background: none; border: 1px solid rgba(255,255,255,.3); color: var(--cream);
  border-radius: 6px; padding: 4px 10px; font-family: var(--font-mono); font-size: 11px;
  cursor: pointer; opacity: .7;
}
.cms-logout-btn:hover { opacity: 1; }

/* Gem-bjælke (vises under cms-bar når redigeringstilstand er aktiv) */
.cms-save-bar {
  background: #1F9D6F; color: var(--white);
  display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px; font-family: var(--font-mono); font-size: 13px;
  position: sticky; top: 36px; z-index: 8999; gap: 12px;
}
.cms-save-info { font-weight: 700; }

/* ---------- Redigerbare elementer ---------- */
body.cms-editing [data-cms-key] {
  outline: 2px dashed var(--pink);
  outline-offset: 3px;
  border-radius: 3px;
  cursor: text;
  transition: outline .15s, background .15s;
  min-width: 20px;
  display: inline-block;
}
body.cms-editing [data-cms-key]:hover {
  background: rgba(255, 79, 160, .08);
  outline-color: var(--raspberry);
}
body.cms-editing [data-cms-key]:focus {
  background: rgba(255, 79, 160, .12);
  outline: 2px solid var(--raspberry);
  outline-offset: 3px;
}
body.cms-editing [data-cms-key].cms-changed {
  outline-color: #1F9D6F;
  background: rgba(31, 157, 111, .08);
}

/* Blok-elementer (p, h1 osv.) fylder hele bredden */
body.cms-editing p[data-cms-key],
body.cms-editing h1[data-cms-key],
body.cms-editing h2[data-cms-key],
body.cms-editing h3[data-cms-key] {
  display: block;
}

/* ---------- Toast-notifikation ---------- */
.cms-toast {
  position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
  background: var(--plum); color: var(--cream);
  padding: 12px 24px; border-radius: 999px; font-family: var(--font-mono); font-size: 14px;
  opacity: 0; transition: opacity .25s, transform .25s; z-index: 99999; white-space: nowrap;
}
.cms-toast.cms-toast-error { background: var(--raspberry); }
.cms-toast.cms-toast-show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- Logo blend-fixes ---------- */
/* Sitet (lys baggrund): multiply blender den lyse logo-baggrund væk */
.logo-img { mix-blend-mode: multiply; }

/* Admin-sidebar: lys kremfarvet baggrund så logoet passer naturligt */
.admin-sidebar { background: var(--cream) !important; border-right: 2px solid var(--plum); }
.admin-sidebar .logo-img-sm { mix-blend-mode: multiply; }

/* Admin-nav links: mørk plum tekst mod lys baggrund */
.admin-nav a { color: var(--plum) !important; }
.admin-nav a:hover, .admin-nav a.active { background: var(--blush-deep) !important; color: var(--raspberry) !important; }
.admin-user { color: var(--plum) !important; border-top-color: var(--blush-deep) !important; }
.admin-user button { color: var(--raspberry) !important; }

/* Login-side: logoet blender ind mod blush-baggrund */
.login-page .logo-img { mix-blend-mode: multiply; }

/* ---------- Logo mix-blend opdatering ---------- */
.logo-img        { mix-blend-mode: multiply; background: none; }
.logo-img-sm     { mix-blend-mode: multiply; background: none; }
.login-page .logo-img { mix-blend-mode: multiply; }

/* ---------- Media dropzone redesign ---------- */
.media-dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; border: 3px dashed var(--plum); border-radius: var(--radius);
  background: var(--blush); padding: 32px 20px; cursor: pointer;
  transition: background .2s, border-color .2s; min-height: 100px;
  text-align: center; margin: 12px 0;
}
.media-dropzone:hover, .media-dropzone.dragover {
  background: var(--blush-deep); border-color: var(--raspberry);
}
.media-dropzone span { font-size: 15px; color: var(--plum); font-weight: 600; }
.media-dropzone .hint { font-family: var(--font-mono); font-size: 11px; color: #9a6070; }
.media-dropzone .drop-icon { font-size: 32px; line-height: 1; }

.media-preview-grid {
  display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 16px;
}
.media-preview-item {
  position: relative; width: 90px; height: 90px; border-radius: 10px;
  overflow: hidden; border: 2px solid var(--plum); background: var(--blush-deep);
  flex-shrink: 0;
}
.media-preview-item img, .media-preview-item video {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.media-preview-item .remove-media {
  position: absolute; top: 4px; right: 4px;
  background: var(--raspberry); color: white; border: none;
  border-radius: 50%; width: 22px; height: 22px;
  font-size: 14px; line-height: 22px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; padding: 0;
}

/* ---------- Footer tekst-logo ---------- */
.footer-logo-text {
  font-family: var(--font-display); font-size: 28px; font-weight: 700;
  color: var(--pink-soft); letter-spacing: -0.5px; line-height: 1;
  text-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.footer-logo-text span { color: var(--cream); }
.footer-logo-dk { font-size: 20px; opacity: .75; }

/* ---------- Logo størrelser opdateret ---------- */
.logo-img    { height: 68px !important; }   /* site header — større */
.logo-img-sm { height: 56px !important; }   /* admin sidebar — større */

/* ---------- Juridiske sider ---------- */
.legal-page { max-width: 780px; margin: 40px auto 80px; }
.legal-page h1 { font-size: clamp(26px, 4vw, 38px); margin-bottom: 6px; }
.legal-meta { font-family: var(--font-mono); font-size: 12px; color: #9a6070; margin-bottom: 36px; }
.legal-page h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 20px; border-top: 2px solid var(--blush-deep); }
.legal-page h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.legal-page p, .legal-page li { font-size: 15px; line-height: 1.75; color: var(--plum); margin-bottom: 10px; }
.legal-page ul { padding-left: 22px; margin-bottom: 12px; }
.legal-page a { color: var(--raspberry); text-decoration: underline; }
.legal-box { background: var(--blush); border: 2px solid var(--plum); border-radius: var(--radius); padding: 20px 24px; margin: 20px 0; }
.legal-box h3 { margin-top: 0; }
.legal-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 14px; }
.legal-table th { background: var(--plum); color: var(--cream); padding: 10px 14px; text-align: left; font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; }
.legal-table td { padding: 10px 14px; border-bottom: 1px solid var(--blush-deep); vertical-align: top; }
.legal-table tr:last-child td { border-bottom: none; }

/* ---------- Admin-link i footer (diskret, nederste højre hjørne) ---------- */
.footer-admin-link {
  position: absolute; bottom: 10px; right: 16px;
  font-family: var(--font-mono); font-size: 10px;
  color: rgba(255,255,255,.2); text-decoration: none;
  letter-spacing: .08em;
}
.footer-admin-link:hover { color: rgba(255,255,255,.5); }
.site-footer { position: relative; }
