/* ---------- 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;
  }
}

/* ---------- Base look (from Derma) ---------- */

/*
 * Ceramide's language, measured from its demo: a busy, tidy department
 * store. A white page, a pale pink top line and strips, a deep navy menu
 * bar, buttons and footer, light grey rounded tiles, small square labels,
 * a red sale pill and side tab, teal for stock, round category photos,
 * small round arrows and thin progress lines. Its serif headings become
 * a clean sans here, with small italic lines kept for flavour.
 */

:root {
  --ink: #1d2730;
  --page: #ffffff;
  --tile: #f4f4f2;
  --beige: #f4f4f2;
  --blush: #f9dfdd;
  --navy: #0e2c3c;
  --teal: #2f8a78;
  --panel: #d7e6e3;
  --grey: #6b7177;
  --rule: rgba(0, 0, 0, 0.1);
  --red: #c8392f;
  --violet: #7a61d6;
  --green: #2f8a78;
  --radius: 10px;
  --accent-ink: #1d2730;
}

body {
  background: var(--page);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.6;
}

h1,
h2,
h3 {
  margin: 0;
  color: inherit;
  font-family: var(--font-heading);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

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

.section {
  padding: 36px 0;
}

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

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

@media (min-width: 990px) {
  .title {
    font-size: calc(32px * var(--heading-scale));
  }
}

.head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.head__line {
  margin: 6px 0 0;
  color: var(--grey);
  font-size: 14px;
}

.tag {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 4px;
  background: var(--beige);
  font-size: 12px;
  font-weight: 500;
}

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  font-size: 14px;
  text-decoration: none;
}

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

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

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

.rte a {
  color: inherit;
}

.trail {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  margin-bottom: 18px;
  color: var(--grey);
  font-size: 13px;
}

.trail a {
  color: inherit;
  text-decoration: none;
}

/* ---------- Buttons ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 8px 26px;
  border: 0;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.button:hover {
  background: #333;
}

.button:active {
  transform: scale(0.98);
}

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

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

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

.button--white:hover {
  background: #f1f1f1;
}

.button--soft {
  background: #e6e6e6;
  color: var(--ink);
}

.button--soft:hover {
  background: #dadada;
}

.button--outline {
  box-shadow: inset 0 0 0 1px var(--ink);
  background: transparent;
  color: var(--ink);
}

.icon-button {
  display: inline-flex;
  position: relative;
  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,
.icon-button svg {
  width: 20px;
  height: 20px;
}

.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);
  }
}

.round-arrows {
  display: flex;
  gap: 6px;
}

.round-arrows button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}

.round-arrows .icon {
  width: 10px;
  height: 10px;
}

.round-arrows button:first-child .icon {
  transform: rotate(90deg);
}

.round-arrows button:last-child .icon {
  transform: rotate(-90deg);
}

.round-arrows button:disabled {
  opacity: 0.4;
  cursor: default;
}

/* White chip on a photo: product photo, name, round arrow. */

/* ---------- Top line and header ---------- */

.announce {
  background: #000;
  color: #fff;
}

.announce__text {
  margin: 0;
  padding-top: 7px;
  padding-bottom: 7px;
  font-size: 13px;
  font-weight: 500;
  text-align: center;
}

.announce__text a {
  color: inherit;
}

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

.header {
  border-bottom: 1px solid transparent;
  background: var(--page);
  transition: border-color 0.2s ease;
}

.header.is-scrolled {
  border-bottom-color: var(--rule);
}

.header__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 58px;
}

.header__start {
  display: flex;
  align-items: center;
  margin-left: -8px;
}

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

.header__shop-name {
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
}

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

.navbar,
.header__search,
.header__account,
.header__language {
  display: none;
}

.header__tools {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  margin-right: -8px;
}

.header__cart-count {
  position: absolute;
  top: 2px;
  right: 0;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}

.header__cart-count[hidden] {
  display: none;
}

.header__language .language-toggle {
  padding: 8px 4px;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

@media (min-width: 990px) {
  .header__inner {
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 30px;
    min-height: 62px;
  }

  .header__start {
    display: none;
  }

  .header__shop-name {
    font-size: 28px;
  }

  .navbar {
    display: block;
    justify-self: center;
  }

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

  .navbar__item {
    position: relative;
  }

  .navbar__link {
    display: block;
    padding: 20px 0;
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
    list-style: none;
    cursor: pointer;
  }

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

  .navbar__dropdown .navbar__link::after {
    content: "";
    display: inline-block;
    width: 5px;
    height: 5px;
    margin: 0 0 3px 6px;
    border-right: 1.3px solid currentColor;
    border-bottom: 1.3px solid currentColor;
    transform: rotate(45deg);
  }

  .navbar__link:hover,
  .navbar__link[aria-current],
  .navbar__link.is-current {
    text-decoration: underline;
    text-underline-offset: 6px;
  }

  .navbar__submenu {
    position: absolute;
    top: 100%;
    left: -16px;
    z-index: 6;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    border-radius: var(--radius);
    background: var(--page);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.12);
    list-style: none;
  }

  .navbar__submenu a {
    display: block;
    padding: 8px 12px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 14px;
    text-decoration: none;
  }

  .navbar__submenu a:hover {
    background: var(--beige);
  }

  .header__search,
  .header__account {
    display: inline-flex;
  }

  .header__language {
    display: block;
  }
}

/* Search overlay */
.search-modal > summary {
  list-style: none;
}

.search-modal__panel {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 60;
  padding: 20px 0;
  background: var(--page);
}

.search-modal__form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-modal__input {
  flex: 1;
  min-width: 0;
  height: 50px;
  padding: 0 20px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: var(--page);
  color: var(--ink);
  font-size: 16px;
}

.search-modal__input:focus {
  border-color: var(--ink);
  outline: none;
}

.search-modal__overlay {
  position: fixed;
  inset: 0;
  z-index: 55;
  background: rgba(0, 0, 0, 0.4);
}

/* ---------- Product card ---------- */

.card {
  display: grid;
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto 1fr;
  height: 100%;
  overflow: hidden;
  border-radius: 10px;
  background: var(--tile);
}

.card__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.card__media .placeholder {
  width: 100%;
  height: 100%;
}

.card__badges {
  display: flex;
  position: absolute;
  top: 10px;
  left: 10px;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.card__badge {
  padding: 1px 6px;
  border-radius: 3px;
  background: #999;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}

.card__badge--sale {
  background: var(--red);
}

.card__badge--fast {
  background: var(--violet);
}

.card__badge--new {
  background: var(--green);
}

.card__info {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 12px 14px 16px;
}

.card__type {
  margin: 0;
  color: var(--grey);
  font-size: 12px;
}

.card__title {
  padding-right: 34px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
}

.card__link {
  color: inherit;
  text-decoration: none;
}

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

.card__price .price {
  font-size: 14px;
}

.card .price--on-sale .price__sale,
.product__price .price--on-sale .price__sale {
  color: var(--red);
}

.card__quick {
  display: grid;
  position: absolute;
  right: 12px;
  bottom: 14px;
  z-index: 2;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  cursor: pointer;
}

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

@media (hover: hover) {
  .card:hover .card__image {
    transform: scale(1.04);
  }
}

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

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

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

.product__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 26px;
}

.product__media {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.gallery__track {
  display: flex;
  position: relative;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
  border-radius: var(--radius);
  background: var(--tile);
}

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

.gallery__item {
  flex: 0 0 100%;
  aspect-ratio: 1;
  overflow: hidden;
  scroll-snap-align: start;
}

.gallery__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.thumbs {
  display: flex;
  order: 2;
  gap: 8px;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  list-style: none;
  scrollbar-width: none;
}

.thumbs__item {
  display: block;
  width: 60px;
  height: 60px;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--tile);
  cursor: pointer;
}

.thumbs__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

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

.product__form {
  display: grid;
  justify-items: start;
  gap: 12px;
}

.product__form > * {
  width: 100%;
}

.product__form > .tag {
  width: auto;
}

.product__form > .card__vendor {
  margin-bottom: -8px;
  color: var(--grey);
  font-size: 13px;
}

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

.product__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: auto !important;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--beige);
  font-size: 13px;
}

.product__pill svg {
  width: 14px;
  height: 14px;
}

.product__price .price {
  font-size: 17px;
}

.freebar p {
  margin: 0 0 6px;
  font-size: 13px;
}

.freebar__track {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e6e6e6;
}

.freebar__track span {
  display: block;
  height: 100%;
  background: var(--ink);
}

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

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

.picker__legend {
  display: flex;
  justify-content: space-between;
  width: 100%;
  margin-bottom: 8px;
  padding: 0;
  font-size: 14px;
}

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

.picker__box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 4px 18px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}

.picker__input:checked + .picker__box {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

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

.picker__input:checked + .picker__swatch {
  box-shadow:
    0 0 0 3px #fff,
    0 0 0 5px var(--ink);
}

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

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

.buy {
  display: grid;
  gap: 10px;
}

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

.buy .quantity {
  justify-content: space-between;
  width: 100%;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 999px;
}

.buy__now {
  width: 100%;
}

.buy__error {
  margin: 0;
  color: var(--red);
  font-size: 14px;
}

.buy__error[hidden] {
  display: none;
}

.folds {
  margin-top: 18px;
  border-top: 1px solid var(--rule);
}

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

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

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

.fold__title .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.25s ease;
}

.fold[open] .fold__title .icon {
  transform: rotate(180deg);
}

.fold__body {
  padding: 0 0 16px;
  color: #444;
  font-size: 14px;
}

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

  .product__media {
    grid-template-columns: 60px minmax(0, 1fr);
    align-items: start;
    gap: 14px;
  }

  .product__media--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .thumbs {
    flex-direction: column;
    order: 0;
  }

  .product__info {
    position: sticky;
    top: 90px;
  }

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

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

.footer {
  background: #000;
  color: #fff;
}

.footer__top {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 20px;
}

.footer__heading {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0;
}

.footer__col ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
  text-decoration: none;
}

.footer__col a:hover,
.footer__col a[aria-current] {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer__text {
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.footer__mid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  padding: 30px 0 28px;
  font-size: 13px;
}

.footer__mid p {
  margin: 0;
}

.footer__language .language-toggle {
  padding: 4px 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

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

.footer__payments li {
  padding: 1px 8px;
  border-radius: 3px;
  background: #fff;
  color: #000;
  font-size: 13px;
}

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

.footer__social a {
  color: #fff;
}

.footer__social svg {
  width: 15px;
  height: 15px;
}

@media (min-width: 990px) {
  .footer__top {
    grid-template-columns: 1.4fr repeat(2, minmax(0, 1fr));
    gap: 40px;
  }
}

/* ---------- Buy bar ---------- */

.stickybar {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 26;
  padding: 10px 0 calc(10px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--rule);
  background: #fff;
  transform: translateY(110%);
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.stickybar.is-shown {
  transform: none;
}

.stickybar__inner {
  display: flex;
  align-items: center;
  gap: 14px;
}

.stickybar__photo {
  flex: none;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border-radius: 8px;
  background: var(--tile);
}

.stickybar__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.stickybar__text {
  display: grid;
  flex: 1;
  min-width: 0;
  margin: 0;
  font-size: 14px;
}

.stickybar__title {
  overflow: hidden;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stickybar__price .price {
  font-size: 14px;
}

.stickybar .button--lime {
  background: var(--ink);
  color: #fff;
}

/* ---------- Finishing ---------- */

.drawer .button,
.sheet .button {
  border-radius: 999px;
}

::selection {
  background: var(--blush);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--ink);
  outline-offset: 3px;
}

.price__sale {
  color: inherit;
}

@media (prefers-reduced-motion: reduce) {
  .card__image,
  .steps__slide,
  .stickybar {
    transition: none;
  }
}

/* ---------- Opening slider (base) ---------- */

.hslides {
  display: grid;
  position: relative;
  min-height: min(760px, 100svh);
  overflow: hidden;
  background: var(--sage-pale);
  color: #fff;
}

.hslides__slide {
  display: grid;
  visibility: hidden;
  position: relative;
  grid-area: 1 / 1;
  align-items: end;
  opacity: 0;
  transition:
    opacity 0.8s ease,
    visibility 0.8s;
}

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

.hslides__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.04);
  transition: transform 6s ease;
}

.hslides__slide.is-active .hslides__image {
  transform: none;
}

/* A real shade under the words, deepest where they sit. */
.hslides__slide::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(transparent 35%, rgba(18, 24, 16, 0.62)),
    linear-gradient(rgba(18, 24, 16, 0.35), transparent 22%);
}

.hslides__text {
  display: grid;
  position: relative;
  z-index: 2;
  justify-items: start;
  gap: 14px;
  width: 100%;
  padding-top: 120px;
  padding-bottom: 76px;
}

.hslides__slide--center .hslides__text {
  justify-items: center;
  text-align: center;
}

.hslides__heading {
  max-width: 12em;
  font-size: calc(40px * var(--heading-scale));
  line-height: 1.05;
}

.hslides__heading em {
  color: inherit;
  opacity: 0.88;
}

.hslides__line {
  max-width: 30em;
  margin: 0;
  font-size: 15px;
  opacity: 0.92;
}

.hslides__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.hslides__dots {
  display: flex;
  position: absolute;
  bottom: 30px;
  left: 50%;
  z-index: 3;
  gap: 6px;
  transform: translateX(-50%);
}

.hslides__dot {
  width: 18px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.hslides__dot.is-active {
  width: 34px;
  background: #fff;
}

.hslides__arrow {
  display: none;
}

@media (min-width: 990px) {
  .hslides {
    min-height: min(860px, 100svh);
  }

  .hslides__text {
    padding-bottom: 110px;
  }

  .hslides__slide--right .hslides__text {
    justify-items: end;
    text-align: right;
  }

  .hslides__slide--right .hslides__buttons {
    justify-content: flex-end;
  }

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

  .hslides__arrow {
    display: grid;
    position: absolute;
    top: 50%;
    z-index: 3;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    cursor: pointer;
    transform: translateY(-50%);
  }

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

  .hslides__arrow--prev {
    left: 24px;
  }

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

  .hslides__arrow--next {
    right: 24px;
  }

  .hslides__arrow--next .icon {
    transform: rotate(-90deg);
  }
}

/* ---------- Collection toolbar ---------- */

.toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 24px;
  margin-bottom: 20px;
}

.toolbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-left: auto;
}

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

.toolbar__sort select {
  min-height: 38px;
  padding: 0 28px 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  cursor: pointer;
}

.promo-card {
  display: grid;
  position: relative;
  height: 100%;
  min-height: 280px;
  overflow: hidden;
  border-radius: 10px;
  background: var(--blush);
  color: #fff;
  text-decoration: none;
}

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

.promo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(transparent 40%, rgba(0, 0, 0, 0.6));
}

.promo-card__text {
  display: grid;
  position: relative;
  z-index: 2;
  align-content: end;
  justify-items: start;
  gap: 10px;
  padding: 18px;
}

.promo-card__heading {
  font-family: var(--font-heading);
  font-size: 22px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.promo-card .button {
  background: #fff;
  color: var(--ink);
}

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

/* ---------- Khelaghor's own (Tonies) ---------- */

/*
 * Tonies' language, measured from its shop: warm cream pages, a purple
 * top line, a deep red band of white photo tiles, a deep blue band with
 * round photo buttons, a green FAQ band and a lilac offer band; red pill
 * buttons with a small arrow, square red arrows and bag buttons, white
 * rounded cards with a pale blue tab hanging from the top, arch-topped
 * age cards, and big rounded bold type. Khelaghor adds hand-drawn
 * doodles (stars, squiggles, clouds) around the photos and headings.
 */

:root {
  --ink: #1d1d1b;
  --page: #f4f1ed;
  --cream: #f4f1ed;
  --mist: #ebe5dd;
  --red: #d2091f;
  --red-deep: #ad0010;
  --blue: #262f86;
  --purple: #6c2a8c;
  --lilac: #e6d6ee;
  --green: #0b735a;
  --sky: #cfe8f3;
  --pink: #f9cbd8;
  --yellow: #ffd84d;
  --grey: #6b6863;
  --rule: rgba(29, 29, 27, 0.12);
  --tile: #ffffff;
  --beige: #f4f1ed;
  --radius: 18px;
}

body {
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
}

h1,
h2,
h3 {
  font-weight: 700;
  letter-spacing: 0;
}

.center {
  margin: 26px 0 0;
  text-align: center;
}

.section {
  padding: 40px 0;
}

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

.title {
  margin-bottom: 20px;
  font-size: calc(26px * var(--heading-scale));
  line-height: 1.15;
}

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

.title--light {
  color: #fff;
}

@media (min-width: 990px) {
  .title {
    font-size: calc(34px * var(--heading-scale));
  }
}

.head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.head .title {
  margin-bottom: 0;
}

.head__link {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Doodles ---------- */

.doodle {
  display: block;
  position: absolute;
  z-index: 1;
  width: 48px;
  height: 48px;
  pointer-events: none;
}

.doodle--star {
  color: var(--yellow);
}

.doodle--squiggle {
  color: var(--red);
}

.doodle--sparkle {
  color: #fff;
}

.doodle--cloud {
  color: #fff;
}

.doodle--heart {
  color: var(--pink);
}

.doodle--spiral {
  color: var(--yellow);
}

@media (prefers-reduced-motion: no-preference) {
  .doodle--star,
  .doodle--sparkle {
    animation: khela-wobble 5s ease-in-out infinite;
  }
}

@keyframes khela-wobble {
  0%,
  100% {
    transform: rotate(-8deg) scale(1);
  }

  50% {
    transform: rotate(10deg) scale(1.08);
  }
}

/* ---------- Buttons ---------- */

.button,
.pillbutton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 22px;
  border: 0;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition:
    background 0.2s ease,
    transform 0.2s ease;
}

.pillbutton .icon,
.button .icon {
  width: 11px;
  height: 11px;
  transform: rotate(-90deg);
}

.button:hover,
.pillbutton:hover {
  background: var(--red-deep);
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.pillbutton--white {
  background: #fff;
  color: var(--red);
}

.pillbutton--white:hover {
  background: #fff;
  color: var(--red-deep);
}

.button--outline {
  box-shadow: inset 0 0 0 2px var(--ink);
  background: #fff;
  color: var(--ink);
}

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

.button--small {
  min-height: 38px;
  padding: 6px 16px;
  font-size: 14px;
}

.square-arrow,
.square-button {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 9px;
  background: var(--red);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
}

.square-arrow:hover,
.square-button:hover {
  background: var(--red-deep);
}

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

.square-arrow[data-rail-prev] .icon,
.square-arrow[data-slide-prev] .icon {
  transform: rotate(90deg);
}

.square-button .icon {
  width: 18px;
  height: 18px;
}

.round-button {
  display: inline-grid;
  position: relative;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink);
}

.round-button .icon {
  width: 21px;
  height: 21px;
}

.round-button:hover {
  background: var(--mist);
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.pill {
  display: inline-block;
  padding: 5px 14px;
  border-radius: 999px;
  background: var(--mist);
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.pill:hover,
.pill[aria-current] {
  background: var(--ink);
  color: #fff;
}

.pill--pink {
  background: var(--pink);
}

.chip {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--mist);
  font-size: 13px;
  font-weight: 700;
}

.chip--blue {
  background: var(--sky);
}

.chip--pink {
  background: var(--pink);
}

/* ---------- Top line, header, offer band ---------- */

.topline {
  background: var(--purple);
  color: #fff;
}

.topline__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 36px;
  margin: 0 auto;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

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

.topline__spark {
  position: static;
  flex: none;
  width: 14px;
  height: 14px;
  color: var(--yellow);
}

.header {
  background: var(--cream);
}

.header.is-scrolled {
  box-shadow: 0 6px 18px rgba(29, 29, 27, 0.1);
}

.header__top {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 6px 8px;
  min-height: 60px;
  padding-top: 8px;
  padding-bottom: 10px;
}

.header__menu {
  margin-left: -8px;
}

.header__logo {
  justify-self: start;
  text-decoration: none;
}

.header__shop-name {
  display: inline-flex;
  position: relative;
  align-items: center;
  gap: 6px;
  color: var(--red);
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.header__star {
  position: static;
  width: 26px;
  height: 26px;
  color: var(--red);
}

.header__star path {
  stroke: var(--red);
}

.header__language,
.header__account {
  display: none;
}

.header__language .language-toggle {
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.header__searchbar {
  display: flex;
  grid-column: 1 / -1;
  grid-row: 2;
  align-items: center;
  height: 42px;
  padding: 0 4px 0 14px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
}

.header__searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  outline: none;
}

.header__searchbar button {
  display: grid;
  order: -1;
  place-items: center;
  width: 30px;
  height: 34px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink);
  cursor: pointer;
}

.header__searchbar .icon {
  width: 17px;
  height: 17px;
}

.header__cart-count {
  top: 0;
  right: -2px;
  background: var(--red);
}

.offerband {
  border-top: 1px solid var(--rule);
  border-bottom: 1px solid var(--rule);
  background: var(--cream);
}

.offerband__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding-top: 6px;
  padding-bottom: 6px;
}

.offerband__text {
  margin: 0;
  font-family: var(--font-heading);
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.offerband .pillbutton {
  flex: none;
  min-height: 36px;
  padding: 4px 16px;
  font-size: 14px;
}

@media (min-width: 990px) {
  .header__top {
    grid-template-columns: 0 auto 1fr auto auto auto auto;
    gap: 0 20px;
    min-height: 76px;
    padding-top: 0;
    padding-bottom: 0;
  }

  .header__menu {
    display: none;
  }

  .header__shop-name {
    font-size: 32px;
  }

  .navbar {
    display: block;
    justify-self: center;
  }

  .navbar__list {
    gap: 24px;
  }

  .navbar__item {
    position: relative;
  }

  .navbar__badge {
    position: absolute;
    top: 8px;
    left: 50%;
    z-index: 1;
    padding: 1px 8px;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.5;
    white-space: nowrap;
    transform: translateX(-20%) rotate(-4deg);
  }

  .navbar__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 28px 0;
    font-family: var(--font-heading);
    font-size: 16px;
    font-weight: 600;
  }

  .navbar__dropdown .navbar__link::after {
    display: none;
  }

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

  .navbar__link:hover,
  .navbar__link[aria-current],
  .navbar__link.is-current {
    color: var(--red);
    text-decoration: none;
  }

  .navbar__submenu {
    border-radius: 16px;
  }

  .header__language,
  .header__account {
    display: inline-grid;
  }

  .header__searchbar {
    grid-column: auto;
    grid-row: auto;
    width: 210px;
    height: 40px;
  }

  .offerband__text {
    font-size: 19px;
  }

  .offerband .pillbutton {
    min-height: 40px;
    padding: 6px 20px;
  }
}

/* ---------- Opening slider ---------- */

.hero {
  padding: 22px 0 34px;
  overflow: hidden;
}

.hero__frame {
  display: grid;
  position: relative;
}

.hero__slide {
  display: grid;
  position: relative;
  grid-area: 1 / 1;
  gap: 18px;
  opacity: 0;
  visibility: hidden;
  transition:
    opacity 0.5s ease,
    visibility 0.5s;
}

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

.hero__photo {
  display: block;
  order: -1;
  margin: 8px 8px 0;
  position: relative;
  aspect-ratio: 4 / 3;
  overflow: visible;
  border-radius: 28px;
  background: var(--tint, var(--yellow));
  transform: rotate(2deg);
}

.hero__photo img,
.hero__photo .placeholder {
  position: relative;
  width: 100%;
  height: 100%;
  border: 6px solid #fff;
  border-radius: 28px;
  object-fit: cover;
  transform: translate(-6px, -6px) rotate(-2deg);
  box-shadow: 0 14px 30px rgba(29, 29, 27, 0.16);
}

.hero__sticker {
  display: grid;
  position: absolute;
  top: -14px;
  right: 10px;
  z-index: 2;
  place-items: center;
  width: 92px;
  height: 92px;
  padding: 10px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.05;
  text-align: center;
  transform: rotate(10deg);
  box-shadow: 0 6px 0 var(--red-deep);
}

.hero__text {
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
}

.hero__heading {
  margin: 0;
  font-size: calc(32px * var(--heading-scale));
  line-height: 1.08;
}

.hero__line {
  max-width: 44ch;
  margin: 0;
  color: #45423e;
  font-size: 15px;
}

.hero__doodle--star {
  top: -6px;
  left: -4px;
}

.hero__doodle--squiggle {
  display: none;
}

.hero__doodle--cloud {
  top: 52%;
  right: -6px;
  width: 54px;
  height: 54px;
}

.hero__arrow {
  position: absolute;
  top: 30%;
  z-index: 3;
}

.hero__arrow--prev {
  left: 6px;
}

.hero__arrow--next {
  right: 6px;
}

.hero__dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 18px;
}

.hero__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #c9c2b8;
  cursor: pointer;
  transition:
    width 0.2s ease,
    background 0.2s ease;
}

.hero__dot.is-active {
  width: 26px;
  background: var(--red);
}

@media (min-width: 990px) {
  .hero {
    padding: 40px 0 46px;
  }

  .hero__slide {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 64px;
    padding: 0 64px;
  }

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

  .hero__photo {
    order: 0;
  }

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

  .hero__line {
    font-size: 17px;
  }

  .hero__photo {
    aspect-ratio: 16 / 11;
  }

  .hero__sticker {
    top: -22px;
    right: -18px;
    width: 116px;
    height: 116px;
    font-size: 21px;
  }

  .hero__doodle--star {
    top: 6%;
    left: 40%;
    width: 64px;
    height: 64px;
  }

  .hero__doodle--squiggle {
    display: block;
    bottom: 4%;
    left: 64px;
    width: 120px;
    height: 46px;
  }

  .hero__doodle--cloud {
    top: auto;
    right: auto;
    bottom: -18px;
    left: 47%;
    width: 80px;
    height: 80px;
  }

  .hero__arrow {
    top: 50%;
    transform: translateY(-50%);
  }

  .hero__arrow--prev {
    left: 0;
  }

  .hero__arrow--next {
    right: 0;
  }
}

/* ---------- Notes ---------- */

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

.notes__item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
}

.notes__photo {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 24px 24px 24px 6px;
  background: var(--mist);
  transform: rotate(-3deg);
  box-shadow: 0 6px 14px rgba(29, 29, 27, 0.1);
}

.notes__item:nth-child(2) .notes__photo {
  border-radius: 50%;
  transform: rotate(3deg);
}

.notes__item:nth-child(3) .notes__photo {
  border-radius: 24px 6px 24px 24px;
}

.notes__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.notes__heading {
  margin: 4px 0 6px;
  font-size: 20px;
}

.notes__text {
  margin: 0;
  color: #45423e;
  font-size: 15px;
  line-height: 1.6;
}

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

  .notes__item {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .notes__heading {
    font-size: 22px;
  }
}

/* ---------- Red tile band ---------- */

.tileband {
  position: relative;
  padding: 44px 0 70px;
  background: var(--red-deep);
  color: #fff;
}

.tileband .title {
  margin-bottom: 8px;
}

.tileband__line {
  max-width: 60ch;
  margin: 0 auto 26px;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

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

.tileband__tile {
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.tileband__photo {
  display: grid;
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border-radius: 12px;
  background: #fff;
  transition: transform 0.25s ease;
}

.tileband__tile:hover .tileband__photo {
  transform: translateY(-4px) rotate(-2deg);
}

.tileband__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tileband__badge {
  position: absolute;
  top: 6px;
  right: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  transform: rotate(8deg);
}

.tileband__photo--all {
  background: #fff;
}

.tileband__sticker {
  display: grid;
  place-items: center;
  width: 82%;
  aspect-ratio: 1.6;
  border-radius: 10px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-heading);
  font-size: clamp(20px, 5vw, 30px);
  font-weight: 700;
  line-height: 0.9;
  text-align: center;
  transform: rotate(-4deg);
}

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

.wave {
  display: block;
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  width: 100%;
  height: 34px;
  color: var(--blue);
}

.tileband + .pickband {
  margin-top: 0;
}

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

  .tileband__name {
    font-size: 14px;
  }
}

@media (min-width: 990px) {
  .tileband {
    padding: 60px 0 96px;
  }

  .tileband__grid {
    padding: 0 40px;
  }

  .wave {
    height: 56px;
  }
}

/* ---------- Blue pick band ---------- */

.pickband {
  padding: 40px 0 48px;
  overflow: hidden;
  background: var(--blue);
  color: #fff;
}

.pickband__grid {
  display: grid;
  gap: 30px;
}

.pickband__text {
  display: grid;
  justify-items: start;
  gap: 16px;
  min-width: 0;
}

.pickband .title {
  margin: 0;
}

.pickband__line {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.pickband__circles {
  display: flex;
  gap: 14px;
  max-width: 100%;
  margin: 6px 0;
  padding: 4px 2px 6px;
  overflow-x: auto;
  scrollbar-width: none;
}

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

.pickband__circle {
  display: grid;
  flex: none;
  justify-items: center;
  gap: 8px;
  width: 86px;
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--font-body);
  cursor: pointer;
}

.pickband__dot {
  display: block;
  width: 72px;
  height: 72px;
  overflow: hidden;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 0 var(--red);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pickband__circle:hover .pickband__dot {
  transform: scale(1.05);
}

.pickband__circle.is-active .pickband__dot {
  box-shadow: 0 0 0 4px var(--red);
}

.pickband__dot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pickband__name {
  overflow: hidden;
  max-width: 100%;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

.pickband__stage {
  display: grid;
  position: relative;
  place-items: center;
  min-height: 300px;
}

.pickband__stage::before {
  position: absolute;
  inset: 8% 6%;
  border-radius: 46% 54% 40% 60% / 55% 45% 55% 45%;
  background: var(--yellow);
  content: "";
}

.pickband__panel {
  display: grid;
  position: relative;
  justify-items: center;
  width: 100%;
}

.pickband__photo {
  display: block;
  width: min(78%, 420px);
  aspect-ratio: 1;
  overflow: hidden;
  border: 8px solid #fff;
  border-radius: 50%;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.pickband__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pickband__tag {
  display: grid;
  justify-items: center;
  gap: 2px;
  margin-top: -26px;
  padding: 8px 18px;
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-heading);
  font-weight: 700;
  text-decoration: none;
  transform: rotate(-3deg);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.18);
}

.pickband__tag .price {
  color: var(--red);
  font-size: 15px;
}

.pickband__doodle--a {
  top: 4%;
  right: 6%;
  width: 54px;
  height: 54px;
}

.pickband__doodle--b {
  bottom: 6%;
  left: 2%;
  width: 60px;
  height: 60px;
}

@media (min-width: 990px) {
  .pickband {
    padding: 70px 0;
  }

  .pickband__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    gap: 50px;
  }

  .pickband__circle {
    width: 100px;
  }

  .pickband__dot {
    width: 86px;
    height: 86px;
  }

  .pickband__stage {
    min-height: 480px;
  }
}

/* ---------- Arches ---------- */

.arches {
  background: var(--cream);
}

.arches .title {
  margin-bottom: 8px;
}

.arches__line {
  margin: 0 0 28px;
  color: #45423e;
  text-align: center;
}

.arches__list {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 4px 2px 8px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

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

.arches__item {
  flex: 0 0 42%;
  scroll-snap-align: start;
}

.arches__link {
  display: grid;
  justify-items: center;
  gap: 6px;
  color: var(--ink);
  text-align: center;
  text-decoration: none;
}

.arches__arch {
  display: block;
  width: 100%;
  aspect-ratio: 5 / 6;
  overflow: hidden;
  border-radius: 999px 999px 18px 18px;
  background: var(--arch, #fff);
  transition: transform 0.25s ease;
}

.arches__link:hover .arches__arch {
  transform: translateY(-5px);
}

.arches__arch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.arches__name {
  margin-top: 4px;
  font-family: var(--font-heading);
  font-size: 17px;
  font-weight: 700;
}

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

@media (min-width: 750px) {
  .arches__list {
    justify-content: center;
    overflow: visible;
  }

  .arches__item {
    flex: 0 1 200px;
  }
}

/* ---------- Product rail and card ---------- */

.prail {
  background: #fff;
}

.prail__small {
  margin: 0 0 12px;
  font-size: 19px;
}

.prail__wrap {
  position: relative;
}

.prail__track {
  display: flex;
  gap: 16px;
  margin: 0;
  padding: 14px 2px 6px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

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

.prail__item {
  flex: 0 0 66%;
  scroll-snap-align: start;
}

.prail__arrow {
  display: none;
}

@media (min-width: 750px) {
  .prail__item {
    flex-basis: calc((100% - 48px) / 4);
  }
}

@media (min-width: 990px) {
  .prail__arrow {
    display: inline-grid;
    position: absolute;
    top: 50%;
    right: -18px;
    z-index: 2;
    transform: translateY(-50%);
  }

  .prail__arrow--prev {
    right: auto;
    left: -18px;
  }

  .prail__arrow[disabled] {
    opacity: 0;
    pointer-events: none;
  }
}

.card {
  display: flex;
  position: relative;
  flex-direction: column;
  height: 100%;
  padding: 12px;
  border: 1px solid var(--rule);
  border-radius: 16px;
  background: #fff;
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.card:hover {
  box-shadow: 0 10px 24px rgba(29, 29, 27, 0.1);
  transform: translateY(-3px);
}

.card__tab {
  position: absolute;
  top: -1px;
  left: 50%;
  z-index: 2;
  padding: 3px 12px;
  border-radius: 0 0 8px 8px;
  background: var(--sky);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
  transform: translateX(-50%);
}

.card__tab--sale {
  background: var(--red);
  color: #fff;
}

.card__tab--new {
  background: var(--yellow);
}

.card__tab--out {
  background: var(--mist);
  color: var(--grey);
}

.card__media {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border-radius: 12px;
  background: var(--cream);
}

.card__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.card:hover .card__image {
  transform: scale(1.04);
}

.card__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding-top: 12px;
  text-align: center;
}

.card__title {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.3;
}

.card__link {
  color: inherit;
  text-decoration: none;
}

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

.card__type {
  margin: 0;
  color: var(--grey);
  font-size: 13px;
}

.card__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  width: 100%;
  margin-top: auto;
  padding-top: 12px;
}

.card__price .price {
  display: flex;
  flex-direction: row-reverse;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: flex-end;
  gap: 0 8px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
}

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

.card__price .price__regular {
  color: var(--ink);
}

.card__add {
  position: relative;
  z-index: 2;
  flex: none;
}

/* ---------- FAQ band ---------- */

.faqband {
  padding: 44px 0;
  background: var(--green);
  color: #fff;
}

.faqband__grid {
  display: grid;
  gap: 28px;
}

.faqband__photo {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
}

.faqband__photo img,
.faqband__photo .placeholder {
  width: 100%;
  height: 100%;
  border-radius: 48% 52% 44% 56% / 50% 46% 54% 50%;
  object-fit: cover;
}

.faqband__doodle {
  top: 4%;
  right: 6%;
  width: 64px;
  height: 64px;
}

.faqband .title {
  margin-bottom: 6px;
}

.faqband__line {
  margin: 0 0 18px;
  font-weight: 700;
}

.faqband__list {
  display: grid;
  gap: 8px;
}

.faqband__item {
  border-radius: 14px;
  background: #fff;
  color: var(--ink);
}

.faqband__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.faqband__item summary .icon {
  flex: none;
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.faqband__item[open] summary .icon {
  transform: rotate(180deg);
}

.faqband__answer {
  padding: 0 18px 16px;
  color: #45423e;
  font-size: 15px;
}

@media (min-width: 990px) {
  .faqband {
    padding: 70px 0;
  }

  .faqband__grid {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    align-items: center;
    gap: 70px;
  }
}

/* ---------- Inspire cards ---------- */

.inspire__list {
  display: flex;
  gap: 18px;
  margin: 0;
  padding: 0 2px 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  list-style: none;
}

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

.inspire__item {
  flex: 0 0 78%;
  scroll-snap-align: start;
}

.inspire__link {
  display: grid;
  justify-items: center;
  text-decoration: none;
}

.inspire__photo {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 22px;
}

.inspire__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.inspire__link:hover .inspire__photo img {
  transform: scale(1.04);
}

.inspire__label {
  margin-top: -22px;
}

@media (min-width: 750px) {
  .inspire__item {
    flex: 1 1 0;
  }
}

/* ---------- Offer panel ---------- */

.offerpanel {
  position: relative;
  padding: 48px 0;
  overflow: hidden;
  background: var(--panel, var(--lilac));
}

.offerpanel__inner {
  display: grid;
  justify-items: center;
  gap: 10px;
  text-align: center;
}

.offerpanel .title {
  margin: 0;
}

.offerpanel__line {
  margin: 0 0 8px;
  color: #45423e;
}

.offerpanel__doodle--a {
  top: 10px;
  left: 10px;
  width: 36px;
  height: 36px;
}

@media (min-width: 990px) {
  .offerpanel__doodle--a {
    top: 18%;
    left: 6%;
    width: 56px;
    height: 56px;
  }
}

.offerpanel__doodle--b {
  right: 6%;
  bottom: 16%;
  width: 100px;
  height: 40px;
}

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

.product__top {
  padding-top: 16px;
  padding-bottom: 44px;
}

.trail {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
  font-size: 13px;
}

.trail a {
  color: var(--red);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.trail span[aria-current] {
  color: var(--grey);
}

.product__left {
  display: contents;
}

.product__details {
  order: 3;
  min-width: 0;
}

.product__media {
  position: relative;
}

.gallery__track {
  border: 1px solid var(--rule);
  border-radius: 22px;
  background: #fff;
}

.thumbs__item {
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
}

.thumbs__item.is-active {
  border-color: var(--red);
}

.product__doodle {
  top: -14px;
  right: -10px;
  width: 58px;
  height: 58px;
}

.product__subhead {
  margin: 0 0 8px;
  font-size: 19px;
}

.product__description {
  color: #45423e;
  line-height: 1.7;
}

.product__title {
  margin: 0;
  font-size: calc(30px * var(--heading-scale));
  line-height: 1.1;
}

.product__type {
  margin: 0;
  color: var(--grey);
  font-size: 15px;
}

.product__price .price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  font-family: var(--font-heading);
  font-size: 26px;
  font-weight: 700;
}

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

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

.price__savings {
  flex-basis: auto;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
}

.product__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 4px;
  padding: 0;
  list-style: none;
}

.picker__legend {
  font-weight: 700;
}

.picker__box {
  border: 2px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  font-weight: 700;
}

.buy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  width: 100%;
  margin-top: 6px;
}

.buy__label {
  grid-column: 1 / -1;
  margin: 0 0 -4px;
  font-size: 14px;
  font-weight: 700;
}

.buy .quantity {
  grid-column: 1 / -1;
  width: 140px;
  height: 46px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
}

.buy__add,
.buy__now {
  min-height: 52px;
  font-size: 16px;
}

.buy__error {
  grid-column: 1 / -1;
}

.product__perks {
  display: grid;
  margin: 18px 0 0;
  padding: 4px 18px;
  border: 1px solid var(--rule);
  border-radius: 18px;
  background: #fff;
  list-style: none;
  font-size: 15px;
  font-weight: 700;
}

.product__perks li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
}

.product__perks li + li {
  border-top: 1px solid var(--rule);
}

.product__perks .icon {
  width: 20px;
  height: 20px;
  color: var(--red);
}

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

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

.fold__title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

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

.fold__title .icon {
  width: 12px;
  height: 12px;
  transition: transform 0.2s ease;
}

.fold[open] .fold__title .icon {
  transform: rotate(180deg);
}

.fold__body {
  padding: 0 0 16px;
  color: #45423e;
  font-size: 15px;
}

@media (min-width: 990px) {
  .product__grid {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 40px;
  }

  .product__media {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .product__left {
    display: grid;
    gap: 30px;
    min-width: 0;
  }

  .product__media--single {
    grid-template-columns: minmax(0, 1fr);
  }

  .product__info {
    top: 150px;
    padding: 4px 0 0;
  }

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

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

.collection {
  padding-top: 16px;
}

.collection__title {
  margin: 0 0 18px;
  font-size: calc(30px * var(--heading-scale));
}

.ctiles {
  display: flex;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0 2px 4px;
  overflow-x: auto;
  scrollbar-width: none;
  list-style: none;
}

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

.ctiles li {
  flex: none;
}

.ctiles__tile {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 104px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.ctiles__photo {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
  border: 3px solid #fff;
  border-radius: 14px;
  background: #fff;
}

.ctiles__tile[aria-current] .ctiles__photo {
  border-color: var(--red);
}

.ctiles__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.collection__panel {
  padding: 28px 0 56px;
  border-radius: 36px 36px 0 0;
  background: #fff;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 22px;
}

.toolbar__count {
  margin: 0;
  font-weight: 700;
}

.toolbar__sort {
  display: inline-flex;
  position: relative;
  align-items: center;
}

.toolbar__sort select {
  height: 40px;
  padding: 0 34px 0 16px;
  border: 1px solid var(--rule);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  appearance: none;
}

.toolbar__sort .icon {
  position: absolute;
  right: 14px;
  width: 10px;
  height: 10px;
  pointer-events: none;
}

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

.grid4 .card {
  padding: 8px;
}

.grid4 .card__title {
  font-size: 14px;
}

.promo-tile {
  grid-column: span 2;
}

.promo-tile__link {
  display: grid;
  position: relative;
  align-content: center;
  justify-items: center;
  gap: 6px;
  height: 100%;
  min-height: 180px;
  padding: 24px;
  overflow: hidden;
  border-radius: 16px;
  background: var(--red);
  color: #fff;
  text-align: center;
  text-decoration: none;
}

.promo-tile__heading {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
}

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

.promo-tile__doodle {
  top: 12px;
  left: 14px;
}

.promo-tile__squiggle {
  right: 14px;
  bottom: 10px;
  width: 80px;
  height: 32px;
  color: var(--yellow);
}

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

  .grid4 .card {
    padding: 12px;
  }

  .grid4 .card__title {
    font-size: 15px;
  }

  .promo-tile {
    grid-column: auto;
  }
}

@media (min-width: 990px) {
  .collection__title {
    font-size: calc(40px * var(--heading-scale));
  }

  .grid4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ctiles__tile {
    width: 128px;
  }

  .collection__panel {
    padding-top: 40px;
  }
}

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

.footer {
  background: #2e2d2b;
  color: #fff;
}

.footer__perks {
  padding: 22px 0;
  border-top: 1px solid var(--rule);
  background: var(--cream);
  color: var(--ink);
}

.footer__perk-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 40px;
  margin: 0 auto;
  list-style: none;
  font-weight: 700;
}

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

.footer__perk-list .icon {
  width: 22px;
  height: 22px;
  color: var(--red);
}

.footer__top {
  display: grid;
  gap: 28px;
  padding: 44px 0 30px;
}

.footer__logo {
  color: #ff5a6b;
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 700;
  text-decoration: none;
}

.footer__text {
  max-width: 36ch;
  margin-top: 10px;
  color: #d8d4ce;
  font-size: 15px;
}

.footer__heading {
  margin: 0 0 12px;
  font-size: 17px;
}

.footer__col ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__col a {
  color: #d8d4ce;
  font-size: 15px;
  text-decoration: none;
}

.footer__col a:hover {
  color: #fff;
  text-decoration: underline;
}

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 26px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  color: #d8d4ce;
  font-size: 13px;
}

.footer__bottom p {
  margin: 0;
}

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

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

.footer__language .language-toggle {
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 999px;
  background: none;
  color: #fff;
}

@media (min-width: 990px) {
  .footer__top {
    grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr));
    padding-top: 56px;
  }
}

/* ---------- Buy bar ---------- */

.stickybar {
  background: #fff;
}
