/* ==========================================================================
   Design tokens – from the Figma variable exports
   (Default.tokens.json, Desktop.tokens.json, Mobile.tokens.json).
   Names follow Figma's own, with a --roros- prefix:
   Figma var(--color-text-primary) → var(--roros-color-text-primary).
   Sizes are in rem (16px = 1rem); the px value is in the comment.
   ========================================================================== */

:root {
  /* Colour – Figma collection "Default" */

  /* bg */
  --roros-color-bg-page: #ffffff; /* white – Sidebakgrunn */
  --roros-color-bg-inverse: #000000; /* black – Mørk flate */
  --roros-color-bg-image-overlay: rgba(0, 0, 0, 0.2); /* black/20 – Overlegg på hero-bilder */

  /* surface */
  --roros-color-surface-cream: #f1ecdf; /* cream/100 – Nyhetsbrev, tabs, filterchips, sekundærknapp */
  --roros-color-surface-cream-subtle: rgba(241, 236, 223, 0.5); /* cream/100-50 – Små tagger på oppskriftskort */
  --roros-color-surface-blue: #ebf4fb; /* blue/100 – Kort, ingredienser, inputfelt */
  --roros-color-surface-blue-subtle: #f8fcff; /* blue/50 – Butikkliste-rader, kommentarer */
  --roros-color-surface-green: #e1f1d8; /* green/100 – Butikkort – varen er på lager */
  --roros-color-surface-accent: #f5db97; /* yellow/200 – Valgt chip, aktiv side, bokmerke */

  /* action */
  --roros-color-action-primary: #000000; /* black – Primærknapp */
  --roros-color-action-primary-hover: #323232; /* grey/800 – Primærknapp hover */
  --roros-color-action-secondary: #f1ecdf; /* cream/100 – Sekundærknapp */
  --roros-color-action-secondary-hover: #f5db97; /* yellow/200 – Sekundærknapp hover */
  --roros-color-action-map: #b8e2a0; /* green/300 – Åpne i kart på butikkort */
  --roros-color-action-map-hover: #c8e7ff; /* blue/200 – Åpne i kart hover */

  /* text */
  --roros-color-text-primary: #000000; /* black – Hovedtekst */
  --roros-color-text-secondary: #323232; /* grey/800 – Adresser, sekundær tekst */
  --roros-color-text-muted: #484848; /* grey/700 – Butikknavn i liste */
  --roros-color-text-placeholder: rgba(0, 0, 0, 0.5); /* black/50 – Placeholder og inaktiv tab */
  --roros-color-text-inverse: #ffffff; /* white – Tekst på mørk flate */
  --roros-color-text-link: #266ca3; /* blue/700 – Lenker, Åpne i kart */
  --roros-color-text-price-old: #6b6b6b; /* grey/500 – Førpris (Price/Old) */

  /* border */
  --roros-color-border-strong: #000000; /* black – Inputs, select, understrek */
  --roros-color-border-subtle: #f1ecdf; /* cream/100 – Chips, tab-ramme */
  --roros-color-border-info: #97d1ff; /* blue/300 – Kommentar-markør */

  /* icon */
  --roros-color-icon-primary: #000000; /* black – Ikoner */
  --roros-color-icon-rating: #ecc04b; /* yellow/500 – Stjerner */

  /* scroll */
  --roros-color-scroll-track: #f1ecdf; /* cream/100 – Scrollbar-spor */
  --roros-color-scroll-thumb: #f5db97; /* yellow/200 – Scrollbar-tommel */

  /* status */
  --roros-color-status-success: #2f7d32; /* green/600 – Lagerstatus: på lager */

  /* Typography – Figma collection "Desktop" (mobile overrides below) */
  --roros-font-family-display: "Belwe Lt BT Medium", Georgia, serif;
  --roros-font-family-ui: "GT Walsheim", "GT Walsheim Pro", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;

  --roros-font-size-display: 4.625rem; /* 74px */
  --roros-font-size-h1: 3.125rem; /* 50px */
  --roros-font-size-h2: 2.5rem; /* 40px */
  --roros-font-size-h3: 1.5rem; /* 24px */
  --roros-font-size-h4: 1.25rem; /* 20px */
  --roros-font-size-lead: 1.5rem; /* 24px */
  --roros-font-size-body: 1.125rem; /* 18px */
  --roros-font-size-body-sm: 1rem; /* 16px */
  --roros-font-size-label-sm: 0.875rem; /* 14px */
  --roros-font-size-nav: 2rem; /* 32px */
  --roros-font-size-button: 1.125rem; /* 18px */
  --roros-font-size-caption: 0.8125rem; /* 13px */
  --roros-font-size-micro: 0.75rem; /* 12px */
  --roros-font-size-label: 1.125rem; /* 18px */
  --roros-font-size-footer-heading: 1.75rem; /* 28px */
  --roros-font-size-ui-body: 1.125rem; /* 18px */
  --roros-font-size-input: 1rem; /* 16px */

  --roros-line-height-display: 5.0625rem; /* 81px */
  --roros-line-height-h1: 3.75rem; /* 60px */
  --roros-line-height-h2: 3rem; /* 48px */
  --roros-line-height-h3: 1.8125rem; /* 29px */
  --roros-line-height-h4: 1.5rem; /* 24px */
  --roros-line-height-label: 1.5625rem; /* 25px */
  --roros-line-height-label-sm: 1.0625rem; /* 17px */
  --roros-line-height-lead: 1.9375rem; /* 31px */
  --roros-line-height-body: 1.5625rem; /* 25px */
  --roros-line-height-body-sm: 1.375rem; /* 22px */
  --roros-line-height-nav: 2.375rem; /* 38px */
  --roros-line-height-footer-heading: 2.125rem; /* 34px */
  --roros-line-height-button: 1.5625rem; /* 25px */
  --roros-line-height-ui-body: 1.6875rem; /* 27px */
  --roros-line-height-caption: 1.125rem; /* 18px */
  --roros-line-height-micro: 1.0625rem; /* 17px */
  --roros-line-height-input: 1.5rem; /* 24px */
}

/* Typography – Figma collection "Mobile". Only the values that differ.
   959px matches the header's mobile/desktop switch. */
@media (max-width: 959px) {
  :root {
    --roros-font-size-display: 2.5rem; /* 40px */
    --roros-font-size-h1: 2rem; /* 32px */
    --roros-font-size-h2: 1.75rem; /* 28px */
    --roros-font-size-h3: 1.375rem; /* 22px */
    --roros-font-size-h4: 1.125rem; /* 18px */
    --roros-font-size-lead: 1.125rem; /* 18px */
    --roros-font-size-nav: 1.5rem; /* 24px */
    --roros-line-height-display: 2.75rem; /* 44px */
    --roros-line-height-h1: 2.375rem; /* 38px */
    --roros-line-height-h2: 2.125rem; /* 34px */
    --roros-line-height-h3: 1.625rem; /* 26px */
    --roros-line-height-h4: 1.375rem; /* 22px */
    --roros-line-height-lead: 1.4375rem; /* 23px */
    --roros-line-height-nav: 1.8125rem; /* 29px */
  }
}

/*typografi*/
@font-face {
    font-family: 'Belwe Lt BT Light';
    src: url('../fonts/bitstream_-_belwe_lt_bt_light-webfont.woff2') format('woff2'),
         url('../fonts/bitstream_-_belwe_lt_bt_light-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'Belwe Lt BT Medium';
    src: url('../fonts/bitstream_-_belwe_lt_bt_medium-webfont.woff2') format('woff2'),
         url('../fonts/bitstream_-_belwe_lt_bt_medium-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim';
    src: url('../fonts/gt-walsheim/GT Walsheim Regular.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim';
    src: url('../fonts/gt-walsheim/GT Walsheim Medium.otf') format('opentype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}
@font-face {
    font-family: 'GT Walsheim';
    src: url('../fonts/gt-walsheim/GT Walsheim Bold.otf') format('opentype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}
body, p {
    font-family: 'Belwe Lt BT Light';  
    line-height: 1.3em;
}
h1, h2, h3, h4, h5, h6 {
    font-family: 'Belwe Lt BT Medium';
    line-height: 1.25em;
}
iframe { 
    border: 0 !important;
}
.isotope-container h3.t-entry-title a {
    font-size: .7em;
    letter-spacing: 0.05em;
} 
h3.widget-title, .heading-text.el-text h5 {
    font-size: 1.8rem !important;
}

/* Button, Primary (Figma 2071:29) – black, UI/Button. Used on the product pages and the shop. */
.button-primary {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0.75rem 1rem;
    border: 0;
    border-radius: 0;
    background: var(--roros-color-action-primary);
    font-family: var(--roros-font-family-ui);
    font-size: var(--roros-font-size-button);
    font-weight: 500;
    line-height: var(--roros-line-height-button);
    color: var(--roros-color-text-inverse);
    cursor: pointer;
}

.button-primary:hover {
    background: var(--roros-color-action-primary-hover);
}

.button-primary:disabled {
    opacity: 0.25;
    cursor: default;
}

/* Accordion (Figma «Accordion item» 2088:172) – 1px black line above each item and below the last.
   Product pages and the footer's link groups on mobile. */

.accordion {
    border-bottom: 1px solid var(--roros-color-border-strong);
}

.accordion__item {
    border-top: 1px solid var(--roros-color-border-strong);
}

.accordion__item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 1rem;
    list-style: none;
    font-family: var(--roros-font-family-ui);
    font-size: var(--roros-font-size-label);
    font-weight: 500;
    line-height: var(--roros-line-height-label);
    cursor: pointer;
}

.accordion__item summary::-webkit-details-marker {
    display: none;
}

.accordion__item summary::after {
    content: "";
    flex-shrink: 0;
    width: 1rem;
    height: 1rem;
    background: url("../icon/chevron-down.svg") center / contain no-repeat;
    transition: transform 0.2s;
}

.accordion__item[open] summary::after {
    transform: rotate(180deg);
}

.accordion__content {
    padding-bottom: 1rem;
    font-family: var(--roros-font-family-ui);
    font-size: var(--roros-font-size-body-sm);
    line-height: var(--roros-line-height-body-sm);
}
