@font-face {
  font-family: Rubik;
  src: url("assets/rubik-regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}

@font-face {
  font-family: Rubik;
  src: url("assets/rubik-bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  color-scheme: light;
  --paper: #f8f7f4;
  --white: #fffefa;
  --ink: #241b2d;
  --plum: #2b2036;
  --muted: #615969;
  --line: #e3dedf;
  --lavender: #e7dcfa;
  --lime: #defa98;
  --font: Rubik, "Segoe UI", sans-serif;
  --edge: clamp(2rem, 8.33vw, 7.5rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 0.9375rem/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { color: inherit; font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
p, h1, h2, h3 { margin: 0; }
img { display: block; max-width: 100%; }
svg { display: block; flex: none; width: 1.25rem; height: 1.25rem; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid #754ead; outline-offset: 4px; }
.wrap { width: min(1280px, calc(100% - var(--edge))); margin-inline: auto; }
.visually-hidden, .skip-link:not(:focus) {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
.skip-link:focus {
  position: fixed;
  z-index: 5;
  top: 0.75rem;
  left: 0.75rem;
  background: var(--lime);
  color: var(--ink);
  border-radius: 0.5rem;
  padding: 0.65rem 1rem;
}

.utility-bar { background: var(--ink); color: #eee7f3; font-size: 0.75rem; }
.utility-inner { min-height: 35px; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.demo-label, .utility-link { display: inline-flex; align-items: center; gap: 0.65rem; }
.utility-links { display: flex; align-items: center; gap: 1rem; }
.status-light {
  width: 0.48rem;
  height: 0.48rem;
  display: inline-block;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px #defa981c;
  flex: none;
}
.utility-divider { width: 1px; height: 12px; background: #746b7d; }
.utility-link { background: transparent; padding: 0.4rem 0; color: #eee7f3; white-space: nowrap; }
.utility-link svg { width: 0.82rem; height: 0.82rem; }
.utility-link:hover { color: var(--lime); }

.header { background: var(--white); position: relative; z-index: 2; }
.header-main {
  min-height: 79px;
  display: grid;
  grid-template-columns: minmax(174px, 1fr) minmax(250px, 2.75fr) minmax(200px, 1fr);
  align-items: center;
  gap: clamp(1rem, 3.5vw, 3.5rem);
}
.brand {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
  white-space: nowrap;
}
.brand img { flex: none; }
.brand > span > span { display: block; }
.brand-dot { color: #865cb7; }
.search-area { position: relative; min-width: 0; }
.search {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  background: #f1eeef;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  padding: 0.25rem 0.3rem 0.25rem 0.9rem;
  min-height: 45px;
}
.search:focus-within { border-color: #9a7db6; background: #f6f1fb; }
.search-icon { color: #5f536b; }
.search-icon svg { width: 1.125rem; height: 1.125rem; }
.search input {
  border: 0;
  background: transparent;
  width: 100%;
  min-width: 0;
  outline: 0;
  padding: 0.23rem 0;
  font-size: 0.88rem;
}
.search input::-webkit-search-cancel-button { appearance: none; }
.search input::placeholder { color: #655d6b; }
.icon-button {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 0.62rem;
  background: transparent;
  padding: 0;
}
.icon-button:hover { background: var(--lavender); }
.search .icon-button { width: 34px; height: 34px; }
.search .icon-button svg { width: 1rem; height: 1rem; }
.search-submit { background: #e8e0ed; }
.suggestions {
  position: absolute;
  z-index: 3;
  inset: calc(100% + 0.45rem) 0 auto;
  list-style: none;
  padding: 0.4rem;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--white);
  box-shadow: 0 12px 30px #2b203620;
}
.suggestions li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  border-radius: 0.5rem;
  padding: 0.38rem 0.55rem;
  cursor: pointer;
}
.suggestions li[aria-selected="true"], .suggestions li:hover { background: #f0e8f8; }
.suggestions :is(img, .no-product-image) { flex: none; width: 39px; height: 39px; border-radius: 0.32rem; object-fit: cover; }
.suggestions strong { display: block; font-size: 0.83rem; }
.suggestions small { display: block; color: var(--muted); }
.suggestions li > [data-icon] { margin-left: auto; }
.suggestions .search-all { min-height: 44px; }

.header-actions { display: flex; align-items: center; gap: 0.5rem; justify-self: end; }
.header-favorites { position: relative; }
.favorite-indicator { position: absolute; width: 8px; height: 8px; top: 8px; right: 8px; background: #865cb7; border: 1px solid var(--white); border-radius: 50%; }
.cart-trigger {
  display: flex;
  align-items: center;
  gap: 0.48rem;
  min-height: 43px;
  padding: 0.4rem 0.53rem 0.4rem 0.72rem;
  border: 1px solid var(--line);
  border-radius: 0.68rem;
  background: var(--white);
  font-size: 0.84rem;
  font-weight: 700;
}
.cart-trigger:hover { border-color: #9279a8; }
.cart-trigger svg { width: 1.08rem; height: 1.08rem; }
.cart-count {
  display: grid;
  place-items: center;
  min-width: 1.43rem;
  min-height: 1.43rem;
  padding-inline: 0.25rem;
  border-radius: 0.35rem;
  background: var(--lime);
  font-size: 0.74rem;
}
.nav { border-block: 1px solid #ede8e9; }
.nav-inner {
  display: flex;
  gap: clamp(0.12rem, 1vw, 0.95rem);
  align-items: stretch;
  min-height: 47px;
}
.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.48rem;
  background: transparent;
  padding: 0.55rem clamp(0.5rem, 1.05vw, 0.98rem);
  border-radius: 0.3rem 0.3rem 0 0;
  white-space: nowrap;
  font-size: 0.84rem;
}
.nav-link:hover, .nav-link[aria-pressed="true"] { background: #f1e9f8; }
.nav-link[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  inset: auto 0.7rem 0;
  height: 2px;
  background: #805ba6;
  border-radius: 1px;
}
.nav-all { font-weight: 700; padding-left: 0.55rem; }
.nav-all svg { width: 1.02rem; height: 1.02rem; }

.hero {
  isolation: isolate;
  display: grid;
  grid-template-columns: 43% 57%;
  min-height: 432px;
  margin-top: clamp(1.15rem, 2.5vw, 2rem);
  border-radius: 1.2rem;
  overflow: hidden;
  background: var(--plum);
}
.hero-text {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  z-index: 1;
  padding: clamp(2rem, 4.2vw, 4.25rem);
  color: #fffaf8;
  background: radial-gradient(ellipse at 108% 112%, #443353 0, #2b2036 58%);
}
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.62rem;
  margin-bottom: 1.27rem;
  color: #e9d7fb;
  font-size: 0.71rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}
.hero h1 {
  font-size: clamp(3.1rem, 5.35vw, 4.7rem);
  font-weight: 700;
  line-height: 0.99;
  letter-spacing: -0.066em;
}
.hero h1 span { color: #e2ccf9; }
.hero-text p {
  max-width: 19.5rem;
  margin-top: 1.25rem;
  margin-bottom: 1.65rem;
  color: #ece3f2;
  font-size: clamp(0.91rem, 1.1vw, 1.03rem);
  line-height: 1.62;
}
.hero-media { position: relative; min-width: 0; background: #ba9eed; }
.hero-media > img { width: 100%; height: 100%; position: absolute; inset: 0; object-fit: cover; object-position: 52% 49%; }
.hero :focus-visible, .footer :focus-visible, .utility-bar :focus-visible { outline-color: var(--lime); }

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 0.68rem;
  min-height: 46px;
  padding: 0.62rem 0.92rem;
  border: 1px solid transparent;
  border-radius: 0.56rem;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.25;
  transition: background-color 150ms ease, border-color 150ms ease;
}
.button svg { width: 1.1rem; height: 1.1rem; }
.button-lime { background: var(--lime); color: var(--ink); }
.button-lime:hover { background: #eaffb9; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.55rem; }
.hero .button { gap: 0.65rem; padding-inline: 0.84rem; }
.button-hero-secondary { border-color: #8d789d; color: #f5eaff; }
.button-hero-secondary:hover { background: #53415f; border-color: #b79cc8; }
.button-dark { background: var(--plum); color: #fff9ff; }
.button-dark:hover { background: #4b365d; }
.button-outline { background: transparent; border-color: #d9d0de; }
.button-outline:hover { border-color: #9277a8; background: #f2ecf7; }

.categories { margin-top: clamp(2rem, 4.2vw, 3.25rem); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 0.8rem; margin-bottom: 1.13rem; }
.section-heading h2 {
  font-size: clamp(1.6rem, 3vw, 2.45rem);
  line-height: 1.1;
  letter-spacing: -0.05em;
  overflow-wrap: anywhere;
}
.section-heading.compact h2 { font-size: clamp(1.33rem, 2.2vw, 1.8rem); }
.category-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0.68rem; }
.category-tile {
  display: flex;
  align-items: center;
  gap: 0.58rem;
  min-width: 0;
  min-height: 65px;
  padding: 0.55rem 0.62rem;
  border: 1px solid var(--line);
  border-radius: 0.72rem;
  background: var(--white);
  text-align: left;
  font-size: clamp(0.73rem, 1.07vw, 0.875rem);
  font-weight: 700;
  line-height: 1.15;
}
.category-tile:hover, .category-tile[aria-pressed="true"] { border-color: #ae98c6; background: #f3ebfb; }
.category-icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 0.5rem;
  flex: none;
  background: var(--category-tint, var(--lavender));
}
.category-icon svg { width: 1.12rem; height: 1.12rem; }
.tint-mobil { --category-tint: #e6e1fb; }
.tint-data { --category-tint: #dcebe2; }
.tint-lyd { --category-tint: #eadbf8; }
.tint-bilde { --category-tint: #deebf8; }
.tint-gaming { --category-tint: #f7e1d6; }
.tint-hjem { --category-tint: #e3ebd8; }
.tint-klokker { --category-tint: #f5e1e8; }
.tint-tilbehor { --category-tint: #eef0d6; }

.catalog { margin-top: clamp(2.8rem, 5vw, 4.2rem); scroll-margin-top: 1.35rem; }
.catalog-heading { align-items: center; }
.results-count { color: var(--muted); margin-top: 0.33rem; font-size: 0.85rem; }
.results-count:empty { display: none; }
.catalog-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem 1rem;
  margin-bottom: 1.1rem;
}
.active-filters, .select-group { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; }
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.33rem;
  border: 1px solid #dacbe8;
  border-radius: 0.5rem;
  background: #f0e8f8;
  min-height: 38px;
  padding: 0.3rem 0.55rem;
  font-size: 0.81rem;
  text-align: left;
  overflow-wrap: anywhere;
}
.filter-chip:hover { background: #e7d8f4; }
.filter-chip svg { width: 0.9rem; height: 0.9rem; }
.select-label { display: flex; align-items: center; position: relative; }
.select-label select {
  appearance: none;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 0.55rem;
  background: var(--white);
  padding: 0.45rem 1.75rem 0.45rem 0.72rem;
  cursor: pointer;
  font-size: 0.83rem;
}
.select-label [data-icon] { position: absolute; right: 0.52rem; pointer-events: none; }
.select-label svg { width: 0.88rem; height: 0.88rem; }
.product-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0.95rem; }
.product-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 0.88rem;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.product-card:hover { border-color: #c7b7d1; box-shadow: 0 6px 18px #2b203609; }
.product-image {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  background: var(--category-tint, var(--lavender));
  aspect-ratio: 1.21;
}
.product-image:focus-visible { outline-offset: -4px; }
.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 220ms ease;
}
.product-image:hover img { transform: scale(1.035); }
.no-product-image {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #6c557a;
  background: var(--category-tint, var(--lavender));
}
.product-image .no-product-image svg, .detail-photo .no-product-image svg { width: 2.1rem; height: 2.1rem; }
.condition-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.29rem 0.48rem;
  border-radius: 0.36rem;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.2;
}
.condition-som-ny { color: #354825; background: #eef5dc; }
.condition-pent-brukt { color: #57396b; background: #f4ebfe; }
.condition-synlig-slitasje { color: #664326; background: #fbead7; }
.product-card > .condition-badge {
  position: absolute;
  top: 0.65rem;
  left: 0.62rem;
  z-index: 1;
  max-width: calc(100% - 3.7rem);
  pointer-events: none;
}
.product-favorite {
  position: absolute;
  z-index: 1;
  top: 0.62rem;
  right: 0.62rem;
  width: 37px;
  height: 37px;
  border: 1px solid #ffffffa0;
  border-radius: 50%;
  background: #fffdf9e8;
}
.product-favorite svg { width: 1.05rem; height: 1.05rem; }
.icon-button[data-favorite][aria-pressed="true"] { color: #704c96; background: #f1e5fc; }
.icon-button[data-favorite][aria-pressed="true"] svg { fill: #d5b6f0; }
.product-copy { padding: 0.83rem 0.9rem 0.92rem; display: flex; flex-direction: column; flex: 1; }
.product-category {
  margin-bottom: 0.24rem;
  color: #675677;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
}
.product-title { font-size: clamp(0.97rem, 1.34vw, 1.16rem); line-height: 1.18; letter-spacing: -0.027em; }
.product-title button { background: transparent; padding: 0; font-weight: 700; text-align: left; overflow-wrap: anywhere; }
.product-title button:hover { text-decoration: underline; text-underline-offset: 0.17em; }
.product-tagline {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--muted);
  font-size: 0.81rem;
  margin-top: 0.36rem;
  line-height: 1.4;
}
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 0.35rem; margin-top: auto; padding-top: 0.76rem; }
.product-price { font-size: clamp(1.08rem, 1.75vw, 1.44rem); font-weight: 700; letter-spacing: -0.04em; white-space: nowrap; }
.quick-add { width: 39px; height: 39px; background: #eee5f8; border: 1px solid #e7dbf1; }
.quick-add:hover { background: var(--lime); border-color: #cbe482; }
.quick-add svg { width: 1.07rem; height: 1.07rem; }
.catalog-empty {
  grid-column: 1 / -1;
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  padding: clamp(1.25rem, 4vw, 3rem);
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: var(--white);
}
.catalog-empty h3 { font-size: 1.35rem; letter-spacing: -0.04em; }
.catalog-empty p { color: var(--muted); }

.sell-section {
  position: relative;
  display: grid;
  grid-template-columns: 42% 58%;
  margin-block: clamp(3.2rem, 6vw, 5.5rem);
  min-height: 300px;
  overflow: hidden;
  border-radius: 1.1rem;
  background: #e8ddf5;
  scroll-margin-top: 1.4rem;
}
.sell-copy { display: flex; flex-direction: column; align-items: start; justify-content: center; padding: clamp(1.75rem, 4vw, 3.6rem); }
.sell-copy h2 { max-width: 22rem; margin-bottom: 0.63rem; font-size: clamp(1.95rem, 3.4vw, 3.35rem); line-height: 1.01; letter-spacing: -0.064em; }
.sell-copy p { color: #534760; margin-bottom: 1.15rem; font-size: 0.9rem; max-width: 25rem; }
.sell-section > img { width: 100%; height: 100%; min-height: 0; max-height: 372px; object-fit: cover; object-position: 50% 56%; }

.footer { padding-top: clamp(2.3rem, 4vw, 3.6rem); background: var(--ink); color: #faf4fc; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; padding-bottom: 2.2rem; }
.brand-footer img { border: 1px solid #735e83; border-radius: 0.73rem; }
.brand-footer .brand-dot { color: var(--lime); }
.footer-brand p { margin-top: 0.85rem; color: #cfc1d9; font-size: 0.85rem; }
.footer-links { display: flex; flex-direction: column; align-items: start; gap: 0.36rem; }
.footer-links h2 { margin-bottom: 0.3rem; font-size: 0.9rem; }
.footer-links :is(button, a) { background: none; color: #e1d6e9; padding: 0.1rem 0; text-align: left; font-size: 0.85rem; }
.footer-links :is(button, a):hover { color: var(--lime); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem 1rem; flex-wrap: wrap; min-height: 3.6rem; padding-block: 0.65rem; border-top: 1px solid #564561; color: #cfc1d9; font-size: 0.77rem; }

dialog { color: var(--ink); background: var(--white); padding: 0; border: 0; box-shadow: 0 20px 70px #241b2d30; }
dialog::backdrop { background: #25192d75; backdrop-filter: blur(2px); }
dialog[open] { animation: dialog-in 170ms ease-out; }
@keyframes dialog-in { from { opacity: 0; transform: translateY(0.35rem); } to { opacity: 1; transform: translateY(0); } }
.product-dialog { max-width: min(890px, calc(100vw - 2rem)); width: 100%; max-height: calc(100dvh - 2rem); border-radius: 1rem; }
.product-detail { position: relative; display: grid; grid-template-columns: 46% 54%; }
.product-detail-visual { display: flex; flex-direction: column; background: var(--category-tint, var(--lavender)); }
.detail-photo { position: relative; flex: 1; min-height: 245px; }
.product-detail-image, .detail-photo .no-product-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.detail-thumbnails { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; padding: 0.55rem; }
.detail-thumbnails button { background: var(--white); padding: 2px; border: 1px solid transparent; border-radius: 0.44rem; }
.detail-thumbnails button[aria-pressed="true"] { border-color: #754ead; }
.detail-thumbnails img { width: 48px; height: 48px; border-radius: 0.28rem; object-fit: cover; }
.product-detail-copy { padding: clamp(1.25rem, 4vw, 2.7rem); }
.detail-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.48rem; padding-right: 2.25rem; }
.detail-meta .product-category { margin: 0; }
.product-detail h2 { margin-top: 0.22rem; padding-right: 1.7rem; font-size: clamp(1.75rem, 4vw, 2.45rem); line-height: 1.1; letter-spacing: -0.058em; overflow-wrap: anywhere; }
.product-detail-desc { margin-top: 0.7rem; font-size: 0.88rem; color: var(--muted); white-space: pre-line; overflow-wrap: anywhere; }
.detail-specs { margin-block: 1.13rem; border-top: 1px solid var(--line); }
.detail-specs div { display: flex; justify-content: space-between; gap: 0.7rem; padding-block: 0.46rem; border-bottom: 1px solid var(--line); font-size: 0.81rem; }
.detail-specs dt { color: var(--muted); flex: none; }
.detail-specs dd { margin: 0; text-align: right; white-space: pre-line; overflow-wrap: anywhere; }
.detail-buy { display: flex; align-items: center; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.85rem; }
.detail-buy .product-price { margin-right: auto; font-size: 1.45rem; }
.detail-buy .button { gap: 0.4rem; padding-inline: 0.64rem; }
.detail-buy .icon-button { border: 1px solid var(--line); height: 46px; }
.detail-note { color: var(--muted); font-size: 0.74rem; margin-top: 0.72rem; }
.close-button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--white); }
.dialog-close { position: absolute; z-index: 1; top: 0.8rem; right: 0.8rem; }

.drawer {
  width: min(100vw, 468px);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  inset: 0 0 0 auto;
  overflow: hidden;
  border-radius: 1rem 0 0 1rem;
}
.drawer[open] { animation: drawer-in 180ms ease-out; }
@keyframes drawer-in { from { transform: translateX(1.25rem); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.drawer-content { display: flex; flex-direction: column; min-height: 0; height: 100%; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 1.13rem 1.2rem; border-bottom: 1px solid var(--line); }
.drawer-head h2 { font-size: 1.55rem; line-height: 1.15; letter-spacing: -0.045em; }
.drawer-body { flex: 1; min-height: 0; overflow: auto; padding: 0.95rem 1.2rem; overscroll-behavior: contain; }
.drawer-footer { display: grid; gap: 0.63rem; padding: 0.95rem 1.2rem max(1rem, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.drawer-footer .button { width: 100%; }
.drawer-empty { display: flex; align-items: start; flex-direction: column; gap: 0.65rem; padding-block: 0.4rem; }
.drawer-empty p { color: var(--muted); }
.drawer-empty .button { margin-top: 0.4rem; }
.panel-row { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; align-items: start; gap: 0.75rem; padding-block: 0.78rem; border-bottom: 1px solid var(--line); }
.panel-row:first-child { padding-top: 0.2rem; }
.panel-image { padding: 0; border-radius: 0.5rem; overflow: hidden; }
.panel-image :is(img, .no-product-image) { width: 72px; height: 72px; object-fit: cover; }
.panel-name { display: block; padding: 0; background: transparent; font-weight: 700; line-height: 1.22; text-align: left; overflow-wrap: anywhere; }
.panel-name:hover { text-decoration: underline; text-underline-offset: 0.15em; }
.panel-type { color: var(--muted); font-size: 0.76rem; margin-top: 0.15rem; }
.row-price { white-space: nowrap; font-weight: 700; font-size: 0.85rem; }
.row-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 0.35rem 0.55rem; margin-top: 0.4rem; }
.text-button { background: transparent; padding: 0.22rem 0.1rem; color: #68478b; font-size: 0.8rem; text-decoration: underline; text-underline-offset: 0.16em; }
.totals-row { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; font-size: 0.91rem; }
.totals-row.total { font-weight: 700; font-size: 1.07rem; }
.panel-note { color: var(--muted); font-size: 0.77rem; }
.checkout-heading { font-size: 1rem; margin-bottom: 0.48rem; }
.checkout-back { display: inline-flex; align-items: center; gap: 0.3rem; margin-bottom: 0.55rem; }
.checkout-back svg { width: 0.9rem; height: 0.9rem; }
.checkout-note { background: #f1e9f9; border-radius: 0.65rem; padding: 0.75rem; margin-bottom: 1rem; font-size: 0.85rem; }
.checkout-feedback { color: #742e35; font-size: 0.82rem; }
.checkout-feedback:empty { display: none; }
.drawer-footer .button:disabled { opacity: 0.68; }
.shipping-options { display: grid; gap: 0.44rem; margin: 0; padding: 0; border: 0; }
.shipping-option {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem;
  border: 1px solid var(--line);
  border-radius: 0.58rem;
  cursor: pointer;
  font-size: 0.87rem;
}
.shipping-option:has(input:checked) { border-color: #a689bf; background: #f7f1fc; }
.shipping-option input { margin: 0; accent-color: #754ead; }
.shipping-option strong { margin-left: auto; }
.checkout-items { margin: 1.1rem 0 0; }
.checkout-items ul { list-style: none; padding: 0; margin: 0; }
.checkout-items li { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--line); padding-block: 0.38rem; font-size: 0.84rem; }
.checkout-items strong { white-space: nowrap; }
.success-icon { display: grid; place-items: center; border-radius: 50%; width: 49px; height: 49px; background: var(--lime); }
.success-icon svg { width: 1.4rem; height: 1.4rem; }

.info-dialog, .offer-dialog { width: min(510px, calc(100% - 2rem)); max-height: calc(100dvh - 2rem); border-radius: 0.9rem; }
.offer-dialog { width: min(600px, calc(100% - 2rem)); }
.info-copy, .offer-copy { position: relative; padding: clamp(1.3rem, 4vw, 2rem); }
.info-copy h2, .offer-copy h2 { padding-right: 2rem; font-size: 1.66rem; letter-spacing: -0.04em; }
.info-copy p, .offer-copy > p { color: var(--muted); font-size: 0.93rem; margin-top: 0.65rem; }
.offer-form, .offer-result { display: grid; justify-items: start; gap: 0.85rem; margin-top: 1rem; }
.offer-fields { width: 100%; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.7rem 0.85rem; }
.offer-wide { grid-column: 1 / -1; }
.offer-fields label, .offer-result label { font-size: 0.82rem; font-weight: 700; }
.offer-fields label span { color: var(--muted); font-size: 0.75rem; font-weight: 400; }
.offer-fields :is(input, select, textarea), .offer-result textarea {
  display: block;
  width: 100%;
  min-height: 42px;
  margin-top: 0.27rem;
  padding: 0.55rem 0.63rem;
  border: 1px solid #cfc4d5;
  border-radius: 0.48rem;
  background: var(--white);
  font-weight: 400;
}
.offer-fields textarea, .offer-result textarea { resize: vertical; }
.offer-result { gap: 0.45rem; padding-top: 0.8rem; border-top: 1px solid var(--line); }
.offer-result textarea { margin-top: 0; background: #f6f1fb; font-size: 0.85rem; }
.offer-result [role="status"] { color: var(--muted); font-size: 0.8rem; }
.offer-result [role="status"]:empty { display: none; }

.toast {
  position: fixed;
  z-index: 4;
  right: max(1rem, calc((100vw - 1280px) / 2));
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: calc(100% - 2rem);
  display: flex;
  align-items: center;
  gap: 0.62rem;
  background: var(--plum);
  color: #fff9ff;
  padding: 0.68rem;
  border: 1px solid #5b4868;
  border-radius: 0.7rem;
  box-shadow: 0 10px 30px #241b2d30;
  font-size: 0.82rem;
}
.toast-icon { display: grid; place-items: center; flex: none; width: 28px; height: 28px; border-radius: 0.4rem; background: var(--lime); color: var(--ink); }
.toast-icon svg { width: 1rem; height: 1rem; }
.toast-action { background: transparent; color: var(--lime); padding: 0.3rem; white-space: nowrap; text-decoration: underline; text-underline-offset: 0.17em; }
.toast-action:focus-visible { outline-color: var(--lime); }

@media (max-width: 1100px) {
  .category-tile { flex-direction: column; align-items: start; gap: 0.42rem; padding: 0.65rem; min-height: 75px; }
  .category-icon { width: 32px; height: 32px; }
  .hero { min-height: 390px; }
}
@media (max-width: 890px) {
  .nav { overflow-x: auto; scrollbar-width: thin; }
  .nav-inner { width: max-content; min-width: calc(100% - var(--edge)); margin-inline: calc(var(--edge) / 2); }
  .header-main { grid-template-columns: minmax(140px, auto) minmax(170px, 1fr) auto; gap: 0.8rem; }
  .cart-label { display: none; }
  .hero { grid-template-columns: 46% 54%; min-height: 360px; }
  .hero-text { padding: 2rem; }
  .hero h1 { font-size: clamp(2.8rem, 6.3vw, 4rem); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .category-tile { flex-direction: row; align-items: center; min-height: 59px; }
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 651px) and (max-width: 800px) {
  .hero h1 { font-size: clamp(2.35rem, 5.5vw, 2.8rem); }
}
@media (max-width: 650px) {
  .utility-inner { min-height: 30px; font-size: 0.66rem; gap: 0.25rem; }
  .demo-label, .utility-link { gap: 0.42rem; }
  .utility-link svg { display: none; }
  .header-main { grid-template-columns: 1fr auto; min-height: 0; gap: 0.64rem; padding-block: 0.7rem 0.62rem; }
  .brand img { width: 38px; height: 38px; }
  .header-actions { grid-column: 2; grid-row: 1; gap: 0.2rem; }
  .cart-trigger { min-height: 41px; }
  .search-area { grid-column: 1 / -1; grid-row: 2; }
  .search { min-height: 41px; padding-left: 0.65rem; }
  .search input { font-size: 1rem; }
  .search input::placeholder { font-size: 0.81rem; }
  .search .icon-button { width: 31px; height: 31px; }
  .nav-inner { min-height: 40px; }
  .nav-link { font-size: 0.79rem; padding-inline: 0.6rem; }
  .hero { display: flex; flex-direction: column; min-height: 0; border-radius: 0.87rem; }
  .hero-text { padding: 1.5rem 1.33rem 1.48rem; }
  .hero-eyebrow { margin-bottom: 0.69rem; }
  .hero h1 { font-size: clamp(2.58rem, 9.8vw, 4.2rem); line-height: 1; }
  .hero-text p { margin-block: 0.78rem 1rem; font-size: 0.86rem; line-height: 1.48; }
  .hero .button { min-height: 41px; }
  .hero-media { aspect-ratio: 1.55; }
  .categories { margin-top: 1.85rem; }
  .section-heading { margin-bottom: 0.78rem; }
  .category-grid { gap: 0.45rem; }
  .category-tile { flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 0.38rem 0.19rem; gap: 0.3rem; min-height: 64px; }
  .category-icon { width: 29px; height: 29px; }
  .category-icon svg { width: 0.98rem; height: 0.98rem; }
  .catalog { margin-top: 2.25rem; }
  .catalog-heading h2 { font-size: 1.55rem; }
  .catalog-all { font-size: 0.74rem; min-height: 39px; gap: 0.32rem; padding-inline: 0.5rem; }
  .catalog-all svg { width: 0.9rem; height: 0.9rem; }
  .catalog-tools { flex-wrap: wrap; }
  .active-filters:empty { display: none; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.62rem; }
  .product-image { aspect-ratio: 1.12; }
  .product-favorite { width: 33px; height: 33px; top: 0.45rem; right: 0.45rem; }
  .product-card > .condition-badge { top: 0.48rem; left: 0.45rem; max-width: calc(100% - 3.4rem); font-size: 0.62rem; }
  .product-copy { padding: 0.6rem 0.62rem 0.65rem; }
  .product-category { font-size: 0.62rem; }
  .product-tagline { font-size: 0.75rem; }
  .quick-add { width: 34px; height: 34px; }
  .sell-section { display: flex; flex-direction: column; margin-block: 2.75rem; }
  .sell-copy { padding: 1.35rem; }
  .sell-copy h2 { max-width: 18rem; }
  .sell-section > img { max-height: 260px; aspect-ratio: 1.65; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1.3rem; }
  .footer-brand { grid-column: 1 / -1; }
  .footer-links :is(button, a) { min-height: 32px; }
  .product-detail { grid-template-columns: 1fr; }
  .detail-photo { flex: none; min-height: 0; aspect-ratio: 1.23; }
  .product-detail-copy { padding: 1.05rem; }
  .product-detail h2 { padding-right: 0; }
  .drawer { border-radius: 0; }
}
@media (max-width: 460px) {
  .offer-fields { grid-template-columns: 1fr; }
  .offer-fields :is(input, select, textarea) { font-size: 1rem; }
}
@media (max-width: 540px) {
  .utility-links:has(.manage-link:not([hidden])) .utility-link:not(.manage-link) { display: none; }
}
@media (max-width: 355px) {
  .utility-link:not(.manage-link) { display: none; }
  .catalog-all svg { display: none; }
  .panel-row { grid-template-columns: 56px minmax(0, 1fr) auto; gap: 0.5rem; }
  .panel-image :is(img, .no-product-image) { width: 56px; height: 56px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
