/* Grallaragerðin: a fixed side column with the name, the menu, search and
   cart; products in a plain grid; one typeface, no rounded corners. */
@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;600;700&display=swap");

:root {
  --color-ink: #111111;
  --color-bg: #ffffff;
  --color-soft: #f2f2f2;
  --color-line: rgba(17, 17, 17, 0.12);
  --color-muted: rgba(17, 17, 17, 0.62);
  --font-body: Archivo, ui-sans-serif, system-ui, sans-serif;
  --side: 16rem;

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

* { box-sizing: border-box; }
body { margin: 0; background: var(--color-bg); color: var(--color-ink); font: 15px/1.6 var(--font-body); }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-weight: 400; line-height: 1.15; letter-spacing: -0.01em; margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

/* --- The side column ------------------------------------------------------- */
.side { padding: 1rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1.25rem; border-bottom: 1px solid var(--color-line); position: sticky; top: 0; background: var(--color-bg); z-index: 20; }
.brand { font-weight: 700; text-transform: uppercase; letter-spacing: 0.16em; text-decoration: none; line-height: 1.3; }
.side-nav { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; }
.side-nav a { font-size: 0.875rem; text-decoration: none; color: var(--color-muted); }
.side-nav a:hover, .side-nav a.current { color: var(--color-ink); }
.side-tools { display: flex; align-items: center; gap: 0.75rem; margin-left: auto; }

@media (min-width: 768px) {
  body { padding-left: var(--side); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: var(--side); padding: 2rem; flex-direction: column; flex-wrap: nowrap; align-items: flex-start; gap: 2.5rem; border-bottom: 0; overflow-y: auto; }
  .side-nav { flex-direction: column; gap: 0.55rem; }
  .side-tools { flex-direction: column; align-items: flex-start; gap: 0.7rem; margin: auto 0 0; }
}

/* --- Grids ----------------------------------------------------------------- */
.grid-section, .text, .product, .related { padding: 2rem 1.25rem; }
.grid-head { margin-bottom: 2.5rem; }
.eyebrow { margin: 0 0 0.6rem; font-size: 0.72rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.25em; }
.grid-head h1 { font-size: clamp(2rem, 4vw, 3rem); }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2.5rem 1.25rem; }
.grid > li { display: flex; flex-direction: column; min-width: 0; }
.grid .empty { color: var(--color-muted); }
.card-link { text-decoration: none; display: block; }
.card-image { aspect-ratio: 4 / 5; background: var(--color-soft); overflow: hidden; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.card-link:hover .card-image img { transform: scale(1.04); }
.card-name { margin-top: 0.9rem; font-size: 1.05rem; }
.card-price { margin: 0.25rem 0 0; font-size: 0.8rem; font-weight: 600; }
.card-text { margin-top: 0.5rem; font-size: 0.85rem; line-height: 1.6; color: var(--color-muted); }
.card-text p { margin: 0 0 0.7rem; }
.card-foot { margin-top: auto; padding-top: 0.75rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.card-foot .card-price { margin: 0; }
.card-foot .kp-buy, .card-foot .kp-add { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.45rem 0.9rem; background: transparent; color: var(--color-ink); border: 1px solid var(--color-ink); }
.sold { color: var(--color-muted); font-size: 0.85rem; }

@media (min-width: 768px) {
  .grid-section, .text, .product, .related { padding: 2.5rem 2.5rem 3.5rem; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3.5rem 2rem; }
  .grid-related { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* --- One product ----------------------------------------------------------- */
.product { display: grid; gap: 2rem; }
.crumbs { margin: 0 0 1.5rem; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.2em; color: var(--color-muted); }
.crumbs a { text-decoration: none; }
.crumbs span { color: var(--color-ink); }
.product h1 { font-size: clamp(2rem, 3.6vw, 2.9rem); }
.product-price { margin: 1rem 0 1.75rem; font-size: 1.6rem; font-weight: 600; }
.prose { font-size: 0.9rem; color: rgba(17, 17, 17, 0.8); }
.prose p { margin: 0 0 1rem; }
.product-props { display: grid; grid-template-columns: max-content 1fr; gap: 0.3rem 1.25rem; margin: 1rem 0; font-size: 0.9rem; }
.product-props:empty { display: none; }
.product-props dt { color: var(--color-muted); }
.product-props dd { margin: 0; }
.product-more { font-size: 0.9rem; white-space: pre-line; }
.product-buy { margin-top: 1.5rem; }
.product-media { display: grid; gap: 1rem; align-content: start; }
.product-media img { width: 100%; }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1fr) minmax(0, 0.92fr); gap: 3rem; align-items: start; }
  .product-info { position: sticky; top: 2.5rem; }
}

.related { border-top: 1px solid var(--color-line); margin: 0 1.25rem; padding-left: 0; padding-right: 0; }
.related h2 { font-size: 1.6rem; margin-bottom: 2rem; }
@media (min-width: 768px) { .related { margin: 0 2.5rem; padding-top: 3rem; } }

/* --- Text and footer -------------------------------------------------------- */
.text { max-width: 48rem; margin: 0 auto; padding-top: 4rem; padding-bottom: 5rem; }
.text h1 { font-size: clamp(1.9rem, 3.5vw, 2.4rem); font-weight: 700; margin-bottom: 2rem; }
.text .prose { font-size: 1rem; line-height: 1.7; }
.text .prose p { margin-bottom: 1.5rem; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2.5rem; padding: 2.5rem 1.25rem; border-top: 1px solid var(--color-line); font-size: 0.75rem; color: rgba(17, 17, 17, 0.5); }
.site-footer p { margin: 0; }
.site-footer a { text-decoration: none; }
@media (min-width: 768px) { .site-footer { padding: 2.5rem; } }

/* The shop controls, quiet as on the old site. */
.side .kp-cart-button { background: transparent; color: var(--color-ink); border: 1px solid var(--color-line); font-size: 0.8rem; }
.side .kp-search input { border: 0; border-bottom: 1px solid var(--color-line); border-radius: 0; padding-left: 0; font-size: 0.875rem; background: transparent; }
