/* Polokey header and footer. Loaded after store.css; the header and footer rules here win.

   The header is two white rows. Row one stays on top of the page: the
   brand, a wide search with a category choice inside it, then the
   account and "Request a product". Row two is a line of plain links that
   scrolls away with the page. One size for navigation, no uppercase. The
   logo's eye blinks when it is pointed at or focused ("polok" is Bangla
   for the blink of an eye). */

:root {
  /* Height of the sticky row (row one), 1024 px and up. */
  --header-h: 73px;
  --hd-line: #E3E7EE;
  --hd-soft-line: #EDF0F4;
  --hd-well: #F2F3F7;
  --hd-slate: #4A5468;
  --hd-quiet: #5F6A7D;
  --hd-nav: #3D4759;
}

/* ===== Notice strip: only on the test copy, or before ordering opens ===== */

.topbar {
  background: var(--hd-well);
  color: var(--hd-slate);
  border-bottom: 1px solid var(--hd-line);
  font-size: 13px;
  line-height: 1.4;
}

.topbar .wrap {
  min-height: 40px;
  padding-block: 0;
  gap: 0 24px;
}

.topbar p {
  gap: 10px;
  padding-block: 8px;
}

.topbar-chip {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 11px;
  line-height: 1.3;
}

.topbar a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(18, 24, 38, 0.3);
  text-underline-offset: 4px;
}

.topbar a:hover {
  color: var(--link);
  text-decoration-color: currentColor;
}

/* The test copy of the store stays loud on purpose. */
.topbar--test {
  background: #FDE68A;
  color: #121826;
  border-bottom-color: #E8C64E;
}

.topbar--test .topbar-chip {
  background: #121826;
  color: #FDE68A;
}

.topbar--test a,
.topbar--test a:hover {
  color: #121826;
}

/* ===== Row one: brand, search, account ===== */

.header-shell {
  background: #fff;
  border-bottom: 1px solid var(--hd-line);
  box-shadow: none;
}

/* Once the page has moved under the sticky row, a soft shadow sets the
   row apart from what passes below it (search.js adds "is-stuck"). */
@media (min-width: 1024px) {
  .header-shell.is-stuck {
    box-shadow: 0 12px 24px -20px rgba(18, 24, 38, 0.5);
  }
}

@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .header-shell {
    transition: box-shadow 160ms ease;
  }
}

.site-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "brand search nav";
  align-items: center;
  gap: 10px clamp(16px, 2.6vw, 40px);
  min-height: 72px;
  padding: 12px var(--pad);
}

.site-header > .brand {
  grid-area: brand;
}

.site-header > .search {
  grid-area: search;
  order: 0;
  justify-self: center;
  width: 100%;
  max-width: 660px;
}

.site-header > .header-nav {
  grid-area: nav;
  margin-left: 0;
}

/* Below 1024 px the search takes its own full-width row under the brand
   and the actions, so it is never squeezed. */
@media (max-width: 1023px) {
  .site-header {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-areas:
      "brand nav"
      "search search";
    min-height: 0;
    padding-block: 10px 12px;
  }

  .site-header > .header-nav {
    justify-self: end;
  }

  .site-header > .search {
    max-width: none;
  }
}

/* Brand */

.brand {
  gap: 11px;
  border-radius: 14px;
}

.site-header .brand-logo {
  height: 38px;
}

.brand:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

/* Search: one soft grey field holding the category choice, a hairline,
   the words and the search button. It turns white with a blue ring while
   any part of it has focus. */

.search {
  position: relative;
  height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--hd-well);
  box-shadow: inset 0 0 0 1px #E4E7ED;
}

.search:hover {
  background: #ECEEF3;
  border-color: transparent;
}

.search:focus-within {
  background: #fff;
  border-color: transparent;
  outline: 0;
  box-shadow: inset 0 0 0 1.5px var(--accent), 0 0 0 4px rgba(41, 111, 217, 0.14);
}

.search-scope {
  position: relative;
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
}

/* The hairline between the category choice and the words. */
.search-scope::after {
  content: "";
  position: absolute;
  right: 0;
  top: 12px;
  bottom: 12px;
  width: 1px;
  background: #D3D8E1;
}

.search-scope select {
  -webkit-appearance: none;
  appearance: none;
  width: 178px;
  height: 100%;
  margin: 0;
  padding: 0 36px 0 18px;
  border: 0;
  border-radius: 12px 0 0 12px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.search-scope select:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -5px;
}

.search-scope svg {
  position: absolute;
  right: 16px;
  top: 50%;
  margin-top: -6px;
  color: var(--hd-slate);
  pointer-events: none;
}

.search input {
  height: 44px;
  padding: 0 6px 0 16px;
  border-radius: 0;
  font-size: 15px;
  text-overflow: ellipsis;
}

.search input::placeholder {
  color: var(--hd-quiet);
}

.search button {
  position: static;
  width: 50px;
  height: 44px;
  margin: 0;
  border-radius: 0 12px 12px 0;
  background: transparent;
  color: var(--ink);
}

.search button:hover {
  background: transparent;
  color: var(--link);
}

.search button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -6px;
}

/* On phones the box is for the words; categories are one row below. */
@media (max-width: 599px) {
  .search-scope {
    display: none;
  }
}

.suggest {
  top: calc(100% + 8px);
  left: 0;
  right: 0;
}

/* Currency: the flag and code of the currency prices are shown in. It
   opens a short menu. Taka is the real price; picking USD or EUR adds an
   estimate beside it. */

.currency {
  position: relative;
}

.currency summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 10px 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
}

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

.currency summary:hover,
.currency[open] summary {
  background: var(--hd-well);
}

.currency summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.currency-caret {
  color: var(--hd-slate);
}

.currency[open] .currency-caret {
  transform: rotate(180deg);
}

.flag {
  flex: none;
  display: block;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(18, 24, 38, 0.14);
}

/* Flags kept as files are 4:3; the drawn ones are 22 by 16. */
img.flag {
  width: 22px;
  height: 16px;
  object-fit: cover;
}

.currency-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 40;
  width: 304px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(18, 24, 38, 0.07), 0 28px 56px -24px rgba(18, 24, 38, 0.42);
}

.currency-title {
  margin: 4px 10px 6px;
  color: var(--hd-quiet);
  font-size: 13px;
  font-weight: 600;
}

.currency-panel form {
  display: grid;
  gap: 2px;
  margin: 0;
  /* Fourteen currencies are taller than a laptop screen leaves room for. */
  max-height: min(52vh, 460px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.currency-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  margin: 0;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: calc(14px * var(--fs-text, 1));
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

.currency-option:hover {
  background: var(--hd-well);
}

.currency-option[aria-current="true"] {
  background: #EEF3FC;
  color: var(--link);
}

.currency-option:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

/* Taka alone, before any other currency has a rate: a line, not a button. */
.currency-option--only,
.currency-option--only:hover {
  background: transparent;
  cursor: default;
}

.currency-code {
  min-width: 34px;
  font-weight: 700;
}

.currency-name {
  flex: 1;
  color: var(--hd-slate);
}

.currency-option[aria-current="true"] .currency-name {
  color: inherit;
}

.currency-check {
  flex: none;
}

.currency-note {
  margin: 8px 10px 4px;
  padding-top: 10px;
  border-top: 1px solid var(--hd-soft-line);
  color: var(--hd-slate);
  font-size: 13px;
  line-height: 1.45;
}

@media (prefers-reduced-motion: no-preference) {
  .currency[open] .currency-panel {
    animation: cats-open 160ms ease-out;
  }

  .currency-caret {
    transition: transform 160ms ease;
  }
}

/* Account and "Request a product" */

.header-nav {
  gap: 2px;
}

.header-link {
  min-height: 40px;
  gap: 8px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
}

.header-link svg {
  color: var(--ink);
}

.header-link:hover {
  background: var(--hd-well);
  color: var(--ink);
}

.header-link[aria-current="page"] {
  background: transparent;
  color: var(--link);
}

.header-link[aria-current="page"] svg {
  color: var(--link);
}

.header-cta {
  display: inline-flex;
  height: 40px;
  margin-left: 10px;
  gap: 8px;
  padding: 0 16px 0 12px;
  border-radius: 10px;
  background: #E8F0FD;
  color: var(--link);
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 600;
  box-shadow: none;
}

.header-cta svg {
  width: 18px;
  height: 18px;
  padding: 0;
  border-radius: 0;
  background: none;
}

.header-cta:hover {
  background: #DBE7FB;
  color: var(--link-hover);
}

.header-cta[aria-current="page"] {
  background: #D3E2FA;
  color: var(--link-hover);
  box-shadow: none;
}

.header-link:focus-visible,
.header-cta:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Between 1024 and 1239 px the button shortens to "Request" and the
   category choice narrows, so the search keeps room for words. */
@media (min-width: 1024px) and (max-width: 1239px) {
  .header-nav .header-more {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .search-scope select {
    width: 152px;
    padding-left: 16px;
  }
}

/* Phones and small tablets: each action is an icon tile with a short
   caption under it, so every one (Request included) stays visible. */
/* Phones: one calm line. The wordmark, then the currency (flag and code)
   and the account, drawn without boxes, and "Request", the one tinted
   button, on the pages that have no dock of shortcuts (the dock carries
   it otherwise; see the dock's rules below). Under 390 px the currency
   keeps only its flag, and under 360 px "Request" keeps only its plus;
   each keeps its name for screen readers. The currency menu spans the
   screen, hung from the header. */
@media (max-width: 767px) {
  .site-header {
    position: relative;
    gap: 8px 10px;
    padding-block: 8px 10px;
  }

  /* One white block up to the row of links, with no line across it. */
  .header-shell {
    border-bottom: 0;
  }

  .site-header .brand-logo {
    height: 34px;
  }

  .header-nav {
    gap: 6px;
  }

  .currency {
    position: static;
  }

  .currency summary,
  .header-link,
  .header-cta {
    position: relative;
    height: 36px;
    min-height: 0;
    margin: 0;
    border-radius: 10px;
    font-size: 13.5px;
    line-height: 1;
  }

  /* Drawn 36 px high; the area that takes the tap is 44. */
  .currency summary::after,
  .header-link::after,
  .header-cta::after {
    content: "";
    position: absolute;
    inset: -4px -3px;
  }

  /* No boxes up here: the flag and the person stand on the white of the
     header, and only the control in use is tinted. */
  .currency summary {
    gap: 6px;
    padding: 0 8px;
    background: none;
    box-shadow: none;
  }

  .currency[open] summary {
    background: #E8F0FD;
  }

  .currency-caret {
    width: 10px;
    height: 10px;
    margin-left: -2px;
    color: var(--hd-quiet);
  }

  .currency-panel {
    top: calc(100% + 6px);
    left: var(--pad);
    right: var(--pad);
    width: auto;
  }

  .header-link {
    width: 36px;
    padding: 0;
    justify-content: center;
    background: none;
    box-shadow: none;
  }

  .header-link:hover {
    background: var(--hd-well);
  }

  .header-link[aria-current="page"] {
    background: #E8F0FD;
  }

  /* The search box: a soft well, no line round it until it is in use. */
  .search:not(:focus-within) {
    box-shadow: none;
  }

  .header-cta {
    gap: 5px;
    padding: 0 11px 0 8px;
  }

  .header-cta svg {
    width: 16px;
    height: 16px;
  }

  .header-link span,
  .header-nav .header-more {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 389px) {
  .currency summary {
    padding: 0 6px;
    justify-content: center;
  }

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

@media (max-width: 359px) {
  .header-cta {
    width: 36px;
    padding: 0;
    justify-content: center;
  }

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

/* ===== Row two: plain links, then "All categories" ===== */

.cats {
  position: relative;
  /* Under the sticky row (20), over the page. */
  z-index: 15;
  border-top: 0;
  border-bottom: 1px solid var(--hd-line);
  background: #fff;
}

.cats-inner {
  position: relative;
  gap: 0;
  min-height: 48px;
}

/* The links: sentence case, one size, a blue mark under the current one. */
.cats .cats-quick {
  flex: 0 1 auto;
  /* The first link's text lines up with the brand above it. */
  margin-left: -14px;
}

.cats-quick a {
  min-height: 48px;
  padding: 0 14px;
  color: var(--hd-nav);
  font-size: calc(14.5px * var(--fs-text, 1));
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.cats-quick a::after {
  left: 14px;
  right: 14px;
  height: 2px;
  border-radius: 2px 2px 0 0;
}

.cats-quick a:hover {
  color: var(--ink);
}

.cats-quick a:hover::after {
  background: transparent;
}

.cats-quick a[aria-current="page"] {
  color: var(--link);
  font-weight: 600;
}

.cats-quick a[aria-current="page"]::after {
  background: var(--accent);
}

.cats-quick a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -6px;
  border-radius: 10px;
}

/* Each screen gets one "Track order": early in the row on phones, where
   the row is long, and beside Support on desktops. */
@media (max-width: 1023px) {
  .cats-quick .cats-wide {
    display: none;
  }
}

@media (min-width: 1024px) {
  .cats-quick .cats-narrow {
    display: none;
  }
}

/* Desktops: one calm line. Home, All products, four categories (five
   from 1240 px), Track order and Support; the rest are in "All
   categories". Should the names ever be too long to fit, the row scrolls
   sideways as it does on phones (search.js marks it "is-clipped" and the
   cut edge fades). */
@media (min-width: 1024px) and (max-width: 1239px) {
  .cats-quick .cats-off-md {
    display: none;
  }
}

@media (min-width: 1240px) {
  .cats-quick .cats-off-lg {
    display: none;
  }
}

/* The narrowest desktops: a little less air between the links, so the
   longest category name still fits when it is the one being browsed. */
@media (min-width: 1024px) and (max-width: 1099px) {
  .cats .cats-quick {
    margin-left: -11px;
  }

  .cats-quick a,
  .cats-all summary {
    padding: 0 11px;
  }

  .cats-quick a::after {
    left: 11px;
    right: 11px;
  }
}

@media (min-width: 1024px) {
  .cats-quick,
  .cats-quick.is-scrolled {
    -webkit-mask-image: none;
    mask-image: none;
  }

  .cats-quick::after {
    content: none;
  }

  .cats-quick.is-clipped {
    -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
  }

  .cats-quick.is-clipped.is-scrolled {
    -webkit-mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
    mask-image: linear-gradient(to right, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  }

  .cats-quick.is-clipped::after {
    content: "";
    flex: none;
    width: 40px;
  }
}

/* "All categories": a link like the others, opening the full list. */
.cats-all {
  position: static;
  flex: none;
}

.cats-all summary {
  min-height: 48px;
  margin: 0;
  gap: 6px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  color: var(--hd-nav);
  font-size: calc(14.5px * var(--fs-text, 1));
  font-weight: 500;
}

.cats-all summary:hover {
  background: transparent;
  color: var(--ink);
}

.cats-all[open] summary {
  background: transparent;
  color: var(--link);
}

.cats-all summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -6px;
}

.cats-tile {
  display: none;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: inset 0 0 0 1px var(--hd-line);
  color: var(--ink);
  font-style: normal;
}

.cats-all[open] .cats-tile {
  background: #E8F0FD;
  box-shadow: inset 0 0 0 1px #BCD3F7;
  color: var(--link);
}

.cats-caret {
  margin-left: 0;
  color: currentColor;
  opacity: 1;
}

/* Every category with the number of products that can be bought. It
   hangs from the row, lined up with the page's right edge. */
.cats-panel {
  top: calc(100% + 6px);
  left: auto;
  right: var(--pad);
  width: min(760px, calc(100vw - 2 * var(--pad)));
  padding: 10px;
  border: 0;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(18, 24, 38, 0.07), 0 28px 56px -24px rgba(18, 24, 38, 0.42);
}

.cats-panel ul {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px 6px;
}

.cats-panel a {
  min-height: 44px;
  gap: 12px;
  padding: 0 12px;
  border-radius: 10px;
  color: var(--ink);
  font-size: calc(14px * var(--fs-text, 1));
  font-weight: 500;
  line-height: 1.3;
}

.cats-panel a:hover {
  background: var(--hd-well);
  color: var(--ink);
}

.cats-panel a[aria-current="page"] {
  background: #EEF3FC;
  color: var(--link);
  font-weight: 600;
}

.cats-panel a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.cats-count {
  min-width: 0;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--hd-quiet);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.cats-panel a[aria-current="page"] .cats-count {
  color: var(--link);
}

.cats-panel-foot {
  margin: 8px 2px 0;
  padding: 2px 10px 0;
  border-top: 1px solid var(--hd-soft-line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 8px;
  font-size: 13.5px;
  color: var(--hd-slate);
}

.cats-panel .cats-panel-foot a {
  display: inline-flex;
  min-height: 44px;
  padding: 0;
  border-radius: 0;
  background: none;
  color: var(--link);
  font-size: 13.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.cats-panel .cats-panel-foot a:hover {
  color: var(--link-hover);
}

/* A tall list scrolls inside itself instead of running off the screen. */
@media (min-width: 1024px) {
  .cats-panel {
    max-height: calc(100vh - var(--header-h) - 72px);
    overflow-y: auto;
  }
}

@keyframes cats-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .cats-all[open] .cats-panel {
    animation: cats-open 160ms ease-out;
  }

  .cats-caret {
    transition: transform 160ms ease;
  }
}

/* Below 1024 px the links scroll sideways (every category is in the
   row), and "All categories" is a square button pinned at the end. */
@media (max-width: 1023px) {
  .cats-inner {
    gap: 6px;
  }

  .cats .cats-quick {
    flex: 1 1 auto;
    margin-left: -10px;
  }

  .cats-quick a {
    padding: 0 10px;
    font-size: calc(14px * var(--fs-text, 1));
  }

  .cats-quick a::after {
    left: 10px;
    right: 10px;
  }

  .cats-all summary {
    width: 44px;
    min-height: 44px;
    padding: 0;
    justify-content: center;
    border-radius: 12px;
  }

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

  .cats-tile {
    display: grid;
  }

  .cats-caret {
    display: none;
  }

  .cats-panel {
    left: var(--pad);
    right: var(--pad);
    width: auto;
  }

  .cats-panel ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* On phones the square button is a soft well, like the search box above
   it, until it is open. */
@media (max-width: 767px) {
  .cats-all:not([open]) .cats-tile {
    background: var(--hd-well);
    box-shadow: none;
  }
}

/* ===== Footer =====
   Dark and short, in the dock's ink. The brand with the store's pages
   elsewhere beside it, one line on what the store is, then help and the
   policies side by side in one card, and the legal lines. On a wide
   screen the card stands to the right of the rest. */

.site-footer {
  margin-top: clamp(16px, 3vw, 32px);
  border-radius: 26px 26px 0 0;
  background: linear-gradient(180deg, #121B31 0%, #0D1424 100%);
  color: #C6CEDF;
}

.footer-inner {
  display: grid;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px var(--pad) 22px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.footer-top .brand {
  min-height: 44px;
}

.footer-top .brand-logo {
  display: block;
  width: auto;
  height: 32px;
}

/* The slogan under the logo, in white. */
.footer-slogan {
  margin: 0;
}

.footer-slogan img {
  display: block;
  width: min(100%, 250px);
  height: auto;
}

/* The store's pages elsewhere: white tiles. Each network's mark stands
   alone on its tile, in its own colours, with room round it. */
.footer-follow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 8px;
}

.footer-follow a {
  position: relative;
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 9px;
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

/* Drawn 40 px high; the area that takes the tap is 44. */
.footer-follow a::after {
  content: "";
  position: absolute;
  inset: -2px;
}

.footer-follow a span {
  padding: 0 3px;
}

.footer-follow img {
  display: block;
  width: 22px;
  height: 22px;
}

.footer-follow a:hover {
  box-shadow: 0 0 0 3px rgba(143, 187, 255, 0.5);
}

.footer-about {
  margin: 10px 0 0;
  max-width: 34rem;
  font-size: 13.5px;
  line-height: 1.5;
  color: #C6CEDF;
}

/* Messages (WhatsApp, email), when the store has them. */
.footer-reach {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-reach a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 13.5px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}

.footer-reach a:hover {
  background: rgba(255, 255, 255, 0.14);
}

.footer-hours {
  margin: 10px 0 0;
  font-size: 13px;
  color: #93A0B8;
}

/* Help and the policies, side by side in one card. */
.footer-links {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  column-gap: 16px;
  margin-top: 16px;
  padding: 14px 14px 8px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.footer-col h2 {
  margin: 0 0 2px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
  color: #8FBBFF;
}

.footer-col ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-col a {
  display: flex;
  align-items: center;
  min-height: 36px;
  color: #EEF2FA;
  font-size: calc(14.5px * var(--fs-text, 1));
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.footer-col a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-footer a:focus-visible {
  outline: 2px solid #8FBBFF;
  outline-offset: 2px;
  border-radius: 6px;
}

.footer-follow a:focus-visible {
  border-radius: 12px;
}

/* How to pay: named only when the store's settings name the methods. */
.footer-pay {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  margin-top: 16px;
}

.footer-pay-label {
  font-size: 12.5px;
  font-weight: 600;
  color: #93A0B8;
}

.footer-pay ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-pay li {
  padding: 6px 12px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  font-weight: 600;
  color: #fff;
}

.footer-legal {
  margin-top: 16px;
  font-size: 11.5px;
  line-height: 1.5;
  color: #93A0B8;
}

.footer-legal p {
  margin: 0;
}

/* Wide screens: the card to the right, the rest to the left. */
@media (min-width: 860px) {
  .site-footer {
    border-radius: 30px 30px 0 0;
  }

  .footer-inner {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
    column-gap: clamp(40px, 8vw, 120px);
    align-items: start;
    padding-block: 36px 26px;
  }

  .footer-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .footer-top .brand-logo {
    height: 36px;
  }

  .footer-follow {
    order: 2;
  }

  .footer-about {
    margin-top: 14px;
    font-size: calc(14px * var(--fs-text, 1));
  }

  .footer-links {
    margin-top: 0;
    padding: 18px 20px 12px;
  }

  .footer-pay,
  .footer-legal {
    grid-column: 1 / -1;
  }

  .footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 2px 24px;
    margin-top: 24px;
    font-size: 12px;
  }
}

/* ===== Notice bar: the store's notice board above the header =====
   Written in the admin under Settings › Notice bar; with nothing written,
   there is no bar. The belt holds the notices twice and moves by one copy,
   so it loops without a gap; each copy is at least as wide as the screen,
   so a short notice crosses the whole bar before it comes round again. */

.ticker {
  display: flex;
  align-items: stretch;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  line-height: 1.3;
}

/* "Notice" or "Offer", standing still at the left end. */
.ticker-label {
  flex: none;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 20px 0 12px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  clip-path: polygon(0 0, 100% 0, calc(100% - 9px) 100%, 0 100%);
}

.ticker-label svg {
  flex: none;
}

.ticker--offer .ticker-label {
  background: #FBBF24;
  color: var(--ink);
}

.ticker-window {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent);
}

.ticker-belt {
  display: flex;
  width: max-content;
}

.ticker-track {
  display: flex;
  flex: none;
  align-items: center;
  min-width: 100vw;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ticker-track li {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding-inline: 12px 16px;
  white-space: nowrap;
}

.ticker-track li::before {
  content: "";
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7DB0FF;
}

.ticker a {
  color: #fff;
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.4);
  text-underline-offset: 3px;
}

.ticker a:hover {
  text-decoration-color: currentColor;
}

.ticker a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
  border-radius: 3px;
}

.ticker-pause {
  flex: none;
  display: grid;
  place-items: center;
  width: 40px;
  padding: 0;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.16);
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ticker-pause[hidden],
.ticker-pause .ticker-icon-play,
.ticker-pause[aria-pressed="true"] .ticker-icon-pause {
  display: none;
}

.ticker-pause[aria-pressed="true"] .ticker-icon-play {
  display: block;
}

.ticker-pause:hover {
  background: rgba(255, 255, 255, 0.1);
}

.ticker-pause:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -5px;
  border-radius: 8px;
}

@media (prefers-reduced-motion: no-preference) {
  .ticker-belt {
    animation: ticker-run var(--ticker-time, 40s) linear infinite;
    will-change: transform;
  }

  /* It stops for the keyboard and with the button... */
  .ticker-window:focus-within .ticker-belt,
  .ticker.is-paused .ticker-belt {
    animation-play-state: paused;
  }
}

/* ...and under a mouse pointer (not after a tap on a touch screen, where
   the hover would stick). */
@media (prefers-reduced-motion: no-preference) and (hover: hover) {
  .ticker-window:hover .ticker-belt {
    animation-play-state: paused;
  }
}

@keyframes ticker-run {
  to {
    transform: translateX(-50%);
  }
}

/* Less motion: the line stands still and can be swiped; one copy only. */
@media (prefers-reduced-motion: reduce) {
  .ticker-window {
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-mask-image: none;
    mask-image: none;
  }

  .ticker-window::-webkit-scrollbar {
    display: none;
  }

  .ticker-track {
    min-width: 0;
  }

  .ticker-track[aria-hidden="true"] {
    display: none;
  }
}

/* ===== Phones: a floating dock of shortcuts =====
   A dark pill in the brand's ink that floats above the bottom edge of the
   screen, so it reads as the store's own piece and not as part of the
   browser. Four quiet tabs and, raised in the middle, Search in a blue
   disc: the one thing on the dock that is filled. The page being browsed
   is lit: white label, blue icon, a soft pill behind it. */

.tabbar {
  display: none;
}

/* Not on a phone held sideways (or any screen this short): the header and
   the dock together would leave too little of the page. */
@media (max-width: 767px) and (min-height: 500px) {
  .tabbar {
    position: fixed;
    right: max(12px, env(safe-area-inset-right, 0px));
    bottom: calc(10px + env(safe-area-inset-bottom, 0px));
    left: max(12px, env(safe-area-inset-left, 0px));
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: end;
    padding: 6px;
    border-radius: 24px;
    background: linear-gradient(180deg, #1D2742 0%, #121826 100%);
    /* A hairline of light all round, so the dock keeps its edge over dark
       parts of the page too; then the shadows it floats on. */
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 0 1px rgba(255, 255, 255, 0.07),
      0 18px 36px -16px rgba(18, 24, 38, 0.85),
      0 3px 8px rgba(18, 24, 38, 0.28);
  }

  .tabbar a {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    min-height: 52px;
    padding: 6px 2px 5px;
    border-radius: 18px;
    color: #AEB8CC;
    font-size: 10.5px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
  }

  .tabbar a > svg {
    width: 22px;
    height: 22px;
    stroke-width: 1.8;
  }

  /* Where the visitor is. */
  .tabbar a[aria-current="page"] {
    background: rgba(255, 255, 255, 0.09);
    color: #fff;
    font-weight: 600;
  }

  .tabbar a[aria-current="page"] > svg {
    color: #8FBBFF;
  }

  .tabbar a:active {
    background: rgba(255, 255, 255, 0.13);
    color: #fff;
  }

  .tabbar a:focus-visible {
    outline: 2px solid #8FBBFF;
    outline-offset: -2px;
  }

  /* Search, raised out of the dock in a disc. The ring is the dock's own
     colour, so the disc looks set into it. */
  .tabbar .tabbar-main,
  .tabbar .tabbar-main:active,
  .tabbar .tabbar-main[aria-current="page"] {
    background: none;
    color: #E3E8F2;
  }

  .tabbar-disc {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin-top: -28px;
    border-radius: 50%;
    background: linear-gradient(145deg, #4F92F4 0%, #2261CC 100%);
    color: #fff;
    box-shadow:
      0 0 0 5px #1B2440,
      0 14px 22px -10px rgba(41, 111, 217, 0.95),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  .tabbar-disc svg {
    width: 24px;
    height: 24px;
  }

  .tabbar-main:active .tabbar-disc {
    transform: scale(0.94);
  }

  .tabbar-main[aria-current="page"] .tabbar-disc {
    box-shadow:
      0 0 0 5px #1B2440,
      0 0 0 7px rgba(143, 187, 255, 0.55),
      0 14px 22px -10px rgba(41, 111, 217, 0.95),
      inset 0 1px 0 rgba(255, 255, 255, 0.35);
  }

  /* With the dock on the screen ("has-dock" is on every page that
     carries it), the top of the page drops what the dock already
     offers: "Request" beside the brand, and Home and Track order in the
     row of links. Without the dock (checkout, a phone held sideways)
     they all stay where they were. */
  .has-dock .header-cta,
  .has-dock .cats-quick .cats-docked {
    display: none;
  }

  /* One search on a phone: the dock's. The box at the top is put away
     until "Search" is tapped (tabbar.js then marks the page
     "is-searching") and comes back out of the way once it is left empty.
     On the search page itself ("on-search") it is always there, which is
     also where the dock's link goes when the script has not run. */
  .has-dock:not(.is-searching):not(.on-search) .site-header > .search {
    display: none;
  }

  .has-dock:not(.is-searching):not(.on-search) .site-header {
    row-gap: 0;
  }

  /* The page ends above the dock... */
  /* (Any later sibling, not the next one: the dock's script tag sits
     between the two.) */
  .tabbar ~ .site-footer {
    padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px));
  }

  /* ...and whatever the browser scrolls to (a field being typed in, a
     link followed down the page) stops above it too, not under it. */
  html {
    scroll-padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 767px) and (min-height: 500px) and (prefers-reduced-motion: no-preference) {
  .tabbar a,
  .tabbar-disc {
    transition: background-color 0.15s ease, color 0.15s ease, transform 0.12s ease;
  }
}

/* With the page reaching to the screen's edges (viewport-fit=cover), keep
   it clear of a phone's rounded corners and notch when turned sideways. */
body {
  padding-right: env(safe-area-inset-right, 0px);
  padding-left: env(safe-area-inset-left, 0px);
}

/* Safari on a phone zooms the page into a text field whose type is under
   16px, and leaves it zoomed: on phones the search field is that size. */
@media (max-width: 600px) {
  .search input,
  .search-scope select {
    font-size: 16px;
  }
}
