/* maddzan-shop */
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/dm-sans-400.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/dm-sans-600.woff2') format('woff2');
}
@font-face {
  font-family: 'DM Sans';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/dm-sans-700.woff2') format('woff2');
}

* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --petal: #FDEEF2;
  --rose: #FF6FAE; /* the logo's pink, same as maddzan.se */
  --rose-soft: #F8D3DF;
  --berry: #A8385F;
  --plum: #3A1F2C;
  --mauve: #85606F;
  --milk: #FFFFFF;
  --mist: #4A4447;
  --mist-deep: #5C5559;

  --r-hero: 56px;
  --r-card: 32px;
  --r-inner: 22px;
  --r-pill: 999px;

  --gutter: clamp(16px, 3vw, 32px);
}

body {
  background: var(--petal);
  color: var(--plum);
  font-family: 'DM Sans', -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body > * { flex-shrink: 0; }
body > main { flex: 1 0 auto; }

::selection { background: var(--rose); color: var(--plum); }

a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }

:focus-visible {
  outline: 3px solid var(--plum);
  outline-offset: 3px;
  border-radius: 12px;
}

/* TOP NAV: two short pills above the rose header, no bar behind them.
   Menu on the left, language + Kassan on the right. The current choice is
   lifted out in pink; Kassan is the only dark element. */
/* Three columns so the offers (.announce, shop pages only) sit exactly in
   the middle whatever the two sides measure. Pages without them keep the
   links left and Kassan right. */
.topnav {
  margin: 12px var(--gutter) 0;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  font-size: 14px;
}
.topnav-links { justify-self: start; }
.topnav .announce { grid-column: 2; margin: 0; }
.topnav-right { grid-column: 3; justify-self: end; }
.topnav-links, .topnav-lang {
  display: inline-flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--milk);
}
.topnav-links { flex-wrap: wrap; gap: 2px; }
.topnav-links a, .topnav-lang a {
  padding: 8px 16px;
  border-radius: var(--r-pill);
  color: var(--plum);
  transition: background 0.2s;
}
.topnav-links a:hover, .topnav-lang a:hover { background: var(--petal); }
.topnav-links a.active, .topnav-lang a.active { background: var(--rose-soft); font-weight: 600; }
.topnav-lang a { padding: 8px 12px; font-size: 13px; }
/* The currency each language sells in */
.topnav-cur { margin-left: 2px; font-weight: 400; color: var(--mauve); }
.topnav-right { display: flex; align-items: center; gap: 10px; }
.topnav-checkout {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  min-height: 44px;
  background: var(--mist);
  color: var(--milk);
  border-radius: var(--r-pill);
  font-weight: 600;
  transition: background 0.2s;
}
.topnav-checkout:hover { background: var(--mist-deep); }
.topnav-checkout span {
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border-radius: var(--r-pill);
  background: var(--rose);
  color: var(--plum);
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* HERO: one grey pillow, the same grey as the Kassan button and toast */
.header {
  margin: 12px var(--gutter) 0;
  padding: clamp(16px, 2.5vw, 24px) clamp(20px, 3.5vw, 40px);
  background: var(--mist);
  border-radius: var(--r-card);
}
.header h1 {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--milk);
}
/* Product pages: the poster owns the h1, the shop name links home. */
.header .header-name {
  font-weight: 700;
  font-size: clamp(32px, 5vw, 56px);
  line-height: 1;
  letter-spacing: -0.025em;
}
.header .header-name a { color: var(--milk); }
/* Shop and product pages: the logo (stamp and name, white) instead of text,
   with less padding round it than round a text heading. */
.header:has(.logo) { padding: clamp(10px, 1.5vw, 16px) clamp(14px, 2vw, 24px); }
.header .logo img { display: block; width: min(100%, 720px); height: auto; }

/* ANNOUNCEMENT (rendered by js/config.js) */
.announce {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 18px var(--gutter) 0;
  font-size: 14px;
}
.announce:empty { display: none; }
.announce span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--milk);
  border-radius: var(--r-pill);
  color: var(--mauve);
}
.announce code {
  font-family: inherit;
  font-weight: 600;
  color: var(--plum);
  background: var(--rose-soft);
  padding: 2px 10px;
  border-radius: var(--r-pill);
}

/* PRODUCT GRID */
.grid {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: 40px var(--gutter) 48px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 24px;
}
.grid:not(:has(> *)) { min-height: 100vh; }
.grid-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--mauve);
  padding: 60px 0;
}
.grid-empty a { color: var(--berry); text-decoration: underline; }

.card {
  background: var(--milk);
  border-radius: var(--r-card);
  padding: 10px;
  display: flex;
  flex-direction: column;
}

/* "Tryck & Frakt": the first grid cell, only as tall as its content rather
   than stretched to the product cards beside it. */
.card-info {
  align-self: start;
  gap: 16px;
  padding: clamp(20px, 3vw, 32px);
}
.card-info .product-facts { font-size: 15px; gap: 10px; padding: 18px 20px; }
.card-info strong { font-weight: 700; white-space: nowrap; }

.card-image {
  aspect-ratio: 4 / 3;
  border-radius: var(--r-inner);
  background: var(--rose-soft);
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
/* The whole poster, never cropped, whatever its proportions, with a little
   pink around it. The shadow follows the picture, not the box. */
.card-image img {
  width: 100%;
  height: 100%;
  padding: 4%;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(58, 42, 50, 0.18));
}
/* <picture> only picks WebP or JPG; lay out as if the <img> stood alone. */
.card-image picture, .zoom picture { display: contents; }
/* A plain block here: as display: contents its <source> could become a flex
   item of .product-media and push the picture down by the gap. */
.product-media picture { display: block; }
/* The whole picture is the button that opens it large. */
.card-zoom {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
}
.card-zoom:focus-visible { outline-offset: -6px; border-radius: var(--r-inner); }

/* PRODUCT PAGE (/p/<slug>.html, scripts/build-pages.js) */
.product {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(1320px - 2 * var(--gutter));
  margin: 24px auto 48px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: clamp(20px, 4vw, 48px);
  align-items: start;
}
.product-media { position: relative; display: flex; flex-direction: column; gap: 16px; }
/* height: auto keeps the proportions; width/height in the HTML only reserve
   the space before the picture loads. */
.product-media img { width: 100%; height: auto; border-radius: var(--r-card); background: var(--rose-soft); }
.product-media .ribbon { top: 16px; left: 16px; }
/* Over the picture: card-zoom's height: 100% would follow the column. */
.product-zoom { height: auto; border-radius: var(--r-card); }
.product-zoom:focus-visible { outline-offset: 4px; border-radius: var(--r-card); }
/* All the pictures in a row under the large one (product.js), square tiles
   that scroll sideways when they don't fit. */
.product-thumbs { display: flex; gap: 10px; overflow-x: auto; padding: 4px; margin: -4px; }
.product-thumb {
  flex: 0 0 auto;
  width: 84px;
  aspect-ratio: 1;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 16px;
  overflow: hidden;
  background: var(--rose-soft);
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s, border-color 0.15s;
}
.product-thumb:hover { opacity: 1; }
.product-thumb[aria-pressed="true"] { opacity: 1; border-color: var(--berry); }
.product-media .product-thumb picture { height: 100%; }
.product-media .product-thumb img { height: 100%; object-fit: cover; border-radius: 0; }
.product-media .card-image-placeholder {
  aspect-ratio: 4 / 5;
  border-radius: var(--r-card);
  background: var(--rose-soft);
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media .card-image-placeholder svg { stroke: var(--rose); width: 56px; height: 56px; }
/* Not sticky: it would slide down beside the picture on scroll, so the two
   columns no longer start level. */
.product-info {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: clamp(24px, 4vw, 40px);
  background: var(--milk);
  border-radius: var(--r-card);
}
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: var(--mauve); }
.breadcrumb a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }
.product-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; line-height: 1.1; letter-spacing: -0.02em; }
.product-price .card-price { font-size: 26px; }
.product-desc { font-size: 16px; line-height: 1.7; color: var(--mauve); }
.product-facts {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 16px;
  border-radius: var(--r-inner);
  background: var(--petal);
  font-size: 14px;
}
.product-facts li { display: flex; align-items: center; gap: 10px; }
.product-facts li::before {
  content: '';
  flex-shrink: 0;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
}
.product-shipping { font-size: 14px; line-height: 1.6; color: var(--mauve); }
.product-shipping a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }

/* "Fler posters" under the poster (build-pages.js): four across, two on a
   tablet, a row to swipe through on a phone. */
.more {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(1320px - 2 * var(--gutter));
  margin: 0 auto 48px;
}
.more-title { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 16px 4px; }
.more-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.more .card-title { font-size: 20px; }
.card-link { display: block; width: 100%; height: 100%; }
@media (max-width: 1024px) {
  .more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
}

/* LARGE IMAGE (zoom.js) */
.zoom {
  margin: auto;
  padding: 0;
  border: none;
  border-radius: var(--r-card);
  background: var(--milk);
  max-width: min(92vw, 1200px);
  max-height: 92vh;
  overflow: hidden;
}
.zoom::backdrop { background: rgba(58, 31, 44, 0.6); }
.zoom img { display: block; max-width: 100%; max-height: 92vh; object-fit: contain; }
.zoom-close, .zoom-step {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: var(--milk);
  color: var(--plum);
  font-size: 24px;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(58, 31, 44, 0.2);
}
.zoom-close:hover, .zoom-step:hover { background: var(--rose-soft); }
/* Previous and next, at the middle of each side, only with several pictures. */
.zoom-step { top: 50%; transform: translateY(-50%); font-size: 30px; }
.zoom-prev { left: 12px; right: auto; }
.zoom:not(.zoom-many) .zoom-step { display: none; }
.card-image-placeholder svg { stroke: var(--rose); width: 44px; height: 44px; }
.card-image-placeholder span { display: none; }

.ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  background: var(--milk);
  color: var(--plum);
  font-size: 13px;
  font-weight: 600;
}
.ribbon.sale { background: var(--plum); color: var(--milk); }

.card-body {
  padding: 18px 12px 8px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.card-title {
  font-size: 24px;
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
/* The poster's name leads to its own page. */
.card-title a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.card-title a:hover { text-decoration-line: underline; text-decoration-color: var(--rose); }
.card-size {
  font-size: 13px;
  font-weight: 600;
  color: var(--mauve);
  margin-top: 4px;
}
.card-desc {
  font-size: 14px;
  line-height: 1.6;
  color: var(--mauve);
  margin-top: 6px;
  flex: 1;
}
.card-desc:empty { margin-top: 0; }

.card-meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 16px;
}
.card-price {
  font-size: 22px;
  font-weight: 600;
  color: var(--berry);
}
.card-price-original {
  font-size: 14px;
  color: var(--mauve);
  text-decoration: line-through;
  margin-left: 8px;
}
.card-savings {
  display: inline-block;
  margin-left: 8px;
  padding: 2px 10px;
  border-radius: var(--r-pill);
  background: var(--rose-soft);
  color: var(--plum);
  font-size: 12px;
  font-weight: 600;
  vertical-align: middle;
}
.card-stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--mauve);
  white-space: nowrap;
}
.card-stock::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #5BA27A;
}
.card-stock.out::before { background: var(--mauve); }

.btn-buy {
  width: 100%;
  padding: 14px 0;
  border: none;
  border-radius: var(--r-pill);
  background: var(--rose-soft);
  color: var(--plum);
  font-size: 15px;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.btn-buy:hover { background: var(--rose); }
.btn-buy:active { transform: scale(0.98); }
.btn-buy:disabled {
  cursor: not-allowed;
  background: var(--petal);
  color: var(--mauve);
  transform: none;
}

/* CART FAB */
.cart-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  width: 64px;
  height: 64px;
  border: none;
  border-radius: 50%;
  background: var(--rose);
  color: var(--plum);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(255, 111, 174, 0.4);
  transition: transform 0.2s;
}
.cart-fab:hover { transform: scale(1.06); background: #F25A9E; }
.cart-fab svg { width: 26px; height: 26px; }
.cart-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  border-radius: var(--r-pill);
  background: var(--mist);
  color: var(--milk);
  font-size: 12px;
  font-weight: 600;
  display: none;
  align-items: center;
  justify-content: center;
}
.cart-badge.visible { display: flex; }

/* TOAST */
.toast {
  position: fixed;
  right: 24px;
  bottom: 104px;
  z-index: 99;
  max-width: min(360px, calc(100vw - 32px));
  padding: 12px 20px;
  border-radius: var(--r-pill);
  /* Same grey as the Kassan button and the cart badge. */
  background: var(--mist);
  color: var(--milk);
  font-size: 14px;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}
.toast.visible { opacity: 1; transform: translateY(0); }
/* A sentence rather than "Tillagd": two lines don't fit a pill. */
.toast.long { border-radius: 18px; }

/* LANGUAGE HINT (langhint.js): bottom left, clear of the cart button, under
   the toast */
.langhint {
  position: fixed;
  left: 24px;
  bottom: 24px;
  z-index: 98;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  max-width: min(440px, calc(100vw - 136px));
  padding: 10px 10px 10px 18px;
  border-radius: 18px;
  background: var(--milk);
  color: var(--plum);
  box-shadow: 0 10px 30px rgba(58, 31, 44, 0.18);
  font-size: 14px;
}
.langhint a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--rose-soft);
  font-weight: 600;
  color: var(--plum);
}
.langhint a:hover { background: var(--petal); }
.langhint button {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--mauve);
  font-size: 20px;
  line-height: 1;
}
.langhint button:hover { background: var(--petal); }
@media (max-width: 720px) {
  .langhint { left: 16px; bottom: 16px; max-width: calc(100vw - 112px); }
}

/* CART DRAWER: a floating sheet */
.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(58, 31, 44, 0.32);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}
.drawer-backdrop.open { opacity: 1; pointer-events: auto; }

.drawer {
  position: fixed;
  top: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 201;
  width: 400px;
  max-width: calc(100vw - 24px);
  background: var(--milk);
  border-radius: var(--r-card);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  transform: translateX(calc(100% + 24px));
  /* visibility keeps the closed drawer out of the tab order */
  visibility: hidden;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), visibility 0.35s;
}
/* visible at once on open (focusFirst runs in the same task); the hide on
   close still waits for the slide-out */
.drawer.open { transform: translateX(0); visibility: visible; transition-property: transform; }
.drawer:focus { outline: none; }
.drawer-head {
  padding: 24px 24px 12px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 28px;
  font-weight: 600;
}
.drawer-close {
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--petal);
  font-size: 22px;
  line-height: 1;
}
.drawer-close:hover { background: var(--rose-soft); }
.drawer-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.drawer-removed {
  margin: 0 20px 8px;
  white-space: pre-line;
  padding: 12px 16px;
  border-radius: 16px;
  background: var(--rose-soft);
  font-size: 14px;
  line-height: 1.5;
}
.drawer-removed:empty { display: none; }
.drawer-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px;
  margin-bottom: 8px;
  border-radius: var(--r-inner);
  background: var(--petal);
}
.drawer-item img, .drawer-item .ph {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 16px;
  object-fit: contain;
  background: var(--rose-soft);
}
/* Whole poster with a pink edge, as on the cards. */
.drawer-item img { padding: 4px; }
.drawer-item-body { flex: 1; font-size: 14px; }
.drawer-item-title { font-weight: 600; margin-bottom: 6px; }
.drawer-item-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--mauve);
  font-size: 13px;
}
.drawer-item-qtyctl {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  border-radius: var(--r-pill);
  background: var(--milk);
}
.drawer-item-qtyctl button {
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 50%;
  background: none;
  font-size: 15px;
  line-height: 1;
}
.drawer-item-qtyctl button:hover:not(:disabled) { background: var(--rose-soft); }
.drawer-item-qtyctl button:disabled { color: var(--rose-soft); cursor: default; }
.drawer-item-qtyctl span { min-width: 18px; text-align: center; font-weight: 600; color: var(--plum); }
.drawer-item-remove {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: none;
  color: var(--mauve);
  font-size: 20px;
  line-height: 1;
}
.drawer-item-remove:hover { background: var(--milk); color: var(--plum); }

.drawer-foot { padding: 16px 28px 28px; }
.drawer-ship { display: block; font-size: 13px; color: var(--mauve); margin-bottom: 6px; }
.drawer-ship-select {
  width: 100%;
  margin-bottom: 8px;
  padding: 11px 14px;
  border: none;
  border-radius: 14px;
  background: var(--petal);
  color: var(--plum);
  font: inherit;
  font-size: 15px;
}
.drawer-ship-select[aria-invalid="true"] { box-shadow: 0 0 0 2px var(--berry); }
/* "Välj land" from checkout.js; empty, it takes no room but stays a live region */
.drawer-ship-error { font-size: 13px; font-weight: 600; color: var(--berry); margin-bottom: 6px; }
.drawer-ship-error:empty { margin: 0; }
.drawer-ship-hint { font-size: 13px; color: var(--mauve); margin-bottom: 18px; }
.drawer-ship-hint a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }
/* "Lägg till en poster till …" above the total (cart.js) */
.drawer-offer-nudge { margin-bottom: 14px; font-size: 14px; font-weight: 600; color: var(--berry); }
.drawer-offer-nudge[hidden] { display: none; }
/* Free-shipping hint above the total (cart.js) */
.drawer-freeship { margin-bottom: 14px; font-size: 14px; color: var(--plum); }
.drawer-freeship[hidden] { display: none; }
.drawer-freeship-bar {
  display: block;
  height: 8px;
  margin-top: 6px;
  border-radius: var(--r-pill);
  background: var(--petal);
  overflow: hidden;
}
.drawer-freeship-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--rose);
  transition: width 0.3s ease;
}
.drawer-freeship.reached { font-weight: 600; }
/* Items and shipping above the total (cart.js) */
.drawer-sum { margin: 0 0 8px; font-size: 14px; color: var(--plum); }
.drawer-sum div { display: flex; justify-content: space-between; margin-bottom: 4px; }
.drawer-sum div[hidden] { display: none; }
.drawer-sum dd { margin: 0; }
.drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 6px;
}
.drawer-total #drawerTotal {
  font-size: 24px;
}
.drawer-note { font-size: 13px; color: var(--mauve); margin-bottom: 18px; }
.drawer-note a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }
.btn-checkout {
  width: 100%;
  padding: 16px 0;
  border: none;
  border-radius: var(--r-pill);
  background: var(--rose);
  color: var(--plum);
  font-size: 16px;
  font-weight: 600;
  transition: background 0.2s;
}
.btn-checkout:hover { background: #F25A9E; }
.btn-checkout:disabled { opacity: 0.5; cursor: not-allowed; }
.drawer-empty {
  padding: 56px 12px;
  text-align: center;
  color: var(--mauve);
  font-size: 15px;
}
.drawer-empty .btn-continue {
  margin-top: 18px;
  padding: 11px 22px;
  border: none;
  border-radius: var(--r-pill);
  background: var(--rose-soft);
  color: var(--plum);
  font-weight: 600;
  transition: background 0.2s;
}
.drawer-empty .btn-continue:hover { background: var(--rose); }

/* ABOUT / FOOTER: the white contact card at the bottom of every page.
   The stamp logo first, then contact, company details on the right. */
.about {
  width: calc(100% - 2 * var(--gutter));
  max-width: calc(1320px - 2 * var(--gutter));
  /* auto top margin keeps it at the bottom on short pages */
  margin: auto auto var(--gutter);
  padding: clamp(28px, 5vw, 48px);
  background: var(--milk);
  border-radius: var(--r-card);
  display: grid;
  grid-template-columns: auto 1fr 1fr;
  gap: 24px 40px;
  align-items: start;
  scroll-margin-top: 16px; /* breathing room when jumped to */
}
.about-stamp { display: block; width: 140px; height: auto; }
.about h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; }
.about p { font-size: 16px; line-height: 1.7; color: var(--mauve); }
.about a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }
.about .about-intro { font-size: 17px; color: var(--plum); max-width: 48ch; margin-bottom: 10px; }
.about-company { text-align: right; }
#grid ~ .about { margin-bottom: 104px; }
.about-company p { font-size: 14px; }
.about-company .about-name { font-size: 16px; font-weight: 600; color: var(--plum); }
/* The withdrawal button, last, under the company details. */
.about-withdraw { margin-top: 14px; }
.about .about-withdraw .btn-link {
  display: inline-block;
  padding: 10px 22px;
  border-radius: var(--r-pill);
  background: var(--rose);
  color: var(--plum);
  font-weight: 600;
  text-decoration: none;
  line-height: 1.4;
  transition: background 0.2s;
}
.about .about-withdraw .btn-link:hover { background: #F25A9E; }

/* CONTENT PAGES (om, frakt, villkor, integritet) */
.page {
  width: calc(100% - 2 * var(--gutter));
  max-width: 760px;
  margin: 24px auto 64px;
  padding: clamp(28px, 5vw, 48px);
  background: var(--milk);
  border-radius: var(--r-card);
}
.page h1 { font-size: 32px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 24px; }
.page h2 { font-size: 20px; font-weight: 600; margin: 32px 0 10px; }
.page h2:first-child { margin-top: 0; }
.page p, .page li { font-size: 15px; line-height: 1.7; color: var(--mauve); margin-bottom: 10px; }
.page ul { padding-left: 20px; }
.page li::marker { color: var(--rose); }
.page a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }
/* A block set apart in the text, e.g. the model withdrawal form. */
.page-box { margin: 16px 0; padding: 16px 20px; border-radius: var(--r-inner); background: var(--petal); }
.page-box p:last-child { margin-bottom: 0; }

/* WITHDRAWAL (angra.html, en/withdraw.html, withdraw.js): form, check, receipt */
.withdraw { display: flex; flex-direction: column; gap: 16px; margin-top: 24px; }
.withdraw[hidden], .withdraw .field[hidden] { display: none; }
.withdraw h2 { margin: 8px 0 0; }
.withdraw p { margin-bottom: 0; }
.field { display: flex; flex-direction: column; gap: 6px; border: none; font-size: 14px; font-weight: 600; }
.field legend { margin-bottom: 6px; }
.field small { font-size: 13px; font-weight: 400; color: var(--mauve); }
.field input, .field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 2px solid transparent;
  border-radius: 14px;
  background: var(--petal);
  color: var(--plum);
  font: inherit;
  font-size: 15px;
  font-weight: 400;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--rose); }
.choice { display: flex; align-items: center; gap: 10px; padding: 4px 0; font-size: 15px; font-weight: 400; cursor: pointer; }
.choice input { width: 18px; height: 18px; accent-color: var(--berry); }
.withdraw-summary {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 8px 20px;
  padding: 16px 20px;
  border-radius: var(--r-inner);
  background: var(--petal);
  font-size: 15px;
}
.withdraw-summary dt { font-weight: 600; }
.withdraw-summary dd { white-space: pre-line; overflow-wrap: anywhere; color: var(--mauve); }
.withdraw .withdraw-error { padding: 12px 16px; border-radius: 14px; background: var(--rose-soft); color: var(--plum); }
.btn-plain {
  align-self: center;
  padding: 8px 16px;
  border: none;
  background: none;
  color: var(--berry);
  font-size: 15px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* CENTERED MESSAGES (404, tack, avbruten, stängt) */
.center-msg {
  width: 100%;
  max-width: 560px;
  margin: clamp(48px, 10vw, 110px) auto 64px;
  padding: 0 var(--gutter);
  text-align: center;
}
.center-msg h1 { font-size: 48px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; }
.center-msg p { color: var(--mauve); font-size: 15px; line-height: 1.7; margin-bottom: 20px; }
.center-msg .btn-link {
  display: inline-block;
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: var(--rose);
  color: var(--plum);
  font-weight: 600;
  transition: background 0.2s;
}
.center-msg .btn-link:hover { background: #F25A9E; }
.center-msg .center-note { margin: 32px 0 0; font-size: 14px; }
.center-msg .center-note a { color: var(--berry); text-decoration: underline; text-underline-offset: 3px; }

/* 404: the rose panel fills the rest of the screen, the number is the picture */
.notfound {
  margin: 16px var(--gutter) var(--gutter);
  padding: clamp(48px, 8vw, 96px) 24px;
  background: var(--rose);
  border-radius: var(--r-hero);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.notfound-code {
  font-size: clamp(120px, 26vw, 280px);
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--petal);
  margin-bottom: 28px;
}
.notfound h1 { font-size: clamp(26px, 4vw, 36px); font-weight: 700; letter-spacing: -0.02em; margin-bottom: 8px; }
.notfound p:not(.notfound-code) { font-size: 16px; line-height: 1.6; max-width: 36ch; margin-bottom: 28px; }
.notfound .btn-link {
  padding: 14px 28px;
  border-radius: var(--r-pill);
  background: var(--milk);
  color: var(--plum);
  font-weight: 600;
  transition: background 0.2s;
}
.notfound .btn-link:hover { background: var(--rose-soft); }

@media (max-width: 720px) {
  /* No room for three columns: links and Kassan share a row (wrapping if
     they must), the offers get the row below. */
  .topnav { display: flex; flex-wrap: wrap; justify-content: space-between; }
  .topnav .announce { order: 3; flex-basis: 100%; }
  .topnav-links a { padding: 8px 12px; }
  .header { border-radius: 28px; }
  .about { grid-template-columns: 1fr; }
  .about-stamp { width: 104px; }
  .product { grid-template-columns: 1fr; }
  /* The next card peeks in at the edge, so it reads as a row to swipe. */
  .more-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 75%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 8px;
  }
  .more-grid > .card { scroll-snap-align: start; }
  .about-company { text-align: left; }
  .grid { gap: 16px; padding-top: 28px; }
  .cart-fab { right: 16px; bottom: 16px; }
  .toast { right: 16px; bottom: 92px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}
