/*
	Snackwell – butikens design. Bootstrap 5.3.8 + egna komponenter.
	Färger, typsnitt och mått kommer från designmockupen (snackwell-b2b-mockup).
*/

/* Typsnitt: Exo och Montserrat, variabla (Fontsource 5.3.0, OFL) */

@font-face { font-family: "Exo"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/exo/exo-latin-ext-wght-normal.woff2) format("woff2-variations"), url(../fonts/exo/exo-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Exo"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/exo/exo-latin-wght-normal.woff2) format("woff2-variations"), url(../fonts/exo/exo-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/montserrat/montserrat-latin-ext-wght-normal.woff2) format("woff2-variations"), url(../fonts/montserrat/montserrat-latin-ext-wght-normal.woff2) format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Montserrat"; font-style: normal; font-display: swap; font-weight: 100 900; src: url(../fonts/montserrat/montserrat-latin-wght-normal.woff2) format("woff2-variations"), url(../fonts/montserrat/montserrat-latin-wght-normal.woff2) format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* Tokens och Bootstrap-variabler */

:root {
  --brand: #ff5a1f;
  --brand-dark: #e8430a;
  --brand-soft: #fff1eb;
  --ink: #0b1f3a;
  --navy-mid: #173455;
  --navy-deep: #07162b;
  --ink-soft: #3d4652;
  --muted: #6f7376;
  --subtle: #9a9a96;
  --line: #e6e6e4;
  --line-strong: #cfcfcb;
  --soft: #f5f5f2;
  --on-dark-muted: #c5ccd6;
  --on-dark-subtle: #8391a3;
  --success: #27853d;
  --danger: #b42318;
  --white: #fff;
  /* Radier: xs för etiketter, sm för knappar och fält, md för kort och paneler, lg för stora ytor (hero, banner, bildyta) */
  --radius-xs: 4px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 14px;
  /* Den orange kanten (hero, banner, sidfot, notis, vald adress) */
  --accent-bar: 6px;
  /* Avstånd mellan sektioner på en sida; delar av samma block står 16 px isär */
  --section-gap: clamp(32px, 5vw, 56px);
  --drawer-width: min(420px, 92vw);
  --font-display: "Exo", "Montserrat", Arial, sans-serif;
  --font-text: "Montserrat", Arial, sans-serif;
  /* Textstorlekar: 11, 12, 13, 14, 16, 18 och 20 px. Större rubriker skalas med clamp() där de används */
  --fs-2xs: .6875rem;
  --fs-xs: .75rem;
  --fs-sm: .8125rem;
  --fs-md: .875rem;
  --fs-base: 1rem;
  --fs-lg: 1.125rem;
  --fs-xl: 1.25rem;

  --bs-body-font-family: var(--font-display);
  --bs-body-font-size: 1rem;
  --bs-body-color: var(--ink);
  --bs-body-color-rgb: 11, 31, 58;
  --bs-body-bg: #fff;
  --bs-emphasis-color: var(--ink);
  --bs-heading-color: var(--ink);
  --bs-secondary-color: var(--muted);
  --bs-link-color: var(--ink);
  --bs-link-color-rgb: 11, 31, 58;
  --bs-link-hover-color: var(--brand-dark);
  --bs-link-hover-color-rgb: 232, 67, 10;
  --bs-border-color: var(--line);
  --bs-border-radius: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-md);
  --bs-primary: #ff5a1f;
  --bs-primary-rgb: 255, 90, 31;
  --bs-focus-ring-color: rgba(255, 90, 31, .25);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
body { margin: 0; color: var(--ink); background: #fff; font-family: var(--font-display); font-size: 16px; -webkit-font-smoothing: antialiased; }
/* Sidfoten ligger längst ner även på korta sidor */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
main { flex: 1 0 auto; }
/* Platsen för rullningslisten är alltid reserverad (scrollbar-gutter), så Bootstraps utfyllnad när en låda eller modal öppnas behövs inte */
body, .modal { padding-right: 0 !important; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 800; letter-spacing: -.01em; color: var(--ink); overflow-wrap: break-word; }
p, li, td, dd { font-family: var(--font-text); }
img { max-width: 100%; }
.site-width { max-width: 1540px; margin-left: auto; margin-right: auto; padding-left: clamp(18px, 3vw, 48px); padding-right: clamp(18px, 3vw, 48px); }
.skip-link { position: absolute; z-index: 2000; top: 8px; left: 8px; padding: 10px 14px; color: #fff; background: var(--ink); border-radius: var(--radius-sm); }
.text-muted { color: var(--muted) !important; }
.link-button { padding: 0; border: 0; color: var(--muted); background: none; font-size: var(--fs-xs); text-decoration: underline; }
.link-button:hover { color: var(--brand-dark); }

/* Knappar */

/* Bootstraps .btn ser ut som .btn-brand: versaler, spärrad text och samma höjd (ramen räknas in i utfyllnaden) */
.btn { --bs-btn-font-family: var(--font-display); --bs-btn-font-weight: 800; --bs-btn-line-height: 1.2; --bs-btn-border-radius: var(--radius-sm); --bs-btn-padding-x: 19px; --bs-btn-padding-y: 12px; --bs-btn-font-size: var(--fs-md); text-transform: uppercase; letter-spacing: .035em; }
.btn-sm { --bs-btn-padding-x: 15px; --bs-btn-padding-y: 9px; --bs-btn-font-size: var(--fs-sm); --bs-btn-border-radius: var(--radius-sm); }
.btn-lg { --bs-btn-padding-y: 15px; --bs-btn-font-size: var(--fs-base); }
.btn-primary { --bs-btn-color: #fff; --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand-dark); --bs-btn-hover-border-color: var(--brand-dark); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--brand); --bs-btn-disabled-border-color: var(--brand); --bs-btn-focus-shadow-rgb: 255, 90, 31; }
.btn-secondary, .btn-dark { --bs-btn-color: #fff; --bs-btn-bg: var(--ink); --bs-btn-border-color: var(--ink); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--navy-mid); --bs-btn-hover-border-color: var(--navy-mid); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--navy-deep); --bs-btn-active-border-color: var(--navy-deep); --bs-btn-disabled-color: #fff; --bs-btn-disabled-bg: var(--ink); --bs-btn-disabled-border-color: var(--ink); --bs-btn-focus-shadow-rgb: 11, 31, 58; }
.btn-outline-dark, .btn-outline-secondary { --bs-btn-color: var(--ink); --bs-btn-bg: #fff; --bs-btn-border-color: var(--ink); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--ink); --bs-btn-hover-border-color: var(--ink); --bs-btn-active-color: #fff; --bs-btn-active-bg: var(--navy-deep); --bs-btn-active-border-color: var(--navy-deep); --bs-btn-focus-shadow-rgb: 11, 31, 58; }
.btn-outline-primary { --bs-btn-color: var(--brand-dark); --bs-btn-border-color: var(--brand); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: var(--brand); --bs-btn-hover-border-color: var(--brand); --bs-btn-active-bg: var(--brand-dark); --bs-btn-active-border-color: var(--brand-dark); --bs-btn-focus-shadow-rgb: 255, 90, 31; }
.btn-brand { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: var(--radius-sm); padding: 13px 20px; color: #fff; background: var(--brand); font-family: var(--font-display); font-size: var(--fs-md); font-weight: 800; line-height: 1.2; text-transform: uppercase; letter-spacing: .035em; text-decoration: none; transition: .18s; }
.btn-brand:hover, .btn-brand:focus-visible { color: #fff; background: var(--brand-dark); transform: translateY(-1px); }
.btn-brand.btn-small { padding: 10px 16px; font-size: var(--fs-sm); }
.btn-brand:disabled, .btn-brand.disabled { opacity: .55; pointer-events: none; }

/* Formulär */

.form-label, .col-form-label { margin-bottom: 6px; font-size: var(--fs-sm); font-weight: 800; }
.form-control, .form-select { padding: .65rem .8rem; border-color: var(--line-strong); border-radius: var(--radius-sm); color: var(--ink); font-family: var(--font-text); font-size: var(--fs-md); }
.form-control-sm, .form-select-sm { padding: .4rem .6rem; font-size: var(--fs-sm); }
.form-select { padding-right: 2.25rem; background-position: right .7rem center; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(255, 90, 31, .15); }
.form-control::placeholder { color: var(--subtle); }
.form-text { color: var(--muted); font-family: var(--font-text); font-size: var(--fs-xs); }
.form-check-label { font-family: var(--font-text); font-size: var(--fs-md); }
.form-check-input { border-color: var(--subtle); }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.form-check-input:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(255, 90, 31, .15); }
.invalid-feedback { font-family: var(--font-text); font-size: var(--fs-xs); }
.alert { border-radius: var(--radius-md); font-family: var(--font-text); font-size: var(--fs-md); }
.alert-danger { --bs-alert-color: #8d1f1f; --bs-alert-bg: #fde9e9; --bs-alert-border-color: #f6c9c9; }
.alert-success { --bs-alert-color: #185c2a; --bs-alert-bg: #e3f4e7; --bs-alert-border-color: #b9ddc2; }
.alert-info, .alert-primary { --bs-alert-color: #8b3b1d; --bs-alert-bg: var(--brand-soft); --bs-alert-border-color: #ffd2c2; }
.alert-warning { --bs-alert-color: #6b4a00; --bs-alert-bg: #fff6dd; --bs-alert-border-color: #f3dfa3; }

/* Topprad */

.utility-bar { color: #fff; background: var(--ink); font-size: var(--fs-xs); letter-spacing: .02em; }
.utility-bar .site-width { min-height: 34px; }
.utility-bar strong { color: var(--brand); }
.utility-bar a { color: #fff; text-decoration: none; }

/* Header */

.main-header { background: rgba(255, 255, 255, .98); box-shadow: 0 1px 0 var(--line); z-index: 1020; }
.main-header.sticky-top { padding-right: 0 !important; margin-right: 0 !important; }
.header-grid { display: grid; grid-template-columns: 205px minmax(280px, 700px) 1fr; align-items: center; gap: clamp(20px, 3vw, 46px); }
.brand img { display: block; width: 190px; height: auto; }
.search-wrap { position: relative; display: flex; align-items: center; margin: 0; }
.search-wrap svg { position: absolute; left: 18px; width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; pointer-events: none; }
.search-wrap input { width: 100%; height: 52px; padding: 0 70px 0 52px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--soft); outline: none; transition: .2s; }
.search-wrap input:focus { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(255, 90, 31, .12); }
.search-wrap input::-webkit-search-cancel-button { display: none; }
.search-wrap kbd { position: absolute; right: 12px; padding: 3px 7px; color: var(--subtle); background: #fff; border: 1px solid var(--line-strong); border-radius: var(--radius-xs); font-size: var(--fs-xs); box-shadow: none; }
#search-results-dropdown { position: absolute; z-index: 1030; top: calc(100% + 6px); left: 0; right: 0; display: none; max-height: min(70vh, 560px); overflow-y: auto; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; box-shadow: 0 18px 50px rgba(11, 31, 58, .16); }
.search-result-item { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; }
.search-result-item:hover, .search-result-item.active { background: var(--soft); }
.search-result-item img { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.sr-info { display: flex; min-width: 0; flex-direction: column; }
.sr-brand { color: var(--muted); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.sr-name { overflow: hidden; font-size: var(--fs-md); font-weight: 700; white-space: nowrap; text-overflow: ellipsis; }
.sr-package { color: var(--muted); font-family: var(--font-text); font-size: var(--fs-2xs); }
.sr-price { font-size: var(--fs-sm); font-weight: 800; white-space: nowrap; }
.sr-price del { display: block; color: var(--subtle); font-size: var(--fs-2xs); font-weight: 400; }
.search-no-results, .search-loading { padding: 16px; color: var(--muted); font-size: var(--fs-md); text-align: center; }
.header-actions { display: flex; justify-content: flex-end; align-items: center; gap: 14px; }
.header-link { color: var(--ink); font-size: var(--fs-md); font-weight: 700; text-decoration: none; }
.header-link:hover { color: var(--brand-dark); }
.account-button, .cart-button, .icon-button { border: 0; background: transparent; color: var(--ink); }
.account-button { display: flex; align-items: center; gap: 10px; max-width: 280px; text-align: left; font-size: var(--fs-sm); line-height: 1.15; font-weight: 700; }
.account-button > span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account-button small { display: block; color: var(--muted); font-weight: 500; margin-bottom: 3px; }
.account-avatar { display: grid; flex: 0 0 auto; place-items: center; width: 38px; height: 38px; border-radius: 50%; color: #fff; background: var(--ink); font-size: var(--fs-sm); }
.cart-button { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.cart-button svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.cart-button b { display: grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 20px; color: #fff; background: var(--brand); font-size: var(--fs-xs); }
.icon-button { width: 40px; height: 40px; padding: 0; }
.menu-icon, .menu-icon::before, .menu-icon::after { display: block; width: 22px; height: 2px; background: var(--ink); content: ""; }
.menu-icon::before { transform: translateY(-7px); }
.menu-icon::after { transform: translateY(5px); }
.dropdown-menu { --bs-dropdown-border-color: var(--line); --bs-dropdown-border-radius: var(--radius-md); --bs-dropdown-link-active-bg: var(--ink); --bs-dropdown-font-size: var(--fs-md); padding: 6px; box-shadow: 0 18px 50px rgba(11, 31, 58, .14); }
.dropdown-item { padding: 8px 12px; border-radius: var(--radius-sm); font-weight: 600; }

/* Huvudmeny */

.primary-nav { color: #fff; background: var(--ink); }
.primary-nav .nav-link { position: relative; padding: 15px 24px; color: #fff; font-size: var(--fs-md); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.primary-nav .nav-link:first-child { padding-left: 0; }
.primary-nav .nav-link:hover, .primary-nav .nav-link:focus-visible { color: var(--brand); }
.primary-nav .nav-link.active::after { position: absolute; content: ""; left: 24px; right: 24px; bottom: 0; height: 3px; background: var(--brand); }
.primary-nav .nav-link:first-child.active::after { left: 0; }
.primary-nav .nav-link.subdued { color: var(--on-dark-muted); }
.primary-nav .nav-link.subdued:hover, .primary-nav .nav-link.subdued.active { color: #fff; }
.nav-badge { margin-left: 4px; padding: 2px 6px; color: var(--navy-deep); background: var(--brand); border-radius: var(--radius-md); font-size: var(--fs-2xs); }

/* Offcanvas: mobilmeny, filter och varukorg */

.offcanvas { --bs-offcanvas-width: var(--drawer-width); }
.offcanvas h2 { margin: 0; font-size: var(--fs-xl); font-weight: 800; }
.mobile-menu-links { display: grid; align-content: start; gap: 4px; }
.mobile-menu-links > a:not(.btn-brand), .mobile-menu-links > button { display: block; padding: 14px 8px; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); background: transparent; text-align: left; font-size: 1rem; font-weight: 700; text-decoration: none; }
.mobile-menu-links > a.active { color: var(--brand-dark); }
.mobile-menu-heading { display: block; margin-top: 18px; padding: 0 8px 4px; color: var(--muted); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
.cart-drawer { display: flex; flex-direction: column; }
.cart-rows { display: grid; }
.cart-row { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 52px; height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.cart-row-info small { display: block; color: var(--muted); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.cart-row-info strong { display: block; font-size: var(--fs-sm); line-height: 1.3; }
.cart-row-info > span { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-2xs); }
.cart-row-total { display: grid; justify-items: end; gap: 6px; }
.cart-row-total b { font-size: var(--fs-sm); white-space: nowrap; }
.stepper { display: inline-flex; align-items: center; margin-top: 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); overflow: hidden; }
.stepper button { width: 30px; height: 30px; border: 0; color: var(--ink); background: #fff; font-size: 1rem; line-height: 1; }
.stepper button:hover { color: #fff; background: var(--ink); }
.stepper span { min-width: 32px; font-size: var(--fs-sm); font-weight: 800; text-align: center; }
.cart-summary { display: flex; justify-content: space-between; margin-top: auto; padding-top: 30px; font-size: var(--fs-base); }
.cart-note, .freight-text { display: block; margin-top: 6px; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-xs); }
.freight-progress { height: 6px; margin: 16px 0 0; overflow: hidden; background: var(--line); border-radius: var(--radius-sm); }
.freight-progress span { display: block; height: 100%; background: var(--brand); transition: width .3s; }
.cart-empty { margin: auto 0; padding: 40px 10px; text-align: center; }
.cart-empty p { color: var(--muted); }

/* Toast och modal */

.toast { border: 0; border-left: var(--accent-bar) solid var(--brand); border-radius: var(--radius-md); box-shadow: 0 10px 40px rgba(11, 31, 58, .2); }
.toast.toast-danger { border-left-color: var(--danger); }
/* Med varukorgen öppen hamnar notisen bredvid lådan, eller överst när lådan tar nästan hela bredden, så att Till kassan syns */
body.cart-drawer-open .toast-container { top: 0; bottom: auto !important; }
@media (min-width: 992px) {
  body.cart-drawer-open .toast-container { top: auto; bottom: 0 !important; right: var(--drawer-width) !important; }
}
.toast-body { font-family: var(--font-text); font-size: var(--fs-md); }
.toast-body strong { font-family: var(--font-display); font-weight: 800; }
.modal-content { border: 0; border-radius: var(--radius-lg); }
.modal-title { font-size: var(--fs-xl); font-weight: 800; }
.modal-footer small { color: var(--muted); font-family: var(--font-text); }
.multi-access-list { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; }
.multi-access-list li { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); }
.multi-access-id { color: var(--muted); font-size: var(--fs-sm); font-weight: 700; }
.multi-access-name { font-weight: 700; font-size: var(--fs-md); }

/* Sidor: rubriker och sektioner */

.page { padding-top: clamp(24px, 4vw, 48px); padding-bottom: clamp(32px, 5vw, 64px); }
.eyebrow, .section-kicker { color: var(--brand); font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.page-header { max-width: 820px; margin-bottom: 28px; }
.page-header h1 { margin: 6px 0 10px; font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 800; line-height: 1.05; letter-spacing: -.03em; }
.page-header p { margin: 0; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-base); line-height: 1.65; }
.section-top { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 20px; }
.section-top h1, .section-top h2 { margin: 4px 0 2px; font-size: clamp(1.55rem, 2.4vw, 2rem); font-weight: 800; }
.section-top p { margin: 0; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-sm); }
.section-link { color: var(--brand-dark); font-size: var(--fs-md); font-weight: 800; text-decoration: none; white-space: nowrap; }
.section-link:hover, .section-link:focus-visible { color: var(--brand-dark); text-decoration: underline; }
.panel { padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.panel-soft { background: var(--soft); }
.status-badge { display: inline-flex; align-items: center; padding: 6px 9px; border-radius: 20px; font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: 800; white-space: nowrap; }
.status-badge.open { color: #8b3b1d; background: #fff0e9; }
.status-badge.paid { color: #185c2a; background: #e3f4e7; }
.status-badge.overdue { color: #8d1f1f; background: #fde9e9; }
.status-badge.credit, .status-badge.neutral { color: #374d65; background: #e9eef3; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-md); }
.empty-state > span { color: var(--line-strong); font-size: 3rem; font-weight: 800; }
.empty-state h2, .empty-state h3 { font-size: var(--fs-xl); font-weight: 800; }
.empty-state p { color: var(--muted); }

/* Tabeller */

.table { --bs-table-color: var(--ink); --bs-table-border-color: var(--line); --bs-table-hover-bg: var(--soft); font-family: var(--font-text); font-size: var(--fs-sm); }
.table > thead th { color: var(--muted); background: var(--soft); font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
.table > :not(caption) > * > * { padding: .8rem .75rem; vertical-align: middle; }

/* Sidfot */

.site-footer { margin-top: 0; padding: 46px 0 0; color: #fff; background: var(--ink); border-top: var(--accent-bar) solid var(--brand); }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr 1.1fr; gap: 36px; padding-bottom: 36px; }
.footer-grid img { width: 170px; height: auto; filter: brightness(0) invert(1); }
.footer-grid strong { display: block; margin-bottom: 4px; font-size: var(--fs-md); }
.footer-grid p, .footer-grid span, .footer-grid > div > a { display: block; margin: 9px 0 0; color: var(--on-dark-muted); font-family: var(--font-text); font-size: var(--fs-sm); }
.footer-grid a { color: #fff; text-decoration: none; }
.footer-grid a:hover { color: var(--brand); }
.footer-social a { display: inline-block; margin-right: 14px; }
.footer-newsletter { display: flex; margin-top: 12px; }
.footer-newsletter input { min-width: 0; flex: 1; padding: 10px 12px; border: 1px solid var(--navy-mid); border-radius: 8px 0 0 8px; color: #fff; background: var(--navy-deep); font-family: var(--font-text); font-size: var(--fs-sm); }
.footer-newsletter input::placeholder { color: var(--on-dark-subtle); }
.footer-newsletter button { padding: 0 14px; border: 0; border-radius: 0 8px 8px 0; color: #fff; background: var(--brand); font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.footer-bottom { padding-top: 18px; padding-bottom: 18px; border-top: 1px solid var(--navy-mid); color: var(--on-dark-subtle); font-family: var(--font-text); font-size: var(--fs-xs); }

/* Responsivt */

@media (max-width: 1199.98px) {
  .header-grid { grid-template-columns: 175px minmax(220px, 1fr) auto; gap: 20px; }
  .brand img { width: 165px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 991.98px) {
  .header-grid { grid-template-columns: 40px 145px minmax(0, 1fr) auto; gap: 12px; }
  .brand img { width: 140px; }
  .search-wrap { grid-column: 1 / -1; grid-row: 2; }
  .search-wrap input { height: 46px; }
  .header-actions { grid-column: 4; }
}

@media (max-width: 767.98px) {
  .utility-bar .site-width { justify-content: center !important; }
  .utility-bar a { display: none; }
  .header-grid { grid-template-columns: 36px 1fr auto; }
  .brand img { width: 150px; }
  .header-actions { grid-column: 3; }
  .search-wrap { grid-column: 1 / -1; }
  .search-wrap kbd { display: none; }
  .search-wrap input { padding-right: 16px; }
  .section-top { align-items: start; }
  .section-top:has(> .section-link) { flex-wrap: wrap; gap: 8px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
  .brand img { width: 130px; }
  .cart-button span { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

/* Sortiment: banner, filter och produktkort */

.brand-banner { display: block; width: 100%; margin-bottom: 28px; border-radius: var(--radius-lg); }
.ad-placeholder img { border-radius: var(--radius-lg); }
.campaign-banner { position: relative; min-height: 172px; display: flex; align-items: center; gap: 36px; overflow: hidden; margin-bottom: 34px; padding: 30px clamp(24px, 4vw, 56px); color: #fff; background: var(--ink); border-radius: var(--radius-lg); }
.campaign-banner::before { position: absolute; inset: 0 auto 0 0; width: var(--accent-bar); content: ""; background: var(--brand); }
.campaign-copy { position: relative; z-index: 1; max-width: 690px; }
.campaign-copy h2 { margin: 6px 0 4px; color: #fff; font-size: clamp(1.55rem, 3vw, 2.35rem); font-weight: 800; letter-spacing: -.02em; }
.campaign-copy p { margin: 0; color: var(--on-dark-muted); font-size: var(--fs-md); }
.campaign-banner .btn-brand { position: relative; z-index: 1; margin-left: auto; white-space: nowrap; }
.campaign-mark { position: absolute; right: 2.5%; bottom: -38%; color: rgba(255, 90, 31, .14); font-size: 9rem; font-weight: 800; transform: rotate(-8deg); pointer-events: none; }
.mobile-shortcuts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: -12px 0 24px; }
.mobile-shortcuts a { display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 10px 6px; border: 1px solid var(--line); color: var(--ink); background: #fff; border-radius: var(--radius-md); font-size: var(--fs-xs); font-weight: 700; text-decoration: none; }
.mobile-shortcuts span { color: var(--brand); font-size: 1.15rem; line-height: 1; }

.content-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: clamp(28px, 3vw, 52px); }
.filters { align-self: start; }
.filter-heading { display: flex; justify-content: space-between; align-items: center; }
.filter-heading form { margin: -14px 0 0; }
.filters h2 { margin: 0 0 14px; font-size: var(--fs-md); font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.filter-heading button { padding: 0; border: 0; color: var(--muted); background: none; font-size: var(--fs-xs); text-decoration: underline; }
.category-list { display: grid; gap: 2px; }
.category-list a { display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: var(--radius-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-md); line-height: 1.25; }
.category-list a:hover, .category-list a.active { color: #fff; background: var(--ink); }
.category-list a b { color: var(--subtle); font-size: var(--fs-xs); }
.category-list a:hover b, .category-list a.active b { color: var(--on-dark-muted); }
.category-item { position: relative; }
.category-item > a { padding-right: 38px; }
.category-toggle { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border: 0; border-radius: var(--radius-sm); background: transparent; }
.category-toggle::before { display: block; width: 8px; height: 8px; margin: auto; border-right: 2px solid var(--subtle); border-bottom: 2px solid var(--subtle); content: ""; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.category-toggle.collapsed::before { transform: rotate(-45deg); }
.category-item > a:hover + .category-toggle::before, .category-item > a.active + .category-toggle::before { border-color: #fff; }
.sub-categories { padding: 2px 0 6px 12px; }
.sub-categories a { font-size: var(--fs-sm); }
.filters hr { margin: 22px 0; border-color: var(--line); opacity: 1; }
.check-list, .brand-list { margin: 0; }
.check-row { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 8px; margin: 10px 0; font-size: var(--fs-md); cursor: pointer; }
.check-row input { width: 16px; height: 16px; accent-color: var(--brand); }
.check-row span { font-family: var(--font-display); }
.check-row b { color: var(--subtle); font-size: var(--fs-xs); }
.filter-search { margin-bottom: 8px; }
.brand-list { display: grid; max-height: 280px; overflow-y: auto; padding-right: 5px; scrollbar-width: thin; }
.brand-row { margin: 0; padding: 7px 5px; border-radius: var(--radius-sm); }
.brand-row:hover { background: var(--soft); }

.section-controls { display: flex; gap: 8px; }
.section-controls form { margin: 0; }
.section-controls .form-select { min-width: 190px; }
.section-controls .form-select, .filter-mobile { height: 42px; padding-top: 0; padding-bottom: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background-color: #fff; font-family: var(--font-display); font-size: var(--fs-sm); }
.filter-mobile { padding: 0 14px; color: var(--ink); font-weight: 700; }
.result-count { color: var(--ink); font-weight: 700; white-space: nowrap; }
.active-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 14px; }
.filter-pill { padding: 6px 10px; border: 0; border-radius: 20px; color: #fff; background: var(--ink); font-size: var(--fs-xs); font-weight: 600; }
.filter-pill:hover { background: var(--brand-dark); }
.filter-pill.clear { color: var(--ink); background: var(--soft); }

.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.product-card { position: relative; display: flex; min-width: 0; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; transition: .2s; }
.product-card:hover { border-color: var(--line-strong); box-shadow: 0 12px 35px rgba(11, 31, 58, .1); transform: translateY(-2px); }
.product-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1.16; margin: 7px; overflow: hidden; border-radius: var(--radius-sm); background: var(--soft); }
.product-visual > a { display: grid; place-items: center; width: 100%; height: 100%; }
.product-visual img { width: 77%; height: 77%; object-fit: contain; mix-blend-mode: multiply; transition: transform .25s; }
.product-card:hover .product-visual img { transform: scale(1.04); }
.tag-stack { position: absolute; top: 10px; left: 10px; z-index: 1; display: flex; flex-direction: column; align-items: start; gap: 5px; }
.tag { padding: 4px 7px; border-radius: var(--radius-xs); color: #fff; background: var(--ink); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .055em; }
.tag.sale { background: var(--brand); }
.favorite-button { position: absolute; z-index: 2; top: 9px; right: 9px; display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); background: rgba(255, 255, 255, .92); font-size: 1rem; line-height: 1; transition: .15s; }
.favorite-button:hover { color: var(--brand-dark); border-color: var(--brand); }
.favorite-button.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.cart-indicator { position: absolute; left: 9px; bottom: 9px; display: inline-flex; align-items: center; gap: 5px; padding: 6px 9px; border-radius: var(--radius-sm); color: #fff; background: var(--success); box-shadow: 0 3px 12px rgba(39, 133, 61, .24); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .035em; }
.cart-indicator > span:first-child { display: grid; place-items: center; width: 15px; height: 15px; color: var(--success); background: #fff; border-radius: 50%; font-size: var(--fs-2xs); }
.product-info { display: flex; flex: 1; flex-direction: column; padding: 10px 13px 14px; }
.product-brand { color: var(--muted); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .075em; }
/* Namnet tar den plats det behöver och växer, så att förpackning, lager och pris står på samma höjd i en rad */
.product-name { flex-grow: 1; margin: 3px 0 5px; font-size: var(--fs-md); font-weight: 700; line-height: 1.3; letter-spacing: 0; overflow-wrap: anywhere; }
/* <wbr> efter snedstreck i produktnamn: bara i mobilen, där smaker som "(Blackcurrant/Elderflower)" annars inte får plats */
@media (min-width: 768px) {
  .product-name wbr, .product-summary h1 wbr { display: none; }
}
.product-name a { color: var(--ink); text-decoration: none; }
.product-name a:hover { color: var(--brand-dark); }
.product-meta { color: var(--muted); font-family: var(--font-text); font-size: var(--fs-2xs); }
.product-warning { margin-top: 4px; color: var(--danger); font-size: var(--fs-2xs); font-weight: 800; }
.stock { display: flex; align-items: center; gap: 5px; margin-top: 7px; color: var(--success); font-size: var(--fs-2xs); font-weight: 600; }
.stock::before { width: 7px; height: 7px; border-radius: 50%; background: currentColor; content: ""; }
.stock.out { color: var(--danger); }
.price-row { display: flex; justify-content: space-between; align-items: end; gap: 8px; margin-top: auto; padding-top: 14px; }
.price strong { display: block; font-size: var(--fs-lg); line-height: 1.2; }
.price strong del { display: block; color: var(--subtle); font-size: var(--fs-2xs); font-weight: 400 !important; }
.price small { display: block; color: var(--muted); font-size: var(--fs-2xs); }
.buy-controls { display: grid; grid-template-columns: 52px 38px; align-items: center; gap: 6px; }
.quantity-input { width: 52px; height: 38px; padding: 0 4px 0 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: #fff; text-align: center; font-size: var(--fs-sm); font-weight: 700; outline: none; }
.quantity-input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(255, 90, 31, .12); }
.quantity-input:disabled { color: var(--subtle); background: var(--soft); }
.add-button { width: 38px; height: 38px; padding: 0; border: 0; border-radius: var(--radius-sm); color: #fff; background: var(--ink); font-size: 1.35rem; line-height: 1; transition: .15s; }
.add-button:hover { background: var(--brand); }
.add-button:disabled { background: var(--line-strong); cursor: not-allowed; }
.login-price { color: var(--brand-dark); font-size: var(--fs-sm); font-weight: 800; text-decoration: none; }
.login-price:hover { text-decoration: underline; }

.shop-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; margin-top: 32px; }
.shop-pagination ul { display: flex; flex-wrap: wrap; gap: 4px; margin: 0; padding: 0; list-style: none; }
.shop-pagination a, .shop-pagination span { display: grid; place-items: center; min-width: 38px; height: 38px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--radius-sm); color: var(--ink); font-size: var(--fs-md); font-weight: 700; text-decoration: none; }
.shop-pagination a:hover { border-color: var(--ink); }
.shop-pagination a.active { color: #fff; background: var(--ink); border-color: var(--ink); }
.shop-pagination span { border-color: transparent; }

@media (max-width: 1199.98px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .content-layout { display: block; }
  .campaign-banner { min-height: 150px; }
  .campaign-mark { display: none; }
}

@media (max-width: 767.98px) {
  .campaign-banner { display: block; margin-bottom: 26px; padding: 24px; }
  .campaign-copy p { max-width: 88%; }
  .campaign-banner .btn-brand { margin: 18px 0 0; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .sort-form { display: none; }
  .product-info { padding: 8px 10px 12px; }
  .product-name { font-size: var(--fs-sm); }
  .product-meta { font-size: var(--fs-2xs); }
  .price-row { flex-wrap: wrap; }
  .price strong { font-size: var(--fs-md); }
  .buy-controls { grid-template-columns: 1fr 36px; width: 100%; gap: 5px; }
  .quantity-input { width: 100%; height: 36px; padding-left: 5px; }
  .add-button { width: 36px; height: 36px; }
  .cart-indicator { font-size: var(--fs-2xs); padding: 5px 7px; }
  /* Kortet är för smalt för hela texten i mobilen: "✓ 12 kollin" syns, "I varukorgen" läses bara upp */
  .cart-indicator-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
}

@media (max-width: 400px) {
  .campaign-copy h2 { font-size: 1.4rem; }
}

/* Kassan */

.checkout-steps { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 24px; padding: 0; list-style: none; counter-reset: step; }
.checkout-steps li { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: var(--fs-md); font-weight: 700; }
.checkout-steps .step-number { display: grid; flex: 0 0 auto; place-items: center; width: 28px; height: 28px; border: 2px solid var(--line); border-radius: 50%; font-size: var(--fs-sm); }
.checkout-steps li.active { color: var(--ink); }
.checkout-steps li.active .step-number { color: #fff; background: var(--brand); border-color: var(--brand); }
.checkout-steps li.done .step-number { color: #fff; background: var(--ink); border-color: var(--ink); }
.checkout-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.checkout-main .panel { padding: clamp(18px, 3vw, 30px); }
.checkout-title { margin: 0 0 14px; font-size: var(--fs-xl); font-weight: 800; }
.checkout-main .checkout-title + p { margin-top: -6px; }
.checkout-subtitle { margin: 18px 0 10px; font-size: var(--fs-base); font-weight: 800; }
.checkout-actions { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
.checkout-summary { position: sticky; top: 190px; }
.checkout-summary h2 { margin: 0 0 14px; font-size: var(--fs-lg); }
.summary-list { margin: 0; }
.summary-list > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-md); }
.summary-list dt { font-weight: 600; }
.summary-list dt small { display: block; color: var(--muted); font-weight: 500; font-size: var(--fs-2xs); }
.summary-list dd { margin: 0; font-weight: 700; white-space: nowrap; }
.summary-list .summary-total { padding-top: 14px; border-bottom: 0; font-size: var(--fs-lg); }
.summary-list .summary-total dd { font-weight: 800; }
.cart-table td { vertical-align: middle; }
.cart-product { display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 12px; }
.cart-product img { width: 48px; height: 48px; object-fit: contain; mix-blend-mode: multiply; }
.cart-product small { display: block; color: var(--muted); font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.cart-product strong { font-family: var(--font-display); font-size: var(--fs-md); }
.cart-product span { display: block; color: var(--muted); font-size: var(--fs-xs); }
.quantity-cell { width: 84px; margin-left: auto; text-align: center; font-weight: 700; }
.cart-confirm { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.delivery-options { display: grid; gap: 8px; }
.delivery-option { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-md); cursor: pointer; transition: .15s; }
.delivery-option:hover { border-color: var(--line-strong); }
.delivery-option:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.delivery-option .form-check-input { margin: 0; }
.delivery-option strong { display: block; font-size: var(--fs-md); }
.delivery-option small { display: block; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-xs); }
.delivery-option b { font-size: var(--fs-md); white-space: nowrap; }
.order-thanks { padding: 20px 0 10px; text-align: center; }
.order-thanks-icon { display: inline-grid; place-items: center; width: 56px; height: 56px; margin-bottom: 14px; border-radius: 50%; color: #fff; background: var(--success); font-size: 1.6rem; }
.order-thanks p { margin-bottom: 6px; }

@media (max-width: 991.98px) {
  .checkout-layout { grid-template-columns: minmax(0, 1fr); }
  .checkout-summary { position: static; }
}

/* Produktsida */

.breadcrumb-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 22px; color: var(--muted); font-size: var(--fs-sm); }
.breadcrumb-nav a { color: var(--muted); text-decoration: none; }
.breadcrumb-nav a:hover { color: var(--brand-dark); text-decoration: underline; }
.product-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.product-gallery-main { position: relative; display: grid; place-items: center; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-lg); background: var(--soft); }
.product-gallery-main > a, .product-gallery-main > img { display: grid; place-items: center; width: 100%; height: 100%; }
.product-gallery-main img { width: 78%; height: 78%; object-fit: contain; mix-blend-mode: multiply; }
.product-gallery-main .tag-stack { top: 16px; left: 16px; }
.product-gallery-main .favorite-button { top: 14px; right: 14px; width: 42px; height: 42px; }
.product-thumbnails { display: flex; gap: 8px; margin-top: 10px; }
.product-thumbnails button { width: 76px; height: 76px; padding: 6px; border: 2px solid var(--line); border-radius: var(--radius-sm); background: var(--soft); }
.product-thumbnails button.active { border-color: var(--brand); }
.product-thumbnails img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.product-summary .product-brand { text-decoration: none; }
.product-summary .product-brand:hover { color: var(--brand-dark); }
.product-summary h1 { margin: 6px 0 8px; font-size: clamp(1.6rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -.02em; }
.product-summary .product-meta { font-size: var(--fs-sm); }
.product-summary .product-warning { display: block; margin: 0 0 10px; font-size: var(--fs-md); }
.product-price { display: grid; gap: 2px; margin: 18px 0; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.product-price strong { font-size: 1.8rem; line-height: 1.15; }
.product-price strong del { display: block; color: var(--subtle); font-size: var(--fs-md); font-weight: 400 !important; }
.product-price span { color: var(--muted); font-family: var(--font-text); font-size: var(--fs-sm); }
.product-lead { margin-bottom: 18px; color: var(--ink-soft); font-family: var(--font-text); font-size: var(--fs-md); line-height: 1.6; }
.product-lead p { margin-bottom: 6px; }
.product-summary .stock { margin: 4px 0 12px; font-size: var(--fs-sm); }
.product-buy { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 10px; max-width: 460px; }
.product-buy .quantity-input { width: 100%; height: 48px; font-size: 1rem; }
.product-buy .btn-brand { height: 48px; }
.in-cart-note { margin: 10px 0 0; color: var(--success); font-size: var(--fs-md); font-weight: 700; }
.product-details { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; gap: 18px; margin-top: clamp(32px, 5vw, 56px); }
.product-details h2 { margin: 0 0 12px; font-size: var(--fs-lg); }
.product-details h3 { margin: 20px 0 8px; font-size: var(--fs-base); }
.product-details h2:not(:first-child) { margin-top: 26px; }
.rich-text { font-family: var(--font-text); font-size: var(--fs-md); line-height: 1.65; }
.rich-text p:last-child { margin-bottom: 0; }
.nutrition-table th[scope="row"] { font-family: var(--font-text); font-weight: 600; }

@media (max-width: 991.98px) {
  .product-layout, .product-details { grid-template-columns: minmax(0, 1fr); }
  .product-gallery-main { max-width: 520px; }
}

/* Mitt konto */

.account-page > .section-kicker { display: block; margin-bottom: 10px; }
.account-nav { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 28px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--soft); width: fit-content; max-width: 100%; }
.account-nav a { padding: 9px 14px; border-radius: var(--radius-sm); color: var(--muted); font-size: var(--fs-md); font-weight: 800; text-decoration: none; }
.account-nav a:hover { color: var(--ink); }
.account-nav a.active { color: #fff; background: var(--ink); }
.back-link { display: inline-block; margin-bottom: 12px; color: var(--muted); font-size: var(--fs-sm); font-weight: 700; text-decoration: none; }
.back-link:hover { color: var(--brand-dark); }
.orders-list { display: grid; gap: 12px; }
.order-card { display: grid; grid-template-columns: 1.1fr .8fr .8fr .9fr auto; align-items: center; gap: 18px; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.order-card small { display: block; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-2xs); }
.order-card strong { font-size: var(--fs-base); }
.order-card strong a { color: var(--ink); text-decoration: none; }
.order-card strong a:hover { color: var(--brand-dark); }
.order-card > div > span:not(.status-badge) { display: block; margin-top: 2px; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-xs); }
.order-card-status { display: flex; flex-wrap: wrap; gap: 6px; }
.order-actions { display: flex; gap: 8px; justify-content: flex-end; }
.order-actions form { margin: 0; }
.order-documents { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.order-detail { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.order-detail .panel { padding: 8px 12px; }
.order-detail .order-address { padding: 20px 22px; }
.order-detail tfoot td { border-bottom: 0; }
.order-detail .order-total td { border-top: 2px solid var(--ink); }
.order-address h2 { margin: 0 0 10px; font-size: 1rem; }
.order-address p { font-size: var(--fs-md); line-height: 1.6; }
.account-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 18px; align-items: start; }
.account-grid .panel h2 { margin: 0 0 14px; font-size: var(--fs-lg); }
.info-list { margin: 0 0 14px; }
.info-list > div { padding: 8px 0; border-bottom: 1px solid var(--line); }
.info-list dt { color: var(--muted); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
.info-list dd { margin: 2px 0 0; font-family: var(--font-text); font-size: var(--fs-md); }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.address-card { display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.address-card.primary { border-color: var(--brand); box-shadow: inset var(--accent-bar) 0 0 var(--brand); }
.address-card.invoice { background: var(--soft); }
.address-card-head { display: flex; justify-content: space-between; align-items: start; gap: 10px; margin-bottom: 8px; }
.address-card p { margin-bottom: 8px; font-size: var(--fs-md); line-height: 1.55; }
.address-contact { color: var(--muted); font-size: var(--fs-xs) !important; }
.address-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 10px; }
.address-actions form { margin: 0; }
.suggestion-list { display: grid; gap: 8px; }
.suggestion { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; font-family: var(--font-text); font-size: var(--fs-sm); }

@media (max-width: 991.98px) {
  .account-nav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .account-nav a { white-space: nowrap; }
  .order-detail, .account-grid { grid-template-columns: minmax(0, 1fr); }
  .order-card { grid-template-columns: 1fr 1fr; }
  .order-actions { grid-column: 1 / -1; justify-content: stretch; }
  .order-actions > *, .order-actions .btn { flex: 1; width: 100%; }
}

/* Publika sidor: start, om oss, kontakt, inloggning */

/* Informationssidorna börjar i linje med loggan som övriga sidor; formulär och löptext hålls läsbart smala */
.info-page > .panel { max-width: 960px; }
.about-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .7fr); gap: clamp(32px, 7vw, 100px); align-items: center; padding: clamp(28px, 5vw, 64px); color: #fff; background: var(--ink); border-radius: var(--radius-lg); border-left: var(--accent-bar) solid var(--brand); }
.about-hero h1 { margin: 8px 0 18px; color: #fff; font-size: clamp(2rem, 4.6vw, 3.6rem); font-weight: 800; line-height: 1.03; letter-spacing: -.035em; }
.about-hero p { max-width: 720px; color: var(--on-dark-muted); font-size: var(--fs-base); line-height: 1.75; }
.about-hero .btn-brand { margin-top: 12px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 18px; }
.hero-actions .btn-brand { margin-top: 0; }
.btn-outline-light { display: inline-flex; align-items: center; justify-content: center; padding: 12px 20px; line-height: 1.2; border: 1px solid rgba(255, 255, 255, .5); border-radius: var(--radius-sm); color: #fff; font-size: var(--fs-md); font-weight: 800; text-transform: uppercase; letter-spacing: .035em; text-decoration: none; }
.btn-outline-light:hover { color: var(--ink); background: #fff; }
.about-facts { display: grid; gap: 1px; overflow: hidden; border-radius: var(--radius-md); background: var(--navy-mid); }
.about-facts div { padding: 19px 20px; background: #102846; }
.about-facts strong, .about-facts span { display: block; }
.about-facts strong { color: var(--brand); font-size: var(--fs-lg); }
.about-facts span { margin-top: 3px; color: var(--on-dark-muted); font-family: var(--font-text); font-size: var(--fs-xs); }
.values-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: var(--section-gap); }
.values-grid article { padding: 30px; border: 1px solid var(--line); border-radius: var(--radius-md); background: #fff; }
.values-grid article > span { color: var(--brand); font-size: var(--fs-2xs); font-weight: 800; letter-spacing: .1em; }
.values-grid h2 { margin: 14px 0 8px; font-size: var(--fs-lg); font-weight: 800; }
.values-grid p { margin: 0; color: var(--muted); font-size: var(--fs-sm); line-height: 1.65; }
.start-section { margin-top: var(--section-gap); }
.start-section .section-top h2 { margin: 4px 0 2px; }
.cta-band { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px; margin-top: var(--section-gap); padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--soft); border: 1px solid var(--line); }
.cta-band h2 { margin: 0 0 4px; font-size: clamp(1.3rem, 2.4vw, 1.8rem); }
.cta-band p { margin: 0; color: var(--muted); }
.contact-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.contact-item { display: flex; flex-direction: column; padding: 26px; border: 1px solid var(--line); border-radius: var(--radius-md); color: var(--ink); background: #fff; text-decoration: none; transition: border-color .18s, box-shadow .18s, transform .18s; }
a.contact-item:hover, a.contact-item:focus-visible { color: var(--ink); border-color: var(--brand); box-shadow: 0 10px 30px rgba(11, 31, 58, .08); transform: translateY(-2px); }
.contact-icon { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 44px; height: 44px; margin-bottom: 16px; border-radius: var(--radius-sm); color: var(--brand-dark); background: var(--brand-soft); font-size: 1.2rem; }
.contact-item small { color: var(--muted); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.contact-item strong { margin-top: 4px; font-size: var(--fs-lg); font-weight: 800; overflow-wrap: anywhere; }
.contact-item strong a { color: var(--ink); text-decoration: none; }
.contact-item strong a:hover { color: var(--brand-dark); }
.contact-item > span:last-child { margin-top: 4px; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-sm); line-height: 1.5; }
.contact-map { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 16px; margin-top: 16px; }
.contact-address { display: flex; flex-direction: column; align-items: flex-start; }
.contact-address h2 { margin: 0 0 6px; font-size: var(--fs-xl); }
.contact-address .info-list { align-self: stretch; margin-bottom: 20px; }
.contact-quote { align-self: stretch; margin: 24px 0 0; padding-top: 20px; border-top: 1px solid var(--line); color: var(--ink); font-size: var(--fs-lg); font-weight: 700; line-height: 1.4; }
.contact-map-image { position: relative; min-height: 300px; margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius-md); background: #f1f0eb; }
/* Kartan fyller rutan (preserveAspectRatio slice); höjden kommer från adresskortet bredvid, eller nedan när de staplas */
.contact-map-image > a { position: absolute; inset: 0; display: block; }
.contact-map-image svg { display: block; width: 100%; height: 100%; }
.terms-text h2 { margin: 26px 0 8px; font-size: var(--fs-lg); }
.terms-text h2:first-child { margin-top: 0; }
/* Bli kund (nodes/application.php): stegen bredvid formuläret och på tack-sidan, numrerade avsnitt i formuläret, verksamhet som val och tack-sidan */
.apply-steps { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.apply-steps li { display: flex; align-items: flex-start; gap: 14px; }
.apply-step-number { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: #fff; background: var(--ink); font-size: var(--fs-sm); font-weight: 800; }
.apply-steps li:first-child .apply-step-number { background: var(--brand); }
.apply-steps li.done .apply-step-number { background: var(--success); }
.apply-steps strong { display: block; font-size: var(--fs-base); font-weight: 800; }
.apply-steps div > span { display: block; margin-top: 4px; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-sm); line-height: 1.5; }
.application-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); gap: 16px; align-items: start; margin-top: 16px; }
.application-form { scroll-margin-top: 16px; }
.application-aside { position: sticky; top: 16px; display: grid; gap: 16px; }
.application-help strong, .application-help span { display: block; }
.application-help span { margin-top: 4px; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-md); line-height: 1.6; }
.application-form > .alert { margin-bottom: 24px; }
.form-section { display: flex; align-items: center; gap: 10px; margin: 28px 0 16px; padding-top: 24px; border-top: 1px solid var(--line); font-size: var(--fs-lg); font-weight: 800; }
.form-section:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.form-section-number { display: grid; flex: 0 0 auto; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--brand-dark); background: var(--brand-soft); font-size: var(--fs-sm); }
.choice-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.choice-chip { display: inline-flex; align-items: center; padding: 9px 18px; border: 1px solid var(--line-strong); border-radius: 999px; color: var(--ink); background: #fff; font-size: var(--fs-md); font-weight: 700; cursor: pointer; transition: border-color .18s, background .18s, color .18s; }
.choice-chip:hover { border-color: var(--brand); }
.btn-check:checked + .choice-chip { color: #fff; background: var(--ink); border-color: var(--ink); }
.btn-check:focus-visible + .choice-chip { box-shadow: 0 0 0 .2rem rgba(255, 90, 31, .25); }
.choice-chips.is-invalid .choice-chip { border-color: var(--danger); }
.application-thanks-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 28px; }
.application-thanks-head .order-thanks-icon { flex: 0 0 auto; margin: 0; }
.application-thanks-head p { margin: 0; color: var(--ink-soft); font-family: var(--font-text); line-height: 1.6; }
.application-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
.application-thanks-help { margin: 8px 0 20px; color: var(--muted); font-family: var(--font-text); font-size: var(--fs-md); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 420px); justify-content: center; gap: 18px; align-items: stretch; }
.auth-layout-single { grid-template-columns: minmax(0, 520px); }
.auth-card { padding: clamp(24px, 4vw, 40px); }
.auth-card h1 { margin: 6px 0 8px; font-size: clamp(1.8rem, 3.6vw, 2.4rem); }
.auth-card > p { color: var(--muted); }
.auth-aside { padding: clamp(24px, 4vw, 40px); color: #fff; background: var(--ink); border-radius: var(--radius-md); border-left: var(--accent-bar) solid var(--brand); }
.auth-aside h2 { color: #fff; font-size: var(--fs-xl); }
.auth-aside p, .auth-aside li { color: var(--on-dark-muted); font-size: var(--fs-md); }
.auth-aside ul { margin: 16px 0 24px; padding-left: 18px; }
.auth-aside li { margin-bottom: 6px; }
.error-state { max-width: 640px; margin: 20px auto; }
.error-state > span { display: block; color: var(--brand); font-size: 4rem; line-height: 1; }
.error-state h1 { margin: 10px 0 8px; font-size: 1.6rem; }

@media (max-width: 1199.98px) {
  .contact-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 991.98px) {
  .about-hero, .contact-map, .auth-layout, .application-layout { grid-template-columns: minmax(0, 1fr); }
  /* Stegen före formuläret, frågerutan efter */
  .application-aside { display: contents; }
  .application-aside > .panel:first-child { order: -1; }
  /* Faktarutan blir en rad under texten i stället för en hög kolumn, och döljs på de smalaste skärmarna */
  .about-facts { grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .contact-map-image { height: 400px; }
}

@media (max-width: 767.98px) {
  .values-grid { grid-template-columns: 1fr; }
  .application-summary { grid-template-columns: minmax(0, 1fr); }
  .application-thanks-head { flex-direction: column; gap: 12px; }
}

@media (max-width: 575.98px) {
  .about-facts { display: none; }
  .contact-cards { grid-template-columns: minmax(0, 1fr); }
  .contact-item { padding: 20px; }
  .contact-map-image { height: 340px; }
}

/* Mobil: tabellerna i kassan och orderdetaljen som kort, stegen på en rad */

@media (max-width: 767.98px) {
  .checkout-steps { flex-wrap: nowrap; gap: 10px; }
  .checkout-steps li:not(.active) .step-label { display: none; }
  .checkout-steps li.active { min-width: 0; }
  .checkout-steps li.active .step-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .checkout-main .panel { padding: 18px 16px; }
  .cart-table thead, .order-table thead { display: none; }
  .cart-table, .cart-table tbody, .order-table, .order-table tbody, .order-table tfoot { display: block; width: 100%; }
  .cart-table tr, .order-table tbody tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
  .cart-table tr:last-child { border-bottom: 0; }
  .order-table tbody tr:has(td:nth-child(5)) { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .cart-table td, .order-table tbody td { display: block; padding: 0 !important; border: 0 !important; text-align: left !important; }
  .cart-table td:first-child, .order-table tbody td:first-child { grid-column: 1 / -1; }
  .cart-table td:last-child, .order-table tbody td:last-child { text-align: right !important; }
  .cart-table td[data-label]::before, .order-table td[data-label]::before { display: block; margin-bottom: 3px; color: var(--muted); content: attr(data-label); font-family: var(--font-display); font-size: var(--fs-2xs); font-weight: 800; text-transform: uppercase; letter-spacing: .05em; }
  .cart-table .quantity-cell { width: 100%; max-width: 90px; margin: 0; }
  .cart-product { grid-template-columns: 44px minmax(0, 1fr); }
  .order-table tfoot tr { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; }
  .order-table tfoot td { padding: 0 !important; border: 0 !important; }
  .order-table .order-total { border-top: 2px solid var(--ink); padding-top: 12px; }
  .order-detail .panel { padding: 4px 16px 12px; }
  .cart-confirm { align-items: stretch; flex-direction: column; }
  .checkout-actions .btn, .checkout-actions .btn-brand { flex: 1; justify-content: center; }
}

/* Pekskärmar: iOS zoomar in när ett fält med mindre än 16 px text får fokus, och dubbeltryck zoomar */

a, button, input, select, textarea, label, summary { touch-action: manipulation; }

@media (pointer: coarse) {
  input, select, textarea, .form-control, .form-select, .form-control-sm, .form-select-sm, .quantity-input, .footer-newsletter input, .section-controls .form-select { font-size: 16px; }
}
