/*
Theme Name: Elektrika Child
Theme URI: https://elektrika.dk
Description: Child theme til Hello Elementor med Elektrika.dk's design (varm orange), WooCommerce-styling.
Author: Elektrika.dk
Template: hello-elementor
Version: 1.1.2
Text Domain: elektrika-child
*/

/* ==========================================================================
   Elektrika.dk - designsystem og sider
   Retning: varm orange. Alle klasser har praefikset ek-.
   Indhold: 1 tokens, 2 base, 3 layout, 4 komponenter, 5 sider, 6 responsiv
   ========================================================================== */

/* 1. TOKENS ---------------------------------------------------------------- */
:root {
  --ek-orange: #FF6A1A;
  --ek-orange-dark: #E85A0C;
  --ek-orange-soft: #FFB48A;
  --ek-ink: #1C1C1E;
  --ek-ink-soft: #2A2A2D;
  --ek-text: #3A3A3E;
  --ek-muted: #6B6B70;
  --ek-on-dark-muted: #B8B6B2;
  --ek-soft: #F4F2EF;
  --ek-line: #E4E1DC;
  --ek-line-strong: #D8D4CE;
  --ek-green: #1F8A4C;
  --ek-red: #B42318;
  --ek-white: #FFFFFF;

  --ek-font-body: 'Instrument Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --ek-font-head: 'Bricolage Grotesque', 'Instrument Sans', system-ui, sans-serif;

  --ek-radius-s: 10px;
  --ek-radius-m: 14px;
  --ek-radius-l: 20px;
  --ek-radius-xl: 28px;
  --ek-radius-pill: 999px;

  --ek-space-1: 4px;  --ek-space-2: 8px;  --ek-space-3: 12px; --ek-space-4: 16px;
  --ek-space-5: 24px; --ek-space-6: 32px; --ek-space-7: 48px; --ek-space-8: 72px;

  --ek-container: 1200px;
}

/* 2. BASE ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--ek-font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ek-ink);
  background: var(--ek-white);
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 {
  font-family: var(--ek-font-head);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}
h1 { font-size: clamp(36px, 5vw, 64px); letter-spacing: -0.025em; }
h2 { font-size: clamp(28px, 3.4vw, 40px); }
h3 { font-size: 22px; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--ek-ink); outline-offset: 2px; }
.ek-skip { position: absolute; left: -9999px; }
.ek-skip:focus { left: 16px; top: 16px; background: #fff; padding: 12px 16px; z-index: 100; border-radius: var(--ek-radius-s); }
.ek-visually-hidden { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ek-icon { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* 3. LAYOUT ---------------------------------------------------------------- */
.ek-container { max-width: var(--ek-container); margin: 0 auto; padding: 0 var(--ek-space-5); }
.ek-section { padding-top: var(--ek-space-8); }
.ek-section__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--ek-space-3); margin-bottom: var(--ek-space-5); }
.ek-grid { display: grid; gap: var(--ek-space-5); }
.ek-grid--cats { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: var(--ek-space-4); }
.ek-grid--products { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }

/* 4. KOMPONENTER ----------------------------------------------------------- */

/* Knapper: moerk tekst paa orange (hvid paa orange har for lav kontrast) */
.ek-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--ek-space-2);
  min-height: 48px; padding: 0 var(--ek-space-5);
  border: 0; border-radius: var(--ek-radius-m);
  background: var(--ek-orange); color: var(--ek-ink);
  font-family: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer;
  transition: background .15s ease;
}
.ek-btn:hover { background: var(--ek-orange-dark); }
.ek-btn--dark { background: var(--ek-ink); color: #fff; }
.ek-btn--dark:hover { background: var(--ek-ink-soft); }
.ek-btn--ghost { background: transparent; border: 1.5px solid var(--ek-ink); }
.ek-btn--ghost:hover { background: var(--ek-soft); }
.ek-btn--lg { min-height: 56px; font-size: 18px; border-radius: var(--ek-radius-m); }
.ek-btn--sm { min-height: 44px; padding: 0 var(--ek-space-4); font-size: 15px; border-radius: var(--ek-radius-s); }
.ek-btn--block { width: 100%; }

/* Felter */
.ek-field { display: flex; flex-direction: column; gap: 6px; }
.ek-field label, .ek-label { font-size: 14px; font-weight: 600; }
.ek-input, .ek-select, .ek-textarea {
  width: 100%; min-height: 48px; padding: 0 var(--ek-space-4);
  border: 1.5px solid var(--ek-line-strong); border-radius: var(--ek-radius-m);
  background: #fff; font-family: inherit; font-size: 16px; color: var(--ek-ink);
}
.ek-textarea { padding: var(--ek-space-3) var(--ek-space-4); min-height: 96px; }
.ek-input:focus, .ek-select:focus, .ek-textarea:focus { border-color: var(--ek-ink); }
.ek-input--search { border-color: var(--ek-ink); }
.ek-check { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.ek-check input { width: 20px; height: 20px; accent-color: var(--ek-orange); flex: none; }
.ek-form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ek-space-4); }

/* Chips og maerker */
.ek-chip { display: inline-block; padding: 8px 14px; border: 1px solid var(--ek-line-strong); border-radius: var(--ek-radius-pill); background: #fff; font-size: 14px; font-weight: 500; text-decoration: none; }
.ek-chip--soft { background: var(--ek-soft); border-color: var(--ek-soft); }
.ek-chip--active { background: var(--ek-ink); border-color: var(--ek-ink); color: #fff; }
.ek-badge { display: inline-block; background: var(--ek-ink); color: #fff; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: var(--ek-radius-pill); }
.ek-stock { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; color: var(--ek-green); }
.ek-stock::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ek-green); }
.ek-stock--out { color: var(--ek-red); }
.ek-stock--out::before { background: var(--ek-red); }

/* Billedpladsholder (erstattes af produktbilleder fra DCS) */
.ek-ph { display: flex; align-items: center; justify-content: center; background: var(--ek-soft); color: var(--ek-muted); font-size: 13px; text-align: center; padding: var(--ek-space-3); }
.ek-ph--square { aspect-ratio: 1 / 1; border-radius: var(--ek-radius-l); }

/* Topbar */
.ek-topbar { background: var(--ek-ink); color: #fff; font-size: 14px; text-align: center; padding: 10px var(--ek-space-4); }
.ek-topbar strong { color: var(--ek-orange); }

/* Header */
.ek-header { border-bottom: 1px solid var(--ek-line); }
.ek-header__row { display: flex; flex-wrap: wrap; align-items: center; gap: 20px 32px; padding-top: 18px; padding-bottom: 18px; }
.ek-logo { display: inline-flex; align-items: center; font-family: var(--ek-font-head); font-weight: 700; font-size: 30px; letter-spacing: -0.02em; text-decoration: none; color: var(--ek-ink); }
.ek-logo__tld { background: var(--ek-orange); color: var(--ek-ink); padding: 0 8px; border-radius: 8px; margin-left: 4px; font-size: 24px; line-height: 36px; }
.ek-search { flex: 1 1 320px; display: flex; gap: var(--ek-space-2); }
.ek-search .ek-btn { flex: none; }
.ek-actions { display: flex; gap: var(--ek-space-5); align-items: center; font-size: 15px; font-weight: 500; }
.ek-actions a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.ek-nav { border-top: 1px solid var(--ek-line); }
.ek-nav__list { display: flex; flex-wrap: wrap; gap: 8px 28px; list-style: none; margin: 0; padding: 12px var(--ek-space-5); max-width: var(--ek-container); margin-inline: auto; font-size: 15px; font-weight: 500; }
.ek-nav__list a { text-decoration: none; }
.ek-nav__list a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Hero */
.ek-hero { display: flex; flex-wrap: wrap; gap: var(--ek-space-4); padding-top: var(--ek-space-6); }
.ek-hero__text { flex: 1 1 520px; background: var(--ek-soft); border-radius: var(--ek-radius-xl); padding: clamp(28px, 5vw, 56px); display: flex; flex-direction: column; gap: var(--ek-space-5); justify-content: center; }
.ek-hero__lead { font-size: 19px; line-height: 1.5; color: var(--ek-text); max-width: 480px; }
.ek-hero__search { display: flex; gap: var(--ek-space-2); max-width: 520px; }
.ek-hero__search .ek-input { min-height: 56px; border-color: var(--ek-ink); border-radius: var(--ek-radius-m); }
.ek-chips { display: flex; flex-wrap: wrap; gap: var(--ek-space-2); }
.ek-hero__media { flex: 1 1 380px; min-height: 420px; background: var(--ek-orange); border-radius: var(--ek-radius-xl); display: flex; align-items: center; justify-content: center; padding: var(--ek-space-6); }
.ek-hero__media .ek-ph { width: 70%; aspect-ratio: 1 / 1; background: var(--ek-orange-soft); color: var(--ek-ink); border-radius: var(--ek-radius-l); }

/* Tillidsbjaelke */
.ek-trust { display: flex; flex-wrap: wrap; gap: var(--ek-space-5); padding-top: var(--ek-space-6); }
.ek-trust__item { flex: 1 1 220px; display: flex; gap: 14px; align-items: flex-start; }
.ek-trust__item .ek-icon { width: 30px; height: 30px; }
.ek-trust__title { font-weight: 600; }
.ek-trust__text { font-size: 14px; color: var(--ek-muted); margin-top: 2px; }

/* Kategorikort */
.ek-cat { display: flex; flex-direction: column; justify-content: space-between; min-height: 170px; padding: var(--ek-space-5); background: var(--ek-soft); border-radius: 22px; text-decoration: none; color: var(--ek-ink); transition: background .15s ease; }
.ek-cat:hover { background: var(--ek-line); }
.ek-cat__arrow { align-self: flex-end; width: 40px; height: 40px; border-radius: 50%; background: var(--ek-orange); display: flex; align-items: center; justify-content: center; }
.ek-cat__arrow .ek-icon { width: 18px; height: 18px; stroke-width: 2; }
.ek-cat__name { font-size: 22px; font-weight: 600; line-height: 1.2; }
.ek-cat__count { font-size: 14px; color: var(--ek-muted); margin-top: 4px; }

/* Produktkort */
.ek-product { display: flex; flex-direction: column; gap: 10px; }
.ek-product__media { display: block; text-decoration: none; }
.ek-product__cat { font-size: 13px; color: var(--ek-muted); }
.ek-product__title { font-weight: 600; font-size: 18px; line-height: 1.3; text-decoration: none; }
.ek-product__title:hover { text-decoration: underline; }
.ek-product__stock { font-size: 13px; color: var(--ek-muted); }
.ek-product__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--ek-space-3); margin-top: auto; }
.ek-price { font-size: 22px; font-weight: 700; }
.ek-price del { font-size: 15px; font-weight: 400; color: var(--ek-muted); margin-right: 6px; }
.ek-price ins { text-decoration: none; }
.ek-price small { font-size: 14px; font-weight: 400; color: var(--ek-muted); margin-left: 6px; }

/* Moerk guidesektion og orange nyhedsbrevsboks */
.ek-panel--dark { background: var(--ek-ink); color: #fff; border-radius: var(--ek-radius-xl); padding: clamp(24px, 4vw, 48px); }
.ek-panel--dark h2 { color: #fff; }
.ek-panel__lead { color: var(--ek-on-dark-muted); font-size: 17px; margin: 8px 0 28px; }
.ek-guides { display: flex; flex-wrap: wrap; gap: var(--ek-space-4); }
.ek-guide { flex: 1 1 260px; display: flex; flex-direction: column; gap: 12px; padding: var(--ek-space-5); background: var(--ek-ink-soft); border-radius: var(--ek-radius-l); text-decoration: none; color: #fff; }
.ek-guide__num { width: 36px; height: 36px; border-radius: 50%; background: var(--ek-orange); color: var(--ek-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; }
.ek-guide__title { font-size: 21px; font-weight: 600; line-height: 1.25; }
.ek-guide__text { color: var(--ek-on-dark-muted); font-size: 15px; }
.ek-news { background: var(--ek-orange); color: var(--ek-ink); border-radius: var(--ek-radius-xl); padding: clamp(24px, 4vw, 40px) clamp(24px, 4vw, 48px); display: flex; flex-wrap: wrap; gap: var(--ek-space-5); align-items: center; justify-content: space-between; }
.ek-news__title { font-family: var(--ek-font-head); font-weight: 700; font-size: 32px; letter-spacing: -0.02em; line-height: 1.1; }
.ek-news__form { flex: 1 1 380px; max-width: 520px; display: flex; gap: var(--ek-space-2); }
.ek-news__form .ek-input { border: 0; }

/* Footer */
.ek-footer { background: var(--ek-ink); color: #fff; margin-top: var(--ek-space-8); }
.ek-footer__row { display: flex; flex-wrap: wrap; gap: 40px; padding-top: 56px; padding-bottom: 56px; }
.ek-footer__brand { flex: 2 1 280px; }
.ek-footer__brand .ek-logo { color: #fff; }
.ek-footer__brand p { color: var(--ek-on-dark-muted); max-width: 360px; margin-top: 12px; }
.ek-footer__col { flex: 1 1 160px; display: flex; flex-direction: column; gap: 10px; font-size: 15px; }
.ek-footer__col h3 { font-family: var(--ek-font-body); font-size: 16px; letter-spacing: 0; margin-bottom: 4px; }
.ek-footer__col a { color: var(--ek-on-dark-muted); text-decoration: none; }
.ek-footer__col a:hover { color: #fff; text-decoration: underline; }

/* Broedkrumme, vaerktoejslinje, sideinddeling */
.ek-breadcrumb { padding-top: var(--ek-space-5); font-size: 14px; color: var(--ek-muted); }
.ek-breadcrumb a { color: var(--ek-muted); }
.ek-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ek-space-3); margin-bottom: var(--ek-space-5); font-size: 15px; }
.ek-toolbar__sort { display: flex; align-items: center; gap: var(--ek-space-2); }
.ek-pagination { display: flex; gap: var(--ek-space-2); margin-top: var(--ek-space-6); font-weight: 600; font-size: 15px; list-style: none; padding: 0; }
.ek-pagination a { min-width: 44px; height: 44px; padding: 0 14px; border-radius: var(--ek-radius-s); background: var(--ek-soft); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.ek-pagination .is-current a { background: var(--ek-ink); color: #fff; }

/* Filtre */
.ek-filters { display: flex; flex-direction: column; gap: 28px; }
.ek-filters fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ek-filters legend { font-weight: 600; margin-bottom: 12px; padding: 0; }
.ek-filters__prices { display: flex; gap: var(--ek-space-2); }

/* Besked om gratis fragt (genereres af pluginet Elektrika Core) */
.ek-freeship { background: var(--ek-soft); border-radius: var(--ek-radius-l); padding: 16px 20px; margin-bottom: 20px; font-size: 15px; }
.ek-freeship__bar { height: 8px; background: var(--ek-line); border-radius: var(--ek-radius-pill); overflow: hidden; margin-top: 10px; }
.ek-freeship__fill { height: 100%; background: var(--ek-orange); border-radius: var(--ek-radius-pill); }

/* Produktside */
.ek-product-page { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; padding-top: var(--ek-space-5); }
.ek-gallery { flex: 1 1 480px; min-width: 0; }
.ek-gallery__main { aspect-ratio: 1 / 1; border-radius: var(--ek-radius-xl); }
.ek-gallery__thumbs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ek-space-3); margin-top: var(--ek-space-3); }
.ek-gallery__thumbs .ek-ph { aspect-ratio: 1 / 1; border-radius: var(--ek-radius-m); padding: 0; }
.ek-gallery__thumbs .is-active { outline: 2px solid var(--ek-orange); }
.ek-buybox { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.ek-buybox__brand { font-size: 14px; color: var(--ek-muted); }
.ek-buybox h1 { font-size: clamp(30px, 4vw, 44px); line-height: 1.05; }
.ek-buybox .ek-price { font-size: 40px; }
.ek-buybox__cart { display: flex; gap: var(--ek-space-3); align-items: stretch; }
.ek-qty { width: 84px; min-height: 56px; text-align: center; padding: 0 var(--ek-space-3); }
.ek-infobox { background: var(--ek-soft); border-radius: var(--ek-radius-l); padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.ek-infobox__row { display: flex; justify-content: space-between; gap: var(--ek-space-4); font-size: 15px; }
.ek-infobox__row strong { font-weight: 600; }
.ek-infobox__note { font-size: 14px; color: var(--ek-text); border-top: 1px solid var(--ek-line-strong); padding-top: 12px; }
.ek-perk { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.ek-detail { display: flex; flex-wrap: wrap; gap: 48px; }
.ek-detail__main { flex: 2 1 480px; min-width: 0; }
.ek-detail__side { flex: 1 1 320px; min-width: 0; }
.ek-detail h2 { margin-bottom: 16px; font-size: 32px; }
.ek-detail__text { font-size: 17px; line-height: 1.6; color: var(--ek-text); }
.ek-spec { width: 100%; border-collapse: collapse; font-size: 15px; }
.ek-spec th { text-align: left; font-weight: 500; color: var(--ek-muted); padding: 12px 0; }
.ek-spec td { text-align: right; padding: 12px 0; }
.ek-spec tr { border-top: 1px solid var(--ek-line); }
.ek-spec tr:last-child { border-bottom: 1px solid var(--ek-line); }

/* Kurv */
.ek-cart { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: var(--ek-space-5); }
.ek-cart__items { flex: 2 1 560px; min-width: 0; }
.ek-cart__item { display: grid; grid-template-columns: 96px 1fr auto; gap: 20px; align-items: center; padding: 20px 0; border-top: 1px solid var(--ek-line); }
.ek-cart__item:last-child { border-bottom: 1px solid var(--ek-line); }
.ek-cart__item .ek-ph { width: 96px; height: 96px; border-radius: var(--ek-radius-m); padding: 0; }
.ek-cart__title { font-weight: 600; font-size: 17px; text-decoration: none; }
.ek-cart__meta { font-size: 14px; color: var(--ek-muted); margin-top: 2px; }
.ek-cart__side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.ek-cart__remove { font-size: 14px; color: var(--ek-muted); }
.ek-summary { flex: 1 1 340px; min-width: 0; background: var(--ek-soft); border-radius: var(--ek-radius-xl); padding: var(--ek-space-5); display: flex; flex-direction: column; gap: 14px; }
.ek-summary h2 { font-size: 26px; }
.ek-summary__row { display: flex; justify-content: space-between; gap: var(--ek-space-4); font-size: 16px; }
.ek-summary__row--total { font-size: 22px; font-weight: 700; border-top: 1px solid var(--ek-line-strong); padding-top: 14px; }
.ek-summary__vat { font-size: 14px; color: var(--ek-muted); text-align: right; margin-top: -8px; }
.ek-radio { display: flex; align-items: center; justify-content: space-between; gap: var(--ek-space-3); padding: 14px 16px; background: #fff; border: 1.5px solid var(--ek-line-strong); border-radius: var(--ek-radius-m); font-size: 15px; cursor: pointer; }
.ek-radio input { accent-color: var(--ek-orange); width: 20px; height: 20px; margin-right: 10px; }
.ek-radio__main { display: flex; align-items: center; }
.ek-radio:has(input:checked) { border-color: var(--ek-ink); }

/* Kasse */
.ek-checkout { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: var(--ek-space-5); }
.ek-checkout__form { flex: 2 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 36px; }
.ek-checkout__block { display: flex; flex-direction: column; gap: var(--ek-space-4); }
.ek-checkout__block h2 { font-size: 26px; }
.ek-note { background: var(--ek-soft); border-radius: var(--ek-radius-m); padding: var(--ek-space-4); font-size: 14px; color: var(--ek-text); }

/* Stilguide */
.ek-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: var(--ek-space-4); }
.ek-swatch { border-radius: var(--ek-radius-l); overflow: hidden; border: 1px solid var(--ek-line); font-size: 14px; }
.ek-swatch__color { height: 88px; }
.ek-swatch__meta { padding: 12px 14px; }
.ek-swatch__meta code { display: block; color: var(--ek-muted); }
.ek-guide-block { display: flex; flex-direction: column; gap: var(--ek-space-4); }
.ek-guide-row { display: flex; flex-wrap: wrap; gap: var(--ek-space-3); align-items: center; }

/* 6. RESPONSIV ------------------------------------------------------------- */
@media (max-width: 1024px) {
  .ek-section { padding-top: 56px; }
  .ek-detail, .ek-product-page, .ek-cart, .ek-checkout { gap: 32px; }
}
@media (max-width: 768px) {
  .ek-container { padding: 0 var(--ek-space-4); }
  .ek-header__row { gap: 12px; }
  .ek-search { order: 3; flex-basis: 100%; }
  .ek-actions { margin-left: auto; }
  .ek-nav__list { flex-wrap: nowrap; overflow-x: auto; white-space: nowrap; padding-inline: var(--ek-space-4); gap: 8px 20px; }
  .ek-hero__media { min-height: 260px; padding: var(--ek-space-5); }
  .ek-hero__search { flex-direction: column; }
  .ek-cart__item { grid-template-columns: 72px 1fr; }
  .ek-cart__item .ek-ph { width: 72px; height: 72px; }
  .ek-cart__side { grid-column: 1 / -1; flex-direction: row; justify-content: space-between; align-items: center; }
  .ek-form-row { grid-template-columns: 1fr; }
  .ek-footer__row { padding-top: 40px; padding-bottom: 40px; gap: 28px; }
}
@media (max-width: 480px) {
  .ek-grid--products { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; }
  .ek-grid--cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ek-cat { min-height: 130px; padding: var(--ek-space-4); }
  .ek-cat__name { font-size: 17px; }
  .ek-product__title { font-size: 15px; }
  .ek-price { font-size: 19px; }
  .ek-product__foot { flex-direction: column; align-items: stretch; }
  .ek-product__foot .ek-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Tilfoejelse: priser i oversigten brydes aldrig midt i */
.ek-summary__row > span:last-child { white-space: nowrap; }


/* Knapper: orange flade med moerk tekst (hvid tekst paa orange har for lav kontrast) */
.button,
button.button,
.elementor-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
  background: var(--ek-orange);
  color: var(--ek-ink);
  border: 0;
  border-radius: var(--ek-radius-m);
  font-family: var(--ek-font-body);
  font-weight: 600;
  padding: 12px 20px;
  transition: background .15s ease;
}
.button:hover,
button.button:hover,
.elementor-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover,
.woocommerce input.button.alt:hover {
  background: var(--ek-orange-dark);
  color: var(--ek-ink);
}
.woocommerce button.button:disabled,
.woocommerce button.button.disabled {
  background: var(--ek-line);
  color: var(--ek-muted);
}

/* Felter */
input[type="text"], input[type="email"], input[type="tel"], input[type="number"],
input[type="search"], input[type="password"], select, textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  border: 1.5px solid var(--ek-line-strong);
  border-radius: var(--ek-radius-m);
  padding: 12px 14px;
  font-family: var(--ek-font-body);
  font-size: 16px;
  background: #fff;
}
input:focus, select:focus, textarea:focus { border-color: var(--ek-ink); }

/* Produktkort i butik og kategorier */
.woocommerce ul.products li.product {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.woocommerce ul.products li.product a img {
  border-radius: var(--ek-radius-l);
  background: var(--ek-soft);
  aspect-ratio: 1 / 1;
  object-fit: contain;
  margin-bottom: 4px;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--ek-font-body);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.3;
  padding: 0;
}
.woocommerce ul.products li.product .button { margin-top: auto; }

/* Priser */
.woocommerce .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price,
.woocommerce ul.products li.product .price {
  color: var(--ek-ink);
  font-weight: 700;
}
.woocommerce .price del { color: var(--ek-muted); font-weight: 400; }
.woocommerce .price ins { text-decoration: none; }

/* Lagerstatus */
.woocommerce div.product p.stock.in-stock { color: var(--ek-green); font-weight: 600; }
.woocommerce div.product p.stock.out-of-stock { color: #B42318; font-weight: 600; }

/* Maerker */
.woocommerce span.onsale {
  background: var(--ek-ink);
  color: #fff;
  border-radius: 999px;
  min-height: 0;
  min-width: 0;
  line-height: 1;
  padding: 8px 12px;
  font-weight: 600;
}

/* Produktside */
.woocommerce div.product .product_title {
  font-size: clamp(30px, 4vw, 44px);
  line-height: 1.05;
}
.woocommerce div.product form.cart .quantity .qty {
  height: 56px;
  width: 84px;
  text-align: center;
}
.woocommerce div.product form.cart .button.single_add_to_cart_button {
  height: 56px;
  font-size: 18px;
}
.woocommerce div.product div.images img { border-radius: var(--ek-radius-xl); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ek-ink); }

/* Kurv og kasse */
.woocommerce table.shop_table { border-radius: var(--ek-radius-l); border-color: var(--ek-line); }
.woocommerce-info, .woocommerce-message, .woocommerce-error {
  border-radius: var(--ek-radius-m);
  border-top-color: var(--ek-orange);
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--ek-ink); }

/* Besked om gratis fragt (se inc/free-shipping-notice.php) */
.ek-freeship {
  background: var(--ek-soft);
  border-radius: var(--ek-radius-l);
  padding: 16px 20px;
  margin: 0 0 20px;
  font-size: 15px;
}
.ek-freeship__bar {
  height: 8px;
  background: var(--ek-line);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 10px;
}
.ek-freeship__fill {
  height: 100%;
  background: var(--ek-orange);
  border-radius: 999px;
}

/* Hjaelpeklasser til Elementor (CSS-klasser paa sektioner og widgets) */
.ek-card { background: var(--ek-soft); border-radius: var(--ek-radius-xl); }
.ek-dark { background: var(--ek-ink); color: #fff; border-radius: var(--ek-radius-xl); }
.ek-dark h1, .ek-dark h2, .ek-dark h3 { color: #fff; }
.ek-orange { background: var(--ek-orange); color: var(--ek-ink); border-radius: var(--ek-radius-xl); }
.ek-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--ek-line-strong);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

/* Elementor layout integration. Tokens remain defined once in style.css. */
.elementor .e-con{min-width:0}
.elementor .elementor-widget{min-width:0;margin-bottom:0}
.elementor .elementor-widget-text-editor{font-family:var(--ek-font-body);color:inherit}
.elementor .elementor-widget-heading .elementor-heading-title{font-family:var(--ek-font-head);font-weight:700;letter-spacing:-.02em;color:inherit;line-height:1.1}
.elementor .elementor-widget-heading h1.elementor-heading-title{font-size:clamp(36px,5vw,64px)}
.elementor .elementor-widget-heading h2.elementor-heading-title{font-size:clamp(28px,3.4vw,40px)}
.elementor .elementor-widget-heading h3.elementor-heading-title{font-size:22px}
.elementor .e-con.ek-container{width:100%;max-width:var(--ek-container);margin-inline:auto;padding-inline:var(--ek-space-5)!important}
.elementor .e-con.ek-section{padding-top:var(--ek-space-8)!important}
.elementor .e-con.ek-header__row{flex-wrap:wrap;align-items:center;gap:20px 32px;padding-block:18px!important}
.elementor .ek-header__row>.elementor-widget{width:auto}
.elementor .ek-header__row>.ek-header-search-widget{flex:1 1 320px}
.elementor .ek-header .elementor-widget-html{max-width:100%}
.elementor .e-con.ek-hero{flex-wrap:wrap;gap:var(--ek-space-4);padding-top:var(--ek-space-6)!important}
.elementor .e-con.ek-hero__text{flex:1 1 520px;width:auto;gap:var(--ek-space-5);padding:clamp(28px,5vw,56px)!important;justify-content:center}
.elementor .e-con.ek-hero__media{flex:1 1 380px;width:auto;min-height:420px;padding:var(--ek-space-6)!important;align-items:center;justify-content:center}
.elementor .ek-hero__media .ek-ph{margin:auto}
.elementor .e-con.ek-trust{flex-wrap:wrap;gap:var(--ek-space-5);padding-top:var(--ek-space-6)!important}
.elementor .e-con.ek-trust__item{flex:1 1 220px;width:auto;gap:4px;align-items:flex-start}
.elementor .ek-trust__title .elementor-heading-title{font-size:16px!important;font-family:var(--ek-font-body)}
.elementor .e-con.ek-section__head{flex-direction:row;flex-wrap:wrap;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:24px}
.elementor .ek-section__head>.elementor-widget{width:auto}
.elementor .e-con.ek-grid--cats{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:var(--ek-space-4)}
.elementor .e-con.ek-panel--dark{padding:clamp(24px,5vw,56px)!important;gap:24px}
.elementor .e-con.ek-news{padding:clamp(24px,4vw,40px) clamp(24px,4vw,48px)!important;gap:16px;align-items:flex-start}
.elementor .e-con.ek-footer{margin-top:var(--ek-space-8)}
.elementor .e-con.ek-footer__row{flex-wrap:wrap;gap:40px;padding-block:56px!important}
.elementor .e-con.ek-footer__brand{flex:2 1 280px;width:auto}
.elementor .e-con.ek-footer__col{flex:1 1 160px;width:auto;gap:10px}
.elementor .ek-footer__col .elementor-heading-title{font-size:16px!important;font-family:var(--ek-font-body)}
.elementor .ek-footer__col .elementor-widget-html a{display:block;margin-bottom:10px}
.elementor .e-con.ek-pdp{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:48px;margin-block:24px 48px}
.elementor .e-con.ek-buybox{gap:20px}
.elementor .ek-product-delivery{padding:16px;background:var(--ek-soft);border-radius:var(--ek-radius-m)}
.elementor main.ek-container>.elementor-widget-heading{margin-bottom:24px}
@media(max-width:1024px){.elementor .e-con.ek-section{padding-top:56px!important}}
@media(max-width:768px){
.elementor .e-con.ek-container{padding-inline:16px!important}
.elementor .e-con.ek-header__row{gap:12px;flex-direction:row}
.elementor .ek-header__row>.ek-header-search-widget{order:3;flex-basis:100%}
.elementor .ek-header__row>.elementor-widget:last-child{margin-left:auto}
.elementor .e-con.ek-hero__media{min-height:260px;padding:24px!important}
.elementor .e-con.ek-footer__row{padding-block:40px!important;gap:28px}
.elementor .e-con.ek-pdp{grid-template-columns:minmax(0,1fr);gap:24px}
}
@media(max-width:480px){.elementor .e-con.ek-grid--cats{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Override Elementor's default widget colours while preserving design tokens. */
.elementor .elementor-widget-heading { color:var(--ek-ink)!important; }
.elementor .elementor-widget-text-editor { color:var(--ek-text)!important; }
.elementor .ek-hero__lead { font-size:19px;line-height:1.5; }
.elementor .ek-trust__text { color:var(--ek-muted)!important;font-size:14px; }
.elementor .ek-panel--dark .elementor-widget-heading,
.elementor .ek-footer .elementor-widget-heading { color:var(--ek-white)!important; }
.elementor .ek-panel--dark .elementor-widget-text-editor,
.elementor .ek-footer .elementor-widget-text-editor { color:var(--ek-on-dark-muted)!important; }
.elementor .ek-hero__media>.elementor-widget-html { width:100%; }
