/*
 * SokoHouse storefront
 * An original marketplace interface for the static demonstration site.
 */

:root {
  color-scheme: light;
  --ink: #313133;
  --ink-soft: #535357;
  --ink-faint: #75757a;
  --navy: #313133;
  --navy-raised: #282828;
  --orange: #f68b1e;
  --orange-hover: #e07e1b;
  --orange-dark: #a64b00;
  --orange-soft: #fef3e9;
  --orange-focus: #fcdbb9;
  --cream: #fef3e9;
  --cream-light: #ffffff;
  --canvas: #f1f1f2;
  --surface: #ffffff;
  --surface-muted: #f1f1f2;
  --line: #d4d4d6;
  --line-strong: #a3a3a6;
  --success: #16784b;
  --success-soft: #e8f5ee;
  --danger: #b4232d;
  --danger-soft: #fff0f1;
  --focus: #236fc7;
  --shadow-sm: 0 2px 8px rgba(49, 49, 51, 0.08);
  --shadow-md: 0 13px 38px rgba(49, 49, 51, 0.12);
  --shadow-lg: 0 25px 70px rgba(49, 49, 51, 0.2);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1380px;
  --font-body: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --font-display: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 130px;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body[data-page="home"] {
  background: var(--canvas);
}

body[data-page="checkout"] {
  background: var(--canvas);
}

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

img {
  height: auto;
}

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

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

button,
select {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
}

h1,
h2,
h3,
p,
dl,
dd,
ul,
ol,
fieldset {
  margin-top: 0;
}

h1,
h2,
h3 {
  color: var(--ink);
  line-height: 1.12;
}

h1,
h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.03em;
}

h3 {
  letter-spacing: -0.015em;
}

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

[hidden] {
  display: none !important;
}

.container {
  width: min(calc(100% - 48px), var(--container));
  margin-inline: auto;
}

.card {
  background: var(--surface);
  border: 1px solid rgba(49, 49, 51, 0.1);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 11px 16px;
  transform: translateY(-180%);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--navy);
  box-shadow: var(--shadow-md);
  font-size: 14px;
  font-weight: 800;
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
}

.icon svg {
  width: 100%;
  height: 100%;
}

/* Buttons and links */

.button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button--small {
  min-height: 44px;
  padding: 8px 13px;
  font-size: 13px;
}

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

.button--primary,
.button--accent {
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 7px 18px rgba(246, 139, 30, 0.24);
}

.button--primary:hover,
.button--accent:hover {
  background: var(--orange-hover);
  color: var(--navy-raised);
}

.button--dark {
  background: var(--navy);
  color: #fff;
}

.button--dark:hover {
  background: var(--navy-raised);
}

.button--light {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.2);
}

.button--light:hover {
  background: var(--cream-light);
}

.button--quiet {
  border-color: var(--line-strong);
  background: #fff;
  color: var(--ink);
}

.button--quiet:hover {
  border-color: var(--ink);
  background: var(--surface-muted);
}

.button--mpesa {
  background: #16884f;
  color: #fff;
  box-shadow: 0 7px 18px rgba(22, 136, 79, 0.2);
}

.button--mpesa:hover {
  background: #0f6f3f;
}

.text-link,
.text-button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--orange-dark);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
}

.text-link:hover,
.text-button:hover {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.text-link--light {
  color: #fff;
}

.text-link--light:hover {
  color: var(--orange-focus);
}

.text-button--danger {
  color: var(--danger);
}

.icon-button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  padding: 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface);
}

/* Environment and global header */

.environment-bar {
  position: relative;
  z-index: 61;
  background: var(--navy);
  color: #f1f1f2;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.environment-bar__inner {
  display: flex;
  min-height: 32px;
  align-items: center;
  gap: 12px;
}

.environment-bar__meta {
  margin-left: auto;
  color: #d4d4d6;
}

.environment-pill {
  display: inline-flex;
  min-height: 20px;
  align-items: center;
  padding: 2px 9px;
  border: 1px solid rgba(255, 255, 255, 0.23);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.14em;
  line-height: 1;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  z-index: 60;
  top: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 7px 24px rgba(49, 49, 51, 0.08);
  backdrop-filter: blur(14px);
}

.utility-bar {
  border-bottom: 1px solid var(--line);
  background: var(--surface-muted);
  color: var(--ink-soft);
  font-size: 13px;
}

.utility-bar__inner {
  display: flex;
  min-height: 31px;
  align-items: center;
  justify-content: space-between;
}

.utility-bar__inner > span,
.utility-bar nav,
.utility-bar nav a {
  display: flex;
  align-items: center;
}

.utility-bar__inner > span {
  gap: 5px;
}

.utility-bar .icon {
  width: 15px;
  height: 15px;
  color: var(--orange-dark);
}

.utility-bar nav {
  gap: 22px;
}

.utility-bar nav a {
  min-height: 44px;
}

.utility-bar a:hover {
  color: var(--orange-dark);
}

.demo-copy {
  color: var(--ink-faint);
}

.header-main {
  display: grid;
  min-height: 83px;
  align-items: center;
  grid-template-columns: auto minmax(300px, 1fr) auto;
  gap: clamp(22px, 3vw, 44px);
}

.header-main--inner {
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
}

.brand__mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px 12px 12px 4px;
  background: var(--orange);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 700;
  line-height: 1;
  box-shadow: 0 7px 16px rgba(246, 139, 30, 0.26);
}

.brand__name {
  color: var(--navy);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 1;
}

.brand__name span {
  color: var(--orange-dark);
}

.search-form {
  position: relative;
  display: grid;
  width: 100%;
  max-width: 720px;
  min-width: 0;
  justify-self: center;
  grid-template-columns: minmax(0, 1fr) auto;
}

.search-form input {
  width: 100%;
  min-width: 0;
  height: 48px;
  padding: 0 18px 0 47px;
  border: 1px solid var(--line-strong);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: #fff;
  color: var(--ink);
  outline: 0;
}

.search-form input::placeholder {
  color: var(--ink-faint);
}

.search-form input:focus {
  border-color: var(--focus);
  box-shadow: inset 0 0 0 1px var(--focus), 0 0 0 3px rgba(35, 111, 199, 0.14);
}

.search-form .button {
  min-height: 48px;
  border-radius: 0 10px 10px 0;
  box-shadow: none;
}

.search-form__icon {
  position: absolute;
  z-index: 1;
  top: 50%;
  left: 16px;
  transform: translateY(-50%);
  color: var(--ink-faint);
  pointer-events: none;
}

.search-form__icon .icon {
  width: 20px;
  height: 20px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: clamp(15px, 2vw, 26px);
}

.header-action {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.12;
  white-space: nowrap;
}

.header-action > .icon {
  width: 24px;
  height: 24px;
  color: var(--ink-soft);
}

.header-action small {
  display: block;
  margin-bottom: 3px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 650;
  letter-spacing: 0.025em;
}

.header-action:hover,
.header-action:hover > .icon {
  color: var(--orange-dark);
}

.cart-count {
  position: absolute;
  top: -8px;
  left: 15px;
  display: grid;
  min-width: 19px;
  height: 19px;
  padding-inline: 4px;
  place-items: center;
  border: 2px solid #fff;
  border-radius: 99px;
  background: var(--orange);
  color: var(--ink);
  font-size: 12px;
  line-height: 1;
}

.menu-button {
  display: none;
}

.mobile-menu {
  display: flex;
  padding-block: 0 15px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.mobile-menu::-webkit-scrollbar {
  display: none;
}

.mobile-menu a {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-muted);
  font-size: 12px;
  font-weight: 750;
}

/* Homepage stage */

.home-stage {
  display: grid;
  padding-top: 24px;
  grid-template-columns: 215px minmax(0, 1fr) 215px;
  gap: 16px;
}

.category-sidebar {
  align-self: stretch;
  padding: 13px 12px 11px;
}

.category-sidebar h2 {
  margin: 4px 10px 10px;
  color: var(--ink-soft);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.category-sidebar > a {
  display: flex;
  min-height: 50px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
  font-weight: 720;
  transition: color 140ms ease, padding 140ms ease;
}

.category-sidebar > a:hover {
  padding-left: 14px;
  color: var(--orange-dark);
}

.category-sidebar > a .icon {
  width: 16px;
  height: 16px;
  color: var(--ink-faint);
}

.category-sidebar .category-sidebar__all {
  min-height: 45px;
  border: 0;
  color: var(--orange-dark);
  font-size: 13px;
}

.hero {
  position: relative;
  min-height: 490px;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-md);
  isolation: isolate;
}

.hero__image,
.hero__scrim {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero__image {
  z-index: -2;
  object-fit: cover;
  object-position: center;
}

.hero__scrim {
  z-index: -1;
  background: linear-gradient(90deg, rgba(40, 40, 40, 0.94) 0%, rgba(40, 40, 40, 0.8) 34%, rgba(40, 40, 40, 0.28) 62%, rgba(40, 40, 40, 0.04) 100%);
}

.hero__content {
  display: flex;
  width: min(54%, 510px);
  min-height: 490px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(38px, 5vw, 72px);
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  line-height: 1.3;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--orange-focus);
}

.hero h1 {
  margin-bottom: 21px;
  color: #fff;
  font-size: clamp(45px, 5vw, 72px);
  line-height: 0.96;
  text-wrap: balance;
}

.hero h1 em {
  color: #ffc27e;
  font-weight: 500;
}

.hero__content > p:not(.eyebrow) {
  max-width: 450px;
  margin-bottom: 27px;
  color: #f1f1f2;
  font-size: 15px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  align-items: center;
  gap: 22px;
}

.hero__caption {
  position: absolute;
  right: 17px;
  bottom: 13px;
  margin: 0;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(40, 40, 40, 0.78);
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  letter-spacing: 0.03em;
}

.stage-aside {
  display: grid;
  min-width: 0;
  grid-template-rows: auto auto 1fr;
  gap: 12px;
}

.info-card {
  display: flex;
  min-height: 112px;
  align-items: flex-start;
  gap: 11px;
  padding: 17px 15px;
  border-radius: var(--radius-md);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.info-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.info-card--coral {
  background: var(--orange-soft);
  color: var(--ink);
}

.info-card--cream {
  background: var(--surface-muted);
  color: var(--ink);
}

.info-card__icon {
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.64);
}

.info-card__icon .icon {
  width: 20px;
  height: 20px;
}

.info-card span span {
  display: block;
}

.info-card small,
.info-card strong,
.info-card em {
  display: block;
}

.info-card small {
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.info-card strong {
  font-size: 13px;
  line-height: 1.3;
}

.info-card em {
  margin-top: 6px;
  opacity: 0.72;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

.mini-promo {
  position: relative;
  display: flex;
  min-height: 225px;
  overflow: hidden;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 19px;
  border-radius: var(--radius-md);
  background: var(--orange);
  color: var(--ink);
  isolation: isolate;
}

.mini-promo::before,
.mini-promo::after {
  position: absolute;
  z-index: -1;
  border: 1px solid rgba(49, 49, 51, 0.2);
  border-radius: 50%;
  content: "";
}

.mini-promo::before {
  width: 210px;
  height: 210px;
  top: -93px;
  right: -83px;
}

.mini-promo::after {
  width: 110px;
  height: 110px;
  top: -33px;
  right: -25px;
}

.mini-promo > span {
  margin-bottom: 8px;
  color: var(--ink-soft);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.mini-promo strong {
  font-family: var(--font-display);
  font-size: 28px;
  line-height: 1.02;
}

.mini-promo a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  margin-top: 22px;
  font-size: 13px;
  font-weight: 800;
}

.trust-strip {
  display: grid;
  margin-top: 20px;
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  grid-template-columns: repeat(4, 1fr);
  box-shadow: var(--shadow-sm);
}

.trust-strip > div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding-inline: 22px;
  border-right: 1px solid var(--line);
}

.trust-strip > div:first-child {
  padding-left: 0;
}

.trust-strip > div:last-child {
  padding-right: 0;
  border-right: 0;
}

.trust-strip > div > .icon {
  width: 27px;
  height: 27px;
  color: var(--orange-dark);
}

.trust-strip span,
.trust-strip strong,
.trust-strip small {
  display: block;
}

.trust-strip strong {
  overflow: hidden;
  font-size: 12px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trust-strip small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 12px;
}

/* Homepage sections */

.section {
  padding-block: clamp(62px, 7vw, 94px);
}

.section--flush-top {
  padding-top: 27px;
}

.section--tinted {
  border-block: 1px solid var(--line);
  background: var(--canvas);
}

.section-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 27px;
}

.section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(32px, 3.5vw, 48px);
}

.section-heading > p,
.section-heading > div > p:last-child:not(.eyebrow) {
  max-width: 500px;
  margin: 9px 0 2px;
  color: var(--ink-soft);
  font-size: 14px;
}

.section-heading--catalog {
  align-items: center;
}

.deal-shell {
  overflow: hidden;
  padding: clamp(24px, 3.5vw, 42px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  background-image: radial-gradient(circle at 88% 0%, rgba(246, 139, 30, 0.28), transparent 34%);
  color: #fff;
  box-shadow: var(--shadow-md);
}

.deal-header {
  display: grid;
  align-items: center;
  margin-bottom: 26px;
  grid-template-columns: 1fr auto 1fr;
  gap: 28px;
}

.deal-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(32px, 4vw, 50px);
}

.deal-header__link {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-self: end;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.deal-header__note {
  max-width: 350px;
  margin: 0;
  color: #d4d4d6;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}

.deal-header__link:hover {
  color: var(--orange-focus);
}

.product-rail {
  display: grid;
  padding: 2px 2px 10px;
  grid-auto-columns: minmax(205px, 1fr);
  grid-auto-flow: column;
  gap: 12px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scrollbar-color: var(--ink-faint) transparent;
  scrollbar-width: thin;
  scroll-snap-type: inline proximity;
}

.product-rail .product-card {
  scroll-snap-align: start;
}

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

.product-card {
  position: relative;
  display: flex;
  min-width: 0;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(49, 49, 51, 0.05);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.product-card:hover {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.product-card__image {
  position: relative;
  display: grid;
  overflow: hidden;
  aspect-ratio: 1 / 0.84;
  place-items: center;
  background: var(--surface-muted);
}

.product-card__image::after {
  position: absolute;
  inset: auto 0 0;
  height: 28%;
  background: linear-gradient(transparent, rgba(10, 19, 30, 0.04));
  content: "";
  pointer-events: none;
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 350ms ease;
}

.product-card:hover .product-card__image img {
  transform: scale(1.035);
}

.product-card__body {
  display: flex;
  min-height: 220px;
  flex: 1;
  flex-direction: column;
  padding: 17px;
}

.product-card__brand,
.product-detail__brand {
  margin-bottom: 5px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.product-card__title {
  display: -webkit-box;
  min-height: 44px;
  margin-bottom: 13px;
  overflow: hidden;
  font-size: 15px;
  font-weight: 750;
  line-height: 1.38;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-card__title a {
  display: flex;
  min-height: 44px;
  align-items: flex-start;
}

.product-card__title a:hover {
  color: var(--orange-dark);
}

.product-card__pricing {
  display: flex;
  min-height: 40px;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 9px;
}

.product-card__pricing strong {
  width: 100%;
  color: var(--navy);
  font-size: 17px;
  line-height: 1.15;
}

.product-card__pricing del {
  color: var(--ink-faint);
  font-size: 13px;
}

.product-card__source {
  margin: -7px 0 12px;
  color: var(--ink-faint);
  font-size: 13px;
  line-height: 1.35;
}

.stock-note {
  margin: 9px 0 13px;
  color: var(--success);
  font-size: 12px;
  font-weight: 750;
}

.product-card__actions {
  display: grid;
  margin-top: auto;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 7px;
}

.product-card--compact .product-card__image {
  aspect-ratio: 1 / 0.8;
}

.product-card--compact .product-card__body {
  min-height: 215px;
  padding: 14px;
}

.product-card--compact .product-card__actions {
  grid-template-columns: 1fr;
}

.product-card--compact .product-card__actions .button--quiet {
  display: none;
}

.discount-badge,
.product-badge {
  position: absolute;
  z-index: 2;
  top: 11px;
  display: inline-flex;
  min-height: 23px;
  align-items: center;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.discount-badge {
  right: 10px;
  background: var(--orange);
  color: var(--ink);
}

.product-badge {
  left: 10px;
  max-width: calc(100% - 72px);
  overflow: hidden;
  background: rgba(49, 49, 51, 0.9);
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(5px);
}

.image-fallback {
  display: grid;
  height: 100%;
  padding: 30px;
  place-items: center;
  color: var(--ink-faint);
  font-size: 12px;
  text-align: center;
}

.product-card__image.is-missing,
.product-media.is-missing {
  background: repeating-linear-gradient(-45deg, #f1f1f2, #f1f1f2 12px, #e2e2e3 12px, #e2e2e3 24px);
}

.product-grid--related {
  align-items: stretch;
}

.category-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 15px;
}

.category-tile {
  position: relative;
  display: flex;
  overflow: hidden;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.category-tile:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.category-tile__image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.15;
  background: var(--cream-light);
}

.category-tile__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 300ms ease;
}

.category-tile:hover img {
  transform: scale(1.04);
}

.category-tile__label {
  position: relative;
  display: block;
  padding: 16px 44px 16px 17px;
  color: var(--ink);
  font-size: 14px;
  font-weight: 850;
}

.category-tile__label::after {
  position: absolute;
  top: 50%;
  right: 17px;
  color: var(--orange-dark);
  content: "→";
  font-size: 18px;
  transform: translateY(-50%);
}

.category-tile__label small {
  display: block;
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 12px;
  font-weight: 600;
}

.filter-chips {
  display: flex;
  margin: -5px 0 24px;
  padding: 5px 2px;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.catalog-disclaimer {
  max-width: 720px !important;
  margin-top: 9px !important;
  padding-left: 10px;
  border-left: 2px solid var(--orange);
  color: var(--ink-faint) !important;
  font-size: 12px !important;
  line-height: 1.5;
}

.filter-chips::-webkit-scrollbar {
  display: none;
}

.filter-chips button {
  min-height: 44px;
  flex: 0 0 auto;
  padding: 8px 15px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 750;
}

.filter-chips button:hover {
  border-color: var(--ink-soft);
  color: var(--ink);
}

.filter-chips button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.empty-results,
.empty-cart,
.empty-checkout,
.not-found {
  padding: clamp(45px, 8vw, 90px) 24px;
  text-align: center;
}

.empty-results h3,
.empty-cart h2,
.empty-checkout h2,
.not-found h1 {
  margin-bottom: 10px;
}

.empty-results p,
.empty-cart p,
.empty-checkout p,
.not-found p {
  max-width: 580px;
  margin: 0 auto 24px;
  color: var(--ink-soft);
}

.demo-note {
  display: grid;
  padding: clamp(36px, 5vw, 68px);
  border-radius: var(--radius-lg);
  background: var(--navy);
  background-image: radial-gradient(circle at 6% 100%, rgba(246, 139, 30, 0.3), transparent 32%);
  color: #f1f1f2;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(35px, 7vw, 95px);
}

.demo-note h2 {
  max-width: 520px;
  margin: 0;
  color: #fff;
  font-size: clamp(34px, 4vw, 55px);
}

.demo-note__copy p {
  margin-bottom: 17px;
  color: #d4d4d6;
  font-size: 14px;
}

.demo-note__copy .button {
  margin-top: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #fff;
  color: var(--navy);
}

.noscript-note {
  padding: 14px 16px;
  border: 1px solid #e4ad3f;
  border-radius: var(--radius-sm);
  background: #fff7dd;
  color: #684b0d;
  font-size: 13px;
}

/* Footer and global notices */

.site-footer {
  padding-top: 66px;
  background: var(--navy);
  color: #d4d4d6;
}

.footer-grid {
  display: grid;
  padding-bottom: 52px;
  grid-template-columns: 1.5fr 0.7fr 0.7fr 1.1fr;
  gap: clamp(30px, 5vw, 75px);
}

.brand--footer .brand__name {
  color: #fff;
}

.footer-grid > div:first-child > p,
.footer-grid > div:last-child > p {
  max-width: 330px;
  margin: 18px 0;
  font-size: 12px;
  line-height: 1.7;
}

.environment-pill--footer {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--orange-focus);
}

.footer-grid h2 {
  margin-bottom: 18px;
  color: #fff;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.footer-grid > div > a:not(.brand) {
  display: flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  font-size: 12px;
}

.footer-bottom a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.footer-grid > div > a:hover,
.footer-bottom a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  min-height: 65px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  color: #a3a3a6;
  font-size: 12px;
}

.site-footer--compact {
  margin-top: 70px;
  padding-top: 0;
}

.site-footer--compact .footer-bottom {
  border-top: 0;
}

.site-toast {
  position: fixed;
  z-index: 200;
  right: 22px;
  bottom: 22px;
  max-width: min(390px, calc(100% - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 12px;
  font-weight: 700;
  animation: toast-in 200ms ease-out both;
}

@keyframes toast-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

.cart-persistence-notice {
  position: fixed;
  z-index: 150;
  right: 16px;
  bottom: 80px;
  max-width: 340px;
  margin: 0;
  padding: 10px 13px;
  border: 1px solid #e4ad3f;
  border-radius: var(--radius-sm);
  background: #fff7dd;
  color: #684b0d;
  box-shadow: var(--shadow-md);
  font-size: 13px;
}

/* Shared inner pages */

.inner-main {
  min-height: 62vh;
  padding-block: 25px 30px;
}

.breadcrumbs {
  display: flex;
  min-width: 0;
  align-items: center;
  padding-block: 4px 22px;
  gap: 8px;
  overflow: hidden;
  color: var(--ink-faint);
  font-size: 13px;
  white-space: nowrap;
}

.breadcrumbs > * {
  flex: 0 0 auto;
}

.breadcrumbs a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
}

.breadcrumbs > *:last-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

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

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 25px;
  margin-bottom: 25px;
}

.page-heading h1,
.checkout-heading h1 {
  margin: 0;
  font-size: clamp(38px, 5vw, 58px);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 19px;
  border-bottom: 1px solid var(--line);
}

.panel-heading h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.panel-heading--stack {
  display: block;
}

.panel-heading--stack h2 {
  margin-bottom: 7px;
  font-family: var(--font-display);
  font-size: 29px;
  font-weight: 600;
}

.panel-heading--stack > p:last-child {
  margin-bottom: 0;
  color: var(--ink-soft);
  font-size: 12px;
}

.step-kicker {
  margin-bottom: 8px;
  color: var(--orange-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Product detail */

.product-detail {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.92fr) minmax(230px, 0.58fr);
}

.product-detail__gallery,
.product-detail__content,
.product-detail__facts {
  min-width: 0;
  padding: clamp(24px, 3vw, 42px);
}

.product-detail__gallery {
  border-right: 1px solid var(--line);
}

.product-media {
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 12px;
  background: var(--surface-muted);
}

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

.product-detail__gallery > p {
  margin: 12px 0 0;
  color: var(--ink-faint);
  font-size: 12px;
  text-align: center;
}

.product-detail__content h1 {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: clamp(28px, 3.1vw, 43px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.product-detail__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 19px;
  gap: 9px;
}

.product-detail__meta .stock-note {
  margin: 0;
}

.demo-label,
.saving {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.demo-label {
  background: var(--cream);
  color: var(--orange-dark);
}

.product-detail__description {
  margin-bottom: 23px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.7;
}

.product-detail__pricing {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 13px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
}

.product-detail__pricing strong {
  width: 100%;
  color: var(--navy);
  font-size: 32px;
  letter-spacing: -0.04em;
}

.product-detail__pricing del {
  color: var(--ink-faint);
  font-size: 13px;
}

.saving {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.price-note {
  margin: 8px 0 22px;
  color: var(--ink-faint);
  font-size: 12px;
}

.purchase-panel {
  display: grid;
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-muted);
  grid-template-columns: auto 68px 1fr 1fr;
  align-items: center;
  gap: 9px;
}

.purchase-panel label {
  font-size: 12px;
  font-weight: 800;
}

.purchase-panel select {
  height: 46px;
  padding-inline: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
}

.product-promises {
  display: grid;
  margin: 21px 0 0;
  padding: 0;
  list-style: none;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

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

.product-promises li > span:first-child {
  display: grid;
  width: 35px;
  height: 35px;
  flex: 0 0 35px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

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

.product-promises strong,
.product-promises small {
  display: block;
  line-height: 1.3;
}

.product-promises strong {
  font-size: 12px;
}

.product-promises small {
  margin-top: 2px;
  color: var(--ink-faint);
  font-size: 13px;
}

.product-detail__facts {
  border-left: 1px solid var(--line);
  background: var(--surface-muted);
}

.product-detail__facts h2 {
  margin-bottom: 22px;
  font-size: 28px;
}

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

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-soft);
  font-size: 13px;
}

.feature-list .icon {
  width: 18px;
  height: 18px;
  color: var(--success);
}

.merchant-note {
  display: block;
  margin-top: 28px;
  padding: 15px;
  border: 1px solid var(--orange-focus);
  border-radius: 10px;
  background: var(--orange-soft);
}

.source-note {
  display: block;
  margin-top: 28px;
  padding: 15px;
  border: 1px solid #ccd7e0;
  border-radius: 10px;
  background: #f5f9fc;
}

.source-note strong,
.source-note a,
.source-note small {
  display: block;
}

.source-note strong {
  color: var(--ink);
  font-size: 12px;
}

.source-note a {
  display: inline-flex;
  width: fit-content;
  min-height: 44px;
  align-items: center;
  margin-block: 4px;
  color: #1764a4;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.source-note small {
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.4;
}

.merchant-note strong,
.merchant-note span,
.merchant-note small {
  display: block;
}

.merchant-note strong {
  font-size: 12px;
}

.merchant-note span {
  margin-block: 4px;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 800;
}

.merchant-note small {
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.4;
}

.related-section {
  padding-bottom: 10px;
}

/* Cart */

.cart-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 350px;
  gap: 20px;
}

.cart-panel,
.summary-card,
.checkout-form,
.checkout-summary {
  padding: clamp(20px, 2.7vw, 30px);
}

.cart-row {
  position: relative;
  display: grid;
  min-width: 0;
  align-items: center;
  padding-block: 21px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 105px minmax(170px, 1fr) auto minmax(92px, auto) auto;
  gap: 18px;
}

.cart-row:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.cart-row__image {
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 9px;
  background: var(--surface-muted);
}

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

.cart-row__info {
  min-width: 0;
}

.cart-row__info h3 {
  margin-bottom: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.cart-row__info h3 a:hover {
  color: var(--orange-dark);
}

.cart-row__info > small {
  color: var(--ink-faint);
  font-size: 12px;
}

.quantity-control {
  display: grid;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  grid-template-columns: 44px 36px 44px;
}

.quantity-control button,
.quantity-control > span {
  display: grid;
  height: 44px;
  place-items: center;
}

.quantity-control button {
  padding: 0;
  border: 0;
  background: #fff;
  color: var(--ink);
}

.quantity-control button:hover:not(:disabled) {
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.quantity-control button:disabled {
  color: #c7cccf;
}

.quantity-control .icon {
  width: 15px;
  height: 15px;
}

.quantity-control > span {
  border-inline: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.cart-row__total {
  justify-self: end;
  font-size: 14px;
  white-space: nowrap;
}

.remove-button {
  display: inline-flex;
  align-items: center;
  padding: 7px;
  min-width: 44px;
  min-height: 44px;
  border: 0;
  background: transparent;
  color: var(--danger);
  font-size: 12px;
  font-weight: 750;
}

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

.remove-button span:not(.icon) {
  display: none;
}

.summary-card,
.checkout-summary {
  position: sticky;
  top: 102px;
}

.summary-card h2 {
  margin-bottom: 21px;
  font-family: var(--font-body);
  font-size: 17px;
  font-weight: 850;
}

.summary-lines {
  display: grid;
  margin-bottom: 22px;
  gap: 13px;
}

.summary-lines > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 13px;
}

.summary-lines strong {
  color: var(--ink);
  font-size: 12px;
  text-align: right;
}

.summary-lines .summary-total {
  margin-top: 4px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
}

.summary-lines .summary-total strong {
  font-size: 18px;
}

.secure-note {
  display: flex;
  align-items: flex-start;
  margin: 15px 0 0;
  gap: 7px;
  color: var(--ink-faint);
  font-size: 12px;
  line-height: 1.45;
}

.secure-note > .icon {
  width: 16px;
  height: 16px;
  color: var(--success);
}

.empty-cart__icon,
.payment-result__icon {
  display: grid;
  width: 58px;
  height: 58px;
  margin: 0 auto 18px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.empty-cart__icon .icon,
.payment-result__icon .icon {
  width: 27px;
  height: 27px;
}

/* Checkout */

.checkout-header {
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.checkout-header__inner {
  display: grid;
  min-height: 78px;
  align-items: center;
  grid-template-columns: 1fr auto 1fr;
  gap: 20px;
}

.checkout-header__inner > .text-link {
  justify-self: end;
}

.checkout-header__label {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--success);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.checkout-header__label .icon {
  width: 18px;
  height: 18px;
}

.checkout-main {
  min-height: 70vh;
  padding-block: 40px 25px;
}

.checkout-heading {
  max-width: 670px;
  margin-bottom: 30px;
}

.checkout-heading > p:last-child {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 13px;
}

.stepper {
  position: relative;
  display: grid;
  width: min(630px, 100%);
  margin: 0 0 30px;
  padding: 0;
  list-style: none;
  grid-template-columns: repeat(3, 1fr);
}

.stepper::before {
  position: absolute;
  top: 17px;
  right: calc(16.666% + 18px);
  left: calc(16.666% + 18px);
  height: 2px;
  background: var(--line-strong);
  content: "";
}

.stepper li {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--ink-faint);
  font-size: 12px;
}

.stepper li:nth-child(2) {
  justify-self: center;
}

.stepper li:last-child {
  justify-self: end;
}

.stepper li > span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border: 2px solid var(--line-strong);
  border-radius: 50%;
  background: #fff;
  font-size: 13px;
  font-weight: 850;
}

.stepper li[aria-current="step"] {
  color: var(--ink);
}

.stepper li[aria-current="step"] > span {
  border-color: var(--orange-dark);
  background: var(--orange);
  color: var(--ink);
  box-shadow: 0 0 0 5px var(--orange-soft);
}

.checkout-layout {
  display: grid;
  align-items: start;
  grid-template-columns: minmax(0, 1fr) 365px;
  gap: 22px;
}

.checkout-form {
  min-width: 0;
}

.checkout-step > .panel-heading {
  margin-bottom: 25px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}

.field {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.field--full {
  grid-column: 1 / -1;
}

.field label {
  margin-bottom: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  background: #fff;
  outline: 0;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input,
.field select {
  height: 47px;
  padding-inline: 13px;
}

.field textarea {
  min-height: 92px;
  padding: 12px 13px;
  resize: vertical;
}

.field input::placeholder,
.field textarea::placeholder {
  color: #98a1aa;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  border-color: var(--focus);
  box-shadow: 0 0 0 3px rgba(35, 111, 199, 0.13);
}

.field input[aria-invalid="true"],
.field select[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: #fffafa;
}

.field > small:not(.field-error) {
  margin-top: 5px;
  color: var(--ink-faint);
  font-size: 12px;
}

.field-error {
  min-height: 0;
  margin-top: 5px;
  color: var(--danger);
  font-size: 12px;
  font-weight: 700;
}

.field-error:empty {
  display: none;
}

.delivery-options {
  display: grid;
  margin: 27px 0 0;
  padding: 0;
  border: 0;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
}

.delivery-options legend {
  width: 100%;
  margin-bottom: 10px;
  font-size: 13px;
  font-weight: 850;
}

.delivery-options > .field-error {
  grid-column: 1 / -1;
}

.choice-card {
  position: relative;
  display: grid;
  min-height: 93px;
  align-items: center;
  padding: 15px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: #fff;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 11px;
  cursor: pointer;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.choice-card:hover {
  border-color: #97a2aa;
}

.choice-card:has(input:checked) {
  border-color: var(--orange-dark);
  background: var(--orange-soft);
  box-shadow: inset 0 0 0 1px var(--orange-dark);
}

.choice-card > input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--orange-dark);
}

.choice-card__icon {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--orange-soft);
  color: var(--orange-dark);
}

.choice-card__icon .icon {
  width: 18px;
  height: 18px;
}

.choice-card strong,
.choice-card small,
.choice-card b {
  display: block;
}

.choice-card strong {
  font-size: 13px;
}

.choice-card small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 12px;
}

.choice-card b {
  grid-column: 3;
  color: var(--success);
  font-size: 12px;
  font-weight: 750;
}

.step-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 27px;
  padding-top: 21px;
  border-top: 1px solid var(--line);
  gap: 12px;
}

.step-actions--end {
  justify-content: flex-end;
}

.error-summary {
  margin-bottom: 22px;
  padding: 16px 18px;
  border: 1px solid #e6a3a8;
  border-left: 4px solid var(--danger);
  border-radius: 8px;
  background: var(--danger-soft);
}

.error-summary h2 {
  margin-bottom: 7px;
  color: var(--danger);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 850;
  letter-spacing: 0;
}

.error-summary ul {
  margin: 0;
  padding-left: 18px;
  color: var(--danger);
  font-size: 12px;
}

.error-summary a {
  text-decoration: underline;
}

.checkout-summary .panel-heading {
  margin-bottom: 5px;
}

.checkout-item {
  display: grid;
  min-width: 0;
  align-items: center;
  padding-block: 14px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 11px;
}

.checkout-item__image {
  display: grid;
  overflow: hidden;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 7px;
  background: var(--surface-muted);
}

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

.checkout-item > span:nth-child(2) {
  min-width: 0;
}

.checkout-item strong,
.checkout-item small {
  display: block;
}

.checkout-item strong {
  display: -webkit-box;
  overflow: hidden;
  font-size: 12px;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.checkout-item small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 12px;
}

.checkout-item > b {
  font-size: 12px;
  white-space: nowrap;
}

.checkout-summary .summary-lines {
  margin: 19px 0 0;
}

.review-block {
  margin-bottom: 16px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-muted);
}

.review-block__heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}

.review-block__heading h3 {
  margin: 0;
  font-size: 12px;
}

.review-list {
  margin: 0;
}

.review-list > div {
  display: grid;
  padding-block: 7px;
  border-bottom: 1px solid var(--line);
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 13px;
}

.review-list > div:last-child {
  border: 0;
}

.review-list dt,
.review-list dd {
  font-size: 12px;
}

.review-list dt {
  color: var(--ink-faint);
  font-weight: 750;
}

.review-list dd {
  margin: 0;
  overflow-wrap: anywhere;
}

#item-review p {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 8px;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 12px;
}

#item-review p:last-child {
  margin-bottom: 0;
}

#item-review strong {
  color: var(--ink);
  white-space: nowrap;
}

.payment-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.payment-card__brand {
  display: flex;
  align-items: center;
  padding: 18px;
  background: #eff8f3;
  gap: 11px;
}

.payment-card__brand > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: var(--success);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.payment-card__brand strong,
.payment-card__brand small {
  display: block;
}

.payment-card__brand strong {
  font-size: 12px;
}

.payment-card__brand small {
  margin-top: 3px;
  color: var(--ink-faint);
  font-size: 12px;
}

.payment-card__brand small b {
  color: var(--danger);
}

.payment-facts {
  display: grid;
  margin: 0;
  padding: 19px;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.payment-facts > div {
  padding: 13px;
  border-radius: 8px;
  background: var(--surface-muted);
}

.payment-facts dt {
  color: var(--ink-faint);
  font-size: 12px;
}

.payment-facts dd {
  margin: 4px 0 0;
  font-size: 13px;
  font-weight: 850;
}

.payment-card > .field {
  padding: 0 19px 19px;
}

.integration-note {
  display: flex;
  align-items: flex-start;
  margin: 0 19px 19px;
  padding: 13px;
  border: 1px solid #efc96e;
  border-radius: 8px;
  background: #fff9e8;
  color: #624d16;
  gap: 9px;
}

.integration-note > span .icon,
.integration-note > .icon {
  width: 19px;
  height: 19px;
}

.integration-note p {
  margin: 0;
  font-size: 12px;
  line-height: 1.55;
}

.payment-result {
  padding: clamp(35px, 6vw, 72px) clamp(20px, 5vw, 65px);
  text-align: center;
}

.payment-result h2 {
  max-width: 620px;
  margin: 0 auto 14px;
  font-size: clamp(30px, 4vw, 43px);
}

.payment-result > p:not(.eyebrow) {
  max-width: 620px;
  margin: 0 auto;
  color: var(--ink-soft);
  font-size: 12px;
}

.payment-result__actions {
  display: flex;
  justify-content: center;
  margin-top: 25px;
  gap: 9px;
}

/* Responsive */

@media (max-width: 1220px) {
  .home-stage {
    grid-template-columns: 205px minmax(0, 1fr);
  }

  .stage-aside {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: 1fr 1fr 1.2fr;
    grid-template-rows: auto;
  }

  .info-card,
  .mini-promo {
    min-height: 115px;
  }

  .mini-promo {
    justify-content: center;
  }

  .mini-promo a {
    margin-top: 10px;
  }

  .product-detail {
    grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  }

  .product-detail__facts {
    display: grid;
    grid-column: 1 / -1;
    border-top: 1px solid var(--line);
    border-left: 0;
    grid-template-columns: 0.45fr 1.15fr 0.75fr;
    gap: 28px;
  }

  .product-detail__facts .feature-list {
    grid-column: 2;
    grid-row: 1 / span 2;
    grid-template-columns: 1fr 1fr;
  }

  .product-detail__facts > .eyebrow {
    grid-column: 1;
    grid-row: 1;
  }

  .product-detail__facts > h2 {
    grid-column: 1;
    grid-row: 2;
  }

  .product-detail__facts .source-note {
    grid-column: 3;
    grid-row: 1;
    margin-top: 0;
  }

  .product-detail__facts .merchant-note {
    grid-column: 3;
    grid-row: 2;
    margin-top: 0;
  }

  .cart-row {
    grid-template-columns: 90px minmax(150px, 1fr) auto auto;
  }

  .remove-button {
    position: absolute;
    right: 0;
    bottom: 15px;
  }
}

@media (max-width: 1040px) {
  .container {
    width: min(calc(100% - 34px), var(--container));
  }

  .header-main {
    min-height: 76px;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    gap: 15px;
  }

  .menu-button {
    display: inline-grid;
  }

  .search-form {
    max-width: none;
  }

  .header-action--desktop {
    display: none;
  }

  .home-stage {
    grid-template-columns: 1fr;
  }

  .category-sidebar {
    display: none;
  }

  .hero,
  .hero__content {
    min-height: 515px;
  }

  .trust-strip {
    grid-template-columns: 1fr 1fr;
  }

  .trust-strip > div,
  .trust-strip > div:first-child,
  .trust-strip > div:last-child {
    padding: 13px 15px;
    border-right: 0;
  }

  .trust-strip > div:nth-child(odd) {
    border-right: 1px solid var(--line);
  }

  .trust-strip > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

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

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

  .category-tile:nth-child(n + 4) {
    grid-column: span 1;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .purchase-panel {
    grid-template-columns: auto 65px 1fr;
  }

  .purchase-panel .button--dark {
    grid-column: 1 / -1;
  }
}

@media (max-width: 840px) {
  html {
    scroll-padding-top: 150px;
  }

  .utility-bar {
    display: none;
  }

  .header-main {
    padding-block: 12px;
    grid-template-columns: auto auto 1fr;
  }

  .header-main .brand {
    justify-self: start;
  }

  .header-main .search-form {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .header-actions {
    justify-self: end;
  }

  .home-stage {
    padding-top: 17px;
  }

  .hero,
  .hero__content {
    min-height: 480px;
  }

  .hero__content {
    width: min(68%, 500px);
  }

  .hero__scrim {
    background: linear-gradient(90deg, rgba(40, 40, 40, 0.95) 0%, rgba(40, 40, 40, 0.78) 52%, rgba(40, 40, 40, 0.17) 100%);
  }

  .deal-header {
    grid-template-columns: 1fr auto;
  }

  .deal-header__link {
    grid-column: 1 / -1;
    justify-self: start;
  }

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

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

  .category-tile:last-child {
    grid-column: 1 / -1;
  }

  .category-tile:last-child {
    display: grid;
    grid-template-columns: 1.25fr 1fr;
  }

  .category-tile:last-child .category-tile__image {
    aspect-ratio: 1.7;
  }

  .category-tile:last-child .category-tile__label {
    align-self: center;
  }

  .demo-note {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }

  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .product-detail {
    grid-template-columns: 1fr;
  }

  .product-detail__gallery {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .product-media {
    max-width: 620px;
    margin-inline: auto;
  }

  .product-detail__facts {
    display: block;
    grid-column: auto;
  }

  .product-detail__facts .merchant-note {
    margin-top: 28px;
  }

  .product-detail__facts .source-note {
    margin-top: 28px;
  }

  .cart-layout,
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .summary-card,
  .checkout-summary {
    position: static;
  }

  .checkout-summary {
    grid-row: 1;
  }

  .checkout-form {
    grid-row: 2;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 24px), var(--container));
  }

  .environment-bar__inner {
    min-height: 34px;
    gap: 8px;
  }

  .environment-bar__meta {
    display: none;
  }

  .environment-pill {
    font-size: 13px;
  }

  .header-main {
    gap: 10px;
  }

  .brand {
    gap: 7px;
  }

  .brand__mark {
    width: 35px;
    height: 35px;
    border-radius: 10px 10px 10px 3px;
    font-size: 22px;
  }

  .brand__name {
    font-size: 20px;
  }

  .menu-button {
    width: 44px;
    height: 44px;
  }

  .header-action--cart > span:not(.icon) {
    display: none;
  }

  .header-action--cart > .icon {
    width: 25px;
    height: 25px;
  }

  .cart-count {
    left: 14px;
  }

  .search-form input,
  .search-form .button {
    height: 44px;
    min-height: 44px;
  }

  .search-form input {
    padding-left: 40px;
    font-size: 13px;
  }

  .search-form__icon {
    left: 13px;
  }

  .search-form .button {
    padding-inline: 15px;
    font-size: 12px;
  }

  .hero,
  .hero__content {
    min-height: 510px;
  }

  .hero__image {
    object-position: 61% center;
  }

  .hero__scrim {
    background: linear-gradient(90deg, rgba(40, 40, 40, 0.96) 0%, rgba(40, 40, 40, 0.83) 55%, rgba(40, 40, 40, 0.25) 100%);
  }

  .hero__content {
    width: 86%;
    padding: 31px 24px;
  }

  .hero h1 {
    font-size: clamp(43px, 13vw, 58px);
  }

  .hero__actions {
    align-items: flex-start;
    flex-direction: column;
    gap: 15px;
  }

  .hero__caption {
    display: none;
  }

  .stage-aside {
    grid-template-columns: 1fr;
  }

  .info-card,
  .mini-promo {
    min-height: 102px;
  }

  .mini-promo {
    min-height: 150px;
  }

  .trust-strip {
    padding: 7px 10px;
  }

  .trust-strip > div,
  .trust-strip > div:first-child,
  .trust-strip > div:last-child {
    align-items: flex-start;
    padding: 13px 9px;
    gap: 8px;
  }

  .trust-strip > div > .icon {
    width: 21px;
    height: 21px;
  }

  .trust-strip strong {
    overflow: visible;
    font-size: 12px;
    text-overflow: clip;
    white-space: normal;
  }

  .trust-strip small {
    font-size: 13px;
    line-height: 1.3;
  }

  .section {
    padding-block: 56px;
  }

  .section--flush-top {
    padding-top: 20px;
  }

  .section-heading {
    display: block;
  }

  .section-heading h2 {
    font-size: 35px;
  }

  .section-heading > p {
    margin-top: 10px;
  }

  .section-heading--catalog {
    display: flex;
    align-items: flex-end;
  }

  .section-heading--catalog .button {
    min-height: 44px;
    flex: 0 0 auto;
    padding: 7px 11px;
    font-size: 12px;
  }

  .deal-shell {
    width: 100%;
    padding: 25px 12px 19px;
    border-radius: 0;
  }

  .section--flush-top .deal-shell {
    width: 100%;
  }

  .section--flush-top > .container {
    width: 100%;
  }

  .deal-header {
    display: flex;
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding-inline: 3px;
  }

  .product-rail {
    grid-auto-columns: minmax(180px, 62vw);
  }

  .product-grid {
    gap: 10px;
  }

  .product-card__body,
  .product-card--compact .product-card__body {
    min-height: 220px;
    padding: 12px;
  }

  .product-card__title {
    min-height: 39px;
    font-size: 13px;
  }

  .product-card__pricing strong {
    font-size: 15px;
  }

  .product-card__actions {
    grid-template-columns: 1fr;
  }

  .product-card__actions .button {
    min-height: 44px;
    padding-inline: 8px;
    font-size: 13px;
  }

  .product-card__actions .button--quiet {
    display: none;
  }

  .discount-badge,
  .product-badge {
    top: 7px;
    min-height: 20px;
    padding: 3px 5px;
    font-size: 12px;
  }

  .discount-badge {
    right: 7px;
  }

  .product-badge {
    left: 7px;
  }

  .category-grid {
    gap: 10px;
  }

  .category-tile__label {
    padding: 13px 35px 13px 13px;
    font-size: 12px;
  }

  .category-tile__label::after {
    right: 12px;
  }

  .category-tile:last-child {
    display: flex;
    grid-column: auto;
  }

  .category-tile:last-child .category-tile__image {
    aspect-ratio: 1.15;
  }

  .demo-note {
    padding: 31px 23px;
    border-radius: var(--radius-md);
    gap: 30px;
  }

  .demo-note h2 {
    font-size: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 35px 24px;
  }

  .footer-grid > div:first-child,
  .footer-grid > div:last-child {
    grid-column: 1 / -1;
  }

  .footer-bottom {
    min-height: 78px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    gap: 4px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .product-detail__gallery,
  .product-detail__content,
  .product-detail__facts {
    padding: 20px;
  }

  .product-detail__content h1 {
    font-size: 30px;
  }

  .purchase-panel {
    grid-template-columns: auto 1fr;
  }

  .purchase-panel .button {
    grid-column: 1 / -1;
  }

  .product-promises {
    grid-template-columns: 1fr;
  }

  .product-detail__facts .feature-list {
    grid-template-columns: 1fr;
  }

  .cart-panel,
  .summary-card,
  .checkout-form,
  .checkout-summary {
    padding: 18px;
  }

  .cart-row {
    align-items: start;
    padding-block: 18px 48px;
    grid-template-columns: 78px minmax(0, 1fr) auto;
    gap: 12px;
  }

  .cart-row__image {
    grid-row: 1 / span 2;
  }

  .quantity-control {
    grid-column: 2;
  }

  .cart-row__total {
    grid-column: 3;
    grid-row: 1;
  }

  .remove-button {
    right: auto;
    bottom: 13px;
    left: 89px;
    padding-left: 0;
    gap: 4px;
  }

  .remove-button span:not(.icon) {
    display: inline;
  }

  .checkout-header__inner {
    grid-template-columns: 1fr auto;
  }

  .checkout-header__label {
    display: none;
  }

  .checkout-main {
    padding-top: 28px;
  }

  .stepper li {
    align-items: center;
    flex-direction: column;
    gap: 5px;
  }

  .stepper li:nth-child(2),
  .stepper li:last-child {
    justify-self: stretch;
  }

  .stepper li strong {
    font-size: 13px;
  }

  .stepper::before {
    right: 16.666%;
    left: 16.666%;
  }

  .form-grid,
  .delivery-options {
    grid-template-columns: 1fr;
  }

  .choice-card {
    min-height: 88px;
  }

  .step-actions .button {
    flex: 1;
  }

  .review-list > div {
    grid-template-columns: 72px minmax(0, 1fr);
  }

  .payment-facts {
    grid-template-columns: 1fr;
  }

  .site-toast {
    right: 12px;
    bottom: 12px;
    left: 12px;
    max-width: none;
  }
}

@media (max-width: 390px) {
  .environment-bar__inner > span:nth-child(2) {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .brand__name {
    font-size: 18px;
  }

  .header-main {
    grid-template-columns: auto auto 1fr;
  }

  .hero__content {
    width: 94%;
    padding-inline: 20px;
  }

  .product-card__body,
  .product-card--compact .product-card__body {
    min-height: 224px;
    padding: 10px;
  }

  .product-card__pricing strong {
    font-size: 14px;
  }

  .product-card__pricing del,
  .stock-note {
    font-size: 12px;
  }

  .category-tile__label small {
    display: none;
  }

  .cart-row {
    grid-template-columns: 68px minmax(0, 1fr);
  }

  .cart-row__total {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
  }

  .quantity-control {
    grid-column: 2;
    grid-row: 3;
  }

  .remove-button {
    left: 80px;
  }

  .payment-result__actions,
  .step-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }
}

@media (hover: hover) {
  .button:hover {
    transform: translateY(-1px);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (forced-colors: active) {
  .brand__mark,
  .button,
  .discount-badge,
  .product-badge,
  .stepper li > span {
    border: 1px solid ButtonText;
  }

  .choice-card:has(input:checked) {
    outline: 2px solid Highlight;
  }
}

@media print {
  .environment-bar,
  .site-header,
  .checkout-header,
  .site-footer,
  .site-toast,
  .cart-persistence-notice,
  .button,
  .text-button {
    display: none !important;
  }

  body {
    background: #fff;
  }

  .card {
    border: 1px solid #bbb;
    box-shadow: none;
  }
}
