/*
 * Components shared by every page.
 *
 * Contents: surfaces, buttons, tiles and labels, segmented tabs, chips, product card and grid,
 * top bar, header, drawer, breadcrumbs, footer, bottom nav, chat button, variant dialog, toast,
 * empty state, review summary, FAQ, scroll rows.
 */

/* Surfaces: glass is the accent (client: "secukupnya"), panel is the default. */
.glass {
  background: var(--glass-fill);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  backdrop-filter: blur(20px) saturate(160%);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow-glass);
}

.panel {
  background: var(--surface);
  box-shadow: var(--shadow-panel);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--r-pill);
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: transform var(--t-fast) ease, box-shadow var(--t-fast) ease;
}

.btn-primary {
  gap: 10px;
  color: var(--on-dark);
  font-weight: 700;
  border-color: var(--teal-edge);
  background: var(--primary-fill);
  box-shadow: var(--shadow-btn);
}

.btn-primary:hover {
  color: var(--on-dark);
  transform: translateY(-1px);
  box-shadow: var(--shadow-btn-hover);
}

.btn-primary:active {
  transform: translateY(1px);
  box-shadow: var(--shadow-btn-press);
}

.btn-soft,
.btn-outline {
  color: var(--ink);
  border-color: var(--surface);
  background: var(--soft-fill);
  box-shadow: var(--shadow-soft);
}

.btn-outline {
  color: var(--teal-strong);
  box-shadow: 0 0 0 1.5px var(--teal-ring), 0 2px 4px -2px rgba(22, 72, 92, .18);
}

.btn-soft:hover,
.btn-outline:hover {
  color: var(--ink);
  transform: translateY(-1px);
}

.btn-outline:hover {
  color: var(--teal-strong);
}

.btn[disabled],
.btn[aria-disabled="true"] {
  color: var(--disabled-ink);
  border-color: var(--disabled-edge);
  background: var(--disabled-bg);
  box-shadow: none;
  transform: none;
  cursor: not-allowed;
}

/* Row arrows at the start or end of their row. */
.btn-icon:disabled,
.btn-round:disabled {
  opacity: .4;
  box-shadow: none;
  cursor: default;
}

.btn-sm {
  height: 34px;
  padding: 0 12px;
  font-size: var(--text-sm);
}

.btn-lg {
  height: 46px;
  padding: 0 24px;
}

.btn-icon {
  width: 40px;
  padding: 0;
  flex: none;
}

.btn-sm.btn-icon {
  width: 34px;
}

.btn-lg.btn-icon {
  width: 48px;
  height: 48px;
}

.btn-block {
  display: flex;
  width: 100%;
}

.btn-round {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  color: var(--ink);
}

/* Icon tiles and tints */
.icon-tile {
  position: relative;
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  overflow: hidden;
  border-radius: var(--r-md);
  box-shadow: var(--shadow-tile);
}

.icon-tile::before {
  content: "";
  position: absolute;
  inset: 0 0 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
}

.icon-tile .icon {
  position: relative;
}

.tile-mint { background: linear-gradient(180deg, var(--tile-mint-1), var(--tile-mint-2)); color: var(--tile-mint-ink); }
.tile-blue { background: linear-gradient(180deg, var(--tile-blue-1), var(--tile-blue-2)); color: var(--tile-blue-ink); }
.tile-lilac { background: linear-gradient(180deg, var(--tile-lilac-1), var(--tile-lilac-2)); color: var(--tile-lilac-ink); }
.tile-rose { background: linear-gradient(180deg, var(--tile-rose-1), var(--tile-rose-2)); color: var(--tile-rose-ink); }

.tint-mint { background: var(--world-tablet); color: var(--tile-mint-ink); }
.tint-blue { background: var(--world-hp); color: var(--tile-blue-ink); }
.tint-lilac { background: var(--world-meja); color: var(--tile-lilac-ink); }
.tint-rose { background: var(--world-rose); color: var(--tile-rose-ink); }

/* Labels */
.label-dark {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 9px;
  border-radius: var(--r-xs);
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--text-xs);
  font-weight: 700;
}

.discount-badge {
  display: inline-flex;
  align-items: center;
  align-self: center;
  height: 24px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--promo-tint);
  color: var(--promo);
  font-size: var(--text-sm);
  font-weight: 800;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 22px;
  padding: 0 8px;
  border-radius: var(--r-xs);
  background: var(--surface-soft);
  color: var(--body);
  font-size: var(--text-xs);
  font-weight: 700;
}

.avatar {
  display: grid;
  place-items: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: var(--text-meta);
  font-weight: 800;
}

.verified {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  color: var(--teal-strong);
  font-weight: 600;
}

.star,
.stars {
  color: var(--star);
}

.stars {
  letter-spacing: 1px;
}

/* Segmented tabs */
.segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: var(--tab-track);
}

.segmented__item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
  line-height: normal;
}

.segmented__item:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, .5);
}

.segmented__item[aria-selected="true"],
.segmented__item[aria-current] {
  background: var(--surface);
  box-shadow: var(--shadow-raised);
}

.segmented__count {
  color: var(--muted);
  font-weight: 500;
}

.segmented--sm {
  padding: 3px;
}

.segmented--sm .segmented__item {
  height: 34px;
  padding: 0 12px;
  font-size: var(--text-meta);
}

/* Chips and variant options */
.chip {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 13px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, .55);
  box-shadow: inset 0 0 0 1px rgba(14, 42, 51, .09);
  font-size: var(--text-meta);
  font-weight: 600;
}

.chip:hover {
  color: var(--ink);
  background: var(--surface);
}

.option-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 6px 18px;
  border: 1.5px solid var(--line-strong);
  border-radius: var(--r-md);
  background: var(--surface);
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 600;
  line-height: 1.25;
  cursor: pointer;
  transition: border-color var(--t-fast) ease;
}

.option-chip input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  pointer-events: none;
}

.option-chip:hover {
  color: var(--ink);
  border-color: var(--teal-ring);
}

.option-chip:has(input:checked),
.option-chip[aria-pressed="true"] {
  border-color: var(--teal-ring);
  background: var(--mint-soft);
}

.option-chip:has(input:focus-visible) {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.option-chip:has(input:disabled) {
  color: var(--muted);
  border-style: dashed;
  background: var(--surface-soft);
  cursor: not-allowed;
}

.option-chip__tick {
  position: absolute;
  right: -1.5px;
  bottom: -1.5px;
  display: none;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 6px 0 9px 0;
  background: var(--teal-ring);
  color: var(--on-dark);
}

.option-chip:has(input:checked) .option-chip__tick {
  display: grid;
}

.option-chip--color {
  padding: 0 14px 0 8px;
  line-height: normal;
}

.option-chip__swatch {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(14, 42, 51, .18), inset 0 5px 6px rgba(255, 255, 255, .4);
}

.option-chip--sm {
  min-height: 32px;
  padding: 0 10px;
  border-width: 1px;
  border-radius: var(--r-sm);
  font-size: var(--text-sm);
}

.swatches {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}

.swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--swatch);
  box-shadow: inset 0 0 0 1px rgba(14, 42, 51, .15);
}

.radio-dot {
  flex: none;
  width: 16px;
  height: 16px;
  border: 1.5px solid rgba(14, 42, 51, .28);
  border-radius: 50%;
  background: var(--surface);
}

[aria-current="true"] > .radio-dot,
.is-on > .radio-dot {
  border: 5px solid var(--teal-ring);
}

/* Price */
.price {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: var(--tracking-price);
}

.price__was {
  color: var(--strike);
  font-size: var(--text-sm);
  font-weight: 500;
  letter-spacing: 0;
}

/* Product card */
/* No card box (Casetify-style, owner 17 October 2026): a rounded photo with a hairline, text
   below it on the page. */
.product-card {
  position: relative; /* keeps screen-reader text inside horizontal scroll rows */
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.product-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: var(--r-card);
  background: var(--surface-soft);
}

.product-card__media::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px var(--line);
  pointer-events: none;
}

/* Discount sticker: warm sale red, a white rim so it lifts off any photo, a slight tilt, and a glint
   that passes over it every few seconds. */
.product-card__off {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--logo-red), var(--promo));
  box-shadow: 0 0 0 2px var(--surface);
  color: var(--on-dark);
  font-size: var(--text-meta);
  font-weight: 800;
  letter-spacing: var(--tracking-price);
  rotate: -4deg;
  animation: off-wiggle 4s ease-in-out 1s infinite;
}

/* A quick wiggle now and then, like a sticker catching the eye. */
@keyframes off-wiggle {
  0%,
  84%,
  100% { rotate: -4deg; }
  88% { rotate: 4deg; }
  92% { rotate: -7deg; }
  96% { rotate: 1deg; }
}

.product-card__off::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--surface) 55%, transparent) 50%, transparent 70%);
  translate: -120% 0;
  animation: off-glint 3.2s var(--ease-out) infinite;
}

.product-card:nth-child(2n) .product-card__off::after { animation-delay: .8s; }
.product-card:nth-child(3n) .product-card__off::after { animation-delay: 1.6s; }

@keyframes off-glint {
  0% { translate: -120% 0; }
  45%,
  100% { translate: 120% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .product-card__off {
    animation: none;
  }

  .product-card__off::after {
    display: none;
  }
}

.product-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s var(--ease-out);
}

.product-card:hover .product-card__media img {
  transform: scale(1.03);
}

@media (prefers-reduced-motion: reduce) {
  .product-card__media img {
    transition: none;
  }
}

.product-card__tag {
  position: absolute;
  left: 10px;
  bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  max-width: calc(100% - 20px);
  height: 28px;
  padding: 0 11px;
  overflow: hidden;
  border-radius: var(--r-pill);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.product-card__tag.is-fit {
  color: var(--teal-strong);
}

.product-card__tag.is-fit::before {
  content: "✓";
}

.product-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 12px 2px 0;
}

.product-card__name {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: 0;
}

/* Long product names stop at two lines with an ellipsis, wherever a product is listed. */
.product-card__name,
.variant-product__name {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.product-card__fit {
  margin-top: 4px;
  color: var(--muted);
  font-size: var(--text-meta);
}

.product-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 14px;
}

.product-card__price {
  min-width: 0;
}

.product-card__meta {
  color: var(--muted);
  font-size: var(--text-sm);
}

.product-card__add {
  width: 38px;
  height: 38px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr));
  gap: 16px;
}

/* Top bar */
.topbar {
  /* The deep Levino green, like the voucher band (owner, November 2026: more colour). */
  background: var(--teal-strong);
  color: var(--on-dark);
  font-size: var(--text-meta);
}

.topbar__inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 4px 16px;
  min-height: 38px;
  padding-block: 6px;
}

.topbar a {
  color: var(--topbar-link);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.topbar__extras {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 20px;
  margin-left: auto;
  color: var(--topbar-muted);
}

.topbar__extras a {
  color: var(--topbar-muted);
  font-weight: 400;
  text-decoration: none;
}

/* Header: a white bar that sticks (and hides on scroll down), over a category row that scrolls away. */
.site-header {
  position: sticky;
  top: 0;
  z-index: var(--z-header);
  background: var(--surface);
  /* A hairline with a soft, short shade under it: the bar reads as lifted without a heavy shadow. */
  box-shadow: var(--shadow-header-bar);
  transition: transform var(--t-med) ease, box-shadow var(--t-med) ease;
}

.site-header.is-scrolled {
  box-shadow: 0 1px 0 var(--line), var(--shadow-lift);
}

.site-header.is-hidden {
  transform: translateY(-100%);
}

.site-header__bar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}

.wordmark {
  flex: none;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: .3em;
  color: var(--ink);
}

.wordmark__n {
  color: var(--logo-red);
}

/* Search opens from its icon as a floating field under the bar, right-aligned with the content. */
.header-search {
  position: absolute;
  top: calc(100% + 8px);
  right: var(--gutter);
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(600px, calc(100% - 2 * var(--gutter)));
  height: 56px;
  padding: 0 8px 0 20px;
  border-radius: var(--r-pill);
  background: var(--surface);
  box-shadow: var(--shadow-hero);
  color: var(--muted);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px);
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease, box-shadow var(--t-fast) ease, visibility 0s linear var(--t-fast);
}

.site-header.is-searching .header-search {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

.header-search:focus-within {
  box-shadow: var(--shadow-hero), inset 0 0 0 1.5px var(--teal-ring);
}

.header-search input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
  font-size: var(--text-md);
  outline: none;
}

.header-search input::placeholder {
  color: var(--muted);
}

.header-search__submit {
  flex: none;
  height: 40px;
  padding: 0 18px;
}

.site-header__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Search and account as silver round icons; the cart keeps its teal button with the count. */
.site-header__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--r-pill);
  color: var(--body-strong);
}

.site-header__icon[aria-expanded="true"] {
  color: var(--teal-strong);
  box-shadow: inset 0 0 0 1.5px var(--teal-ring);
}

.cart-button {
  gap: 8px;
  height: 44px;
  padding: 0 7px 0 14px;
  font-variant-numeric: tabular-nums;
}

.cart-button__count {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  height: 26px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--on-dark);
  color: var(--teal-strong);
  font-size: var(--text-sm);
  font-weight: 800;
}

.site-header__menu,
.site-header__start {
  display: none;
}

.site-header__back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  font-size: var(--text-base);
  font-weight: 600;
}

/* Category row */
.nav-item__link {
  position: relative;
  padding-block: 8px;
  line-height: 1.55;
}

.nav-promo {
  color: var(--promo);
}

/* Kategori button after the logo, and its panel under the whole bar: every category in a grid on the
   left, the store's best seller on the right. */
.site-header__bar .nav-item--cats {
  display: flex;
  flex: none;
  align-items: center;
  margin-left: 8px;
  margin-right: -12px;
}

/* The worlds and Promo beside the Kategori button. Promo is the one highlight: the sale colour and
   a sticker with the real deepest discount, like the badges on the cards. */
.bar-links {
  display: flex;
  align-items: center;
  gap: 2px;
  min-width: 0;
}

.bar-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 12px;
  border-radius: var(--r-pill);
  color: var(--body-strong);
  font-size: var(--text-base);
  font-weight: 600;
  white-space: nowrap;
  transition: background var(--t-fast) ease, color var(--t-fast) ease;
}

.bar-links a:hover {
  background: var(--surface-soft);
  color: var(--ink);
}

.bar-links a[aria-current="page"] {
  background: var(--mint-soft);
  color: var(--teal-strong);
}

.bar-links .bar-links__promo {
  margin-left: 6px;
  padding-right: 6px;
  background: var(--promo-tint);
  color: var(--promo);
  font-weight: 700;
}

.bar-links .bar-links__promo:hover {
  background: var(--tile-rose-2);
  color: var(--promo);
}

.bar-links__off {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 8px;
  overflow: hidden;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, var(--logo-red), var(--promo));
  color: var(--on-dark);
  font-size: var(--text-sm);
  font-weight: 800;
  letter-spacing: var(--tracking-price);
}

.bar-links__off::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 30%, color-mix(in srgb, var(--surface) 55%, transparent) 50%, transparent 70%);
  translate: -120% 0;
  animation: off-glint 3.2s var(--ease-out) 1s infinite;
}

@media (prefers-reduced-motion: reduce) {
  .bar-links__off::after {
    display: none;
  }
}
.nav-cats {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 44px;
  padding: 0 18px 0 14px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: var(--on-dark);
  font-size: var(--text-base);
  font-weight: 700;
  transition: background var(--t-fast) ease;
}

.nav-item--cats.is-open .nav-cats {
  background: var(--teal-strong);
}

.mega {
  position: absolute;
  top: calc(100% + 6px);
  right: var(--gutter);
  left: var(--gutter);
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  max-height: calc(100vh - 140px);
  padding: 22px 24px 24px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-hero);
  font-weight: 400;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity var(--t-fast) ease, transform var(--t-fast) ease, visibility 0s linear var(--t-fast);
}

/* Lets the pointer cross the gap between the row and the panel. */
.mega::before {
  content: "";
  position: absolute;
  top: -10px;
  right: 0;
  left: 0;
  height: 10px;
}

.nav-item--cats.is-open > .mega {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition-delay: 0s;
}

/* Every category: photo (or initial on the pastels in turn), name and count. */
.mega__cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 4px 8px;
}

.mega__cat {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px;
  border-radius: var(--r-md);
  color: var(--ink);
  transition: background var(--t-fast) ease;
}

.mega__cat:hover,
.mega__cat[aria-current] {
  background: var(--surface-soft);
  color: var(--ink);
}

.mega__cat-media {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--tile-bg, var(--surface-soft));
  color: var(--tile-fg, var(--faint));
  box-shadow: inset 0 0 0 1px var(--line);
}

.mega__cats > li:nth-child(4n + 1) .mega__cat-media { --tile-bg: var(--tile-blue-1); --tile-fg: var(--tile-blue-ink); }
.mega__cats > li:nth-child(4n + 2) .mega__cat-media { --tile-bg: var(--tile-lilac-1); --tile-fg: var(--tile-lilac-ink); }
.mega__cats > li:nth-child(4n + 3) .mega__cat-media { --tile-bg: var(--tile-rose-1); --tile-fg: var(--tile-rose-ink); }
.mega__cats > li:nth-child(4n) .mega__cat-media { --tile-bg: var(--tile-mint-1); --tile-fg: var(--tile-mint-ink); }

.mega__cat-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease-out);
}

.mega__cat:hover .mega__cat-media img {
  transform: scale(1.06);
}

.mega__cat-media .type-tile__initial {
  font-size: var(--text-xl);
}

.mega__cat-name {
  display: flex;
  flex-direction: column;
  min-width: 0;
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
}

.mega__cat-name span {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 500;
}

.mega__head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin: 0 8px 12px;
}

.mega__head .icon {
  display: inline;
  vertical-align: -1px;
}

.mega__title {
  color: var(--ink);
  font-size: var(--text-xl);
  font-weight: 800;
  letter-spacing: var(--tracking-price);
}

.mega__head .link-teal {
  font-size: var(--text-meta);
}

.mega__label {
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.mega__pick {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-self: start;
  padding: 14px;
  border-radius: var(--r-thumb);
  background: var(--surface-soft);
}

.mega__pick-media {
  position: relative;
  aspect-ratio: 1;
  margin: 4px 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--surface);
}

.mega__pick-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s var(--ease-out);
}

.mega__pick:hover .mega__pick-media img {
  transform: scale(1.03);
}

.mega__pick-name {
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: var(--text-meta);
  font-weight: 600;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.mega__pick .price {
  font-size: var(--text-md);
}

@media (prefers-reduced-motion: reduce) {
  .mega,
  .mega__cat-media img,
  .mega__pick-media img {
    transition: none;
  }
}

/* A category's initial until it has a photo (Kategori panel and Beranda), in the tile's pastel ink. */
.type-tile__initial {
  color: var(--tile-fg, var(--faint));
  opacity: .7;
  font-size: 32px;
  font-weight: 800;
  letter-spacing: var(--tracking-title);
}

/* Drawer (hamburger, below 981px): every category, the shortcuts, tracking and chat */
.drawer {
  width: min(320px, 86vw);
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 16px 20px;
  border: 0;
  background: var(--surface);
  box-shadow: var(--shadow-lift);
}

.drawer::backdrop {
  background: var(--scrim);
}

.drawer__head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.drawer__nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: var(--text-lg);
  font-weight: 700;
}

.drawer__nav a {
  display: block;
  padding: 10px 0;
}

.drawer__nav a[aria-current] {
  color: var(--teal);
}

.drawer__nav .nav-promo {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.drawer__label {
  margin-top: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.drawer__cats {
  display: flex;
  flex-direction: column;
  margin: 0 0 8px;
  font-size: var(--text-base);
  font-weight: 500;
}

.drawer__nav .drawer__cats a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 8px 0;
  color: var(--body-strong);
}

.drawer__cats span {
  color: var(--faint);
  font-size: var(--text-sm);
}

.drawer__aside {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: var(--text-base);
  font-weight: 600;
}

.drawer__aside a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
}

/* Breadcrumbs */
.breadcrumbs ol {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 20px 0 12px;
  color: var(--muted);
  font-size: var(--text-meta);
}

.breadcrumbs li + li::before {
  content: "/";
  margin-right: 8px;
}

.breadcrumbs a {
  color: var(--muted);
}

.breadcrumbs li {
  display: flex;
  flex: none;
}

/* Long product names stop at one line in the breadcrumb. */
.breadcrumbs li:last-child {
  flex: 0 1 auto;
  min-width: 0;
}

.breadcrumbs [aria-current] {
  overflow: hidden;
  color: var(--ink);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Footer: white, a hairline above (the client wants no dark sections) */
/* The footer sits on the page canvas (the light grey of the beranda, as on the Main board), set off
   by a hairline inside the content width. */
.site-footer {
  margin-top: var(--section-gap);
  padding-bottom: 28px;
  color: var(--body);
  font-size: var(--text-base);
}

.site-footer__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 32px 56px;
  padding-block: 40px;
  border-top: 1px solid var(--line);
}

.site-footer__brand {
  flex: 1 1 260px;
}

.site-footer .wordmark {
  font-size: var(--text-lg);
}

.site-footer__brand p {
  max-width: 24em;
  margin-top: 14px;
}

.site-footer__chat {
  margin-top: 18px;
}

.site-footer__label {
  margin-top: 18px;
  color: var(--muted);
  font-size: var(--text-sm);
  font-weight: 700;
}

.site-footer__marketplaces {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.site-footer h2 {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: var(--text-base);
  font-weight: 700;
  letter-spacing: 0;
}

.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 140px;
}

.site-footer__col a {
  color: var(--body);
  transition: color var(--t-fast) ease;
}

.site-footer__col a:hover {
  color: var(--teal);
}

.site-footer__methods {
  flex: 0 1 380px;
}

.site-footer__methods h2 {
  margin-bottom: 12px;
}

.site-footer__methods h2 ~ h2 {
  margin-top: 22px;
}

/* Equal cells with a hairline: logos 72px wide, text labels as wide as they need. */
.pay-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pay-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 36px;
  padding: 0 8px;
  border-radius: var(--r-sm);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  color: var(--ink);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
}

.pay-logo--text {
  width: auto;
  min-width: 72px;
  padding: 0 12px;
}

.pay-logo img {
  width: auto;
  max-width: 100%;
  height: 18px;
  object-fit: contain;
}

.site-footer__bottom {
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--text-meta);
  text-align: center;
}

/* Cart count on an icon (product page top bar on phones). */
.count-badge {
  position: absolute;
  top: 6px;
  left: calc(50% + 4px);
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--promo);
  color: var(--on-dark);
  font-size: var(--text-2xs);
  font-weight: 700;
}

/* Floating chat: the silver button (btn-soft) with the WhatsApp mark; a round icon on phones. */
.chat-fab {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: var(--z-fab);
  gap: 8px;
  height: 46px;
  padding: 0 18px 0 14px;
  box-shadow: var(--shadow-soft), var(--shadow-lift);
}

.chat-fab .icon {
  color: var(--teal);
}

/* Variant dialog */
.variant-dialog {
  width: calc(100% - 32px);
  max-width: 480px; /* board: 440px of content plus 20px padding */
  max-height: 86vh;
  padding: 20px;
  border: 0;
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-lift);
  color: var(--ink);
}

.variant-dialog::backdrop {
  background: var(--scrim);
}

.variant-dialog__grip {
  display: none;
}

.variant-dialog__head {
  display: flex;
  justify-content: flex-end;
  height: 0;
}

.variant-dialog__close {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin: -10px -10px 0 0;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.variant-product + .variant-product {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.variant-product__head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 32px;
}

.variant-product__head img {
  flex: none;
  width: 76px;
  height: 76px;
  border-radius: var(--r-thumb);
  object-fit: cover;
  box-shadow: 0 0 0 1px var(--line);
}

.variant-product__name {
  font-size: var(--text-base);
  font-weight: 600;
  line-height: 1.3;
}

.variant-product__price {
  margin-top: 2px;
  font-size: var(--text-lg);
  font-weight: 800;
}

.variant-product__label {
  margin-top: 16px;
  font-size: var(--text-base);
  font-weight: 700;
}

.variant-product__options {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.variant-product__options .option-chip {
  min-height: 36px;
  padding: 0 12px;
  border-width: 1px;
}

.variant-product__options .option-chip--color {
  padding-left: 8px;
}

.variant-product__options .option-chip__swatch {
  width: 18px;
  height: 18px;
}

.variant-product__warning {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--r-md);
  background: var(--warn-bg);
  color: var(--warn-ink);
  font-size: var(--text-sm);
}

.variant-dialog__status {
  color: var(--muted);
  font-size: var(--text-base);
}

.variant-dialog [data-variant-submit] {
  margin-top: 20px;
}

.variant-dialog__note {
  margin-top: 10px;
  color: var(--muted);
  font-size: var(--text-sm);
  text-align: center;
}

/* Toast */
.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: var(--z-toast);
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100% - 24px);
  padding: 12px 20px 12px 12px;
  border-radius: var(--r-pill);
  font-size: var(--text-base);
  font-weight: 600;
  transform: translateX(-50%);
}

.toast__icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
}

.toast.is-error .toast__icon {
  display: none;
}

/* Empty state */
.empty-state {
  padding: 32px;
  border-radius: var(--r-lg);
  text-align: center;
}

.empty-state__title {
  max-width: 20em;
  margin: 0 auto;
  font-size: var(--text-xl);
  letter-spacing: var(--tracking-price);
}

.empty-state p {
  max-width: 30em;
  margin: 8px auto 0;
  color: var(--body);
}

.empty-state__actions,
.empty-state > .btn {
  margin-top: 20px;
}

.empty-state__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

/* Review summary and rating bars (home and product page) */
.review-summary {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border-radius: var(--r-card);
}

.review-summary__score {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--muted);
  font-size: var(--text-base);
  font-weight: 600;
}

.review-summary__score strong {
  color: var(--ink);
  font-size: 46px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.05em;
}

.review-summary__stars {
  margin-top: 6px;
  color: var(--star);
  font-size: var(--text-md);
  letter-spacing: 3px;
}

.review-summary__note {
  margin-top: 6px;
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.45;
}

.rating-bars {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 16px;
}

.rating-bars li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: var(--text-sm);
}

.rating-bars li > span:first-child {
  width: 26px;
}

.rating-bars li > span:last-child {
  width: 34px;
  text-align: right;
}

.rating-bars__track {
  flex: 1;
  height: 6px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--track);
}

.rating-bars__track span {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--star);
}

/* FAQ and accordions */
.faq-item {
  overflow: hidden;
  border-radius: var(--r-header);
}

.faq-item summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 64px;
  padding: 0 22px;
  font-size: var(--text-md);
  font-weight: 600;
  line-height: normal;
  list-style: none;
  cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item__sign {
  display: grid;
  place-items: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--tab-track);
  font-size: var(--text-lg);
  font-weight: 500;
}

.faq-item__sign::before {
  content: "+";
}

.faq-item[open] .faq-item__sign::before,
[aria-expanded="true"] > .faq-item__sign::before {
  content: "−";
}

.faq-item p {
  max-width: 38em;
  padding: 0 22px 20px;
  color: var(--body);
}

/* Horizontal scroll rows */
.scroll-row {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.scroll-row::-webkit-scrollbar {
  display: none;
}

.scroll-row > * {
  scroll-snap-align: start;
}

/* Responsive */
@media (max-width: 980px) {
  .site-header__bar .nav-item--cats,
  .bar-links {
    display: none;
  }

  .site-footer__brand,
  .site-footer__methods {
    flex: 1 1 100%;
  }

  .site-header__menu {
    display: inline-flex;
  }

  .site-header__start {
    display: flex;
    align-items: center;
    gap: 6px;
  }

  .site-header__bar {
    gap: 14px;
    height: 64px;
  }

}

@media (max-width: 767px) {
  .topbar {
    font-size: var(--text-sm);
    font-weight: 600;
    text-align: center;
  }

  .topbar__inner {
    flex-wrap: nowrap;
    justify-content: center;
    height: 34px;
    min-height: 0;
    padding-block: 0;
  }

  .topbar__message {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .topbar__extras {
    display: none;
  }

  /* Phones: menu (opens the category drawer) and search on the left, the logo in the middle,
     account and cart on the right. */
  .site-header__bar {
    height: 58px;
  }

  .site-header__bar--shop {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
  }

  .site-header__bar--shop .site-header__start {
    grid-column: 1;
    justify-self: start;
  }

  .site-header__bar--shop .wordmark {
    grid-column: 2;
  }

  .site-header__bar--shop .site-header__actions {
    grid-column: 3;
    justify-self: end;
    gap: 6px;
  }

  .site-header .wordmark {
    font-size: 17px;
    letter-spacing: .28em;
  }

  .site-header__menu,
  .site-header__icon {
    width: 40px;
    height: 40px;
  }

  .cart-button {
    gap: 6px;
    height: 40px;
    padding: 0 5px 0 11px;
  }

  .cart-button__count {
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    font-size: var(--text-xs);
  }

  /* The search field floats under the bar across the screen; 16px text so iOS does not zoom. */
  .header-search {
    left: var(--gutter);
    width: auto;
    height: 50px;
    padding: 0 6px 0 16px;
  }

  .header-search input {
    font-size: var(--text-lg);
  }

  .header-search__submit {
    height: 38px;
    padding: 0 14px;
  }

  .is-product-page .topbar,
  .is-product-page .site-header {
    display: none;
  }

  .product-grid {
    gap: 8px;
  }

  .product-card__media {
    border-radius: var(--r-header);
  }

  .product-card__tag {
    left: 6px;
    bottom: 6px;
    height: 22px;
    padding: 0 8px;
    font-size: var(--text-xs);
  }

  .product-card__tag:not(.is-fit):not(.is-keep) {
    display: none;
  }

  .product-card .swatches,
  .product-card__fit {
    display: none;
  }

  .product-card__body {
    padding: 8px 0 0;
  }

  .product-card__name {
    height: 2.7em;
    font-size: var(--text-meta);
    font-weight: 500;
  }

  .product-card__foot {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 4px;
    padding-top: 4px;
  }

  .product-card__price {
    display: contents;
  }

  .product-card .price {
    grid-column: 1 / -1;
  }

  .product-card .price {
    font-size: var(--text-md);
  }

  .product-card .price__was {
    font-size: var(--text-xs);
    font-weight: 400;
  }

  .product-card__meta {
    font-size: var(--text-xs);
  }

  .product-card__add {
    width: 36px;
    height: 36px;
  }

  .site-footer {
    padding-bottom: calc(24px + env(safe-area-inset-bottom));
    font-size: var(--text-sm);
  }

  .site-footer__grid {
    gap: 20px;
    padding-block: 24px;
  }

  .site-footer__brand p {
    margin-top: 8px;
  }

  .site-footer__shop {
    display: none;
  }

  .site-footer .wordmark {
    font-size: var(--text-md);
    letter-spacing: .28em;
  }

  .site-footer h2 {
    font-size: var(--text-meta);
  }

  .site-footer__methods h2 {
    margin-bottom: 8px;
  }

  .site-footer__methods h2 ~ h2 {
    margin-top: 14px;
  }

  .pay-logo {
    width: 64px;
    height: 32px;
    padding: 0 6px;
    font-size: var(--text-xs);
  }

  .pay-logo--text {
    width: auto;
  }

  .pay-logo img {
    height: 16px;
  }

  .site-footer__bottom {
    padding-top: 16px;
    font-size: var(--text-sm);
  }

  .chat-fab {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom));
    width: 50px;
    height: 50px;
    padding: 0;
    border-radius: 50%;
  }

  .chat-fab__label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .chat-fab .icon {
    width: 22px;
    height: 22px;
  }

  /* Product and cart pages have their own bottom bar. */
  .is-product-page .chat-fab,
  .woocommerce-cart .chat-fab {
    display: none;
  }

  .variant-dialog {
    width: 100%;
    max-width: 480px;
    margin: auto auto 0;
    padding: 8px 16px calc(16px + env(safe-area-inset-bottom));
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    animation: sheet-up .28s var(--ease-out) both;
  }

  .variant-dialog__grip {
    display: block;
    width: 40px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 4px;
    background: var(--grip);
  }

  .variant-dialog__close {
    margin-top: 2px;
  }

  .variant-product__head img {
    width: 72px;
    height: 72px;
  }

  .variant-product__options .option-chip {
    min-height: 40px;
  }

  .variant-dialog [data-variant-submit] {
    height: 50px;
    font-size: var(--text-md);
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: calc(76px + env(safe-area-inset-bottom));
    max-width: none;
    padding: 10px 14px 10px 10px;
    border-radius: var(--r-header);
    font-size: var(--text-meta);
    transform: none;
  }

  .is-product-page .toast {
    bottom: calc(96px + env(safe-area-inset-bottom));
  }

  .toast__icon {
    width: 28px;
    height: 28px;
  }

  .faq-item summary {
    min-height: 52px;
    padding: 0 14px;
    font-size: var(--text-base);
  }

  .faq-item p {
    padding: 0 14px 16px;
    font-size: var(--text-base);
  }
}

@keyframes sheet-up {
  from { transform: translateY(100%); }
  to { transform: none; }
}
