/* Site layer (header, footer, Um okkur, Hafa samband). Loaded after woo.css.
   Same tokens and type roles as preview.css; nothing new invented. */

/* ---------- header: the cart button says "Karfa (2)" to a screen reader on every width (the word is
   only hidden from sight on phones, where the preview shows just the count) ---------- */
@media (max-width:1023px){.c-nav_cartlabel{display:inline;position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}}

/* touch: no double-tap zoom wait on anything that is tapped */
.ip :is(a,button,summary,label,select,input[type=checkbox],input[type=radio],[role=button],[role=radio]){touch-action:manipulation}
/* and nowhere else either: fast taps on the drawer and cart steppers (or beside them, on the number) zoomed
   the page on iPhone (Simulator 2026-10-07). Pinch zoom stays; only double-tap zoom goes. */
html{touch-action:manipulation}
/* native selects state their colours (Windows high contrast / dark UI otherwise paints them dark) */
.ip select{background-color:var(--white);color:var(--black)}

/* ---------- header: search slot (the form itself is styled with the search pages) ---------- */
.c-nav_search{display:none}
@media (min-width:1024px){.c-nav_search{display:block;width:clamp(150px,14vw,220px)}}
.c-mnav_search{margin-bottom:24px}

/* ---------- Verslun panel: "Núna" as a third column, same type, same reveal (it rides the panel) ---------- */
/* No picture column (Sindri 2026-10-08): her category photos are too low-res to stretch to full panel
   height, so the panel is the link columns only. */
.c-subnav_inner{grid-template-columns:minmax(0,1fr);min-width:480px}
@media (min-width:1024px){
  .c-subnav_inner.has-now{width:max(50%,760px);min-width:0;max-width:100vw}
  .c-subnav_inner.has-now .c-subnav_cols{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr) minmax(0,1fr)}
}
.c-subnav_now a[aria-current]{text-decoration:underline;text-underline-offset:5px;text-decoration-thickness:1px}

/* phone menu: "Núna" group on top, divided like the small links */
.c-mnav_now{margin-bottom:20px;padding-bottom:20px;border-bottom:1px solid var(--beige-500)}
.c-mnav_now .u-cta{display:block;color:var(--gray);margin-bottom:4px}

/* footer: a fourth column when "Núna" has links */
@media (min-width:1024px){.c-footer_cols.has-now{grid-template-columns:repeat(4,minmax(0,1fr))}}

/* ---------- facts beside Um okkur / Hafa samband ---------- */
.ip-facts_t{margin-bottom:12px}
.ip-facts_btns{margin-top:20px;display:flex;flex-wrap:wrap;align-items:center;gap:12px 32px}

/* ---------- Hafa samband: the form ---------- */
.ip-contact_box{margin-top:48px;padding-top:28px;border-top:1px solid var(--beige-500)}
.ip-about_text .ip-contact_box h2.u-cta{font-size:11px;line-height:14px;margin:0 0 24px}
.ip-contact_form form{display:grid;gap:22px;max-width:560px}
@media (min-width:600px) and (max-width:1023px){.ip-contact_form form{max-width:none}}
.ip-field{display:grid;gap:8px}
.ip-field label{display:block}
.ip-field_opt{font-family:var(--serif);font-weight:400;font-size:13px;text-transform:none;letter-spacing:0;color:rgba(0,0,0,.6)}
.ip-field input,.ip-field textarea{width:100%;min-height:48px;border:0;border-radius:0;margin:0;padding:12px 14px;background:var(--white);
  box-shadow:inset 0 0 0 1px #949494;font:inherit;font-size:16px;line-height:22px;color:var(--black);-webkit-appearance:none;appearance:none}
.ip-field textarea{min-height:168px;resize:vertical}
.ip-field input:focus,.ip-field textarea:focus{outline:none;box-shadow:inset 0 0 0 2px var(--black)}
.ip-field.has-error input,.ip-field.has-error textarea{box-shadow:inset 0 0 0 2px #b3261e}
.ip-about_text .ip-field_err,.ip-about_text .ip-field_hint{margin:0;font-size:14px;line-height:18px}
.ip-about_text .ip-field_err{color:#b3261e}
.ip-form_err{padding:14px 16px;background:var(--beige-600);box-shadow:inset 3px 0 0 #b3261e;font-size:14px;line-height:18px}
.ip-form_err:focus,.ip-sent:focus{outline:none}
.ip-hp{position:absolute!important;left:-10000px;width:1px;height:1px;overflow:hidden}
.ip-contact_send{justify-self:start;min-width:168px}
.ip-contact_send.is-busy{opacity:.6;pointer-events:none}
.ip-about_text .ip-sent p{font-size:16px;line-height:24px}
.ip-about_text .ip-sent p.ip-sent_t{font-size:22px;line-height:28px;margin-bottom:8px}
.ip-about_text .ip-sent p+p:last-child{margin-top:24px}

/* Hönnun studio on iPhone: the studio dialog is 100dvh, so the strip under Safari's toolbar showed the
   dialog's grey backdrop below the white bottom bar (Simulator 2026-10-07). The studio covers the whole
   screen at every width, so its backdrop is only ever seen there: give it the bar's white. */
dialog.ds::backdrop{background:#fff}

/* iPhone landscape: the page asks for viewport-fit=cover, so the sides run under the Dynamic Island and
   the rounded corners (62px each side on an iPhone 17, Simulator 2026-10-07: the checkout's terms box
   sat under the island). Keep content inside the safe area; backgrounds still run to the edge. The
   insets are 0 in portrait and on computers, so nothing else moves. */
.c-nav,#main,.c-footer{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.c-mnav,.ip-sticky{padding-left:max(var(--pad),env(safe-area-inset-left));padding-right:max(var(--pad),env(safe-area-inset-right))}
.c-bag_panel{padding-right:env(safe-area-inset-right)}

/* Over the hero photo the bar stays solid white with its hairline from the first frame (Sindri 2026-10-08:
   no transparent-then-white fade). Overrides the generated preview.css transparent state. */
@media (min-width:1024px){
  .ip.is-hero:not(.is-scrolled):not(.is-open) .c-nav_bar{background:var(--white)}
  .ip.is-hero:not(.is-scrolled):not(.is-open) .c-nav_bar::before{opacity:1}
}

/* Phones (Sindri 2026-10-18: the header "glitches and twitches" pulling the page down and up).
   It was a fixed bar over a separate sticky white "awning" that reserved its room in the page:
   on iOS Safari the two move differently in the rubber-band pull at the top (the bar slid down,
   a white band opened above it, then both snapped back at different speeds). Now the bar itself is
   sticky: it takes its own room in the page, pins at the top while scrolling, and moves as one
   piece with the page when it is pulled, the way Safari's own pages do. Desktop keeps the fixed bar. */
@media (max-width:1023px){
  .ip-awning{display:none}
  .c-nav{position:sticky;inset:auto;top:0}
  /* the hero photo's scroll parallax ran on the scroll timeline right under the bar; on a phone it trailed the
     finger by a frame in the pull and the fling. The photo now scrolls with the page there (desktop keeps it). */
  .ip-hero_media picture{animation:none}
}
/* her Facebook and Instagram under the address (Sindri 10-18): two icon buttons, 44 px targets */
.c-footer_social{display:flex;gap:6px;margin:14px 0 0 -11px;padding:0;list-style:none}
.c-footer_social a{display:grid;place-items:center;width:44px;height:44px;border-radius:50%;color:inherit;transition:background-color .2s ease}
@media (hover:hover){.c-footer_social a:hover{background:rgba(0,0,0,.08)}}
.c-footer_social a:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Newsletter: the footer's existing type, colours and contact fields. */
.ip-newsletter{margin-bottom:32px;max-width:560px}
.ip-newsletter h2{margin:0 0 12px}
.ip-newsletter p{margin:0 0 16px}
.ip-newsletter form{display:flex;flex-wrap:wrap;align-items:flex-end;gap:12px}
.ip-newsletter .ip-field{flex:1 1 220px;min-width:0}
.ip-newsletter .c-button{min-height:48px}
.ip-newsletter [role=status]:focus{outline:2px solid currentColor;outline-offset:4px}
.ip-nl-unsubscribe{padding:80px var(--pad);min-height:45vh}
.ip-nl-unsubscribe h1{margin-bottom:24px}

/* Centre axis (15 Nov 2026, Sindri: "why is the landing page still not centered").
   1) From 1440 px the main menu sits on the page's centre line, between a left column (logo) and a
      right column (contact, search, basket) of equal width. Below 1440 the right column is too wide
      to share equally, so the earlier layout stays.
   2) A product grid whose last row is short (5 cards in a 4-column grid left one card alone at the left
      with three empty cells) keeps that row on the centre line. Same column counts, gaps and card
      widths as the grid it replaces; only the leftover row moves. */
@media (min-width:1440px){
  .c-nav_bar{grid-template-columns:1fr auto 1fr}
  .c-nav_links{justify-self:center;padding-left:0}
}
.c-grid:not(.ip-folders){display:flex;flex-wrap:wrap;justify-content:flex-start} /* short last rows start at the left edge like the headings and folder tiles; centred they read as a lone product with its own column (15 Nov) */
.c-grid:not(.ip-folders)>*{flex:0 0 calc((100% - 12px) / 2);min-width:0}
@media (min-width:1024px){
  .c-grid:not(.ip-folders)>*{flex-basis:calc((100% - 3 * var(--gap)) / 4)}
  .c-grid[data-d="2"]:not(.ip-folders)>*{flex-basis:calc((100% - var(--gap)) / 2)}
}
/* Groups on the shop page ran straight into each other (0 px between one group's last row and the next group's
   first row, against 52 px between rows inside a group). A short, now centred, last row made that visible.
   Same rhythm between groups as between rows. */
.c-grid:not(.ip-folders)+.c-grid:not(.ip-folders){margin-top:36px}
@media (min-width:1024px){.c-grid:not(.ip-folders)+.c-grid:not(.ip-folders){margin-top:52px}}

/* option buttons: a long version name wraps to a second line instead of ending in "…" (15 Nov: "1-Liverpool-M…", "Bangsimon og ..."): the choice is the product */
.variations .ip-opts:not(:has(.sw)) .ip-opt{height:auto;min-height:44px;padding:8px 8px;white-space:normal;overflow:visible;text-overflow:clip;overflow-wrap:anywhere;line-height:1.2;text-align:center}
/* breadcrumb: the arrow belongs to the item before it, so a long product name that wraps starts its line with the name, not with a lone "›" (15 Nov) */
.ip-crumbs li+li::before{content:none}
.ip-crumbs li:not(:last-child)::after{content:"›";margin:0 8px;color:rgba(0,0,0,.35)}
/* the missing option, named next to the grey button */
.ip-need{margin:8px 0 0;font-size:14px;line-height:20px;color:#b3261e}
.variations .ip-field.is-missing .ip-opts{outline:1px solid #b3261e;outline-offset:4px}
/* phone: a square product picture, so the name, price and first choice sit on the first screen above the sticky buy bar (Sindri 15 Nov; 4:5 pushed the name to 820-840 px on 41 of 123 pages) */
@media (max-width:1023px){.ip-pdp_main{aspect-ratio:1/1}}
