/* The web shop's three looks (body[data-look="tydelig|lun|vid"], lib/shop_front.php, setting «Utseende»), loaded after css/shop.css.
   Same markup in every look; the looks only change tokens, proportions and a few shapes. Tydelig is shop.css as it is (no rules here).
   Colours and fonts are the brand's tokens only. Flat: no shadows (hairlines and surface tints give depth), no fade-ins, no gradients
   except the hero scrim of Vid. The cart drawer, the checkout and the order page keep shop.css in every look. */

/* ============ Lun: warm boutique, soft shapes, serif ============ */
body[data-look="lun"]{ --shop-r:1.25rem; }

/* the header: the shop name large and centred, the cart at the right, the category row centred under it with a small search at its right end
   (the header's own grid is dissolved so its parts sit in the grid of .shop-top), the trust line as one thin serif line in the accent colour */
[data-look="lun"] .shop-trust{ background:transparent; color:var(--accent-ink); font-family:var(--font-serif); font-size:0.9375rem; letter-spacing:0.01em; padding:0.625rem var(--shop-gutter); border:0; }
[data-look="lun"] .shop-top{ display:grid; grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); align-items:center; column-gap:1rem;
  padding-inline:max(var(--shop-gutter), calc((100% - var(--shop-max)) / 2)); }
[data-look="lun"] .shop-head{ display:contents; }
[data-look="lun"] .shop-brand{ grid-area:1 / 2; justify-self:center; justify-content:center; padding-top:1rem; text-align:center; }
[data-look="lun"] .shop-name{ font-weight:400; font-size:clamp(1.75rem, 1.2rem + 2.6vw, 2.75rem); line-height:1.1; letter-spacing:0.01em; }
[data-look="lun"] .shop-logo{ height:3.5rem; max-height:3.5rem; object-position:center; }
[data-look="lun"] .shop-cartlink{ grid-area:1 / 3; justify-self:end; padding-top:0.5rem; }
[data-look="lun"] .shop-cart-sum{ display:none; }
[data-look="lun"] .shop-search{ grid-area:2 / 1 / 3 / -1; justify-self:stretch; max-width:none; margin-bottom:0.25rem; }
[data-look="lun"] .shop-cats{ grid-area:3 / 1 / 4 / -1; max-width:none; margin:0; padding:0; }
[data-look="lun"] .shop-cats ul{ justify-content:safe center; gap:2rem; }
[data-look="lun"] .shop-cats a{ font-family:var(--font-serif); font-size:1.0625rem; font-weight:400; }
@media (min-width:45rem){
  [data-look="lun"] .shop-page-full .shop-top{ position:static; }
  [data-look="lun"] .shop-brand{ padding-top:1.5rem; }
  [data-look="lun"] .shop-cartlink{ padding-top:1rem; }
  /* the search shares the category row, small at the right, wider while it has focus */
  [data-look="lun"] .shop-search{ grid-area:3 / 3; justify-self:end; width:12rem; z-index:1; }
  [data-look="lun"] .shop-search:focus-within{ width:min(18rem, 100%); }
  [data-look="lun"] .shop-cats{ grid-area:3 / 1 / 4 / -1; padding-inline:11rem; }
}

[data-look="lun"] .shop-h1,[data-look="lun"] .shop-h2{ font-weight:400; letter-spacing:-0.01em; }
[data-look="lun"] .shop-btn{ font-weight:500; letter-spacing:0.01em; }
[data-look="lun"] .shop-sec > .shop-h2{ text-align:center; font-size:1.75rem; }
[data-look="lun"] .shop-sec-head{ flex-direction:column; align-items:center; text-align:center; gap:0.25rem; }

/* the hero: a warm panel with the words left, the photo right under an arch; on a phone the photo first, both full width */
[data-look="lun"] .shop-hero{ display:grid; grid-template-columns:minmax(0, 1fr); gap:1rem; min-height:0; overflow:visible; border-radius:0; background:transparent; align-items:stretch; margin-bottom:3rem; }
[data-look="lun"] .shop-hero-img{ position:static; width:100%; height:auto; aspect-ratio:1 / 1; object-fit:cover;
  border-radius:50% 50% 1.25rem 1.25rem / 28% 28% 1.25rem 1.25rem; }
[data-look="lun"] .shop-hero.has-pic::after{ content:none; display:none; }
[data-look="lun"] .shop-hero.has-pic .shop-hero-in,[data-look="lun"] .shop-hero-in{ color:var(--ink); max-width:none; justify-content:center; padding:2rem 1.5rem;
  background:var(--secondary, var(--surface)); border-radius:1.5rem; }
[data-look="lun"] .shop-hero-h{ font-weight:400; font-size:clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); letter-spacing:-0.02em; }
[data-look="lun"] .shop-hero-p{ color:var(--ink-soft); }
[data-look="lun"] .shop-btn-hero{ font-weight:500; padding-inline:2rem; }
@media (min-width:45rem){
  [data-look="lun"] .shop-hero.has-pic{ grid-template-columns:minmax(0, 1.05fr) minmax(0, 0.95fr); gap:1.5rem; }
  [data-look="lun"] .shop-hero.has-pic .shop-hero-in{ grid-area:1 / 1; padding:3.5rem; }
  [data-look="lun"] .shop-hero-img{ grid-area:1 / 2; aspect-ratio:4 / 5; max-height:34rem; }
}

/* the sections: no tiles, alternating bands (paper / warm tint) with room above and below; counted in their real order on a page that has the banner, also the ones above it (2026-11-24) */
[data-look="lun"] .shop-main:has(> .shop-hero) > .shop-sec{ position:relative; isolation:isolate; margin-top:0; padding-block:3rem; }
@media (min-width:45rem){ [data-look="lun"] .shop-main:has(> .shop-hero) > .shop-sec{ padding-block:4.5rem; } }
[data-look="lun"] .shop-main:has(> .shop-hero) > .shop-sec:nth-child(even)::before{ content:""; position:absolute; z-index:-1; top:0; bottom:0; left:50%; width:100vw; margin-left:-50vw; background:var(--secondary, var(--surface)); }
/* «Sekundærfarge» (body[data-secondary], css/shop.css): Lun's secondary places are its hero panel and its alternating bands; their text tokens become the secondary's own */
body[data-secondary][data-look="lun"] :is(.shop-hero-in, .shop-main:has(> .shop-hero) > .shop-sec:nth-child(even)){
  --ink:var(--on-secondary); --ink-soft:var(--on-secondary-soft); --ink-muted:var(--on-secondary-soft); --accent-ink:var(--on-secondary); color:var(--ink); }
[data-look="lun"] .shop-main:has(> .shop-hero) > .shop-sec:last-child{ margin-bottom:-3rem; }

/* category tiles: round pictures in a centred row, the name under */
[data-look="lun"] .shop-tiles{ display:flex; flex-wrap:wrap; justify-content:center; gap:1.5rem 1rem; }
[data-look="lun"] .shop-tiles > li{ flex:0 0 calc((100% - 1rem) / 2); min-width:0; }
@media (min-width:45rem){ [data-look="lun"] .shop-tiles{ gap:2rem 2.5rem; } [data-look="lun"] .shop-tiles > li{ flex:0 0 9rem; } }
@media (min-width:64rem){ [data-look="lun"] .shop-tiles > li{ flex:0 0 12rem; } }
[data-look="lun"] .shop-tile{ align-items:center; text-align:center; }
[data-look="lun"] .shop-tile-pic{ width:100%; aspect-ratio:1; border-radius:50%; margin-bottom:0.75rem; }
[data-look="lun"] .shop-tile-name{ font-family:var(--font-serif); font-weight:400; font-size:1.25rem; }

/* «Nyheter»: equal cards, a sideways scroller on a phone, three in view from 720 px, four from 1024 px; the stagger comes from a rounder picture and every second card sitting lower */
[data-look="lun"] .shop-rail{ grid-auto-columns:42%; gap:1.5rem 1rem; padding-bottom:1.5rem; }
[data-look="lun"] .shop-rail .shop-card .shop-pic{ border-radius:1.75rem; }
[data-look="lun"] .shop-rail > :nth-child(even){ padding-top:1.5rem; }
@media (min-width:45rem){ [data-look="lun"] .shop-rail{ grid-auto-columns:calc((100% - 4rem) / 3); gap:2rem; } }
@media (min-width:64rem){ [data-look="lun"] .shop-rail{ grid-auto-columns:calc((100% - 6rem) / 4); } }

/* cards without tiles: the picture under a big radius, name and price centred in the serif, an outlined pill that fills on hover and focus */
[data-look="lun"] .shop-card{ gap:0.25rem; padding:0; background:transparent; border:0; border-radius:0; text-align:center; }
[data-look="lun"] .shop-card-link{ gap:0.875rem; }
[data-look="lun"] .shop-card .shop-pic{ aspect-ratio:4 / 5; border-radius:1.25rem; background:var(--surface); }
[data-look="lun"] .shop-card-name{ font-family:var(--font-serif); font-weight:400; font-size:1.25rem; }
[data-look="lun"] .shop-card-link:hover .shop-card-name{ text-decoration:none; }
[data-look="lun"] .shop-card-sub{ text-align:center; }
[data-look="lun"] .shop-card-price{ margin-top:0; }
[data-look="lun"] .shop-was,[data-look="lun"] .shop-stock{ justify-content:center; }
[data-look="lun"] .shop-price{ font-family:var(--font-serif); font-weight:400; font-size:1.25rem; letter-spacing:0; }
[data-look="lun"] .shop-price-big{ font-size:1.875rem; }
[data-look="lun"] .shop-card-buy{ display:flex; justify-content:center; }
[data-look="lun"] .shop-card-buy .shop-btn{ width:auto; min-width:9rem; background:transparent; color:var(--ink) !important; border-color:var(--ink); }
[data-look="lun"] .shop-card-buy .shop-btn:hover,[data-look="lun"] .shop-card-buy .shop-btn:focus-visible{ background:var(--button, var(--brand-deep)); color:var(--on-button, var(--on-brand)) !important; border-color:var(--button, var(--brand-deep)); }
[data-look="lun"] .shop-card-buy .shop-btn[disabled]{ background:transparent; border-color:var(--hairline); color:var(--ink-muted) !important; }
[data-look="lun"] .shop-grid{ gap:2.5rem 1rem; }
@media (min-width:45rem){ [data-look="lun"] .shop-grid{ grid-template-columns:repeat(3, minmax(0, 1fr)); gap:3rem 2rem; } }
/* (2026-11-12) four across from 1200 px, so a section of four never leaves one card alone; «Lignende produkter» one row of three until then */
@media (min-width:75rem){ [data-look="lun"] .shop-grid{ grid-template-columns:repeat(4, minmax(0, 1fr)); } }
@media (min-width:45rem) and (max-width:74.99rem){ [data-look="lun"] .shop-related .shop-card:nth-child(n+4){ display:none; } }

/* the product page: the gallery under a big radius, the price block on the tint without a border, tabs as centred pills */
[data-look="lun"] .shop-pic-big{ aspect-ratio:4 / 5; border-radius:1.5rem; }
[data-look="lun"] .shop-pricebox{ border:0; border-radius:1.25rem; background:var(--surface); }
[data-look="lun"] .shop-thumb-btn{ border-radius:0.75rem; }
[data-look="lun"] .shop-tablist{ justify-content:safe center; gap:0.5rem; border-bottom:0; }
[data-look="lun"] .shop-tablist a,[data-look="lun"] .shop-tablist button{ padding:0 1.25rem; min-height:2.75rem; border:1px solid var(--hairline); border-radius:var(--shop-pill); font-weight:500; }
[data-look="lun"] .shop-tablist [aria-selected="true"]{ background:var(--brand-deep); border-color:var(--brand-deep); color:var(--on-brand) !important; }

/* the footer, centred: the link columns folded into two */
[data-look="lun"] .shop-foot{ align-items:center; text-align:center; padding-top:3.5rem; }
[data-look="lun"] .shop-foot-cols{ grid-template-columns:repeat(2, minmax(0, 16rem)); justify-content:center; gap:2rem 3rem; }
[data-look="lun"] .shop-foot-col{ align-items:center; }
[data-look="lun"] .shop-foot-col ul{ align-items:center; }
[data-look="lun"] .shop-foot-col:nth-child(2){ order:-1; }
[data-look="lun"] .shop-foot-h{ font-family:var(--font-serif); font-weight:400; font-size:1.25rem; color:var(--ink); }
[data-look="lun"] .shop-foot-who{ border-top:0; padding-top:0; }

/* ============ Vid: wide, photo-led, editorial ============ */
body[data-look="vid"]{ --shop-max:90rem; --shop-gutter:1.25rem; --shop-r:2px; }
@media (min-width:64rem){ body[data-look="vid"]{ --shop-gutter:2.5rem; } }
/* the three facts: one muted line under the header, no band */
[data-look="vid"] .shop-trust{ background:transparent; color:var(--ink-muted); font-size:0.8125rem; letter-spacing:0.02em; padding:0.5rem var(--shop-gutter); border-top:1px solid var(--hairline); }
[data-look="vid"] .shop-name{ font-family:var(--font-sans); font-size:1.0625rem; font-weight:600; letter-spacing:0.14em; text-transform:uppercase; }
[data-look="vid"] .shop-head{ padding-block:1rem; }
[data-look="vid"] .shop-cats ul{ gap:2.5rem; }
[data-look="vid"] .shop-cats a{ font-size:0.8125rem; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; border-bottom-width:1px; }
[data-look="vid"] .shop-h1,[data-look="vid"] .shop-h2{ font-weight:400; letter-spacing:-0.015em; }
[data-look="vid"] .shop-sec{ margin-top:4.5rem; }
[data-look="vid"] .shop-main{ padding-bottom:5rem; }

/* the hero: edge to edge, a large headline, light text on the photo with a scrim at the bottom */
[data-look="vid"] .shop-hero{ width:100vw; margin-left:calc(50% - 50vw); margin-top:-1.25rem; border-radius:0; min-height:30rem; align-items:flex-end; }
@media (min-width:45rem){ [data-look="vid"] .shop-hero{ min-height:min(80vh, 46rem); align-items:flex-end; } }
[data-look="vid"] .shop-hero.has-pic::after,[data-look="vid"] .shop-hero.has-pic::after{ background:linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0) 65%); }
@media (min-width:45rem){ [data-look="vid"] .shop-hero.has-pic::after{ background:linear-gradient(to top, rgb(0 0 0 / 0.72), rgb(0 0 0 / 0) 65%); } }
[data-look="vid"] .shop-hero-in{ width:100%; max-width:var(--shop-max); margin:0 auto; padding:2rem var(--shop-gutter) 2.5rem; }
@media (min-width:45rem){ [data-look="vid"] .shop-hero-in{ padding:3rem var(--shop-gutter) 4rem; } }
[data-look="vid"] .shop-hero-h{ max-width:16ch; font-weight:400; font-size:clamp(2.75rem, 1.2rem + 5.8vw, 6rem); line-height:1.02; letter-spacing:-0.025em; }
[data-look="vid"] .shop-hero-p{ max-width:34rem; }
[data-look="vid"] .shop-hero:not(.has-pic) .shop-hero-in{ color:var(--ink); }

/* category tiles: plain pictures, small tracked names */
[data-look="vid"] .shop-tiles{ gap:1rem; }
@media (min-width:45rem){ [data-look="vid"] .shop-tiles{ grid-template-columns:repeat(auto-fill, minmax(16rem, 1fr)); gap:2rem; } }
[data-look="vid"] .shop-tile-pic{ aspect-ratio:3 / 4; border-radius:0; background:transparent; }
[data-look="vid"] .shop-tile-name{ font-size:0.8125rem; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; }

/* cards: 3:4 photos with no tile behind them, wide gaps, the name small and tracked, the price small and quiet, a text button */
[data-look="vid"] .shop-grid{ gap:3rem 1rem; }
@media (min-width:45rem){ [data-look="vid"] .shop-grid{ gap:3.5rem 2rem; } }
[data-look="vid"] .shop-card .shop-pic,[data-look="vid"] .shop-pic-big{ aspect-ratio:3 / 4; border-radius:0; background:transparent; }
[data-look="vid"] .shop-card-link{ gap:0.875rem; }
[data-look="vid"] .shop-card-name{ font-family:var(--font-sans); font-size:0.8125rem; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; line-height:1.45; }
[data-look="vid"] .shop-card-link:hover .shop-card-name{ text-decoration:none; }
[data-look="vid"] .shop-card-sub{ font-size:0.8125rem; }
[data-look="vid"] .shop-card-price{ margin-top:0; }
[data-look="vid"] .shop-card-price .shop-price{ font-size:0.875rem; font-weight:400; letter-spacing:0; color:var(--ink-soft); }
[data-look="vid"] .shop-card-buy{ padding-top:0.25rem; }
[data-look="vid"] .shop-card-buy .shop-btn{ width:auto; justify-content:flex-start; padding:0; background:transparent; border-color:transparent; color:var(--ink) !important;
  font-size:0.875rem; font-weight:500; text-decoration:underline; text-underline-offset:4px; }
[data-look="vid"] .shop-card-buy .shop-btn:hover{ background:transparent; border-color:transparent; text-decoration:none; color:var(--accent-ink) !important; }
[data-look="vid"] .shop-card-buy .shop-btn[disabled]{ background:transparent; border-color:transparent; color:var(--ink-muted) !important; text-decoration:none; }

/* the product page: a big gallery (60/40), the price block without a tint, a solid buy button */
@media (min-width:52rem){ [data-look="vid"] .shop-product{ grid-template-columns:minmax(0, 3fr) minmax(0, 2fr); gap:4rem; } }
[data-look="vid"] .shop-pricebox{ background:transparent; padding:1.25rem 0 0; border-top:1px solid var(--hairline); border-radius:0; }
[data-look="vid"] .shop-price-big{ font-size:1.5rem; font-weight:500; }
[data-look="vid"] .shop-buy .shop-btn{ border-radius:2px; }
[data-look="vid"] .shop-thumb-btn{ border-radius:0; }

/* the footer: wide and sparse */
[data-look="vid"] .shop-foot{ padding-top:4.5rem; padding-bottom:4rem; gap:3rem; }
[data-look="vid"] .shop-foot-cols{ gap:2.5rem 3rem; }
[data-look="vid"] .shop-foot-h{ font-size:0.75rem; font-weight:500; letter-spacing:0.08em; text-transform:uppercase; }

/* wave 5: Vid keeps at most four tiles across, balanced (lib/shop_front.php em_shop_front_tiles: c4-N) */
@media (min-width:45rem){
  [data-look="vid"] .shop-tiles.c4-1, [data-look="vid"] .shop-tiles.c4-2, [data-look="vid"] .shop-tiles.c4-3{ grid-template-columns:repeat(3, minmax(0, 1fr)); }
  [data-look="vid"] .shop-tiles.c4-4{ grid-template-columns:repeat(4, minmax(0, 1fr)); }
}
@media (max-width:44.99rem){ [data-look="vid"] .shop-tiles.is-odd > li:last-child .shop-tile-pic{ aspect-ratio:3 / 2; } }

/* ============ Product pictures (sim round 4): square, the whole picture visible ============ */
/* body[data-pic="rett"] (the default; lib/shop.php em_shop_style 'pic'): the product's picture on the cards, the product page, the cart lines
   and the banner photo is square in every look, and a picture that is not square is shown whole on the neutral surface (no hard crop).
   An installation whose theme or site style sets shop_pic "auto" (its own shape) keeps the look's proportions and crop above. */
body[data-pic="rett"] .shop-card .shop-pic, body[data-pic="rett"] .shop-pic-big, body[data-pic="rett"] .shop-pic-thumb, body[data-pic="rett"] .shop-thumb-btn{ aspect-ratio:1; background:var(--surface); }
body[data-pic="rett"] .shop-card .shop-pic img, body[data-pic="rett"] .shop-pic-big img, body[data-pic="rett"] .shop-pic-thumb img, body[data-pic="rett"] .shop-thumb-btn img{ object-fit:contain; }
body[data-pic="rett"][data-look="lun"] .shop-hero-img{ aspect-ratio:1 / 1; object-fit:contain; background:var(--surface); }
/* «Bildevisning: Fyll rammen» on the banner (Forsiden → Toppen): the picture covers its frame also where the whole picture is the default (Lun) */
body[data-pic="rett"][data-look="lun"] .shop-hero.shop-fit-fill .shop-hero-img{ object-fit:cover; }
/* «Produktbilder: Fyll rammen» (Utseende; body.shop-pic-fill): the frame stays square, the picture covers it, centred, whatever data-pic says (the banner has its own «Bildevisning») */
body.shop-pic-fill[data-pic] .shop-card .shop-pic, body.shop-pic-fill[data-pic] .shop-pic-big, body.shop-pic-fill[data-pic] .shop-pic-thumb, body.shop-pic-fill[data-pic] .shop-thumb-btn{ aspect-ratio:1; }
body.shop-pic-fill[data-pic] .shop-card .shop-pic img, body.shop-pic-fill[data-pic] .shop-pic-big img, body.shop-pic-fill[data-pic] .shop-pic-thumb img, body.shop-pic-fill[data-pic] .shop-thumb-btn img{ object-fit:cover; object-position:center; }
/* «Hjørner» on the banner picture where the look draws it differently: Lun's arch picture, Vid's square full-bleed banner */
[data-look="lun"] .shop-hero.shop-corners-rett .shop-hero-img{ border-radius:0; }
[data-look="lun"] .shop-hero.shop-corners-rund .shop-hero-img{ border-radius:1.25rem; }
[data-look="vid"] .shop-hero.shop-corners-rund{ border-radius:1.25rem; }
/* a full-width campaign is its own band: no section padding or alternating tint around it in Lun */
[data-look="lun"] .shop-main:has(> .shop-hero) > .shop-camp-full{ padding-block:0; }
[data-look="lun"] .shop-main:has(> .shop-hero) > .shop-camp-full::before{ content:none; }
/* the top bar's alignment (Innstillinger → Utseende; a class on the body only when chosen, nothing = the look's own). The name/logo: «Midtstilt» puts the search at the
   left and the cart at the right from 720 px (Lun already centres it); «Venstre» moves Lun's centred name to the left. The category row: left, centred or right. */
@media (min-width:45rem){
  .shop-bar-logo-midt .shop-head{ grid-template-columns:minmax(0, 1fr) auto minmax(0, 1fr); grid-template-areas:"search brand cart"; }
  .shop-bar-logo-midt .shop-brand{ justify-self:center; justify-content:center; }
  .shop-bar-logo-midt .shop-search{ justify-self:start; }
  .shop-bar-logo-midt .shop-cartlink{ justify-self:end; }
}
.shop-bar-logo-venstre[data-look="lun"] .shop-brand{ grid-area:1 / 1; justify-self:start; justify-content:flex-start; text-align:left; }
.shop-bar-menu-venstre .shop-cats ul{ justify-content:flex-start; }
.shop-bar-menu-midt .shop-cats ul{ justify-content:safe center; }
.shop-bar-menu-hoyre .shop-cats ul{ justify-content:safe flex-end; }
@media (min-width:45rem){ /* Lun keeps room at the row's right end for its small search */
  .shop-bar-menu-venstre[data-look="lun"] .shop-cats, .shop-bar-menu-hoyre[data-look="lun"] .shop-cats{ padding-inline:0 13rem; }
  .shop-bar-menu-midt[data-look="lun"] .shop-cats{ padding-inline:11rem; }
}
