/*
 * Arot: shared mechanics first, then the look (after Enterprise).
 */

/* ---------- Base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 70px;
}

body {
  margin: 0;
  background: var(--color-background);
  color: var(--color-foreground);
  font-family: var(--font-body);
  font-size: 14px;
  line-height: 1.6;
  overflow-x: clip;
}

:lang(bn) body {
  font-size: 15px;
  line-height: 1.75;
}

body.is-locked {
  overflow: hidden;
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: inherit;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  font-weight: var(--font-heading-weight);
  line-height: 1.2;
}

:lang(bn) h1,
:lang(bn) h2,
:lang(bn) h3 {
  line-height: 1.45;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link:focus {
  position: fixed !important;
  top: 8px;
  left: 8px;
  z-index: 100;
  width: auto;
  height: auto;
  clip: auto;
  padding: 10px 14px;
  background: var(--color-background);
}

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

.icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

[hidden] {
  display: none !important;
}

.page-width {
  width: 100%;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: 0 16px;
}

.page-width--narrow {
  max-width: 760px;
}

@media (min-width: 750px) {
  .page-width {
    padding: 0 40px;
  }
}

.section {
  padding: 48px 0;
}

/* ---------- Price, quantity, pagination (core snippets) ---------- */

.price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 2px 8px;
}

.price--large {
  font-size: 18px;
}

.price__compare {
  font-size: 0.85em;
  opacity: 0.5;
}

.price--on-sale .price__sale {
  color: var(--color-sale);
}

.price__savings {
  flex-basis: 100%;
  color: var(--color-sale);
  font-size: 13px;
}

.badge {
  display: inline-block;
  padding: 2px 8px;
  background: var(--color-sale);
  color: #fff;
  font-size: 12px;
}

.quantity {
  display: inline-flex;
  align-items: center;
  height: 46px;
  border: 1px solid rgba(var(--color-foreground-rgb), 0.2);
}

.quantity__button {
  width: 42px;
  height: 100%;
  border: 0;
  background: none;
  cursor: pointer;
}

.quantity__button .icon {
  width: 14px;
  height: 14px;
  margin: 0 auto;
}

.quantity__input {
  width: 36px;
  border: 0;
  background: none;
  text-align: center;
  -moz-appearance: textfield;
}

.quantity__input::-webkit-inner-spin-button,
.quantity__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 40px 0;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  text-decoration: none;
}

.pagination .pagination__current {
  border-bottom: 2px solid currentColor;
  font-weight: 600;
}

/* ---------- Drawers, sheet ---------- */

.drawer > summary {
  list-style: none;
}

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

.drawer__overlay {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(0, 0, 0, 0.45);
}

.drawer__panel {
  position: fixed;
  top: 0;
  bottom: 0;
  z-index: 41;
  display: flex;
  flex-direction: column;
  width: min(400px, 90vw);
  background: #fff;
  color: #1f1f1f;
  overflow-y: auto;
  animation: drawer-in-left 0.25s ease;
}

.drawer__panel--left {
  left: 0;
}

.drawer__panel--right {
  right: 0;
  animation-name: drawer-in-right;
}

details.drawer:not([open]) .drawer__panel,
details.drawer:not([open]) .drawer__overlay {
  display: none;
}

.is-closing .drawer__panel,
.is-closing .drawer__overlay {
  opacity: 0;
  transition: opacity 0.2s ease;
}

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

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

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 10px 10px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.drawer__title {
  font-family: var(--font-heading);
  font-size: 18px;
}

.drawer__count {
  font-size: 14px;
  opacity: 0.6;
}

.drawer-search {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
}

.drawer-search .icon {
  position: absolute;
  left: 0;
  opacity: 0.5;
}

.drawer-search input {
  width: 100%;
  height: 44px;
  padding: 0 0 0 30px;
  border: 0;
  background: none;
}

.drawer-search input:focus {
  outline: none;
}

.menu-drawer__list,
.menu-drawer__sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

:lang(en) .menu-drawer__link {
  text-transform: uppercase;
}

:lang(bn) .menu-drawer__link {
  font-size: 15px;
  letter-spacing: 0.02em;
}

.menu-drawer__link::-webkit-details-marker {
  display: none;
}

.menu-drawer__link .icon {
  width: 16px;
  height: 16px;
}

.menu-drawer__sublist a {
  display: block;
  padding: 10px 20px 10px 32px;
  text-decoration: none;
}

.menu-drawer__footer {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 16px 20px 24px;
}

.menu-drawer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  text-decoration: none;
}

.menu-drawer__language {
  margin-bottom: 8px;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 40;
}

.cart-drawer .drawer__overlay {
  opacity: 0;
  transition: opacity 0.25s ease;
}

.cart-drawer .drawer__panel {
  width: min(420px, 92vw);
  transform: translateX(100%);
  transition: transform 0.28s ease;
  animation: none;
}

.cart-drawer.is-open .drawer__overlay {
  opacity: 1;
}

.cart-drawer.is-open .drawer__panel {
  transform: none;
}

.cart-drawer__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 0 20px 20px;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 45;
}

.sheet__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}

.sheet__panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 88vh;
  padding: 22px 18px 24px;
  overflow-y: auto;
  background: #fff;
  color: #1f1f1f;
  animation: sheet-in 0.25s ease;
}

@keyframes sheet-in {
  from {
    transform: translateY(100%);
  }
}

.sheet__close {
  position: absolute;
  top: 6px;
  right: 6px;
}

@media (min-width: 750px) {
  .sheet__panel {
    left: 50%;
    right: auto;
    bottom: auto;
    top: 50%;
    width: 480px;
    transform: translate(-50%, -50%);
    animation: none;
  }
}

.quick-buy__head {
  display: flex;
  gap: 14px;
  margin-bottom: 18px;
  padding-right: 32px;
}

.quick-buy__image {
  width: 96px;
  aspect-ratio: var(--card-ratio);
  object-fit: cover;
}

.quick-buy__title {
  margin-bottom: 6px;
  font-family: var(--font-heading);
  font-size: 18px;
  line-height: 1.3;
}

.quick-buy__head .text-link {
  margin-top: 8px;
}

/* ---------- Pages, FAQ, contact ---------- */

.rich-text {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.rich-text--start {
  justify-items: start;
  text-align: left;
}

.rich-text__heading {
  font-size: calc(28px * var(--heading-scale));
}

.page__title {
  margin-bottom: 24px;
  font-size: calc(30px * var(--heading-scale));
}

.page__title--center {
  text-align: center;
}

.contact {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.contact__text {
  text-align: center;
}

.contact__row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(var(--color-foreground-rgb), 0.12);
  text-decoration: none;
}

.trust__icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: rgba(var(--color-foreground-rgb), 0.06);
}

.contact__label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  opacity: 0.6;
}

:lang(en) .contact__label {
  text-transform: uppercase;
}

.search-form {
  position: relative;
  display: flex;
  align-items: center;
}

.search-form .icon {
  position: absolute;
  left: 14px;
  opacity: 0.5;
}

.search-form input {
  width: 100%;
  height: 48px;
  padding: 0 14px 0 44px;
  border: 1px solid rgba(var(--color-foreground-rgb), 0.2);
  background: var(--color-background);
}

.search-form--page {
  max-width: 560px;
  margin: 0 auto 24px;
}

.search__count {
  margin-bottom: 18px;
  text-align: center;
  font-size: 13px;
  opacity: 0.7;
}

.not-found {
  display: grid;
  justify-items: center;
  gap: 16px;
  text-align: center;
}

.not-found .search-form--page {
  width: 100%;
}

.empty {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 48px 0;
  text-align: center;
}

.empty .icon {
  width: 40px;
  height: 40px;
  opacity: 0.4;
}

/* ---------- Cart lines ---------- */

.lines {
  margin: 0;
  padding: 0;
  list-style: none;
}

.line {
  display: flex;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.line__media {
  flex-shrink: 0;
  width: 84px;
  background: #f1f1f1;
}

.line__media img {
  width: 100%;
  aspect-ratio: var(--card-ratio);
  object-fit: cover;
}

.line__details {
  display: grid;
  flex: 1;
  gap: 4px;
  align-content: start;
  min-width: 0;
}

.line__origin {
  font-size: 12px;
  letter-spacing: 0.1em;
  opacity: 0.6;
}

.line__title {
  font-weight: 500;
  text-decoration: none;
}

.line__variant {
  font-size: 13px;
  opacity: 0.7;
}

.line__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
}

.line__bottom .quantity {
  height: 38px;
}

.line__bottom .quantity__button {
  width: 34px;
}

.line__price {
  display: grid;
  justify-items: end;
  font-weight: 500;
}

.line__saved {
  color: var(--color-sale);
  font-size: 12px;
}

.line__remove {
  justify-self: start;
  font-size: 12px;
  opacity: 0.6;
}

.summary {
  display: grid;
  gap: 10px;
  margin-top: auto;
  padding-top: 20px;
}

.summary__row {
  display: flex;
  justify-content: space-between;
  font-size: 16px;
}

.summary__saved {
  color: var(--color-sale);
  font-size: 14px;
}

.summary__note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: #f5f5f5;
  font-size: 14px;
}

.summary form {
  margin: 0;
}

/* ---------- Scroll reveal, reduced motion ---------- */

.has-animations [data-reveal] {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}

.has-animations [data-reveal].is-revealed {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .has-animations [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Arot's look (Enterprise) ---------- */

/*
 * Enterprise's language, measured from its Digital demo: a big-store layout
 * on white with a charcoal header (#2b2f33) and near-black utility bar and
 * footer; DM Sans throughout, bold headings centred over each section; a
 * bright orange (#ff580d) for every action, full round pills; small square
 * tags (orange, magenta #a0175c, green) on products, stock lines with a
 * coloured dot, light grey bands for promises and help, a magenta round
 * badge on promo photos and a bold italic wordmark.
 */

:root {
  --ink: #2a2b2a;
  --grey: #6b6e70;
  --orange: #ff580d;
  --orange-dark: #e24a04;
  --magenta: #a0175c;
  --green: #5c9c1f;
  --band: #f2f2f2;
  --rule: #e4e4e4;
  --charcoal: #2b2f33;
}

body {
  font-size: 15px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

:lang(bn) :is(h1, h2, h3) {
  letter-spacing: 0;
  line-height: 1.35;
}

.section {
  padding: 48px 0;
}

.overline,
.label {
  font-size: 13px;
}

.rte > * + * {
  margin-top: 12px;
}

.rte ul,
.rte ol {
  padding-left: 20px;
}

.rte table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.rte th,
.rte td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--rule);
  text-align: left;
}

.text-link {
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trail {
  margin-bottom: 18px;
  color: var(--grey);
  font-size: 12px;
}

.trail a {
  color: var(--ink);
  text-decoration: none;
}

/* ---------- Orange pills ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 26px;
  border: 2px solid var(--orange);
  border-radius: 28px;
  background: var(--orange);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease;
}

.button:hover {
  border-color: var(--orange-dark);
  background: var(--orange-dark);
}

.button .icon {
  width: 14px;
  height: 14px;
}

.button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.button--full {
  width: 100%;
}

.button--small {
  min-height: 38px;
  padding: 5px 18px;
  font-size: 13px;
}

.button--outline {
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.button--outline:hover {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.button--grey {
  border-color: #c9cbcc;
  background: #c9cbcc;
  color: var(--ink);
}

.button--grey:hover {
  border-color: #fff;
  background: #fff;
}

.button--muted {
  border-color: var(--rule);
  background: var(--rule);
  color: var(--grey);
}

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  list-style: none;
}

.icon-button::-webkit-details-marker {
  display: none;
}

.icon-button .icon {
  width: 22px;
  height: 22px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.4;
}

.tag .icon {
  width: 10px;
  height: 10px;
}

.tag--magenta {
  background: var(--magenta);
}

.tag--green {
  background: var(--green);
}

.spinner {
  display: none;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

.is-busy .spinner,
.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ---------- Headings ---------- */

.head {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-bottom: 24px;
  text-align: center;
}

.head__title {
  font-size: calc(22px * var(--heading-scale));
}

.head__text {
  color: var(--grey);
  font-size: 14px;
}

.head--start {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  justify-items: start;
  text-align: left;
}

.head__link {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 750px) {
  .head__title {
    font-size: calc(26px * var(--heading-scale));
  }
}

/* ---------- Utility bar ---------- */

.utility {
  font-size: 12px;
}

.utility__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
}

.utility__text a {
  color: inherit;
  text-underline-offset: 2px;
}

.utility__links {
  display: none;
}

@media (min-width: 750px) {
  .utility__inner {
    justify-content: space-between;
  }

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

  .utility__links a {
    padding: 0 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    color: inherit;
    font-weight: 700;
    text-decoration: none;
  }

  .utility .language-toggle {
    color: inherit;
    font-weight: 700;
  }
}

/* ---------- Header ---------- */

.header {
  position: sticky;
  top: 0;
  z-index: 20;
}

.header__top {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "menu logo icons"
    "search search search";
  align-items: center;
  gap: 8px 10px;
  padding-top: 8px;
  padding-bottom: 10px;
}

.menu-drawer {
  grid-area: menu;
  margin-left: -8px;
}

.header__logo {
  grid-area: logo;
  min-width: 0;
  text-decoration: none;
}

.header__logo-image {
  width: var(--logo-width);
  max-height: 36px;
  object-fit: contain;
}

.header__shop-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  letter-spacing: -0.01em;
}

:lang(en) .header__shop-name {
  text-transform: uppercase;
}

.searchbar {
  grid-area: search;
  display: flex;
  align-items: center;
  min-width: 0;
  height: 42px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.1);
}

.searchbar__scope {
  flex-shrink: 0;
  max-width: 96px;
  height: 100%;
  padding: 0 26px 0 16px;
  border: 0;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 24px 0 0 24px;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 8px center / 12px;
  color: inherit;
  font-size: 13px;
  appearance: none;
}

.searchbar__scope option {
  color: var(--ink);
}

.searchbar__input {
  flex: 1;
  min-width: 0;
  height: 100%;
  padding: 0 12px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 14px;
}

.searchbar__input::placeholder {
  color: rgba(255, 255, 255, 0.55);
}

.searchbar__input:focus {
  outline: none;
}

.searchbar:focus-within {
  box-shadow: 0 0 0 2px var(--orange);
}

.searchbar__button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 100%;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.searchbar__button .icon {
  width: 18px;
  height: 18px;
}

.header__icons {
  grid-area: icons;
  display: flex;
  justify-content: flex-end;
  margin-right: -8px;
}

.header__cart {
  position: relative;
}

.header__cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--orange);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

.header__cart-count.is-bumped {
  animation: bump 0.4s ease;
}

@keyframes bump {
  50% {
    transform: scale(1.3);
  }
}

.header__nav-row {
  display: none;
}

.language-toggle {
  min-height: 28px;
  padding: 2px 10px;
  border: 0;
  background: none;
  color: inherit;
  font-size: 12px;
  cursor: pointer;
}

@media (min-width: 990px) {
  .header__top {
    grid-template-columns: auto minmax(0, 1fr) auto;
    grid-template-areas: "logo search icons";
    gap: 40px;
    padding-top: 12px;
    padding-bottom: 10px;
  }

  .menu-drawer {
    display: none;
  }

  .searchbar {
    max-width: 620px;
    height: 40px;
  }

  .header__nav-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 8px;
  }

  .header__nav-list {
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
  }

  .header__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 0;
    color: inherit;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    cursor: pointer;
    list-style: none;
  }

  .header__link::-webkit-details-marker {
    display: none;
  }

  .header__link .icon {
    width: 12px;
    height: 12px;
  }

  .header__link:hover,
  .header__link[aria-current] {
    color: var(--orange);
  }

  .header__dropdown {
    position: relative;
  }

  .header__submenu {
    position: absolute;
    top: calc(100% + 10px);
    left: -16px;
    z-index: 5;
    min-width: 220px;
    margin: 0;
    padding: 10px 0;
    list-style: none;
    border-top: 3px solid var(--orange);
    background: #fff;
    color: var(--ink);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
  }

  .header__submenu a {
    display: block;
    padding: 7px 18px;
    font-size: 14px;
    text-decoration: none;
  }

  .header__submenu a:hover {
    color: var(--orange);
  }

  .header__extra {
    display: flex;
    align-items: center;
    gap: 18px;
  }

  .header__extra .header__link {
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
  }

  .help-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 14px;
    border-radius: 28px;
    background: #8d9092;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
  }

  .help-pill .icon {
    width: 14px;
    height: 14px;
  }
}

.drawer__panel {
  background: #fff;
  color: var(--ink);
}

.drawer__header {
  border-bottom-color: var(--rule);
}

.drawer__title {
  font-family: var(--font-heading);
  font-size: 20px;
  font-style: italic;
  font-weight: 700;
}

:lang(en) .drawer__title {
  text-transform: uppercase;
}

.menu-drawer__list,
.menu-drawer__sublist {
  margin: 0;
  padding: 0;
  list-style: none;
}

.menu-drawer__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid var(--rule);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.menu-drawer__link::-webkit-details-marker {
  display: none;
}

.menu-drawer__link .icon {
  width: 14px;
  height: 14px;
}

.menu-drawer__group[open] > .menu-drawer__link .icon {
  transform: rotate(180deg);
}

.menu-drawer__sublist a {
  display: block;
  padding: 9px 20px 9px 32px;
  text-decoration: none;
}

.menu-drawer__footer {
  display: grid;
  justify-items: start;
  gap: 4px;
  margin-top: auto;
  padding: 16px 20px 24px;
  background: var(--band);
}

.menu-drawer__contact {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-weight: 700;
  text-decoration: none;
}

.sheet__panel,
.cart-drawer .drawer__panel {
  background: #fff;
  color: var(--ink);
}

.line {
  border-bottom-color: var(--rule);
}

.summary__note {
  background: var(--band);
}

/* ---------- Promise strip and promo strip ---------- */

.trust {
  font-size: 13px;
}

.trust__list {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 100%;
  margin: 0 auto;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.trust__list::-webkit-scrollbar {
  display: none;
}

.trust__item {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 0;
  scroll-snap-align: start;
}

.trust__item .icon {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.trust__item span {
  display: grid;
}

.trust__item small {
  font-size: 13px;
  opacity: 0.85;
}

@media (min-width: 750px) {
  .trust__list {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    overflow: visible;
  }
}

.promo {
  font-size: 13px;
}

.promo__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px 18px;
  padding-top: 10px;
  padding-bottom: 10px;
  text-align: center;
}

.promo__heading {
  font-size: 17px;
}

.promo__code {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
}

.promo__code > span {
  padding: 4px 12px;
}

.promo__copy {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 12px;
  border: 0;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  background: none;
  color: inherit;
  font-size: 14px;
  cursor: pointer;
}

.promo__copy .icon {
  width: 13px;
  height: 13px;
}

.promo__copy.is-done {
  text-decoration: line-through;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background: var(--charcoal);
  color: #fff;
}

.hero__slides {
  position: relative;
  display: grid;
  overflow: hidden;
}

.hero__slide {
  position: relative;
  grid-area: 1 / 1;
  display: grid;
  min-height: 420px;
  visibility: hidden;
  opacity: 0;
  transition:
    opacity 0.7s ease,
    visibility 0.7s;
}

.hero__slide.is-active {
  visibility: visible;
  opacity: 1;
}

.hero__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.55), rgba(0, 0, 0, 0.05) 70%);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 16px;
  width: 100%;
  padding-top: 48px;
  padding-bottom: 56px;
}

.hero__overline {
  font-size: 13px;
  font-weight: 700;
}

.hero__heading {
  max-width: 10ch;
  font-size: calc(40px * var(--heading-scale));
  line-height: 1.1;
}

.hero__muted {
  display: block;
  color: rgba(255, 255, 255, 0.6);
}

.hero__bars {
  position: absolute;
  left: 0;
  right: 0;
  top: 390px;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.hero__bar {
  width: 28px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.4);
  cursor: pointer;
}

.hero__bar.is-active {
  background: #fff;
}

.hero__finder-wrap {
  position: relative;
  z-index: 2;
  padding-top: 16px;
  padding-bottom: 16px;
  background: var(--band);
}

.finder {
  display: grid;
  gap: 10px;
  padding: 20px;
  background: #fff;
  color: var(--ink);
}

.finder__title {
  font-family: var(--font-heading);
  font-size: 19px;
  font-weight: 700;
  text-align: center;
}

.finder select {
  height: 44px;
  padding: 0 40px 0 18px;
  border: 1px solid #c9cbcc;
  border-radius: 24px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2b2a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 16px center / 14px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
  appearance: none;
}

@media (min-width: 990px) {
  .hero__slide {
    min-height: 520px;
  }

  .hero__content {
    padding-right: 380px;
  }

  .hero__heading {
    font-size: calc(58px * var(--heading-scale));
  }

  .hero__bars {
    top: auto;
    bottom: 24px;
  }

  .hero__finder-wrap {
    position: absolute;
    top: 50%;
    right: 0;
    left: 0;
    padding: 0;
    background: none;
    pointer-events: none;
    translate: 0 -50%;
  }

  .finder {
    width: 300px;
    margin-left: auto;
    pointer-events: auto;
  }
}

/* ---------- Flash sale panel ---------- */

.cpanel {
  position: relative;
  overflow: hidden;
  background: var(--charcoal);
  color: #fff;
}

.cpanel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cpanel__wrap {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  padding-top: 48px;
  padding-bottom: 48px;
}

.cpanel--start .cpanel__wrap {
  justify-items: start;
}

.cpanel__panel {
  display: grid;
  justify-items: center;
  gap: 16px;
  max-width: 420px;
  padding: 32px 28px;
  border-radius: 6px;
  background: rgba(36, 38, 40, 0.92);
  text-align: center;
}

.cpanel--start .cpanel__panel {
  justify-items: start;
  text-align: left;
}

.cpanel__heading {
  color: var(--orange);
  font-size: calc(32px * var(--heading-scale));
}

.cpanel__text {
  font-size: 16px;
}

.countdown {
  display: inline-flex;
  align-items: flex-start;
  gap: 4px;
}

.countdown[hidden],
.countdown [hidden] {
  display: none;
}

.countdown__days:not([hidden]) {
  display: contents;
}

.countdown__part {
  display: grid;
  justify-items: center;
  gap: 6px;
}

.countdown__part strong {
  display: grid;
  place-items: center;
  width: 50px;
  height: 46px;
  border-radius: 4px;
  background: #fff;
  color: var(--orange);
  font-family: var(--font-heading);
  font-size: 24px;
  font-variant-numeric: tabular-nums;
}

.countdown__part small {
  font-size: 11px;
}

.countdown__sep {
  padding-top: 12px;
  font-size: 20px;
  font-weight: 700;
}

@media (min-width: 750px) {
  .cpanel__wrap {
    padding-top: 72px;
    padding-bottom: 72px;
  }

  .cpanel__heading {
    font-size: calc(40px * var(--heading-scale));
  }
}

/* ---------- Circle categories ---------- */

.circles {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 42%;
  gap: 12px;
  margin: 0 -16px;
  padding: 0 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.circles::-webkit-scrollbar {
  display: none;
}

.circles > li {
  scroll-snap-align: start;
}

.circle {
  display: grid;
  justify-items: center;
  gap: 4px;
  text-align: center;
  text-decoration: none;
}

.circle__media {
  position: relative;
  display: block;
  width: 100%;
  margin-bottom: 8px;
}

.circle__image {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.circle:hover .circle__image {
  transform: scale(1.04);
}

.circle__tag {
  position: absolute;
  top: 6%;
  right: 0;
  padding: 1px 8px;
  border-radius: 10px;
  background: #fff;
  color: var(--green);
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.circle__title {
  font-size: 14px;
  font-weight: 700;
}

.circle__link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--grey);
  font-size: 13px;
}

.circle__link .icon {
  width: 13px;
  height: 13px;
  padding: 1px;
  border: 1px solid currentColor;
  border-radius: 50%;
}

@media (min-width: 750px) {
  .circles {
    grid-auto-columns: calc((100% - 60px) / 6);
    margin: 0;
    padding: 0;
  }
}

/* ---------- Promo mosaic ---------- */

.pmosaic {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 12px;
}

.ptile {
  display: grid;
  align-content: start;
  gap: 4px;
  text-decoration: none;
}

.ptile--1,
.ptile--4 {
  grid-column: 1 / -1;
}

.ptile__media {
  position: relative;
  display: block;
  overflow: hidden;
  margin-bottom: 6px;
  background: var(--band);
}

.ptile__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.ptile:hover .ptile__image {
  transform: scale(1.04);
}

.ptile--4 .ptile__image {
  aspect-ratio: 2 / 1;
}

.ptile__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  display: grid;
  place-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--magenta);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.1;
  text-align: center;
}

.ptile__badge strong {
  font-size: 18px;
}

.ptile__heading {
  font-size: 15px;
  font-weight: 700;
}

.ptile__link {
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

@media (min-width: 750px) {
  .pmosaic {
    grid-template-columns: 1.5fr 0.72fr 0.72fr;
    grid-template-rows: auto auto;
    gap: 16px 12px;
  }

  .ptile--1 {
    grid-column: 1;
    grid-row: 1 / 3;
  }

  .ptile--1 .ptile__image {
    aspect-ratio: 1 / 1.02;
  }

  .ptile--2 {
    grid-column: 2;
  }

  .ptile--3 {
    grid-column: 3;
  }

  .ptile--4 {
    grid-column: 2 / 4;
  }

  .ptile--4 .ptile__image {
    aspect-ratio: 2.2 / 1;
  }

  .ptile__badge {
    top: 16px;
    left: 16px;
    width: 78px;
    height: 78px;
    font-size: 10px;
  }

  .ptile--1 .ptile__badge {
    width: 90px;
    height: 90px;
    font-size: 20px;
  }

  .ptile__badge strong {
    font-size: 22px;
  }
}

/* ---------- Rows and cards ---------- */

.rail__track {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 60%;
  gap: 14px;
  margin: 0 -16px;
  padding: 0 16px 4px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0 16px;
  scrollbar-width: none;
  list-style: none;
}

.rail__track::-webkit-scrollbar {
  display: none;
}

.rail__item {
  min-width: 0;
  scroll-snap-align: start;
}

.progress {
  height: 2px;
  margin-top: 22px;
  background: var(--rule);
}

.progress span {
  display: block;
  height: 100%;
  background: var(--ink);
  transition: margin-left 0.1s linear;
}

@media (min-width: 750px) {
  .rail__track {
    grid-auto-columns: calc((100% - 42px) / 4);
    margin: 0;
    padding: 0 0 4px;
    scroll-padding: 0;
  }
}

@media (min-width: 990px) {
  .rail__track {
    grid-auto-columns: calc((100% - 56px) / 5);
  }
}

.carousel--with-card {
  display: grid;
  gap: 20px;
}

.carousel__rail {
  min-width: 0;
}

.side-card {
  display: grid;
  align-content: start;
  background: var(--band);
  text-decoration: none;
}

.side-card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.side-card__body {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.side-card__heading {
  font-size: 20px;
  font-weight: 700;
}

.side-card__text {
  font-size: 14px;
}

.side-card__link {
  margin-top: 10px;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (min-width: 990px) {
  .carousel--with-card {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3.2fr);
    gap: 24px;
  }

  .carousel--with-card .rail__track {
    grid-auto-columns: calc((100% - 42px) / 4);
  }
}

.card {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  height: 100%;
}

.card__media {
  position: relative;
  overflow: hidden;
  background: #fff;
}

.card__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  transition: opacity 0.4s ease;
}

.card__image--second {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
}

@media (hover: hover) {
  .card:hover .card__image--second {
    opacity: 1;
  }
}

.card__tags {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  display: grid;
  justify-items: start;
  gap: 3px;
}

.card__info {
  display: grid;
  align-content: start;
  gap: 4px;
}

.card__vendor {
  color: var(--grey);
  font-size: 12px;
}

.card__title {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1.35;
}

.card__link {
  text-decoration: none;
}

.card__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
}

.card__price {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px solid var(--rule);
}

.card .price {
  gap: 6px;
  font-size: 17px;
  font-weight: 700;
}

.card .price__compare {
  color: var(--grey);
  font-size: 12px;
  font-weight: 400;
}

.card .price__savings,
.card .badge {
  display: none;
}

.card__swatches {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 6px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.swatch {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--swatch, #ccc);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px var(--rule);
}

.card__options {
  color: var(--grey);
  font-size: 12px;
}

.card .stock {
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
  font-size: 12px;
}

.card__action {
  position: relative;
  z-index: 1;
}

.card__form {
  display: contents;
}

/* ---------- Stock line ---------- */

.stock {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
}

.stock__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2e8b3e;
}

.stock--low .stock__dot {
  background: #e98b0c;
}

.stock--out .stock__dot {
  background: #c0392b;
}

/* ---------- Photo banners ---------- */

.btiles {
  display: grid;
  gap: 12px;
}

.btile {
  position: relative;
  display: grid;
  overflow: hidden;
  color: #fff;
  text-decoration: none;
}

.btile__image {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.btile:hover .btile__image {
  transform: scale(1.03);
}

.btile__name {
  position: absolute;
  left: 16px;
  top: 16px;
  font-family: var(--font-heading);
  font-size: 22px;
  font-weight: 700;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.35);
}

.btile--bottom .btile__name {
  top: auto;
  bottom: 16px;
}

@media (min-width: 750px) {
  .btiles {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- Moving names ---------- */

.names {
  overflow: hidden;
  padding: 28px 0;
}

.names__track {
  display: flex;
  width: max-content;
  animation: names 40s linear infinite;
}

.names:hover .names__track {
  animation-play-state: paused;
}

.names__list {
  display: flex;
  align-items: center;
  gap: 64px;
  margin: 0;
  padding: 0 32px;
  list-style: none;
}

.names__list li {
  font-family: var(--font-heading);
  font-size: 24px;
  font-style: italic;
  font-weight: 700;
  white-space: nowrap;
}

.names__list a {
  text-decoration: none;
}

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

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

/* ---------- Comparison table ---------- */

.compare {
  position: relative;
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.compare__table thead th {
  min-width: 120px;
}

.compare__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 13px;
}

.compare__table thead th {
  padding: 0 8px 18px;
  vertical-align: bottom;
}

.compare__table thead th .button {
  width: 100%;
  margin-top: 10px;
}

.compare__product {
  display: grid;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
  text-align: left;
  text-decoration: none;
}

.compare__image {
  width: 100%;
  max-width: 140px;
  aspect-ratio: 1;
  object-fit: cover;
}

.compare__table tbody th,
.compare__table tbody td {
  padding: 14px 8px;
  border-top: 1px solid var(--rule);
  text-align: left;
  vertical-align: top;
}

.compare__table tbody th {
  width: 120px;
  font-weight: 700;
}

.compare__table .price {
  font-size: 13px;
}

.compare__table .price__savings,
.compare__table .badge {
  display: none;
}

/* ---------- Photo with spots and panel ---------- */

.ipanel {
  display: grid;
}

.ipanel__media {
  position: relative;
  min-width: 0;
}

.ipanel__image {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.ipanel__panel {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 14px;
  padding: 28px 24px;
  background: var(--band);
  font-size: 13px;
}

.ipanel__heading {
  font-size: 22px;
}

.spot {
  position: absolute;
  z-index: 1;
  translate: -50% -50%;
}

.spot[open] {
  z-index: 2;
}

.spot__button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.4);
  cursor: pointer;
  list-style: none;
}

.spot__button::-webkit-details-marker {
  display: none;
}

.spot__button .icon {
  width: 14px;
  height: 14px;
  transition: transform 0.25s ease;
}

.spot[open] .spot__button .icon {
  transform: rotate(45deg);
}

.spot__card {
  position: absolute;
  bottom: calc(100% + 12px);
  left: 50%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(240px, 70vw);
  padding: 10px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  translate: -50% 0;
}

.spot__thumb {
  width: 44px;
  height: 44px;
  object-fit: cover;
}

.spot__info {
  display: grid;
  gap: 2px;
  font-size: 13px;
}

.spot__title {
  font-weight: 700;
  text-decoration: none;
}

.spot__card .price {
  font-size: 13px;
}

.spot__card .price__savings,
.spot__card .badge {
  display: none;
}

@media (min-width: 750px) {
  .ipanel {
    grid-template-columns: minmax(0, 1.9fr) minmax(0, 1fr);
  }

  .ipanel__panel {
    padding: 32px;
  }
}

/* ---------- Jump to ---------- */

.jump {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.jump__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.jump.is-folded .jump__pills {
  max-height: 76px;
  overflow: hidden;
}

.jump__pill {
  padding: 4px 16px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  font-size: 12px;
  text-decoration: none;
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.jump__pill:hover {
  background: var(--ink);
  color: #fff;
}

.jump__more {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font-size: 13px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

/* ---------- Departments ---------- */

.depts {
  grid-auto-columns: 72%;
}

.dept {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  background: #262829;
  color: #fff;
}

.dept__media img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.dept__title {
  padding: 8px 14px;
  background: var(--orange);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
}

.dept__list {
  margin: 0;
  padding: 6px 14px;
  list-style: none;
}

.dept__list li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.dept__list a {
  display: block;
  overflow: hidden;
  padding: 7px 0;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}

.dept__list a:hover {
  color: var(--orange);
}

.dept__all {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px 16px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.dept__arrow {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1.5px solid var(--orange);
  border-radius: 50%;
  color: var(--orange);
}

.dept__arrow .icon {
  width: 14px;
  height: 14px;
}

@media (min-width: 750px) {
  .depts {
    grid-auto-columns: calc((100% - 42px) / 4);
  }
}

/* ---------- Help and advice ---------- */

.help {
  max-width: 560px;
  margin: 0 auto;
}

.help__group {
  margin: 28px 0 10px;
  font-size: 18px;
}

.help__group:first-child {
  margin-top: 0;
}

.help__item {
  border-bottom: 1px solid #d6d6d6;
}

.help__group + .help__item {
  border-top: 1px solid #d6d6d6;
}

.help__q {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}

.help__q::-webkit-details-marker {
  display: none;
}

.help__q > span {
  flex: 1;
}

.help__q .icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.help__q .icon--chevron {
  width: 13px;
  height: 13px;
  transition: transform 0.2s ease;
}

.help__item[open] .help__q .icon--chevron {
  transform: rotate(180deg);
}

.help__a {
  padding: 0 0 16px 28px;
  color: var(--grey);
  font-size: 14px;
}

/* ---------- Grid ---------- */

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 750px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px 20px;
  }
}

@media (min-width: 990px) {
  .grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/* ---------- Collection page ---------- */

.collection {
  padding-top: 20px;
}

.collection__header {
  display: grid;
  gap: 8px;
  margin-bottom: 20px;
}

.collection__title {
  font-size: calc(28px * var(--heading-scale));
}

.collection__description {
  max-width: 680px;
  color: var(--grey);
  font-size: 14px;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  margin-bottom: 24px;
  padding: 14px 0;
  border-block: 1px solid var(--rule);
}

.toolbar__links {
  display: flex;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
}

.toolbar__links::-webkit-scrollbar {
  display: none;
}

.toolbar__links a {
  display: inline-block;
  padding: 4px 14px;
  border: 1px solid var(--ink);
  border-radius: 20px;
  font-size: 13px;
  white-space: nowrap;
  text-decoration: none;
}

.toolbar__links [aria-current] {
  border-color: var(--orange);
  background: var(--orange);
  color: #fff;
}

.toolbar__count {
  color: var(--grey);
  font-size: 13px;
}

.toolbar__sort {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font-size: 13px;
  font-weight: 700;
}

.toolbar select {
  height: 34px;
  padding: 0 28px 0 4px;
  border: 0;
  background: transparent
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%232a2b2a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 6px center / 12px;
  color: var(--ink);
  font-size: 13px;
  appearance: none;
}

@media (min-width: 990px) {
  .toolbar__links {
    width: auto;
    flex: 1;
  }

  .collection__title {
    font-size: calc(36px * var(--heading-scale));
  }
}

.grid--collections {
  gap: 24px 12px;
}

.collection-card {
  display: grid;
  background: #262829;
  color: #fff;
  text-decoration: none;
}

.collection-card__media {
  display: block;
  overflow: hidden;
}

.collection-card__image {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
}

.collection-card__title {
  display: block;
  padding: 8px 14px 0;
  font-size: 15px;
  font-weight: 700;
}

.collection-card__count {
  display: block;
  padding: 0 14px 12px;
  opacity: 0.7;
  font-size: 12px;
}

/* ---------- Product page ---------- */

.product {
  padding: 16px 0 48px;
}

.product__grid {
  display: grid;
  gap: 24px;
}

.product__media {
  position: relative;
  min-width: 0;
}

.gallery {
  position: relative;
}

.gallery__track {
  display: flex;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

.gallery__track::-webkit-scrollbar {
  display: none;
}

.gallery__item {
  flex: 0 0 100%;
  scroll-snap-align: start;
}

.gallery__image {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  color: var(--ink);
  cursor: pointer;
  translate: 0 -50%;
}

.gallery__arrow .icon {
  width: 13px;
  height: 13px;
  transform: rotate(-90deg);
}

.gallery__arrow--prev {
  left: 10px;
}

.gallery__arrow--prev .icon {
  transform: rotate(90deg);
}

.gallery__arrow--next {
  right: 10px;
}

.gallery__count {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 2px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 11px;
}

.thumbs {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.thumbs__button {
  display: block;
  width: 100%;
  padding: 0 0 6px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  cursor: pointer;
}

.thumbs__button img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.thumbs__button.is-active {
  border-bottom-color: var(--ink);
}

.product__info {
  min-width: 0;
}

.product__form {
  display: grid;
  gap: 16px;
}

.product__vendor {
  margin-bottom: 4px;
  color: var(--grey);
  font-size: 13px;
}

.product__title {
  font-size: calc(24px * var(--heading-scale));
}

.product__price {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.product__price .price {
  font-size: 22px;
  font-weight: 700;
}

.product__price .price__compare {
  color: var(--grey);
  font-size: 14px;
  font-weight: 400;
}

.product__price .price__savings,
.product__price .badge {
  display: none;
}

.product__description {
  font-size: 14px;
}

.picker {
  display: grid;
  gap: 16px;
}

.picker__group {
  margin: 0;
  padding: 0;
  border: 0;
}

.picker__legend {
  display: flex;
  gap: 4px;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  font-size: 13px;
  font-weight: 700;
}

.picker__value {
  font-weight: 400;
}

.picker__values {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.picker__box {
  display: grid;
  place-items: center;
  min-width: 64px;
  height: 42px;
  padding: 0 16px;
  border: 1px solid #c9cbcc;
  border-radius: 24px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.picker__input:checked + .picker__box {
  border: 2px solid var(--orange);
}

.picker__swatch {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--swatch, #ccc);
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 3px #c9cbcc;
  cursor: pointer;
}

.picker__input:checked + .picker__swatch {
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 4px var(--orange);
}

.picker__input:focus-visible + label {
  outline: 2px solid var(--orange);
  outline-offset: 2px;
}

.is-unavailable {
  opacity: 0.4;
  text-decoration: line-through;
}

.buy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
}

.buy__label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.buy .quantity {
  height: 46px;
  border: 1px solid #c9cbcc;
  border-radius: 24px;
}

.buy__price {
  display: none;
}

.buy [data-buy-now] {
  grid-column: 1 / -1;
  border-color: var(--ink);
  background: transparent;
  color: var(--ink);
}

.buy [data-buy-now]:hover {
  background: var(--ink);
  color: #fff;
}

.buy__error {
  grid-column: 1 / -1;
  color: #c0392b;
  font-size: 13px;
}

.promises {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 14px 16px;
  background: var(--band);
  font-size: 13px;
  list-style: none;
}

.promises li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.promises .icon {
  width: 18px;
  height: 18px;
}

.share {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 700;
}

.share a,
.share__copy {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
}

.share .icon {
  width: 16px;
  height: 16px;
}

.share__copy.is-done {
  color: var(--green);
}

.accordion {
  border-bottom: 1px solid var(--rule);
}

.accordion:first-child {
  border-top: 1px solid var(--rule);
}

.accordion__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 0;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.accordion__title::-webkit-details-marker {
  display: none;
}

.accordion[open] .accordion__title .icon {
  transform: rotate(45deg);
}

.accordion__body {
  padding-bottom: 20px;
  color: var(--grey);
}

@media (min-width: 990px) {
  .product__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 0;
    align-items: start;
  }

  .product__media {
    padding-right: 28px;
    border-right: 1px solid var(--rule);
  }

  .product__info {
    position: sticky;
    top: 130px;
    padding-left: 28px;
  }

  .product__title {
    font-size: calc(28px * var(--heading-scale));
  }
}

/* ---------- Footer ---------- */

.fband {
  font-size: 13px;
}

.fband__list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0 auto;
  padding-top: 16px;
  padding-bottom: 16px;
  list-style: none;
}

.fband__list li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fband__list .icon {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

.fband__list span {
  display: grid;
  line-height: 1.3;
}

.fband__list small {
  font-size: 13px;
}

@media (min-width: 750px) {
  .fband__list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.footer {
  font-size: 14px;
}

.footer a {
  text-decoration: none;
}

.footer__grid {
  display: grid;
  gap: 24px;
}

.footer__intro {
  display: grid;
  align-content: start;
  gap: 14px;
}

.footer__name {
  font-family: var(--font-heading);
  font-size: 22px;
  font-style: italic;
  font-weight: 700;
}

:lang(en) .footer__name {
  text-transform: uppercase;
}

.footer__social {
  display: flex;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__social .icon {
  width: 18px;
  height: 18px;
}

.footer__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.footer__title::-webkit-details-marker {
  display: none;
}

.footer__title .icon {
  width: 13px;
  height: 13px;
}

.footer__menu {
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.footer__menu[open] .footer__title .icon {
  transform: rotate(180deg);
}

.footer__menu ul,
.footer__contact {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0 0 14px;
  list-style: none;
}

.footer__menu ul a:hover,
.footer__contact a:hover {
  color: var(--orange);
}

.footer__touch {
  display: grid;
  align-content: start;
  gap: 8px;
}

.footer__write {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 220px;
  padding: 10px 16px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
}

.footer__write .icon {
  width: 16px;
  height: 16px;
}

.footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 32px;
}

.footer .language-toggle {
  padding: 8px 20px;
  border-radius: 24px;
  background: #fff;
  color: var(--ink);
  font-weight: 700;
}

.footer__payments {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__payments li {
  padding: 3px 8px;
  border-radius: 3px;
  background: #fff;
  color: var(--ink);
  font-size: 10px;
  font-weight: 700;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px 24px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12px;
}

.footer__policies {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
}

@media (min-width: 750px) {
  .footer__grid {
    grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr));
    gap: 40px;
  }

  .footer__menu {
    border: 0;
  }

  .footer__title {
    padding-top: 0;
    pointer-events: none;
  }

  .footer__title .icon {
    display: none;
  }
}

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

/*
 * The header's section is what sticks: the header sits inside it at exactly
 * its height, so making the header itself sticky does nothing.
 */
.section-header {
  position: sticky;
  top: 0;
  z-index: 30;
}

/* Clear over the home photo; solid once the page scrolls. */
.header--overlay.is-scrolled {
  border-bottom-color: rgba(var(--color-foreground-rgb), 0.1);
  background: var(--color-background);
  color: var(--color-foreground);
  transition:
    background 0.2s ease,
    color 0.2s ease;
}

.header--overlay.is-scrolled .header__cart-count {
  background: var(--color-foreground);
  color: var(--color-background);
}
