/*
 * Public webshop. theme.css owns the palette, the buttons and the chat
 * primitives; everything here is page furniture — chrome, hero, tiles, and the
 * two dialogs. Sections breathe at 48-64px because this is the marketing face
 * of the demo and the product photography needs the quiet around it.
 */

/* Several components below set `display`, which would otherwise beat the user
   agent rule for [hidden] and leave closed dialogs on screen. */
[hidden] {
  display: none !important;
}

.icon {
  width: 22px;
  height: 22px;
  flex: none;
}

/* Page-specific semantic state overrides stay tied to the shared tokens. */
.pill--stock {
  color: var(--success);
}

.pill--out {
  color: var(--danger);
}

.turn--error {
  color: var(--danger);
}

.skip-link {
  position: absolute;
  left: var(--space-3);
  top: -60px;
  z-index: 100;
  padding: var(--space-3) var(--space-4);
  background: var(--primary);
  color: var(--on-primary);
  border-radius: var(--radius);
  text-decoration: none;
  transition: top var(--fast);
}

.skip-link:focus {
  top: var(--space-3);
}

.shell,
.section,
.site-header__bar,
.mainnav__inner,
.hero__inner,
.usp__inner,
.site-footer__inner,
.site-footer__bottom,
.demobar__inner {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--space-5);
}

/* ---------- demo bar ---------- */

.demobar {
  background: var(--primary);
  color: var(--on-primary-muted);
  font-size: 13px;
}

.demobar__inner {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  min-height: 44px;
  flex-wrap: wrap;
}

.demobar__label {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 11px;
  color: var(--on-primary-secondary);
}

.demobar__nav {
  display: flex;
  gap: var(--space-1);
}

.demobar__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 var(--space-3);
  color: var(--on-primary-muted);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  transition: color var(--fast), border-color var(--fast);
}

.demobar__nav a:hover {
  color: var(--on-primary);
}

.demobar__nav a[aria-current="page"] {
  color: var(--on-primary);
  border-bottom-color: var(--accent);
  font-weight: 600;
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}

.site-header--scrolled {
  box-shadow: var(--shadow);
}

.site-header__bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-4);
  min-height: var(--header-h);
  padding-block: var(--space-2);
}

/* Specificity has to beat `.iconbtn`, which sets its own display below. */
.iconbtn.site-header__burger {
  display: none;
}

.wordmark {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1px;
  text-decoration: none;
  color: var(--fg);
  padding-block: var(--space-1);
}

.wordmark__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: 0.14em;
  line-height: 1;
}

.wordmark__name--light {
  color: var(--on-primary);
}

.wordmark__tag {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent-ink);
}

.searchbar {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.searchbar__icon {
  position: absolute;
  left: var(--space-3);
  color: var(--muted-fg);
  pointer-events: none;
}

/* min-width:0 so the field can shrink past its intrinsic size instead of
   pushing the submit button off a 375px viewport. */
.searchbar__input,
.chat .composer input {
  min-width: 0;
  flex: 1 1 auto;
}

.searchbar__input {
  padding-left: 44px;
}

.searchbar__input::-webkit-search-cancel-button {
  cursor: pointer;
}

.searchbar--header {
  max-width: 520px;
  justify-self: center;
  width: 100%;
}

.searchbar--header .searchbar__submit {
  padding-inline: var(--space-4);
}

.site-header__actions {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.iconbtn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--radius);
  color: var(--fg);
  transition: background var(--fast), color var(--fast),
    border-color var(--fast);
}

.iconbtn:hover {
  background: var(--muted);
  border-color: var(--border);
}

.iconbtn--onDark {
  color: var(--on-primary);
}

.iconbtn--onDark:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.24);
}

.iconbtn__badge {
  position: absolute;
  top: 4px;
  right: 4px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: var(--on-accent);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

/* ---------- main nav + mega menu ---------- */

.mainnav {
  border-top: 1px solid var(--border);
  background: var(--card);
}

/* No overflow container here: it would clip the mega menu that hangs out of
   the bar. Wrapping is the only way seven Dutch category names fit at 900px. */
.mainnav__inner {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.mainnav__item {
  position: relative;
}

.mainnav__btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  min-height: 46px;
  padding: 0 var(--space-3);
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  color: var(--fg);
  transition: color var(--fast), border-color var(--fast);
}

.mainnav__btn .icon {
  width: 16px;
  height: 16px;
  transition: transform var(--fast);
}

.mainnav__btn:hover {
  color: var(--accent-ink);
}

.mainnav__btn[aria-expanded="true"] {
  color: var(--accent-ink);
  border-bottom-color: var(--accent);
}

.mainnav__btn[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.mega {
  position: absolute;
  z-index: 30;
  top: 100%;
  left: 0;
  min-width: 320px;
  max-width: min(640px, calc(100vw - var(--space-6)));
  padding: var(--space-4);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow-xl);
}

/* Only once the seven items are guaranteed to sit on one line; if the bar has
   wrapped, a right-anchored panel on a left-hand item would run off-screen. */
@media (min-width: 1181px) {
  .mainnav__item:nth-last-child(-n + 3) .mega {
    left: auto;
    right: 0;
  }
}

.mega__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 2px;
}

.mega__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  width: 100%;
  min-height: 44px;
  padding: var(--space-2) var(--space-3);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 14px;
  color: var(--fg);
  transition: background var(--fast), color var(--fast);
}

.mega__link:hover {
  background: var(--muted);
  color: var(--accent-ink);
}

.mega__count {
  font-size: 12px;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.mega__all {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  margin-top: var(--space-2);
  padding: 0 var(--space-3);
  background: none;
  border: 0;
  border-top: 1px solid var(--border);
  border-radius: 0;
  width: 100%;
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--accent-ink);
}

.mega__all:hover {
  color: var(--fg);
  background: var(--muted);
}

.mega__loading,
.mega__error {
  padding: var(--space-3);
  font-size: 14px;
  color: var(--muted-fg);
}

.mega__error {
  color: var(--danger);
}

/* ---------- mobile drawer ---------- */

.drawer-backdrop,
.modal-backdrop,
.chat-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: var(--overlay);
  animation: fade var(--fast) both;
}

.chat-backdrop {
  background: rgba(34, 34, 33, 0.18);
}

@keyframes fade {
  from {
    opacity: 0;
  }
}

.drawer {
  position: fixed;
  z-index: 60;
  inset: 0 auto 0 0;
  width: min(340px, 88vw);
  display: flex;
  flex-direction: column;
  background: var(--card);
  box-shadow: var(--shadow-xl);
  animation: slide-in var(--normal) both;
}

@keyframes slide-in {
  from {
    transform: translateX(-100%);
  }
}

.drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
}

.drawer__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 18px;
}

.drawer__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-2) var(--space-3) var(--space-6);
}

.acc__row {
  display: flex;
  align-items: stretch;
  gap: var(--space-1);
  border-bottom: 1px solid var(--border);
}

.acc__main {
  flex: 1;
  min-height: 48px;
  padding: 0 var(--space-2);
  background: none;
  border: 0;
  text-align: left;
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--fg);
  border-radius: var(--radius-sm);
}

.acc__main:hover {
  color: var(--accent-ink);
}

.acc__toggle {
  width: 44px;
  min-height: 48px;
  display: grid;
  place-items: center;
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  color: var(--muted-fg);
}

.acc__toggle:hover {
  background: var(--muted);
  color: var(--fg);
}

.acc__toggle .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--fast);
}

.acc__toggle[aria-expanded="true"] .icon {
  transform: rotate(180deg);
}

.acc__panel {
  padding: var(--space-1) 0 var(--space-3) var(--space-3);
  display: flex;
  flex-direction: column;
}

.acc__sub {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-2);
  background: none;
  border: 0;
  border-radius: var(--radius-sm);
  text-align: left;
  font-size: 14px;
  color: var(--fg);
}

.acc__sub:hover {
  background: var(--muted);
  color: var(--accent-ink);
}

/* ---------- hero ---------- */

.hero {
  position: relative;
  background: linear-gradient(
    145deg,
    var(--primary) 0%,
    var(--primary-soft) 100%
  );
  color: var(--on-primary);
  overflow: hidden;
}

/* A faint grid, not a photo: the products are the only saturated thing. */
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(
      rgba(255, 255, 255, 0.05) 1px,
      transparent 1px
    ),
    linear-gradient(90deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 78% 25%, #000 0%, transparent 68%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(var(--space-7), 7vw, 96px);
  max-width: 920px;
  margin-inline: auto;
}

.hero__eyebrow {
  margin: 0 0 var(--space-3);
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.hero__title {
  font-size: clamp(32px, 5.4vw, 56px);
  color: var(--on-primary);
  max-width: 16ch;
}

.hero__sub {
  margin: var(--space-4) 0 0;
  max-width: 60ch;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--on-primary-muted);
}

.searchbar--hero {
  margin-top: var(--space-6);
  max-width: 680px;
}

.searchbar--hero .searchbar__input {
  min-height: 56px;
  border-color: transparent;
  font-size: 17px;
}

.searchbar--hero .searchbar__submit {
  min-height: 56px;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-top: var(--space-5);
}

.hero__chips-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--on-primary-muted);
}

.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: 0 var(--space-4);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 14px;
  color: var(--fg);
  transition: background var(--fast), border-color var(--fast),
    color var(--fast);
}

.chip:hover {
  border-color: var(--accent);
  color: var(--accent-ink);
}

.chip--onDark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--on-primary);
}

.chip--onDark:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--on-accent);
}

.chip__count {
  font-size: 12px;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

/* ---------- sections ---------- */

.section {
  padding-block: clamp(var(--space-7), 5vw, var(--space-8));
  /* Clears the sticky header when a search scrolls the results into view. */
  scroll-margin-top: 130px;
}

.section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-5);
}

.section__title {
  font-size: clamp(22px, 2.6vw, 30px);
}

.section__sub {
  margin: var(--space-2) 0 0;
  color: var(--muted-fg);
  max-width: 60ch;
}

.notice {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  margin: 0 0 var(--space-4);
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius);
  font-size: 15px;
}

.notice--error {
  background: var(--danger-bg);
  border: 1px solid #fecaca;
  color: #991b1b;
}

/* ---------- category tiles ---------- */

.cattiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(285px, 1fr));
  gap: var(--space-4);
}

.cattile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
  min-height: 132px;
  padding: var(--space-5);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: left;
  transition: border-color var(--normal), box-shadow var(--normal),
    transform var(--normal);
}

.cattile:hover {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}

.cattile__name {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 600;
}

.cattile__count {
  font-size: 13px;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

.cattile__go {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  margin-top: auto;
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-ink);
}

.cattile__go .icon {
  width: 18px;
  height: 18px;
  transition: transform var(--fast);
}

.cattile:hover .cattile__go .icon {
  transform: translateX(3px);
}

.cattile--skeleton {
  height: 132px;
}

/* ---------- product grid ---------- */

.pgrid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: var(--space-4);
}

.pcard {
  position: relative;
}

/* At two columns on a 375px screen the price and the stock pill no longer fit
   on one line, and the card's overflow:hidden would silently clip the pill. */
.card__foot {
  flex-wrap: wrap;
  row-gap: var(--space-1);
}

/* theme.css clamps `.card__name`; with a button inside, the clamp has to move
   onto the button or its single inline-block child escapes the box. */
.card__name {
  display: block;
  overflow: visible;
}

.card__link {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  padding: 0;
  background: none;
  border: 0;
  text-align: left;
  font: inherit;
  color: inherit;
}

/* Stretched over the card so the whole tile is clickable, while the label and
   the focus ring stay on the product name where a screen reader expects them. */
.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
}

.card__link:hover {
  color: var(--accent-ink);
}

.pcard:focus-within {
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}

.chip__x {
  width: 16px;
  height: 16px;
}

.card__summary {
  font-size: 13px;
  color: var(--primary-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.card__media--skeleton {
  aspect-ratio: 4 / 3;
}

.card__line {
  height: 12px;
  margin: var(--space-2) var(--space-4);
}

.refine {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-5);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

.refine__label {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
}

.chip--active {
  background: var(--primary);
  border-color: var(--primary);
  color: var(--on-primary);
}

.chip--active:hover {
  background: var(--primary-soft);
  border-color: var(--primary-soft);
  color: var(--on-primary);
}

.chip--active .chip__count {
  color: var(--on-primary-muted);
}

.loadmore {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-6);
}

.loadmore__meta {
  margin: 0;
  font-size: 14px;
  color: var(--muted-fg);
  font-variant-numeric: tabular-nums;
}

/* ---------- usp band ---------- */

.usp {
  background: var(--primary);
  color: var(--on-primary-muted);
}

.usp__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--space-5);
  padding-block: var(--space-7);
}

.usp__item {
  display: flex;
  gap: var(--space-3);
}

.usp__item .icon {
  color: var(--accent);
  margin-top: 2px;
}

.usp__item h3 {
  font-size: 16px;
  color: var(--on-primary);
}

.usp__item p {
  margin: var(--space-1) 0 0;
  font-size: 14px;
  color: var(--on-primary-muted);
}

/* ---------- footer ---------- */

.site-footer {
  background: var(--primary);
  color: var(--on-primary-muted);
}

.site-footer__inner {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, 1fr);
  gap: var(--space-6);
  padding-block: var(--space-8);
}

.site-footer__brand p {
  margin: var(--space-3) 0 0;
  max-width: 42ch;
  font-size: 14px;
  color: var(--on-primary-secondary);
}

.site-footer__title {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--on-primary);
  margin-bottom: var(--space-3);
}

.site-footer__col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-footer__col a,
.site-footer__col button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  font-size: 14px;
  text-align: left;
  color: var(--on-primary-muted);
  text-decoration: none;
  transition: color var(--fast);
}

.site-footer__col a:hover,
.site-footer__col button:hover {
  color: var(--on-primary);
  text-decoration: underline;
}

.site-footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: var(--space-3);
  padding-block: var(--space-4);
  border-top: 1px solid var(--primary-soft);
  font-size: 13px;
  color: var(--on-primary-secondary);
}

.site-footer__bottom p {
  margin: 0;
}

/* ---------- product modal ---------- */

/* The one dialog that opens on top of another: a product card in the chat
   opens it while the chat panel (z-index 60) stays open behind it, so both it
   and its own backdrop have to clear that panel rather than tie with it. */
.modal-backdrop {
  z-index: 70;
}

.modal {
  position: fixed;
  z-index: 80;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(940px, calc(100vw - var(--space-6)));
  max-height: min(88vh, 860px);
  display: flex;
  flex-direction: column;
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: pop var(--normal) both;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translate(-50%, calc(-50% + 12px));
  }
}

.modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-5);
  border-bottom: 1px solid var(--border);
}

.modal__title {
  font-size: 18px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.modal__body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: var(--space-5);
}

.pdp {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: var(--space-6);
}

.pdp__media {
  position: sticky;
  top: 0;
  aspect-ratio: 1;
  background: var(--muted);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.pdp__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: var(--space-5);
}

.pdp__cat {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.pdp__name {
  font-size: clamp(20px, 2.4vw, 26px);
}

.pdp__ean {
  margin: var(--space-2) 0 0;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--muted-fg);
}

.pdp__pricerow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-4) 0;
  padding: var(--space-4) 0;
  border-block: 1px solid var(--border);
}

.pdp__price {
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 700;
}

.pdp__vat {
  font-size: 13px;
  color: var(--muted-fg);
}

.pdp__desc {
  margin: 0 0 var(--space-4);
  white-space: pre-wrap;
  color: var(--primary-soft);
}

.pdp__block {
  margin-top: var(--space-5);
}

.pdp__block h3 {
  font-size: 15px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--muted-fg);
  margin-bottom: var(--space-3);
}

.pdp__bullets {
  margin: 0;
  padding-left: 1.1em;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  color: var(--primary-soft);
}

.pdp__specs {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: var(--space-2) var(--space-5);
  margin: 0;
  font-size: 15px;
}

.pdp__specs dt {
  font-weight: 600;
  color: var(--muted-fg);
}

.pdp__specs dd {
  margin: 0;
}

.pdp__taglist {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.pdp__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.pdp__sheet {
  text-decoration: none;
}

.modal__error {
  padding: var(--space-6) 0;
}

/* ---------- chat ---------- */

.chat-launcher {
  position: fixed;
  z-index: 45;
  right: var(--space-5);
  bottom: var(--space-5);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 52px;
  padding: 0 var(--space-5);
  background: var(--accent-hover);
  color: var(--on-accent);
  border: 0;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  transition: background var(--fast), transform var(--fast),
    box-shadow var(--fast);
}

.chat-launcher:hover {
  background: var(--accent-hover);
  box-shadow: var(--shadow-xl);
  transform: translateY(-1px);
}

.chat {
  position: fixed;
  z-index: 60;
  right: var(--space-5);
  bottom: var(--space-5);
  width: min(420px, calc(100vw - var(--space-6)));
  height: min(640px, calc(100vh - 120px));
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  animation: rise-panel var(--normal) both;
}

@keyframes rise-panel {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}

.chat__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3) var(--space-3) var(--space-4);
  background: var(--primary);
  color: var(--on-primary);
}

.chat__title {
  font-size: 16px;
  color: var(--on-primary);
}

.chat__status {
  margin: 2px 0 0;
  font-size: 12px;
  color: var(--on-primary-muted);
}

.chat__head-actions {
  display: flex;
  gap: var(--space-1);
}

/* The transcript is the only thing allowed to grow, so the panel survives
   being squeezed to any height without the composer sliding off. */
.chat .turns {
  flex: 1;
  min-height: 0;
  margin: 0;
  background: var(--bg);
}

.chat__starters {
  padding: 0 var(--space-4) var(--space-3);
  background: var(--bg);
}

.chat__starters-label {
  display: block;
  margin-bottom: var(--space-2);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted-fg);
}

.chat__starters .chip {
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  font-size: 13px;
  text-align: left;
  white-space: normal;
}

.composer__send {
  padding-inline: var(--space-4);
}

/* ---------- responsive ---------- */

@media (max-width: 1180px) {
  .mainnav__btn {
    padding-inline: var(--space-2);
    font-size: 13px;
  }
}

@media (max-width: 1024px) {
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }

  .pdp {
    grid-template-columns: 1fr;
  }

  .pdp__media {
    position: static;
    max-width: 420px;
  }
}

@media (max-width: 900px) {
  .site-header__bar {
    grid-template-columns: auto 1fr auto;
    row-gap: var(--space-2);
  }

  .iconbtn.site-header__burger {
    display: inline-grid;
  }

  .mainnav {
    display: none;
  }

  .searchbar--header {
    grid-column: 1 / -1;
    grid-row: 2;
    max-width: none;
  }

  .searchbar--header .searchbar__submit {
    padding-inline: var(--space-3);
  }
}

@media (max-width: 640px) {
  .shell,
  .section,
  .site-header__bar,
  .mainnav__inner,
  .hero__inner,
  .usp__inner,
  .site-footer__inner,
  .site-footer__bottom,
  .demobar__inner {
    padding-inline: var(--space-4);
  }

  .wordmark__name {
    font-size: 21px;
    letter-spacing: 0.1em;
  }

  .wordmark__tag {
    font-size: 9px;
    letter-spacing: 0.14em;
  }

  .site-header__actions .iconbtn:first-child {
    display: none;
  }

  .searchbar__submit {
    font-size: 14px;
    padding-inline: var(--space-3);
  }

  .cattiles,
  .pgrid {
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-3);
  }

  .site-footer__inner {
    grid-template-columns: 1fr;
    gap: var(--space-5);
  }

  .modal {
    inset: 0;
    transform: none;
    width: auto;
    height: auto;
    max-height: none;
    border-radius: 0;
    animation: slide-up var(--normal) both;
  }

  @keyframes slide-up {
    from {
      transform: translateY(24px);
      opacity: 0;
    }
  }

  .chat {
    inset: 0;
    width: auto;
    height: auto;
    border-radius: 0;
    border: 0;
  }

  .chat-launcher {
    right: var(--space-4);
    bottom: var(--space-4);
  }

  .pdp__specs {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .pdp__specs dd {
    margin-bottom: var(--space-3);
  }
}

body.is-locked {
  overflow: hidden;
}
