:root {
  --bg: #fafaf8;
  --ink: #353535;
  --muted: #6b6b64;
  --line: #e4e2dc;
  --accent: #00c194;
}

* { box-sizing: border-box; }

body {
  font-family: -apple-system, Segoe UI, Roboto, sans-serif;
  background: var(--bg);
  color: var(--ink);
  margin: 0;
  padding: 0 1.5rem 3rem;
}

header {
  padding: 2rem 0 1rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 2rem;
}

h1 { margin: 0 0 .25rem; font-size: 1.6rem; }
.subtitle { color: var(--muted); margin: 0; font-size: .9rem; }

.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 1rem;
}

.product {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1rem;
  background: white;
}

.product h3 { margin: 0 0 .5rem; font-size: 1rem; }
.product .price { color: var(--muted); margin-bottom: .75rem; }

button {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 6px;
  padding: .55rem 1rem;
  cursor: pointer;
  font-size: .9rem;
}

button:disabled { background: #b7b7ae; cursor: not-allowed; }

.cart, #checkout-panel {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  background: white;
}

#checkout-panel {
  max-width: 480px;
  margin-top: 2rem;
}

#checkout-panel.hidden { display: none; }

.cart h2, #checkout-panel h2 { margin-top: 0; font-size: 1.1rem; }
.total { font-weight: 600; }
.note { font-size: .78rem; color: var(--muted); margin-top: 1rem; }

label { display: block; margin-bottom: .75rem; font-size: .85rem; }
select, input { width: 100%; padding: .5rem; margin-top: .25rem; border: 1px solid var(--line); border-radius: 6px; }

.ship-option {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: .6rem .75rem;
  margin: .5rem 0;
  cursor: pointer;
}
.ship-option.selected { border-color: var(--accent); background: #f0f7f3; }

pre#order-result {
  background: #f4f4f0;
  padding: .75rem;
  border-radius: 8px;
  font-size: .8rem;
  white-space: pre-wrap;
}
/* Variant swatches: override the global green button style */
.swatch-btn { background: white; color: var(--ink); border: 1px solid #d1d5db; border-radius: 9999px; }
.swatch-btn.selected { background: #eafaf5; border-color: var(--accent); }

/* Cart: a touch more prominent than the product cards next to it */
#cart-sidebar {
  border-top: 3px solid var(--accent);
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  padding: 1.25rem;
}
#cart-sidebar h2 { font-size: 1rem; margin-bottom: .75rem; }
#cart-sidebar #cart-items { font-size: .9rem; }
#cart-sidebar > p { font-size: 1rem; padding-top: .75rem; }
#cart-sidebar #checkout-btn { padding: .7rem 1rem; font-size: .95rem; }

/* Cart quantity stepper + remove button (override the global green button) */
.qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 9999px;
  overflow: hidden;
  background: white;
}
.qty-stepper button {
  background: transparent;
  color: var(--ink);
  border-radius: 0;
  width: 2rem;
  height: 1.9rem;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
}
.qty-stepper button:hover { background: #eafaf5; color: #00a37c; }
.qty-value { min-width: 1.75rem; text-align: center; font-weight: 600; font-size: .9rem; }
.cart-remove {
  background: transparent;
  color: #9ca3af;
  padding: 0 .25rem;
  font-size: 1.1rem;
  line-height: 1;
}
.cart-remove:hover { color: #dc2626; }

/* Homepage hero collage captions */
.collage-label {
  display: block;
  padding: .45rem .5rem;
  border-top: 1px solid var(--line);
  font-size: .8rem;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
@media (max-width: 640px) { .collage-label { font-size: .7rem; padding: .35rem .25rem; } }

/* Site header + main menu */
/* Sticky: stays at the top while scrolling. Negative margins cancel the
   body's side padding so the bar's background spans the full width. */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: .75rem 2rem;
  margin: 0 -1.5rem .5rem;
  padding: 18px 1.5rem;
  background: var(--bg);
  transition: box-shadow .2s;
}
header.site-header.is-scrolled { box-shadow: 0 2px 12px rgba(0, 0, 0, .08); }
html { scroll-padding-top: 110px; }  /* in-page anchors land below the bar */
/* The logo file (2000x1414) is mostly transparent padding: the wordmark spans
   x 17.4-79.1%, y 27.5-70.2%. The box below shows only that area, so the
   visible logo is 56px tall while the bar stays short. */
.site-logo { position: relative; display: block; width: 115px; height: 58px; overflow: hidden; flex-shrink: 0; }
.site-logo img { position: absolute; top: -36px; left: -32px; width: 185px; height: 131px; max-width: none; }
.site-menu { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-menu a {
  padding: .5rem .85rem;
  border-radius: 9999px;
  font-size: .95rem;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}
.site-menu a:hover { background: #eafaf5; color: #00a37c; }
.site-menu a.active { background: #111827; color: white; }
.menu-cart { display: inline-flex; align-items: center; gap: .4rem; }
.cart-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.35rem;
  height: 1.35rem;
  padding: 0 .35rem;
  border-radius: 9999px;
  background: var(--accent);
  color: white;
  font-size: .75rem;
  font-weight: 700;
}
.cart-badge.is-empty { background: #e5e7eb; color: #6b7280; }
.site-menu a.menu-cta { background: var(--accent); color: white; margin-left: .25rem; }
.site-menu a.menu-cta:hover, .site-menu a.menu-cta.active { background: #00a37c; color: white; }
.site-subtitle { font-size: .75rem; margin: .5rem 0 0; }

/* Phones: categories are in the pill row below, so the menu keeps only
   Varukorg + Kassa next to the logo. */
@media (max-width: 640px) {
  header.site-header { flex-wrap: nowrap; }
  .site-logo { width: 82px; height: 42px; }
  .site-logo img { top: -26px; left: -23px; width: 133px; height: 94px; }
  html { scroll-padding-top: 90px; }
  header.site-header { gap: .5rem; }
  .site-menu { flex-wrap: nowrap; gap: .15rem; }
  .site-menu a:not(.menu-cart):not(.menu-cta) { display: none; }
  .site-menu a { font-size: .8rem; padding: .4rem .55rem; }
  .menu-cart { gap: .25rem; }
}

/* Site footer: dark, full width (negative margins cancel the body's side
   and bottom padding). */
.site-footer {
  margin: 4rem -1.5rem -3rem;
  padding: 3rem 1.5rem 1.5rem;
  background: #16231d;
  color: #d4ddd8;
  font-size: .875rem;
}
.footer-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h2 { font-size: .75rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #8fa89b; margin: 0 0 .75rem; }
.site-footer p { margin: 0 0 .5rem; line-height: 1.6; }
.site-footer a { color: white; text-decoration: none; }
.site-footer a:hover { color: #5ee0bd; }
.site-footer ul { list-style: none; margin: 0; padding: 0; line-height: 2; }
.footer-muted { color: #8fa89b; }
.footer-legal { margin: 0 !important; font-size: .75rem; color: #8fa89b; }

/* Same crop as the header logo (wordmark only), 50px tall */
.footer-logo { position: relative; display: block; width: 99px; height: 50px; overflow: hidden; margin-bottom: .9rem; }
.footer-logo img { position: absolute; top: -31px; left: -28px; width: 159px; height: 112px; max-width: none; }
.footer-social { display: flex; gap: .5rem; margin-top: 1rem; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 9999px;
  background: rgba(255, 255, 255, .08); color: white;
  transition: background .15s, color .15s;
}
.footer-social a:hover { background: var(--accent); color: white; }

/* Dedicated cart page: roomier lines than the sidebar */
.cart-page-lines .cart-line { padding: .9rem 0; font-size: 1rem; }
/* From tablet width up, each line is one row: name | stepper | price | remove.
   The two inner rows of the shared cart markup are flattened with
   display: contents so their children land in the grid directly. */
@media (min-width: 640px) {
  .cart-page-lines .cart-line {
    display: grid;
    grid-template-columns: 1fr auto 6.5rem 2rem;
    align-items: center;
    column-gap: 1.25rem;
  }
  .cart-page-lines .cart-line > div { display: contents; }
  .cart-page-lines .cart-line .leading-snug { grid-column: 1; grid-row: 1; }
  .cart-page-lines .cart-line .qty-stepper { grid-column: 2; grid-row: 1; }
  .cart-page-lines .cart-line .font-medium { grid-column: 3; grid-row: 1; text-align: right; }
  .cart-page-lines .cart-line .cart-remove { grid-column: 4; grid-row: 1; justify-self: end; }
}

/* Köpvillkor page */
.terms { line-height: 1.7; }
.terms h2 { font-size: 1.15rem; font-weight: 600; margin: 2.25rem 0 .6rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.terms h3 { font-size: 1rem; font-weight: 600; margin: 1.25rem 0 .4rem; }
.terms p { margin: 0 0 .6rem; color: #4b5563; }
.terms ul { list-style: disc; margin: 0 0 .9rem 1.25rem; color: #4b5563; }
.terms a { color: #00a37c; text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }
.terms-intro { font-size: .9rem; color: var(--muted) !important; margin-top: .5rem !important; }
.terms-lang { font-size: .85rem; margin-top: 1rem !important; }

/* Terms: sticky table of contents with scroll marker (in the cart column) */
.terms-toc details {
  background: white;
  border: 1px solid #e5e7eb;
  border-top: 3px solid var(--accent);
  border-radius: .5rem;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .06);
  margin-bottom: 1rem;
}
.terms-toc summary {
  cursor: pointer;
  padding: 1rem 1.25rem;
  font-weight: 600;
  font-size: 1rem;
  list-style-position: inside;
}
#toc {
  position: relative;          /* offsetTop of links is measured from here */
  list-style: none;
  margin: 0;
  padding: 0 .5rem .75rem;
  max-height: 60vh;
  overflow-y: auto;
  font-size: .85rem;
  line-height: 1.35;
}
#toc a {
  display: block;
  padding: .4rem .75rem;
  border-left: 3px solid transparent;
  border-radius: 0 .375rem .375rem 0;
  color: var(--muted);
  text-decoration: none;
  transition: background .15s, color .15s, border-color .15s;
}
#toc a:hover { color: var(--ink); background: #f3f4f6; }
#toc a.active { color: #00785c; font-weight: 600; background: #eafaf5; border-left-color: var(--accent); }
.terms h2 { scroll-margin-top: 110px; }

@media (min-width: 768px) {
  .terms-toc { position: sticky; top: 110px; }
  .terms-toc details { margin-bottom: 0; }
  .terms-toc summary { list-style: none; pointer-events: none; }  /* always open on desktop */
  .terms-toc summary::-webkit-details-marker { display: none; }
  #toc { max-height: calc(100vh - 190px); }
}

/* Footer bottom row: org.nr/VAT left, payment + shipping logos right. The
   logos sit on white chips because they're made for light backgrounds. */
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 1rem 2rem; margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(255, 255, 255, .1);
}
.footer-partners { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem .9rem; }
.footer-partners span { font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
.footer-partners ul { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; margin: 0; padding: 0; }
.footer-partners li { display: flex; align-items: center; justify-content: center; height: 2rem; padding: 0 .7rem; background: white; border-radius: .4rem; }
.footer-partners img { height: 16px; width: auto; display: block; }

/* Language switch (flags) in the menu */
.lang-switch { display: inline-flex; align-items: center; gap: .3rem; margin-left: .5rem; padding-left: .75rem; border-left: 1px solid var(--line); }
.lang-switch button {
  background: transparent; padding: .3rem; border-radius: .35rem; line-height: 0;
  opacity: .45; transition: opacity .15s, background .15s;
}
.lang-switch button:hover { opacity: .85; background: #eafaf5; }
.lang-switch button[aria-pressed="true"] { opacity: 1; box-shadow: inset 0 0 0 2px var(--accent); }
.lang-switch img { width: 24px; height: 15px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .08); display: block; }
@media (max-width: 640px) {
  .lang-switch { margin-left: .1rem; padding-left: .3rem; gap: 0; }
  .lang-switch button { padding: .25rem .2rem; }
  .lang-switch img { width: 18px; height: 12px; }
}

/* Cookie consent banner */
#cookie-banner {
  position: fixed; z-index: 100; left: 1rem; right: 1rem; bottom: 1rem;
  max-width: 56rem; margin: 0 auto;
  display: flex; align-items: center; gap: 1rem 1.5rem; flex-wrap: wrap;
  padding: 1.1rem 1.25rem;
  background: white; border: 1px solid #e5e7eb; border-top: 3px solid var(--accent);
  border-radius: .75rem; box-shadow: 0 10px 40px rgba(0, 0, 0, .18);
}
#cookie-banner .cookie-text { flex: 1 1 22rem; }
#cookie-banner h2 { font-size: 1rem; font-weight: 600; margin: 0 0 .25rem; }
#cookie-banner p { font-size: .85rem; color: #4b5563; margin: 0; line-height: 1.5; }
#cookie-banner a { color: #00a37c; text-decoration: underline; text-underline-offset: 2px; }
#cookie-banner .cookie-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
/* ID selectors so these beat Tailwind's button reset (injected after style.css) */
#cookie-banner button {
  padding: .65rem 1.15rem; border-radius: .4rem; font-size: .9rem; font-weight: 600;
  white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s;
}
#cookie-banner .cookie-accept { background: var(--accent); color: white; border: 1px solid var(--accent); }
#cookie-banner .cookie-accept:hover { background: #00a37c; border-color: #00a37c; }
#cookie-banner .cookie-necessary { background: white; color: var(--ink); border: 1px solid #d1d5db; }
#cookie-banner .cookie-necessary:hover { border-color: var(--accent); color: #00a37c; }
.footer-legal .cookie-settings { color: #8fa89b; text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 640px) {
  #cookie-banner { left: .5rem; right: .5rem; bottom: .5rem; }
  #cookie-banner .cookie-actions { width: 100%; }
  #cookie-banner .cookie-actions button { flex: 1; }
}

/* Product gallery: one square box; the thumbnail strip takes its height from
   the main image instead of making the box taller. */
.product-media { display: flex; flex-direction: column; aspect-ratio: 1 / 1; }
.product-main-img { flex: 1 1 auto; min-height: 0; }
.product-main-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.product-thumbs { flex: 0 0 auto; display: flex; gap: .5rem; padding: .5rem; border-top: 1px solid #f0f0ee; overflow-x: auto; }
.product-thumb {
  flex: 0 0 auto; width: 64px; height: 64px; padding: 0; overflow: hidden;
  background: white; border: 2px solid transparent; border-radius: .4rem;
  opacity: .7; transition: opacity .15s, border-color .15s;
}
.product-thumb:hover { opacity: 1; background: white; }
.product-thumb.is-active { border-color: var(--accent); opacity: 1; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Cookie & privacy page */
.policy-table-wrap { overflow-x: auto; margin: .5rem 0 1rem; }
.policy-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.policy-table th, .policy-table td { text-align: left; vertical-align: top; padding: .55rem .7rem; border-bottom: 1px solid #eceae4; }
.policy-table th { font-weight: 600; color: var(--ink); background: #f7f7f4; }
.policy-table td:first-child { font-family: ui-monospace, Consolas, monospace; font-size: .8rem; white-space: nowrap; }
.consent-box { padding: 0 1.25rem 1.25rem; }
.consent-box p { font-weight: 600; margin: 0 0 .9rem; }
#consent-status .consent-box button { width: 100%; padding: .65rem 1rem; border-radius: .4rem; background: var(--accent); color: white; font-weight: 600; }
#consent-status .consent-box button:hover { background: #00a37c; }

/* Skeleton placeholders (shown until content loads; same size as the real thing) */
.skeleton-card { background: white; border: 1px solid #e5e7eb; border-radius: .5rem; overflow: hidden; }
.skeleton-img { aspect-ratio: 1 / 1; }
.skeleton-img, .skeleton-line {
  background: linear-gradient(90deg, #f0f0ec 25%, #e6e6e1 50%, #f0f0ec 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.4s ease-in-out infinite;
}
.skeleton-line { height: .8rem; border-radius: .25rem; margin: .45rem 0; }
@keyframes skeleton-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton-img, .skeleton-line { animation: none; } }
/* Product images: light background while the photo itself loads */
#product-grid img, .product-main-img img, .hero-collage img { background: #f3f3ef; }

/* Inkl./exkl. moms switch */
.vat-switch { display: inline-flex; align-items: center; margin-left: .5rem; padding: 2px; border: 1px solid #d1d5db; border-radius: 9999px; background: white; }
.vat-switch button { background: transparent; color: var(--muted); padding: .3rem .65rem; border-radius: 9999px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.vat-switch button:hover { color: var(--ink); background: transparent; }
.vat-switch button[aria-pressed="true"] { background: #111827; color: white; }
.vat-switch--pills { display: none; }
.vat-note { font-size: .75rem; font-weight: 400; color: var(--muted); }
/* Phones: header is full, so the switch moves to the end of the category row */
@media (max-width: 640px) {
  .site-menu .vat-switch { display: none; }
  .vat-switch--pills { display: inline-flex; margin-left: auto; }
}

/* Order confirmation (tack.html) */
.order-check {
  width: 3rem; height: 3rem; border-radius: 9999px; display: flex; align-items: center; justify-content: center;
  background: #eafaf5; color: #00a37c; font-size: 1.5rem; font-weight: 700;
}
.order-h2 { font-size: 1.05rem; font-weight: 600; margin: 2rem 0 .6rem; }
.order-table td:first-child { font-family: inherit; font-size: .875rem; white-space: normal; }
.order-table tfoot td { border-bottom: 0; padding-top: .75rem; }
.order-cta {
  display: block; width: 100%; text-align: center; padding: .65rem 1rem; border-radius: .4rem;
  background: var(--accent); color: white; font-weight: 600;
}
.order-cta:hover { background: #00a37c; }
.order-table .text-right { text-align: right; }

/* Kassa layout: checkout | contact | cart (desktop), checkout + cart with
   contact below (tablet), stacked (phone). */
.kassa-layout { display: grid; gap: 1.5rem; grid-template-columns: minmax(0, 1fr); grid-template-areas: "checkout" "cart" "contact"; }
.kassa-layout > * { margin-top: 0 !important; }
.kassa-main { grid-area: checkout; }
.kassa-layout #cart-sidebar { grid-area: cart; }
.kassa-layout #contact-box { grid-area: contact; }
@media (min-width: 768px) {
  .kassa-layout { grid-template-columns: minmax(0, 1fr) 340px; grid-template-areas: "checkout cart" "contact cart"; align-items: start; }
}
/* Three columns only when the checkout keeps ~610 px (narrower forces Kustom
   into its phone layout). */
@media (min-width: 1200px) {
  /* 660 px = Kustom's content width (~610 px) + the box padding */
  .kassa-layout { grid-template-columns: minmax(0, 660px) minmax(200px, 1fr) 340px; grid-template-areas: "checkout contact cart"; }
}

/* Contact box */
.contact-box { background: white; border: 1px solid #e5e7eb; border-radius: .5rem; padding: 1.25rem; }
.contact-box h2 { font-size: 1rem; font-weight: 600; margin: 0 0 .35rem; }
.contact-box > p { font-size: .85rem; color: #4b5563; line-height: 1.5; margin: 0 0 1rem; }
.contact-whatsapp {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .7rem 1rem; border-radius: .5rem; background: #25D366; color: white; font-weight: 600; font-size: .9rem;
  transition: background .15s;
}
.contact-whatsapp:hover { background: #1ebe5a; }
.contact-row { display: flex; align-items: center; gap: .65rem; padding: .7rem 0; border-top: 1px solid #f0f0ee; color: var(--ink); }
.contact-whatsapp + .contact-row { margin-top: .9rem; }
.contact-row svg { color: #00a37c; flex-shrink: 0; }
.contact-row span { display: flex; flex-direction: column; line-height: 1.3; font-size: .875rem; min-width: 0; overflow-wrap: anywhere; }
.contact-row small { color: var(--muted); font-size: .75rem; }
.contact-row:hover strong { color: #00a37c; }

/* Business ("Företag") mode: soft blue-grey header + strip. Green buttons and
   the logo stay the same so it is still clearly the same shop. */
:root { --b2b-tint: #eaf0f6; --b2b-strip: #dbe5ef; --b2b-ink: #1f3a56; }
body.is-business header.site-header { background: var(--b2b-tint); }
.b2b-strip { display: none; }
body.is-business .b2b-strip {
  display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap;
  margin: -.5rem -1.5rem .5rem; padding: .45rem 1.5rem;
  background: var(--b2b-strip); color: var(--b2b-ink); font-size: .8rem;
}
.b2b-strip button {
  background: transparent; color: var(--b2b-ink); padding: .2rem .6rem; font-size: .78rem;
  border: 1px solid rgba(31, 58, 86, .35); border-radius: 9999px;
}
.b2b-strip button:hover { background: white; }
body.is-business .vat-switch button[aria-pressed="true"] { background: var(--b2b-ink); }

/* Phones: product cards are ~165 px wide, so price goes above the button */
@media (max-width: 640px) {
  #product-grid .flex.items-center.justify-between.mt-2 { flex-direction: column; align-items: stretch; gap: .45rem; }
  #product-grid .flex.items-center.justify-between.mt-2 > * { text-align: center; }
  #product-grid .flex.items-center.justify-between.mt-2 > span:first-child { text-align: left; white-space: nowrap; }
}

/* Variant options that don't exist with the other current choices, or are
   sold out: still clickable (product.js jumps to the closest combination). */
.swatch-btn.is-unavailable { opacity: .45; border-style: dashed; text-decoration: line-through; text-decoration-color: rgba(0, 0, 0, .45); }
.swatch-btn.is-unavailable.selected { opacity: 1; text-decoration: none; }
.swatch-btn.is-soldout { opacity: .6; }
.swatch-btn.is-soldout::after { content: "·"; margin-left: .15rem; color: #dc2626; font-weight: 700; }

/* "Vit finns bara som: Utan hål" under a choice group */
.swatch-hint { margin: .45rem 0 0; font-size: .8rem; color: #b45309; }

/* Long words (German "Unternehmensinformationen") must not widen the page on phones */
.terms h1, .terms h2, main h1 { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 640px) { .terms h1 { font-size: 1.6rem; } }

/* "fr." before a card price when variants cost different amounts */
.price-from { font-weight: 400; color: var(--muted); font-size: .8em; }

/* 404 page */
.notfound-code { font-size: 4.5rem; line-height: 1; font-weight: 700; color: #d9eee6; letter-spacing: -.02em; }
.notfound-secondary { display: inline-block; padding: .7rem 1.5rem; border-radius: .4rem; border: 1px solid #d1d5db; background: white; font-weight: 600; }
.notfound-secondary:hover { border-color: var(--accent); color: #00a37c; }
.notfound-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.notfound-cats a { padding: .4rem .9rem; border-radius: 9999px; border: 1px solid #e5e7eb; font-size: .875rem; }
.notfound-cats a:hover { border-color: var(--accent); color: #00a37c; }

/* "60,00 kr per st · 10 st" under the price for multi-packs */
.unit-price { margin: .15rem 0 0; font-size: .85rem; color: #047857; font-weight: 500; }

/* Category intro box above the product grid */
.category-info { background: #f0fdf4; border: 1px solid #d1fae5; border-radius: .75rem; padding: 1rem 1.25rem; grid-column: 1 / -1; }
/* Cards are direct items of .shop-grid, next to the intro box. */
.product-grid-items { display: contents; }
/* Wide screens: box over 2 columns, first two products beside it (row height = the taller of the two). */
@media (min-width: 1024px) { .category-info { grid-column: span 2; } }
.category-info p { max-width: 75ch; }
.category-info[hidden] { display: none; }
.category-info h1 { font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: #064e3b; margin: 0; }
.category-info .category-lead { font-weight: 600; color: #047857; margin: .2rem 0 .5rem; }
.category-info p { font-size: .925rem; line-height: 1.6; color: #374151; margin: 0 0 .5rem; }
.category-info p:last-child { margin-bottom: 0; }
.category-more { display: none; }
@media (max-width: 767px) {
  .category-info { padding: .85rem 1rem; }
  .category-info h1 { font-size: 1.2rem; }
  /* Phones: first paragraph clamped to 3 lines, the rest behind "Läs mer" (still in the HTML for Google). */
  .category-info:not(.is-open) p:not(.category-lead) ~ p { display: none; }
  .category-info:not(.is-open) p:not(.category-lead) { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
  .category-info:not(.is-open) .category-more { display: inline-block; background: none; border: 0; padding: 0; margin-top: .25rem; font-size: .875rem; font-weight: 600; color: #047857; text-decoration: underline; cursor: pointer; }
}

/* Product description: intro + spec list */
.product-desc { margin-top: 1rem; color: #4b5563; line-height: 1.6; }
.product-desc p { margin: 0 0 .5rem; }
.product-specs { list-style: none; margin: .5rem 0 0; padding: 0; border-top: 1px solid #e5e7eb; font-size: .9rem; }
.product-specs li { padding: .4rem 0 .4rem 1.1rem; border-bottom: 1px solid #f3f4f6; position: relative; }
.product-specs li::before { content: ""; position: absolute; left: .2rem; top: .95rem; width: .4rem; height: .4rem; border-radius: 50%; background: #10b981; }

/* Mobile menu (phones): bar = logo · Varukorg · Kassa · ☰. The ☰ opens the
   whole menu as a panel under the bar (categories, terms, cart, customer type,
   language with names). Desktop never shows the button. */
.menu-toggle { display: none; }
@media (max-width: 640px) {
  .menu-toggle {
    display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    width: 44px; height: 44px; margin-left: .1rem; border-radius: 10px; background: transparent; color: var(--ink);
  }
  .menu-toggle:hover { background: #eafaf5; }
  .menu-toggle-bars, .menu-toggle-bars::before, .menu-toggle-bars::after {
    display: block; width: 22px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .2s, opacity .2s;
  }
  .menu-toggle-bars { position: relative; }
  .menu-toggle-bars::before, .menu-toggle-bars::after { content: ""; position: absolute; left: 0; }
  .menu-toggle-bars::before { top: -7px; }
  .menu-toggle-bars::after { top: 7px; }
  header.menu-open .menu-toggle-bars { background: transparent; }
  header.menu-open .menu-toggle-bars::before { transform: translateY(7px) rotate(45deg); }
  header.menu-open .menu-toggle-bars::after { transform: translateY(-7px) rotate(-45deg); }

  /* Bar: bigger tap targets, flags only inside the menu */
  .site-menu { margin-left: auto; }
  .site-menu a.menu-cart, .site-menu a.menu-cta { min-height: 40px; font-size: .85rem; padding: .45rem .7rem; }
  .site-menu .lang-switch { display: none; }

  /* Open: the menu becomes a panel under the bar */
  header.menu-open .site-menu {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: .15rem;
    padding: .75rem 1rem 1.25rem; background: var(--bg);
    border-top: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0, 0, 0, .12);
    max-height: calc(100vh - 80px); overflow-y: auto;
  }
  header.menu-open .site-menu a,
  header.menu-open .site-menu a:not(.menu-cart):not(.menu-cta) {
    display: flex; align-items: center; min-height: 48px; padding: .6rem .9rem;
    font-size: 1.05rem; border-radius: 10px;
  }
  header.menu-open .site-menu a.menu-cart { justify-content: space-between; }
  header.menu-open .site-menu a.menu-cta { justify-content: center; margin: .35rem 0 0; font-weight: 600; }
  header.menu-open .site-menu .vat-switch { display: flex; margin: .9rem 0 0; }
  header.menu-open .site-menu .vat-switch button { flex: 1; min-height: 40px; font-size: .9rem; }
  header.menu-open .site-menu .lang-switch {
    display: flex; gap: .4rem; margin: .75rem 0 0; padding: .75rem 0 0; border-left: 0; border-top: 1px solid var(--line);
  }
  header.menu-open .site-menu .lang-switch button {
    flex: 1; display: flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 44px; padding: .4rem; border: 1px solid var(--line); border-radius: 10px; font-size: .85rem; color: var(--ink);
  }
  header.menu-open .site-menu .lang-switch button::after { content: attr(title); }
  header.menu-open .site-menu .lang-switch img { width: 22px; height: 14px; }

  /* Category pills: one row that scrolls sideways; the customer-type switch is in the menu */
  #category-nav { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  #category-nav::-webkit-scrollbar { display: none; }
  #category-nav > a { flex-shrink: 0; }
  #category-nav .vat-switch--pills { display: none; }
}
@media (max-width: 640px) {
  /* In the menu all languages look tappable; the chosen one gets the green ring */
  header.menu-open .site-menu .lang-switch button { opacity: 1; background: white; }
}
