/* The starter's one stylesheet. Colours and fonts are CSS variables; the
   ones named after a setting (color_accent, font_heading, …) are replaced
   by what the owner picks in Settings. */
@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Montserrat:wght@600;700&display=swap");

:root {
  --color-bg: #ffffff;
  --color-ink: #111115;
  --color-accent: #5B6ABF;
  --color-surface: #ffffff;
  --color-muted: #73737E;
  --color-line: #E4E4E8;
  --font-heading: Montserrat, sans-serif;
  --font-body: Inter, -apple-system, BlinkMacSystemFont, sans-serif;
  --radius: 4px;
  --width: 72rem;

  /* The shop controls (cart, search, buy button) follow the theme. */
  --kp-accent: var(--color-accent);
  --kp-accent-ink: #fff;
  --kp-surface: var(--color-surface);
  --kp-ink: var(--color-ink);
  --kp-radius: 4px;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--color-bg); color: var(--color-ink); font: 16px/1.6 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2 { font-family: var(--font-heading); font-weight: 600; line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 0.6em; }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); }

.site-header { max-width: var(--width); margin: 0 auto; padding: 1.1rem 1.5rem; display: flex; align-items: center; gap: 2rem; flex-wrap: wrap; }
.brand { font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600; text-decoration: none; }
.brand img { height: 2.2rem; }
.site-nav { display: flex; gap: 1.4rem; flex: 1; }
.site-nav a { text-decoration: none; color: var(--color-muted); padding: 0.2rem 0; border-bottom: 2px solid transparent; }
.site-nav a:hover, .site-nav a.current { color: var(--color-ink); border-color: var(--color-accent); }
.site-tools { display: flex; align-items: center; gap: 0.75rem; }

.section, .hero, .product, .post { max-width: var(--width); margin: 0 auto; padding: 2.5rem 1.5rem; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.section-head h2 { margin: 0; }
.section-head a { color: var(--color-accent); text-decoration: none; white-space: nowrap; }
.lead { font-size: 1.15rem; color: var(--color-muted); max-width: 38rem; margin: 0 0 1.5rem; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; color: var(--color-accent); margin: 0 0 0.75rem; }
.empty { color: var(--color-muted); }
.crumbs { font-size: 0.9rem; margin: 0 0 1rem; }
.crumbs a { color: var(--color-muted); text-decoration: none; }
.crumbs a:hover { color: var(--color-accent); }

.button { display: inline-block; background: var(--color-accent); color: #fff; text-decoration: none; padding: 0.7rem 1.4rem; border-radius: 999px; }
.button:hover { filter: brightness(1.08); }

.hero { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; padding-top: 3rem; padding-bottom: 3.5rem; }
.hero-image { border-radius: var(--radius); width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr)); gap: 1.5rem; }
.card { display: grid; gap: 0.25rem; text-decoration: none; }
.card-image { position: relative; display: block; aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--color-line); margin-bottom: 0.5rem; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.card:hover .card-image img { transform: scale(1.04); }
.card-name { font-weight: 600; }
.card-price { color: var(--color-muted); }
.card.is-sold .card-image img { opacity: 0.55; }
.badge { position: absolute; top: 0.6rem; left: 0.6rem; background: var(--color-ink); color: var(--color-bg); font-size: 0.75rem; padding: 0.15rem 0.6rem; border-radius: 999px; }

.chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0 0 1.5rem; }
.chip { border: 1px solid var(--color-line); background: var(--color-surface); border-radius: 999px; padding: 0.25rem 0.9rem; text-decoration: none; font-size: 0.9rem; }
.chip:hover { border-color: var(--color-accent); color: var(--color-accent); }

.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.5rem; }
.tile { position: relative; display: grid; align-content: end; min-height: 13rem; padding: 1.25rem; border-radius: var(--radius); overflow: hidden; text-decoration: none; background: var(--color-line); color: #fff; }
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, 0.55), transparent 60%); }
.tile-name, .tile-count { position: relative; z-index: 1; }
.tile-name { font-family: var(--font-heading); font-size: 1.5rem; }
.tile-count { font-size: 0.85rem; opacity: 0.85; }

.prose-section { max-width: 46rem; }
.prose p { margin: 0 0 1em; }
.prose h3 { font-family: var(--font-heading); margin: 1.5em 0 0.5em; }

.posts { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1.75rem; }
.post-card { display: grid; gap: 0.3rem; text-decoration: none; align-content: start; }
.post-card img { border-radius: var(--radius); aspect-ratio: 16 / 10; object-fit: cover; width: 100%; margin-bottom: 0.5rem; }
.post-date { font-size: 0.8rem; color: var(--color-muted); text-transform: uppercase; letter-spacing: 0.08em; }
.post-title { font-family: var(--font-heading); font-size: 1.3rem; line-height: 1.25; }
.post-summary { color: var(--color-muted); }
.post { max-width: 46rem; }
.post-cover { border-radius: var(--radius); width: 100%; margin: 0 0 2rem; }

.product { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.product-image { border-radius: var(--radius); width: 100%; aspect-ratio: 1; object-fit: cover; background: var(--color-line); }
.product-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.6rem; margin-top: 0.6rem; }
.product-gallery img { border-radius: 6px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.product-price { font-size: 1.4rem; margin: 0 0 0.5rem; }
.product-rating { color: var(--color-accent); margin: 0 0 1rem; }
.product-buy { margin: 1.25rem 0; }
.low-stock { color: var(--color-accent); font-size: 0.9rem; margin: -0.5rem 0 1rem; }
.product-props { display: grid; grid-template-columns: max-content 1fr; gap: 0.4rem 1.25rem; margin: 1.5rem 0 0; padding-top: 1.25rem; border-top: 1px solid var(--color-line); }
.product-props dt { color: var(--color-muted); }
.product-props dd { margin: 0; }

.reviews { max-width: 46rem; }
.review { margin: 0 0 1rem; padding: 1.1rem 1.25rem; background: var(--color-surface); border: 1px solid var(--color-line); border-radius: var(--radius); }
.review p { margin: 0 0 0.4rem; }
.review-stars { color: var(--color-accent); letter-spacing: 2px; }
.review-title { font-weight: 600; }
.review cite { color: var(--color-muted); font-style: normal; font-size: 0.9rem; }

.cart-section { max-width: 40rem; }
.cart-section .kp-cart { margin: 0 0 1.5rem; }

.site-footer { margin-top: 3rem; border-top: 1px solid var(--color-line); background: var(--color-surface); }
.footer-inner { max-width: var(--width); margin: 0 auto; padding: 2.5rem 1.5rem 1rem; display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-inner p { margin: 0 0 0.3rem; color: var(--color-muted); max-width: 26rem; }
.footer-inner .footer-name { font-family: var(--font-heading); font-size: 1.25rem; color: var(--color-ink); }
.footer-inner nav { display: grid; gap: 0.3rem; align-content: start; }
.footer-inner nav a { color: var(--color-muted); text-decoration: none; }
.footer-inner nav a:hover { color: var(--color-accent); }
.footer-small { max-width: var(--width); margin: 0 auto; padding: 1rem 1.5rem 2rem; font-size: 0.85rem; color: var(--color-muted); }

@media (max-width: 760px) {
  .hero, .product { grid-template-columns: 1fr; gap: 1.5rem; }
  .site-nav { order: 3; flex-basis: 100%; }
}

.events { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--color-line, rgba(0, 0, 0, 0.12)); }
.event { display: grid; grid-template-columns: 12rem 1fr; gap: 0.15rem 1.5rem; padding: 1rem 0; border-bottom: 1px solid var(--color-line, rgba(0, 0, 0, 0.12)); }
.event-date { grid-row: span 3; color: var(--color-accent); font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; }
.event-title { font-weight: 600; }
.event-place, .event-text { color: var(--color-muted); }
@media (max-width: 40rem) { .event { grid-template-columns: 1fr; } .event-date { grid-row: auto; } }

/* The product list: filters beside the grid, sorting above it. Every
   control is a plain link. */
.shop-layout { display: grid; gap: 2rem; }
.filters h2 { font: 600 0.75rem/1.2 var(--font-body); text-transform: uppercase; letter-spacing: 0.1em; color: var(--color-muted); margin: 0 0 0.6rem; }
.filters ul { list-style: none; margin: 0 0 1.75rem; padding: 0; display: flex; flex-wrap: wrap; gap: 0.35rem; }
.filters a { display: flex; align-items: baseline; gap: 0.5rem; justify-content: space-between; padding: 0.3rem 0.7rem; border: 1px solid var(--color-line); border-radius: 999px; text-decoration: none; font-size: 0.9rem; }
.filters a small { color: var(--color-muted); font-size: 0.75rem; }
.filters a.on { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-bg); }
.filters a.on small { color: inherit; opacity: 0.7; }
.results-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 0.5rem 2rem; margin-bottom: 1.25rem; }
.results-head .count { margin: 0; color: var(--color-muted); font-size: 0.9rem; }
.sorts { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin: 0; font-size: 0.9rem; }
.sorts span { color: var(--color-muted); }
.sorts a { text-decoration: none; color: var(--color-muted); }
.sorts a.on, .sorts a:hover { color: var(--color-ink); text-decoration: underline; text-underline-offset: 0.3em; }
.pager { display: flex; justify-content: center; gap: 0.4rem; margin: 2.5rem 0 0; }
.pager a { min-width: 2.2rem; padding: 0.3rem 0.6rem; text-align: center; text-decoration: none; border: 1px solid var(--color-line); border-radius: var(--radius); }
.pager a.on { background: var(--color-ink); border-color: var(--color-ink); color: var(--color-bg); }
@media (min-width: 52rem) {
  .shop-layout { grid-template-columns: 13rem 1fr; gap: 3rem; align-items: start; }
  .filters { position: sticky; top: 1.5rem; }
  .filters ul { flex-direction: column; gap: 0.15rem; }
  .filters a { border: 0; border-radius: 6px; padding: 0.3rem 0.6rem; margin-left: -0.6rem; }
  .filters a:hover { background: var(--color-surface); }
  .shop-list .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ===== Sódavatn look ===== */
h1, h2, h3 { font-family: var(--font-heading); color: var(--color-ink); letter-spacing: -0.035em; line-height: 1.12; text-wrap: balance; }
h1 { font-size: clamp(32px, 6vw, 54px); font-weight: 700; margin: 0; }
h2 { font-size: clamp(24px, 3.2vw, 36px); font-weight: 600; margin: 0; }
h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
.wrap { max-width: 1160px; margin: 0 auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-muted); margin: 0; }
.muted { color: var(--color-muted); }
.lead { font-size: 18px; color: var(--color-ink); max-width: 52ch; margin: 0; }
body { color: #3A3A42; -webkit-font-smoothing: antialiased; line-height: 1.55; }
a { color: var(--color-accent); text-decoration: none; }

.button { background: var(--color-accent); color: #fff; padding: 13px 28px; border-radius: 4px; font-weight: 600; font-size: 15px; border: 2px solid var(--color-accent); transition: background 0.2s; }
.button:hover { background: #4A59AE; border-color: #4A59AE; filter: none; }
.button-outline { background: transparent; color: var(--color-accent); }
.button-outline:hover { background: var(--color-accent); color: #fff; }
.button-large { padding: 15px 34px; font-size: 16px; }
.button-small { padding: 10px 18px; font-size: 14px; color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.site-header { max-width: none; margin: 0; padding: 0; gap: 0; display: block; border-bottom: 1px solid var(--color-line); background: #fff; position: sticky; top: 0; z-index: 20; }
.header-row { display: flex; align-items: center; gap: 18px; min-height: 76px; flex-wrap: wrap; }
.brand img { height: 48px; width: auto; }
.site-nav { margin-left: auto; align-items: center; gap: 22px; flex: 0 1 auto; flex-wrap: wrap; justify-content: flex-end; }
.site-nav a { color: #3A3A42; font-size: 15px; font-weight: 500; border: 0; padding: 0; }
.site-nav a:hover, .site-nav a.current { color: var(--color-ink); border: 0; }
.site-nav a.button { color: #fff; padding: 10px 18px; }
.site-nav a.nav-tel { color: var(--color-muted); font-weight: 400; }
.site-tools { margin-left: 0; }

.site-footer { margin-top: clamp(36px, 4.6vw, 64px); border-top: 1px solid var(--color-line); background: #fff; }
.footer-row { display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: baseline; padding-block: 26px 40px; }
.footer-row nav { margin-left: auto; display: flex; flex-wrap: wrap; gap: 18px; }
.footer-row nav a { font-size: 14px; color: var(--color-muted); }
.footer-row nav a:hover { color: var(--color-ink); }

.home-hero { padding-block: clamp(36px, 5vw, 64px) 0; }
.hero-grid { display: grid; grid-template-columns: 0.9fr 1.35fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.hero-text { display: grid; gap: 18px; justify-items: start; }
.hero-map { position: relative; }
.hero-image { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 0; background: #F6F6F8; }
.hs { position: absolute; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 7px; background: rgba(255, 255, 255, 0.94); color: var(--color-ink); border-radius: 4px; padding: 5px 11px 5px 6px; font-size: 12.5px; font-weight: 600; line-height: 1; box-shadow: 0 2px 12px rgba(0, 0, 0, 0.18); white-space: nowrap; }
.hs i { width: 12px; height: 12px; border-radius: 50%; background: var(--color-accent); box-shadow: 0 0 0 3px rgba(91, 106, 191, 0.28); flex: none; }
.hs:hover { background: var(--color-accent); color: #fff; }

.section { max-width: none; margin: 0; padding: clamp(40px, 5.4vw, 72px) 0; }
.section.tight-top { padding-top: 0; }
.section-title { margin-bottom: 20px; }

.ov { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(12px, 1.8vw, 20px); }
.ov a { display: grid; grid-template-rows: auto 1fr; gap: 10px; color: inherit; border: 1px solid var(--color-line); overflow: hidden; background: #fff; }
.ov img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; background: #F6F6F8; transition: transform 0.35s ease; }
.ov a:hover img { transform: scale(1.03); }
.ov a { overflow: hidden; }
.ov .t { padding: 0 16px 16px; display: grid; gap: 6px; align-content: start; }
.ov .t p { font-size: 14.5px; color: var(--color-muted); }
.ov .t b { color: var(--color-accent); font-size: 14px; font-weight: 600; align-self: end; }

.kt { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(18px, 3vw, 44px); align-items: center; border: 1px solid var(--color-line); padding: clamp(18px, 2.6vw, 32px); }
.kt-txt { display: grid; gap: 12px; justify-items: start; }
.kt-list { margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; }
.kt-list a { display: flex; gap: 12px; align-items: center; color: inherit; border: 1px solid var(--color-line); padding: 8px; background: #fff; }
.kt-list a:hover { border-color: var(--color-accent); }
.kt-list img { width: 76px; height: 57px; object-fit: cover; flex: none; background: #F6F6F8; }
.kt-list span { display: grid; gap: 2px; font-size: 14px; }
.kt-list b { font-weight: 600; color: var(--color-ink); }
.kt-list small { color: var(--color-muted); font-size: 12.5px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(14px, 2.2vw, 24px); margin-top: 26px; }
.step { display: grid; gap: 8px; align-content: start; border-top: 2px solid var(--color-ink); padding-top: 14px; }
.step .n { font-family: var(--font-heading); font-weight: 700; color: var(--color-accent); font-size: 30px; line-height: 1; }
.step p { font-size: 15px; color: var(--color-muted); }
.steps-cta { margin-top: 24px; }

.my { display: grid; grid-template-columns: 2fr 1fr; gap: clamp(12px, 1.8vw, 20px); align-items: center; }
.my img { width: 100%; object-fit: cover; background: #F6F6F8; }
.my-big { aspect-ratio: 3 / 2; }
.my-txt { display: grid; gap: 14px; align-content: center; padding-left: clamp(4px, 1.4vw, 18px); justify-items: start; }
.my-txt p:not(.eyebrow) { font-size: 15.5px; }
.my-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 1.8vw, 20px); }
.my-row img { aspect-ratio: 4 / 3; }
.tag { font-size: 11px; font-weight: 600; letter-spacing: 0.07em; text-transform: uppercase; color: var(--color-muted); background: #F6F6F8; border-radius: 4px; padding: 4px 10px; }

@media (max-width: 900px) {
  .ov { grid-template-columns: repeat(2, 1fr); }
  .my { grid-template-columns: 1fr; }
  .my-txt { padding: 0; }
  .my-row { grid-template-columns: 1fr 1fr; }
  .my-row img:nth-child(3) { display: none; }
}
@media (max-width: 820px) {
  .hero-grid, .kt { grid-template-columns: 1fr; }
  .hero-map { order: -1; }
  .brand img { height: 34px; }
  .header-row { min-height: 64px; padding-block: 8px; }
  .site-nav { order: 3; flex-basis: 100%; margin-left: 0; justify-content: flex-start; gap: 8px 16px; }
  .site-tools { margin-left: auto; }
  .hs { padding: 0; width: 24px; height: 24px; justify-content: center; border-radius: 50%; background: var(--color-accent); }
  .hs span { display: none; }
  .hs i { background: #fff; box-shadow: none; width: 8px; height: 8px; }
}
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .ov { grid-template-columns: 1fr; } .kt-list { grid-template-columns: 1fr; } }
