/* Julhandeln (lib/jul.ts, Olivers ja 28 nov): skogsgrönt som vanligt, varmt levande ljus i stället för limegult,
   stilla snö. Allt utanför julraden, julbannern och guidegrupperna gäller bara när <html data-jul="1">. Kassan rörs inte. */
@layer komponenter {
  :root {
    --jul-gran: #173326;
    --jul-natt: #0e2117;
    --jul-ljus: #ecc77c;
    --jul-ljus-hover: #f3d699;
    --jul-dimma: #c7d3c9;
  }

  /* Julraden högst upp (JulRad.tsx). */
  .jul-rad {
    background:
      radial-gradient(1.5px 1.5px at 12% 30%, rgb(255 255 255 / 0.35) 50%, transparent 51%),
      radial-gradient(1px 1px at 37% 70%, rgb(255 255 255 / 0.3) 50%, transparent 51%),
      radial-gradient(1.5px 1.5px at 63% 25%, rgb(255 255 255 / 0.3) 50%, transparent 51%),
      radial-gradient(1px 1px at 88% 65%, rgb(255 255 255 / 0.35) 50%, transparent 51%),
      var(--jul-natt);
    background-size: 220px 40px, 180px 40px, 260px 40px, 200px 40px, auto;
    color: #f4f2ec;
  }
  .jul-rad__inre {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px 10px;
    max-width: var(--sida-max, 1440px);
    margin-inline: auto;
    padding: 9px 16px;
    font-size: 0.875rem;
    line-height: 1.35;
    text-align: center;
  }
  .jul-rad__stjarna { width: 15px; height: 15px; fill: none; stroke: var(--jul-ljus); stroke-width: 1.8; stroke-linecap: round; }
  .jul-rad__rubrik { font-weight: 700; letter-spacing: 0.01em; }
  .jul-rad__prick { color: var(--jul-dimma); }
  .jul-rad__lank { margin-inline-start: 4px; color: var(--jul-ljus); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
  .jul-rad__lank:hover { color: var(--jul-ljus-hover); }
  @media (max-width: 749px) {
    .jul-rad__inre { font-size: 0.8125rem; padding: 8px 12px; gap: 4px 8px; }
    .jul-rad__prick, .jul-rad__text { display: none; }
  }

  /* Julbannern först på startsidan (Jul.tsx), förslag E: stugan med granen som bild, mörkt till vänster för texten,
     fyra fyrkantiga vita genvägar med hela produktbilden synlig. */
  .jul-banner { padding-block: clamp(12px, 1.6vw, 20px) clamp(32px, 1.4rem + 2.4vw, 56px); }
  .jul-banner__yta {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: clamp(460px, 38vw, 560px);
    border-radius: 12px;
    background: var(--jul-natt);
    color: #fff;
  }
  .jul-banner__bild { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: right center; }
  .jul-banner__yta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgb(14 20 12 / 0.8) 0%, rgb(14 20 12 / 0.52) 38%, rgb(14 20 12 / 0) 62%); }
  .jul-banner__text { padding: clamp(28px, 1rem + 3vw, 56px); max-width: 700px; }
  .jul-banner__overrad { margin: 0; color: var(--jul-ljus); font-size: 0.8125rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
  .jul-banner__rubrik {
    max-width: 560px;
    margin: 12px 0 0;
    color: #fff;
    font-size: clamp(2.375rem, 1.6rem + 2.8vw, 3.875rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.04;
    text-shadow: 0 2px 24px rgb(0 0 0 / 0.35);
    text-wrap: balance;
  }
  .jul-banner__ingress { max-width: 34ch; margin: 18px 0 28px; color: #efe6d6; font-size: clamp(1.0625rem, 1rem + 0.3vw, 1.1875rem); line-height: 1.5; }
  .jul-banner__knapp {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    padding: 0 28px;
    border-radius: 8px;
    background: var(--jul-ljus);
    color: var(--jul-natt);
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color var(--tid-snabb, 150ms) ease, transform var(--tid-snabb, 150ms) ease;
  }
  .jul-banner__knapp:hover { background: var(--jul-ljus-hover); }
  .jul-banner__knapp:active { transform: translateY(1px); }
  .jul-banner__knapp:focus-visible, .jul-banner__ruta:focus-visible { outline: 2px solid var(--jul-ljus); outline-offset: 3px; }
  .jul-banner__rutor { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; max-width: 620px; margin: 26px 0 0; padding: 0; list-style: none; }
  .jul-banner__ruta {
    display: grid;
    gap: 8px;
    padding: 8px 8px 10px;
    border-radius: 10px;
    background: rgb(255 255 255 / 0.95);
    color: var(--jul-gran);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 200ms var(--kurva, ease), background-color 200ms ease;
  }
  .jul-banner__ruta img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; border-radius: 6px; background: #fff; }
  @media (hover: hover) and (prefers-reduced-motion: no-preference) {
    .jul-banner__ruta:hover { transform: translateY(-2px); background: #fff; }
  }
  @media (max-width: 749px) {
    .jul-banner__yta { align-items: flex-end; min-height: 600px; }
    .jul-banner__bild { object-position: 78% center; }
    .jul-banner__yta::before { background: linear-gradient(0deg, rgb(14 20 12 / 0.9) 0%, rgb(14 20 12 / 0.58) 48%, rgb(14 20 12 / 0) 78%); }
    .jul-banner__text { padding: 22px 18px; }
    .jul-banner__ingress { margin: 12px 0 20px; }
    .jul-banner__rutor { gap: 6px; margin-top: 20px; }
    .jul-banner__ruta { padding: 5px 4px 7px; gap: 5px; font-size: 0.6875rem; white-space: normal; text-wrap: balance; }
  }

  /* Julklappsguidens grupper (Jul.tsx). */
  .jul-guide { padding-block: clamp(24px, 1rem + 2vw, 48px); }
  .jul-guide__topp {
    position: relative;
    overflow: hidden;
    margin-bottom: clamp(24px, 3vw, 40px);
    padding: clamp(24px, 1rem + 2vw, 40px);
    border-radius: 10px;
    background: radial-gradient(60% 90% at 100% 0%, rgb(236 199 124 / 0.2), transparent 70%), linear-gradient(160deg, var(--jul-gran), var(--jul-natt));
    color: #fff;
  }
  .jul-guide__topp .v10-sektion__rubrik { color: #fff; margin-top: 6px; }
  .jul-guide__genvagar { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; padding: 0; list-style: none; }
  .jul-guide__genvagar a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid rgb(236 199 124 / 0.5);
    border-radius: 999px;
    color: #fff;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
  }
  .jul-guide__genvagar a:hover { background: rgb(236 199 124 / 0.15); border-color: var(--jul-ljus); }
  .jul-guide__grupp { scroll-margin-top: 96px; margin-bottom: clamp(32px, 4vw, 56px); }
  .jul-guide__rubrik { margin: 0; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.75rem); font-weight: 800; letter-spacing: -0.02em; }
  .jul-guide__text { margin: 6px 0 18px; color: var(--text-2); max-width: 60ch; }
  .jul-guide__retur { margin: 0; padding: 16px 20px; border-radius: 8px; background: #f3efe3; color: var(--text); }
}

/* Resten av sidan under julen, utan @layer så att det vinner över v10.css: limegult blir varmt ljus i hela butiken
   (knappar, cirklar, pilar), små stjärnor efter rubrikerna och snö ovanför sidfoten. Inga etiketter på produkterna. */
html[data-jul] { --lime-500: #ecc77c; --lime-600: #e2b866; }
html[data-jul] .v10-trygg__rad--jul { color: var(--jul-gran); font-weight: 600; }
html[data-jul] .v10-trygg__rad--jul .ikon { stroke: #9a7324; }
html[data-jul] .v10-varfor__cirkel { background: var(--jul-ljus); }
html[data-jul] .v10-sektion__rubrik::after {
  content: "";
  display: inline-block;
  width: 0.55em;
  height: 0.55em;
  margin-inline-start: 0.35em;
  vertical-align: 0.18em;
  background: #c9a25a;
  clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  opacity: 0.85;
}
html[data-jul] .jul-guide__topp .v10-sektion__rubrik::after { background: var(--jul-ljus); }
/* Snötäcke ovanför sidfoten: en mjuk kulle i sidfotens färg. */
html[data-jul] .shopify-section-group-footer-group { position: relative; }
html[data-jul] .shopify-section-group-footer-group::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  inset-block-end: 100%;
  height: 28px;
  pointer-events: none;
  background: var(--jul-natt);
  -webkit-mask: radial-gradient(120% 100% at 50% 100%, #000 60%, transparent 61%) 0 100% / 340px 28px repeat-x;
  mask: radial-gradient(120% 100% at 50% 100%, #000 60%, transparent 61%) 0 100% / 340px 28px repeat-x;
  opacity: 0.12;
}
