/* Back to top button */
.back-to-top {
  position: fixed; z-index: 5; right: 24px; bottom: 24px;
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 0 18px 0 14px; border: 0; border-radius: 23px; cursor: pointer;
  background: #283729; color: #fff; font: inherit; font-size: 12px; font-weight: 500; letter-spacing: .04em;
  box-shadow: 0 6px 20px #20282026;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity 250ms ease, transform 250ms ease, visibility 0s linear 250ms, background-color 150ms ease;
}
.back-to-top svg { width: 18px; height: 18px; }
.back-to-top.is-visible { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.back-to-top:hover { background: #1d281e; }
.back-to-top:focus-visible { outline: 2px solid #283729; outline-offset: 3px; }
body.gate-open .back-to-top { display: none; }
@media (max-width: 900px) {
  /* Sit above the bottom navigation bar; icon only to save space. */
  .back-to-top { right: 14px; bottom: calc(96px + env(safe-area-inset-bottom)); width: 46px; padding: 0; justify-content: center; }
  .back-to-top span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
}
@media (prefers-reduced-motion: reduce) { .back-to-top { transition: opacity 150ms ease, visibility 0s; transform: none; } }

/* Brand filter chip (set from the menu). */
.category-row .brand-chip {
  margin-left: 0; display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid #283729; border-radius: 16px; padding: 6px 12px; min-height: 34px;
  background: #283729; color: #fff; text-decoration: none; font-size: 11px; cursor: pointer;
}
.category-row .brand-chip b { font-weight: 600; }
.category-row .brand-chip span { font-size: 10px; opacity: .8; }
.category-row .brand-chip:hover { background: #1d281e; }

/* Menu: product counts beside catalogue links. */
.range-leaf .range-count { margin-left: auto; color: #8a9180; font-size: .875rem; }
.range-leaf-new { font-weight: 600; }

/* Thin soft border around each product card (grid and side-scrolling rows). */
.card {
  border: 1px solid #e4e6dd; border-radius: 6px; overflow: hidden;
  background: #fdfcfa; transition: border-color 200ms ease, box-shadow 200ms ease;
}
.card:hover { border-color: #d2d7c8; box-shadow: 0 4px 16px #2028200d; }
.card .card-image { border-radius: 0; }
.card .card-info { padding: 16px 16px 14px; }
@media (max-width: 600px) {
  .card .card-info { padding: 12px 12px 12px; }
}

/* "ESSENTIAL SPOILS" is longer than the old name: keep the phone header on one line. */
@media (max-width: 600px) {
  header { flex-wrap: nowrap; gap: 10px; }
  header .wordmark { font-size: 15px; letter-spacing: 2.6px; white-space: nowrap; }
  header .wordmark span { letter-spacing: 1.6px; }
  header .bag { flex-shrink: 0; white-space: nowrap; }
}
@media (max-width: 360px) {
  header .wordmark { font-size: 13.5px; letter-spacing: 2px; }
}
