/* ============================================================================
   Storefront design system — store.css
   Loaded after the legacy first-/below-fold CSS and the tenant theme
   (:root colour variables). Mobile first. Spacing is an 4px scale; every
   component uses the same tokens so padding/gaps stay consistent.
   ============================================================================ */

:root {
    --container: 1440px;
    --gutter: 16px;
    --sp-1: 4px;
    --sp-2: 8px;
    --sp-3: 12px;
    --sp-4: 16px;
    --sp-5: 24px;
    --sp-6: 32px;
    --sp-7: 48px;
    --fs-xs: 0.75rem;     /* 12 */
    --fs-sm: 0.8125rem;   /* 13 */
    --fs-base: 0.9375rem; /* 15 */
    --fs-md: 1rem;        /* 16 */
    --fs-lg: 1.125rem;    /* 18 */
    --fs-xl: 1.375rem;    /* 22 */
    --fs-2xl: 1.75rem;    /* 28 */
    --lh: 1.55;
    --r-sm: 4px;
    --r: var(--radius, 6px);
    --r-lg: var(--radius-lg, 10px);
    --line: var(--color-border, #e5e5e5);
    --line-strong: var(--color-border-strong, #767676);
    --muted: var(--color-text-light, #5f5f5f);
    --tint: var(--color-tint, var(--color-bg-secondary, #f6f6f6));
    --focus: var(--focus-ring, var(--color-primary, #000));
    --ease: 180ms ease;
    --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.16);
    --header-z: 50;
    --drawer-z: 10001;
}

@media (min-width: 1024px) {
    :root { --gutter: 24px; }
}

/* ---------------------------------------------------------------- base --- */
body {
    font-family: var(--font-body, system-ui, sans-serif);
    font-size: var(--fs-base);
    line-height: var(--lh);
    color: var(--color-text, #222);
    background: var(--color-bg, #fff);
}
h1, h2, h3, h4 { color: var(--color-heading, #111); letter-spacing: -0.01em; }
p { color: inherit; }
a { color: inherit; }
a:hover { color: var(--color-primary); }
img { max-width: 100%; }

.container {
    width: 100%;
    max-width: var(--container);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

/* Visible focus for keyboard users everywhere (WCAG 2.4.7). */
:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
    border-radius: 2px;
}
input:focus-visible, select:focus-visible, textarea:focus-visible,
.header-search__input:focus, .form-input:focus, .form-select:focus, .form-textarea:focus {
    outline: 3px solid var(--focus);
    outline-offset: 1px;
}
main:focus { outline: none; }

.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}
.skip-link {
    position: absolute; left: var(--sp-2); top: -100px; z-index: 2000;
    padding: var(--sp-2) var(--sp-4);
    background: var(--color-bg-dark, #111); color: #fff; border-radius: var(--r);
}
.skip-link:focus { top: var(--sp-2); color: #fff; }

html.has-drawer { overflow: hidden; }

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

/* ------------------------------------------------------------- buttons --- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
    min-height: 44px; padding: 0 var(--sp-5);
    font-size: var(--fs-base); font-weight: 600; line-height: 1.2;
    border: 1px solid transparent; border-radius: var(--r);
    text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background var(--ease), border-color var(--ease), color var(--ease);
}
.btn:active { transform: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; }
.btn--primary { background: var(--btn-primary-bg, var(--color-primary)); color: var(--btn-primary-text, #fff); }
.btn--primary:hover:not(:disabled) { background: var(--btn-primary-hover, var(--color-primary-hover)); color: var(--btn-primary-text, #fff); }
.btn--outline { background: var(--color-bg, #fff); color: var(--color-text); border-color: var(--line-strong); }
.btn--outline:hover:not(:disabled) { border-color: var(--color-text); color: var(--color-text); background: var(--tint); }
.btn--sm { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn--lg { min-height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-md); }
.btn--block { display: flex; width: 100%; }
.btn.is-loading { opacity: 0.7; pointer-events: none; }

.iconbtn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 44px; height: 44px; border-radius: 50%;
    color: var(--color-text); background: transparent;
    transition: background var(--ease);
}
.iconbtn:hover { background: var(--tint); }
.iconbtn--round { border: 1px solid var(--line-strong); width: 40px; height: 40px; }
.iconbtn:disabled { opacity: 0.35; cursor: default; background: transparent; }
.linkbtn { background: none; padding: 0; color: var(--muted); font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 2px; }
.linkbtn:hover { color: var(--color-text); }

/* ---------------------------------------------------------- form bits --- */
.input, .select {
    width: 100%; min-height: 44px; padding: 0 var(--sp-3);
    font-size: var(--fs-md); color: var(--color-text);
    background: #fff; border: 1px solid var(--line-strong); border-radius: var(--r);
}
.input--area { min-height: 140px; padding: var(--sp-3); resize: vertical; }
.select { appearance: none; padding-right: 36px; cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23333' stroke-width='1.6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; }
.select--compact { min-height: 40px; font-size: var(--fs-base); width: auto; }
.input[aria-invalid="true"] { border-color: var(--color-error); }

.field { display: grid; gap: var(--sp-1); margin-bottom: var(--sp-4); }
.field__label { font-weight: 600; font-size: var(--fs-sm); }
.field__req { color: var(--color-error); }
.field__opt { font-weight: 400; color: var(--muted); }
.field__hint { font-size: var(--fs-sm); color: var(--muted); margin: 0; }
.field__error { font-size: var(--fs-sm); color: var(--color-error); margin: 0; font-weight: 600; }
.field--error .input { border-color: var(--color-error); }

.check { display: flex; align-items: center; gap: var(--sp-2); min-height: 36px; cursor: pointer; font-size: var(--fs-base); }
.check input { width: 18px; height: 18px; accent-color: var(--color-primary); flex: none; }
.check__count { color: var(--muted); font-size: var(--fs-sm); margin-left: auto; }

.notice { padding: var(--sp-3) var(--sp-4); border-radius: var(--r); margin-bottom: var(--sp-4); border: 1px solid; }
.notice--success { background: var(--color-success-bg); border-color: var(--color-success); color: var(--color-text); }
.notice--error { background: var(--color-error-bg); border-color: var(--color-error); color: var(--color-text); }
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* ------------------------------------------------------------- USP bar --- */
.topbar, .site-header { display: none; } /* legacy header markup (unused) */
.uspbar { background: var(--tint); color: var(--color-text); font-size: var(--fs-sm); }
.uspbar__inner { display: flex; align-items: center; justify-content: center; gap: var(--sp-5); min-height: 36px; }
.uspbar__list { display: flex; gap: var(--sp-5); margin: 0; padding: 0; overflow: hidden; }
.uspbar__list li { display: none; align-items: center; gap: var(--sp-1); white-space: nowrap; }
.uspbar__list li:first-child { display: inline-flex; }
.uspbar__list svg { color: var(--color-primary); flex: none; }
.uspbar__links { display: none; gap: var(--sp-4); margin: 0 0 0 auto; padding: 0; }
.uspbar__links a { text-decoration: underline; text-underline-offset: 2px; }
@media (min-width: 768px) {
    .uspbar__inner { justify-content: space-between; }
    .uspbar__list li { display: inline-flex; }
    .uspbar__links { display: flex; }
}

/* ------------------------------------------------------------ masthead --- */
.masthead { position: sticky; top: 0; z-index: var(--header-z); background: var(--header-bg, #fff); border-bottom: 1px solid var(--header-border, var(--line)); }
.masthead__inner {
    display: grid; align-items: center; gap: var(--sp-2) var(--sp-3);
    grid-template-columns: auto 1fr auto;
    grid-template-areas: "menu logo actions" "search search search";
    padding-block: var(--sp-2);
}
.masthead__menu { grid-area: menu; margin-left: -10px; }
.masthead__logo { grid-area: logo; display: inline-flex; align-items: center; min-height: 44px; color: var(--header-text, var(--color-heading)); text-decoration: none; }
.masthead__logo img { max-height: 44px; width: auto; }
.masthead__logotext { font-family: var(--font-heading); font-size: var(--fs-xl); font-weight: 700; letter-spacing: -0.02em; }
.masthead__search { grid-area: search; position: relative; }
.masthead__actions { grid-area: actions; display: flex; align-items: center; gap: var(--sp-1); margin: 0; padding: 0; }
@media (min-width: 1024px) {
    .masthead__inner { grid-template-columns: auto minmax(320px, 640px) auto; grid-template-areas: "logo search actions"; justify-content: space-between; padding-block: var(--sp-3); gap: var(--sp-6); }
    .masthead__menu { display: none; }
}

.searchbar { display: flex; align-items: center; position: relative; }
.searchbar__input {
    width: 100%; min-height: 44px; padding: 0 48px 0 var(--sp-4);
    font-size: var(--fs-md); background: var(--color-bg-secondary, #f5f5f5);
    border: 1px solid var(--line-strong); border-radius: 999px; color: var(--color-text);
}
.searchbar__input::placeholder { color: var(--muted); opacity: 1; }
.searchbar__btn { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text); }
.searchbar__btn:hover { background: var(--tint); }
.search-dropdown { top: calc(100% + 6px); border-radius: var(--r-lg); box-shadow: var(--shadow-pop); }

.headicon {
    position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
    min-width: 48px; min-height: 48px; padding: var(--sp-1) var(--sp-2);
    color: var(--header-text, var(--color-text)); text-decoration: none; border-radius: var(--r);
    font-size: var(--fs-xs); line-height: 1.1;
}
.headicon:hover { background: var(--tint); color: var(--header-text, var(--color-text)); }
.headicon__label { display: none; margin-top: 2px; }
.headicon__badge {
    position: absolute; top: 2px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 11px; font-weight: 700; line-height: 1;
    color: #fff; background: var(--color-primary); border-radius: 999px;
}
.headicon__badge[hidden] { display: none; }
@media (min-width: 1024px) { .headicon__label { display: block; } .headicon__badge { right: 8px; } }

/* category bar — one scrollable row, never wraps into several lines */
.catnav { border-top: 1px solid var(--line); background: var(--nav-bg, #fff); display: none; }
.catnav__inner { position: relative; }
.catnav__list {
    display: flex; gap: var(--sp-1); margin: 0; padding: 0;
    overflow-x: auto; scrollbar-width: thin; scroll-snap-type: x proximity;
    -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent);
            mask-image: linear-gradient(90deg, #000 92%, transparent);
}
.catnav__link {
    display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--sp-3);
    white-space: nowrap; font-size: var(--fs-base); font-weight: 500; color: var(--nav-text, var(--color-text));
    border-bottom: 2px solid transparent; scroll-snap-align: start; text-decoration: none;
}
.catnav__link:hover { color: var(--nav-hover, var(--color-primary)); border-bottom-color: currentColor; }
.catnav__link[aria-current="page"] { color: var(--nav-active, var(--color-primary)); border-bottom-color: currentColor; font-weight: 600; }
@media (min-width: 1024px) { .catnav { display: block; } }

/* -------------------------------------------------------------- drawer --- */
.drawer { position: fixed; inset: 0; z-index: var(--drawer-z); }
.drawer[hidden] { display: none; }
.drawer__overlay { position: absolute; inset: 0; background: rgba(20, 12, 16, 0.45); opacity: 0; transition: opacity 200ms ease; }
.drawer__panel {
    position: absolute; top: 0; bottom: 0; right: 0;
    width: min(440px, 100vw); display: flex; flex-direction: column;
    background: var(--color-bg, #fff); box-shadow: var(--shadow-pop);
    transform: translateX(100%); transition: transform 220ms ease;
}
.drawer--left .drawer__panel { right: auto; left: 0; transform: translateX(-100%); width: min(380px, 92vw); }
.drawer.is-open .drawer__overlay { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); padding: var(--sp-3) var(--sp-3) var(--sp-3) var(--sp-5); border-bottom: 1px solid var(--line); }
.drawer__title { margin: 0; font-size: var(--fs-lg); line-height: 1.3; }
.drawer__title:focus { outline: none; }
.drawer__title:focus-visible { outline: 3px solid var(--focus); }
.drawer__body { flex: 1; overflow-y: auto; padding: var(--sp-4) var(--sp-5); overscroll-behavior: contain; }
.drawer__foot { display: flex; gap: var(--sp-3); padding: var(--sp-4) var(--sp-5); border-top: 1px solid var(--line); background: var(--color-bg, #fff); }
.drawer__foot > * { flex: 1; }
.drawer__foot--stack { flex-direction: column; }
.drawer__foot[hidden] { display: none; }
.drawer__empty { color: var(--muted); margin: var(--sp-5) 0; text-align: center; }
.drawer__meta { margin: var(--sp-4) 0 0; font-size: var(--fs-sm); }
.drawer__meta a { text-decoration: underline; text-underline-offset: 2px; }

.menulist { margin: 0 0 var(--sp-4); padding: 0; }
.menulist__link { display: flex; align-items: center; min-height: 48px; padding: 0 var(--sp-1); border-bottom: 1px solid var(--color-border-light, var(--line)); font-weight: 500; text-decoration: none; }
.menulist--secondary .menulist__link { font-weight: 400; color: var(--muted); }

/* cart lines (drawer) */
.cartlist { margin: 0; padding: 0; }
.cartline { display: grid; grid-template-columns: 80px 1fr; gap: var(--sp-4); padding: var(--sp-4) 0; border-bottom: 1px solid var(--line); }
.cartline--added { border-bottom: 0; padding-top: 0; }
.cartline__img { width: 80px; height: 80px; object-fit: contain; background: #fff; border: 1px solid var(--color-border-light, var(--line)); border-radius: var(--r); }
.cartline__img--empty { display: block; background: var(--tint); }
.cartline__info > * { margin: 0 0 2px; }
.cartline__brand { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.cartline__name { font-weight: 600; line-height: 1.35; }
.cartline__name a { text-decoration: none; }
.cartline__name a:hover { text-decoration: underline; }
.cartline__variant, .cartline__qty { font-size: var(--fs-sm); color: var(--muted); }
.cartline__prices { margin-top: var(--sp-2); }
.cartline__prices p { margin: 0; }
.cartline__price { font-size: var(--fs-md); }
.cartline__plabel { color: var(--muted); font-size: var(--fs-sm); }
.cartline__was { font-size: var(--fs-sm); color: var(--muted); }
.cartline__note { font-size: var(--fs-xs); color: var(--muted); }
.cartline__remove { margin-top: var(--sp-2); }
.cartsum { display: flex; justify-content: space-between; align-items: baseline; margin: 0 0 var(--sp-1); font-size: var(--fs-md); }
.cartsum strong { font-size: var(--fs-lg); }

.postal { margin-top: var(--sp-4); padding: var(--sp-4); background: var(--tint); border-radius: var(--r-lg); }
.postal__title { margin: 0 0 var(--sp-2); font-weight: 600; }
.postal__row { display: flex; gap: var(--sp-2); }
.postal__row .input { flex: 1; }
.postal__hint, .postal__status { margin: var(--sp-2) 0 0; font-size: var(--fs-sm); color: var(--muted); }
.postal__status:empty { display: none; }

/* --------------------------------------------------------- breadcrumbs --- */
.breadcrumbs { padding: var(--sp-3) 0 var(--sp-2); margin: 0; font-size: var(--fs-sm); }
.breadcrumbs__list { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-1); margin: 0; padding: 0; }
.breadcrumbs__item { display: inline-flex; align-items: center; gap: var(--sp-1); color: var(--muted); }
.breadcrumbs__item:not(:last-child)::after { content: "/"; margin: 0 2px; color: var(--muted); }
.breadcrumbs__link { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; text-decoration-color: transparent; }
.breadcrumbs__link:hover { color: var(--color-text); text-decoration-color: currentColor; }
.breadcrumbs__current { color: var(--color-text); }

/* ------------------------------------------------------------- listing --- */
.listing { padding-bottom: var(--sp-7); }
.listing-head { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--sp-3); row-gap: var(--sp-1); margin: var(--sp-1) 0 var(--sp-3); }
.listing-head__title { margin: 0; font-size: var(--fs-xl); line-height: 1.2; }
.listing-head__count { color: var(--muted); font-size: var(--fs-sm); }
.listing-head__intro, .listing-head__desc { flex-basis: 100%; margin: 0; max-width: 75ch; color: var(--muted); }
.listing-head__desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 1024px) { .listing-head__title { font-size: var(--fs-2xl); } }

.toolbar {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--sp-2) var(--sp-4);
    padding: var(--sp-2) 0; margin-bottom: var(--sp-3);
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.toolbar__filters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.toolbar__right { display: flex; align-items: center; gap: var(--sp-3); margin-left: auto; }

.chip {
    display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 var(--sp-3);
    font-size: var(--fs-sm); font-weight: 500; color: var(--color-text);
    background: #fff; border: 1px solid var(--line-strong); border-radius: 999px; text-decoration: none; cursor: pointer;
}
.chip:hover { border-color: var(--color-text); color: var(--color-text); background: var(--tint); }
.chip.is-active { background: var(--color-text); border-color: var(--color-text); color: #fff; }
.chip--strong { font-weight: 600; }
.chip__count { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--color-primary); color: #fff; font-size: 11px; }
.chip__x { font-size: 1.1em; line-height: 1; margin-left: 2px; }

.viewtoggle { display: none; gap: 2px; }
.viewtoggle__btn { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: var(--r); color: var(--muted); }
.viewtoggle__btn:hover { background: var(--tint); color: var(--color-text); }
.viewtoggle__btn.is-active { color: var(--color-text); background: var(--tint); }
@media (min-width: 768px) { .viewtoggle { display: inline-flex; } }

.sortform { display: flex; align-items: center; gap: var(--sp-2); margin: 0; }
.sortform__label { font-size: var(--fs-sm); color: var(--muted); }

.activefilters { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin: 0 0 var(--sp-3); padding: 0; }
.activefilters__clear { font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 2px; margin-left: var(--sp-1); }

.fgroup { border: 0; margin: 0 0 var(--sp-5); padding: 0; }
.fgroup__title { font-weight: 700; font-size: var(--fs-md); margin-bottom: var(--sp-2); padding: 0; }
.fgroup__list--scroll { max-height: 320px; overflow-y: auto; padding-right: var(--sp-2); }
.pricerange { display: flex; align-items: flex-end; gap: var(--sp-2); }
.pricerange .field { margin: 0; flex: 1; }
.pricerange__dash { padding-bottom: 12px; color: var(--muted); }

/* product grid */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-3); }
@media (min-width: 640px) { .pgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); } }
.pgrid--large { grid-template-columns: repeat(1, minmax(0, 1fr)); }
@media (min-width: 640px) { .pgrid--large { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .pgrid--large { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.loadmore { display: flex; flex-direction: column; align-items: center; gap: var(--sp-3); margin-top: var(--sp-6); }
.loadmore__status { margin: 0; font-size: var(--fs-sm); color: var(--muted); }
.loadmore__bar { width: min(240px, 60vw); height: 3px; background: var(--line); border-radius: 3px; overflow: hidden; }
.loadmore__bar span { display: block; height: 100%; background: var(--color-text); transition: width 300ms ease; }
.loadmore__btn { min-width: 240px; }
.loadmore__first { font-size: var(--fs-sm); text-decoration: underline; }

.empty-state { text-align: center; padding: var(--sp-7) var(--sp-4); max-width: 520px; margin: 0 auto; color: var(--muted); }
.empty-state svg { margin: 0 auto var(--sp-3); color: var(--muted); }
.empty-state__title { font-size: var(--fs-lg); color: var(--color-heading); margin: 0 0 var(--sp-2); }
.empty-state p { margin: 0 0 var(--sp-4); }

.searchbox { display: flex; gap: var(--sp-2); max-width: 560px; margin-bottom: var(--sp-6); }

/* ------------------------------------------------------- image frames --- */
.img-frame {
    position: relative; display: block; width: 100%; overflow: hidden;
    background-color: #fff; background-size: cover; background-position: center;
}
/* Blurred placeholder layer (inherits the LQIP background-image). */
.img-frame::before {
    content: ""; position: absolute; inset: -12px;
    background: inherit; filter: blur(14px); transform: scale(1.06);
    transition: opacity 400ms ease;
}
.img-frame.is-loaded::before { opacity: 0; }
/* Drop the placeholder once the real image is in, so contain-letterboxing stays clean. */
.img-frame.is-loaded { background-image: none !important; background-color: #fff; }
.img-frame__img {
    position: relative; display: block; width: 100%; height: 100%;
    object-fit: contain; transition: opacity 400ms ease;
}
.img-frame.is-loading .img-frame__img { opacity: 0; }
.img-frame--cover .img-frame__img { object-fit: cover; }
.img-frame--empty { background: var(--tint); }
.img-frame--empty::after {
    content: ""; position: absolute; inset: 0; margin: auto; width: 36%; height: 36%; opacity: 0.35;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23555' stroke-width='1.2'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Ccircle cx='9' cy='10' r='2'/%3E%3Cpath d='M21 17l-5-5-9 8'/%3E%3C/svg%3E") center / contain no-repeat;
}

/* --------------------------------------------------------------- cards --- */
.pcard { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pcard__media { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #fff; }
.pcard__img { aspect-ratio: 1 / 1 !important; }
.pcard__img .img-frame__img { padding: 4%; transition: transform 300ms ease, opacity 400ms ease; }
@media (hover: hover) { .pcard:hover .pcard__img .img-frame__img { transform: scale(1.03); } }
.pcard__badges { position: absolute; top: var(--sp-2); left: var(--sp-2); z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); pointer-events: none; }
.pcard__body { display: flex; flex-direction: column; gap: 2px; padding-top: var(--sp-3); flex: 1; }
.pcard__body > * { margin: 0; }
.pcard__brand { font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pcard__name { font-size: var(--fs-base); font-weight: 500; line-height: 1.35; margin: 0; color: var(--color-text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pcard__link { color: inherit; text-decoration: none; }
.pcard__link::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--r-lg); }
.pcard__link:focus-visible { outline: none; }
.pcard__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: 3px; }
.pcard:hover .pcard__link { text-decoration: underline; text-underline-offset: 2px; }
.pcard__price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 var(--sp-2); margin-top: var(--sp-1) !important; }
.pcard__actions { position: relative; z-index: 2; margin-top: var(--sp-3); }
.pcard--soldout .pcard__img .img-frame__img { opacity: 0.6; }
.pcard.is-removed { opacity: 0; transition: opacity 200ms ease; }

.price { font-size: var(--fs-md); font-weight: 700; color: var(--price-color, var(--color-heading)); }
.price--sale, .price--sale .price, .pdp__price-now.price--sale { color: var(--price-sale-color, var(--color-error)); }
.price-old { font-size: var(--fs-sm); color: var(--price-original-color, var(--muted)); }

.badge { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--sp-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.02em; text-transform: none; border-radius: var(--r-sm); line-height: 1; }
.badge--sale { background: var(--badge-sale-bg, #b3261e); color: var(--badge-sale-text, #fff); }
.badge--new { background: var(--badge-new-bg, #111); color: var(--badge-new-text, #fff); }

.stock { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--color-text); margin: 0; }
.stock__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.stock--in .stock__dot { background: var(--stock-in, #2e7d32); }
.stock--low .stock__dot { background: var(--stock-low, #8a5300); }
.stock--low { color: var(--stock-low, #8a5300); }
.stock--out .stock__dot { background: var(--stock-out, #b3261e); }
.stock--out { color: var(--muted); }

.fav-btn {
    position: absolute; top: var(--sp-2); right: var(--sp-2); z-index: 2;
    width: 40px; height: 40px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.92); color: var(--color-text);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
    transition: transform var(--ease), color var(--ease);
}
.fav-btn svg { fill: none; stroke: currentColor; stroke-width: 1.8; }
.fav-btn:hover { transform: scale(1.06); color: var(--color-primary); }
.fav-btn[aria-pressed="true"] { color: var(--color-primary); }
.fav-btn[aria-pressed="true"] svg { fill: currentColor; }
.fav-btn--boxed { position: static; flex: none; width: 52px; height: 52px; border-radius: var(--r); border: 1px solid var(--line-strong); box-shadow: none; background: #fff; }

/* -------------------------------------------------------- product page --- */
.pdp-wrap { padding-bottom: var(--sp-7); }
.pdp { display: grid; gap: var(--sp-5); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1024px) { .pdp { grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.85fr); gap: var(--sp-7); align-items: start; } }

.pdp__gallery { min-width: 0; }
.pdp__main { border-radius: var(--r-lg); overflow: hidden; background: #fff; border: 1px solid var(--color-border-light, var(--line)); }
.pdp__main-frame { max-height: 78vh; }
.pdp__main-frame .img-frame__img { object-fit: contain; }
.pdp__thumbs { display: flex; gap: var(--sp-2); margin: var(--sp-3) 0 0; padding: 0 0 var(--sp-1); overflow-x: auto; }
.pdp__thumb { flex: none; width: 72px; height: 72px; padding: 2px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; overflow: hidden; }
.pdp__thumb .img-frame { width: 100%; height: 100%; aspect-ratio: auto !important; }
.pdp__thumb .img-frame__img { object-fit: contain; }
.pdp__thumb:hover { border-color: var(--line-strong); }
.pdp__thumb.is-active, .pdp__thumb[aria-pressed="true"] { border: 2px solid var(--color-text); }

.pdp__sticky > * { margin-top: 0; }
@media (min-width: 1024px) { .pdp__sticky { position: sticky; top: calc(var(--sticky-top, 140px)); } }
.pdp__brand { margin: 0 0 var(--sp-1); font-size: var(--fs-sm); font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.pdp__title { margin: 0 0 var(--sp-2); font-size: var(--fs-xl); line-height: 1.25; }
@media (min-width: 1024px) { .pdp__title { font-size: var(--fs-2xl); } }
.pdp__sku { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); color: var(--muted); }
.pdp__short { margin: 0 0 var(--sp-4); color: var(--color-text); }
.pdp__price { margin: var(--sp-3) 0; }
.pdp__price p { margin: 0; }
.pdp__price-now { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.2; color: var(--price-color, var(--color-heading)); }
.pdp__price-was { display: flex; align-items: center; flex-wrap: wrap; gap: var(--sp-2); margin-top: var(--sp-1) !important; color: var(--muted); font-size: var(--fs-sm); }
.pdp__omnibus { font-size: var(--fs-xs); color: var(--muted); margin-top: 2px !important; }
.pdp__vat { font-size: var(--fs-xs); color: var(--muted); }
.pdp__stock { margin: 0 0 var(--sp-4); font-size: var(--fs-base); }

.pdp__variants { margin-bottom: var(--sp-4); }
.variant { margin-bottom: var(--sp-3); }
.variant__label { display: block; margin: 0 0 var(--sp-2); font-weight: 600; font-size: var(--fs-sm); }
.variant__options { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.variant__btn { min-width: 48px; min-height: 44px; padding: 0 var(--sp-4); border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; font-size: var(--fs-base); }
.variant__btn:hover:not(:disabled) { border-color: var(--color-text); }
.variant__btn[aria-pressed="true"], .variant__btn.is-selected { border: 2px solid var(--color-text); font-weight: 600; }
.variant__btn:disabled { color: var(--muted); text-decoration: line-through; background: var(--tint); cursor: not-allowed; }

.pdp__buy { display: flex; align-items: stretch; gap: var(--sp-2); margin-bottom: var(--sp-4); }
.pdp__add { flex: 1; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-strong); border-radius: var(--r); background: #fff; }
.qty__btn { width: 40px; height: 50px; display: inline-flex; align-items: center; justify-content: center; color: var(--color-text); }
.qty__btn:hover { background: var(--tint); }
.qty__input { width: 40px; height: 50px; border: 0; text-align: center; font-size: var(--fs-md); -moz-appearance: textfield; background: transparent; }
.qty__input::-webkit-outer-spin-button, .qty__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

.usp-list { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); background: var(--tint); border-radius: var(--r-lg); display: grid; gap: var(--sp-1); font-size: var(--fs-sm); }
.usp-list li { display: flex; align-items: center; gap: var(--sp-2); }
.usp-list svg { color: var(--color-success, #2e7d32); flex: none; }

.accordion { border-top: 1px solid var(--line); }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__head {
    display: flex; align-items: center; justify-content: space-between; min-height: 52px;
    padding: 0 var(--sp-1); font-weight: 600; font-size: var(--fs-md); cursor: pointer; list-style: none;
}
.accordion__head::-webkit-details-marker { display: none; }
.accordion__head::after { content: ""; width: 10px; height: 10px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); transition: transform var(--ease); }
.accordion__item[open] > .accordion__head::after { transform: rotate(-135deg) translate(-2px, -2px); }
.accordion__body { padding: 0 var(--sp-1) var(--sp-4); }

.prose { max-width: 70ch; line-height: 1.65; overflow-wrap: anywhere; }
.prose > :first-child { margin-top: 0; }
.prose p, .prose ul, .prose ol { margin: 0 0 var(--sp-3); }
.prose ul { list-style: disc; padding-left: 1.25em; }
.prose ol { list-style: decimal; padding-left: 1.25em; }
.prose a { text-decoration: underline; text-underline-offset: 2px; color: var(--color-primary); }
.prose h2 { font-size: var(--fs-lg); margin: var(--sp-5) 0 var(--sp-2); }
.prose h3 { font-size: var(--fs-md); margin: var(--sp-4) 0 var(--sp-2); }
.prose img { height: auto; border-radius: var(--r); }
.prose table { width: 100%; margin-bottom: var(--sp-3); font-size: var(--fs-sm); }
.prose td, .prose th { padding: var(--sp-2); border-bottom: 1px solid var(--line); text-align: left; }

.specs { margin: 0; }
.specs__row { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: var(--sp-3); padding: var(--sp-2) 0; border-bottom: 1px solid var(--color-border-light, var(--line)); font-size: var(--fs-sm); }
.specs__row:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { margin: 0; }

.doclist { margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.doclist__link { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: underline; text-underline-offset: 2px; }
.doclist__meta { color: var(--muted); font-size: var(--fs-sm); text-decoration: none; }

/* product rail ("Fler i …") */
.rail { margin-top: var(--sp-7); }
.rail__head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-3); }
.rail__title { margin: 0; font-size: var(--fs-lg); }
@media (min-width: 1024px) { .rail__title { font-size: var(--fs-xl); } }
.rail__nav { display: flex; align-items: center; gap: var(--sp-2); }
.rail__all { font-size: var(--fs-sm); text-decoration: underline; text-underline-offset: 2px; margin-right: var(--sp-2); }
.rail__track {
    display: grid; grid-auto-flow: column; grid-auto-columns: 46%;
    gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: var(--sp-3);
    scrollbar-width: thin; overscroll-behavior-x: contain;
}
.rail__track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .rail__track { grid-auto-columns: 31%; } }
@media (min-width: 1024px) { .rail__track { grid-auto-columns: calc((100% - 4 * var(--sp-5)) / 5); gap: var(--sp-5); } }

/* ------------------------------------------------------ info pages --- */
.infopage { padding-bottom: var(--sp-7); }
.infopage__layout { display: grid; gap: var(--sp-5); }
@media (min-width: 1024px) { .infopage--nav .infopage__layout { grid-template-columns: 240px minmax(0, 1fr); gap: var(--sp-7); align-items: start; } }
.infopage__title { margin: var(--sp-1) 0 var(--sp-4); font-size: var(--fs-xl); line-height: 1.2; }
@media (min-width: 1024px) { .infopage__title { font-size: var(--fs-2xl); } }
.infopage__lead { font-size: var(--fs-md); color: var(--muted); max-width: 70ch; margin: 0 0 var(--sp-5); }
.infopage__main { min-width: 0; }

.servicenav { order: 2; border-top: 1px solid var(--line); padding-top: var(--sp-4); }
@media (min-width: 1024px) { .servicenav { order: 0; border-top: 0; padding-top: 0; position: sticky; top: 150px; } }
.servicenav__title { margin: 0 0 var(--sp-2); font-weight: 700; font-size: var(--fs-md); }
.servicenav__title a { text-decoration: none; }
.servicenav__list { margin: 0; padding: 0; display: grid; gap: 2px; }
.servicenav__link { display: flex; align-items: center; min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r); text-decoration: none; color: var(--color-text); }
.servicenav__link:hover { background: var(--tint); color: var(--color-text); }
.servicenav__link[aria-current="page"] { background: var(--tint); font-weight: 600; box-shadow: inset 3px 0 0 var(--color-primary); }

.servicegrid { display: grid; gap: var(--sp-3); margin: 0 0 var(--sp-6); padding: 0; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.servicecard { display: flex; flex-direction: column; gap: var(--sp-1); height: 100%; padding: var(--sp-4); border: 1px solid var(--line); border-radius: var(--r-lg); text-decoration: none; color: var(--color-text); transition: border-color var(--ease), background var(--ease); }
.servicecard:hover { border-color: var(--line-strong); background: var(--tint); color: var(--color-text); }
.servicecard__title { font-weight: 700; }
.servicecard__desc { font-size: var(--fs-sm); color: var(--muted); }

.contactlayout { display: grid; gap: var(--sp-6); }
@media (min-width: 900px) { .contactlayout { grid-template-columns: minmax(0, 1fr) 300px; align-items: start; } }
.contactform { max-width: 560px; }
.form__req-note { font-size: var(--fs-sm); color: var(--muted); margin: 0 0 var(--sp-3); }
.contactbox { padding: var(--sp-5); background: var(--tint); border-radius: var(--r-lg); }
.contactbox__title { font-size: var(--fs-lg); margin: 0 0 var(--sp-3); }
.contactbox__list { margin: 0 0 var(--sp-4); display: grid; gap: var(--sp-3); }
.contactbox__list dt { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.contactbox__list dd { margin: 0; }
.contactbox__list a { text-decoration: underline; text-underline-offset: 2px; }
.contactlayout .contactbox .btn { display: none; }

/* -------------------------------------------------------- pagination --- */
.pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: var(--sp-1); margin: var(--sp-6) 0 0; }
.pagination__link, .pagination__current { display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 var(--sp-3); border-radius: var(--r); border: 1px solid var(--line); text-decoration: none; font-size: var(--fs-sm); }
.pagination__link:hover { border-color: var(--color-text); }
.pagination__current { background: var(--color-text); border-color: var(--color-text); color: #fff; font-weight: 700; }
.pagination__ellipsis { padding: 0 var(--sp-1); color: var(--muted); }

/* ------------------------------------------------------------ footer --- */
.site-footer { display: none; } /* legacy footer markup (unused) */
.sitefoot { margin-top: var(--sp-7); background: var(--footer-bg, #222); color: var(--footer-text, #ddd); font-size: var(--fs-sm); }
.sitefoot a { color: var(--footer-link, #fff); text-decoration: none; }
.sitefoot a:hover { color: var(--footer-link-hover, #fff); text-decoration: underline; text-underline-offset: 2px; }
.sitefoot__grid { display: grid; gap: var(--sp-6); padding-block: var(--sp-7) var(--sp-6); grid-template-columns: 1fr; }
@media (min-width: 640px) { .sitefoot__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .sitefoot__grid { grid-template-columns: 1.3fr 1fr 1fr 1.3fr; } }
.sitefoot__title { color: var(--footer-heading, #fff); font-size: var(--fs-md); margin: 0 0 var(--sp-3); }
.sitefoot p { margin: 0 0 var(--sp-3); color: inherit; }
.sitefoot__links, .sitefoot__contact { margin: 0; padding: 0; display: grid; gap: var(--sp-2); }
.sitefoot__links a { display: inline-flex; min-height: 28px; align-items: center; }
.sitefoot__social { display: flex; gap: var(--sp-2); margin: 0; padding: 0; }
.sitefoot__social a { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35); }
.sitefoot__social a:hover { background: rgba(255, 255, 255, 0.12); text-decoration: none; }
.newsform { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.newsform__input { flex: 1 1 180px; border-color: transparent; }
.newsform__btn { flex: none; background: #fff; color: var(--footer-bg, #222); }
.newsform__btn:hover:not(:disabled) { background: var(--color-tint, #f3f3f3); color: var(--footer-bg, #222); }
.sitefoot__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--sp-2); padding-block: var(--sp-4); border-top: 1px solid rgba(255, 255, 255, 0.18); font-size: var(--fs-xs); }
.sitefoot__bottom p { margin: 0; }
.sitefoot :focus-visible { outline-color: #fff; }

/* ----------------------------------------------------- misc overrides --- */
.toast-container { z-index: 1100; }

/* CMS / home product sections use the legacy wrapper class */
.product-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5) var(--sp-3); }
@media (min-width: 640px) { .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-6) var(--sp-5); } }

/* ------------------------------------------------------- cookie banner --- */
/* Compact, on-brand bottom bar; never covers more than ~40% of a phone. */
.cookie-consent {
    background: var(--color-bg, #fff) !important; color: var(--color-text) !important;
    border-top: 1px solid var(--line) !important; box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.12);
    max-height: 60vh; overflow-y: auto; font-size: var(--fs-sm);
}
.cookie-consent__inner { max-width: var(--container); margin: 0 auto; padding: var(--sp-4) var(--gutter) !important; gap: var(--sp-3) var(--sp-6) !important; }
.cookie-consent__text { margin: 0 0 var(--sp-2) !important; color: var(--color-text) !important; font-size: var(--fs-sm) !important; line-height: 1.5; }
.cookie-consent__text--muted { color: var(--muted) !important; font-size: var(--fs-xs) !important; }
.cookie-consent__link { color: var(--color-primary) !important; text-decoration: underline; }
.cookie-consent__btn {
    min-height: 44px; padding: 0 var(--sp-4) !important; border-radius: var(--r) !important;
    font-weight: 600; font-size: var(--fs-sm) !important;
}
.cookie-consent__btn--primary { background: var(--btn-primary-bg, var(--color-primary)) !important; color: var(--btn-primary-text, #fff) !important; border: 1px solid transparent !important; }
.cookie-consent__btn--primary:hover { background: var(--btn-primary-hover, var(--color-primary-hover)) !important; }
.cookie-consent__btn--ghost { background: #fff !important; color: var(--color-text) !important; border: 1px solid var(--line-strong) !important; }
.cookie-consent__btn--ghost:hover { background: var(--tint) !important; }
.cookie-consent__btn:focus-visible { outline: 3px solid var(--focus) !important; outline-offset: 2px; }
.cookie-consent__panel { background: var(--tint) !important; color: var(--color-text) !important; border-radius: var(--r-lg); }
.cookie-consent__option small { color: var(--muted) !important; }
@media (max-width: 767px) {
    .cookie-consent__text--muted { display: none; }
    .cookie-consent__actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: var(--sp-2) !important; }
    .cookie-consent__actions [data-cookie-consent-accept] { grid-column: 1 / -1; grid-row: 1; }
}
.input::placeholder, .searchbar__input::placeholder, .newsform__input::placeholder { color: #6b6b6b; opacity: 1; }

/* ------------------------------------------------- page-builder sections --- */
.page-sections > .page-section { margin: 0; }
.page-section + .page-section { margin-top: var(--sp-6); }
@media (min-width: 1024px) { .page-section + .page-section { margin-top: var(--sp-7); } }
.section-header { display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.section-header__title { margin: 0; font-size: var(--fs-lg); }
@media (min-width: 1024px) { .section-header__title { font-size: var(--fs-xl); } }
.section-header__link { font-size: var(--fs-sm); font-weight: 600; color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.section-header__link:hover { color: var(--color-primary); }

.hero-banner {
    position: relative; display: flex; align-items: center; min-height: 0 !important;
    padding-block: var(--sp-7); background-size: cover; background-position: center; overflow: hidden;
}
@media (min-width: 1024px) { .hero-banner { padding-block: 72px; } }
.hero-banner__overlay { position: absolute; inset: 0; background: #000; pointer-events: none; }
.hero-banner .container { position: relative; }
.hero-banner__content { max-width: 640px; }
.hero-banner__heading { margin: 0 0 var(--sp-3); font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.75rem); line-height: 1.1; color: inherit; letter-spacing: -0.02em; }
.hero-banner__subheading { margin: 0 0 var(--sp-5); font-size: var(--fs-md); line-height: 1.6; color: inherit; max-width: 56ch; }
@media (min-width: 1024px) { .hero-banner__subheading { font-size: var(--fs-lg); } }

.category-grid { display: grid; gap: var(--sp-3); margin: 0; padding: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .category-grid, .category-grid[class*="--cols-"] { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--sp-4); } }
.category-grid__card { display: flex; flex-direction: column; align-items: stretch; gap: 2px; height: 100%; padding: 0; text-align: left; background: none; border: 0; border-radius: 0; box-shadow: none; text-decoration: none; color: var(--color-text); }
.category-grid__card:hover { box-shadow: none; transform: none; }
.category-grid__media { aspect-ratio: 1 / 1 !important; border-radius: var(--r-lg); background-color: #fff; border: 1px solid var(--color-border-light, var(--line)); margin-bottom: var(--sp-2); }
.category-grid__media .img-frame__img { padding: 8%; transition: transform 300ms ease, opacity 400ms ease; }
@media (hover: hover) { .category-grid__card:hover .img-frame__img { transform: scale(1.04); } }
.category-grid__name { font-weight: 600; font-size: var(--fs-base); line-height: 1.3; }
.category-grid__card:hover .category-grid__name { text-decoration: underline; text-underline-offset: 2px; color: var(--color-text); }
.category-grid__count { font-size: var(--fs-xs); color: var(--muted); }

.text-block { padding-block: var(--sp-6); }
@media (min-width: 1024px) { .text-block { padding-block: var(--sp-7); } }
.text-block__heading { margin: 0 0 var(--sp-3); font-size: var(--fs-lg); }
@media (min-width: 1024px) { .text-block__heading { font-size: var(--fs-xl); } }
.text-block__content { line-height: 1.65; }
.text-block__content p { margin: 0 0 var(--sp-3); }
.text-block__content a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }
.page-home .sitefoot { margin-top: 0; }
.page-home .page-sections > .page-section:last-child .text-block { margin-bottom: 0; }

.image-text { padding-block: var(--sp-6); }
.image-text__grid { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 900px) { .image-text__grid { grid-template-columns: 1fr 1fr; gap: var(--sp-7); } .image-text--image_right .image-text__image { order: 2; } }
.image-text__image img { border-radius: var(--r-lg); width: 100%; height: auto; }
.image-text__heading { margin: 0 0 var(--sp-3); font-size: var(--fs-xl); }
.banner-strip { padding-block: var(--sp-3); text-align: center; font-weight: 600; }
.banner-strip__link { color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------- legacy button classes → system */
.btn-primary, .btn-secondary { background: var(--btn-primary-bg, var(--color-primary)); color: var(--btn-primary-text, #fff); border-color: transparent; }
.btn-primary:hover:not(:disabled), .btn-secondary:hover:not(:disabled) { background: var(--btn-primary-hover, var(--color-primary-hover)); color: var(--btn-primary-text, #fff); }
.btn-outline { background: #fff; color: var(--color-text); border: 1px solid var(--line-strong); }
.btn-outline:hover:not(:disabled) { background: var(--tint); border-color: var(--color-text); color: var(--color-text); }
.btn-lg { min-height: 52px; padding: 0 var(--sp-6); font-size: var(--fs-md); }
.btn-sm { min-height: 36px; padding: 0 var(--sp-4); font-size: var(--fs-sm); }
.btn-block { display: flex; width: 100%; }
.btn-link { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
.btn-link:hover { color: var(--color-primary); }

/* ------------------------------------------------------- cart & checkout --- */
.cart-page__title, .page-cart h1, .page-checkout h1:not(.sr-only) { font-size: var(--fs-xl); margin: var(--sp-4) 0 var(--sp-4); }
@media (min-width: 1024px) { .cart-page__title { font-size: var(--fs-2xl); } }
.page-cart .quantity-selector, .page-checkout .quantity-selector { border-color: var(--line-strong); border-radius: var(--r); }
.form-input, .form-select, .form-textarea { border: 1px solid var(--line-strong) !important; border-radius: var(--r) !important; min-height: 44px; font-size: var(--fs-md); }
.form-label { font-weight: 600; font-size: var(--fs-sm); }
.form-label--required::after { color: var(--color-error); }
.checkout-section__title { font-size: var(--fs-lg); }
.page-checkout .masthead, .page-checkout .uspbar { position: relative; }
@media (max-width: 767px) {
    /* 1fr = minmax(auto, 1fr): inputs/option cards kept the column ~350px wide on small phones */
    .checkout-layout { grid-template-columns: minmax(0, 1fr); }
    .checkout-layout > * { min-width: 0; }
    /* Three equal steps, label under the number — no sideways scrolling */
    .checkout-steps { overflow: visible; justify-content: space-between; margin-bottom: var(--sp-5); }
    .checkout-step { flex: 1 1 0; min-width: 0; flex-direction: column; gap: var(--sp-1); padding: var(--sp-2) 2px; font-size: var(--fs-xs, 0.75rem); line-height: 1.2; text-align: center; white-space: normal; }
    .checkout-step:not(:last-child)::after { left: calc(50% + 22px); right: calc(-50% + 22px); width: auto; top: calc(var(--sp-2) + 16px); transform: none; }
}

/* ---------------------------------------------------------- error pages --- */
.errorpage { max-width: 640px; margin: var(--sp-7) auto; text-align: center; }
.errorpage__code { margin: 0; font-size: 4rem; font-weight: 800; line-height: 1; color: var(--color-primary); letter-spacing: -0.04em; }
.errorpage__title { margin: var(--sp-3) 0 var(--sp-2); font-size: var(--fs-2xl); }
.errorpage__text { color: var(--muted); margin: 0 auto var(--sp-5); max-width: 52ch; }
.errorpage__search { margin: 0 auto var(--sp-6); }
.errorpage__subtitle { font-size: var(--fs-md); margin: 0 0 var(--sp-3); }
.errorpage__cats { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-2); margin: 0 0 var(--sp-6); padding: 0; }

/* ------------------------------------------------------- image zoom --- */
.pdp__main { position: relative; cursor: zoom-in; }
.pdp__zoomlens {
    position: absolute; inset: 0; z-index: 2; pointer-events: none;
    background-color: #fff; background-repeat: no-repeat; opacity: 0; transition: opacity 150ms ease;
}
.pdp__main.can-zoom.is-zooming .pdp__zoomlens { opacity: 1; }
.pdp__zoombtn {
    position: absolute; right: var(--sp-3); bottom: var(--sp-3); z-index: 3;
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.95); color: var(--color-text); box-shadow: 0 1px 6px rgba(0, 0, 0, 0.18);
}
.pdp__zoombtn:hover { background: #fff; color: var(--color-primary); }

.lightbox { position: fixed; inset: 0; z-index: 10002; background: rgba(15, 10, 12, 0.94); opacity: 0; transition: opacity 180ms ease; }
.lightbox[hidden] { display: none; }
.lightbox.is-open { opacity: 1; }
.lightbox__stage { position: absolute; inset: 56px 0 56px; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; cursor: zoom-in; }
.lightbox.is-zoomed .lightbox__stage { cursor: grab; }
.lightbox.is-zoomed .lightbox__stage:active { cursor: grabbing; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; user-select: none; -webkit-user-drag: none; transform-origin: center center; transition: transform 120ms ease-out; will-change: transform; }
.lightbox__btn {
    position: absolute; z-index: 2; width: 48px; height: 48px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, 0.95); color: #1a1a1a;
}
.lightbox__btn:hover { background: #fff; }
.lightbox__btn:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.lightbox__close { top: var(--sp-2); right: var(--sp-2); }
.lightbox__prev { left: var(--sp-3); top: 50%; transform: translateY(-50%); }
.lightbox__next { right: var(--sp-3); top: 50%; transform: translateY(-50%); }
.lightbox__tools { position: absolute; left: 50%; bottom: var(--sp-2); transform: translateX(-50%); display: flex; gap: var(--sp-2); z-index: 2; }
.lightbox__tools .lightbox__btn { position: static; }
.lightbox__count { position: absolute; top: var(--sp-4); left: var(--sp-4); margin: 0; color: #fff; font-size: var(--fs-sm); }
@media (max-width: 639px) { .lightbox__prev, .lightbox__next { top: auto; bottom: var(--sp-2); transform: none; } }

/* ------------------------------------------------- search suggestions --- */
.search-dropdown { display: block; padding: var(--sp-2) 0; }
.search-dropdown__list { margin: 0; padding: 0; }
.search-dropdown__item { display: block; padding: 0; }
.search-dropdown__link { display: flex; align-items: center; gap: var(--sp-3); padding: var(--sp-2) var(--sp-4); color: var(--color-text); text-decoration: none; }
.search-dropdown__link:hover, .search-dropdown__link:focus-visible { background: var(--tint); color: var(--color-text); outline-offset: -3px; }
.search-dropdown__img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: var(--r-sm); flex: none; }
.search-dropdown__info { display: flex; flex-direction: column; min-width: 0; }
.search-dropdown__name { font-size: var(--fs-sm); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-dropdown__name mark { background: none; color: inherit; font-weight: 700; }
.search-dropdown__price { font-size: var(--fs-xs); color: var(--muted); }
.search-dropdown__all { display: block; padding: var(--sp-3) var(--sp-4) var(--sp-2); border-top: 1px solid var(--line); margin-top: var(--sp-1); font-size: var(--fs-sm); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.search-dropdown__empty { margin: 0; padding: var(--sp-3) var(--sp-4); color: var(--muted); font-size: var(--fs-sm); }

/* Keyboard focus never hides under the sticky header (WCAG 2.4.11). */
html { scroll-padding-top: 140px; }
@media (max-width: 1023px) { html { scroll-padding-top: 120px; } }

/* Small screens: buy row wraps instead of overflowing (WCAG 1.4.10). */
.pdp__buy { flex-wrap: wrap; }
@media (max-width: 379px) {
    .pdp__add { flex: 1 1 100%; order: 3; }
    .pdp__buy .qty { flex: 1 1 auto; justify-content: space-between; }
    .qty__input { flex: 1; }
}
/* Minimum target size 24×24 for stand-alone links (WCAG 2.5.8). */
.section-header__link, .rail__all, .doclist__link, .loadmore__first, .activefilters__clear, .linkbtn {
    display: inline-flex; align-items: center; min-height: 24px; padding-block: 2px;
}
.breadcrumbs__link { display: inline-flex; align-items: center; min-height: 24px; }

/* ------------------------------------------------------- demo notice --- */
.demobar { background: var(--color-bg-dark, #1f3a3d); color: #fff; font-size: var(--fs-sm); }
.demobar__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--sp-1) var(--sp-4); padding-block: var(--sp-2); text-align: center; }
.demobar p { margin: 0; color: #fff; }
.demobar__link { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.demobar__link:hover { color: #fff; text-decoration-thickness: 2px; }
.demobar :focus-visible { outline-color: #fff; }

/* Hero photo as a real image (LCP) behind overlay + text */
.hero-banner__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.hero-banner__overlay { z-index: 1; }
.hero-banner .container { z-index: 2; }

/* ===================== display settings (Butiksfunktioner) =============== */

/* ---- product cards: image format, fill, second image on hover ---- */
.cards-portrait .pcard__img { aspect-ratio: 4 / 5 !important; }
.cards-landscape .pcard__img { aspect-ratio: 4 / 3 !important; }
.cards-fit-cover .pcard__img .img-frame__img { object-fit: cover; padding: 0; }
/* Hidden (never fetched) on touch/small screens; fades in on hover on desktop. */
.pcard__img--hover { display: none; }
@media (hover: hover) and (min-width: 1024px) {
    .pcard__img.pcard__img--hover { display: block; position: absolute; inset: 0; opacity: 0; transition: opacity 300ms ease; }
    .pcard:hover .pcard__img--hover, .pcard:focus-within .pcard__img--hover { opacity: 1; }
}
/* One product per row on phones */
@media (max-width: 639px) {
    .grid-m1 .pgrid, .grid-m1 .product-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ---- category page header ---- */
.cathero { margin: var(--sp-2) 0 var(--sp-5); }
.cathero__title { margin: 0; font-size: var(--fs-2xl); line-height: 1.15; letter-spacing: -0.01em; }
.cathero__count { margin: var(--sp-1) 0 0; color: var(--muted); font-size: var(--fs-sm); }
.cathero__intro { margin-top: var(--sp-3); max-width: 60ch; font-size: var(--fs-md); }
.cathero__intro > * { margin: 0; }
.cathero__intro > * + * { margin-top: var(--sp-2); }
.cathero__img { border-radius: var(--r-lg); }

.cathero--split { display: grid; gap: var(--sp-4); }
.cathero--split .cathero__img { aspect-ratio: 16 / 9 !important; }
@media (min-width: 1024px) {
    .cathero--split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: center; gap: var(--sp-7); margin-bottom: var(--sp-6); }
    .cathero--split .cathero__media { order: 2; }
    .cathero--split .cathero__img { aspect-ratio: 16 / 7 !important; }
    .cathero--split .cathero__title { font-size: 2.5rem; }
}

/* Overlay: image and text share one grid cell, so a long intro grows the
   header instead of spilling out of the image. */
.cathero--overlay { display: grid; min-height: clamp(260px, 32vw, 440px); border-radius: var(--r-lg); overflow: hidden; isolation: isolate; color: #fff; }
.cathero--overlay > * { grid-area: 1 / 1; }
/* The image never sizes the header: it fills whatever the text + min-height give. */
.cathero--overlay .cathero__media { position: relative; }
.cathero--overlay .cathero__img { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; border-radius: 0; }
.cathero--overlay .cathero__media::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.78) 0%, rgba(0, 0, 0, 0.55) 55%, rgba(0, 0, 0, 0.3) 100%);
}
.cathero--overlay .cathero__text { align-self: end; position: relative; z-index: 1; padding: var(--sp-6) var(--sp-4) var(--sp-5); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35); }
.cathero--overlay .cathero__title, .cathero--overlay .cathero__intro { color: #fff; }
.cathero--overlay .cathero__count { color: rgba(255, 255, 255, 0.9); }
.cathero--overlay .prose a { color: #fff; }
@media (min-width: 1024px) {
    .cathero--overlay .cathero__media::after { background: linear-gradient(to right, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.45) 45%, rgba(0, 0, 0, 0.08) 80%); }
    .cathero--overlay .cathero__text { align-self: center; max-width: 720px; padding: var(--sp-7); }
    .cathero--overlay .cathero__title { font-size: 2.75rem; }
}

/* ---- subcategories + description below the products ---- */
.subnav { margin: 0 0 var(--sp-5); }
.cat-chips { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.cat-chips .chip__count { background: var(--tint); color: var(--muted); }
.cat-chips .chip.is-active .chip__count { background: rgba(255, 255, 255, 0.2); color: #fff; }
@media (max-width: 767px) {
    .subnav .cat-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
    .subnav .cat-chips::-webkit-scrollbar { display: none; }
    .subnav .cat-chips > li { flex: 0 0 auto; }
}
.category-grid--rail { display: flex; gap: var(--sp-3); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: var(--sp-2); scrollbar-width: thin; }
.category-grid--rail > li { flex: 0 0 38%; scroll-snap-align: start; }
@media (min-width: 640px) { .category-grid--rail > li { flex-basis: 22%; } }
@media (min-width: 1024px) {
    .category-grid.category-grid--rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); overflow: visible; padding-bottom: 0; }
}
.category-grid--rail .category-grid__name { font-size: var(--fs-sm); }

.listing-about { max-width: 75ch; margin: var(--sp-7) 0 var(--sp-5); padding-top: var(--sp-6); border-top: 1px solid var(--line); }
.listing-about__title { margin: 0 0 var(--sp-3); font-size: var(--fs-xl); }
.listing-about .prose > :first-child { margin-top: 0; }

/* ---- category tiles: photo / overlay / text styles ---- */
.category-grid__text { display: flex; flex-direction: column; gap: 2px; }
.category-grid__media--photo { border: 0; background-color: var(--tint); }
.category-grid__media--photo .img-frame__img { padding: 0; }
.category-grid--overlay .category-grid__card { position: relative; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.category-grid--overlay .category-grid__media { aspect-ratio: 4 / 5 !important; margin: 0; border-radius: 0; }
.category-grid--overlay .category-grid__card::after {
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.75) 0%, rgba(0, 0, 0, 0.35) 40%, rgba(0, 0, 0, 0) 65%);
}
.category-grid--overlay .category-grid__text { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: var(--sp-4); text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4); }
.category-grid--overlay .category-grid__name,
.category-grid--overlay .category-grid__card:hover .category-grid__name { color: #fff; font-size: var(--fs-lg); }
.category-grid--overlay .category-grid__count { color: rgba(255, 255, 255, 0.92); }
.category-grid-section .cat-chips .chip { min-height: 48px; padding-inline: var(--sp-5); font-size: var(--fs-md); }
/* Overlay tiles are large photos: honour the section's column choice on desktop. */
@media (min-width: 1024px) {
    .category-grid.category-grid--overlay.category-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .category-grid.category-grid--overlay.category-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .category-grid.category-grid--overlay.category-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .category-grid.category-grid--overlay.category-grid--cols-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
    .category-grid--overlay.category-grid--cols-6 .category-grid__name { font-size: var(--fs-base); }
}

/* ========================= page sections v2 (Sidbyggaren) ================== */
/* Section types added 2026-10-10: Fördelar, Kampanjrutor, Frågor och svar,
   Kundröster, Kampanj med nedräkning, Bildmosaik, product rail, hero options.
   Builder-only styles (outlines, placeholders) live in pb-preview.css. */

/* ---- hero: left-aligned text option, second button (focal point is inline) ---- */
.hero-banner--left .hero-banner__content { margin-inline: 0; text-align: left; }
.hero-banner--left .hero-banner__subheading { margin-inline: 0; }
.hero-banner__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--sp-3); }
.hero-banner--left .hero-banner__actions { justify-content: flex-start; }
.hero-banner__actions .btn { white-space: normal; text-align: center; }
.hero-banner__button--secondary { background: transparent; color: inherit; border-color: currentColor; }
.hero-banner__button--secondary:hover:not(:disabled) { background: rgba(255, 255, 255, 0.14); color: inherit; }
/* On a photo the outline button needs its own backdrop to stay readable. */
.hero-banner:has(.hero-banner__img) .hero-banner__button--secondary { background: rgba(0, 0, 0, 0.38); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.hero-banner:has(.hero-banner__img) .hero-banner__button--secondary:hover:not(:disabled) { background: rgba(0, 0, 0, 0.55); }
@media (max-width: 479px) { .hero-banner__actions .btn { flex: 1 1 100%; } }

/* ---- product rail inside a page section ---- */
.rail--section { margin-top: 0; }

/* ---- Fördelar (usp_bar) ---- */
.usp-section { padding-block: var(--sp-5); }
.usp-section--tint { background: var(--tint); }
.usp-section--lines { border-block: 1px solid var(--line); }
.usp-section__title { margin: 0 0 var(--sp-4); font-size: var(--fs-lg); text-align: center; }
.usp { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .usp--n4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 768px) { .usp--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .usp--n4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .usp { gap: var(--sp-5); } }
.usp__item { display: flex; align-items: center; gap: var(--sp-3); min-width: 0; }
.usp__icon {
    flex: none; display: inline-flex; align-items: center; justify-content: center;
    width: 48px; height: 48px; border-radius: 50%;
    background: var(--color-bg, #fff); color: var(--color-primary, #111);
}
.usp-section--plain .usp__icon, .usp-section--lines .usp__icon { background: var(--tint); }
.usp__body { display: flex; flex-direction: column; min-width: 0; }
.usp__title { font-size: var(--fs-base); font-weight: 700; line-height: 1.3; color: var(--color-heading, #111); }
.usp__text { font-size: var(--fs-sm); line-height: 1.45; color: var(--muted); }

/* ---- Kampanjrutor (promo_tiles) ---- */
.promo { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) {
    .promo { gap: var(--sp-4); }
    .promo--two, .promo--feature { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .promo--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .promo--feature .promo__tile--big { grid-row: span 2; }
}
.promo__tile { position: relative; display: flex; flex-direction: column; min-width: 0; border-radius: var(--r-lg); overflow: hidden; isolation: isolate; }
.promo__media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--tint); }
@media (min-width: 768px) { .promo--three .promo__media { aspect-ratio: 4 / 5; } }
.promo__media .img-frame { position: absolute; inset: 0; height: 100%; aspect-ratio: auto !important; }
.promo__media .img-frame__img { transition: transform 400ms ease, opacity 400ms ease; }
@media (hover: hover) { .promo__tile:hover .img-frame__img { transform: scale(1.03); } }
@media (min-width: 768px) {
    .promo--feature .promo__media { aspect-ratio: 16 / 9; }
    .promo--feature .promo__tile--big .promo__media { aspect-ratio: auto; flex: 1 1 auto; min-height: 280px; }
}
.promo__body { display: flex; flex-direction: column; align-items: flex-start; gap: var(--sp-1); }
.promo__title { margin: 0; font-size: var(--fs-lg); line-height: 1.25; letter-spacing: -0.01em; }
@media (min-width: 1024px) { .promo__title { font-size: var(--fs-xl); } .promo__tile--big .promo__title { font-size: var(--fs-2xl); } }
.promo__text { margin: 0; font-size: var(--fs-base); line-height: 1.5; }
.promo__cta { margin-top: var(--sp-2); }
span.promo__cta { pointer-events: none; }
.promo__link { color: inherit; text-decoration: none; }
.promo__link::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.promo__link:hover { color: inherit; }
.promo__link:focus-visible { outline: none; }
.promo__link:focus-visible::after { outline: 3px solid var(--focus); outline-offset: -3px; border-radius: var(--r-lg); }
.promo__tile:hover .promo__title { text-decoration: underline; text-underline-offset: 3px; }
/* Text on the image: media and text share one grid cell, so long text
   grows the tile instead of spilling out of it. */
.promo--overlay .promo__tile { display: grid; color: #fff; background: var(--color-bg-dark, #1f2937); }
.promo--overlay .promo__tile > * { grid-area: 1 / 1; }
.promo--overlay .promo__body {
    position: relative; z-index: 1; align-self: end;
    padding: var(--sp-7) var(--sp-4) var(--sp-4);
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.6) 55%, rgba(0, 0, 0, 0) 100%);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}
.promo--overlay .promo__tile--noimg { min-height: 200px; }
.promo--overlay .promo__tile--noimg .promo__media, .promo--overlay .promo__tile--noimg .img-frame--empty { background: transparent; }
.promo--overlay .promo__tile--noimg .promo__body { background: none; text-shadow: none; }
.promo--overlay .promo__title, .promo--overlay .promo__text { color: #fff; }
.promo--overlay .promo__cta { background: #fff; color: #111; text-shadow: none; }
@media (min-width: 1024px) { .promo--overlay .promo__body { padding: var(--sp-7) var(--sp-5) var(--sp-5); } }
/* Text below the image */
.promo--below .promo__tile { border-radius: 0; overflow: visible; }
.promo--below .promo__media { border-radius: var(--r-lg); }
.promo--below .promo__body { padding-top: var(--sp-3); }
.promo--below .promo__tile--noimg .promo__body { padding: var(--sp-5); background: var(--tint); border-radius: var(--r-lg); }
.promo--below .promo__cta { background: var(--btn-primary-bg, var(--color-primary)); color: var(--btn-primary-text, #fff); }

/* ---- Frågor och svar (faq) ---- */
.faq-section__inner { max-width: 820px; margin-inline: auto; }
.faq-section__title { margin: 0 0 var(--sp-2); font-size: var(--fs-xl); }
@media (min-width: 1024px) { .faq-section__title { font-size: var(--fs-2xl); } }
.faq-section__intro { margin: 0 0 var(--sp-4); color: var(--muted); }
.faq-list { border-top: 1px solid var(--line); }
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item__q {
    display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3);
    min-height: 56px; padding: var(--sp-3) 0; cursor: pointer; list-style: none;
    font-size: var(--fs-md); font-weight: 600; line-height: 1.4; color: var(--color-heading, #111);
}
.faq-item__q::-webkit-details-marker { display: none; }
.faq-item__q::marker { content: ""; }
.faq-item__q:hover span { text-decoration: underline; text-underline-offset: 3px; }
.faq-item__icon { flex: none; transition: transform var(--ease); }
.faq-item[open] > .faq-item__q .faq-item__icon { transform: rotate(180deg); }
.faq-item__a { max-width: 70ch; padding: 0 0 var(--sp-4); line-height: 1.65; }
.faq-item__a p { margin: 0 0 var(--sp-3); }
.faq-item__a > :last-child { margin-bottom: 0; }
.faq-item__a a { color: var(--color-primary); text-decoration: underline; text-underline-offset: 2px; }

/* ---- Kundröster (testimonials) ---- */
.quotes { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--sp-4); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .quotes--n2, .quotes--n3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .quotes--n3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-5); } }
.quotes--n1 { max-width: 760px; }
.quote__fig { display: flex; flex-direction: column; gap: var(--sp-3); height: 100%; margin: 0; padding: var(--sp-5); background: var(--tint); border-radius: var(--r-lg); }
.quote__stars { display: flex; gap: 2px; margin: 0; color: var(--line-strong); }
.quote__star { display: inline-flex; }
.quote__star svg { fill: currentColor; }
.quote__star.is-on { color: var(--rating-color, #a15c07); }
.quote__text { flex: 1; margin: 0; font-size: var(--fs-md); line-height: 1.6; }
.quote__text p { margin: 0; }
.quote__text p::before, .quote__text p::after { content: "\201D"; }
.quote__by { font-size: var(--fs-sm); font-weight: 700; color: var(--color-heading, #111); }
.quote__place { font-weight: 400; color: var(--muted); }

/* ---- Kampanj med nedräkning (countdown) ---- */
.countdown { padding-block: var(--sp-6); }
.countdown__inner { display: grid; justify-items: center; gap: var(--sp-4); text-align: center; }
@media (min-width: 1024px) {
    .countdown__inner { grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; justify-items: start; gap: var(--sp-6); text-align: left; }
}
.countdown__heading { margin: 0; font-size: var(--fs-xl); line-height: 1.2; color: inherit; }
@media (min-width: 1024px) { .countdown__heading { font-size: var(--fs-2xl); } }
.countdown__lead { margin: var(--sp-1) 0 0; color: inherit; }
.countdown__units { display: flex; gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.countdown__unit { display: flex; flex-direction: column; align-items: center; min-width: 60px; padding: var(--sp-2); border: 1px solid currentColor; border-radius: var(--r); }
.countdown__num { font-size: var(--fs-2xl); font-weight: 700; line-height: 1.1; font-variant-numeric: tabular-nums; }
.countdown__label { font-size: var(--fs-xs); letter-spacing: 0.06em; text-transform: uppercase; }
.countdown__btn { white-space: normal; text-align: center; border-color: transparent; }
.countdown__btn:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 359px) { .countdown__unit { min-width: 52px; padding-inline: var(--sp-1); } .countdown__num { font-size: var(--fs-xl); } }

/* ---- Bildmosaik (gallery) ---- */
.mosaic { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-2); margin: 0; padding: 0; list-style: none; }
.mosaic__item { position: relative; min-width: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--tint); }
.mosaic__item .img-frame { aspect-ratio: 1 / 1 !important; height: 100%; }
/* Phones: the big image and a "wide" one (lone last image) span both columns. */
.mosaic__item--big, .mosaic__item--wide { grid-column: 1 / -1; }
.mosaic__item--big .img-frame, .mosaic__item--wide .img-frame { aspect-ratio: 16 / 10 !important; }
.mosaic__link { display: block; height: 100%; }
.mosaic__link:focus-visible { outline-offset: -3px; }
.mosaic__link .img-frame__img { transition: transform 400ms ease, opacity 400ms ease; }
@media (hover: hover) { .mosaic__link:hover .img-frame__img { transform: scale(1.03); } }
/* Tablet/desktop: 4 columns × 2 rows; the first image takes 2×2. */
@media (min-width: 768px) {
    .mosaic { grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: clamp(140px, 19vw, 300px); gap: var(--sp-3); }
    .mosaic .mosaic__item { grid-column: span 1; }
    .mosaic .mosaic__item .img-frame { aspect-ratio: auto !important; height: 100%; }
    .mosaic .mosaic__item--big { grid-column: span 2; grid-row: span 2; }
    .mosaic .mosaic__item--wide, .mosaic--n3 .mosaic__item:not(.mosaic__item--big), .mosaic--n2 .mosaic__item { grid-column: span 2; }
    .mosaic--n1 .mosaic__item { grid-column: 1 / -1; grid-row: span 2; }
    .mosaic--n2 .mosaic__item { grid-row: span 2; }
}

/* ---- Varumärken (brand_grid): logo or typographic tiles, or chips ---- */
.brandtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .brandtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .brandtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); } }
@media (min-width: 1280px) { .brandtiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.brandtiles > li { min-width: 0; }
.brandtile {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: var(--sp-1);
    /* Width drives the 3:2 ratio (no percentage height, which would derive the
       width from the row height); min-width: 0 stops min-height from widening it. */
    width: 100%; min-width: 0; min-height: 112px; aspect-ratio: 3 / 2; padding: var(--sp-4) var(--sp-3);
    text-align: center; text-decoration: none; color: var(--color-heading, #111);
    border: 1px solid transparent; border-radius: var(--r-lg);
    background: var(--tint);
    background: color-mix(in srgb, var(--color-primary, #333) 7%, var(--color-bg, #fff));
    transition: background var(--ease), border-color var(--ease), transform var(--ease);
}
.brandtile:hover {
    color: var(--color-heading, #111); border-color: var(--line-strong);
    background: color-mix(in srgb, var(--color-primary, #333) 12%, var(--color-bg, #fff));
}
@media (hover: hover) { .brandtile:hover { transform: translateY(-2px); } }
.brandtile__name {
    max-width: 100%; font-family: var(--font-heading, inherit); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em;
    font-size: clamp(1.05rem, 0.85rem + 1vw, 1.45rem); overflow-wrap: anywhere; hyphens: auto;
}
.brandtile--long .brandtile__name { font-size: clamp(0.95rem, 0.85rem + 0.5vw, 1.15rem); }
.brandtile__count { font-size: var(--fs-xs); color: var(--muted); }
.brandtile--logo { background: var(--color-bg, #fff); border-color: var(--line); }
.brandtile__logo { display: block; width: 100%; max-width: 160px; }
.brandtile__logo .img-frame { background-color: transparent; }
.brandtile__logo .img-frame__img { object-fit: contain; }
.brandtile .brandtile__name--small { font-family: inherit; font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; }
.brandgrid-section .brandchips .chip { min-height: 44px; padding-inline: var(--sp-4); font-size: var(--fs-base); }

/* ---- Video (self-hosted <video>, never third-party embeds) ---- */
.vsec__heading { margin: 0 0 var(--sp-4); font-size: var(--fs-lg); }
@media (min-width: 1024px) { .vsec__heading { font-size: var(--fs-xl); } }
.vsec__figure { margin: 0; }
.vsec__frame { position: relative; width: 100%; overflow: hidden; border-radius: var(--r-lg); background: var(--color-bg-dark, #111); }
.vsec--9x16 .vsec__figure, .vsec--1x1 .vsec__figure { max-width: 420px; margin-inline: auto; }
@media (min-width: 1024px) { .vsec--1x1 .vsec__figure { max-width: 640px; } }
.vsec__video { display: block; width: 100%; height: 100%; object-fit: cover; background: transparent; }
.vsec__fallback { margin: 0; padding: var(--sp-4); color: #fff; }
.vsec__fallback a { color: #fff; text-decoration: underline; }
.vsec__caption { margin-top: var(--sp-2); font-size: var(--fs-sm); color: var(--muted); text-align: center; }
.vsec__toggle {
    position: absolute; right: var(--sp-3); bottom: var(--sp-3); z-index: 1;
    display: inline-flex; align-items: center; gap: var(--sp-2); min-height: 40px; padding: 0 var(--sp-3);
    border: 0; border-radius: 999px; background: rgba(0, 0, 0, 0.72); color: #fff;
    font-size: var(--fs-sm); font-weight: 600; cursor: pointer;
}
.vsec__toggle[hidden] { display: none; }
.vsec__toggle:hover { background: rgba(0, 0, 0, 0.88); }
.vsec__toggle:focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px rgba(0, 0, 0, 0.7); }
.vsec__icon--pause, .vsec__frame.is-playing .vsec__icon--play { display: none; }
.vsec__frame.is-playing .vsec__icon--pause { display: inline; }

/* =========================== mega menu (Butiksfunktioner → Meny) ========== */
/* Panels are absolutely positioned against .catnav (full width), so the
   horizontally scrolling list does not clip them; the scroll fade mask is
   dropped because a mask would clip the panels too. */
.catnav--mega { position: relative; }
.catnav--mega .catnav__inner { position: static; }
.catnav--mega .catnav__list { -webkit-mask-image: none; mask-image: none; }
.catnav__item { display: flex; align-items: center; flex: 0 0 auto; }
.catnav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 44px; margin-left: -6px; padding: 0; border: 0; background: none;
    color: var(--nav-text, var(--color-text)); cursor: pointer; border-radius: var(--r-sm);
}
.catnav__toggle svg { transition: transform var(--ease); }
.catnav__toggle:hover { color: var(--nav-hover, var(--color-primary)); }
.catnav__toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.catnav__item.is-open .catnav__toggle svg { transform: rotate(180deg); }
.catnav__item.is-open > .catnav__link { color: var(--nav-hover, var(--color-primary)); border-bottom-color: currentColor; }

.megapanel {
    position: absolute; left: 0; right: 0; top: 100%; z-index: 5;
    background: var(--color-bg, #fff); border-top: 1px solid var(--line);
    box-shadow: 0 18px 30px -12px rgba(0, 0, 0, 0.18);
    opacity: 0; transform: translateY(-4px); transition: opacity 160ms ease, transform 160ms ease;
}
.megapanel[hidden] { display: none; }
.megapanel.is-open { opacity: 1; transform: none; }
.megapanel__inner { display: grid; gap: var(--sp-6); padding-top: var(--sp-5); padding-bottom: var(--sp-6); }
.megapanel__inner--tiles { grid-template-columns: minmax(200px, 1fr) minmax(0, 3fr); }
.megapanel__all { display: inline-block; margin-bottom: var(--sp-3); font-weight: 700; font-size: var(--fs-md); color: var(--color-text); text-decoration: underline; text-underline-offset: 3px; }
.megapanel__list { margin: 0; padding: 0; columns: 2 180px; column-gap: var(--sp-5); }
.megapanel__inner--tiles .megapanel__list { columns: 1; }
.megapanel__list li { break-inside: avoid; }
.megapanel__link { display: block; padding: 6px 0; color: var(--color-text); text-decoration: none; font-size: var(--fs-base); }
.megapanel__link:hover { color: var(--nav-hover, var(--color-primary)); text-decoration: underline; text-underline-offset: 3px; }
.megapanel__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin: 0; padding: 0; }
.megatile { display: flex; flex-direction: column; gap: var(--sp-2); color: var(--color-text); text-decoration: none; }
.megatile__img { aspect-ratio: 4 / 3 !important; border-radius: var(--r-lg); background-color: var(--tint); }
.megatile__img .img-frame__img { transition: transform 300ms ease; }
.megatile:hover .megatile__img .img-frame__img { transform: scale(1.04); }
.megatile__name { font-weight: 600; font-size: var(--fs-sm); }
.megatile:hover .megatile__name { text-decoration: underline; text-underline-offset: 2px; }

/* mobile menu: expandable subcategories (mega menu mode) */
.menulist__row { display: flex; align-items: stretch; border-bottom: 1px solid var(--color-border-light, var(--line)); }
.menulist__row .menulist__link { flex: 1; border-bottom: 0; }
.menulist__toggle {
    flex: 0 0 48px; display: inline-flex; align-items: center; justify-content: center;
    border: 0; background: none; color: var(--color-text); cursor: pointer;
}
.menulist__toggle svg { transition: transform var(--ease); }
.menulist__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.menulist__toggle:focus-visible { outline: 3px solid var(--focus); outline-offset: -3px; }
.menulist__sub { margin: 0; padding: var(--sp-1) 0 var(--sp-2) var(--sp-4); border-bottom: 1px solid var(--color-border-light, var(--line)); }
.menulist__sub[hidden] { display: none; }
.menulist__sublink { display: flex; align-items: center; min-height: 44px; color: var(--color-text); text-decoration: none; }
@media (prefers-reduced-motion: reduce) {
    .megapanel, .catnav__toggle svg, .menulist__toggle svg { transition: none; }
}

/* === features: free-shipping meter (cart drawer + cart page) === */
.freeship { margin: 0 0 var(--sp-4); padding: var(--sp-3) var(--sp-4); border-radius: var(--r-lg); background: var(--tint); }
.freeship__text { margin: 0 0 var(--sp-2); font-size: var(--fs-sm); }
.freeship__bar { height: 6px; border-radius: 999px; background: var(--color-bg, #fff); overflow: hidden; }
.freeship__bar span { display: block; height: 100%; border-radius: inherit; background: var(--color-primary); transition: width 300ms ease; }
.freeship.is-reached .freeship__text { font-weight: 600; color: var(--color-success, #1e7b4c); }
.freeship.is-reached .freeship__text::before { content: "✓ "; }
.freeship.is-reached .freeship__bar span { background: var(--color-success, #1e7b4c); }
@media (prefers-reduced-motion: reduce) { .freeship__bar span { transition: none; } }

/* === features: recently viewed rail + mobile buy bar === */
.rail--recent { margin-top: var(--sp-6); }
.rail--recent[hidden] { display: none; }
.buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: flex; align-items: center; gap: var(--sp-3);
    padding: var(--sp-3) var(--gutter) calc(var(--sp-3) + env(safe-area-inset-bottom, 0px));
    background: var(--color-bg, #fff); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(0, 0, 0, 0.08);
}
.buybar[hidden] { display: none; }
.buybar__info { flex: 1; min-width: 0; }
.buybar__name { margin: 0; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.buybar__price { margin: 0; font-weight: 700; }
.buybar__btn { flex: 0 0 auto; }
.has-buybar { padding-bottom: 76px; }
@media (min-width: 1024px) { .buybar { display: none !important; } .has-buybar { padding-bottom: 0; } }

/* === features: brand pages (/varumarken, /marke/{slug}) === */
.pdp__brand a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.brands__letters { position: sticky; top: var(--sticky-top, 0); z-index: 3; margin: 0 0 var(--sp-5); padding: var(--sp-2) 0; background: var(--color-bg, #fff); border-bottom: 1px solid var(--line); }
.brands__letters ul { display: flex; flex-wrap: wrap; gap: 2px; margin: 0; padding: 0; }
.brands__letters a { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 36px; padding: 0 var(--sp-2); border-radius: var(--r); font-weight: 600; color: var(--color-text); text-decoration: none; }
.brands__letters a:hover { background: var(--tint); }
.brands__groups { display: grid; gap: var(--sp-6) var(--sp-5); grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: var(--sp-7); }
.brands__group { scroll-margin-top: 140px; }
.brands__letter { margin: 0 0 var(--sp-2); padding-bottom: var(--sp-2); font-size: var(--fs-xl); border-bottom: 2px solid var(--color-text); }
.brands__list { margin: 0; padding: 0; }
.brands__link { display: flex; justify-content: space-between; gap: var(--sp-3); align-items: baseline; padding: var(--sp-2) 0; border-bottom: 1px solid var(--line); color: var(--color-text); text-decoration: none; }
.brands__link:hover .brands__name { text-decoration: underline; text-underline-offset: 3px; }
.brands__count { color: var(--muted); font-size: var(--fs-sm); }
.brands__empty { color: var(--muted); margin: var(--sp-6) 0; }

/* === mobile menu drill-down (replaces the accordion) === */
li.menulist__row { display: flex; align-items: stretch; }
.menulist__toggle[aria-expanded] svg { transform: none; }
.menulevel[hidden] { display: none; }
.menulevel__back {
    display: inline-flex; align-items: center; gap: var(--sp-1); min-height: 44px; margin: 0 0 var(--sp-2);
    padding: 0 var(--sp-2) 0 0; border: 0; background: none; color: var(--color-text); font-weight: 600; cursor: pointer;
}
.menulevel__back:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.menulevel__title { margin: 0 0 var(--sp-2); font-size: var(--fs-lg); }
.menulevel__title:focus { outline: none; }
.menulist__link--all { font-weight: 700; }
