@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400&family=Montserrat:wght@500;600&display=swap');

/* Rule-based search reuses the shop palette and existing cards at every breakpoint. */
.header-search-shortcut-list.header-goal-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 0 16px;
  margin: 0 0 16px;
  border: 0;
}
.header-goal-shortcuts [data-search-example] {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .header-goal-shortcuts [data-search-example]:hover {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.header-goal-shortcuts [data-search-example]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .header-search-shortcut-list.header-goal-shortcuts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
  }
  .header-goal-shortcuts [data-search-example] {
    padding: 0 10px;
    font-size: 15px;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }
  .header-goal-shortcuts [data-search-example]:nth-child(2n) {
    border-right: 0;
  }
  .header-goal-shortcuts [data-search-example]:is(:hover, :active, :focus) {
    text-decoration: none;
  }
  .header-goal-shortcuts [data-search-example]:active {
    color: var(--green);
  }
}
@media (max-width: 480px) {
  .header-search-shortcut-list.header-goal-shortcuts {
    grid-template-columns: minmax(0, 1fr);
  }
  .header-goal-shortcuts [data-search-example] {
    border-right: 0;
  }
}
.search-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 24px;
}
.search-examples :is(button, a) {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  max-width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--white);
  color: var(--green);
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.search-examples :is(button, a):hover {
  border-color: var(--green);
}
.search-goal-context {
  display: block;
  margin-bottom: 16px;
}
.search-goal-context details {
  position: relative;
}
.search-goal-context summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0 24px;
  width: 100%;
  min-height: 44px;
  padding: 0;
  cursor: pointer;
  list-style: none;
}
.search-goal-label {
  min-width: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.search-goal-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 0;
  color: var(--green);
}
.search-goal-context details > summary:focus-visible {
  outline: none;
}
.search-goal-context summary:focus-visible .search-goal-toggle {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.search-goal-context summary::-webkit-details-marker {
  display: none;
}
.search-goal-context summary svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.search-goal-context details[open] summary svg {
  transform: rotate(180deg);
}
.search-goal-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-height: min(288px, 45dvh);
  margin: 8px 0 16px;
  border: 0;
  border-top: 1px solid var(--line);
  background: transparent;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.search-goal-list a {
  display: flex;
  align-items: center;
  min-height: 44px;
  min-width: 0;
  padding: 10px 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  text-decoration: none;
  overflow-wrap: anywhere;
}
.search-goal-list a[aria-current] {
  color: var(--green);
  font-weight: 600;
}
.search-goal-list a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: -3px;
}
.search-goal-list a:active {
  color: var(--green);
}
@media (max-width: 760px) {
  .search-goal-context summary {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-goal-list a {
    padding: 0 10px;
  }
  .search-goal-list a[aria-current] {
    font-weight: 400;
  }
}
@media (min-width: 761px) {
  .search-goal-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0 16px;
    position: static;
    width: 100%;
    max-height: none;
    margin: 8px 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
  }
  .search-goal-list a {
    padding: 0;
    border: 0;
    font-size: 16px;
  }
  .search-goal-list a[aria-current] {
    font-weight: 400;
  }
  .search-goal-list a:focus-visible {
    outline-offset: 3px;
  }
}
@media (min-width: 761px) and (hover: hover) and (pointer: fine) {
  .search-goal-list a:hover {
    color: var(--green);
    background: transparent;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
}
.search-query-note {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.catalog-search-state {
  margin: 16px 0;
}
.catalog-search-state[hidden],
[data-goal-search-rule][hidden] {
  display: none;
}
#catalogProducts .product-card .product-desc.search-product-reason {
  color: var(--green);
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.header-result-link .search-result-reason {
  grid-column: 1 / -1;
  color: var(--green);
  font-size: 13px;
}
.search-all-results {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin-top: 12px;
  color: var(--green);
}
.search-examples :is(button, a):focus-visible,
.search-goal-context summary:focus-visible,
.search-all-results:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.admin-goal-search > summary {
  min-height: 48px;
  padding: 12px 0;
  color: var(--green);
  cursor: pointer;
}
.admin-goal-search[open],
.admin-goal-search-rules {
  display: grid;
  gap: 16px;
}
.admin-goal-search-rules fieldset {
  min-width: 0;
  padding: 16px;
  border: 1px solid var(--line);
}
.admin-goal-search-rules legend {
  padding: 0 8px;
  overflow-wrap: anywhere;
}
[data-search-preview-results] {
  margin-top: 16px;
  overflow-wrap: anywhere;
}
@media (max-width: 640px) {
  .header-search-overlay .header-overlay-form input {
    font-size: 16px;
  }
  .search-goal-context {
    display: block;
  }
}
@media (max-width: 760px) {
  #catalogProducts .product-card.has-search-reason .product-body {
    flex-basis: 202px;
    height: 202px;
    min-height: 202px;
    grid-template-areas: 'title' 'desc' 'tags' 'meta';
    grid-template-rows: 34px 60px 16px 38px;
  }
  #catalogProducts .product-card .product-desc.search-product-reason {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0;
  }
}
@media (max-width: 1100px) {
  .header-search-overlay .header-overlay-content {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }
}

:root {
  --color-forest: #123d30;
  --color-cream: #f6f3ec;
  --color-beige: #d9cdbf;
  --color-sage: #7e9683;
  --color-graphite: #3f3f3f;
  --color-white: #ffffff;
  --color-surface: #fefdfb;
  --color-footer: #0c231e;
  --font-heading: 'Montserrat', sans-serif;
  --font-body: 'Inter', sans-serif;
  --mono: var(--font-heading);
  --white: var(--color-surface);
  --paper: var(--color-cream);
  --paper-2: var(--color-beige);
  --ink: var(--color-graphite);
  --text: var(--color-graphite);
  --muted: color-mix(in srgb, var(--color-graphite) 75%, var(--color-cream));
  --line: var(--color-beige);
  --green: var(--color-forest);
  --green-dark: var(--color-forest);
  --green-soft: var(--color-cream);
  --gold: var(--color-beige);
  --red: #c94d44;
  --success: #388e3c;
  --shadow: 0 18px 55px rgba(63, 63, 63, 0.09);
  --shadow-sm: 0 8px 24px rgba(63, 63, 63, 0.07);
  --radius: 18px;
  --radius-sm: 12px;
  --container: 1240px;
}
.telegram-link-state {
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid var(--line);
  background: var(--paper);
}

.telegram-link-state span {
  color: var(--muted);
  font-size: 14px;
}

.telegram-link-state.is-connected {
  border-color: var(--green);
  background: #edf5ea;
}

.admin-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.telegram-link-open {
  width: max-content;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

#tgRecoveryMessage.is-error {
  color: #b42318;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.menu-open {
  overflow: hidden;
}

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

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

button {
  cursor: pointer;
}

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

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

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

.mono {
  font-family: var(--font-heading);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--color-surface);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(217, 205, 191, 0.75);
}

.header-top {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  font-size: 12px;
  color: var(--muted);
}

.header-top .container {
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.header-inner {
  height: 76px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.05em;
  font-size: 28px;
  white-space: nowrap;
}

.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--green);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 15px;
  letter-spacing: -0.04em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: auto;
  flex-wrap: nowrap;
  min-width: 0;
}

.main-nav a {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0.86;
  transition: 0.2s;
  white-space: nowrap;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
  opacity: 1;
}

.header-search {
  position: relative;
  min-width: 190px;
  max-width: 300px;
  flex: 1;
}

.header-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 42px 0 16px;
  background: var(--paper);
  outline: none;
  color: var(--ink);
}

.header-search button {
  position: absolute;
  right: 6px;
  top: 5px;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-link,
.burger,
.icon-btn {
  min-width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
  font-size: 13px;
  transition: 0.2s;
  position: relative;
}

.icon-link:hover,
.burger:hover,
.icon-btn:hover {
  border-color: var(--green);
  color: var(--green);
  transform: translateY(-1px);
}

.count-pill {
  position: absolute;
  right: -5px;
  top: -8px;
  min-width: 20px;
  height: 20px;
  border-radius: 20px;
  background: var(--green);
  color: #fff;
  font-size: 11px;
  display: grid;
  place-items: center;
  padding: 0 6px;
  border: 2px solid #fff;
}

.admin-pill {
  display: none;
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
  padding: 0 16px;
}

.burger {
  display: none;
}

.mobile-search-trigger {
  display: none;
}

.mobile-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--color-surface);
  padding: 18px 0 24px;
}

.mobile-panel .container {
  display: grid;
  gap: 12px;
}

.mobile-panel a {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}

.mobile-search-panel {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--color-surface);
  padding: 10px 0 14px;
}

.mobile-search-panel.open {
  display: block;
}

.mobile-search-panel .header-search {
  display: block;
  min-width: 0;
  max-width: none;
}

.mobile-search-panel .header-search input {
  height: 46px;
}

.quick-contact {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 90;
}

.quick-contact-button {
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: var(--quick-contact-button-bg, var(--green));
  color: var(--quick-contact-button-text, #fff);
  padding: 0 18px;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(18, 61, 48, 0.24);
}

.quick-contact-panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 10px);
  display: none;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
}

.quick-contact.open .quick-contact-panel {
  display: grid;
  gap: 6px;
}

.quick-contact-panel a {
  min-height: 40px;
  border-radius: 12px;
  padding: 10px 12px;
  background: var(--paper);
  font-weight: 800;
  color: var(--ink);
}

.quick-contact-panel a:hover {
  color: var(--green);
}

.mobile-bottom-nav {
  display: none;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  height: 48px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-weight: 700;
  font-size: 14px;
  transition: 0.22s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.btn-primary:hover {
  background: var(--green-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(18, 61, 48, 0.18);
}

.btn-outline {
  background: transparent;
  color: var(--green);
  border-color: var(--green);
}

.btn-outline:hover {
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

.btn-light {
  background: var(--color-surface);
  color: var(--ink);
  border-color: var(--line);
}

.btn-light:hover {
  border-color: var(--green);
  color: var(--green);
}

.btn-dark {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.btn-danger {
  background: var(--red);
  color: #fff;
  border-color: var(--red);
}

.btn.small {
  height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.btn.full {
  width: 100%;
}

.hero {
  min-height: calc(100vh - 110px);
  display: grid;
  align-items: center;
  position: relative;
  overflow: hidden;
  background: var(--paper);
  --hero-media-opacity: 0.78;
  --hero-veil-opacity: 1;
  --hero-overlay-opacity: 0.18;
  --hero-eyebrow-color: var(--green);
  --hero-title-color: var(--ink);
  --hero-text-color: var(--color-graphite);
}

.hero-media,
.hero-media video,
.hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-media {
  overflow: hidden;
  z-index: 0;
  background: var(--paper) url('../assets/hero-fallback.svg') center/cover no-repeat;
}

.hero-media video,
.hero-media img {
  object-fit: cover;
  filter: saturate(1.05) contrast(1.02);
  opacity: var(--hero-media-opacity);
}

body[data-page='home']:not(.home-ready) .hero-media,
body[data-page='home']:not(.home-ready) .hero-content {
  visibility: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    90deg,
    rgba(246, 243, 236, 0.86) 0%,
    rgba(246, 243, 236, 0.62) 46%,
    rgba(246, 243, 236, 0.2) 100%
  );
  opacity: var(--hero-veil-opacity);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, var(--hero-overlay-opacity));
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 3;
  padding: 78px 0 70px;
  max-width: 620px;
  margin-left: auto;
  margin-right: 20px;
  justify-self: end;
}

.hero[data-align='left'] .hero-content {
  margin-left: 20px;
  margin-right: auto;
  justify-self: start;
}

.hero[data-align='center'] .hero-content {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
  justify-self: center;
}

.hero[data-align='center'] h1,
.hero[data-align='center'] .hero-text {
  margin-left: auto;
  margin-right: auto;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.18em;
  font-weight: 800;
  color: var(--green);
  font-family: var(--font-heading);
  margin-bottom: 18px;
}

.hero .eyebrow {
  color: var(--hero-eyebrow-color);
}

.eyebrow::before {
  content: '';
  width: 28px;
  height: 1px;
  background: var(--green);
}

.hero .eyebrow::before {
  background: var(--hero-eyebrow-color);
}

h1,
h2,
h3 {
  color: var(--ink);
  letter-spacing: -0.055em;
  line-height: 0.98;
  margin: 0;
}

h1 {
  font-size: 44px;
  font-weight: 800;
  max-width: 850px;
}

h2 {
  font-size: 38px;
  font-weight: 800;
}

h3 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

p {
  line-height: 1.7;
  margin: 0;
  color: var(--muted);
}

.hero h1 {
  font-size: 44px;
  line-height: 1.04;
}

.hero h1 {
  color: var(--hero-title-color);
}

.hero-text {
  font-size: 16px;
  max-width: 520px;
  margin: 18px 0 28px;
  color: var(--hero-text-color);
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 54px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  max-width: 690px;
}

.metric {
  background: rgba(254, 253, 251, 0.72);
  border: 1px solid rgba(217, 205, 191, 0.9);
  border-radius: var(--radius);
  padding: 18px;
  backdrop-filter: blur(12px);
}

.metric strong {
  display: block;
  font-size: 28px;
  letter-spacing: -0.06em;
  color: var(--ink);
  margin-bottom: 4px;
}

.metric span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 800;
}

.hero-animation {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    var(--color-cream),
    var(--color-beige) 46%,
    var(--color-sage)
  );
  opacity: var(--hero-media-opacity);
  overflow: hidden;
}

.hero-animation span {
  position: absolute;
  border-radius: 999px;
  border: 1px solid rgba(18, 61, 48, 0.22);
  animation: heroFloat 12s ease-in-out infinite;
}

.hero-animation span:nth-child(1) {
  width: 42vw;
  height: 42vw;
  right: 4%;
  top: 8%;
}

.hero-animation span:nth-child(2) {
  width: 28vw;
  height: 28vw;
  right: 22%;
  bottom: 6%;
  animation-delay: -4s;
}

.hero-animation span:nth-child(3) {
  width: 18vw;
  height: 18vw;
  left: 12%;
  top: 18%;
  animation-delay: -7s;
}

.hero-animation.rings span {
  border-width: 18px;
  background: rgba(255, 255, 255, 0.18);
}

.hero-animation.grid {
  background-image:
    linear-gradient(rgba(18, 61, 48, 0.12) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 61, 48, 0.12) 1px, transparent 1px),
    linear-gradient(135deg, var(--color-cream), var(--color-sage));
  background-size:
    52px 52px,
    52px 52px,
    100% 100%;
}

@keyframes heroFloat {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }

  50% {
    transform: translate3d(-18px, 22px, 0) scale(1.06);
  }
}

.section {
  padding: 84px 0;
  --section-title-size: 36px;
  --section-text-size: 15px;
}

.section.paper {
  background: var(--paper);
}

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

.section.dark h2,
.section.dark h3 {
  color: #fff;
}

.section.dark p {
  color: rgba(255, 255, 255, 0.68);
}

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

.section-head p {
  max-width: 500px;
  margin-top: 16px;
}

.section-title {
  max-width: 720px;
}

.section [data-block-title] {
  font-size: var(--section-title-size);
}

.section [data-block-text] {
  font-size: var(--section-text-size);
}

.grid {
  display: grid;
  gap: 22px;
}

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

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

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

.category-card,
.feature-card,
.brand-card,
.info-card,
.store-card,
.admin-card,
.delivery-card,
.faq-item {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
  transition: 0.25s;
}

.category-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.category-card:hover,
.brand-card:hover,
.info-card:hover,
.store-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(18, 61, 48, 0.3);
}

.category-card .index,
.brand-card .index {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--green);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.category-card h3,
.brand-card h3 {
  margin: 24px 0 10px;
}

.category-card p {
  min-height: 54px;
}

.card-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  padding-top: 20px;
  color: var(--green);
  font-weight: 800;
  white-space: nowrap;
  line-height: 1;
}

.goal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.goal-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 178px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--color-surface);
  transition: 0.25s;
  overflow: hidden;
}

.goal-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-sm);
  border-color: rgba(18, 61, 48, 0.3);
}

.goal-index {
  font-family: var(--font-heading);
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--green);
  text-transform: uppercase;
}

.goal-card h3 {
  font-size: 22px;
  line-height: 1.12;
}

.goal-card p {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1.55;
  color: var(--muted);
}

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

.product-card {
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: 0.28s;
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: rgba(18, 61, 48, 0.22);
}

.product-media {
  position: relative;
  background: var(--paper);
  aspect-ratio: 1/1;
  overflow: hidden;
}

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

.product-card:hover .product-media img {
  transform: scale(1.05);
}

.product-badges {
  position: absolute;
  left: 14px;
  right: 14px;
  top: 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}

.product-badges-main {
  display: flex;
  flex-direction: column;
  gap: 7px;
  align-items: flex-start;
  max-width: calc(100% - 112px);
}

.badge {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: var(--badge-bg, var(--green));
  color: #fff;
  font-weight: 800;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.1;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
  overflow-wrap: anywhere;
}

.stock-badge {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(63, 63, 63, 0.86);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.stock-badge.out {
  background: var(--red);
}

.product-card-actions {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  gap: 8px;
  opacity: 0;
  transform: translateY(12px);
  transition: 0.25s;
}

.product-card:hover .product-card-actions {
  opacity: 1;
  transform: translateY(0);
}

.product-card-actions .btn {
  height: 40px;
  flex: 1;
  background: var(--color-surface);
  color: var(--ink);
  border-color: #fff;
}

.product-card-actions .btn:hover {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.product-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.product-brand {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--green);
  font-weight: 800;
  margin-bottom: 8px;
}

.product-title {
  font-size: 18px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.product-title a:hover {
  color: var(--green);
}

.product-desc {
  font-size: 13px;
  line-height: 1.55;
  min-height: 4.65em;
  max-height: 4.65em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-card-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.product-card-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.1;
}

.product-meta {
  display: grid;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 5px;
  height: 58px;
  margin-top: auto;
  padding-top: 16px;
}

.product-meta > div:first-child {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  white-space: nowrap;
}

.product-meta .stars {
  justify-self: start;
  line-height: 1;
  white-space: nowrap;
}

.price {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -0.03em;
}

.product-card .price {
  font-weight: 500;
}

.old-price {
  text-decoration: line-through;
  color: var(--muted);
  font-size: 12px;
  margin-left: 0;
}

.card-buttons {
  display: flex;
  gap: 8px;
  margin-top: 16px;
}

.card-buttons .btn {
  flex: 1;
}

.circle-action {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--color-surface);
  display: grid;
  place-items: center;
}

.circle-action.active {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
}

.catalog-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 28px;
  align-items: start;
}

.filters {
  position: sticky;
  top: 126px;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
}

.filter-group {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 18px;
}

.filter-group:last-child {
  border: 0;
  margin: 0;
  padding: 0;
}

.filter-group h4 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.check-list {
  display: grid;
  gap: 10px;
}

.check-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-size: 14px;
}

.check-list input {
  accent-color: var(--green);
}

.toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px;
}

.toolbar input,
.toolbar select,
.form-control {
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 16px;
  background: var(--color-surface);
  color: var(--ink);
  outline: none;
  min-width: 0;
}

.toolbar input {
  flex: 1;
}

.toolbar select {
  min-width: 210px;
}

.result-note {
  font-family: var(--font-heading);
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.catalog-smart {
  margin-bottom: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--color-surface);
  padding: 18px;
}

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

.catalog-smart-head .eyebrow {
  margin-bottom: 8px;
}

.catalog-smart-head h2 {
  font-size: 28px;
}

.catalog-smart-head a {
  color: var(--green);
  font-weight: 800;
}

.catalog-smart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.catalog-smart-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  background: var(--paper);
}

.catalog-smart-mark {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--color-surface);
  color: var(--green);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 800;
  letter-spacing: 0.1em;
}

.catalog-smart-title {
  display: inline-block;
  color: var(--ink);
  font-weight: 800;
  font-size: 17px;
  line-height: 1.18;
  margin-bottom: 5px;
}

.catalog-smart-card p {
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 9px;
}

.catalog-smart-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.catalog-smart-links a {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.page-hero {
  background: var(--paper);
  padding: 58px 0 44px;
  border-bottom: 1px solid var(--line);
}

.page-hero h1 {
  font-size: 38px;
  line-height: 1.05;
  max-width: 720px;
}

.page-hero p {
  font-size: 15px;
  max-width: 680px;
  margin-top: 14px;
}

.breadcrumbs {
  font-family: var(--font-heading);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 18px;
}

.breadcrumbs a {
  color: var(--green);
  font-weight: 700;
}

.product-detail {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
  gap: 48px;
  align-items: start;
}

.product-gallery {
  display: grid;
  gap: 16px;
}

.gallery-main {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 1/1;
}

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

.gallery-thumbs {
  display: flex;
  gap: 12px;
}

.gallery-thumbs button {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--paper);
  padding: 0;
}

.gallery-thumbs button.active {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

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

.product-panel {
  position: sticky;
  top: 126px;
}

.product-detail-title {
  font-size: 38px;
  line-height: 1.05;
  margin-bottom: 16px;
}

.product-panel .price {
  font-size: 26px;
}

.product-facts {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.fact {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--color-surface);
}

.fact span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 6px;
}

.fact strong {
  color: var(--ink);
}

.option-list {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 20px;
}

.chip {
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--color-surface);
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  font-weight: 700;
  font-size: 13px;
}

.chip.active {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

.qty-row {
  display: flex;
  gap: 10px;
  align-items: center;
  margin: 22px 0;
}

.qty-stepper {
  height: 48px;
  display: flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  overflow: hidden;
  background: var(--color-surface);
}

.qty-stepper button {
  width: 44px;
  border: 0;
  background: var(--color-surface);
}

.qty-stepper input {
  width: 54px;
  text-align: center;
  border: 0;
  outline: 0;
  background: var(--color-surface);
}

.tabs {
  margin-top: 46px;
}

.tab-buttons {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.tab-buttons button {
  height: 42px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--color-surface);
  padding: 0 16px;
  font-weight: 800;
}

.tab-buttons button.active {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.tab-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  background: var(--color-surface);
}

.review {
  border-top: 1px solid var(--line);
  padding-top: 16px;
  margin-top: 16px;
}

.review small {
  display: block;
  color: var(--muted);
  margin: 8px 0;
}

.review-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
}

.review-form h3 {
  font-size: 18px;
}

.review-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.stars {
  color: var(--gold);
  letter-spacing: 2px;
}

.review-form {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  padding: 18px;
  margin-top: 24px;
}

.review-form h3 {
  font-size: 20px;
  margin-bottom: 2px;
}

.review-field {
  display: grid;
  gap: 7px;
}

.review-field span {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 800;
}

.review-field input,
.review-field select,
.review-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 13px 14px;
  outline: none;
  color: var(--ink);
  font: inherit;
}

.review-field textarea {
  min-height: 112px;
  resize: vertical;
}

.review-field input:focus,
.review-field select:focus,
.review-field textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

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

.cart-list {
  display: grid;
  gap: 14px;
}

.cart-item {
  display: grid;
  grid-template-columns: 110px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.cart-item img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 14px;
  background: var(--paper);
}

.cart-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

.cart-item small {
  color: var(--muted);
}

.cart-item .price {
  font-size: 16px;
}

.cart-side {
  position: sticky;
  top: 126px;
  display: grid;
  gap: 16px;
}

.summary-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
}

.summary-card h3 {
  font-size: 20px;
  margin-bottom: 16px;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.summary-row:last-child {
  border: 0;
}

.summary-total {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
}

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

.checkout-form #orderAddress,
.checkout-form .delivery-options,
.checkout-form .pickup-store-options,
.checkout-form select,
.checkout-form textarea,
.checkout-form button {
  grid-column: 1/-1;
}

.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.admin-form input,
.admin-form textarea,
.admin-form select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 13px 14px;
  outline: none;
  color: var(--ink);
}

.checkout-form textarea,
.admin-form textarea {
  min-height: 92px;
  resize: vertical;
}

.delivery-options {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.delivery-option {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 14px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  flex: 1 1 150px;
}

.delivery-option input {
  accent-color: var(--green);
  margin-top: 3px;
}

.delivery-option:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.empty-state {
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  padding: 56px 24px;
  background: var(--color-surface);
}

.empty-state h3 {
  margin-bottom: 10px;
}

.compare-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.compare-empty-state h3,
.compare-empty-state p {
  margin: 0;
}

.promo-row {
  display: flex;
  gap: 8px;
}

.promo-row input {
  flex: 1;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--color-surface);
}

.notice {
  border-radius: 14px;
  padding: 14px 16px;
  background: var(--green-soft);
  color: var(--green);
  font-weight: 700;
  font-size: 14px;
}

.notice.warn {
  background: #fff4e0;
  color: #8a5a00;
}

.notice.error {
  background: #ffe9e7;
  color: var(--red);
}

.admin-toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.delivery-options {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.delivery-option {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 54px;
  border-radius: 999px;
  padding: 0 18px;
  background: var(--color-surface);
  transition: 0.2s;
}

.delivery-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.delivery-radio {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid var(--color-beige);
  background: var(--color-surface);
  box-shadow: inset 0 0 0 4px #fff;
  flex: 0 0 auto;
}

.delivery-option-text {
  display: flex;
  align-items: baseline;
  gap: 8px;
  min-width: 0;
  flex-wrap: wrap;
}

.delivery-option strong {
  font-size: 15px;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--ink);
  font-weight: 800;
}

.delivery-option small {
  font-size: 14px;
  line-height: 1.25;
  color: var(--text);
}

.delivery-option:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
  background: linear-gradient(180deg, var(--color-surface), var(--color-cream));
}

.delivery-option:has(input:checked) .delivery-radio {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}

.delivery-option:hover {
  border-color: rgba(18, 61, 48, 0.45);
  transform: translateY(-1px);
}

.checkout-form input.readonly {
  background: var(--paper);
  color: var(--ink);
  font-weight: 500;
}

.pickup-store-options {
  display: grid;
  gap: 8px;
}

.pickup-store-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  font-weight: 800;
}

.pickup-store-list {
  display: grid;
  gap: 8px;
}

.pickup-store {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 12px;
  cursor: pointer;
}

.pickup-store input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pickup-store .delivery-radio {
  margin-top: 2px;
}

.pickup-store-text {
  display: grid;
  gap: 3px;
  color: var(--text);
  font-weight: 400;
}

.pickup-store-title {
  font-size: 14px;
  line-height: 1.25;
  color: var(--ink);
  font-weight: 400;
}

.pickup-store-address,
.pickup-store-note {
  font-size: 13px;
  line-height: 1.35;
  color: var(--text);
  font-weight: 400;
}

.pickup-store:has(input:checked) {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

.pickup-store:has(input:checked) .delivery-radio {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}

.pickup-hint {
  border: 1px dashed var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 12px;
  color: var(--muted);
  font-size: 13px;
}

.brand-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

.brand-card {
  min-height: 190px;
  height: 100%;
  display: grid;
  grid-template-rows: 18px 56px 30px 24px;
  align-content: start;
  gap: 10px;
  min-width: 0;
}

.brand-card h3 {
  margin: 0;
  min-width: 0;
  max-width: 100%;
  font-size: 21px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-card p {
  margin: 0;
  color: var(--muted);
  white-space: nowrap;
}

.brand-letter {
  height: 56px;
  display: flex;
  align-items: center;
  font-size: 36px;
  line-height: 1;
  color: var(--green);
  font-weight: 800;
  letter-spacing: 0;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.store-card h3 {
  margin-bottom: 10px;
}

.map-box {
  min-height: 340px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--paper), var(--color-surface));
  display: grid;
  place-items: center;
  color: var(--muted);
  font-family: var(--font-heading);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: center;
  padding: 24px;
  overflow: hidden;
}

.map-box.has-map {
  display: block;
  padding: 0;
  background: var(--color-surface);
}

.map-box iframe {
  width: 100%;
  height: 420px;
  border: 0;
  display: block;
}

.faq-list {
  display: grid;
  gap: 14px;
}

.faq-item h3 {
  font-size: 22px;
  margin-bottom: 10px;
}

.faq-item p {
  color: var(--muted);
  line-height: 1.7;
}

.faq-item p + p {
  margin-top: 10px;
}

.brand-media {
  height: 56px;
  display: grid;
  align-items: center;
  min-width: 0;
}

.brand-media .brand-letter {
  height: 100%;
}

.brand-card.has-image {
  grid-template-rows: 18px 72px 30px 24px;
}

.brand-card.has-image .brand-media {
  height: 72px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 10px;
  overflow: hidden;
}

.brand-card.has-image .brand-media img {
  width: 100%;
  height: 100%;
  object-fit: var(--brand-img-fit, contain);
  object-position: var(--brand-img-x, 50%) var(--brand-img-y, 50%);
  transform: scale(var(--brand-img-scale, 1));
  transform-origin: var(--brand-img-x, 50%) var(--brand-img-y, 50%);
}

.brand-image-admin-list {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.brand-image-admin-preview {
  height: 86px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 12px;
}

.brand-image-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: var(--brand-img-fit, contain);
  object-position: var(--brand-img-x, 50%) var(--brand-img-y, 50%);
  transform: scale(var(--brand-img-scale, 1));
  transform-origin: var(--brand-img-x, 50%) var(--brand-img-y, 50%);
}

.brand-image-admin-preview span {
  font-size: 34px;
  line-height: 1;
  color: var(--green);
  font-weight: 800;
}

.about-lead {
  max-width: 900px;
}

.about-lead h2 {
  font-size: 52px;
  line-height: 1.02;
}

.about-lead p {
  font-size: 18px;
  margin-top: 18px;
  max-width: 760px;
}

.about-split {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(360px, 1.2fr);
  gap: 36px;
  align-items: start;
}

.about-split p {
  font-size: 18px;
  color: var(--text);
}

.legal-box {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(360px, 1.15fr);
  gap: 36px;
  align-items: start;
}

.legal-box p {
  color: var(--muted);
}

.legal-box p + p {
  margin-top: 10px;
}

.about-legal-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.admin-card h3,
.delivery-card h3 {
  margin-bottom: 16px;
}

.service-grid {
  align-items: start;
}

.service-grid .service-card {
  margin-top: 38px;
  padding: 32px;
  display: grid;
  align-content: start;
  gap: 10px;
}

.trust-section {
  padding: 44px 0;
}

.trust-section .section-head {
  margin-bottom: 22px;
}

.trust-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.trust-item {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  padding: 22px 24px 22px 0;
}

.trust-item + .trust-item {
  border-left: 1px solid var(--line);
  padding-left: 24px;
}

.trust-index {
  color: var(--green);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  padding-top: 4px;
}

.trust-item h3 {
  font-size: 18px;
  margin-bottom: 7px;
}

.trust-item p {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.admin-login {
  min-height: 70vh;
  display: grid;
  place-items: center;
  background: var(--paper);
}

.login-card {
  width: min(420px, calc(100% - 40px));
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
}

.login-card h1 {
  font-size: 36px;
  margin-bottom: 12px;
}

.admin-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

.admin-nav {
  position: sticky;
  top: 110px;
  z-index: 5;
  background: var(--color-surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px;
  display: flex;
  gap: 8px;
  overflow: auto;
}

.admin-nav button {
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: center;
  white-space: nowrap;
  padding: 13px 16px;
  font-weight: 800;
  color: var(--text);
  flex: 0 0 auto;
}

.admin-nav button.active {
  background: var(--green);
  color: #fff;
}

.admin-section {
  display: none;
}

.admin-section.active {
  display: block;
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.admin-form {
  display: grid;
  gap: 12px;
}

.table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--color-surface);
}

.admin-table-actions {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.admin-table th,
.admin-table td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 14px;
}

.admin-table th {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  background: var(--paper);
}

.admin-table tr:last-child td {
  border-bottom: 0;
}

.admin-thumb {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--paper);
}

.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--color-surface);
}

.toggle-row input {
  accent-color: var(--green);
}

.login-card .form-control {
  width: 100%;
  margin-bottom: 14px;
}

.admin-shell .section-head h1 {
  font-size: 52px;
}

.admin-content {
  min-width: 0;
}

.admin-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  align-items: start;
}

.admin-form {
  gap: 16px;
}

.admin-form-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 16px;
}

.admin-form-section h4,
.admin-block-editor h4 {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.admin-form-section textarea {
  min-height: 104px;
}

.admin-form-section .field-row textarea {
  min-height: 88px;
}

.admin-card p {
  margin-bottom: 18px;
}

.admin-hint {
  margin: 0 !important;
  font-size: 12px;
  line-height: 1.45;
  color: var(--muted);
}

.admin-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.admin-input-field {
  display: grid;
  gap: 7px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 12px 14px;
}

.admin-input-field span {
  font-weight: 800;
  color: var(--ink);
}

.admin-input-field small {
  color: var(--muted);
  line-height: 1.35;
}

.admin-input-field input,
.admin-input-field select {
  padding-left: 0;
  padding-right: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.color-field,
.range-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--color-surface);
  color: var(--text);
  font-weight: 700;
}

.color-field input {
  width: 64px;
  height: 40px;
  padding: 2px;
  border-radius: 10px;
}

.range-field {
  display: grid;
  gap: 8px;
}

.range-field input {
  padding: 0;
}

.mini-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 800;
}

.mini-toggle input {
  accent-color: var(--green);
}

.admin-blocks {
  display: grid;
  gap: 14px;
}

.admin-block-editor {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--color-surface);
  padding: 14px;
}

.admin-block-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-badge-preview {
  position: static;
  box-shadow: none;
}

.footer-badge-admin-preview {
  min-height: 58px;
  border-radius: 14px;
  background: var(--ink);
  border: 1px solid rgba(63, 63, 63, 0.08);
  display: flex;
  align-items: center;
  justify-content: flex-start;
  padding: 12px 14px;
  overflow: hidden;
}

.footer-badge-admin-preview img {
  max-width: 180px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.footer-badge-admin-preview span {
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}

.service-card {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.12);
}

.login-card form {
  display: grid;
  gap: 12px;
}

.login-card .form-control {
  margin-bottom: 0;
}

.admin-recovery-toggle {
  margin-top: 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.admin-recovery-form {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.admin-recovery-form > p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.admin-recovery-fields {
  display: grid;
  gap: 12px;
}

.admin-recovery-status {
  min-height: 20px;
}

.admin-recovery-status.is-error {
  color: #a23535;
}

.hero-color-panel {
  display: grid;
  gap: 12px;
}

.hero-color-panel h4 {
  font-size: 12px;
}

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

.color-grid .btn {
  height: auto;
  min-height: 66px;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(63, 63, 63, 0.42);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal.open {
  display: flex;
}

.modal-card {
  background: var(--color-surface);
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  width: min(820px, 100%);
  max-height: 88vh;
  overflow: auto;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.modal-body {
  padding: 20px;
}

.modal-close {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--color-surface);
}

.quick-view-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 24px;
}

.quick-view-grid img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--paper);
}

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 120;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 14px 18px;
  box-shadow: var(--shadow);
  font-weight: 700;
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.footer {
  background: var(--color-footer);
  color: #fff;
  padding: 56px 0 26px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(4, 1fr);
  gap: 28px;
  margin-bottom: 34px;
}

.footer h3 {
  color: #fff;
  margin-bottom: 14px;
}

.footer p,
.footer a,
.footer span {
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
}

.footer a {
  transition: 0.2s;
}

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

.footer-links {
  display: grid;
  gap: 10px;
}

.footer-badges {
  display: flex;
  align-items: center;
  gap: 16px 22px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding: 22px 0;
  margin-bottom: 2px;
}

.footer-badge,
.footer-badge-link {
  display: inline-flex;
  align-items: center;
}

.footer-badge {
  color: #fff !important;
  font-weight: 800;
  font-size: 22px;
  line-height: 1;
  letter-spacing: -0.035em;
  opacity: 0.94;
  white-space: nowrap;
  text-transform: none;
}

.footer-badge-media {
  min-height: 30px;
}

.footer-badge-img {
  display: block;
  max-width: 156px;
  max-height: 34px;
  width: auto;
  height: auto;
  object-fit: contain;
  filter: brightness(0) invert(1);
  opacity: 0.96;
}

.footer-badge-link:hover {
  text-decoration: none;
  transform: translateY(-1px);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: 20px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 13px;
}

.footer-admin-link {
  display: inline-flex;
  margin-top: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 10px !important;
  opacity: 0.28;
}

.footer-admin-link:hover {
  opacity: 0.72;
  text-decoration: none !important;
}

@media (max-width: 1100px) {
  .main-nav,
  .header-search {
    display: none;
  }

  .burger {
    display: inline-flex;
  }

  .header-inner {
    height: 68px;
  }

  .mobile-panel.open {
    display: block;
  }

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

  .catalog-layout,
  .cart-layout,
  .product-detail,
  .admin-layout,
  .about-split,
  .legal-box {
    grid-template-columns: 1fr;
  }

  .filters,
  .cart-side,
  .product-panel,
  .admin-nav {
    position: static;
  }

  .admin-nav {
    display: flex;
    overflow: auto;
  }

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

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

@media (max-width: 760px) {
  .container {
    width: min(100% - 28px, var(--container));
  }

  .header-top {
    display: none;
  }

  .brand {
    font-size: 23px;
  }

  .brand-mark {
    width: 32px;
    height: 32px;
  }

  .header-actions .icon-link span:not(.count-pill),
  .admin-pill {
    display: none;
  }

  .hero {
    min-height: auto;
  }

  .hero-content {
    padding: 66px 0;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

  .section {
    padding: 64px 0;
  }

  .section-head {
    display: block;
  }

  .product-grid,
  .grid-3,
  .grid-4,
  .grid-2,
  .store-grid,
  .admin-grid,
  .brand-grid {
    grid-template-columns: 1fr;
  }

  .toolbar {
    display: grid;
  }

  .toolbar select {
    min-width: 0;
    width: 100%;
  }

  .cart-item {
    grid-template-columns: 86px 1fr;
  }

  .cart-item img {
    width: 86px;
    height: 86px;
  }

  .cart-item > div:last-child {
    grid-column: 1/-1;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }

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

  .field-row {
    grid-template-columns: 1fr;
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
  }

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

  .footer-bottom {
    display: grid;
  }

  h1 {
    font-size: 40px;
  }

  .page-hero {
    padding: 44px 0 34px;
  }

  .page-hero h1,
  .product-detail-title {
    font-size: 32px;
  }

  .about-lead h2 {
    font-size: 36px;
  }

  .product-card-actions {
    opacity: 1;
    transform: none;
  }

  .hero-actions .btn {
    width: 100%;
  }
}

@media (max-width: 760px) {
  .service-grid .service-card {
    margin-top: 0;
    padding: 24px;
  }
}

/* Mobile refinement layer */
@media (max-width: 1100px) {
  .site-header {
    backdrop-filter: blur(14px);
  }

  .header-inner {
    gap: 12px;
  }

  .header-actions {
    margin-left: auto;
    gap: 8px;
  }

  .mobile-panel.open {
    display: block;
    max-height: calc(100vh - 68px);
    overflow: auto;
    overscroll-behavior: contain;
  }

  .mobile-panel .container {
    gap: 0;
  }

  .mobile-panel a {
    display: flex;
    align-items: center;
    min-height: 46px;
    padding: 10px 0;
  }

  .mobile-panel .header-search {
    display: block !important;
    min-width: 0;
    max-width: none;
    margin-top: 14px;
  }

  .mobile-panel .header-search input {
    height: 48px;
  }

  .mobile-panel .header-search button {
    top: 8px;
  }

  .filters {
    margin-bottom: 18px;
  }
}

@media (max-width: 760px) {
  :root {
    --radius: 16px;
    --radius-sm: 10px;
  }

  body {
    padding-bottom: 78px;
  }

  .container {
    width: min(100% - 24px, var(--container));
  }

  .header-inner {
    height: 64px;
  }

  .brand {
    font-size: 22px;
    gap: 9px;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    font-size: 14px;
  }

  .mobile-search-trigger {
    display: inline-flex;
  }

  .header-actions .icon-link[href='wishlist.html'],
  .header-actions .icon-link[href='compare.html'] {
    display: none;
  }

  .icon-link,
  .burger,
  .icon-btn {
    min-width: 38px;
    width: 38px;
    height: 38px;
    font-size: 12px;
  }

  .count-pill {
    right: -4px;
    top: -7px;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
  }

  .mobile-search-panel {
    position: sticky;
    top: 64px;
    z-index: 49;
  }

  .quick-contact {
    display: none;
    right: 12px;
    bottom: 88px;
  }

  .quick-contact-button {
    width: 56px;
    height: 56px;
    padding: 0;
    border-radius: 999px;
    font-size: 0;
  }

  .quick-contact-button::before {
    content: '☎';
    font-size: 20px;
    line-height: 1;
  }

  .quick-contact-panel {
    right: 0;
    min-width: 184px;
  }

  .mobile-bottom-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 85;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    min-height: 70px;
    padding: 8px max(10px, env(safe-area-inset-left)) calc(8px + env(safe-area-inset-bottom))
      max(10px, env(safe-area-inset-right));
    background: rgba(254, 253, 251, 0.94);
    border-top: 1px solid var(--line);
    backdrop-filter: blur(16px);
  }

  .mobile-bottom-nav a {
    position: relative;
    display: grid;
    place-items: center;
    align-content: center;
    gap: 3px;
    min-width: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
  }

  .mobile-bottom-nav a.active {
    color: var(--green);
  }

  .bottom-nav-icon {
    font-size: 20px;
    line-height: 1;
  }

  .bottom-nav-count {
    position: absolute;
    top: 4px;
    right: calc(50% - 24px);
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    border: 2px solid #fff;
  }

  .btn {
    width: 100%;
    min-height: 46px;
    height: auto;
    padding: 12px 18px;
    text-align: center;
    white-space: normal;
    line-height: 1.2;
  }

  .btn.small {
    width: auto;
    min-height: 36px;
    padding: 9px 12px;
  }

  .section-head .btn {
    margin-top: 20px;
  }

  .hero {
    min-height: auto;
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(246, 243, 236, 0.9), rgba(246, 243, 236, 0.72));
  }

  .hero-content,
  .hero[data-align='left'] .hero-content,
  .hero[data-align='right'] .hero-content,
  .hero[data-align='center'] .hero-content {
    justify-self: stretch;
    margin: 0;
    max-width: none;
    padding: 54px 0 44px;
    text-align: left;
  }

  .hero[data-align='center'] h1,
  .hero[data-align='center'] .hero-text {
    margin-left: 0;
    margin-right: 0;
  }

  .eyebrow {
    font-size: 11px;
    letter-spacing: 0.14em;
    margin-bottom: 14px;
  }

  h1 {
    font-size: 34px;
    line-height: 1.04;
  }

  h2 {
    font-size: 30px;
    line-height: 1.06;
  }

  h3 {
    font-size: 21px;
    line-height: 1.12;
  }

  .hero h1 {
    font-size: clamp(32px, 9vw, 40px) !important;
    line-height: 1.04;
  }

  .hero-text {
    font-size: 15px !important;
    margin: 14px 0 22px;
  }

  .section [data-block-title] {
    font-size: clamp(28px, 8vw, 34px) !important;
  }

  .section [data-block-text] {
    font-size: 15px !important;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 26px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .metric {
    padding: 12px;
    border-radius: 14px;
  }

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

  .metric span {
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  .section {
    padding: 54px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head p {
    margin-top: 12px;
  }

  .grid {
    gap: 14px;
  }

  .category-card,
  .feature-card,
  .brand-card,
  .info-card,
  .store-card,
  .admin-card,
  .delivery-card,
  .faq-item {
    padding: 18px;
  }

  .category-card h3,
  .brand-card h3 {
    margin-top: 18px;
  }

  .category-card p {
    min-height: 0;
  }

  .card-arrow {
    padding-top: 18px;
  }

  .goal-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(230px, 74vw);
    gap: 12px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -12px;
    padding: 0 12px 8px;
    scrollbar-width: none;
  }

  .goal-grid::-webkit-scrollbar {
    display: none;
  }

  .goal-card {
    min-height: 164px;
    padding: 18px;
    scroll-snap-align: start;
  }

  .goal-card h3 {
    font-size: 20px;
  }

  .goal-card p {
    font-size: 13px;
  }

  .product-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-media {
    aspect-ratio: 1/1;
  }

  .product-body {
    padding: 16px;
  }

  .product-title {
    font-size: 20px;
  }

  .product-desc {
    min-height: auto;
    max-height: 4.8em;
  }

  .product-card-actions {
    position: static;
    opacity: 1;
    transform: none;
    padding: 0 16px 16px;
  }

  .product-card-actions .btn {
    height: auto;
    min-height: 42px;
  }

  .card-buttons {
    display: grid;
    grid-template-columns: 1fr 44px 44px;
  }

  .card-buttons .circle-action {
    width: 44px;
    height: 44px;
  }

  .catalog-layout {
    gap: 18px;
  }

  .catalog-smart {
    padding: 14px;
    border-radius: 16px;
  }

  .catalog-smart-head {
    align-items: flex-start;
    margin-bottom: 12px;
  }

  .catalog-smart-head h2 {
    font-size: 24px;
  }

  .catalog-smart-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(276px, 84vw);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -8px;
    padding: 0 8px 4px;
    scrollbar-width: none;
  }

  .catalog-smart-grid::-webkit-scrollbar {
    display: none;
  }

  .catalog-smart-card {
    grid-template-columns: 52px minmax(0, 1fr);
    scroll-snap-align: start;
  }

  .catalog-smart-mark {
    width: 52px;
    height: 52px;
  }

  .filters {
    padding: 16px;
    border-radius: 16px;
  }

  .check-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px 12px;
  }

  .check-list label {
    font-size: 13px;
    min-width: 0;
  }

  .toolbar {
    gap: 10px;
    padding: 10px;
    border-radius: 16px;
  }

  .toolbar input,
  .toolbar select,
  .form-control {
    height: 44px;
    width: 100%;
    min-width: 0;
  }

  .result-note {
    font-size: 11px;
  }

  .page-hero {
    padding: 34px 0 30px;
  }

  .page-hero h1,
  .product-detail-title {
    font-size: 32px;
  }

  .page-hero p {
    font-size: 14px;
  }

  .breadcrumbs {
    display: flex;
    gap: 8px;
    overflow: auto;
    white-space: nowrap;
    padding-bottom: 2px;
  }

  .product-detail {
    gap: 20px;
  }

  .product-gallery {
    width: min(100%, 420px);
    margin: 0 auto;
    gap: 10px;
  }

  .gallery-main {
    border-radius: 16px;
    max-height: 420px;
    aspect-ratio: 1/0.92;
  }

  .gallery-thumbs {
    overflow: auto;
    padding-bottom: 4px;
  }

  .gallery-thumbs button {
    flex: 0 0 72px;
    width: 72px;
    height: 72px;
  }

  .product-panel {
    position: static;
  }

  .product-detail-title {
    font-size: 28px;
    line-height: 1.08;
  }

  .product-facts {
    gap: 10px;
    margin: 18px 0;
  }

  .qty-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .qty-stepper {
    width: 100%;
    justify-content: space-between;
  }

  .qty-stepper input {
    flex: 1;
  }

  .tab-buttons {
    flex-wrap: nowrap;
    overflow: auto;
    padding-bottom: 4px;
  }

  .tab-buttons button {
    flex: 0 0 auto;
  }

  .tab-content {
    padding: 18px;
    border-radius: 16px;
  }

  .review-summary {
    align-items: flex-start;
  }

  .review-form {
    padding: 16px;
  }

  .cart-layout {
    gap: 18px;
  }

  .cart-item {
    grid-template-columns: 82px minmax(0, 1fr);
    gap: 12px;
    padding: 12px;
  }

  .cart-item img {
    width: 82px;
    height: 82px;
  }

  .cart-item h3 {
    font-size: 16px;
  }

  .summary-card {
    padding: 18px;
    border-radius: 16px;
  }

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

  .promo-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .delivery-option {
    border-radius: 16px;
    min-height: 58px;
    padding: 12px 14px;
  }

  .delivery-option-text {
    display: grid;
    gap: 2px;
  }

  .brand-grid {
    gap: 14px;
  }

  .brand-card {
    min-height: 156px;
    grid-template-rows: auto 46px auto auto;
    padding: 18px;
  }

  .brand-card.has-image {
    grid-template-rows: auto 58px auto auto;
  }

  .brand-card.has-image .brand-media {
    height: 58px;
    padding: 8px;
  }

  .brand-letter {
    height: 46px;
    font-size: 32px;
  }

  .map-box {
    min-height: 260px;
    font-size: 11px;
  }

  .map-box iframe {
    height: 320px;
  }

  .about-lead h2 {
    font-size: 34px;
  }

  .about-lead p,
  .about-split p {
    font-size: 16px;
  }

  .about-split,
  .legal-box {
    gap: 20px;
  }

  .admin-shell .section-head h1 {
    font-size: 36px;
  }

  .admin-nav {
    margin: 0 -12px;
    padding: 8px 12px;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  .admin-nav button {
    padding: 11px 13px;
  }

  .admin-grid {
    gap: 14px;
  }

  .admin-card {
    padding: 16px;
  }

  .admin-form-section,
  .admin-block-editor {
    padding: 13px;
    border-radius: 14px;
  }

  .admin-block-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .toggle-row,
  .color-field {
    align-items: flex-start;
  }

  .color-grid {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .admin-actions .btn {
    width: 100%;
  }

  .table-wrap {
    border-radius: 14px;
  }

  .admin-table {
    min-width: 620px;
  }

  .modal {
    padding: 12px;
  }

  .modal-card {
    max-height: 92vh;
    border-radius: 16px;
  }

  .modal-head,
  .modal-body {
    padding: 16px;
  }

  .quick-view-grid {
    grid-template-columns: 1fr;
  }

  .quick-view-grid h2 {
    font-size: 30px !important;
  }

  .footer {
    padding: 42px 0 22px;
  }

  .footer-grid {
    gap: 22px;
    margin-bottom: 24px;
  }

  .footer-badges {
    justify-content: flex-start;
    gap: 12px 16px;
  }

  .footer-badge {
    font-size: 18px;
  }

  .footer-badge-img {
    max-width: 124px;
    max-height: 30px;
  }

  .footer-bottom {
    gap: 8px;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 88px;
    text-align: center;
  }
}

/* Brand logos read as one continuous partner rail, not as product cards. */
body[data-page='home'] #homeBrands {
  grid-auto-columns: clamp(112px, 12vw, 148px);
  gap: 28px;
  align-items: center;
}

body[data-page='home'] #homeBrands .brand-card,
body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
  display: block !important;
  height: 82px;
  min-height: 82px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body[data-page='home'] #homeBrands .brand-card:hover {
  color: var(--green);
  transform: none !important;
}

body[data-page='home'] #homeBrands .brand-media,
body[data-page='home'] #homeBrands .brand-card.has-image .brand-media {
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  overflow: hidden;
}

body[data-page='home'] #homeBrands .brand-media img,
body[data-page='home'] #homeBrands .brand-card.has-image .brand-media img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center;
  transform: none;
}

body[data-page='home'] #homeBrands .brand-letter {
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  font-size: 34px;
  font-weight: 500;
}

body[data-page='home'] [data-home-block='brands'] .btn-light {
  min-height: 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}

body[data-page='home'] [data-home-block='brands'] .btn-light:hover {
  background: transparent;
  color: var(--green-dark);
  transform: none;
}

.brand-image-admin-preview img {
  object-fit: contain;
  object-position: center;
  transform: none;
}

.brand-image-admin-preview span,
.home-gallery-admin-preview span {
  padding: 12px;
  text-align: center;
}

@media (max-width: 760px) {
  body[data-page='home'] #homeBrands {
    grid-auto-columns: clamp(110px, 30vw, 142px);
    gap: 16px;
  }

  body[data-page='home'] #homeBrands .brand-card,
  body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
    height: 66px;
    min-height: 66px;
  }
}

@media (max-width: 760px) {
  .trust-section {
    padding: 34px 0;
  }

  .trust-section .section-head {
    margin-bottom: 18px;
  }

  .trust-list {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(245px, 78vw);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -12px;
    padding: 0 12px 8px;
    border: 0;
    scrollbar-width: none;
  }

  .trust-list::-webkit-scrollbar {
    display: none;
  }

  .trust-item,
  .trust-item + .trust-item {
    min-height: 118px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--color-surface);
    scroll-snap-align: start;
  }

  .trust-item h3 {
    font-size: 17px;
  }

  .trust-item p {
    font-size: 13px;
  }
}

@media (max-width: 430px) {
  .container {
    width: min(100% - 20px, var(--container));
  }

  .header-inner {
    gap: 8px;
  }

  .brand span:last-child {
    display: none;
  }

  .header-actions {
    gap: 6px;
  }

  .icon-link,
  .burger,
  .icon-btn {
    min-width: 36px;
    width: 36px;
    height: 36px;
  }

  .hero-metrics {
    grid-template-columns: 1fr;
  }

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

  .metric strong {
    margin: 0;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

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

  .card-buttons {
    grid-template-columns: 1fr 42px 42px;
  }
}

.catalog-layout > * {
  min-width: 0;
}

.catalog-filter-shell {
  min-width: 0;
}

.filter-toggle {
  display: none;
}

@media (max-width: 760px) {
  .hero {
    min-height: auto;
    align-items: start;
  }

  .hero-media video,
  .hero-media img {
    object-position: center;
  }

  .hero-content,
  .hero[data-align='left'] .hero-content,
  .hero[data-align='right'] .hero-content,
  .hero[data-align='center'] .hero-content {
    padding: 42px 0 34px;
  }

  #homeCategories,
  #homeBrands {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(260px, 82vw);
    gap: 14px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -12px;
    padding: 0 12px 10px;
    scrollbar-width: none;
  }

  #homeBrands {
    grid-auto-columns: minmax(238px, 76vw);
  }

  #homeCategories::-webkit-scrollbar,
  #homeBrands::-webkit-scrollbar {
    display: none;
  }

  #homeCategories > *,
  #homeBrands > * {
    scroll-snap-align: start;
  }

  #homeCategories .category-card,
  #homeBrands .brand-card {
    min-height: 176px;
  }

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

  .product-grid .empty-state {
    grid-column: 1/-1;
  }

  .product-card {
    border-radius: 14px;
    box-shadow: none;
  }

  .product-card:hover {
    transform: none;
    box-shadow: var(--shadow-sm);
  }

  .product-media {
    aspect-ratio: 1/1.08;
  }

  .product-badges {
    left: 8px;
    right: 8px;
    top: 8px;
  }

  .product-badges-main {
    max-width: 100%;
  }

  .product-card .badge {
    padding: 6px 8px;
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .product-card .stock-badge {
    display: none;
  }

  .product-card-actions {
    display: none;
  }

  .product-body {
    padding: 10px;
  }

  .product-brand {
    display: none;
  }

  .product-meta {
    order: 1;
    height: auto;
    margin: 0;
    padding-top: 0;
    gap: 0;
  }

  .product-meta .stars {
    display: none;
  }

  .product-title {
    order: 2;
    min-height: 2.44em;
    margin: 8px 0 0;
    font-size: 14px;
    line-height: 1.22;
    letter-spacing: -0.03em;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .product-desc {
    display: none;
  }

  .product-card-tags {
    order: 2;
    gap: 4px;
    margin-top: 8px;
  }

  .product-card-tags span {
    min-height: 21px;
    padding: 3px 6px;
    font-size: 10px;
  }

  .product-card .price {
    font-size: 15px;
    font-weight: 800;
  }

  .old-price {
    font-size: 11px;
  }

  .card-buttons {
    order: 4;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    margin-top: 10px;
  }

  .card-buttons .btn {
    width: 100%;
    min-height: 38px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.15;
  }

  .card-buttons .circle-action {
    display: none;
  }

  .catalog-filter-shell {
    display: grid;
    gap: 10px;
    margin-bottom: 12px;
  }

  .filter-toggle {
    display: flex;
    width: 100%;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--green);
    border-radius: 999px;
    background: var(--color-surface);
    color: var(--green);
    font-weight: 800;
  }

  .filter-toggle::after {
    content: '';
    width: 8px;
    height: 8px;
    margin-left: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-2px);
    transition: 0.2s;
  }

  .catalog-filter-shell.open .filter-toggle::after {
    transform: rotate(225deg) translateY(-1px);
  }

  .catalog-filter-shell .filters {
    display: none;
    margin-bottom: 0;
  }

  .catalog-filter-shell.open .filters {
    display: block;
  }

  .toolbar {
    grid-template-columns: 1fr;
  }
}

/* Persistent light/dark storefront theme. */
.footer-brand-tools {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.footer-brand-tools .footer-admin-link {
  margin-top: 0;
}

.footer-theme-toggle {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 2px;
  background: transparent;
  color: rgba(255, 255, 255, 0.74);
  font-size: 17px;
  line-height: 1;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}

.footer-theme-toggle:hover {
  border-color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

html[data-theme='dark'] {
  --white: var(--color-forest);
  --paper: var(--color-forest);
  --paper-2: var(--color-graphite);
  --ink: var(--color-cream);
  --text: var(--color-cream);
  --muted: var(--color-beige);
  --line: var(--color-sage);
  --green: var(--color-sage);
  --green-dark: var(--color-sage);
  --green-soft: var(--color-forest);
  --shadow: 0 18px 55px rgba(0, 0, 0, 0.24);
  --shadow-sm: 0 8px 24px rgba(0, 0, 0, 0.2);
}

html[data-theme='dark'] body {
  background: var(--white);
  color: var(--text);
}

html[data-theme='dark'] .site-header {
  background: rgba(18, 61, 48, 0.94);
  border-bottom-color: var(--line);
}

html[data-theme='dark'] .header-top,
html[data-theme='dark'] .mobile-panel,
html[data-theme='dark'] .mobile-search-panel,
html[data-theme='dark'] .mobile-bottom-nav {
  background: var(--color-forest);
  border-color: var(--line);
}

html[data-theme='dark']
  :where(
    .brand,
    h1,
    h2,
    h3,
    h4,
    h5,
    h6,
    .price,
    .summary-total,
    .fact strong,
    .filter-group h4,
    .catalog-smart-title,
    .product-title a,
    .cart-drawer-item h3,
    .cart-drawer-item-bottom strong,
    .cart-drawer-total strong,
    .cart-drawer-empty span,
    .admin-input-field span,
    .admin-form-section h4,
    .admin-block-editor h4,
    .tab-buttons button
  ) {
  color: var(--color-cream);
}

html[data-theme='dark']
  :where(
    .category-card,
    .feature-card,
    .brand-card,
    .info-card,
    .store-card,
    .admin-card,
    .admin-nav,
    .admin-tools,
    .delivery-card,
    .faq-item,
    .goal-card,
    .product-card,
    .filters,
    .toolbar,
    .catalog-smart,
    .catalog-smart-card,
    .gallery-main,
    .fact,
    .chip,
    .qty-stepper,
    .tab-buttons button,
    .tab-content,
    .review-form,
    .cart-item,
    .summary-card,
    .delivery-option,
    .pickup-store,
    .map-box,
    .empty-state,
    .modal-card,
    .login-card,
    .admin-form-section,
    .admin-block-editor,
    .admin-input-field,
    .toggle-row,
    .color-field,
    .range-field,
    .admin-file-field,
    .table-wrap,
    .admin-related-option,
    .admin-storage-status > span,
    .admin-backup-item,
    .analytics-kpi,
    .hero-slide-mode,
    .cart-drawer-panel,
    .cart-drawer-foot
  ) {
  background: var(--color-forest);
  border-color: var(--line);
}

html[data-theme='dark']
  :where(
    .header-search input,
    .toolbar input,
    .toolbar select,
    .form-control,
    .promo-row input,
    .checkout-form input,
    .checkout-form textarea,
    .checkout-form select,
    .admin-form input,
    .admin-form textarea,
    .admin-form select,
    .review-field input,
    .review-field select,
    .review-field textarea,
    .qty-stepper input,
    .qty-stepper button,
    .chip,
    .icon-link,
    .icon-btn,
    .burger,
    .circle-action,
    .product-card-actions .btn,
    .cart-drawer-close,
    .cart-drawer-qty button
  ) {
  background: var(--color-forest);
  border-color: var(--line);
  color: var(--color-cream);
}

html[data-theme='dark'] :where(.section.paper, .page-hero) {
  background: var(--paper);
}

html[data-theme='dark'] .product-media,
html[data-theme='dark'] .brand-card.has-image .brand-media,
html[data-theme='dark'] .brand-image-admin-preview {
  background: var(--color-graphite);
}

html[data-theme='dark'] .quick-contact-panel {
  background: var(--color-forest);
  border-color: var(--line);
}

html[data-theme='dark'] .quick-contact-panel a {
  background: var(--color-forest);
  border-color: var(--line);
  color: var(--color-cream);
}

html[data-theme='dark'] .btn-light,
html[data-theme='dark'] .btn-outline {
  background: transparent;
}

html[data-theme='dark'] .btn-light {
  color: var(--color-cream);
  border-color: var(--line);
}

html[data-theme='dark'] .section-head {
  border-top-color: var(--color-cream);
}

html[data-theme='dark'] .section.dark .section-head {
  border-top-color: rgba(255, 255, 255, 0.7);
}

html[data-theme='dark'] .count-pill {
  border-color: var(--color-forest);
}

html[data-theme='dark'] .cart-drawer-backdrop {
  background: rgba(0, 0, 0, 0.68);
}

html[data-theme='dark'] .cart-drawer-continue:hover {
  color: #fff;
}

html[data-theme='dark'] .notice.warn {
  background: #392f1b;
  color: #f1c36f;
}

html[data-theme='dark'] .notice.error {
  background: #3b201e;
  color: #ff9d95;
}

html[data-theme='dark'] .footer {
  background: var(--color-forest);
}

@media (max-width: 430px) {
  .brand span:last-child {
    display: inline;
  }

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

  .metric {
    display: block;
    padding: 10px 8px;
  }

  .metric strong {
    font-size: 18px;
    margin-bottom: 3px;
  }

  .metric span {
    display: block;
    font-size: 9px;
    line-height: 1.2;
  }

  #homeCategories,
  #homeBrands {
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .goal-grid {
    margin-inline: -10px;
    padding-inline: 10px;
    grid-auto-columns: minmax(220px, 78vw);
  }

  .catalog-smart-grid {
    grid-auto-columns: minmax(260px, 86vw);
  }

  .product-grid {
    gap: 13px 9px;
  }

  .product-body {
    padding: 9px;
  }

  .product-title {
    font-size: 13px;
  }

  .product-card .price {
    font-size: 14px;
  }

  .card-buttons {
    grid-template-columns: 1fr;
  }
}

.brand-mark.has-image {
  overflow: hidden;
}

.brand-mark-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.brand-name.has-image {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-name-img {
  width: auto;
  height: 34px;
  max-width: min(210px, 42vw);
  object-fit: contain;
}

.footer-toggle,
.faq-question {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.footer-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 0;
  margin: 0 0 14px;
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  width: 100%;
  padding: 0;
  color: var(--ink);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.18;
}

.faq-question::after {
  content: '+';
  display: block;
  flex: 0 0 auto;
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  font-size: 22px;
  line-height: 1;
  opacity: 0.72;
}

.footer-toggle::after {
  content: '';
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.55;
  transform: rotate(45deg);
  transition: 0.2s;
}

.faq-item.open .faq-question::after {
  content: '−';
}

.footer-column.open .footer-toggle::after {
  transform: rotate(-135deg);
}

.faq-answer {
  display: none;
  padding-top: 12px;
}

.faq-item.open .faq-answer {
  display: block;
}

@media (max-width: 760px) {
  .hero-content,
  .hero[data-align='left'] .hero-content,
  .hero[data-align='right'] .hero-content,
  .hero[data-align='center'] .hero-content {
    width: min(100% - 24px, var(--container));
    margin-left: auto;
    margin-right: auto;
  }

  .brand-name-img {
    height: 30px;
    max-width: 150px;
  }

  .page-hero {
    padding: 22px 0 18px;
  }

  .page-hero h1 {
    font-size: 26px;
    line-height: 1.05;
  }

  .page-hero p {
    margin-top: 8px;
    font-size: 13px;
    line-height: 1.45;
  }

  .breadcrumbs {
    margin-bottom: 10px;
    font-size: 10px;
    letter-spacing: 0.09em;
  }

  #brandsList.brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px 9px;
  }

  #brandsList .brand-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 0 0 10px;
    gap: 0;
    overflow: hidden;
    border-radius: 14px;
  }

  #brandsList .brand-card .index {
    position: absolute;
    left: 9px;
    top: 9px;
    z-index: 1;
    padding: 5px 7px;
    border-radius: 999px;
    background: var(--green);
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  #brandsList .brand-letter {
    display: grid;
    place-items: center;
    width: 100%;
    height: auto;
    aspect-ratio: 1/1.05;
    margin: 0 0 10px;
    background: var(--paper);
    font-size: clamp(42px, 15vw, 66px);
  }

  #brandsList .brand-card.has-image .brand-media {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1.05;
    margin: 0 0 10px;
    padding: 12px;
    background: var(--paper);
  }

  #brandsList .brand-card h3 {
    min-height: 2.36em;
    margin: 0;
    padding: 0 10px;
    font-size: 13px;
    line-height: 1.18;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
  }

  #brandsList .brand-card p {
    margin-top: 8px;
    padding: 0 10px;
    font-size: 12px;
  }

  .footer-column {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding-top: 14px;
  }

  .footer-column .footer-links {
    display: none;
    padding-bottom: 4px;
  }

  .footer-column.open .footer-links {
    display: grid;
  }

  .footer-toggle {
    min-height: 38px;
    margin-bottom: 0;
    font-size: 20px;
  }

  .footer-column.open .footer-toggle {
    margin-bottom: 10px;
  }

  .faq-question {
    font-size: 18px;
    line-height: 1.22;
  }

  .faq-question::after {
    width: 24px;
    height: 24px;
    font-size: 16px;
  }

  .footer-toggle::after {
    width: 7px;
    height: 7px;
    margin-right: 6px;
  }

  .faq-item {
    padding: 16px;
  }

  .faq-answer p {
    font-size: 14px;
    line-height: 1.55;
  }
}

/* UX density pass: keep the premium style, but move shoppers to products faster. */
.hero-mobile-fallback {
  display: none;
}

@media (min-width: 1101px) {
  .hero {
    min-height: clamp(560px, 68vh, 680px);
  }

  .hero-content {
    max-width: 580px;
    padding: 58px 0 54px;
  }

  .hero h1 {
    font-size: 42px;
  }

  .hero-text {
    margin: 16px 0 24px;
  }

  .hero-actions {
    margin-bottom: 34px;
  }

  .hero-metrics {
    max-width: 560px;
  }

  .metric {
    padding: 15px 16px;
    border-radius: 16px;
  }

  .metric strong {
    font-size: 24px;
  }

  .section {
    padding: 68px 0;
  }

  .section-head {
    margin-bottom: 30px;
  }

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

  .product-body {
    padding: 14px;
  }

  .product-title {
    font-size: 16px;
    line-height: 1.18;
  }

  .product-desc {
    min-height: 3.1em;
    max-height: 3.1em;
    -webkit-line-clamp: 2;
  }

  .product-card-tags {
    margin-top: 10px;
  }

  .product-card-tags span {
    min-height: 22px;
    padding: 4px 7px;
    font-size: 10px;
  }

  .product-meta {
    height: 50px;
    padding-top: 13px;
  }

  .card-buttons {
    margin-top: 12px;
  }

  .card-buttons .btn {
    min-height: 38px;
    height: 38px;
  }

  .circle-action {
    width: 38px;
    height: 38px;
  }

  .brand-card {
    min-height: 172px;
    padding: 21px;
  }

  .category-card {
    padding: 22px;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .hero {
    background: var(--paper);
  }

  .hero-media video {
    display: none;
  }

  .hero-media .hero-mobile-fallback {
    display: block;
    object-fit: cover;
    object-position: center;
    opacity: 0.24;
    filter: saturate(0.9) contrast(1.04);
  }

  .hero::before {
    background: linear-gradient(180deg, rgba(246, 243, 236, 0.94), rgba(246, 243, 236, 0.82));
  }

  .hero::after {
    display: none;
  }

  .hero-content,
  .hero[data-align='left'] .hero-content,
  .hero[data-align='right'] .hero-content,
  .hero[data-align='center'] .hero-content {
    padding: 30px 0 26px;
  }

  .hero .eyebrow {
    margin-bottom: 12px;
  }

  .hero h1 {
    font-size: 30px !important;
    line-height: 1.05;
  }

  .hero-text {
    margin: 12px 0 18px;
    font-size: 14px !important;
    line-height: 1.55;
  }

  .hero-actions {
    margin-bottom: 18px;
  }

  .hero-actions .btn-outline {
    display: none;
  }

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

  .metric {
    padding: 9px 8px;
  }

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

  .metric span {
    font-size: 9px;
    line-height: 1.2;
  }

  .section {
    padding: 42px 0;
  }

  .section-head {
    margin-bottom: 18px;
  }

  .section-head p {
    margin-top: 8px;
    line-height: 1.55;
  }

  .section-head .btn {
    margin-top: 14px;
  }

  .section [data-block-title] {
    font-size: 28px !important;
    line-height: 1.06;
  }

  #saleProducts,
  #featuredProducts {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(172px, 42vw);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -12px;
    padding: 0 12px 8px;
    scrollbar-width: none;
  }

  #saleProducts::-webkit-scrollbar,
  #featuredProducts::-webkit-scrollbar {
    display: none;
  }

  #saleProducts .product-card,
  #featuredProducts .product-card {
    scroll-snap-align: start;
  }

  #saleProducts .product-media,
  #featuredProducts .product-media {
    aspect-ratio: 1/0.98;
  }

  .catalog-layout {
    gap: 12px;
  }

  .catalog-filter-shell {
    margin-bottom: 2px;
  }

  .filter-toggle {
    min-height: 44px;
  }

  .catalog-layout .toolbar {
    margin-bottom: 12px;
  }

  .catalog-smart {
    margin: 0 0 14px;
  }

  .catalog-smart-head {
    margin-bottom: 10px;
  }

  .catalog-smart-head h2 {
    font-size: 22px;
  }

  .catalog-smart-grid {
    grid-auto-columns: minmax(220px, 70vw);
  }

  .catalog-smart-card {
    grid-template-columns: 42px minmax(0, 1fr);
    padding: 10px;
    gap: 10px;
  }

  .catalog-smart-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 12px;
  }

  .catalog-smart-title {
    font-size: 15px;
  }

  .catalog-smart-card p {
    display: none;
  }

  .catalog-smart-links a {
    min-height: 24px;
    padding: 4px 7px;
    font-size: 11px;
  }

  .quick-contact {
    right: 10px;
    bottom: 92px;
  }

  .quick-contact-button {
    width: 50px;
    height: 50px;
    box-shadow: 0 10px 24px rgba(18, 61, 48, 0.22);
  }

  .gallery-main {
    max-height: 360px;
  }
}

@media (max-width: 430px) {
  #saleProducts,
  #featuredProducts {
    grid-auto-columns: minmax(164px, 44vw);
    margin-inline: -10px;
    padding-inline: 10px;
  }

  .hero h1 {
    font-size: 29px !important;
  }

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

/* Density pass 2: tighter mobile pages and quieter desktop spacing. */
@media (min-width: 761px) {
  .section {
    padding: 56px 0;
  }

  .section-head {
    margin-bottom: 24px;
  }

  .section-head p {
    margin-top: 12px;
  }

  .page-hero {
    padding: 42px 0 32px;
  }

  .footer-toggle {
    pointer-events: none;
    cursor: default;
    justify-content: flex-start;
    margin-bottom: 14px;
  }

  .footer-toggle::after {
    display: none;
  }
}

/* Keep mobile surfaces sharp without changing circular icon controls. */
@media (max-width: 760px) {
  :root {
    --radius: 2px;
    --radius-sm: 2px;
  }

  :is(
    .btn,
    .product-card,
    .category-card,
    .goal-card,
    .brand-card,
    .trust-item,
    .faq-item,
    .catalog-smart-card,
    .cart-item,
    .checkout-form,
    .page-hero,
    .home-gallery-item,
    .home-product-tabs,
    .tab-buttons,
    .chip,
    .metric,
    .header-overlay-sheet,
    .mobile-panel,
    .delivery-option,
    .pickup-store-option,
    input,
    select,
    textarea
  ) {
    border-radius: 2px !important;
  }
}

/* Mobile menu and search overlay. */
@media (max-width: 760px) {
  .mobile-panel,
  .header-overlay-sheet {
    background: var(--paper) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .header-search-shortcuts {
    padding-top: 18px;
  }

  .header-overlay-label {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
  }

  .header-search-shortcut-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
  }

  .header-search-shortcut-list a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0 10px;
    color: var(--ink);
    font-size: 15px;
    font-weight: 400;
    text-decoration: none;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  .header-search-shortcut-list a:nth-child(2n) {
    border-right: 0;
  }
}

@media (min-width: 1101px) {
  .hero {
    min-height: clamp(520px, 62vh, 620px);
  }

  .hero-content {
    padding: 48px 0;
  }

  .service-grid .service-card {
    margin-top: 20px;
    padding: 26px;
  }

  .footer {
    padding: 48px 0 24px;
  }
}

@media (max-width: 760px) {
  body {
    padding-bottom: 70px;
  }

  .header-inner {
    height: 58px;
  }

  .site-header .brand {
    font-size: 20px;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .icon-link,
  .burger,
  .icon-btn {
    min-width: 34px;
    width: 34px;
    height: 34px;
  }

  .hero {
    margin-top: 0;
  }

  .hero-content,
  .hero[data-align='left'] .hero-content,
  .hero[data-align='right'] .hero-content,
  .hero[data-align='center'] .hero-content {
    padding: 24px 0 22px;
  }

  .hero h1 {
    font-size: 27px !important;
  }

  .hero-text {
    margin: 10px 0 14px;
    font-size: 13px !important;
  }

  .hero-actions .btn {
    min-height: 42px;
    padding: 10px 14px;
  }

  .hero-metrics {
    gap: 6px;
  }

  .metric {
    padding: 8px 7px;
    border-radius: 12px;
  }

  .section {
    padding: 30px 0;
  }

  .section.dark {
    padding: 30px 0;
  }

  .section-head {
    margin-bottom: 12px;
  }

  .section-head .btn {
    margin-top: 10px;
  }

  .section [data-block-title] {
    font-size: 24px !important;
  }

  .section [data-block-text],
  .section-head p {
    font-size: 13px !important;
    line-height: 1.45;
  }

  .eyebrow {
    margin-bottom: 9px;
    font-size: 10px;
    letter-spacing: 0.12em;
  }

  .grid {
    gap: 10px;
  }

  .category-card,
  .feature-card,
  .brand-card,
  .info-card,
  .store-card,
  .admin-card,
  .delivery-card,
  .faq-item {
    padding: 14px;
    border-radius: 14px;
  }

  #homeCategories {
    grid-auto-columns: minmax(220px, 68vw);
  }

  #homeCategories .category-card {
    min-height: 142px;
  }

  #homeCategories .category-card h3 {
    margin: 14px 0 8px;
    font-size: 19px;
  }

  #homeCategories .category-card p {
    font-size: 13px;
    line-height: 1.45;
  }

  #homeBrands {
    grid-auto-columns: minmax(190px, 58vw);
    gap: 10px;
  }

  #homeBrands .brand-card {
    min-height: 136px;
    padding: 14px;
    grid-template-rows: auto 36px auto auto;
    gap: 7px;
  }

  #homeBrands .brand-card.has-image {
    grid-template-rows: auto 46px auto auto;
  }

  #homeBrands .brand-card.has-image .brand-media {
    height: 46px;
    padding: 6px;
  }

  #homeBrands .brand-letter {
    height: 36px;
    font-size: 28px;
  }

  #homeBrands .brand-card h3 {
    font-size: 17px;
    line-height: 1.12;
    margin: 0;
  }

  #homeBrands .brand-card p {
    font-size: 13px;
  }

  .service-grid {
    gap: 10px;
  }

  .service-grid .service-card {
    margin-top: 0;
    padding: 16px;
    border-radius: 14px;
    gap: 6px;
  }

  .service-grid .service-card h3 {
    font-size: 21px;
  }

  .service-grid .service-card p {
    font-size: 14px;
    line-height: 1.45;
  }

  .page-hero {
    padding: 16px 0 14px;
  }

  .page-hero h1 {
    font-size: 24px;
  }

  .page-hero p {
    font-size: 12px;
    line-height: 1.38;
  }

  .breadcrumbs {
    margin-bottom: 7px;
  }

  .product-body {
    padding: 8px;
  }

  .product-title {
    min-height: 2.28em;
    margin-top: 7px;
  }

  .product-card-tags {
    margin-top: 7px;
  }

  .card-buttons {
    margin-top: 8px;
  }

  .card-buttons .btn {
    min-height: 36px;
  }

  .footer {
    padding: 32px 0 18px;
  }

  .footer-grid {
    gap: 14px;
  }

  .footer-brand-block p {
    margin-top: 12px !important;
  }

  .mobile-bottom-nav {
    min-height: 64px;
    padding-top: 6px;
    padding-bottom: calc(6px + env(safe-area-inset-bottom));
  }

  .bottom-nav-icon {
    font-size: 18px;
  }
}

@media (max-width: 430px) {
  .hero h1 {
    font-size: 26px !important;
  }

  #homeCategories {
    grid-auto-columns: minmax(208px, 70vw);
  }

  #homeBrands {
    grid-auto-columns: minmax(178px, 60vw);
  }

  .product-grid {
    gap: 10px 8px;
  }
}

.admin-file-field {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--ink);
  font-weight: 800;
  text-align: center;
  overflow: hidden;
}

.admin-file-field:hover {
  border-color: var(--green);
  color: var(--green);
}

.admin-file-field.is-uploading,
.toggle-row.is-uploading {
  opacity: 0.62;
  cursor: progress;
}

.admin-file-field.is-uploading::after,
.toggle-row.is-uploading::after {
  content: 'Загрузка...';
  font-size: 11px;
  font-weight: 700;
  color: var(--green);
}

.admin-file-field input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.brand-image-advanced {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
  padding: 0;
  overflow: hidden;
}

.brand-image-advanced summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  padding: 0 14px;
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
  list-style: none;
}

.brand-image-advanced summary::-webkit-details-marker {
  display: none;
}

.brand-image-advanced summary::after {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: 0.2s;
}

.brand-image-advanced[open] {
  padding-bottom: 10px;
}

.brand-image-advanced[open] summary::after {
  transform: rotate(225deg) translateY(-1px);
}

.brand-image-advanced .range-field {
  margin: 0 10px 8px;
  background: var(--color-surface);
}

.brand-image-actions {
  grid-template-columns: 1fr;
}

.brand-image-actions .btn {
  width: 100%;
}

/* Cart density pass: compact rows on mobile, clean controls on desktop. */
.cart-item {
  grid-template-columns: 110px minmax(0, 1fr);
}

.cart-item-main {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.cart-item-info {
  min-width: 0;
}

.cart-item-info h3 {
  margin-bottom: 6px;
}

.cart-item-info small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.cart-item-price {
  min-width: 76px;
  text-align: right;
  white-space: nowrap;
}

.cart-qty-stepper {
  height: 40px;
  margin: 0;
}

.cart-qty-stepper button {
  width: 38px;
}

.cart-qty-stepper input {
  width: 42px;
}

.cart-remove {
  white-space: nowrap;
}

@media (max-width: 760px) {
  .card-buttons .btn,
  .product-card-actions .btn {
    white-space: nowrap;
  }

  body[data-page='cart'] .page-hero {
    padding: 12px 0 10px;
  }

  body[data-page='cart'] .page-hero p {
    display: none;
  }

  body[data-page='cart'] .section {
    padding: 14px 0 22px;
  }

  body[data-page='cart'] .cart-layout {
    gap: 12px;
  }

  body[data-page='cart'] .cart-list {
    gap: 8px;
  }

  body[data-page='cart'] .cart-item {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 9px;
    align-items: start;
    padding: 9px;
    border-radius: 14px;
  }

  body[data-page='cart'] .cart-item-img {
    width: 58px;
    height: 58px;
    border-radius: 12px;
  }

  body[data-page='cart'] .cart-item-main {
    grid-column: auto;
    display: grid;
    grid-template-columns: 1fr;
    gap: 7px;
  }

  body[data-page='cart'] .cart-item-info h3 {
    margin: 0 0 3px;
    font-size: 14px;
    line-height: 1.18;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  body[data-page='cart'] .cart-item-info small {
    font-size: 12px;
    line-height: 1.2;
  }

  body[data-page='cart'] .cart-item-controls {
    display: grid;
    grid-template-columns: auto minmax(92px, 1fr) auto;
    align-items: center;
    gap: 6px;
  }

  body[data-page='cart'] .cart-item-price {
    min-width: 0;
    font-size: 13px;
    text-align: left;
  }

  body[data-page='cart'] .cart-qty-stepper {
    width: 100%;
    height: 32px;
  }

  body[data-page='cart'] .cart-qty-stepper button {
    width: 30px;
  }

  body[data-page='cart'] .cart-qty-stepper input {
    width: auto;
    min-width: 28px;
    flex: 1;
  }

  body[data-page='cart'] .cart-remove.btn.small {
    width: auto;
    min-height: 32px;
    padding: 7px 10px;
    font-size: 11px;
    line-height: 1;
  }

  body[data-page='cart'] .summary-card {
    padding: 14px;
    border-radius: 14px;
  }

  body[data-page='cart'] .summary-card h3 {
    margin-bottom: 10px;
    font-size: 18px;
  }

  body[data-page='cart'] .summary-row {
    padding: 7px 0;
    font-size: 13px;
  }

  body[data-page='cart'] .summary-total {
    font-size: 18px;
  }

  body[data-page='cart'] .promo-row {
    display: grid;
    grid-template-columns: 1fr 54px;
    gap: 8px;
  }

  body[data-page='cart'] .promo-row input {
    height: 40px;
  }

  body[data-page='cart'] .promo-row .btn {
    width: 100%;
    min-height: 40px;
    padding: 8px 10px;
    white-space: nowrap;
  }

  body[data-page='cart'] .checkout-form {
    gap: 8px;
  }

  body[data-page='cart'] .checkout-form input,
  body[data-page='cart'] .checkout-form select,
  body[data-page='cart'] .checkout-form textarea {
    padding: 10px 12px;
    border-radius: 12px;
  }

  body[data-page='cart'] .checkout-form textarea {
    min-height: 72px;
  }

  body[data-page='cart'] .delivery-options {
    gap: 8px;
  }

  body[data-page='cart'] .delivery-option {
    min-height: 46px;
    padding: 9px 12px;
    border-radius: 14px;
  }
}

@media (max-width: 380px) {
  body[data-page='cart'] .cart-item {
    grid-template-columns: 54px minmax(0, 1fr);
  }

  body[data-page='cart'] .cart-item-img {
    width: 54px;
    height: 54px;
  }

  body[data-page='cart'] .cart-item-controls {
    grid-template-columns: auto minmax(82px, 1fr) auto;
    gap: 5px;
  }

  body[data-page='cart'] .cart-remove.btn.small {
    padding-inline: 8px;
  }
}

/* Fine tuning pass: aligned mobile cards, compact cart controls, mobile hero admin. */
.hero-mobile-animation {
  display: none;
}

.mobile-home-admin {
  border-color: rgba(18, 61, 48, 0.18);
  background: linear-gradient(180deg, var(--color-surface), var(--paper));
}

@media (min-width: 761px) {
  #adminPanel.admin-shell {
    padding-top: 34px;
  }

  #adminPanel .section-head {
    margin-bottom: 14px;
  }

  #adminPanel .section-head h1 {
    font-size: 36px;
    line-height: 1.04;
  }

  #adminPanel .section-head p {
    margin-top: 8px;
    max-width: 560px;
    font-size: 13px;
    line-height: 1.45;
  }

  #adminPanel .admin-layout {
    gap: 14px;
  }
}

@media (max-width: 760px) {
  .hero.hero-mobile-media-enabled .hero-desktop-media {
    display: none;
  }

  .hero.hero-mobile-media-enabled .hero-mobile-animation {
    display: block;
  }

  .hero.hero-mobile-media-enabled .hero-mobile-fallback {
    display: block;
    opacity: 0.28;
  }

  .section-head .btn {
    width: auto;
    min-width: 148px;
    max-width: min(100%, 240px);
    min-height: 38px;
    padding: 9px 18px;
    white-space: nowrap;
    justify-self: start;
  }

  #saleProducts,
  #featuredProducts {
    align-items: stretch;
  }

  #saleProducts .product-card,
  #featuredProducts .product-card {
    height: 100%;
  }

  .product-card {
    height: 100%;
  }

  .product-body {
    display: grid;
    grid-template-rows: auto auto minmax(43px, auto) auto;
    align-content: start;
  }

  .product-meta {
    order: 1;
  }

  .product-title {
    order: 2;
  }

  .product-card-tags {
    order: 3;
    min-height: 43px;
    align-content: start;
  }

  .card-buttons {
    order: 4;
    align-self: end;
    margin-top: auto;
  }

  .card-buttons .btn {
    height: 36px;
    min-height: 36px;
    white-space: nowrap;
  }

  body[data-page='cart'] .cart-item-controls {
    grid-template-columns: minmax(54px, 68px) 86px auto;
    justify-content: start;
    gap: 5px;
  }

  body[data-page='cart'] .cart-item-price {
    font-size: 12px;
  }

  body[data-page='cart'] .cart-qty-stepper {
    width: 86px;
    height: 30px;
  }

  body[data-page='cart'] .cart-qty-stepper button {
    width: 28px;
  }

  body[data-page='cart'] .cart-qty-stepper input {
    width: 30px;
    min-width: 30px;
    flex: 0 0 30px;
    font-size: 13px;
  }

  body[data-page='cart'] .cart-remove.btn.small {
    min-height: 30px;
    padding: 6px 9px;
  }

  body[data-page='cart'] .promo-row {
    grid-template-columns: minmax(0, 1fr) 98px;
  }

  body[data-page='cart'] .promo-row input {
    min-width: 0;
    padding-inline: 12px;
  }

  body[data-page='cart'] .promo-row .btn {
    min-width: 0;
    padding: 8px 8px;
    font-size: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #adminPanel.admin-shell {
    padding-top: 18px;
  }

  #adminPanel .section-head {
    margin-bottom: 12px;
  }

  #adminPanel .section-head h1 {
    font-size: 28px;
    line-height: 1;
  }

  #adminPanel .section-head p {
    margin-top: 6px;
    font-size: 12px;
    line-height: 1.4;
  }
}

@media (max-width: 380px) {
  .section-head .btn {
    min-width: 136px;
    max-width: 220px;
  }

  body[data-page='cart'] .cart-item-controls {
    grid-template-columns: 56px 80px auto;
  }

  body[data-page='cart'] .cart-qty-stepper {
    width: 80px;
  }

  body[data-page='cart'] .cart-qty-stepper button {
    width: 26px;
  }

  body[data-page='cart'] .cart-qty-stepper input {
    width: 28px;
    min-width: 28px;
    flex-basis: 28px;
  }

  body[data-page='cart'] .promo-row {
    grid-template-columns: minmax(0, 1fr) 90px;
  }
}

/* Final compactness pass: mobile menu, section buttons, contact button, cart alignment. */
.quick-contact-button {
  touch-action: none;
  cursor: pointer;
  opacity: var(--quick-contact-opacity, 1);
}

.quick-contact.dragging {
  transition: none;
}

.quick-contact-panel a {
  font-weight: 500;
}

.metric {
  background: rgba(254, 253, 251, var(--hero-metric-opacity, 0.72));
}

.compact-range {
  min-height: 40px;
  padding: 10px 12px;
}

@media (max-width: 760px) {
  body[data-page='home'] .section {
    padding: 15px 0;
  }

  body[data-page='home'] .section.dark {
    padding: 18px 0;
  }

  body[data-page='home'] .section-head {
    margin-bottom: 8px;
  }

  body[data-page='home'] .section-head .btn {
    margin-top: 8px;
  }

  .mobile-panel {
    padding: 8px 0 12px;
  }

  .mobile-panel.open {
    max-height: calc(100vh - 58px);
  }

  .mobile-panel .container {
    gap: 0;
  }

  .mobile-panel a {
    min-height: 36px;
    padding: 6px 0;
    font-size: 16px;
    line-height: 1.15;
  }

  .mobile-panel .header-search {
    margin-top: 10px !important;
  }

  .mobile-panel .header-search input {
    height: 40px;
    font-size: 14px;
  }

  .mobile-panel .header-search button {
    top: 4px;
    right: 5px;
  }

  .section-head .btn {
    width: 100%;
    min-width: 0;
    max-width: none;
    min-height: 40px;
    padding: 8px 16px;
    margin-top: 12px;
  }

  .quick-contact-panel {
    min-width: 168px;
    padding: 8px;
    border-radius: 14px;
  }

  .quick-contact.open .quick-contact-panel {
    gap: 5px;
  }

  .quick-contact-panel a {
    min-height: 34px;
    padding: 8px 10px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.15;
    font-weight: 500;
  }

  .product-card-tags {
    flex-wrap: nowrap;
    overflow: hidden;
    gap: 3px;
  }

  .product-card-tags span {
    flex: 0 1 auto;
    min-width: 0;
    max-width: 33%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-height: 18px;
    padding: 2px 4px;
    font-size: 9px;
  }

  #saleProducts .product-card-tags span,
  #featuredProducts .product-card-tags span {
    font-size: 9px;
    padding-inline: 4px;
  }

  .footer {
    padding: 22px 0 12px;
  }

  .footer-grid {
    gap: 0;
    margin-bottom: 14px;
  }

  .footer .brand {
    font-size: 18px;
  }

  .footer .brand-mark {
    width: 28px;
    height: 28px;
  }

  .footer-brand-block p,
  .footer p {
    margin-top: 8px !important;
    font-size: 13px;
    line-height: 1.35;
  }

  .footer-toggle {
    min-height: 42px;
    padding: 0;
    font-size: 15px;
  }

  .footer-column {
    padding: 0;
  }

  .footer-links {
    gap: 6px;
    padding-bottom: 10px;
  }

  .footer-badges {
    padding: 12px 0;
    gap: 8px 14px;
    margin-bottom: 0;
  }

  .footer-badge {
    font-size: 15px;
  }

  .footer-badge-img {
    max-width: 110px;
    max-height: 24px;
  }

  .footer-bottom {
    padding-top: 12px;
    gap: 6px;
  }

  .footer-bottom span {
    font-size: 12px;
  }

  .hero.hero-mobile-media-enabled .hero-mobile-fallback,
  .hero.hero-mobile-media-enabled .hero-mobile-animation {
    opacity: var(--hero-mobile-media-opacity, 0.28);
  }

  .hero.hero-mobile-media-enabled::before {
    opacity: var(--hero-mobile-veil-opacity, 0.9);
  }

  body[data-page='cart'] .cart-item-controls {
    grid-template-columns: minmax(54px, 68px) 86px minmax(72px, 1fr);
    justify-content: stretch;
  }

  body[data-page='cart'] .cart-remove.btn.small {
    justify-self: end;
  }

  .login-card h1 {
    font-size: 28px;
    line-height: 1.05;
  }
}

@media (max-width: 380px) {
  body[data-page='cart'] .cart-item-controls {
    grid-template-columns: 54px 80px minmax(66px, 1fr);
  }
}

/* Compact catalog filters in the same light visual language as "Все товары". */
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-bar {
  position: relative;
  z-index: 35;
  margin: 2px 0 4px;
  padding: 3px 0 5px;
  border-top: 0;
  border-bottom: 1px solid var(--line);
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-row {
  display: flex;
  align-items: center;
  gap: 22px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-all-link {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  margin-left: auto;
  padding: 5px 2px;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-all-link:hover {
  opacity: 0.72;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-menu {
  position: relative;
  min-width: 0;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-menu[open] {
  z-index: 3;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-menu
  summary {
  display: flex;
  min-height: 36px;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 5px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
  cursor: pointer;
  list-style: none;
  transition: opacity 0.18s ease;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-menu
  summary::-webkit-details-marker {
  display: none;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-menu
  summary::after {
  content: '';
  width: 6px;
  height: 6px;
  margin: -3px 1px 0 3px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
  transition:
    transform 0.18s ease,
    margin 0.18s ease;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-menu[open]
  summary,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-menu
  summary:hover {
  color: var(--green);
  opacity: 0.72;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-menu[open]
  summary {
  background: transparent;
  opacity: 1;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-menu[open]
  summary::after {
  margin-top: 3px;
  transform: rotate(225deg);
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-count {
  display: inline-grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 50%;
  background: var(--green);
  color: var(--white);
  font-family: var(--font-heading);
  font-size: 10px;
  line-height: 1;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-count[hidden],
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-active-filters[hidden] {
  display: none;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-popover {
  position: absolute;
  top: calc(100% + 7px);
  left: 0;
  width: 260px;
  max-height: min(440px, 62vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  box-shadow: 0 14px 30px rgba(63, 63, 63, 0.09);
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-popover-wide {
  display: grid;
  width: min(560px, calc(100vw - 52px));
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-group {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-group
  legend {
  width: 100%;
  margin: 0 0 9px;
  padding: 0 0 8px;
  border-bottom: 1px solid var(--line);
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-options {
  display: grid;
  gap: 2px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-option {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 9px;
  padding: 6px 7px;
  border-radius: 2px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-option:hover {
  background: var(--paper);
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-option
  input {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  margin: 0;
  accent-color: var(--green);
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-price-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-price-range label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 11px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-price-range input {
  width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-price-range
  input:focus {
  border-color: var(--green);
  outline: 2px solid rgba(18, 61, 48, 0.13);
  outline-offset: 0;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-switches {
  display: grid;
  gap: 1px;
  margin-top: 10px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-reset {
  min-height: 40px;
  grid-column: 1 / -1;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-reset:hover {
  border-color: var(--green);
  color: var(--green);
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-chip,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-clear {
  min-height: 32px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-chip span {
  margin-left: 4px;
  color: var(--green);
  font-size: 15px;
  line-height: 0;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-clear {
  border-color: transparent;
  background: transparent;
  color: var(--green);
  font-weight: 650;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-chip:hover,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-filter-clear:hover {
  border-color: var(--green);
}

@media (max-width: 760px) {
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogSmart {
    display: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-bar {
    margin: 1px 0 3px;
    padding: 2px 0 4px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-row {
    display: flex;
    gap: 8px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-menu {
    position: static;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-filter-menu
    summary {
    min-height: 42px;
    gap: 4px;
    padding: 7px 1px;
    overflow: hidden;
    font-size: 10px;
    text-overflow: ellipsis;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-all-link {
    min-height: 42px;
    padding: 7px 1px;
    font-size: 10px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-filter-menu
    summary::after {
    width: 5px;
    height: 5px;
    flex: 0 0 auto;
    margin-left: 1px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-count {
    min-width: 18px;
    height: 18px;
    padding: 0 4px;
    font-size: 9px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-popover,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-filter-popover-wide {
    top: calc(100% + 4px);
    right: 0;
    left: 0;
    width: 100%;
    height: 380px;
    max-height: min(380px, 58vh);
    padding: 10px;
    transform: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-filter-popover-wide {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-filter-menu:nth-child(2)
    .catalog-filter-popover {
    right: 0;
    left: 0;
    transform: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-filter-menu:nth-child(3)
    .catalog-filter-popover {
    right: 0;
    left: 0;
    transform: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-option {
    min-height: 42px;
    padding: 7px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-active-filters {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-active-filters::-webkit-scrollbar {
    display: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-chip,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-clear {
    flex: 0 0 auto;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogSort {
    display: none;
  }
}

/* Catalog reorder pass: smart sections replace the disabled filter column. */
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-filter-disabled {
  display: none !important;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-layout {
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 22px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-sidebar {
  position: sticky;
  top: 126px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-main {
  min-width: 0;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .toolbar {
  margin-bottom: 12px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-search-wrap {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-search-wrap input {
  width: 100%;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-suggest-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  z-index: 40;
  display: grid;
  gap: 4px;
  max-height: 252px;
  overflow: auto;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--color-surface);
  box-shadow: 0 16px 34px rgba(63, 63, 63, 0.1);
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-suggest-panel[hidden] {
  display: none;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-suggest-panel
  button {
  min-height: 34px;
  border: 0;
  border-radius: 11px;
  padding: 7px 10px;
  background: var(--paper);
  color: var(--ink);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-suggest-panel
  button:hover {
  background: var(--green-soft);
  color: var(--green);
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .result-note {
  margin-bottom: 10px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart {
  margin: 0;
  padding: 16px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-head {
  display: grid;
  gap: 10px;
  align-items: start;
  margin-bottom: 14px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-head h2 {
  font-size: 22px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-head a {
  justify-self: start;
  font-size: 13px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-grid {
  grid-template-columns: 1fr;
  gap: 9px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card {
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  padding: 10px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-mark {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  font-size: 12px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-title {
  font-size: 15px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card p {
  margin-bottom: 7px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-links {
  gap: 5px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-links a {
  min-height: 22px;
  padding: 3px 7px;
  font-size: 11px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogProducts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-card {
  height: auto;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-media {
  aspect-ratio: 1.08/1;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-badges {
  justify-content: flex-start;
  flex-wrap: wrap;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-badges-main {
  flex-direction: row;
  flex-wrap: wrap;
  max-width: 100%;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogProducts .badge {
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
  writing-mode: horizontal-tb;
  transform: none;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .stock-badge {
  display: none;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-desc {
  min-height: 2.9em;
  max-height: 2.9em;
  -webkit-line-clamp: 2;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-card-tags {
  flex-wrap: wrap;
  gap: 5px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-card-tags
  span {
  min-height: 21px;
  padding: 3px 7px;
  font-size: 10px;
}

@media (max-width: 760px) {
  .header-actions .icon-link[href='cart.html'] {
    display: none;
  }

  .hero .hero-actions .btn-primary {
    display: none;
  }

  .bottom-nav-pin {
    position: relative;
    width: 18px;
    height: 18px;
    font-size: 0;
  }

  .bottom-nav-pin::before {
    content: '';
    position: absolute;
    left: 4px;
    top: 1px;
    width: 10px;
    height: 10px;
    border: 2px solid currentColor;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
  }

  .bottom-nav-pin::after {
    content: '';
    position: absolute;
    left: 8px;
    top: 5px;
    width: 2px;
    height: 2px;
    border-radius: 50%;
    background: currentColor;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-layout {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-sidebar {
    position: static;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart {
    padding: 14px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(218px, 72vw);
    overflow-x: auto;
    margin-inline: -8px;
    padding: 0 8px 8px;
    scrollbar-width: none;
    scroll-snap-type: x mandatory;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-smart-grid::-webkit-scrollbar {
    display: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card {
    scroll-snap-align: start;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogProducts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 8px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-media {
    aspect-ratio: 1/1.04;
  }
}

/* Hero slides and final mobile density pass. */
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.75s ease;
  pointer-events: none;
}

.hero-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.hero-slide video {
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hero-slide video.is-ready {
  opacity: var(--hero-media-opacity, 0.78);
}

.hero-slide video.media-error {
  display: none;
}

.hero-slide img.media-error {
  display: none !important;
}

.hero-slide-link {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: block;
  cursor: pointer;
}

.hero-slide .hero-desktop-media,
.hero-slide .hero-mobile-fallback {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.section-title a,
.eyebrow a {
  color: inherit;
  text-decoration: none;
}

.section-title a:hover,
.eyebrow a:hover {
  color: var(--green);
}

body[data-page='home'] #saleProducts .stock-badge,
body[data-page='home'] #featuredProducts .stock-badge {
  display: none !important;
}

body[data-page='home'] #saleProducts .product-card .badge,
body[data-page='home'] #featuredProducts .product-card .badge {
  padding: 5px 8px;
  font-size: 10px;
  letter-spacing: 0.04em;
}

@media (min-width: 761px) {
  .hero.hide-desktop-copy .hero-content > .eyebrow,
  .hero.hide-desktop-copy .hero-content > h1,
  .hero.hide-desktop-copy .hero-text,
  .hero.hide-desktop-actions .hero-actions {
    display: none;
  }
}

@media (max-width: 760px) {
  .hero.hide-mobile-copy .hero-content > .eyebrow,
  .hero.hide-mobile-copy .hero-content > h1,
  .hero.hide-mobile-copy .hero-text,
  .hero.hide-mobile-actions .hero-actions {
    display: none;
  }

  .hero.hero-mobile-media-enabled .hero-mobile-video {
    display: block;
  }

  .hero.hero-mobile-media-enabled video.hero-mobile-video.is-ready {
    opacity: var(--hero-mobile-media-opacity, 0.28);
  }

  body[data-page='home'] .section {
    padding: 10px 0;
  }

  body[data-page='home'] .section.dark {
    padding: 14px 0;
  }

  body[data-page='home'] .section-head {
    margin-bottom: 6px;
  }

  body[data-page='home'] .section-head .btn[data-block-button] {
    display: none;
  }

  body[data-page='home'] #saleProducts .product-card-tags,
  body[data-page='home'] #featuredProducts .product-card-tags {
    display: none;
  }

  body[data-page='home'] #saleProducts .product-body,
  body[data-page='home'] #featuredProducts .product-body {
    grid-template-rows: auto auto auto;
    padding: 9px;
  }

  body[data-page='home'] #saleProducts .product-title,
  body[data-page='home'] #featuredProducts .product-title {
    margin-bottom: 6px;
  }

  body[data-page='home'] #saleProducts .product-meta,
  body[data-page='home'] #featuredProducts .product-meta {
    height: 30px;
    padding-top: 4px;
  }

  body[data-page='home'] #saleProducts .card-buttons,
  body[data-page='home'] #featuredProducts .card-buttons {
    margin-top: 8px;
  }

  .footer-grid,
  .footer-column,
  .footer-toggle,
  .footer-badges,
  .footer-bottom {
    border: 0 !important;
  }
}

/* Admin cleanup: compact controls and separate desktop/mobile home settings. */
body[data-page='admin'] #adminPanel.admin-shell {
  padding-top: 22px;
}

body[data-page='admin'] #adminPanel .section-head {
  margin-bottom: 10px;
}

body[data-page='admin'] #adminPanel .section-head h1 {
  font-size: 30px;
}

body[data-page='admin'] .admin-nav {
  padding: 6px;
  gap: 5px;
  border-radius: 14px;
}

body[data-page='admin'] .admin-nav button {
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 13px;
}

body[data-page='admin'] .admin-card {
  padding: 16px;
}

body[data-page='admin'] .admin-card h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

body[data-page='admin'] .admin-form {
  gap: 10px;
}

body[data-page='admin'] .admin-form-section,
body[data-page='admin'] .admin-block-editor {
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
}

body[data-page='admin'] .admin-form-section h4,
body[data-page='admin'] .admin-block-editor h4 {
  font-size: 11px;
  letter-spacing: 0.08em;
}

body[data-page='admin'] .admin-form input,
body[data-page='admin'] .admin-form textarea,
body[data-page='admin'] .admin-form select {
  min-height: 38px;
  padding: 9px 11px;
  border-radius: 11px;
  font-size: 13px;
}

body[data-page='admin'] .admin-form textarea,
body[data-page='admin'] .admin-form-section textarea {
  min-height: 70px;
}

body[data-page='admin'] .field-row {
  gap: 8px;
}

body[data-page='admin'] .toggle-row,
body[data-page='admin'] .admin-input-field,
body[data-page='admin'] .color-field,
body[data-page='admin'] .range-field {
  gap: 8px;
  padding: 9px 10px;
  border-radius: 11px;
}

body[data-page='admin'] .toggle-row small,
body[data-page='admin'] .admin-input-field small,
body[data-page='admin'] .admin-hint {
  font-size: 11px;
}

body[data-page='admin'] .btn {
  min-height: 38px;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
}

body[data-page='admin'] .btn.small {
  min-height: 32px;
  height: 32px;
  padding: 0 10px;
  font-size: 11px;
}

body[data-page='admin'] .admin-blocks {
  gap: 8px;
}

body[data-page='admin'] .admin-block-head {
  gap: 8px;
}

body[data-page='admin'] .admin-file-field {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 11px;
  font-size: 12px;
}

body[data-page='admin'] .admin-home-desktop {
  border-color: rgba(18, 61, 48, 0.22);
  background: var(--color-surface);
}

body[data-page='admin'] .admin-home-mobile,
body[data-page='admin'] .mobile-home-admin {
  border-color: rgba(68, 109, 140, 0.24);
  background: linear-gradient(180deg, var(--color-surface), var(--color-cream));
}

body[data-page='admin'] .hero-slide-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

body[data-page='admin'] .hero-slide-mode {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

body[data-page='admin'] .hero-slide-mode h5 {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
}

@media (min-width: 980px) {
  body[data-page='admin'] .admin-home-form {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-auto-flow: dense;
    align-items: start;
  }

  body[data-page='admin'] .admin-home-wide {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  body[data-page='admin'] #adminPanel.admin-shell {
    padding-top: 14px;
  }

  body[data-page='admin'] .admin-card {
    padding: 12px;
  }

  body[data-page='admin'] .admin-nav {
    margin-inline: -4px;
  }

  body[data-page='admin'] .hero-slide-columns {
    grid-template-columns: 1fr;
  }
}

/* Final admin/home fixes from review. */
@media (max-width: 760px) {
  body[data-page='home'] .hero.hero-mobile-media-enabled {
    min-height: clamp(320px, 62vh, 520px);
  }

  body[data-page='home'] .hero.hero-mobile-media-enabled::after {
    display: block;
    background: rgba(0, 0, 0, var(--hero-mobile-overlay-opacity, 0));
  }

  body[data-page='home'] .hero.hero-mobile-media-enabled .hero-mobile-fallback,
  body[data-page='home'] .hero.hero-mobile-media-enabled .hero-mobile-animation {
    object-fit: cover;
    object-position: center;
  }

  body[data-page='home'] .section.dark {
    padding-bottom: 22px;
  }

  body[data-page='home'] #saleProducts .product-card-tags,
  body[data-page='home'] #featuredProducts .product-card-tags {
    display: flex;
    min-height: 20px;
    margin-top: 4px;
    gap: 4px;
  }

  body[data-page='home'] #saleProducts .product-card-tags span,
  body[data-page='home'] #featuredProducts .product-card-tags span {
    max-width: 50%;
    min-height: 18px;
    padding: 2px 5px;
    font-size: 9px;
  }

  body[data-page='home'] #saleProducts .product-card-tags span:nth-child(n + 3),
  body[data-page='home'] #featuredProducts .product-card-tags span:nth-child(n + 3) {
    display: none;
  }

  body[data-page='home'] #saleProducts .product-body,
  body[data-page='home'] #featuredProducts .product-body {
    grid-template-rows: auto auto auto auto;
  }
}

body[data-page='admin'] .admin-home-mobile,
body[data-page='admin'] .mobile-home-admin {
  border-color: rgba(18, 61, 48, 0.22);
  background: var(--color-surface);
}

body[data-page='admin'] .admin-form input[type='checkbox'] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  flex: 0 0 16px;
  accent-color: var(--green);
}

body[data-page='admin'] .toggle-row input[type='checkbox'],
body[data-page='admin'] .mini-toggle input[type='checkbox'] {
  width: 16px;
  min-width: 16px;
  height: 16px;
  min-height: 16px;
}

body[data-page='admin'] .admin-home-form > button[type='submit'] {
  grid-column: 1 / -1;
  order: 99;
}

body[data-page='admin'] .admin-home-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-block: 16px;
}

body[data-page='admin'] .admin-home-tabs button {
  min-height: 44px;
  padding: 10px 16px;
  border: 1px solid var(--line);
  background: var(--color-surface);
  color: var(--green);
  cursor: pointer;
}

body[data-page='admin'] .admin-home-tabs [aria-selected='true'] {
  border-color: var(--green);
  background: var(--green);
  color: var(--color-surface);
}

body[data-page='admin'] .admin-home-tabs button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

body[data-page='admin'] .admin-home-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 16px;
  min-width: 0;
}

body[data-page='admin'] .admin-home-panel[hidden],
body[data-page='home'] #homeGallerySection[hidden] {
  display: none !important;
}

body[data-page='admin'] .admin-home-panel .hero-slide-columns {
  grid-template-columns: minmax(0, 1fr);
}

body[data-page='admin'] .admin-home-panel .hero-slide-mode[hidden] {
  display: none !important;
}

@media (min-width: 980px) {
  body[data-page='admin'] #adminHomeDesktopPanel {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
}

body[data-page='admin'] .hero-slide-editor {
  padding: 0;
  overflow: hidden;
}

body[data-page='admin'] .hero-slide-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 38px;
  padding: 8px 10px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
}

body[data-page='admin'] .hero-slide-summary small {
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
  color: var(--muted);
}

body[data-page='admin'] .hero-slide-editor[open] {
  padding: 10px;
}

body[data-page='admin'] .hero-slide-editor[open] .hero-slide-summary {
  margin: -10px -10px 8px;
  border-bottom: 1px solid var(--line);
}

body[data-page='admin'] .admin-home-metrics {
  align-items: start;
}

body[data-page='admin'] .admin-empty-note {
  padding: 10px 12px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: var(--color-surface);
}

body[data-page='admin'] .hero-slide-admin-list {
  gap: 6px;
}

@media (min-width: 980px) {
  body[data-page='admin'] .admin-home-common {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body[data-page='admin'] .admin-home-common h4,
  body[data-page='admin'] .admin-home-common textarea,
  body[data-page='admin'] .admin-home-common .field-row,
  body[data-page='admin'] .admin-home-common .hero-color-panel,
  body[data-page='admin'] .admin-home-common #siteHeroHref,
  body[data-page='admin'] .admin-home-common #siteAnnouncement {
    grid-column: 1 / -1;
  }

  body[data-page='admin'] .admin-home-metrics {
    grid-template-columns: minmax(230px, 0.34fr) minmax(0, 1fr);
  }

  body[data-page='admin'] .admin-home-metrics h4 {
    grid-column: 1 / -1;
  }

  body[data-page='admin'] .admin-home-metrics .range-field {
    grid-column: 1;
  }

  body[data-page='admin'] .admin-home-metrics [data-hero-metric-add] {
    grid-column: 1;
    align-self: start;
  }

  body[data-page='admin'] #adminHeroMetrics {
    grid-column: 2;
    grid-row: 2 / span 2;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
  }

  body[data-page='admin'] #adminHeroMetrics .admin-block-editor {
    min-height: 100%;
  }
}

@media (max-width: 979px) {
  body[data-page='admin'] #adminHeroMetrics {
    grid-template-columns: 1fr;
  }
}

/* Purchase path polish: prioritize products, stabilize cards, and tighten mobile checkout. */
@media (max-width: 760px) {
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .page-hero {
    padding: 10px 0 8px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .page-hero p {
    display: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .section {
    padding: 10px 0 18px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-layout {
    display: grid;
    gap: 12px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-main {
    order: 1;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-sidebar {
    order: 2;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .toolbar {
    position: sticky;
    top: 64px;
    z-index: 20;
    margin: 0 -2px 8px;
    padding: 8px;
    border-radius: 14px;
    background: rgba(246, 243, 236, 0.96);
    backdrop-filter: blur(14px);
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-search-wrap {
    width: 100%;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .toolbar input,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .toolbar select {
    height: 38px;
    font-size: 13px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-suggest-panel {
    max-height: 190px;
    border-radius: 14px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-suggest-panel
    button {
    min-height: 32px;
    font-size: 13px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .result-note {
    margin: 2px 0 8px;
    font-size: 10px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart {
    margin-top: 4px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-head {
    margin-bottom: 8px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-head h2 {
    font-size: 20px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogProducts {
    align-items: stretch;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card {
    min-height: 306px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-media {
    aspect-ratio: 1/0.94;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card-tags
    span:nth-child(n + 3) {
    display: none;
  }

  .product-card {
    min-height: 306px;
  }

  .product-body {
    grid-template-rows: auto minmax(2.36em, auto) minmax(20px, auto) auto;
  }

  .product-title {
    min-height: 2.36em;
  }

  .product-card-tags {
    min-height: 20px;
    flex-wrap: nowrap;
    overflow: hidden;
  }

  .product-card-tags span {
    max-width: 50%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .product-card-tags span:nth-child(n + 3) {
    display: none;
  }

  .card-buttons {
    align-self: end;
  }

  body[data-page='product'] .page-hero {
    padding: 8px 0;
  }

  body[data-page='product'] .page-hero p {
    display: none;
  }

  body[data-page='product'] .section {
    padding: 10px 0 18px;
  }

  body[data-page='product'] .product-detail {
    gap: 12px;
  }

  body[data-page='product'] .product-gallery {
    gap: 8px;
  }

  body[data-page='product'] .gallery-main {
    max-height: 300px;
    aspect-ratio: 1.12/1;
    border-radius: 14px;
  }

  body[data-page='product'] .gallery-thumbs {
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  body[data-page='product'] .gallery-thumbs button {
    width: 54px;
    height: 54px;
    border-radius: 12px;
    flex: 0 0 auto;
  }

  body[data-page='product'] .product-detail-title {
    margin-bottom: 8px;
    font-size: 25px;
  }

  body[data-page='product'] .product-panel > p {
    font-size: 13px;
    line-height: 1.45;
  }

  body[data-page='product'] .product-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
    margin: 12px 0;
  }

  body[data-page='product'] .fact {
    padding: 9px 10px;
    border-radius: 12px;
  }

  body[data-page='product'] .fact span {
    margin-bottom: 3px;
    font-size: 9px;
    letter-spacing: 0.08em;
  }

  body[data-page='product'] .fact strong {
    font-size: 12px;
  }

  body[data-page='product'] .product-panel .price {
    font-size: 22px;
  }

  body[data-page='product'] .option-list {
    gap: 6px;
    margin: 8px 0 12px;
  }

  body[data-page='product'] .chip {
    height: 34px;
    padding: 0 11px;
    font-size: 12px;
  }

  body[data-page='product'] .qty-row {
    position: sticky;
    bottom: 74px;
    z-index: 45;
    display: grid;
    grid-template-columns: 104px minmax(0, 1fr);
    gap: 8px;
    margin: 14px -6px 10px;
    padding: 8px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(254, 253, 251, 0.96);
    box-shadow: 0 12px 30px rgba(63, 63, 63, 0.12);
    backdrop-filter: blur(14px);
  }

  body[data-page='product'] .qty-row .qty-stepper {
    width: 104px;
    height: 40px;
  }

  body[data-page='product'] .qty-row .qty-stepper button {
    width: 32px;
  }

  body[data-page='product'] .qty-row .qty-stepper input {
    width: 40px;
  }

  body[data-page='product'] .qty-row .btn {
    min-height: 40px;
    padding-inline: 10px;
    white-space: nowrap;
  }

  body[data-page='product'] .product-panel .hero-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  body[data-page='product'] .tabs {
    margin-top: 20px;
  }

  body[data-page='product'] .tab-buttons {
    gap: 6px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  body[data-page='product'] .tab-buttons button {
    height: 34px;
    padding: 0 12px;
    font-size: 12px;
    flex: 0 0 auto;
  }

  body[data-page='product'] .tab-content {
    padding: 14px;
    border-radius: 14px;
    font-size: 14px;
  }

  body[data-page='cart'] .cart-item {
    min-height: 88px;
  }

  body[data-page='cart'] .cart-item-controls {
    grid-template-columns: minmax(58px, 72px) 88px minmax(66px, 1fr);
  }

  body[data-page='cart'] .cart-remove.btn.small {
    min-height: 30px;
    height: 30px;
    padding-inline: 9px;
    font-size: 11px;
  }

  body[data-page='cart'] .summary-card {
    padding: 14px;
    border-radius: 16px;
  }

  body[data-page='cart'] .summary-card h3 {
    margin-bottom: 8px;
    font-size: 20px;
  }

  body[data-page='cart'] .summary-row {
    padding: 7px 0;
    font-size: 13px;
  }

  body[data-page='cart'] .summary-total {
    font-size: 20px;
  }

  body[data-page='cart'] .promo-row {
    gap: 6px;
  }

  body[data-page='cart'] .promo-row input {
    height: 38px;
    min-width: 0;
    font-size: 13px;
  }

  body[data-page='cart'] .promo-row .btn {
    min-width: 92px;
    height: 36px;
    min-height: 36px;
    padding-inline: 10px;
    font-size: 12px;
  }

  .footer {
    padding: 24px 0 14px;
  }

  .footer-grid {
    gap: 0;
    margin-bottom: 16px;
  }

  .footer-brand-block p,
  .footer-grid > div:first-child p {
    margin-top: 10px !important;
    font-size: 13px;
    line-height: 1.45;
  }

  .footer-toggle {
    min-height: 44px;
    margin: 0;
    font-size: 18px;
  }

  .footer-links {
    gap: 7px;
    padding: 4px 0 10px;
  }

  .footer-badges {
    gap: 10px 14px;
    padding: 12px 0;
  }

  .footer-badge {
    font-size: 16px;
  }

  .footer-bottom {
    gap: 7px;
    padding-top: 10px;
  }
}

@media (max-width: 380px) {
  body[data-page='product'] .qty-row {
    grid-template-columns: 96px minmax(0, 1fr);
  }

  body[data-page='product'] .qty-row .qty-stepper {
    width: 96px;
  }

  body[data-page='cart'] .cart-item-controls {
    grid-template-columns: 54px 82px minmax(62px, 1fr);
  }
}

/* Stage 3: compact admin and safer data-management surface. */
body[data-page='admin'] #adminPanel.admin-shell {
  padding-top: 24px;
}

body[data-page='admin'] #adminPanel .section-head {
  margin-bottom: 10px;
}

body[data-page='admin'] #adminPanel .section-head h1 {
  font-size: 30px;
}

body[data-page='admin'] #adminPanel .section-head p {
  max-width: 560px;
  font-size: 13px;
}

body[data-page='admin'] .admin-layout {
  gap: 10px;
}

body[data-page='admin'] .admin-tools {
  position: sticky;
  top: 110px;
  z-index: 7;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(254, 253, 251, 0.94);
  backdrop-filter: blur(12px);
}

body[data-page='admin'] .admin-tools input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--paper);
  color: var(--ink);
  font-size: 13px;
  outline: none;
}

body[data-page='admin'] .admin-tools input:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px var(--green-soft);
}

body[data-page='admin'] .admin-nav {
  top: 166px;
  gap: 5px;
  padding: 7px;
  border-radius: 16px;
}

body[data-page='admin'] .admin-nav button {
  min-height: 34px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 12px;
}

body[data-page='admin'] .admin-card {
  padding: 14px;
}

body[data-page='admin'] .admin-card h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

body[data-page='admin'] .admin-form {
  gap: 8px;
}

body[data-page='admin'] .admin-form-section,
body[data-page='admin'] .admin-block-editor {
  gap: 7px;
  padding: 9px;
  border-radius: 12px;
}

body[data-page='admin'] .admin-form input,
body[data-page='admin'] .admin-form textarea,
body[data-page='admin'] .admin-form select {
  min-height: 34px;
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
}

body[data-page='admin'] .admin-form textarea,
body[data-page='admin'] .admin-form-section textarea {
  min-height: 58px;
}

body[data-page='admin'] .toggle-row,
body[data-page='admin'] .admin-input-field,
body[data-page='admin'] .color-field,
body[data-page='admin'] .range-field {
  min-height: 34px;
  padding: 8px 9px;
  border-radius: 10px;
}

body[data-page='admin'] .admin-input-field {
  gap: 5px;
}

body[data-page='admin'] .admin-blocks {
  gap: 7px;
}

body[data-page='admin'] .brand-image-admin-list {
  grid-template-columns: repeat(auto-fit, minmax(205px, 1fr));
}

body[data-page='admin'] .brand-image-editor {
  align-content: start;
}

body[data-page='admin'] .brand-image-admin-preview {
  height: 62px;
  border-radius: 12px;
  padding: 8px;
}

body[data-page='admin'] .brand-image-advanced summary {
  min-height: 34px;
  padding: 0 10px;
  font-size: 12px;
}

body[data-page='admin'] .admin-actions {
  gap: 8px;
}

body[data-page='product'] .product-recommendations .product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.admin-related-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
  max-height: 250px;
  overflow: auto;
  padding-right: 3px;
}

.admin-related-option {
  display: grid;
  grid-template-columns: 18px 38px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 7px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--color-surface);
  cursor: pointer;
}

.admin-related-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.admin-related-option input {
  width: 16px !important;
  min-height: 16px !important;
  accent-color: var(--green);
}

.admin-related-option img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--paper);
}

.admin-related-option span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.admin-related-option strong,
.admin-related-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-related-option strong {
  font-size: 11px;
  color: var(--ink);
}

.admin-related-option small {
  font-size: 9px;
  color: var(--muted);
}

.admin-recommendation-options {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 190px;
  overflow: auto;
  padding-right: 3px;
}

.admin-recommendation-option {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  gap: 2px 7px;
  align-items: center;
  min-width: 0;
  padding: 7px 8px;
  border: 1px solid var(--line);
  background: var(--color-surface);
  cursor: pointer;
}

.admin-recommendation-option:has(input:checked) {
  border-color: var(--green);
  background: var(--green-soft);
}

.admin-recommendation-option input {
  grid-row: 1 / span 2;
  width: 15px !important;
  min-height: 15px !important;
  accent-color: var(--green);
}

.admin-recommendation-option span,
.admin-recommendation-option small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-recommendation-option span {
  font-size: 11px;
  font-weight: 750;
  color: var(--ink);
}

.admin-recommendation-option small {
  font-size: 9px;
  color: var(--muted);
}

.admin-storage-status {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-bottom: 10px;
}

.admin-storage-status > span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--color-surface);
}

.admin-storage-status small {
  font-size: 9px;
  color: var(--muted);
  text-transform: uppercase;
}

.admin-storage-status strong {
  font-size: 12px;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-backup-list {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}

.admin-backup-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--color-surface);
}

.admin-backup-item span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.admin-backup-item strong {
  font-size: 11px;
  color: var(--ink);
}

.admin-backup-item small {
  font-size: 9px;
  color: var(--muted);
}

.analytics-kpis {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0 18px;
}

.analytics-kpi {
  display: grid;
  align-content: space-between;
  gap: 12px;
  min-height: 92px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
}

.analytics-kpi span {
  font-size: 11px;
  line-height: 1.3;
  color: var(--muted);
  font-weight: 700;
}

.analytics-kpi strong {
  font-size: 21px;
  line-height: 1.1;
  color: var(--ink);
  letter-spacing: 0;
}

.analytics-columns {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(220px, 0.65fr);
  gap: 18px;
  margin-bottom: 18px;
}

.analytics-report {
  min-width: 0;
}

.analytics-report h4 {
  margin: 0 0 9px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
}

.analytics-table {
  min-width: 560px;
}

.analytics-page-list {
  border-top: 1px solid var(--line);
}

.analytics-page-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 2px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.analytics-page-list span {
  color: var(--text);
}

.analytics-page-list strong {
  color: var(--ink);
}

@media (max-width: 1100px) {
  .analytics-kpis {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page='admin'] .admin-tools {
    position: static;
    margin-inline: -4px;
  }

  body[data-page='admin'] .admin-nav {
    position: sticky;
    top: 68px;
    margin-inline: -4px;
  }

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

  .analytics-kpi {
    min-height: 78px;
    padding: 10px;
  }

  .analytics-kpi strong {
    font-size: 18px;
  }

  .analytics-columns {
    grid-template-columns: 1fr;
    gap: 14px;
  }

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

  .admin-related-products {
    grid-template-columns: 1fr;
    max-height: 220px;
  }

  .admin-recommendation-options {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-height: 180px;
  }

  body[data-page='product'] .product-recommendations .product-grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(164px, 46vw);
    gap: 10px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    margin-inline: 0;
    padding: 0 10px 8px 0;
    scrollbar-width: none;
  }

  body[data-page='product'] .product-recommendations .product-grid::-webkit-scrollbar {
    display: none;
  }

  body[data-page='product'] .product-recommendations .product-card {
    scroll-snap-align: start;
  }
}

/* Swiss visual system: restrained type, strict grid, low-radius controls. */
:root {
  --radius: 2px;
  --radius-sm: 2px;
  --shadow: none;
  --shadow-sm: none;
}

html {
  scroll-behavior: smooth;
}

body {
  font-weight: 400;
  line-height: 1.5;
}

body * {
  letter-spacing: 0;
}

strong,
b {
  font-weight: 650;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 650;
  letter-spacing: 0;
}

h1 {
  font-size: 46px;
  font-weight: 700;
  line-height: 1.02;
}

h2 {
  font-size: 36px;
  font-weight: 700;
  line-height: 1.05;
}

h3 {
  font-size: 21px;
  line-height: 1.15;
}

p {
  line-height: 1.55;
}

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

.site-header {
  box-shadow: none;
  border-bottom: 1px solid var(--line);
}

.header-top {
  border-bottom: 1px solid var(--line);
}

.brand {
  gap: 10px;
  font-size: 27px;
  font-weight: 700;
  letter-spacing: 0;
}

.brand-mark {
  border-radius: 2px;
}

.main-nav a {
  font-weight: 500;
  letter-spacing: 0;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--green);
}

.header-search input,
.toolbar input,
.toolbar select,
.form-control,
.promo-row input {
  border-radius: 2px;
}

.header-search button {
  border-radius: 2px;
}

.icon-link {
  font-weight: 600;
}

.count-pill {
  font-weight: 650;
}

.burger {
  border-radius: 50%;
}

.mobile-panel a {
  font-weight: 550;
}

.btn {
  height: 46px;
  border-radius: 2px;
  padding: 0 20px;
  font-size: 14px;
  font-weight: 600;
  box-shadow: none;
  transform: none;
}

.btn:hover,
.btn-primary:hover,
.btn-outline:hover {
  box-shadow: none;
  transform: none;
}

.btn-primary:hover {
  background: var(--green-dark);
}

.btn.small {
  border-radius: 2px;
  font-weight: 600;
}

.circle-action {
  border-radius: 50%;
}

.quick-contact-button {
  border-radius: 2px;
  font-weight: 600;
  box-shadow: none;
}

.quick-contact-panel {
  border-radius: 2px;
  box-shadow: none;
}

.quick-contact-panel a {
  border-radius: 0;
  background: var(--color-surface);
  border-bottom: 1px solid var(--line);
  font-weight: 500;
}

.quick-contact-panel a:last-child {
  border-bottom: 0;
}

.hero {
  min-height: calc(100vh - 110px);
}

.hero-content {
  padding: 64px 0 58px;
}

.hero h1 {
  font-size: 48px;
  line-height: 1.01;
  font-weight: 700;
}

.hero-text {
  font-size: 16px;
  line-height: 1.6;
}

.eyebrow {
  gap: 10px;
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.eyebrow::before {
  width: 36px;
  height: 1px;
}

.hero-actions {
  margin-bottom: 42px;
}

.hero-metrics {
  gap: 0;
  border: 1px solid rgba(63, 63, 63, 0.18);
}

.hero-metrics[hidden],
.hero-metrics:empty {
  display: none !important;
}

.metric {
  border: 0;
  border-right: 1px solid rgba(63, 63, 63, 0.18);
  border-radius: 0;
  padding: 18px 20px;
  backdrop-filter: none;
}

.metric:last-child {
  border-right: 0;
}

.metric strong {
  margin-bottom: 5px;
  font-size: 27px;
  font-weight: 650;
  letter-spacing: 0;
}

.metric span {
  font-size: 11px;
  font-weight: 550;
  letter-spacing: 0;
}

.section {
  padding: 68px 0;
}

.section-head {
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 30px;
  padding-top: 16px;
  border-top: 2px solid var(--ink);
}

.section.dark .section-head {
  border-top-color: rgba(255, 255, 255, 0.7);
}

.section-head p {
  margin-top: 10px;
  line-height: 1.55;
}

.section-title {
  max-width: 760px;
}

.section-title h2 {
  font-weight: 700;
}

.trust-section {
  padding: 40px 0;
}

.category-card,
.feature-card,
.brand-card,
.info-card,
.store-card,
.admin-card,
.delivery-card,
.faq-item,
.goal-card,
.service-card,
.summary-card,
.cart-item,
.review-form,
.tab-content,
.gallery-main,
.filters,
.toolbar,
.catalog-smart,
.catalog-smart-card,
.map-box,
.login-card,
.empty-state {
  border-radius: 2px;
  box-shadow: none;
}

.category-card,
.feature-card,
.brand-card,
.info-card,
.store-card,
.delivery-card,
.faq-item,
.goal-card {
  padding: 20px;
}

.category-card:hover,
.brand-card:hover,
.info-card:hover,
.store-card:hover,
.goal-card:hover {
  border-color: var(--green);
  box-shadow: none;
  transform: none;
}

.category-card .index,
.brand-card .index,
.goal-index,
.trust-index {
  font-weight: 600;
  letter-spacing: 0;
}

.category-card h3,
.brand-card h3 {
  margin-top: 20px;
}

.card-arrow {
  font-weight: 600;
}

.goal-card {
  min-height: 166px;
}

.goal-card h3 {
  font-weight: 650;
}

.goal-card p {
  line-height: 1.5;
}

.trust-item h3 {
  font-weight: 650;
}

.product-grid {
  gap: 18px;
}

.product-card {
  border-radius: 2px;
  box-shadow: none;
}

.product-card:hover {
  border-color: var(--green);
  box-shadow: none;
  transform: none;
}

.product-card:hover .product-media img {
  transform: none;
}

.badge,
.stock-badge {
  border-radius: 2px;
  padding: 6px 8px;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0;
  box-shadow: none;
}

.product-body {
  padding: 16px;
}

.product-brand {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
}

.product-title {
  font-size: 17px;
  font-weight: 650;
  letter-spacing: 0;
}

.product-desc {
  line-height: 1.5;
}

.product-card-tags span {
  border-radius: 2px;
  font-weight: 500;
}

.price {
  font-weight: 650;
  letter-spacing: 0;
}

.product-card .price {
  font-weight: 650;
}

.card-buttons .btn {
  font-weight: 600;
}

.product-card-actions .btn {
  border-radius: 2px;
}

.filter-group h4,
.result-note,
.breadcrumbs {
  font-weight: 600;
  letter-spacing: 0;
}

.toolbar {
  padding: 10px;
}

.catalog-smart {
  padding: 16px;
}

.catalog-smart-card {
  border-radius: 2px;
  background: var(--color-surface);
}

.catalog-smart-mark {
  border-radius: 0;
  font-weight: 600;
}

.catalog-smart-title {
  font-weight: 650;
}

.catalog-smart-links a {
  border-radius: 2px;
  font-weight: 550;
}

.page-hero {
  padding: 48px 0 36px;
}

.page-hero h1 {
  font-size: 40px;
  font-weight: 700;
}

.breadcrumbs a {
  font-weight: 600;
}

.gallery-thumbs button,
.fact,
.chip,
.qty-stepper,
.tab-buttons button,
.review-field input,
.review-field select,
.review-field textarea,
.checkout-form input,
.checkout-form textarea,
.checkout-form select,
.admin-form input,
.admin-form textarea,
.admin-form select,
.delivery-option,
.notice {
  border-radius: 2px;
}

.product-detail-title {
  font-weight: 700;
}

.fact span,
.review-field span {
  font-weight: 550;
  letter-spacing: 0;
}

.chip {
  font-weight: 550;
}

.tab-buttons button {
  font-weight: 600;
}

.review-form {
  background: var(--color-surface);
}

.review-field input:focus,
.review-field select:focus,
.review-field textarea:focus {
  box-shadow: none;
}

.delivery-option:has(input:checked) {
  box-shadow: none;
}

.summary-total {
  font-weight: 650;
}

.brand-letter {
  font-weight: 650;
}

.faq-question {
  font-weight: 600;
}

.footer {
  border-radius: 0;
}

.footer-toggle {
  font-weight: 600;
}

.footer-links a {
  font-weight: 400;
}

.footer-badge {
  font-weight: 600;
}

.footer-admin-link {
  border-radius: 0;
}

.admin-nav,
.admin-nav button,
.admin-form-section,
.admin-block-editor,
.admin-input-field,
.toggle-row,
.color-field,
.range-field,
.admin-file-field,
.table-wrap,
.admin-thumb,
.footer-badge-admin-preview,
.brand-image-admin-preview,
.brand-image-advanced,
.admin-tools,
.admin-tools input,
.admin-related-option,
.admin-storage-status > span,
.admin-backup-item,
.analytics-kpi,
.hero-slide-mode {
  border-radius: 2px !important;
}

.admin-nav button,
.admin-input-field span,
.mini-toggle,
.footer-badge-admin-preview span {
  font-weight: 600;
}

.admin-nav button.active {
  background: var(--green);
}

.admin-form input:focus,
.admin-form textarea:focus,
.admin-form select:focus,
.admin-tools input:focus {
  box-shadow: none !important;
}

@media (max-width: 1100px) {
  .hero h1 {
    font-size: 43px;
  }
}

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

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 28px;
  }

  h3 {
    font-size: 19px;
  }

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

  .hero-content {
    padding: 42px 0 32px;
  }

  .hero h1 {
    font-size: 34px;
    line-height: 1.03;
  }

  .hero-text {
    margin: 14px 0 20px;
    font-size: 14px;
  }

  .hero-actions {
    margin-bottom: 24px;
  }

  .hero-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-color: rgba(63, 63, 63, 0.2);
  }

  .metric {
    min-width: 0;
    padding: 12px 10px;
  }

  .metric strong {
    font-size: 21px;
  }

  .metric span {
    font-size: 9px;
    line-height: 1.25;
  }

  .section {
    padding: 38px 0;
  }

  .section-head {
    margin-bottom: 20px;
    padding-top: 12px;
  }

  .section-head p {
    margin-top: 8px;
  }

  .btn {
    height: 42px;
    padding: 0 16px;
  }

  .product-grid {
    gap: 10px;
  }

  .product-card {
    border-radius: 0;
  }

  .product-body {
    padding: 12px;
  }

  .product-title {
    font-size: 15px;
  }

  .product-brand {
    font-size: 9px;
  }

  .badge {
    padding: 5px 7px;
    font-size: 9px;
  }

  .product-card-tags span {
    font-size: 9px;
  }

  .page-hero {
    padding: 24px 0 20px;
  }

  .page-hero h1 {
    font-size: 32px;
  }

  .gallery-main,
  body[data-page='product'] .gallery-main,
  body[data-page='product'] .gallery-thumbs button,
  body[data-page='product'] .fact,
  body[data-page='product'] .qty-row,
  body[data-page='product'] .tab-content,
  body[data-page='cart'] .summary-card {
    border-radius: 2px;
  }

  .mobile-bottom-nav {
    border-top: 1px solid var(--line);
    box-shadow: none;
  }

  .mobile-bottom-nav a {
    font-weight: 550;
  }

  .footer {
    padding-top: 22px;
  }

  .footer-toggle {
    font-size: 16px;
    font-weight: 600;
  }

  .quick-contact-panel a {
    font-weight: 450;
  }
}

/* Storefront motion and mini-cart: lightweight, portable, reduced-motion aware. */
.motion-ready .reveal-item {
  opacity: 0;
  transform: translate3d(0, 18px, 0);
  transition:
    opacity 0.52s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms),
    transform 0.52s cubic-bezier(0.22, 0.61, 0.36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.motion-ready .reveal-item.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Unified Swiss geometry across storefront and admin surfaces. */
:where(
  .btn,
  .icon-link,
  .burger,
  .brand-mark,
  .header-search input,
  .header-search button,
  .mobile-panel,
  .mobile-search-panel,
  .quick-contact-button,
  .quick-contact-panel,
  .quick-contact-panel a,
  .hero-metrics,
  .metric,
  .category-card,
  .feature-card,
  .brand-card,
  .brand-media,
  .info-card,
  .store-card,
  .admin-card,
  .delivery-card,
  .faq-item,
  .goal-card,
  .service-card,
  .product-card,
  .badge,
  .stock-badge,
  .product-card-tags span,
  .product-card-actions .btn,
  .circle-action,
  .filters,
  .filter-toggle,
  .toolbar,
  .toolbar input,
  .toolbar select,
  .form-control,
  .catalog-smart,
  .catalog-smart-card,
  .catalog-smart-links a,
  .gallery-main,
  .gallery-thumbs button,
  .fact,
  .chip,
  .qty-stepper,
  .tab-buttons button,
  .tab-content,
  .review-form,
  .review-field input,
  .review-field select,
  .review-field textarea,
  .cart-item,
  .summary-card,
  .promo-row input,
  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select,
  .delivery-option,
  .pickup-store,
  .notice,
  .map-box,
  .empty-state,
  .modal-card,
  .modal-close,
  .login-card,
  .admin-nav,
  .admin-nav button,
  .admin-form-section,
  .admin-block-editor,
  .admin-input-field,
  .toggle-row,
  .color-field,
  .range-field,
  .admin-file-field,
  .table-wrap,
  .admin-thumb,
  .footer-badge-admin-preview,
  .brand-image-admin-preview,
  .brand-image-advanced,
  .admin-tools,
  .admin-tools input,
  .admin-related-option,
  .admin-storage-status > span,
  .admin-backup-item,
  .analytics-kpi,
  .hero-slide-mode,
  .cart-drawer-panel,
  .cart-drawer-close,
  .cart-drawer-item img
) {
  border-radius: 2px !important;
}

.brand-card h3,
#homeBrands .brand-card h3,
#brandsList .brand-card h3 {
  margin: 0;
  align-self: start;
}

.phone-link {
  color: inherit;
  text-decoration: none;
}

.phone-link:hover {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-legal-text {
  width: 100%;
  padding: 16px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-legal-text p {
  max-width: none !important;
  margin: 0 !important;
  line-height: 1.5;
}

.footer-legal-text .phone-link {
  color: rgba(255, 255, 255, 0.78);
}

body.cart-drawer-open {
  overflow: hidden;
}

.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 240;
  visibility: hidden;
  pointer-events: none;
}

.cart-drawer.open {
  visibility: visible;
  pointer-events: auto;
}

.cart-drawer-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  border-radius: 0;
  background: rgba(63, 63, 63, 0.52);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.cart-drawer.open .cart-drawer-backdrop {
  opacity: 1;
}

.cart-drawer-panel {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100%);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  background: var(--color-surface);
  border-left: 1px solid var(--line);
  box-shadow: -18px 0 50px rgba(63, 63, 63, 0.12);
  transform: translate3d(100%, 0, 0);
  transition: transform 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  outline: 0;
}

.cart-drawer.open .cart-drawer-panel {
  transform: translate3d(0, 0, 0);
}

.cart-drawer-head {
  min-height: 84px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
}

.cart-drawer-kicker {
  display: block;
  margin-bottom: 4px;
  color: var(--green);
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
}

.cart-drawer-head h2 {
  margin: 0;
  font-size: 25px;
  font-weight: 650;
}

.cart-drawer-close {
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--color-surface);
  color: var(--ink);
  font-size: 26px;
  line-height: 1;
}

.cart-drawer-close:hover {
  border-color: var(--green);
  color: var(--green);
}

.cart-drawer-list {
  min-height: 0;
  overflow: auto;
  padding: 16px 20px;
  overscroll-behavior: contain;
}

.cart-drawer-item {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  animation: cartItemIn 0.38s cubic-bezier(0.22, 0.61, 0.36, 1) both;
  animation-delay: var(--drawer-item-delay, 0ms);
}

.cart-drawer-item:first-child {
  padding-top: 0;
}

.cart-drawer-item img {
  width: 76px;
  height: 76px;
  object-fit: cover;
  background: var(--paper);
  border-radius: 4px;
}

.cart-drawer-item-main {
  min-width: 0;
}

.cart-drawer-item h3 {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}

.cart-drawer-item p {
  margin: 3px 0 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--muted);
  font-size: 12px;
}

.cart-drawer-item-bottom {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.cart-drawer-item-bottom strong {
  margin-right: auto;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 650;
}

.cart-drawer-qty {
  height: 30px;
  display: grid;
  grid-template-columns: 28px 24px 28px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 2px;
}

.cart-drawer-qty button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 0;
  background: var(--color-surface);
}

.cart-drawer-qty span {
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}

.cart-drawer-remove {
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.cart-drawer-remove:hover {
  color: var(--red);
}

.cart-drawer-foot {
  padding: 18px 20px 20px;
  border-top: 1px solid var(--line);
  background: var(--color-surface);
}

.cart-drawer-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 14px;
}

.cart-drawer-total span {
  color: var(--muted);
  font-size: 13px;
}

.cart-drawer-total strong {
  font-size: 20px;
  font-weight: 650;
}

.cart-drawer-continue {
  display: block;
  width: 100%;
  margin-top: 11px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
}

.cart-drawer-continue:hover {
  color: var(--ink);
}

.cart-drawer-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 12px;
  text-align: center;
}

.cart-drawer-empty span {
  font-size: 22px;
  font-weight: 650;
}

.cart-drawer-empty p {
  margin: 8px 0 22px;
}

@keyframes cartItemIn {
  from {
    opacity: 0;
    transform: translate3d(0, 10px, 0);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@media (max-width: 760px) {
  .cart-drawer {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal-item,
  .product-card,
  .product-media img,
  .cart-drawer-backdrop,
  .cart-drawer-panel,
  .cart-drawer-item {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}

/* Final responsive layout corrections. */
.stock-badge {
  display: none !important;
}

.tab-buttons button.active {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
}

.page-hero {
  padding: 24px 0 18px;
}

.page-hero h1 {
  margin-bottom: 0;
  font-size: 32px;
}

.page-hero p {
  margin-top: 8px;
}

.page-hero .breadcrumbs {
  margin-bottom: 10px;
}

.trust-item,
.trust-item + .trust-item {
  border-radius: 0 !important;
}

.service-head {
  margin-bottom: 22px;
}

.service-head > div {
  max-width: 720px;
}

.service-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid rgba(255, 255, 255, 0.18);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.service-list .service-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 14px;
  min-height: 0;
  margin: 0;
  padding: 22px 24px 22px 0;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
}

.service-list .service-card + .service-card {
  padding-left: 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.18);
}

.service-index {
  padding-top: 4px;
  color: var(--green-light);
  font-family: var(--mono);
  font-size: 12px;
}

.service-list .service-card h3 {
  margin-bottom: 7px;
  font-size: 18px;
}

.service-list .service-card p {
  font-size: 14px;
  line-height: 1.5;
}

@media (min-width: 1101px) {
  #homeBrands .brand-card:nth-child(n + 11) {
    display: none;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  #homeBrands .brand-card:nth-child(n + 7) {
    display: none;
  }
}

@media (max-width: 760px) {
  body[data-page='home'] .hero {
    width: 100%;
    height: clamp(430px, 125vw, 560px);
    min-height: 0;
  }

  body[data-page='home'] .hero-media,
  body[data-page='home'] .hero-slide {
    width: 100%;
    height: 100%;
  }

  body[data-page='home'] .hero-slide .hero-desktop-media,
  body[data-page='home'] .hero-slide .hero-mobile-fallback,
  body[data-page='home'] .hero-slide .hero-mobile-animation,
  body[data-page='home'] .hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
  }

  .page-hero {
    padding: 12px 0 10px;
  }

  .page-hero h1 {
    font-size: 24px;
  }

  .page-hero p {
    margin-top: 5px;
  }

  .page-hero .breadcrumbs {
    margin-bottom: 6px;
  }

  .service-head {
    margin-bottom: 10px;
  }

  .service-list {
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(245px, 78vw);
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-snap-type: x mandatory;
    margin-inline: -12px;
    padding: 0 12px 8px;
    border: 0;
    scrollbar-width: none;
  }

  .service-list::-webkit-scrollbar {
    display: none;
  }

  .service-list .service-card,
  .service-list .service-card + .service-card {
    min-height: 118px;
    padding: 16px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 0 !important;
    scroll-snap-align: start;
  }
}

/* Compact unnumbered home cards and clear interactive states. */
#homeCategories .index,
#homeGoals .goal-index,
#homeTrust .trust-index,
#homeBrands .index,
.service-list .service-index {
  display: none !important;
}

#homeCategories .category-card {
  min-height: 180px;
  padding: 18px;
}

#homeCategories .category-card h3 {
  margin: 0 0 8px;
}

#homeCategories .category-card p {
  min-height: 0;
}

#homeCategories .category-card .card-arrow {
  padding-top: 14px;
}

#homeGoals .goal-card {
  min-height: 132px;
  gap: 6px;
  padding: 18px;
}

#homeGoals .goal-card h3 {
  margin: 0 0 4px;
}

.brand-card {
  min-height: 134px;
  grid-template-rows: 56px minmax(18px, auto);
  align-content: space-between;
  padding: 16px;
}

.brand-card.has-image {
  grid-template-rows: 72px minmax(18px, auto);
}

.brand-card h3,
#homeBrands .brand-card h3,
#brandsList .brand-card h3 {
  margin: 0;
  align-self: end;
  font-size: 15px;
  line-height: 1.2;
  font-weight: 600;
}

.brand-card p,
#homeBrands .brand-card p,
#brandsList .brand-card p {
  display: none !important;
}

.trust-item,
.trust-item + .trust-item {
  display: block;
  min-height: 0;
  padding: 18px 24px;
}

.service-list .service-card,
.service-list .service-card + .service-card {
  grid-template-columns: minmax(0, 1fr);
  min-height: 0;
  padding: 18px 24px;
}

@media (max-width: 760px) {
  #homeCategories .category-card {
    min-height: 140px;
    padding: 14px;
  }

  #homeGoals .goal-card {
    min-height: 120px;
    padding: 14px;
  }

  #homeBrands .brand-card {
    min-height: 102px;
    grid-template-rows: 36px auto;
    padding: 12px;
  }

  #homeBrands .brand-card.has-image {
    grid-template-rows: 46px auto;
  }

  #homeBrands .brand-card h3 {
    font-size: 13px;
  }

  .trust-item,
  .trust-item + .trust-item,
  .service-list .service-card,
  .service-list .service-card + .service-card {
    min-height: 104px;
    padding: 14px;
  }
}

/* Commerce-first density: keep the visual system, surface products sooner. */
@media (min-width: 761px) {
  .page-hero {
    padding: 16px 0 14px;
  }

  .page-hero h1 {
    font-size: 30px;
  }

  .page-hero .breadcrumbs {
    margin-bottom: 8px;
  }

  .page-hero p {
    margin-top: 6px;
    font-size: 14px;
  }

  body[data-page='home'] .hero {
    min-height: 450px;
    height: 450px;
  }

  body[data-page='home'] .hero-content {
    max-width: 560px;
    padding: 34px 0 30px;
  }

  body[data-page='home'] .hero h1 {
    font-size: 38px !important;
  }

  body[data-page='home'] .hero-text {
    margin: 12px 0 18px;
    line-height: 1.5;
  }

  body[data-page='home'] .hero-actions {
    margin-bottom: 22px;
  }

  body[data-page='home'] .metric {
    padding: 10px 14px;
  }

  body[data-page='home'] .metric strong {
    font-size: 23px;
  }

  body[data-page='home'] .metric span {
    font-size: 10px;
  }

  body[data-page='home'] .section {
    padding: 44px 0;
  }

  body[data-page='home'] .trust-section {
    padding: 30px 0;
  }

  body[data-page='home'] .section-head {
    margin-bottom: 20px;
    padding-top: 12px;
  }

  body[data-page='home'] .section-head p {
    margin-top: 7px;
  }

  body[data-page='home'] [data-home-block='sale'],
  body[data-page='home'] [data-home-block='featured'] {
    padding-top: 28px;
  }

  body[data-page='home'] [data-home-block='sale'] .section-head,
  body[data-page='home'] [data-home-block='featured'] .section-head {
    margin-bottom: 14px;
  }

  body[data-page='home'] [data-home-block='sale'] .section-head p,
  body[data-page='home'] [data-home-block='featured'] .section-head p {
    display: none;
  }

  body[data-page='home'] #homeCategories .category-card {
    min-height: 154px;
    padding: 16px;
  }

  body[data-page='home'] #homeGoals .goal-card {
    min-height: 112px;
    padding: 16px;
  }

  body[data-page='home'] .trust-item,
  body[data-page='home'] .trust-item + .trust-item,
  body[data-page='home'] .service-list .service-card,
  body[data-page='home'] .service-list .service-card + .service-card {
    padding-top: 15px;
    padding-bottom: 15px;
  }

  body[data-page='home'] .service-head {
    margin-bottom: 14px;
  }

  body[data-page='home'] #homeBrands {
    gap: 12px;
  }

  body[data-page='home'] #homeBrands .brand-card {
    min-height: 116px;
    padding: 14px;
  }

  body[data-page='product'] main > .section {
    padding: 16px 0 28px;
  }

  body[data-page='product'] .page-hero {
    padding: 10px 0 8px;
  }

  body[data-page='product'] .page-hero p {
    display: none;
  }

  body[data-page='product'] .product-detail {
    grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
    gap: 32px;
  }

  body[data-page='product'] .gallery-main {
    max-height: 520px;
    aspect-ratio: 1.08/1;
  }

  body[data-page='product'] .product-detail-title {
    margin-bottom: 10px;
    font-size: 34px;
  }

  body[data-page='product'] .product-facts {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 16px 0;
  }

  body[data-page='product'] .fact {
    min-width: 0;
    padding: 10px;
  }

  body[data-page='product'] .fact span {
    margin-bottom: 4px;
    font-size: 9px;
    letter-spacing: 0.06em;
  }

  body[data-page='product'] .fact strong {
    display: block;
    overflow: hidden;
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body[data-page='product'] .option-list {
    margin: 8px 0 14px;
  }

  body[data-page='product'] .qty-row {
    margin: 16px 0 14px;
  }

  body[data-page='product'] .tabs {
    margin-top: 30px;
  }
}

@media (max-width: 760px) {
  body[data-page='home'] .hero {
    height: clamp(360px, 95vw, 430px);
  }

  body[data-page='home'] .hero-content,
  body[data-page='home'] .hero[data-align='left'] .hero-content,
  body[data-page='home'] .hero[data-align='right'] .hero-content,
  body[data-page='home'] .hero[data-align='center'] .hero-content {
    padding: 22px 0 18px;
  }

  body[data-page='home'] .hero h1 {
    font-size: 28px !important;
  }

  body[data-page='home'] .hero-text {
    margin: 9px 0 13px;
    line-height: 1.45;
  }

  body[data-page='home'] .hero-actions {
    margin-bottom: 12px;
  }

  body[data-page='home'] .section-head {
    padding-top: 8px;
  }

  body[data-page='home'] .section [data-block-title] {
    font-size: 25px !important;
  }

  body[data-page='home'] .section-head p {
    font-size: 13px;
    line-height: 1.45;
  }

  body[data-page='home'] #homeCategories .category-card {
    min-height: 126px;
  }

  body[data-page='home'] #homeGoals .goal-card {
    min-height: 104px;
  }

  body[data-page='home'] .trust-section {
    padding-top: 12px;
    padding-bottom: 12px;
  }
}

/* Compact commerce sections and product discovery. */
.home-product-tabs {
  display: inline-flex;
  margin: 0 0 14px;
  border: 1px solid var(--line);
}

.home-product-tabs button {
  min-width: 128px;
  height: 38px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--white);
  color: var(--text);
  padding: 0 18px;
  font-size: 13px;
  font-weight: 600;
}

.home-product-tabs button:last-child {
  border-right: 0;
}

.home-product-tabs button.active {
  background: var(--green);
  color: #fff;
}

.home-product-panel[hidden] {
  display: none !important;
}

.commerce-assurance {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 16px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.commerce-assurance > * {
  padding: 9px 18px;
  border-right: 1px solid var(--line);
}

.commerce-assurance > *:first-child {
  padding-left: 0;
}

.commerce-assurance > *:last-child {
  border-right: 0;
}

.commerce-assurance a:hover {
  color: var(--green);
}

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

#homeCategories {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

#homeCategories .category-card {
  display: flex;
  min-height: 58px !important;
  align-items: center;
  justify-content: center;
  padding: 10px 12px !important;
  border: 0;
  border-right: 1px solid var(--line);
  border-radius: 0 !important;
  background: transparent;
  text-align: center;
}

#homeCategories .category-card:last-child {
  border-right: 0;
}

#homeCategories .category-card h3 {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.25;
}

#homeCategories .category-card:hover {
  color: var(--green);
  background: var(--green-soft);
}

body[data-page='home'] [data-home-block='categories'] {
  padding-top: 28px;
  padding-bottom: 28px;
}

@media (min-width: 1101px) {
  #homeBrands {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
  }

  #homeBrands .brand-card:nth-child(n + 7) {
    display: none !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  #homeBrands {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    overflow: hidden;
  }

  #homeBrands .brand-card:nth-child(n + 5) {
    display: none !important;
  }
}

.page-hero p {
  display: none !important;
}

.product-fulfillment {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 6px;
  padding: 6px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 11px;
  line-height: 1.3;
}

.product-fulfillment span {
  color: var(--muted);
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.product-fulfillment strong {
  color: var(--ink);
  font-weight: 600;
}

html[data-theme='dark'] .product-fulfillment strong {
  color: var(--color-cream);
}

@media (min-width: 761px) {
  body[data-page='home'] [data-home-block='sale'] {
    padding-bottom: 36px;
  }

  body[data-page='home'] [data-home-block='trust'] {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  body[data-page='product'] .option-list {
    margin: 6px 0 8px;
  }

  body[data-page='product'] .qty-row {
    margin: 6px 0 10px;
  }
}

@media (max-width: 760px) {
  .home-products-head {
    margin-bottom: 10px !important;
  }

  .home-product-tabs {
    display: flex;
    width: 100%;
    margin-bottom: 10px;
  }

  .home-product-tabs button {
    min-width: 0;
    flex: 1;
    height: 36px;
    padding: 0 10px;
  }

  .commerce-assurance {
    width: 100%;
    margin-bottom: 10px;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: none;
  }

  .commerce-assurance::-webkit-scrollbar {
    display: none;
  }

  .commerce-assurance > * {
    padding: 8px 12px;
  }

  .commerce-assurance > *:first-child {
    padding-left: 0;
  }

  #homeTrust {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(225px, 72vw);
  }

  #homeCategories {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: max-content;
    gap: 0;
    margin-inline: -12px;
    padding-inline: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  #homeCategories::-webkit-scrollbar {
    display: none;
  }

  #homeCategories .category-card {
    min-height: 44px !important;
    padding: 8px 15px !important;
    scroll-snap-align: start;
  }

  #homeCategories .category-card h3 {
    font-size: 13px;
    white-space: nowrap;
  }

  body[data-page='home'] [data-home-block='categories'] {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  #homeBrands {
    grid-auto-columns: minmax(170px, 58vw) !important;
  }

  .product-fulfillment {
    display: grid;
    gap: 2px;
    margin-top: 4px;
    padding: 7px 0;
  }

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

  .recently-viewed .product-grid {
    display: grid;
    grid-auto-flow: column;
    grid-template-columns: none;
    grid-auto-columns: minmax(166px, 44vw);
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin-inline: -12px;
    padding: 0 12px 8px;
    scrollbar-width: none;
  }

  .recently-viewed .product-grid::-webkit-scrollbar {
    display: none;
  }

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

/* Mobile stability and compact discovery surfaces. */
.footer-theme-toggle {
  width: 28px;
  height: 28px;
  border: 0 !important;
}

.footer-theme-toggle:hover {
  border-color: transparent !important;
  background: transparent;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card {
  display: block;
  padding: 11px 12px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-mark {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-page='home'] .hero,
  body[data-page='home'] .hero.hero-mobile-media-enabled {
    height: clamp(250px, 70vw, 300px);
    min-height: 250px;
  }

  body[data-page='home'] .hero-content,
  body[data-page='home'] .hero[data-align='left'] .hero-content,
  body[data-page='home'] .hero[data-align='right'] .hero-content,
  body[data-page='home'] .hero[data-align='center'] .hero-content {
    padding: 13px 0 11px;
  }

  body[data-page='home'] .hero .eyebrow {
    margin-bottom: 6px;
    font-size: 9px;
  }

  body[data-page='home'] .hero h1 {
    font-size: clamp(22px, 6.3vw, 26px) !important;
    line-height: 1.03;
  }

  body[data-page='home'] .hero-text {
    display: -webkit-box;
    overflow: hidden;
    margin: 7px 0 9px;
    font-size: 12px !important;
    line-height: 1.35;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  body[data-page='home'] .hero-metrics {
    margin-top: auto;
  }

  body[data-page='home'] .metric {
    min-height: 52px;
    padding: 7px 8px;
  }

  body[data-page='home'] .metric strong {
    font-size: 18px;
  }

  body[data-page='home'] .metric span {
    font-size: 8px;
  }

  body[data-page='home'] .hero-slide img,
  body[data-page='home'] .hero-slide video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center;
  }

  .motion-ready .reveal-item,
  .motion-ready .reveal-item.is-revealed {
    transform: none !important;
    will-change: opacity;
  }

  .motion-ready .reveal-item {
    transition: opacity 0.24s ease !important;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart {
    padding: 12px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-head {
    margin-bottom: 10px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-grid {
    grid-auto-columns: minmax(198px, 62vw);
    gap: 8px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card {
    min-height: 118px;
    padding: 11px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card p {
    display: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-title {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
  }

  #brandsList.brand-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  #brandsList .brand-card,
  #brandsList .brand-card.has-image {
    display: grid;
    grid-template-rows: 76px minmax(32px, auto);
    align-content: stretch;
    min-height: 124px;
    padding: 9px;
    gap: 8px;
    overflow: hidden;
    border-radius: 2px;
  }

  #brandsList .brand-card .brand-media,
  #brandsList .brand-card.has-image .brand-media {
    display: grid;
    place-items: center;
    width: 100%;
    height: 76px;
    min-height: 0;
    aspect-ratio: auto;
    margin: 0;
    padding: 7px;
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: var(--paper);
  }

  #brandsList .brand-card .brand-letter {
    display: block;
    width: auto;
    height: auto;
    aspect-ratio: auto;
    margin: 0;
    background: transparent;
    font-size: 42px;
    line-height: 1;
  }

  #brandsList .brand-card .brand-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }

  #brandsList .brand-card h3 {
    display: -webkit-box;
    align-self: start;
    min-height: 2.4em;
    margin: 0;
    padding: 0;
    overflow: hidden;
    font-size: 13px;
    line-height: 1.2;
    text-align: left;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
}

/* Final partner-rail layout. */
body[data-page='home'] #homeBrands {
  grid-auto-columns: clamp(112px, 12vw, 148px) !important;
  gap: 28px !important;
  align-items: center;
}

body[data-page='home'] #homeBrands .brand-card,
body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
  display: block !important;
  height: 82px !important;
  min-height: 82px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body[data-page='home'] #homeBrands .brand-letter {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100% !important;
  padding: 0 4px;
  color: var(--ink);
  font-size: clamp(13px, 1.3vw, 17px);
  font-weight: 600;
  line-height: 1.15;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body[data-page='home'] #homeBrands .brand-media,
body[data-page='home'] #homeBrands .brand-card.has-image .brand-media {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body[data-page='home'] #homeBrands .brand-media img,
body[data-page='home'] #homeBrands .brand-card.has-image .brand-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

body[data-page='home'] [data-home-block='brands'] .btn-light,
body[data-page='home'] [data-home-block='brands'] .btn-light:hover {
  min-height: 0;
  padding: 3px 0;
  border: 0;
  background: transparent;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
  transform: none;
}

@media (max-width: 760px) {
  body[data-page='home'] #homeBrands {
    grid-auto-columns: clamp(110px, 30vw, 142px) !important;
    gap: 16px !important;
  }

  body[data-page='home'] #homeBrands .brand-card,
  body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
    height: 66px !important;
    min-height: 66px !important;
  }

  body[data-page='home'] #homeBrands .brand-letter {
    font-size: 13px;
  }
}

/* Editorial photo rail below the brands block. */
.home-gallery-section {
  padding-top: 0;
}

.home-gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px) / 2);
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x pan-y;
}

.home-gallery-rail::-webkit-scrollbar {
  display: none;
}

.home-gallery-rail.is-single {
  grid-auto-columns: 100%;
}

.home-gallery-item {
  margin: 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  scroll-snap-align: start;
}

.home-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-gallery-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  color: var(--muted);
  background: var(--paper);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
}

.home-gallery-placeholder[hidden] {
  display: none;
}

.home-gallery-item.is-error img {
  display: none;
}

.home-gallery-admin-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-gallery-admin-preview {
  display: grid;
  aspect-ratio: 16/9;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
}

.home-gallery-admin-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (max-width: 760px) {
  .home-gallery-section {
    padding: 18px 0;
  }

  .home-gallery-rail,
  .home-gallery-rail.is-single {
    grid-auto-columns: 100%;
    gap: 8px;
  }

  .home-gallery-item {
    aspect-ratio: 16/9;
  }

  .home-gallery-admin-list {
    grid-template-columns: 1fr;
  }
}

/* Stable responsive rails for brand logos and storefront photos. */
body[data-page='home'] [data-home-block='brands'] .section-head {
  grid-template-columns: 1fr;
}

body[data-page='home'] #homeBrands .brand-card.has-image.is-logo-missing {
  visibility: hidden;
}

@media (max-width: 900px) {
  .home-gallery-rail,
  .home-gallery-rail.is-single {
    grid-auto-columns: 100%;
  }
}

@media (max-width: 520px) {
  body[data-page='home'] #homeBrands {
    grid-auto-columns: clamp(116px, 34vw, 150px) !important;
  }

  .home-gallery-item {
    aspect-ratio: 4/3;
  }

  .home-gallery-placeholder {
    padding: 16px;
    font-size: 13px;
  }
}

/* Footer column rhythm: align desktop headings with the ByVit wordmark. */
@media (min-width: 761px) {
  .footer-grid {
    align-items: start;
  }

  .footer-column {
    padding-top: 6px;
  }
}

.footer-column .footer-toggle span {
  color: var(--color-sage);
}

/* Catalog, storefront rails and admin density. */
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-layout {
  display: block;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-main {
  min-width: 0;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .toolbar {
  margin-bottom: 10px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart {
  margin: 0 0 12px;
  padding: 10px 0 12px;
  overflow: hidden;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
  background: transparent;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-head {
  display: flex;
  min-height: 0;
  justify-content: flex-end;
  margin: 0 0 7px;
  padding: 0 2px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-head a {
  justify-self: auto;
  font-size: 11px;
  font-weight: 600;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-grid {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-template-rows: repeat(2, minmax(82px, auto));
  grid-auto-columns: minmax(230px, 1fr);
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card {
  min-height: 82px;
  padding: 10px 12px;
  overflow: hidden;
  scroll-snap-align: start;
  background: var(--white);
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-title {
  display: block;
  margin: 0 0 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card p {
  min-height: 2.7em;
  max-height: 2.7em;
  margin: 0 0 5px;
  overflow: hidden;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-links {
  flex-wrap: nowrap;
  overflow: hidden;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-links a {
  flex: 0 0 auto;
  white-space: nowrap;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogProducts {
  align-items: stretch;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-card {
  height: 100%;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-body {
  display: grid;
  grid-template-rows: 15px 42px 42px 24px 58px 40px;
  gap: 7px;
  min-height: 253px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-brand,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-title,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-desc,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-card-tags,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-meta,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .card-buttons {
  min-height: 0;
  margin: 0;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-brand {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-title {
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-desc {
  min-height: 0;
  max-height: none;
  line-height: 1.4;
  -webkit-line-clamp: 2;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-card-tags {
  height: 24px;
  flex-wrap: nowrap;
  overflow: hidden;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-card-tags
  span {
  flex: 0 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-meta {
  height: 58px;
  padding-top: 8px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .card-buttons {
  align-self: end;
}

#homeCategories {
  display: grid;
  grid-auto-flow: column;
  grid-template-columns: none;
  grid-auto-columns: minmax(150px, 1fr);
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

#homeCategories .category-card {
  scroll-snap-align: start;
}

#homeBrands .brand-card.has-image {
  grid-template-rows: 76px minmax(28px, auto);
  gap: 0;
  padding: 0;
  overflow: hidden;
}

#homeBrands .brand-card.has-image .brand-media {
  width: 100%;
  height: 76px;
  margin: 0;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
}

#homeBrands .brand-card.has-image .brand-media img {
  width: 100%;
  height: 100%;
}

#homeBrands .brand-card.has-image h3 {
  width: 100%;
  padding: 9px 11px;
}

.cart-drawer-product-link,
.cart-drawer-product-copy {
  display: block;
  min-width: 0;
}

.cart-drawer-product-copy:hover h3 {
  color: var(--green);
}

.stores-section {
  padding-top: 18px;
}

.stores-section .map-box {
  min-height: 420px;
  margin: 0 0 16px;
}

.stores-section .map-box iframe {
  height: min(520px, 62vh);
  min-height: 420px;
}

body[data-page='admin'] #adminHomeBlocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-page='admin'] #adminHomeBlocks .admin-block-editor {
  align-content: start;
  gap: 7px;
  padding: 9px;
}

body[data-page='admin'] #adminHomeBlocks .admin-block-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 8px;
}

.admin-home-order {
  display: flex;
  align-items: center;
  gap: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 600;
}

body[data-page='admin'] .admin-home-order input {
  width: 44px;
  min-height: 28px;
  height: 28px;
  padding: 3px 5px;
  text-align: center;
}

body[data-page='admin'] #adminHomeBlocks textarea {
  min-height: 52px;
}

@media (max-width: 760px) {
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart {
    margin-top: 0;
    padding: 7px 0 9px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-head {
    margin-bottom: 6px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-grid {
    grid-template-rows: repeat(2, 94px);
    grid-auto-columns: minmax(208px, 72vw);
    gap: 7px;
    scrollbar-width: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    .catalog-smart-grid::-webkit-scrollbar {
    display: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card {
    min-height: 94px;
    padding: 9px 10px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-card p {
    display: -webkit-box;
    min-height: 2.5em;
    max-height: 2.5em;
    font-size: 11px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-links a {
    min-height: 20px;
    padding: 3px 6px;
    font-size: 10px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-body {
    grid-template-rows: 13px 36px 34px 22px 46px 36px;
    gap: 5px;
    min-height: 177px;
    padding: 9px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-title {
    font-size: 13px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-desc {
    font-size: 11px;
    line-height: 1.35;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-meta {
    height: 46px;
    padding-top: 5px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .card-buttons {
    height: 36px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .card-buttons
    .btn {
    min-height: 36px;
    height: 36px;
    padding: 7px 8px;
  }

  #homeCategories {
    grid-auto-columns: max-content;
    scrollbar-width: none;
  }

  #homeCategories::-webkit-scrollbar {
    display: none;
  }

  #homeBrands .brand-card.has-image {
    grid-template-rows: 58px minmax(28px, auto);
    padding: 0;
  }

  #homeBrands .brand-card.has-image .brand-media {
    height: 58px;
  }

  #homeBrands .brand-card.has-image h3 {
    padding: 8px 10px;
  }

  .stores-section {
    padding-top: 8px;
  }

  .stores-section .map-box {
    min-height: 300px;
    margin-bottom: 10px;
  }

  .stores-section .map-box iframe {
    height: 340px;
    min-height: 300px;
  }

  .stores-section .store-grid {
    gap: 8px;
  }

  body[data-page='admin'] #adminHomeBlocks {
    grid-template-columns: 1fr;
  }

  body[data-page='admin'] #adminHomeBlocks .admin-block-head {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  body[data-page='admin'] #adminHomeBlocks .mini-toggle {
    grid-column: 1 / -1;
  }
}

/* Catalog alignment, resilient product media and invisible horizontal rails. */
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) main > .section {
  padding-top: 17px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .toolbar {
  margin-bottom: 6px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart {
  margin-bottom: 3px;
  padding-bottom: 3px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .result-note {
  margin: 2px 0 4px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-grid,
#homeCategories,
#homeBrands {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-smart-grid::-webkit-scrollbar,
#homeCategories::-webkit-scrollbar,
#homeBrands::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.product-media > a {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
}

.product-media > a > img {
  display: block;
}

.product-media > a > img[hidden] {
  display: none;
}

.product-media.is-image-missing > a::after {
  content: 'BYVIT';
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--green);
  font-family: var(--font-heading);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

@media (max-width: 760px) {
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) main > .section {
    padding-top: 8px;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogProducts {
    gap: 8px;
    align-items: stretch;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-media {
    aspect-ratio: 1/1;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-body {
    grid-template-rows: 36px 22px 38px 36px;
    gap: 5px;
    height: 163px;
    min-height: 163px;
    padding: 8px;
    overflow: hidden;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-brand,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-desc {
    display: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-title {
    align-self: start;
    min-height: 0;
    font-size: 13px;
    line-height: 1.2;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card-tags {
    height: 22px;
    min-height: 22px;
    margin: 0;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-meta {
    display: flex;
    align-items: center;
    height: 38px;
    min-height: 38px;
    padding: 0;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-meta
    .stars {
    display: none;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .card-buttons {
    height: 36px;
    min-height: 36px;
    margin: 0;
  }

  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .circle-action {
    display: none;
  }
}

/* Shared product-card rhythm: every storefront rail uses the same content rows. */
.product-grid {
  align-items: stretch;
}

.product-grid .product-card {
  height: 100%;
}

.product-grid .product-body {
  min-width: 0;
}

.product-grid .product-brand,
.product-grid .product-title,
.product-grid .product-desc,
.product-grid .product-card-tags,
.product-grid .product-meta,
.product-grid .card-buttons {
  min-width: 0;
  min-height: 0;
  margin: 0;
}

.product-grid .product-brand {
  grid-area: brand;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-grid .product-title {
  grid-area: title;
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.2;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.product-grid .product-desc {
  grid-area: desc;
  display: -webkit-box;
  min-height: 0;
  max-height: none;
  overflow: hidden;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.product-grid .product-card-tags {
  grid-area: tags;
  height: 24px;
  flex-wrap: nowrap;
  overflow: hidden;
}

.product-grid .product-card-tags span {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-grid .product-meta {
  grid-area: meta;
  height: auto;
  padding-top: 6px;
}

.product-grid .card-buttons {
  grid-area: buttons;
  height: 40px;
  align-self: end;
}

@media (min-width: 761px) {
  .product-grid .product-body {
    display: grid;
    grid-template-areas:
      'brand'
      'title'
      'desc'
      'tags'
      'meta'
      'buttons';
    grid-template-rows: 15px 44px 60px 26px 54px 40px;
    gap: 6px;
    height: 301px;
    min-height: 301px;
    padding: 16px;
  }
}

@media (max-width: 760px) {
  .product-grid .product-body,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-body {
    display: grid;
    grid-template-areas:
      'meta'
      'title'
      'tags'
      'buttons';
    grid-template-rows: 38px 34px 22px 36px;
    gap: 5px;
    height: 166px;
    min-height: 166px;
    padding: 8px;
    overflow: hidden;
  }

  .product-grid .product-brand,
  .product-grid .product-desc {
    display: none;
  }

  .product-grid .product-title {
    order: initial;
    align-self: start;
    height: 34px;
    min-height: 34px;
    margin: 0 !important;
    font-size: 13px;
    line-height: 1.2;
  }

  .product-grid .product-card-tags {
    order: initial;
    height: 22px;
    min-height: 22px;
    margin: 0 !important;
  }

  .product-grid .product-card-tags span {
    min-height: 22px;
    padding: 3px 6px;
    font-size: 9px;
  }

  .product-grid .product-meta {
    order: initial;
    display: flex;
    align-items: center;
    height: 38px;
    min-height: 38px;
    margin: 0 !important;
    padding: 0 !important;
  }

  .product-grid .product-meta .stars {
    display: none;
  }

  .product-grid .card-buttons {
    order: initial;
    height: 36px;
    min-height: 36px;
    margin: 0 !important;
  }

  .product-grid .card-buttons .btn {
    height: 36px;
    min-height: 36px;
    padding: 7px 8px;
  }

  .product-grid .circle-action {
    display: none;
  }
}

/* Goals now have their own compact admin workspace. */
body[data-page='admin'] .admin-goals-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body[data-page='admin'] .admin-goals-list .admin-block-editor {
  align-content: start;
  gap: 7px;
  padding: 10px;
}

body[data-page='admin'] .admin-goals-list textarea {
  min-height: 64px;
}

/* Store information comes first; the full-width map closes the section. */
.stores-section .map-box {
  margin: 16px 0 0;
}

@media (max-width: 760px) {
  body[data-page='admin'] .admin-goals-list {
    grid-template-columns: 1fr;
  }

  .stores-section .map-box {
    margin-top: 10px;
  }
}

/* Mobile storefront cleanup: keep discovery and product rails compact. */
[data-theme-toggle],
.footer-theme-toggle {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-page='home'] [data-home-block='categories'] .section-title,
  body[data-page='home'] [data-home-block='categories'] .section-head p {
    display: none !important;
  }

  body[data-page='home'] [data-home-block='categories'] .section-head {
    margin-bottom: 4px;
  }

  #homeBrands .brand-card,
  #homeBrands .brand-card.has-image {
    min-height: 76px;
    height: 76px;
    grid-template-rows: 76px;
    padding: 0;
  }

  #homeBrands .brand-card h3 {
    display: none !important;
  }

  #homeBrands .brand-card .brand-media,
  #homeBrands .brand-card.has-image .brand-media {
    width: 100%;
    height: 76px;
    margin: 0;
    padding: 0;
    border: 0;
  }

  #homeBrands .brand-card.has-image .brand-media img {
    width: 100%;
    height: 100%;
    object-fit: var(--brand-img-fit, contain);
  }

  .product-grid .product-body,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-body {
    grid-template-rows: 30px 32px 20px 36px;
    gap: 2px;
    height: 142px;
    min-height: 142px;
  }

  .product-grid .product-title,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-title {
    height: 32px;
    min-height: 32px;
  }

  .product-grid .product-card-tags,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card-tags {
    height: 20px;
    min-height: 20px;
  }

  .product-grid .product-card-tags span,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card-tags
    span {
    min-height: 20px;
    padding: 2px 5px;
  }

  .product-grid .product-meta,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-meta {
    height: 30px;
    min-height: 30px;
  }
}

/* Desktop catalog mega-menu: one structured entry point for the whole assortment. */
.catalog-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.catalog-menu-chevron {
  width: 7px;
  height: 7px;
  border-right: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

.catalog-menu-trigger[aria-expanded='true'] .catalog-menu-chevron {
  transform: rotate(225deg) translate(-1px, -1px);
}

.catalog-mega[hidden] {
  display: none;
}

.catalog-mega {
  position: absolute;
  z-index: 90;
  top: 100%;
  left: 0;
  width: 100%;
  max-height: calc(100vh - 110px);
  overflow: auto;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--color-surface);
  box-shadow: 0 18px 36px rgba(63, 63, 63, 0.08);
}

.catalog-mega-shell {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 42px;
  padding-top: 30px;
  padding-bottom: 34px;
}

.catalog-mega-intro {
  padding-right: 30px;
  border-right: 1px solid var(--line);
}

.catalog-mega-all {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  color: var(--green);
  font-weight: 650;
}

.catalog-mega-grid {
  display: block;
  columns: 3;
  column-gap: 34px;
}

.catalog-mega-group {
  break-inside: avoid;
  min-width: 0;
  margin: 0 0 20px;
}

.catalog-mega-category {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.25;
}

.catalog-mega-category:hover,
.catalog-mega-subcategories a:hover {
  color: var(--green);
}

.catalog-mega-subcategories {
  display: grid;
  gap: 5px;
}

.catalog-mega-subcategories a {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.catalog-mega-open::after {
  content: '';
  position: fixed;
  z-index: 45;
  inset: 110px 0 0;
  background: rgba(63, 63, 63, 0.18);
  pointer-events: none;
}

/* One vertical rhythm for every home section and its heading copy. */
body[data-page='home'] {
  --home-section-space: 42px;
  --home-head-space: 20px;
  --home-copy-space: 8px;
}

body[data-page='home'] .section,
body[data-page='home'] .section.dark,
body[data-page='home'] .trust-section {
  padding-top: var(--home-section-space);
  padding-bottom: var(--home-section-space);
}

body[data-page='home'] .section-head {
  margin-bottom: var(--home-head-space);
  padding-top: 12px;
}

body[data-page='home'] [data-home-block] .section-head {
  margin-bottom: var(--home-head-space) !important;
}

body[data-page='home'] .section-head .eyebrow {
  margin-bottom: 12px;
}

body[data-page='home'] .section-head h2,
body[data-page='home'] .section-head .section-title {
  margin-top: 0;
  margin-bottom: 0;
}

body[data-page='home'] .section-head p {
  margin-top: var(--home-copy-space);
  margin-bottom: 0;
}

body[data-page='admin'] .admin-category-subcategories {
  display: grid;
  gap: 8px;
  padding-top: 2px;
}

body[data-page='admin'] .admin-category-subcategories h5 {
  margin: 0;
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body[data-page='admin'] .admin-category-subcategory-list {
  display: grid;
  gap: 6px;
}

body[data-page='admin'] .admin-category-subcategory {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 6px;
  align-items: center;
}

body[data-page='admin'] .admin-category-subcategory input {
  min-width: 0;
}

@media (max-width: 1100px) {
  .catalog-mega {
    display: none !important;
  }

  body.catalog-mega-open::after {
    display: none;
  }
}

/* Mobile cart: compact Swiss grid with square media and direct controls. */
@media (max-width: 760px) {
  body[data-page='home'] {
    --home-section-space: 14px;
    --home-head-space: 8px;
    --home-copy-space: 4px;
  }

  body[data-page='home'] .section-head {
    padding-top: 4px;
  }

  body[data-page='home'] .section-head .eyebrow {
    margin-bottom: 6px;
  }

  body[data-page='home'] [data-home-block] .section-head {
    margin-bottom: 8px !important;
  }

  body[data-page='home'] [data-home-block='categories'] .section-head {
    margin-bottom: 2px !important;
  }

  body[data-page='admin'] .admin-category-subcategory {
    grid-template-columns: 1fr auto;
  }

  body[data-page='admin'] .admin-category-subcategory input:first-child {
    grid-column: 1 / -1;
  }

  body[data-page='cart'] .cart-list {
    gap: 0;
    border-top: 2px solid var(--ink);
    border-bottom: 1px solid var(--line);
  }

  body[data-page='cart'] .cart-item {
    min-height: 0;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: var(--color-surface);
  }

  body[data-page='cart'] .cart-item:last-child {
    border-bottom: 0;
  }

  body[data-page='cart'] .cart-item-img {
    width: 72px;
    height: 72px;
    border: 1px solid var(--line);
    border-radius: 0;
    background: var(--paper);
    object-fit: contain;
  }

  body[data-page='cart'] .cart-item-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  body[data-page='cart'] .cart-item-info h3 {
    margin: 0 0 3px;
    font-size: 15px;
    font-weight: 650;
    line-height: 1.16;
  }

  body[data-page='cart'] .cart-item-info small {
    color: var(--muted);
    font-size: 12px;
  }

  body[data-page='cart'] .cart-item-controls {
    display: grid;
    grid-template-columns: minmax(62px, 1fr) 92px auto;
    gap: 8px;
    align-items: center;
  }

  body[data-page='cart'] .cart-item-price {
    min-width: 0;
    font-size: 13px;
    text-align: left;
  }

  body[data-page='cart'] .cart-qty-stepper {
    width: 92px;
    height: 32px;
    border-radius: 0;
  }

  body[data-page='cart'] .cart-qty-stepper button {
    width: 28px;
  }

  body[data-page='cart'] .cart-qty-stepper input {
    width: 34px;
    min-width: 34px;
    flex: 0 0 34px;
  }

  body[data-page='cart'] .cart-remove.btn.small {
    min-height: 30px;
    height: 30px;
    padding: 0 0 2px;
    border: 0;
    border-bottom: 1px solid currentColor;
    border-radius: 0;
    background: transparent;
    font-size: 11px;
  }

  body[data-page='cart'] .summary-card,
  body[data-page='cart'] .checkout-form input,
  body[data-page='cart'] .checkout-form select,
  body[data-page='cart'] .checkout-form textarea,
  body[data-page='cart'] .delivery-option,
  body[data-page='cart'] .promo-row input,
  body[data-page='cart'] .promo-row .btn {
    border-radius: 0;
  }

  body[data-page='cart'] .summary-card {
    border-top: 2px solid var(--ink);
  }
}

@media (max-width: 380px) {
  body[data-page='cart'] .cart-item {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 9px;
  }

  body[data-page='cart'] .cart-item-img {
    width: 64px;
    height: 64px;
  }

  body[data-page='cart'] .cart-item-controls {
    grid-template-columns: minmax(54px, 1fr) 84px auto;
    gap: 6px;
  }

  body[data-page='cart'] .cart-qty-stepper {
    width: 84px;
  }
}

/* Dense mobile section labels and continuously moving storefront rails. */
#homeCategories .home-rail-copy,
#homeBrands .home-rail-copy {
  display: none !important;
}

@media (max-width: 760px) {
  body[data-page='home'] [data-home-block='sale'] .section-title,
  body[data-page='home'] [data-home-block='sale'] .section-head p,
  body[data-page='home'] [data-home-block='goals'] .section-title,
  body[data-page='home'] [data-home-block='goals'] .section-head p,
  body[data-page='home'] [data-home-block='trust'] .section-title,
  body[data-page='home'] [data-home-block='trust'] .section-head p,
  body[data-page='home'] [data-home-block='brands'] .section-title,
  body[data-page='home'] [data-home-block='brands'] .section-head p {
    display: none !important;
  }

  body[data-page='home'] [data-home-block='sale'] .section-head,
  body[data-page='home'] [data-home-block='goals'] .section-head,
  body[data-page='home'] [data-home-block='trust'] .section-head,
  body[data-page='home'] [data-home-block='brands'] .section-head {
    min-height: 0;
    margin-bottom: 4px !important;
    padding-top: 0 !important;
  }

  body[data-page='home'] .home-products-head .eyebrow a[data-mobile-label] {
    font-size: 0;
  }

  body[data-page='home'] .home-products-head .eyebrow a[data-mobile-label]::after {
    content: attr(data-mobile-label);
    font-size: 12px;
  }

  body[data-page='home'] #homeCategories,
  body[data-page='home'] #homeBrands {
    scroll-snap-type: none;
    scroll-behavior: auto;
    touch-action: pan-x;
    overscroll-behavior-inline: contain;
  }

  body[data-page='home'] #homeCategories .home-rail-copy,
  body[data-page='home'] #homeBrands .home-rail-copy {
    display: grid !important;
  }

  .product-grid .product-body,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-body {
    grid-template-areas:
      'title'
      'meta'
      'tags'
      'buttons';
  }
}

/* Compact home hierarchy and a quieter frosted catalog menu. */
body[data-page='home'] [data-home-block] .section-head {
  padding-top: 0;
  border-top: 0;
}

body[data-page='home'] [data-home-block='sale'] .section-head,
body[data-page='home'] [data-home-block='categories'] .section-head,
body[data-page='home'] [data-home-block='goals'] .section-head,
body[data-page='home'] [data-home-block='brands'] .section-head {
  margin-bottom: 10px !important;
}

body[data-page='home'] [data-home-block='sale'] .section-head .eyebrow,
body[data-page='home'] [data-home-block='categories'] .section-head .eyebrow,
body[data-page='home'] [data-home-block='goals'] .section-head .eyebrow,
body[data-page='home'] [data-home-block='brands'] .section-head .eyebrow {
  margin-bottom: 0;
}

@media (min-width: 761px) {
  body[data-page='home'] .hero {
    height: auto;
    min-height: 520px;
  }

  body[data-page='home'] .hero-content {
    min-height: 520px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
  }

  body[data-page='home'] .hero-metrics {
    width: 100%;
    flex: 0 0 auto;
  }
}

/* Product image manager and five-image storefront gallery. */
.gallery-thumbs {
  flex-wrap: nowrap;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding: 2px 2px 5px;
  scrollbar-width: thin;
}

.gallery-thumbs button {
  flex: 0 0 82px;
}

body[data-page='admin'] .admin-product-images {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

body[data-page='admin'] .admin-product-image-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
}

body[data-page='admin'] .admin-product-image-item.is-primary {
  border-color: var(--green);
  box-shadow: 0 0 0 1px var(--green);
}

body[data-page='admin'] .admin-product-image-item > img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-bottom: 1px solid var(--line);
  object-fit: cover;
  background: var(--paper);
}

body[data-page='admin'] .admin-product-image-meta {
  display: grid;
  gap: 4px;
  padding: 6px;
}

body[data-page='admin'] .admin-product-image-meta label {
  display: flex;
  min-height: 28px;
  align-items: center;
  gap: 5px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 650;
  cursor: pointer;
}

body[data-page='admin'] .admin-product-image-meta input[type='radio'] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: var(--green);
}

body[data-page='admin'] .admin-product-image-meta button {
  min-height: 28px;
  padding: 4px 5px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 10px;
  cursor: pointer;
}

body[data-page='admin'] .admin-product-image-meta button:hover {
  border-color: var(--danger, #8d2f2f);
  color: var(--danger, #8d2f2f);
}

body[data-page='admin'] .admin-product-images-empty {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

body[data-page='admin'] .admin-product-images-upload {
  margin-top: 8px;
}

body[data-page='admin'] .admin-product-images-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

body[data-page='admin'] .admin-product-images-actions .admin-hint {
  margin: 0;
}

@media (max-width: 760px) {
  .gallery-thumbs {
    scrollbar-width: none;
  }

  .gallery-thumbs::-webkit-scrollbar {
    display: none;
  }

  body[data-page='admin'] .admin-product-images {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body[data-page='home'] [data-home-block] .section-head {
    padding-top: 0 !important;
  }

  body[data-page='home'] [data-home-block='sale'] .section-head,
  body[data-page='home'] [data-home-block='categories'] .section-head,
  body[data-page='home'] [data-home-block='goals'] .section-head,
  body[data-page='home'] [data-home-block='trust'] .section-head,
  body[data-page='home'] [data-home-block='brands'] .section-head {
    margin-bottom: 4px !important;
  }
}

@media (min-width: 1101px) {
  .catalog-mega {
    border-top: 1px solid rgba(217, 205, 191, 0.7);
    border-bottom: 1px solid rgba(217, 205, 191, 0.78);
    background: rgba(248, 249, 246, 0.84);
    box-shadow: 0 20px 44px rgba(63, 63, 63, 0.1);
    -webkit-backdrop-filter: blur(20px) saturate(0.9);
    backdrop-filter: blur(20px) saturate(0.9);
  }

  .catalog-mega-shell {
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 26px;
    padding-top: 22px;
    padding-bottom: 24px;
  }

  .catalog-mega-intro {
    padding-right: 0;
    border-right: 0;
  }

  .catalog-mega-grid {
    column-gap: 28px;
  }

  .catalog-mega-group {
    margin-bottom: 14px;
  }
}

/* Unified header search and compact navigation. */
.site-header > .header-inner > .header-search {
  display: none !important;
}

.header-search-trigger {
  display: grid;
  place-items: center;
}

.header-search-glyph {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
}

.header-search-glyph::before {
  content: '';
  position: absolute;
  width: 11px;
  height: 11px;
  top: 1.5px;
  left: 1.5px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
}

.header-search-glyph::after {
  content: '';
  position: absolute;
  width: 7px;
  height: 1.5px;
  left: 12px;
  top: 13.5px;
  background: currentColor;
  transform: rotate(45deg);
  transform-origin: left center;
}

.header-search-overlay {
  --header-overlay-top: 100px;
  position: fixed;
  inset: var(--header-overlay-top) 0 0;
  z-index: 72;
  pointer-events: none;
}

.header-search-overlay[hidden] {
  display: none;
}

.header-overlay-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(20, 22, 19, 0.24);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.header-overlay-sheet {
  position: relative;
  z-index: 1;
  max-height: min(560px, calc(100vh - var(--header-overlay-top)));
  overflow: auto;
  background: color-mix(in srgb, var(--paper) 90%, transparent);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 52px rgba(17, 19, 16, 0.12);
  -webkit-backdrop-filter: blur(22px) saturate(0.92);
  backdrop-filter: blur(22px) saturate(0.92);
  transform: translateY(-14px);
  opacity: 0;
  transition:
    transform 0.22s ease,
    opacity 0.2s ease;
}

.header-search-overlay.open {
  pointer-events: auto;
}

.header-search-overlay.open .header-overlay-backdrop {
  opacity: 1;
}

.header-search-overlay.open .header-overlay-sheet {
  transform: translateY(0);
  opacity: 1;
}

.header-overlay-content {
  padding-top: 38px;
  padding-bottom: 46px;
}

.header-overlay-form {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 40px;
  align-items: center;
  gap: 12px;
  max-width: 920px;
  margin: 0 auto;
  border-bottom: 1px solid var(--ink);
}

.header-overlay-form input {
  min-width: 0;
  height: 62px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: 600 30px/1.2 var(--font);
}

.header-overlay-form input::placeholder {
  color: var(--muted);
  opacity: 1;
}

.header-overlay-close {
  position: relative;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--ink);
}

.header-overlay-close::before,
.header-overlay-close::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 1px;
  top: 20px;
  left: 12px;
  background: currentColor;
}

.header-overlay-close::before {
  transform: rotate(45deg);
}

.header-overlay-close::after {
  transform: rotate(-45deg);
}

.header-overlay-body {
  max-width: 920px;
  margin: 0 auto;
}

.header-overlay-label {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.header-result-link {
  color: var(--ink);
  text-decoration: none;
}

.header-live-results {
  margin-top: 22px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.header-result-link {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
}

.header-result-link span {
  font-weight: 650;
}

.header-result-link small,
.header-search-empty {
  color: var(--muted);
}

.header-search-empty {
  margin: 0;
}

body.search-open,
body.menu-open {
  overflow: hidden;
}

body[data-page='about'] main > .section:nth-of-type(4) .section-head {
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 1100px) {
  .header-inner {
    position: relative;
  }

  .header-actions > a.icon-link,
  .header-actions > .admin-pill {
    display: none !important;
  }

  .header-search-trigger,
  .burger {
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    background: transparent;
    border-radius: 0;
  }

  .burger {
    font-size: 0;
  }

  .burger-lines,
  .burger-lines::before {
    display: block;
    width: 18px;
    height: 1.5px;
    background: currentColor;
    transition: transform 0.2s ease;
  }

  .burger-lines {
    position: relative;
    transform: translateY(-3px);
  }

  .burger-lines::before {
    content: '';
    position: absolute;
    left: 0;
    top: 6px;
  }

  body.menu-open .burger-lines {
    transform: translateY(0) rotate(45deg);
  }

  body.menu-open .burger-lines::before {
    top: 0;
    transform: rotate(-90deg);
  }

  .mobile-panel {
    --mobile-menu-top: 76px;
    position: fixed;
    top: var(--mobile-menu-top);
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    height: calc(100dvh - var(--mobile-menu-top));
    min-height: calc(100dvh - var(--mobile-menu-top));
    z-index: 71;
    display: block;
    max-height: none !important;
    padding: 0;
    overflow: auto;
    background: color-mix(in srgb, var(--paper) 94%, transparent);
    border: 0;
    -webkit-backdrop-filter: blur(22px) saturate(0.92);
    backdrop-filter: blur(22px) saturate(0.92);
    transform: translateY(-12px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition:
      transform 0.2s ease,
      opacity 0.18s ease,
      visibility 0s linear 0.2s;
  }

  .mobile-panel.open {
    height: calc(100dvh - var(--mobile-menu-top));
    max-height: none !important;
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transition-delay: 0s;
  }

  .mobile-panel > .container {
    display: block;
    padding-top: 16px;
    padding-bottom: 46px;
  }

  .mobile-menu-primary {
    display: grid;
  }

  .mobile-menu-primary a {
    border: 0;
    color: var(--ink);
    text-decoration: none;
  }

  .mobile-menu-primary a {
    padding: 10px 0;
    display: grid;
    grid-template-columns: 24px minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    min-height: 48px;
    border-bottom: 1px solid color-mix(in srgb, var(--line) 76%, transparent);
    font-size: 17px;
    line-height: 1.25;
    font-weight: 400;
  }

  .mobile-menu-primary .mobile-menu-icon {
    display: block;
    width: 24px;
    height: 24px;
    color: var(--green);
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    pointer-events: none;
  }

  .mobile-menu-label {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .mobile-menu-primary a:focus-visible {
    outline: 2px solid var(--green);
    outline-offset: 3px;
  }

  .mobile-menu-primary a:active {
    background: var(--green-soft);
  }
}

@media (max-width: 760px) {
  .site-header .header-inner {
    height: 68px;
  }

  .header-actions {
    gap: 2px;
  }

  .header-overlay-sheet {
    height: calc(100vh - var(--header-overlay-top));
    max-height: none;
  }

  .header-overlay-content {
    padding-top: 18px;
    padding-bottom: 36px;
  }

  .header-overlay-form {
    grid-template-columns: 20px minmax(0, 1fr) 36px;
    gap: 8px;
  }

  .header-overlay-form input {
    height: 52px;
    font-size: 22px;
  }

  .header-overlay-body {
    margin-top: 0;
  }

  .header-live-results:not([hidden]) {
    margin-top: 18px;
  }

  .header-result-link {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .mobile-panel > .container {
    padding-top: 12px;
  }

  .mobile-menu-primary a {
    padding: 9px 0;
    font-size: 16px;
    font-weight: 400;
  }

  body[data-page='home'] [data-home-block] {
    padding-top: 12px !important;
    padding-bottom: 14px !important;
  }

  body[data-page='home'] [data-home-block] .section-head {
    min-height: 0 !important;
    margin: 0 0 5px !important;
    padding: 0 !important;
  }

  body[data-page='home'] [data-home-block] .section-head > div {
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-page='home'] [data-home-block] .eyebrow {
    display: flex;
    align-items: center;
    min-height: 18px;
    margin: 0 !important;
    line-height: 1.15;
  }
}

/* Search and catalog use one quiet frosted overlay language. */
@media (min-width: 1101px) {
  .catalog-mega {
    --catalog-mega-top: 110px;
    position: fixed;
    inset: var(--catalog-mega-top) 0 0;
    z-index: 72;
    width: auto;
    max-height: none;
    overflow: hidden;
    border: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }

  .catalog-mega-backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    padding: 0;
    border: 0;
    background: rgba(20, 22, 19, 0.24);
    opacity: 0;
    transition: opacity 0.2s ease;
  }

  .catalog-mega-sheet {
    position: relative;
    z-index: 1;
    max-height: min(560px, calc(100vh - var(--catalog-mega-top)));
    overflow: auto;
    border-bottom: 1px solid var(--line);
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    box-shadow: 0 24px 52px rgba(17, 19, 16, 0.12);
    -webkit-backdrop-filter: blur(22px) saturate(0.92);
    backdrop-filter: blur(22px) saturate(0.92);
    transform: translateY(-14px);
    opacity: 0;
    transition:
      transform 0.22s ease,
      opacity 0.2s ease;
  }

  .catalog-mega.open {
    pointer-events: auto;
  }

  .catalog-mega.open .catalog-mega-backdrop {
    opacity: 1;
  }

  .catalog-mega.open .catalog-mega-sheet {
    transform: translateY(0);
    opacity: 1;
  }

  .catalog-mega-shell {
    display: block;
    padding-top: 24px;
    padding-bottom: 30px;
  }

  .catalog-mega-intro {
    margin: 0 0 16px;
    padding: 0;
    border: 0;
  }

  .catalog-mega-all {
    font-size: 15px;
  }

  .catalog-mega-grid {
    columns: 3;
    column-gap: 30px;
  }

  .catalog-mega-group {
    margin-bottom: 14px;
  }

  body.catalog-mega-open::after {
    display: none;
  }
}

body[data-page='home'] [data-home-block='categories'] {
  padding-top: 20px !important;
  padding-bottom: 20px !important;
}

@media (max-width: 760px) {
  body[data-page='home'] [data-home-block='categories'] {
    padding-top: 6px !important;
    padding-bottom: 7px !important;
  }

  body[data-page='home'] [data-home-block='categories'] .section-head {
    margin-bottom: 2px !important;
  }
}

/* Header and navigation polish. */
.brand-mark.has-image {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-mark.has-image .brand-mark-img {
  object-fit: contain;
}

.site-header .header-actions > .icon-link,
.site-header .header-actions > .burger {
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.site-header .header-actions > .icon-link:hover,
.site-header .header-actions > .burger:hover {
  background: transparent !important;
  color: var(--green);
}

.header-search-trigger {
  color: var(--ink);
}

.header-result-link span {
  font-weight: 400;
}

body[data-page='admin'] #adminPanel.admin-shell {
  padding-top: 12px;
}

body[data-page='admin'] #adminPanel > .container > .section-head {
  margin-bottom: 8px;
  padding-top: 0 !important;
  border-top: 0 !important;
}

@media (min-width: 1101px) {
  .catalog-mega-grid {
    column-gap: 15px;
  }
}

@media (max-width: 1100px) {
  .header-search-trigger {
    display: grid !important;
    flex: 0 0 44px;
  }
}

@media (max-width: 760px) {
  #homeCategories .category-card h3 {
    font-weight: 400;
  }
}

/* Header counters and controls share one visual size. */
.site-header .header-actions > .icon-link {
  width: 44px;
  min-width: 44px;
  height: 44px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
}

.header-search-glyph {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.header-search-glyph circle,
.header-search-glyph path {
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
}

.count-pill {
  top: 0;
  right: 1px;
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.count-pill[hidden],
.count-pill:empty {
  display: none !important;
}

/* Thin commerce icons, compact counters and FAQ disclosure controls. */
.header-action-glyph {
  display: block;
  width: 22px;
  height: 22px;
  overflow: visible;
}

.header-action-glyph path {
  stroke: currentColor;
  stroke-width: 1.55;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.site-header .header-actions > .icon-link {
  font-weight: 400;
}

.bottom-nav-icon .bottom-nav-glyph {
  width: 21px;
  height: 21px;
}

.bottom-nav-count {
  top: 3px;
  right: calc(50% - 25px);
  min-width: 0;
  width: auto;
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  font-weight: 650;
  line-height: 1;
}

.bottom-nav-count[hidden],
.bottom-nav-count:empty {
  display: none !important;
}

.faq-question {
  font-weight: 400;
  letter-spacing: 0;
}

.faq-question::after {
  content: '';
  width: 8px;
  height: 8px;
  margin-right: 4px;
  border: 0;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  opacity: 0.72;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.faq-item.open .faq-question::after {
  content: '';
  transform: rotate(-135deg);
}

/* Dense, aligned desktop catalog sheet. */
@media (min-width: 1101px) {
  .catalog-mega-shell {
    padding-top: 18px;
    padding-bottom: 22px;
  }

  .catalog-mega-intro {
    margin-bottom: 10px;
  }

  .catalog-mega-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    column-gap: 12px;
    row-gap: 14px;
    columns: auto;
  }

  .catalog-mega-group {
    margin: 0;
  }
}

/* Catalog search uses the same quiet result language as the header search. */
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogSort {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  background-image:
    linear-gradient(45deg, transparent 50%, currentColor 50%),
    linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 16px) 50%;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  font-size: 14px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .toolbar {
  z-index: 45;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-suggest-panel {
  left: -12px;
  top: calc(100% + 8px);
  z-index: 80;
  display: block;
  max-height: 280px;
  padding: 14px 16px;
  border-radius: 0;
  background: var(--white);
  box-shadow: 0 18px 38px rgba(17, 19, 16, 0.1);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-suggest-panel
  .header-overlay-label {
  margin-bottom: 5px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-suggest-panel
  .header-result-link {
  width: 100%;
  min-height: 0;
  padding: 9px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  font-weight: 400;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-suggest-panel
  .header-result-link:hover {
  background: transparent;
  color: var(--green);
}

@media (max-width: 760px) {
  .site-header .header-actions > .icon-link {
    width: 44px;
    min-width: 44px;
    height: 44px;
  }

  .product-grid .product-card .price,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card
    .price {
    font-weight: 400 !important;
  }

  .product-grid .product-card-tags,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card-tags {
    transform: translateY(-2px);
  }
}

/* Keep native iOS controls in the storefront palette. */
button {
  color: inherit;
  -webkit-text-fill-color: currentColor;
}

.site-header .burger,
body[data-page='product'] .chip,
body[data-page='product'] .qty-stepper button,
body[data-page='product'] .tab-buttons button {
  color: var(--ink);
  -webkit-text-fill-color: currentColor;
  -webkit-appearance: none;
  appearance: none;
}

body[data-page='product'] .chip.active,
body[data-page='product'] .tab-buttons button.active {
  color: #fff;
  -webkit-text-fill-color: currentColor;
}

/* Internal page titles use a quieter editorial weight. */
.page-hero h1 {
  font-weight: 400;
}

/* Keep compact mobile sections free of detached divider lines. */
@media (max-width: 760px) {
  body[data-page='cart'] .cart-list,
  body[data-page='cart'] .summary-card {
    border-top: 0;
  }

  body[data-page='home'] [data-home-block='categories'] .section-head {
    display: none;
  }

  body[data-page='home'] [data-home-block='categories'] .section-head,
  body[data-page='home'] #homeCategories,
  body[data-page='home'] #homeCategories .category-card {
    border: 0 !important;
  }

  body[data-page='home'] [data-home-block='categories'] {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body[data-page='home'] #homeCategories {
    height: 44px;
  }

  body[data-page='home'] #homeCategories .category-card {
    height: 44px;
    min-height: 44px !important;
    padding: 0 15px !important;
    align-items: center;
    justify-content: center;
  }

  body[data-page='home'] #homeCategories .category-card h3 {
    display: flex;
    height: 100%;
    margin: 0;
    align-items: center;
    justify-content: center;
  }
}

/* Keep the visual gap between home sections consistent at every breakpoint. */
@media (min-width: 1101px) {
  body[data-page='home'] [data-home-block],
  body[data-page='home'] #homeGallerySection {
    padding-top: 12px !important;
    padding-bottom: 14px !important;
  }
}

@media (min-width: 761px) and (max-width: 1100px) {
  body[data-page='home'] [data-home-block]:not([data-home-block='categories']),
  body[data-page='home'] #homeGallerySection {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }

  body[data-page='home'] [data-home-block='categories'] {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }
}

@media (max-width: 760px) {
  body[data-page='home'] #homeGallerySection {
    padding-top: 14px !important;
    padding-bottom: 14px !important;
  }
}

/* Final hero and navigation polish. */
.main-nav a {
  display: inline-flex;
  transition:
    color 0.2s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.main-nav a:hover {
  transform: translateY(-2px);
}

.catalog-menu-chevron {
  display: none;
}

body[data-page='home'] [data-home-block='brands'] .btn-light:hover {
  border-color: var(--green);
  background: var(--green);
  color: #fff;
  transform: translateY(-2px);
}

@media (min-width: 761px) {
  body[data-page='home'] .hero-slide .hero-desktop-media {
    inset: -2px;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    max-width: none;
    display: block;
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* Final gallery sizing: two compact slots on desktop, one adaptive slot below. */
@media (min-width: 901px) {
  body[data-page='home'] .home-gallery-rail,
  body[data-page='home'] .home-gallery-rail.is-single {
    grid-auto-columns: calc((100% - 14px) / 2) !important;
  }

  body[data-page='home'] .home-gallery-item {
    aspect-ratio: 16/9 !important;
  }
}

/* Responsive storefront media rails. */
body[data-page='home'] [data-home-block='brands'] .section-head {
  display: block;
  margin-bottom: 10px;
}

body[data-page='home'] #homeBrands {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: clamp(112px, 11vw, 152px) !important;
  gap: clamp(16px, 2vw, 32px) !important;
  width: 100%;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body[data-page='home'] #homeBrands::-webkit-scrollbar {
  display: none;
}

body[data-page='home'] #homeBrands .brand-card,
body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
  display: block !important;
  width: 100%;
  height: 72px !important;
  min-height: 72px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  scroll-snap-align: start;
}

body[data-page='home'] #homeBrands .brand-card.has-image.is-logo-missing {
  display: none !important;
}

body[data-page='home'] #homeBrands .brand-media,
body[data-page='home'] #homeBrands .brand-card.has-image .brand-media {
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}

body[data-page='home'] #homeBrands .brand-media img,
body[data-page='home'] #homeBrands .brand-card.has-image .brand-media img {
  display: block;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center !important;
  transform: none !important;
}

body[data-page='home'] #homeBrands .brand-letter {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100% !important;
  padding: 0 4px;
  overflow: hidden;
  color: var(--ink);
  font-size: clamp(13px, 1.15vw, 16px);
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page='home'] .home-gallery-section {
  display: block;
  padding: clamp(12px, 2vw, 24px) 0;
}

body[data-page='home'] .home-gallery-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 14px) / 2);
  gap: 14px;
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  touch-action: pan-x;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body[data-page='home'] .home-gallery-rail::-webkit-scrollbar {
  display: none;
}

body[data-page='home'] .home-gallery-rail.is-single {
  grid-auto-columns: 100%;
}

body[data-page='home'] .home-gallery-item {
  width: 100%;
  margin: 0;
  aspect-ratio: 16/10;
  overflow: hidden;
  border: 0;
  background: var(--paper);
  scroll-snap-align: start;
}

body[data-page='home'] .home-gallery-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 2px;
}

body[data-page='home'] .home-gallery-item.is-error img {
  display: none;
}

@media (max-width: 1024px) {
  body[data-page='home'] #homeBrands {
    grid-auto-columns: clamp(112px, 18vw, 148px) !important;
    gap: 16px !important;
  }

  body[data-page='home'] .home-gallery-rail,
  body[data-page='home'] .home-gallery-rail.is-single {
    grid-auto-columns: 100%;
  }

  body[data-page='home'] .home-gallery-item {
    aspect-ratio: 16/9;
  }
}

@media (max-width: 760px) {
  body[data-page='home'] [data-home-block='brands'] .section-head {
    margin-bottom: 6px !important;
  }

  body[data-page='home'] #homeBrands {
    grid-auto-columns: clamp(108px, 30vw, 140px) !important;
    gap: 12px !important;
  }

  body[data-page='home'] #homeBrands .brand-card,
  body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
    height: 64px !important;
    min-height: 64px !important;
  }

  body[data-page='home'] .home-gallery-section {
    padding: 12px 0;
  }

  body[data-page='home'] .home-gallery-rail,
  body[data-page='home'] .home-gallery-rail.is-single {
    gap: 8px;
    grid-auto-columns: 100%;
  }

  body[data-page='home'] .home-gallery-item {
    aspect-ratio: 16/7;
  }
}

@media (max-width: 380px) {
  body[data-page='home'] #homeBrands {
    grid-auto-columns: clamp(96px, 31vw, 118px) !important;
    gap: 10px !important;
  }

  body[data-page='home'] #homeBrands .brand-card,
  body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
    height: 58px !important;
    min-height: 58px !important;
  }
}

/* Manual storefront rails and consistent brand-card rhythm. */
body[data-page='home'] .hero,
.hero-media {
  touch-action: pan-y pinch-zoom;
  overscroll-behavior-inline: contain;
}

body[data-page='home'] #homeBrands {
  display: grid !important;
  grid-template-columns: none !important;
  grid-auto-flow: column;
  grid-auto-columns: clamp(168px, 16vw, 210px);
  gap: 12px;
  overflow-x: auto !important;
  overflow-y: hidden;
  scroll-snap-type: x proximity;
  touch-action: pan-x;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
}

body[data-page='home'] #homeBrands .brand-card,
body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
  display: grid !important;
  grid-template-rows: 76px;
  min-width: 0;
  height: 76px;
  min-height: 76px;
  scroll-snap-align: start;
}

body[data-page='home'] #homeBrands .brand-card h3 {
  display: none !important;
}

@media (max-width: 760px) {
  .footer-column .footer-toggle span {
    color: rgba(255, 255, 255, 0.68);
  }

  body[data-page='home'] #homeBrands {
    grid-auto-columns: clamp(150px, 32vw, 190px);
    gap: 8px;
  }
}

@media (max-width: 760px) {
  body[data-page='home'] .hero,
  body[data-page='home'] .hero.hero-mobile-media-enabled {
    height: clamp(188px, 52.5vw, 225px);
    min-height: 188px;
  }

  body[data-page='home'] .hero-slide .hero-mobile-fallback,
  body[data-page='home'] .hero-slide .hero-mobile-custom,
  body[data-page='home'] .hero-slide .hero-mobile-video {
    width: 100%;
    height: 100%;
    object-fit: cover !important;
    object-position: center !important;
  }
}

/* Cascade guard for the final brand-rail geometry. */
body[data-page='home'] #homeBrands .brand-card,
body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
  display: block !important;
  grid-template-rows: none !important;
  height: 72px !important;
  min-height: 72px !important;
}

body[data-page='home'] #homeBrands .brand-card.has-image.is-logo-missing {
  display: none !important;
}

body[data-page='home'] [data-home-block='brands'] {
  background: var(--color-surface) !important;
}

body[data-page='home'] #homeGoals .goal-card h3,
body[data-page='home'] #homeTrust .trust-item h3 {
  font-size: 18px;
  font-weight: 500;
}

@media (max-width: 760px) {
  body[data-page='home'] #homeBrands .brand-card,
  body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
    height: 64px !important;
    min-height: 64px !important;
  }
}

@media (max-width: 380px) {
  body[data-page='home'] #homeBrands .brand-card,
  body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
    height: 58px !important;
    min-height: 58px !important;
  }
}

/* Mobile Safari stability: adaptive gallery, no focus zoom, no page scrollbar. */
html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

@media (max-width: 760px) {
  body[data-page='home'] .home-gallery-rail,
  body[data-page='home'] .home-gallery-rail.is-single {
    grid-auto-columns: 100% !important;
  }

  body[data-page='home'] .home-gallery-item {
    width: 100%;
    aspect-ratio: 16/9 !important;
  }

  body[data-page='home'] .home-gallery-item img {
    display: block;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
  }

  input:not([type='checkbox']):not([type='radio']):not([type='range']):not([type='color']),
  select,
  textarea {
    font-size: 16px !important;
  }
}

/* Final storefront rails and compact feature bands. */
body[data-page='home'] #homeGoals {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

body[data-page='home'] #homeGoals .goal-card {
  min-height: 112px;
  padding: 18px 24px;
  border: 0 !important;
  border-right: 1px solid var(--line) !important;
  border-radius: 0 !important;
  background: transparent;
}

body[data-page='home'] #homeGoals .goal-card:nth-child(3n) {
  border-right: 0 !important;
}

body[data-page='home'] #homeGoals .goal-card:nth-child(n + 4) {
  border-top: 1px solid var(--line) !important;
}

body[data-page='home'] #homeCategories {
  grid-auto-columns: clamp(150px, 14vw, 190px);
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body[data-page='home'] #homeCategories::-webkit-scrollbar,
body[data-page='home'] .home-product-panel .product-grid.is-scrollable::-webkit-scrollbar {
  display: none;
}

body[data-page='home'] .home-product-panel .product-grid.is-scrollable {
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 72px) / 5);
  gap: 18px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

body[data-page='home'] .home-product-panel .product-grid.is-scrollable .product-card {
  min-width: 0;
  scroll-snap-align: start;
}

/* Match the standard product grid's three-column tablet sizing. */
@media (min-width: 761px) and (max-width: 1100px) {
  body[data-page='home'] .home-product-panel .product-grid.is-scrollable {
    grid-auto-columns: calc((100% - 36px) / 3);
  }
}

body[data-page='home'] .home-product-panel .product-card.reveal-item,
body[data-page='home'] .home-product-panel .product-card.reveal-item.is-revealed {
  transform: none !important;
  will-change: opacity;
  transition:
    opacity 0.24s ease,
    border-color 0.18s ease !important;
}

body[data-page='home'] .home-gallery-section {
  padding: clamp(22px, 3vw, 38px) 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
}

body[data-page='home'] .home-gallery-head {
  margin-bottom: 18px;
}

body[data-page='home'] #homeGallerySection,
body[data-page='home'] #homeGallerySection .home-gallery-head {
  border-top: 0 !important;
}

@media (max-width: 760px) {
  body[data-page='home'] #homeGoals {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(255px, 82vw);
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  body[data-page='home'] #homeGoals::-webkit-scrollbar {
    display: none;
  }

  body[data-page='home'] #homeGoals .goal-card {
    min-height: 104px;
    padding: 15px;
    scroll-snap-align: start;
  }

  body[data-page='home'] #homeGoals .goal-card:nth-child(n + 4) {
    border-top: 0 !important;
  }

  body[data-page='home'] #homeGoals .goal-card:nth-child(3n) {
    border-right: 1px solid var(--line) !important;
  }

  body[data-page='home'] #homeGoals .goal-card:last-child {
    border-right: 0 !important;
  }

  body[data-page='home'] .home-product-panel .product-grid.is-scrollable {
    grid-auto-columns: minmax(225px, 72vw);
    gap: 10px;
  }

  body[data-page='home'] .home-gallery-section {
    padding: 18px 0;
  }

  body[data-page='home'] .home-gallery-head {
    margin-bottom: 12px;
  }
}

/* Keep the category rail compact without sharing desktop sizing with mobile. */
@media (min-width: 761px) {
  body[data-page='home'] [data-home-block='categories'] {
    padding-top: 12px !important;
    padding-bottom: 12px !important;
  }

  body[data-page='home'] [data-home-block='categories'] .section-head {
    min-height: 0;
    margin-bottom: 8px !important;
  }

  body[data-page='home'] #homeCategories {
    height: 46px;
    grid-auto-columns: clamp(140px, 13vw, 178px);
  }

  body[data-page='home'] #homeCategories .category-card {
    height: 46px;
    min-height: 46px !important;
    padding: 0 12px !important;
  }

  body[data-page='home'] #homeCategories .category-card h3 {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    font-weight: 500;
    line-height: 1.15;
  }
}

@media (max-width: 760px) {
  body[data-page='home'] #homeCategories {
    height: 44px;
    grid-auto-columns: max-content;
  }

  body[data-page='home'] #homeCategories .category-card {
    width: auto;
    height: 44px;
    min-height: 44px !important;
    padding: 0 15px !important;
  }
}

/* Lightweight navigation actions. */
body[data-page='home'] .home-section-link {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
  transition:
    color 0.18s ease,
    transform 0.18s ease;
}

body[data-page='home'] .home-section-link:hover,
body[data-page='home'] .home-section-link:focus-visible {
  color: var(--green-dark);
  transform: translateY(-1px);
}

@media (max-width: 760px) {
  body[data-page='home'] .home-section-link {
    display: none;
  }
}

body[data-page='home'] #homeCategories .category-card:hover,
body[data-page='home'] #homeCategories .category-card:focus-visible {
  border-color: transparent !important;
  background: var(--green) !important;
  color: #fff !important;
}

body[data-page='home'] #homeCategories .category-card:hover h3,
body[data-page='home'] #homeCategories .category-card:focus-visible h3 {
  color: inherit !important;
}

/* Native horizontal rails: preserve existing geometry and allow Safari touch panning. */
body[data-page='home'] #homeBrands,
body[data-page='home'] .home-gallery-rail,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-links {
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-inline: contain;
  scrollbar-width: none;
  touch-action: pan-x pan-y !important;
  -webkit-overflow-scrolling: touch;
}

body[data-page='home'] #homeBrands::-webkit-scrollbar,
body[data-page='home'] .home-gallery-rail::-webkit-scrollbar,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-smart-links::-webkit-scrollbar {
  display: none;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-links {
  display: flex;
  flex-wrap: nowrap !important;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-smart-links a {
  flex: 0 0 auto;
  white-space: nowrap;
}

/* Brand directory: breadcrumb-scale names without changing card dimensions. */
body[data-page='brands'] #brandsList .brand-letter,
body[data-page='brands'] #brandsList .brand-card h3 {
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.25 !important;
  letter-spacing: 0 !important;
}

/* Keep the tab pair visually open at its outer edges. */
body[data-page='home'] .home-product-tabs {
  border-left-color: transparent;
  border-right-color: transparent;
}

/* Brand directory index; existing brand-card dimensions stay untouched. */
.brand-directory-filter {
  display: grid;
  gap: 8px;
  margin-bottom: 28px;
}

.brand-filter-groups,
.brand-filter-letters {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
}

.brand-directory-filter button {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
}

.brand-directory-filter button:hover,
.brand-directory-filter button:focus-visible,
.brand-directory-filter button.is-active {
  background: var(--green);
  color: #fff;
}

.brand-directory-filter button:disabled {
  background: transparent;
  color: var(--muted);
  opacity: 0.28;
  cursor: default;
}

@media (max-width: 760px) {
  .brand-directory-filter {
    gap: 6px;
    margin-bottom: 16px;
    overflow: hidden;
  }

  .brand-filter-groups,
  .brand-filter-letters {
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .brand-filter-groups::-webkit-scrollbar,
  .brand-filter-letters::-webkit-scrollbar {
    display: none;
  }

  .brand-directory-filter button {
    flex: 0 0 auto;
    min-width: 34px;
    height: 34px;
    padding: 0 9px;
  }
}

/* Match inactive collection tabs to the section surface. */
body[data-page='home'] .home-product-tabs button:not(.active) {
  background: transparent;
}

/* Open brand directory: preserve the grid rhythm without card chrome. */
body[data-page='brands'] #brandsList .brand-card,
body[data-page='brands'] #brandsList .brand-card.has-image {
  border-color: transparent;
  background: transparent;
  box-shadow: none;
  align-content: center;
  justify-items: center;
}

body[data-page='brands'] #brandsList .brand-card:hover {
  border-color: var(--line);
  background: var(--white);
  box-shadow: 0 18px 38px rgba(17, 19, 16, 0.1);
  transform: none;
}

@media (max-width: 760px) {
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) .catalog-suggest-panel {
    right: -8px;
    left: -8px;
  }
}

body[data-page='brands'] #brandsList .brand-media,
body[data-page='brands'] #brandsList .brand-card.has-image .brand-media {
  width: 100%;
  border: 0;
  background: transparent;
  place-items: center;
}

body[data-page='brands'] #brandsList .brand-letter {
  width: 100%;
  text-align: center;
}

/* Fill the configured hero area with every desktop and mobile media source. */
body[data-page='home'] .hero-media,
body[data-page='home'] .hero-slide {
  background-color: var(--paper);
  background-image: none;
}

body[data-page='home'] .hero-slide .hero-desktop-media,
body[data-page='home'] .hero-slide .hero-mobile-fallback,
body[data-page='home'] .hero-slide .hero-mobile-custom,
body[data-page='home'] .hero-slide .hero-mobile-video,
body[data-page='home'] .hero-slide img,
body[data-page='home'] .hero-slide video {
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: cover !important;
  object-position: center !important;
}

/* Hero copy follows the admin fields without placeholder content. */
body[data-page='home'] .hero-content.is-empty {
  display: none !important;
}

body[data-page='home'] [data-home-block='trust'],
body[data-page='home'] [data-home-block='trust'].paper {
  background: var(--color-surface) !important;
}

/* Keep every mobile product card on the same sharp Swiss system as desktop. */
@media (max-width: 760px) {
  .product-grid .product-card {
    border-radius: 2px !important;
    box-shadow: none !important;
  }

  .product-grid .badge,
  .product-grid .stock-badge,
  .product-grid .product-card-tags span,
  .product-grid .card-buttons .btn {
    border-radius: 2px !important;
  }

  .product-grid .product-card .price,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card
    .price {
    font-weight: 650 !important;
  }
}

@media (min-width: 761px) {
  body[data-page='home'] .hero {
    min-height: 572px;
  }

  body[data-page='home'] .hero-content {
    min-height: 572px;
  }
}

/* Transparent cart pricing: sale, promo and delivery amounts. */
body[data-page='cart'] .cart-price-badge {
  display: inline-flex;
  width: fit-content;
  align-items: center;
  min-height: 21px;
  margin: 0 0 7px;
  padding: 3px 7px;
  border-radius: 2px;
  color: #fff;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

body[data-page='cart'] .cart-price-badge-sale {
  background: var(--green);
}

body[data-page='cart'] .cart-price-badge-promo {
  background: var(--ink);
}

body[data-page='cart'] .cart-item-pricing {
  display: grid;
  min-width: 112px;
  gap: 3px;
}

body[data-page='cart'] .cart-price-values {
  display: flex;
  align-items: baseline;
  gap: 7px;
  flex-wrap: wrap;
}

body[data-page='cart'] .cart-item-old-price {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

body[data-page='cart'] .cart-promo-note {
  color: var(--green);
  font-size: 10px;
  font-weight: 650;
  line-height: 1.25;
}

body[data-page='cart'] .summary-row-copy {
  display: grid;
  gap: 2px;
}

body[data-page='cart'] .summary-row-copy small {
  color: var(--muted);
  font-size: 11px;
}

body[data-page='cart'] .delivery-option-text {
  width: 100%;
  justify-content: space-between;
  flex-wrap: nowrap;
}

body[data-page='cart'] .delivery-option-copy {
  display: flex;
  min-width: 0;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

body[data-page='cart'] .delivery-option-price {
  flex: 0 0 auto;
  color: var(--green);
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

@media (max-width: 760px) {
  body[data-page='cart'] .cart-price-badge {
    margin-bottom: 4px;
    padding: 3px 5px;
    font-size: 9px;
  }

  body[data-page='cart'] .cart-item-pricing {
    min-width: 0;
  }

  body[data-page='cart'] .cart-price-values {
    display: grid;
    gap: 1px;
  }

  body[data-page='cart'] .cart-item-old-price {
    font-size: 9px;
  }

  body[data-page='cart'] .cart-promo-note {
    display: none;
  }

  body[data-page='cart'] .delivery-option-copy {
    display: grid;
    gap: 1px;
  }

  body[data-page='cart'] .delivery-option-price {
    font-size: 11px;
  }
}

body[data-page='cart'] .cart-item-img {
  border-radius: 2px !important;
}

body[data-page='cart'] .checkout-form .europost-office-options {
  grid-column: 1/-1;
}

body[data-page='cart'] .europost-office-options {
  position: relative;
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--color-surface);
}

body[data-page='cart'] .europost-office-options.picker-open {
  z-index: 20;
  border-color: var(--green);
}

body[data-page='cart'] .europost-office-options[hidden] {
  display: none !important;
}

body[data-page='cart'] .europost-office-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

body[data-page='cart'] .europost-office-head span {
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

body[data-page='cart'] .europost-office-head a {
  color: var(--green);
  font-size: 11px;
  font-weight: 700;
  text-decoration: none;
}

body[data-page='cart'] .europost-office-selector {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--color-surface);
}

body[data-page='cart'] .europost-office-toggle,
body[data-page='cart'] .europost-office-clear {
  grid-column: auto;
  min-width: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
}

body[data-page='cart'] .europost-office-toggle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 12px;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 11px 12px;
  text-align: left;
}

body[data-page='cart'] #europostOfficeToggleText {
  display: grid;
  gap: 2px;
  min-width: 0;
}

body[data-page='cart'] #europostOfficeToggleText > span,
body[data-page='cart'] #europostOfficeToggleText strong {
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}

body[data-page='cart'] #europostOfficeToggleText small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page='cart'] .europost-office-chevron {
  width: 8px;
  height: 8px;
  border-right: 1.5px solid var(--green);
  border-bottom: 1.5px solid var(--green);
  transform: rotate(45deg) translateY(-2px);
  transition: transform 0.18s ease;
}

body[data-page='cart'] .picker-open .europost-office-chevron {
  transform: rotate(225deg) translate(-2px, -1px);
}

body[data-page='cart'] .europost-office-clear {
  width: 38px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

body[data-page='cart'] .europost-office-clear:hover {
  color: var(--red);
  background: #fff8f7;
}

body[data-page='cart'] .europost-office-dropdown {
  position: absolute;
  top: calc(100% - 1px);
  left: -1px;
  right: -1px;
  display: grid;
  gap: 10px;
  width: auto;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--green);
  border-radius: 0 0 2px 2px;
  background: var(--color-surface);
  box-shadow: 0 16px 36px rgba(63, 63, 63, 0.13);
  overflow: hidden;
}

body[data-page='cart'] .europost-office-dropdown[hidden] {
  display: none !important;
}

body[data-page='cart'] #europostOfficeSearch {
  border-radius: 2px;
}

body[data-page='cart'] .europost-office-status {
  min-height: 16px;
  color: var(--muted);
  font-size: 11px;
}

body[data-page='cart'] .europost-office-list {
  display: grid;
  gap: 6px;
  max-height: 320px;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body[data-page='cart'] .europost-office-list::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body[data-page='cart'] .europost-office {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: flex-start;
  gap: 10px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--color-surface);
  cursor: pointer;
}

body[data-page='cart'] .europost-office input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body[data-page='cart'] .europost-office .delivery-radio {
  margin-top: 2px;
}

body[data-page='cart'] .europost-office:hover,
body[data-page='cart'] .europost-office.selected {
  border-color: var(--green);
}

body[data-page='cart'] .europost-office.selected {
  background: #fbfdf9;
  box-shadow: 0 0 0 2px var(--green-soft);
}

body[data-page='cart'] .europost-office.selected .delivery-radio {
  border-color: var(--green);
  background: var(--green);
  box-shadow: inset 0 0 0 4px #fff;
}

body[data-page='cart'] .europost-office-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}

body[data-page='cart'] .europost-office-copy strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.25;
}

body[data-page='cart'] .europost-office-copy span,
body[data-page='cart'] .europost-office-copy small {
  color: var(--text);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body[data-page='cart'] .europost-office-copy small {
  color: var(--muted);
}

body[data-page='cart'] .europost-office-empty {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

[data-action='cart'].cart-state-active {
  border-color: var(--green) !important;
  background: var(--color-surface) !important;
  color: var(--green-dark) !important;
}

[data-action='cart'].cart-state-active:hover {
  border-color: var(--green-dark) !important;
  background: var(--color-surface) !important;
  color: var(--green-dark) !important;
}

body[data-page='product'] .stock-contact {
  position: relative;
  z-index: 65;
  display: flex;
  justify-content: flex-end;
  margin: 0 0 8px;
}

body[data-page='product'] .stock-contact-toggle {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  padding: 5px 2px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.15;
  white-space: nowrap;
}

body[data-page='product'] .stock-contact-toggle::after {
  content: '⌄';
  margin-left: 7px;
  font-size: 13px;
  line-height: 1;
  transform: translateY(-1px);
}

body[data-page='product'] .stock-contact.open .stock-contact-toggle::after {
  transform: rotate(180deg) translateY(-1px);
}

body[data-page='product'] .stock-contact-toggle:hover,
body[data-page='product'] .stock-contact-toggle:focus-visible {
  color: var(--green-dark);
}

body[data-page='product'] .stock-contact-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  display: grid;
  width: min(280px, calc(100vw - 40px));
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--color-surface);
  box-shadow: 0 16px 36px rgba(63, 63, 63, 0.13);
}

body[data-page='product'] .stock-contact-menu[hidden] {
  display: none !important;
}

body[data-page='product'] .stock-contact-action {
  display: grid;
  gap: 2px;
  min-height: 58px;
  align-content: center;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}

body[data-page='product'] .stock-contact-action:last-child {
  border-bottom: 0;
}

body[data-page='product'] a.stock-contact-action:hover,
body[data-page='product'] a.stock-contact-action:focus-visible {
  background: var(--green-soft);
  color: var(--green-dark);
}

body[data-page='product'] .stock-contact-action strong {
  font-size: 13px;
}

body[data-page='product'] .stock-contact-action small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body[data-page='product'] .stock-contact-action.is-disabled {
  color: var(--muted);
  cursor: not-allowed;
}

body[data-page='cart'] .europost-office-empty {
  padding: 18px 12px;
  border: 1px dashed var(--line);
  text-align: center;
}

@media (max-width: 760px) {
  body[data-page='product'] .stock-contact {
    margin-bottom: 6px;
  }

  body[data-page='product'] .stock-contact-toggle {
    min-height: 42px;
    font-size: 12px;
  }

  body[data-page='cart'] .europost-office-options {
    padding: 10px;
  }

  body[data-page='cart'] .europost-office-head {
    align-items: flex-start;
  }

  body[data-page='cart'] .europost-office-head a {
    max-width: 110px;
    text-align: right;
  }

  body[data-page='cart'] .europost-office-list {
    max-height: 42vh;
  }
}

/* Figma mobile home — source: ByVit Redesign mobile (1).fig, frame 430 × 1868. */
.figma-mobile-hero,
.figma-mobile-benefits,
.figma-mobile-section-title,
.figma-mobile-goal-heading,
.figma-card-cart-icon,
.figma-goal-icon,
.figma-goal-arrow,
.goal-mobile-label,
.figma-trust-icon,
.figma-trust-copy {
  display: none;
}

@media (max-width: 760px) {
  body[data-page='home'] {
    --figma-green: var(--color-forest);
    --figma-green-dark: var(--color-forest);
    --figma-ink: var(--color-graphite);
    --figma-muted: var(--muted);
    --figma-line: var(--color-beige);
    --figma-soft: var(--color-cream);
    background: var(--color-surface);
  }

  body[data-page='home'] main {
    overflow: hidden;
  }

  html:has(body[data-page='home']),
  body[data-page='home'] {
    max-width: 100%;
    overflow-x: hidden;
  }

  body[data-page='home'] .hero,
  body[data-page='home'] .hero.hero-mobile-media-enabled {
    position: relative;
    width: 100%;
    height: 207px;
    min-height: 207px;
    margin: 0;
    overflow: hidden;
    background: var(--color-cream) url('../assets/home-mobile-hero.jpg') center center / cover
      no-repeat;
  }

  body[data-page='home'] .hero::before,
  body[data-page='home'] .hero::after,
  body[data-page='home'] .hero-media,
  body[data-page='home'] .hero-content {
    display: none !important;
  }

  body[data-page='home'] .figma-mobile-hero {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    padding: 16px;
    color: var(--figma-ink);
  }

  body[data-page='home'] .figma-mobile-hero-kicker {
    display: block;
    height: 13px;
    color: var(--figma-green);
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
  }

  body[data-page='home'] .figma-mobile-hero h2 {
    width: calc(100% - 32px);
    height: 50px;
    margin: 16px 0 0;
    color: var(--figma-ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 25px;
    letter-spacing: -0.035em;
  }

  body[data-page='home'] .figma-mobile-hero p {
    width: 165px;
    height: 28px;
    margin: 16px 0 0;
    color: var(--figma-ink);
    font-size: 13px;
    font-weight: 400;
    line-height: 14px;
  }

  body[data-page='home'] .figma-mobile-hero-button {
    display: inline-flex;
    width: 147px;
    height: 36px;
    margin-top: 16px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-radius: 2px;
    background: var(--figma-green-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
  }

  body[data-page='home'] .figma-mobile-hero-button span {
    font-size: 17px;
    font-weight: 400;
  }

  body[data-page='home'] .figma-mobile-hero-dots {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    width: 38px;
    gap: 2px;
  }

  body[data-page='home'] .figma-mobile-hero-dots i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
  }

  body[data-page='home'] .figma-mobile-hero-dots i:first-child {
    background: var(--figma-green-dark);
  }

  body[data-page='home'] .figma-mobile-benefits {
    display: grid;
    width: calc(100% - 34px);
    height: 62px;
    margin: 24px 18px 0 16px;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
  }

  body[data-page='home'] .figma-mobile-benefits a {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--figma-ink);
    text-align: center;
  }

  body[data-page='home'] .figma-mobile-benefits svg {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
  }

  body[data-page='home'] .figma-mobile-benefits strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    white-space: nowrap;
  }

  body[data-page='home'] .figma-mobile-benefits span {
    color: var(--figma-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
    white-space: nowrap;
  }

  body[data-page='home'] [data-home-block='categories'] {
    margin: 24px 0 0 !important;
    padding: 0 !important;
    background: var(--color-surface) !important;
  }

  body[data-page='home'] [data-home-block='categories'] > .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  body[data-page='home'] #homeCategories {
    display: grid !important;
    width: 100%;
    height: 33px;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    gap: 8px;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
    margin: 0 !important;
    padding: 0 !important;
  }

  body[data-page='home'] #homeCategories::-webkit-scrollbar {
    display: none;
  }

  body[data-page='home'] #homeCategories .category-card {
    width: auto;
    height: 33px;
    min-height: 33px !important;
    padding: 0 15px !important;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--color-cream) !important;
    scroll-snap-align: start;
  }

  body[data-page='home'] #homeCategories .category-card:first-child {
    background: var(--figma-green) !important;
    color: #fff !important;
  }

  body[data-page='home'] #homeCategories .category-card h3 {
    height: 33px;
    color: inherit;
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
  }

  body[data-page='home'] #homeCategories .home-rail-copy,
  body[data-page='home'] #homeCategories .category-card:nth-child(n + 7) {
    display: none !important;
  }

  body[data-page='home'] [data-home-block='sale'] {
    margin-top: 24px;
    padding: 0 !important;
    background: var(--color-surface) !important;
  }

  body[data-page='home'] [data-home-block='sale'] > .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  body[data-page='home'] [data-home-block='sale'] > .container > .section-head,
  body[data-page='home'] [data-home-block='sale'] .home-product-tabs,
  body[data-page='home'] [data-home-block='sale'] .commerce-assurance {
    display: none !important;
  }

  body[data-page='home'] .figma-mobile-section-title {
    display: flex;
    width: 100%;
    height: 24px;
    align-items: center;
    justify-content: space-between;
  }

  body[data-page='home'] .figma-mobile-section-title h2 {
    margin: 0;
    color: var(--color-graphite);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.02em;
  }

  body[data-page='home'] .figma-mobile-section-title a {
    color: var(--figma-green);
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
  }

  body[data-page='home'] .home-product-panel {
    margin-top: 16px;
  }

  body[data-page='home'] .home-product-panel[hidden] {
    display: none !important;
  }

  body[data-page='home'] .home-product-panel .product-grid,
  body[data-page='home'] .home-product-panel .product-grid.is-scrollable {
    display: grid !important;
    width: 100%;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 176px !important;
    gap: 16px !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  body[data-page='home'] .home-product-panel .product-grid::-webkit-scrollbar {
    display: none;
  }

  body[data-page='home'] .home-product-panel .product-card,
  body[data-page='home'] .home-product-panel .product-card.reveal-item,
  body[data-page='home'] .home-product-panel .product-card.reveal-item.is-revealed {
    position: relative;
    display: grid;
    width: 176px;
    min-width: 176px;
    height: 302px;
    min-height: 302px;
    grid-template-rows: 166px 134px;
    overflow: hidden;
    border: 1px solid var(--figma-line) !important;
    border-radius: 2px !important;
    background: var(--color-surface);
    box-shadow: none !important;
    transform: none !important;
    scroll-snap-align: start;
  }

  body[data-page='home'] .home-product-panel .product-media {
    position: relative;
    width: 174px;
    height: 166px;
    min-height: 166px;
    overflow: hidden;
    border: 0;
    background: var(--color-cream);
  }

  body[data-page='home'] .home-product-panel .product-media > a,
  body[data-page='home'] .home-product-panel .product-media img {
    display: block;
    width: 100%;
    height: 100%;
  }

  body[data-page='home'] .home-product-panel .product-media img {
    object-fit: cover;
    object-position: center;
  }

  body[data-page='home'] .home-product-panel .product-card:hover .product-media img {
    transform: none;
  }

  body[data-page='home'] .home-product-panel .product-badges {
    position: absolute;
    inset: 10px auto auto 10px;
    z-index: 2;
  }

  body[data-page='home'] .home-product-panel .product-badges-main {
    display: block;
  }

  body[data-page='home'] .home-product-panel .badge {
    min-height: 23px;
    padding: 5px 10px;
    border-radius: 4px !important;
    background: var(--figma-green) !important;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
  }

  body[data-page='home'] .home-product-panel .product-card-actions,
  body[data-page='home'] .home-product-panel .product-brand,
  body[data-page='home'] .home-product-panel .product-desc,
  body[data-page='home'] .home-product-panel .stars,
  body[data-page='home'] .home-product-panel .card-buttons [data-action='compare'] {
    display: none !important;
  }

  body[data-page='home'] .home-product-panel .product-body {
    position: relative;
    display: grid;
    width: 174px;
    height: 134px;
    padding: 15px 10px 10px;
    grid-template-rows: 34px 16px 38px;
    gap: 8px;
  }

  body[data-page='home'] .home-product-panel .product-title {
    display: -webkit-box;
    height: 34px;
    margin: 0;
    overflow: hidden;
    color: var(--figma-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: -0.01em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  body[data-page='home'] .home-product-panel .product-card-tags {
    display: flex;
    height: 16px;
    gap: 8px;
    overflow: hidden;
    transform: none;
  }

  body[data-page='home'] .home-product-panel .product-card-tags span {
    display: inline-flex;
    width: auto;
    max-width: none;
    min-height: 16px;
    align-items: center;
    padding: 2px 4px;
    border-radius: 2px !important;
    background: var(--color-cream);
    color: var(--muted);
    font-size: 9px;
    font-weight: 400;
    line-height: 11px;
  }

  body[data-page='home'] .home-product-panel .product-card-tags span:nth-child(n + 3) {
    display: none;
  }

  body[data-page='home'] .home-product-panel .product-meta {
    display: flex;
    width: 108px;
    height: 38px;
    align-items: center;
    margin: 0;
  }

  body[data-page='home'] .home-product-panel .product-meta > div:first-child {
    display: flex;
    width: 108px;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
  }

  body[data-page='home'] .home-product-panel .product-card .price {
    color: var(--figma-ink);
    font-size: 15px;
    font-weight: 650 !important;
    line-height: 18px;
    white-space: nowrap;
  }

  body[data-page='home'] .home-product-panel .old-price {
    color: var(--muted);
    font-size: 10px;
    line-height: 12px;
    white-space: nowrap;
  }

  body[data-page='home'] .home-product-panel .card-buttons {
    position: static;
    display: contents;
  }

  body[data-page='home'] .home-product-panel .card-buttons [data-action='cart'] {
    position: absolute;
    right: 10px;
    bottom: 15px;
    display: grid;
    width: 38px;
    min-width: 38px;
    height: 36px;
    min-height: 36px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--figma-green);
    border-radius: 2px !important;
    background: var(--figma-green);
    color: #fff;
    box-shadow: none;
  }

  body[data-page='home'] .home-product-panel .figma-card-cart-icon {
    display: block;
    width: 20px;
    height: 20px;
    color: currentColor;
  }

  body[data-page='home'] .home-product-panel .cart-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  body[data-page='home'] .home-product-panel .card-buttons [data-action='wishlist'] {
    position: absolute;
    z-index: 4;
    top: -157px;
    right: 10px;
    display: grid;
    width: 20px;
    min-width: 20px;
    height: 20px;
    min-height: 20px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--figma-ink);
    font-size: 22px;
    line-height: 20px;
  }

  body[data-page='home'] [data-home-block='goals'] {
    height: 310px;
    margin-top: 24px;
    padding: 18px 0 !important;
    border-radius: 2px;
    background: var(--figma-soft) !important;
  }

  body[data-page='home'] [data-home-block='goals'] > .container {
    width: calc(100% - 36px);
    max-width: none;
  }

  body[data-page='home'] [data-home-block='goals'] .section-head {
    display: none !important;
  }

  body[data-page='home'] .figma-mobile-goal-heading {
    display: flex;
    width: 280px;
    height: 69px;
    flex-direction: column;
    gap: 9px;
  }

  body[data-page='home'] .figma-mobile-goal-heading span {
    height: 12px;
    color: var(--figma-green);
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }

  body[data-page='home'] .figma-mobile-goal-heading h2 {
    height: 48px;
    margin: 0;
    color: var(--color-graphite);
    font-size: 23px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.025em;
  }

  body[data-page='home'] #homeGoals {
    display: grid;
    width: 100%;
    height: 181px;
    margin: 24px 0 0 !important;
    padding: 0 !important;
    grid-template-columns: 1fr;
    grid-auto-flow: row;
    grid-auto-rows: 40px;
    gap: 7px;
    overflow: visible;
    border: 0;
  }

  body[data-page='home'] #homeGoals .goal-card {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 40px;
    height: 40px;
    padding: 0 14px;
    grid-template-columns: 22px minmax(0, 1fr) 7px;
    align-items: center;
    gap: 12px;
    border: 0 !important;
    border-radius: 2px !important;
    background: var(--color-surface);
  }

  body[data-page='home'] #homeGoals .goal-card:nth-child(n + 5) {
    display: none;
  }

  body[data-page='home'] #homeGoals .figma-goal-icon {
    display: block;
    width: 22px;
    height: 22px;
  }

  body[data-page='home'] #homeGoals .goal-card h3 {
    margin: 0;
    color: var(--figma-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
  }

  body[data-page='home'] #homeGoals .goal-default-label,
  body[data-page='home'] #homeGoals .goal-card p {
    display: none;
  }

  body[data-page='home'] #homeGoals .goal-mobile-label,
  body[data-page='home'] #homeGoals .figma-goal-arrow {
    display: inline;
  }

  body[data-page='home'] #homeGoals .figma-goal-arrow {
    color: var(--figma-ink);
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
  }

  body[data-page='home'] [data-home-block='brands'] {
    margin-top: 24px;
    padding: 0 !important;
    background: var(--color-surface) !important;
  }

  body[data-page='home'] [data-home-block='brands'] > .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  body[data-page='home'] [data-home-block='brands'] .section-head {
    display: none !important;
  }

  body[data-page='home'] #homeBrands {
    display: grid !important;
    width: 100%;
    height: 52px;
    margin: 15px 0 0 !important;
    padding: 0 !important;
    grid-template-columns: none !important;
    grid-auto-flow: column;
    grid-auto-columns: 118.6px !important;
    gap: 8px !important;
    overflow-x: auto !important;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body[data-page='home'] #homeBrands::-webkit-scrollbar {
    display: none;
  }

  body[data-page='home'] #homeBrands .brand-card,
  body[data-page='home'] #homeBrands .brand-card:nth-child(n),
  body[data-page='home'] #homeBrands .brand-card.has-image {
    display: grid !important;
    width: 118.6px !important;
    min-width: 118.6px !important;
    height: 52px !important;
    min-height: 52px !important;
    place-items: center;
    overflow: hidden;
    border: 1px solid var(--figma-line);
    border-radius: 2px;
    background: var(--color-surface);
    box-shadow: none;
  }

  body[data-page='home'] #homeBrands .home-rail-copy,
  body[data-page='home'] #homeBrands .brand-card:nth-child(n + 6) {
    display: none !important;
  }

  body[data-page='home'] #homeBrands .brand-media,
  body[data-page='home'] #homeBrands .brand-card.has-image .brand-media {
    display: grid;
    width: 100%;
    height: 50px;
    place-items: center;
    border: 0;
    background: transparent;
  }

  body[data-page='home'] #homeBrands .brand-letter {
    display: block !important;
    width: 100%;
    padding: 0 8px;
    color: var(--figma-ink);
    font-size: 11px !important;
    font-weight: 700 !important;
    line-height: 13px;
    text-align: center;
    white-space: normal;
  }

  body[data-page='home'] #homeBrands .brand-media img,
  body[data-page='home'] #homeBrands .brand-card.has-image .brand-media img {
    width: 88px;
    height: 32px;
    object-fit: contain;
  }

  body[data-page='home'] [data-home-block='trust'] {
    margin-top: 24px;
    padding: 0 !important;
    background: var(--color-surface) !important;
  }

  body[data-page='home'] [data-home-block='trust'] > .container {
    width: calc(100% - 32px);
    max-width: none;
  }

  body[data-page='home'] [data-home-block='trust'] .section-head {
    display: flex;
    width: 100%;
    height: 23px;
    margin: 0 0 16px !important;
    padding: 0 !important;
    border: 0;
  }

  body[data-page='home'] [data-home-block='trust'] .section-head .eyebrow {
    min-height: 23px;
    color: var(--color-graphite);
    font-family: var(--font-body);
    font-size: 19px;
    font-weight: 700;
    line-height: 23px;
    letter-spacing: -0.02em;
    text-transform: none;
  }

  body[data-page='home'] [data-home-block='trust'] .section-head .eyebrow::before,
  body[data-page='home'] [data-home-block='trust'] .section-head .eyebrow::after {
    display: none;
  }

  body[data-page='home'] #homeTrust {
    display: grid;
    width: 100%;
    height: 280px;
    grid-template-columns: 1fr;
    grid-auto-flow: row !important;
    grid-auto-rows: 64px;
    gap: 8px;
    margin: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
  }

  body[data-page='home'] #homeTrust .trust-item {
    display: grid;
    min-height: 64px;
    height: 64px;
    padding: 14px;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 14px;
    border: 1px solid var(--figma-line);
    border-radius: 8px;
    background: var(--color-surface);
  }

  body[data-page='home'] #homeTrust .trust-current-copy {
    display: none;
  }

  body[data-page='home'] #homeTrust .figma-trust-icon {
    display: block;
    width: 28px;
    height: 28px;
  }

  body[data-page='home'] #homeTrust .figma-trust-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 4px;
  }

  body[data-page='home'] #homeTrust .figma-trust-copy h3 {
    margin: 0;
    color: var(--color-graphite);
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
  }

  body[data-page='home'] #homeTrust .figma-trust-copy p {
    margin: 0;
    color: var(--figma-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
  }

  body[data-page='home'] .quick-contact {
    display: none;
  }
}

@media (max-width: 360px) {
  body[data-page='home'] .hero,
  body[data-page='home'] .hero.hero-mobile-media-enabled {
    background-position: 30% center;
  }

  body[data-page='home'] .figma-mobile-benefits {
    gap: 4px;
  }

  body[data-page='home'] .figma-mobile-hero h2 {
    width: 230px;
    height: 46px;
    font-size: 24px;
    line-height: 23px;
  }

  body[data-page='home'] .figma-mobile-hero p {
    margin-top: 14px;
  }

  body[data-page='home'] .figma-mobile-benefits strong,
  body[data-page='home'] .figma-mobile-benefits span {
    max-width: 100%;
    white-space: normal;
  }

  body[data-page='home'] .figma-mobile-benefits strong {
    font-size: 10px;
    line-height: 11px;
  }

  body[data-page='home'] .figma-mobile-benefits span {
    font-size: 9px;
    line-height: 10px;
  }
}

@media (max-width: 400px) and (min-width: 361px) {
  body[data-page='home'] .figma-mobile-benefits strong,
  body[data-page='home'] .figma-mobile-benefits span {
    max-width: 100%;
    white-space: normal;
  }

  body[data-page='home'] .figma-mobile-benefits strong {
    font-size: 11px;
    line-height: 12px;
  }

  body[data-page='home'] .figma-mobile-benefits span {
    font-size: 10px;
    line-height: 11px;
  }
}

/* Standalone mobile home copied from ByVit Redesign mobile (1).fig.
   This tree intentionally does not reuse legacy home section/card layout. */
.mv-home {
  display: none;
}

@media (max-width: 760px) {
  body[data-page='home'] main {
    overflow: hidden;
  }

  body[data-page='home'] main > .hero,
  body[data-page='home'] main > .figma-mobile-benefits,
  body[data-page='home'] main > [data-home-block] {
    display: none !important;
  }

  body[data-page='home'] .mv-home {
    --mv-green: var(--color-forest);
    --mv-green-dark: var(--color-forest);
    --mv-ink: var(--color-graphite);
    --mv-muted: var(--muted);
    --mv-line: var(--color-beige);
    --mv-soft: var(--color-cream);
    display: flex;
    width: 100%;
    flex-direction: column;
    gap: 24px;
    overflow: hidden;
    contain: paint;
    color: var(--mv-ink);
    font-family: var(--font-body);
  }

  body[data-page='home'] .mv-home * {
    box-sizing: border-box;
  }

  body[data-page='home'] .mv-hero {
    position: relative;
    width: 100%;
    height: 207px;
    flex: 0 0 207px;
    overflow: hidden;
    background: var(--color-cream) url('../assets/home-mobile-hero.jpg') center / cover no-repeat;
  }

  body[data-page='home'] .mv-hero-kicker,
  body[data-page='home'] .mv-hero h1,
  body[data-page='home'] .mv-hero p,
  body[data-page='home'] .mv-hero-cta {
    position: absolute;
    left: 16px;
    margin: 0;
  }

  body[data-page='home'] .mv-hero-kicker {
    top: 16px;
    width: calc(100% - 32px);
    height: 13px;
    color: var(--mv-green);
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
    letter-spacing: 0.025em;
    text-transform: uppercase;
  }

  body[data-page='home'] .mv-hero h1 {
    top: 45px;
    width: calc(100% - 32px);
    height: 50px;
    color: var(--mv-ink);
    font-size: 28px;
    font-weight: 800;
    line-height: 25px;
    letter-spacing: -0.035em;
  }

  body[data-page='home'] .mv-hero p {
    top: 111px;
    width: 151px;
    height: 28px;
    color: var(--mv-ink);
    font-size: 13px;
    font-weight: 400;
    line-height: 14px;
  }

  body[data-page='home'] .mv-hero-cta {
    top: 155px;
    display: flex;
    width: 147px;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 24px;
    border-radius: 2px;
    background: var(--mv-green-dark);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    line-height: 16px;
    white-space: nowrap;
  }

  body[data-page='home'] .mv-hero-cta svg {
    width: 13px;
    height: 13px;
  }

  body[data-page='home'] .mv-hero-dots {
    position: absolute;
    right: 16px;
    bottom: 16px;
    display: flex;
    width: 38px;
    height: 8px;
    gap: 2px;
  }

  body[data-page='home'] .mv-hero-dots i {
    display: block;
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border-radius: 50%;
    background: var(--color-surface);
  }

  body[data-page='home'] .mv-hero-dots i:first-child {
    background: var(--mv-green-dark);
  }

  body[data-page='home'] .mv-benefits {
    display: grid;
    width: 396px;
    height: 62px;
    margin-left: 16px;
    flex: 0 0 62px;
    grid-template-columns: repeat(4, 93px);
    gap: 8px;
  }

  body[data-page='home'] .mv-benefits a {
    display: grid;
    width: 93px;
    height: 62px;
    grid-template-rows: 26px 15px 13px;
    row-gap: 4px;
    color: var(--mv-ink);
    text-align: center;
  }

  body[data-page='home'] .mv-benefits svg {
    width: 26px;
    height: 26px;
    justify-self: center;
  }

  body[data-page='home'] .mv-benefits strong {
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
    white-space: nowrap;
  }

  body[data-page='home'] .mv-benefits span {
    color: var(--mv-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
    white-space: nowrap;
  }

  body[data-page='home'] .mv-categories {
    display: flex;
    width: calc(100% - 32px);
    height: 33px;
    margin-left: 16px;
    flex: 0 0 33px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body[data-page='home'] .mv-categories::-webkit-scrollbar {
    display: none;
  }

  body[data-page='home'] .mv-categories a {
    display: flex;
    width: max-content;
    height: 33px;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 2px;
    background: var(--color-cream);
    color: var(--mv-ink);
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
  }

  body[data-page='home'] .mv-categories a.active {
    background: var(--mv-green);
    color: #fff;
  }

  body[data-page='home'] .mv-products {
    width: 398px;
    height: 342px;
    margin-left: 16px;
    flex: 0 0 342px;
    overflow: hidden;
  }

  body[data-page='home'] .mv-section-head {
    display: flex;
    width: 100%;
    height: 24px;
    align-items: center;
    justify-content: space-between;
  }

  body[data-page='home'] .mv-section-head h2,
  body[data-page='home'] .mv-trust > h2 {
    margin: 0;
    color: var(--color-graphite);
    font-size: 20px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.02em;
  }

  body[data-page='home'] .mv-section-head > a {
    color: var(--mv-green);
    font-size: 12px;
    font-weight: 400;
    line-height: 15px;
  }

  body[data-page='home'] .mv-product-rail {
    display: flex;
    width: 100%;
    height: 302px;
    margin-top: 16px;
    gap: 16px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body[data-page='home'] .mv-product-rail::-webkit-scrollbar {
    display: none;
  }

  body[data-page='home'] .mv-product-card {
    display: flex;
    width: 176px;
    height: 302px;
    flex: 0 0 176px;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--mv-line);
    border-radius: 2px;
    background: var(--color-surface);
  }

  body[data-page='home'] .mv-card-photo {
    position: relative;
    width: 174px;
    height: 166px;
    flex: 0 0 166px;
    overflow: hidden;
  }

  body[data-page='home'] .mv-card-photo > a,
  body[data-page='home'] .mv-card-photo img {
    display: block;
    width: 174px;
    height: 166px;
  }

  body[data-page='home'] .mv-card-photo img {
    object-fit: cover;
  }

  body[data-page='home'] .mv-card-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    display: flex;
    width: 44px;
    height: 23px;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: var(--mv-green);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
  }

  body[data-page='home'] .mv-card-wishlist {
    position: absolute;
    top: 10px;
    left: 144px;
    width: 20px;
    height: 20px;
    min-width: 20px;
    min-height: 20px;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
  }

  body[data-page='home'] .mv-card-info {
    display: flex;
    width: 174px;
    height: 134px;
    flex: 0 0 134px;
    flex-direction: column;
    gap: 8px;
    padding: 15px 10px;
  }

  body[data-page='home'] .mv-card-info h3 {
    width: 154px;
    height: 34px;
    margin: 0;
    overflow: hidden;
    color: var(--mv-ink);
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: -0.01em;
  }

  body[data-page='home'] .mv-card-specs {
    display: flex;
    width: 154px;
    height: 16px;
    gap: 8px;
  }

  body[data-page='home'] .mv-card-specs span {
    display: flex;
    width: max-content;
    height: 16px;
    align-items: center;
    padding: 2px 4px;
    border-radius: 2px;
    background: var(--color-cream);
    color: var(--muted);
    font-size: 9px;
    font-weight: 400;
    line-height: 11px;
  }

  body[data-page='home'] .mv-card-bottom {
    display: flex;
    width: 154px;
    height: 38px;
    align-items: center;
    justify-content: space-between;
  }

  body[data-page='home'] .mv-card-price {
    display: flex;
    width: 108px;
    min-width: 108px;
    align-items: baseline;
    gap: 5px;
    flex-wrap: wrap;
  }

  body[data-page='home'] .mv-card-price strong {
    color: var(--mv-ink);
    font-size: 15px;
    font-weight: 700;
    line-height: 18px;
    white-space: nowrap;
  }

  body[data-page='home'] .mv-card-price del {
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
    white-space: nowrap;
  }

  body[data-page='home'] .mv-card-cart {
    display: grid;
    width: 38px;
    height: 38px;
    min-width: 38px;
    min-height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 6px;
    background: var(--mv-green);
    color: #fff;
  }

  body[data-page='home'] .mv-card-cart svg {
    width: 20px;
    height: 20px;
  }

  body[data-page='home'] .mv-card-cart .cart-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  body[data-page='home'] .mv-card-cart.cart-state-active {
    border: 1px solid var(--mv-green);
    background: var(--color-surface);
    color: var(--mv-green);
  }

  body[data-page='home'] .mv-goals {
    width: 100%;
    height: 310px;
    flex: 0 0 310px;
    padding: 18px;
    border-radius: 2px;
    background: var(--mv-soft);
  }

  body[data-page='home'] .mv-goals-copy {
    width: 280px;
    height: 69px;
  }

  body[data-page='home'] .mv-goals-copy > span {
    display: block;
    width: 100%;
    height: 12px;
    color: var(--mv-green);
    font-size: 10px;
    font-weight: 700;
    line-height: 12px;
    text-transform: uppercase;
    white-space: nowrap;
  }

  body[data-page='home'] .mv-goals-copy h2 {
    width: 280px;
    height: 48px;
    margin: 9px 0 0;
    color: var(--color-graphite);
    font-size: 23px;
    font-weight: 700;
    line-height: 24px;
    letter-spacing: -0.025em;
  }

  body[data-page='home'] .mv-goal-list {
    display: flex;
    width: 394px;
    height: 181px;
    margin-top: 24px;
    flex-direction: column;
    gap: 7px;
  }

  body[data-page='home'] .mv-goal-list a {
    display: grid;
    width: 394px;
    height: 40px;
    flex: 0 0 40px;
    grid-template-columns: 22px 313px 7px;
    align-items: center;
    gap: 12px;
    padding: 0 14px;
    border-radius: 2px;
    background: var(--color-surface);
    color: var(--mv-ink);
  }

  body[data-page='home'] .mv-goal-list svg {
    width: 22px;
    height: 22px;
  }

  body[data-page='home'] .mv-goal-list strong {
    align-self: center;
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
  }

  body[data-page='home'] .mv-goal-list a > span {
    align-self: center;
    font-size: 18px;
    font-weight: 400;
    line-height: 22px;
    text-align: center;
  }

  body[data-page='home'] .mv-brands {
    width: calc(100% - 32px);
    height: 91px;
    margin-left: 16px;
    flex: 0 0 91px;
    overflow: hidden;
  }

  body[data-page='home'] .mv-brands .mv-section-head {
    width: 100%;
    height: 23px;
  }

  body[data-page='home'] .mv-brands .mv-section-head h2,
  body[data-page='home'] .mv-trust > h2 {
    font-size: 19px;
    line-height: 23px;
  }

  body[data-page='home'] .mv-brand-rail {
    display: flex;
    width: 100%;
    height: 52px;
    margin-top: 16px;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body[data-page='home'] .mv-brand-rail::-webkit-scrollbar {
    display: none;
  }

  body[data-page='home'] .mv-brand-rail a {
    display: grid;
    width: 118.6px;
    height: 52px;
    flex: 0 0 118.6px;
    place-items: center;
    border: 1px solid var(--mv-line);
    border-radius: 2px;
    color: var(--mv-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
  }

  body[data-page='home'] .mv-trust {
    width: 398px;
    height: 319px;
    margin-left: 16px;
    flex: 0 0 319px;
  }

  body[data-page='home'] .mv-trust-list {
    display: flex;
    width: 398px;
    height: 280px;
    margin-top: 16px;
    flex-direction: column;
    gap: 8px;
  }

  body[data-page='home'] .mv-trust-list article {
    display: grid;
    width: 398px;
    height: 64px;
    flex: 0 0 64px;
    grid-template-columns: 28px 1fr;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border: 1px solid var(--mv-line);
    border-radius: 2px;
    background: #fff;
  }

  body[data-page='home'] .mv-trust-list svg {
    width: 28px;
    height: 28px;
  }

  body[data-page='home'] .mv-trust-list h3,
  body[data-page='home'] .mv-trust-list p {
    margin: 0;
  }

  body[data-page='home'] .mv-trust-list h3 {
    font-size: 12px;
    font-weight: 600;
    line-height: 15px;
  }

  body[data-page='home'] .mv-trust-list p {
    margin-top: 4px;
    color: var(--mv-muted);
    font-size: 11px;
    font-weight: 400;
    line-height: 13px;
  }

  body[data-page='home'] #homeGallerySection {
    margin-top: 24px;
  }
}

@media (max-width: 429px) {
  body[data-page='home'] .mv-benefits {
    width: calc(100% - 34px);
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page='home'] .mv-benefits a {
    width: 100%;
    min-width: 0;
  }

  body[data-page='home'] .mv-categories,
  body[data-page='home'] .mv-products,
  body[data-page='home'] .mv-brands,
  body[data-page='home'] .mv-trust {
    width: calc(100% - 32px);
  }

  body[data-page='home'] .mv-categories,
  body[data-page='home'] .mv-product-rail,
  body[data-page='home'] .mv-brand-rail {
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body[data-page='home'] .mv-categories::-webkit-scrollbar,
  body[data-page='home'] .mv-product-rail::-webkit-scrollbar,
  body[data-page='home'] .mv-brand-rail::-webkit-scrollbar {
    display: none;
  }

  body[data-page='home'] .mv-product-rail,
  body[data-page='home'] .mv-brands .mv-section-head,
  body[data-page='home'] .mv-brand-rail,
  body[data-page='home'] .mv-trust-list,
  body[data-page='home'] .mv-trust-list article {
    width: 100%;
  }

  body[data-page='home'] .mv-goal-list,
  body[data-page='home'] .mv-goal-list a {
    width: 100%;
  }

  body[data-page='home'] .mv-goal-list a {
    grid-template-columns: 22px minmax(0, 1fr) 7px;
  }
}

@media (max-width: 400px) {
  body[data-page='home'] .mv-benefits strong {
    font-size: 11px;
    line-height: 12px;
  }

  body[data-page='home'] .mv-benefits span {
    font-size: 10px;
    line-height: 11px;
  }
}

@media (max-width: 360px) {
  body[data-page='home'] .mv-hero {
    background-position: 30% center;
  }

  body[data-page='home'] .mv-hero h1 {
    width: 230px;
    font-size: 24px;
    line-height: 23px;
  }

  body[data-page='home'] .mv-benefits {
    gap: 4px;
  }

  body[data-page='home'] .mv-benefits a {
    grid-template-rows: 24px 12px 18px;
    row-gap: 2px;
  }

  body[data-page='home'] .mv-benefits svg {
    width: 24px;
    height: 24px;
  }

  body[data-page='home'] .mv-benefits strong {
    font-size: 10px;
    line-height: 12px;
  }

  body[data-page='home'] .mv-benefits span {
    white-space: normal;
    font-size: 9px;
    line-height: 9px;
  }

  body[data-page='home'] .mv-section-head h2,
  body[data-page='home'] .mv-brands .mv-section-head h2 {
    font-size: 17px;
    line-height: 21px;
  }

  body[data-page='home'] .mv-section-head > a {
    font-size: 11px;
    line-height: 13px;
  }
}

/* Match the mobile storefront grids to the product cards on the home page. */
.product-grid .mobile-card-wishlist {
  display: none;
}

@media (max-width: 760px) {
  .product-grid,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand']) #catalogProducts {
    grid-template-columns: repeat(auto-fill, minmax(min(144px, 100%), 1fr));
    gap: 8px;
  }

  .product-grid .product-card {
    min-width: 0;
    height: 100%;
    overflow: hidden;
    border: 1px solid var(--color-beige);
    border-radius: 2px !important;
    background: var(--color-surface);
    box-shadow: none !important;
  }

  body[data-page='sale'] #saleList .product-card {
    min-height: 0;
  }

  .product-grid .product-media,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-media {
    flex: 0 0 auto;
    width: 100%;
    aspect-ratio: 174 / 166;
    background: var(--color-cream);
  }

  .product-grid .product-media > a {
    display: block;
    width: 100%;
    height: 100%;
  }

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

  .product-grid .product-badges {
    top: 10px;
    left: 10px;
    right: auto;
    max-width: calc(100% - 54px);
  }

  .product-grid .product-badges-main {
    max-width: 100%;
  }

  .product-grid .product-card .badge {
    min-height: 23px;
    padding: 5px 9px;
    border-radius: 4px !important;
    background: var(--color-forest);
    color: #fff;
    box-shadow: none;
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .product-grid .mobile-card-wishlist {
    position: absolute;
    z-index: 2;
    top: 10px;
    right: 10px;
    display: grid;
    width: 24px;
    height: 24px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--color-surface);
    color: var(--color-graphite);
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .product-grid .mobile-card-wishlist.active {
    color: var(--color-forest);
  }

  .product-grid .product-body,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-body {
    display: grid;
    flex: 0 0 134px;
    grid-template-areas: 'title' 'tags' 'meta';
    grid-template-rows: 34px 16px 38px;
    gap: 8px;
    height: 134px;
    min-height: 134px;
    padding: 15px 10px;
    overflow: hidden;
  }

  .product-grid .product-brand,
  .product-grid .product-desc {
    display: none;
  }

  .product-grid .product-title,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-title {
    grid-area: title;
    min-height: 34px;
    max-height: 34px;
    margin: 0;
    overflow: hidden;
    color: var(--color-graphite);
    font-size: 14px;
    font-weight: 700;
    line-height: 17px;
    letter-spacing: -0.01em;
    -webkit-line-clamp: 2;
  }

  .product-grid .product-card-tags,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card-tags {
    grid-area: tags;
    display: flex;
    height: 16px;
    min-height: 16px;
    gap: 8px;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  .product-grid .product-card-tags span,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card-tags
    span {
    flex: 0 1 auto;
    width: max-content;
    min-height: 16px;
    height: 16px;
    padding: 2px 4px;
    overflow: hidden;
    border-radius: 2px !important;
    background: var(--color-cream);
    color: var(--muted);
    font-size: 9px;
    font-weight: 400;
    line-height: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .product-grid .product-card-tags span:nth-child(n + 3) {
    display: none;
  }

  .product-grid .product-meta,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-meta {
    grid-area: meta;
    display: flex;
    width: calc(100% - 42px);
    height: 38px;
    min-height: 38px;
    align-items: center;
    margin: 0;
    padding: 0;
  }

  .product-grid .product-meta > div:first-child {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 5px;
    white-space: normal;
  }

  .product-grid .product-card .price,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .product-card
    .price {
    color: var(--color-graphite);
    font-size: 15px;
    font-weight: 700 !important;
    line-height: 18px;
    white-space: nowrap;
  }

  .product-grid .old-price {
    color: var(--muted);
    font-size: 10px;
    font-weight: 400;
    line-height: 12px;
    white-space: nowrap;
  }

  .product-grid .product-meta .stars {
    display: none;
  }

  .product-grid .card-buttons,
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .card-buttons {
    position: absolute;
    right: 10px;
    bottom: 10px;
    display: block;
    width: 38px;
    height: 38px;
    min-height: 38px;
    margin: 0 !important;
    padding: 0;
  }

  .product-grid .card-buttons [data-action='cart'],
  body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
    #catalogProducts
    .card-buttons
    [data-action='cart'] {
    display: grid;
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--color-forest);
    border-radius: 2px !important;
    background: var(--color-forest);
    color: #fff;
    box-shadow: none;
  }

  .product-grid .card-buttons [data-action='cart'].cart-state-active {
    background: var(--color-surface) !important;
    color: var(--color-forest) !important;
  }

  .product-grid .figma-card-cart-icon {
    display: block;
    width: 20px;
    height: 20px;
  }

  .product-grid .cart-button-label {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }

  .product-grid .card-buttons .circle-action {
    display: none;
  }
}

@media (max-width: 760px) {
  /* The mobile hero shares the admin banner list; navigation is only shown for multiple slides. */
  body[data-page='home'] .mv-hero-media,
  body[data-page='home'] .mv-hero-slide {
    position: absolute;
    inset: 0;
  }

  body[data-page='home'] .mv-hero-slide {
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s ease;
  }

  body[data-page='home'] .mv-hero-slide.active {
    opacity: 1;
  }

  body[data-page='home'] .mv-hero-slide img,
  body[data-page='home'] .mv-hero-slide video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  body[data-page='home'] .mv-hero-slide.has-custom::after {
    position: absolute;
    inset: 0;
    content: '';
    background: linear-gradient(90deg, rgba(239, 247, 237, 0.78), transparent 72%);
  }

  body[data-page='home'] .mv-hero-kicker,
  body[data-page='home'] .mv-hero h1,
  body[data-page='home'] .mv-hero p,
  body[data-page='home'] .mv-hero-cta,
  body[data-page='home'] .mv-hero-dots {
    z-index: 1;
  }

  body[data-page='home'] .mv-hero-dots {
    width: auto;
    height: 8px;
    gap: 4px;
  }

  body[data-page='home'] .mv-hero-dots[hidden] {
    display: none !important;
  }

  body[data-page='home'] .mv-hero-dots button {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    padding: 0;
    border: 0;
    border-radius: 2px;
    background: var(--color-surface);
    cursor: pointer;
  }

  body[data-page='home'] .mv-hero-dots button.active {
    background: var(--mv-green-dark);
  }

  /* Preserve the reference card's two-line price stack on every mobile product card. */
  body[data-page='home'] .mv-card-price,
  .product-grid .product-meta > div:first-child {
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
    height: 38px;
  }

  /* Fluid section widths from small phones through the 760px mobile breakpoint. */
  body[data-page='home'] .mv-benefits,
  body[data-page='home'] .mv-products,
  body[data-page='home'] .mv-brands,
  body[data-page='home'] .mv-trust {
    width: calc(100% - 32px);
    margin-left: 16px;
  }

  body[data-page='home'] .mv-benefits {
    height: auto;
    min-height: 62px;
    flex: 0 0 auto;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  body[data-page='home'] .mv-benefits a {
    width: 100%;
    height: auto;
    min-height: 62px;
    grid-template-rows: 26px auto auto;
    justify-items: center;
  }

  body[data-page='home'] .mv-benefits strong,
  body[data-page='home'] .mv-benefits span {
    max-width: 100%;
    text-align: center;
    white-space: normal;
  }

  body[data-page='home'] .mv-products,
  body[data-page='home'] .mv-goals,
  body[data-page='home'] .mv-brands,
  body[data-page='home'] .mv-trust {
    height: auto;
    flex: 0 0 auto;
  }

  body[data-page='home'] .mv-section-head,
  body[data-page='home'] .mv-product-rail,
  body[data-page='home'] .mv-brand-rail,
  body[data-page='home'] .mv-trust-list,
  body[data-page='home'] .mv-trust-list article,
  body[data-page='home'] .mv-goal-list,
  body[data-page='home'] .mv-goal-list a {
    width: 100%;
  }

  body[data-page='home'] .mv-section-head {
    min-height: 24px;
    height: auto;
    gap: 12px;
  }

  body[data-page='home'] .mv-section-head h2 {
    min-width: 0;
  }

  body[data-page='home'] .mv-section-head > a {
    flex: 0 0 auto;
  }

  body[data-page='home'] .mv-trust-list {
    height: auto;
  }

  body[data-page='home'] .mv-goals-copy {
    max-width: 100%;
  }

  body[data-page='home'] .mv-goal-list a {
    grid-template-columns: 22px minmax(0, 1fr) 7px;
  }
}

@media (max-width: 350px) {
  body[data-page='home'] .mv-benefits {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    row-gap: 12px;
  }

  body[data-page='home'] .mv-benefits strong {
    font-size: 11px;
    white-space: nowrap;
  }
}

/* ByVit brand typography. Keep all existing dimensions and layouts unchanged. */
@media (max-width: 760px) {
  body[data-page='home']:not(.home-ready) .mv-home {
    display: none !important;
  }
  body[data-page='home'] .mv-home [hidden] {
    display: none !important;
  }
  body[data-page='home'] .mv-goals {
    height: auto;
    min-height: 310px;
  }
  body[data-page='home'] .mv-goals-copy,
  body[data-page='home'] .mv-goals-copy h2 {
    height: auto;
  }
  body[data-page='home'] .mv-goal-list {
    height: auto;
  }
  body[data-page='home'] .mv-brand-rail a.brand-card {
    min-height: 0;
    padding: 0;
    grid-template-rows: 1fr;
    align-content: stretch;
    overflow: hidden;
    background: #fff;
  }
  body[data-page='home'] .mv-brand-rail .brand-media,
  body[data-page='home'] .mv-brand-rail .brand-card.has-image .brand-media {
    width: 100%;
    height: 100%;
    min-height: 0;
    padding: 6px;
    border: 0;
    border-radius: 0;
    background: transparent;
    place-items: center;
  }
  body[data-page='home'] .mv-brand-rail .brand-media img,
  body[data-page='home'] .mv-brand-rail .brand-card.has-image .brand-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
  body[data-page='home'] .mv-brand-rail .brand-letter {
    height: auto;
    color: var(--mv-ink);
    font-size: 11px;
    font-weight: 700;
    line-height: 13px;
    text-align: center;
  }
  body[data-page='home'] .mv-card-badge {
    width: auto;
    max-width: calc(100% - 20px);
    padding: 0 8px;
    background: var(--badge-bg, var(--mv-green));
  }
  body[data-page='home'] .mv-card-cart:disabled {
    opacity: 0.45;
    cursor: not-allowed;
  }
}

h1,
h2,
h3 {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
}

.price,
.old-price,
.mv-card-price,
.mv-card-price strong,
.mv-card-price del,
.cart-item-price,
.cart-item-old-price,
.cart-price-values,
.summary-total,
.cart-drawer-total strong {
  font-family: var(--font-heading) !important;
  font-weight: 600 !important;
}

.product-grid .product-card .price,
body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  #catalogProducts
  .product-card
  .price {
  font-weight: 600 !important;
}

.product-card-tags span,
.mv-card-specs span,
.product-meta,
.fact span,
.badge,
.stock-badge,
.mv-card-badge,
.cart-price-badge {
  font-family: var(--font-heading) !important;
  font-weight: 500 !important;
}

/* Keep equal space between the brand, navigation, and header actions. */
@media (min-width: 1101px) {
  .site-header > .header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .site-header > .header-inner > .main-nav {
    margin-right: 0;
    justify-self: center;
  }

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

/* The product-logo artwork sits slightly above the banner's geometric center. */
@media (min-width: 761px) {
  body[data-page='home'] .hero-content {
    transform: translateY(-5%);
  }

  body[data-page='home'] .hero[data-align='left'] .hero-content {
    margin-left: max(24px, calc((100% - var(--container)) / 2));
  }
}

body[data-page='home'] .home-gallery-item,
body[data-page='home'] .home-gallery-item img {
  border-radius: 2px !important;
}

.footer .footer-wordmark {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  width: 105.6px;
  height: 19.78px;
  color: var(--color-surface);
  text-decoration: none;
  white-space: nowrap;
}

.footer .footer-wordmark-artwork {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 5297 / 498;
  overflow: hidden;
}

/* Preserve the supplied PNG's color; frame only its non-transparent artwork. */
.footer .footer-wordmark-image {
  position: absolute;
  left: calc(-100% * 1446 / 5297);
  top: calc(-100% * 1263 / 498);
  display: block;
  width: calc(100% * 8189 / 5297);
  max-width: none;
  height: auto;
}

@media (max-width: 760px) {
  .footer .footer-wordmark {
    width: 105.6px;
    height: 11.18px;
    visibility: hidden;
  }
}

.footer .footer-wordmark:hover,
.footer .footer-wordmark:focus-visible {
  text-decoration: none;
}

.circle-action .card-action-glyph {
  width: 19px;
  height: 19px;
}

.home-gallery-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.catalog-pagination[hidden] {
  display: none !important;
}

.catalog-pagination button {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 36px;
  padding: 0 9px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--color-surface);
  color: var(--color-forest);
  cursor: pointer;
}

.catalog-pagination button:hover,
.catalog-pagination button[aria-current='page'] {
  border-color: var(--color-forest);
  background: var(--color-forest);
  color: #fff;
}

.catalog-pagination button:focus-visible {
  outline: 2px solid var(--color-forest);
  outline-offset: 2px;
}

.catalog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.catalog-pagination button:disabled {
  opacity: 0.4;
  cursor: default;
}

.catalog-page-gap {
  padding: 0 4px;
}

body[data-page='home'] .home-gallery-item {
  position: relative;
}

.home-gallery-caption {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  padding: 12px 16px;
  background: rgba(12, 35, 30, 0.82);
  color: #fff;
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.35;
}

/* Store story: editorial copy beside a single, draggable photo rail. */
body[data-page='home'] .home-gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  gap: clamp(28px, 4vw, 64px);
  min-height: clamp(360px, 34vw, 480px);
  padding: clamp(24px, 3.5vw, 52px);
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--color-surface);
}

body[data-page='home'] .home-gallery-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body[data-page='home'] .home-gallery-head {
  margin-bottom: clamp(18px, 2vw, 28px);
}

body[data-page='home'] .home-gallery-story {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: flex-start;
}

body[data-page='home'] .home-gallery-story h2 {
  max-width: 650px;
  margin: 0 0 20px;
  color: var(--ink);
  font-family: var(--font-heading);
  font-size: clamp(28px, 3vw, 43px);
  font-weight: 600;
  line-height: 1.13;
  text-wrap: balance;
  text-transform: none;
}

body[data-page='home'] .home-gallery-story p {
  max-width: 650px;
  margin: 0 0 24px;
  color: var(--muted);
  font-size: clamp(15px, 1.25vw, 17px);
  line-height: 1.6;
  white-space: pre-line;
  text-transform: none;
}

/* Retain the heading's responsive footprint while displaying the supplied logo. */
body[data-page='home'] #homeGalleryStoryTitle {
  position: relative;
}

body[data-page='home'] .home-gallery-title-sizing {
  opacity: 0;
}

body[data-page='home'] .home-gallery-title-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

body[data-page='admin'] .quick-contact-controls {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
}

.quick-contact-color-field {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body[data-page='admin'] .quick-contact-color-field input[type='color'] {
  width: 48px;
  height: 40px;
  padding: 2px;
  cursor: pointer;
}

@media (max-width: 760px) {
  body[data-page='admin'] .quick-contact-controls {
    grid-template-columns: 1fr;
  }
}

body[data-page='home'] .home-gallery-story .btn {
  min-width: 170px;
  margin-top: auto;
  text-align: center;
}

body[data-page='home'] .home-gallery-story .btn[hidden],
.home-gallery-dots[hidden] {
  display: none !important;
}

body[data-page='home'] .home-gallery-media {
  position: relative;
  min-width: 0;
  min-height: 0;
}

@media (min-width: 901px) {
  body[data-page='home'] .home-gallery-rail,
  body[data-page='home'] .home-gallery-rail.is-single {
    width: 100%;
    height: 100%;
    grid-auto-columns: 100% !important;
    gap: 0 !important;
    cursor: grab;
  }

  body[data-page='home'] .home-gallery-rail.is-dragging {
    cursor: grabbing;
    user-select: none;
  }

  body[data-page='home'] .home-gallery-item {
    height: 100%;
    aspect-ratio: auto !important;
  }

  body[data-page='home'] .home-gallery-caption {
    display: none;
  }
}

body[data-page='home'] .home-gallery-dots {
  position: absolute;
  right: 0;
  bottom: 14px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 8px;
  pointer-events: none;
}

body[data-page='home'] .home-gallery-dots button {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 1px solid currentColor;
  border-radius: 0;
  background: transparent;
  color: #113d30;
  cursor: pointer;
  pointer-events: auto;
}

body[data-page='home'] .home-gallery-dots button[aria-pressed='true'] {
  background: #113d30;
}

.product-panel-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.product-panel-action-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

@media (max-width: 760px) {
  body[data-page='home'] .mv-card-cart,
  body[data-page='home'] .mv-card-badge,
  body[data-page='product'] .page-hero,
  body[data-page='product'] #packageOptions .chip,
  body[data-page='product'] .qty-row .btn,
  body[data-page='product'] .product-panel .hero-actions .btn {
    border-radius: 2px !important;
  }

  .mobile-bottom-nav {
    border-top: 0 !important;
    box-shadow: none !important;
  }
}

body[data-page='home'] .home-gallery-dots button:focus-visible {
  outline: 2px solid var(--color-forest);
  outline-offset: 3px;
}

@media (max-width: 900px) {
  body[data-page='home'] .home-gallery-layout {
    display: block;
    min-height: 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  body[data-page='home'] .home-gallery-story {
    display: none;
  }

  body[data-page='home'] .home-gallery-media {
    min-height: 0;
  }

  body[data-page='home'] .home-gallery-dots {
    position: static;
    padding-top: 10px;
  }
}

.cart-item-product-link {
  display: block;
  width: max-content;
  max-width: 100%;
}

body[data-page='cart'] .cart-item[data-product-href] {
  cursor: pointer;
}

.cart-item-product-link .cart-item-img {
  display: block;
}

.cart-item-info h3 a {
  color: inherit;
  text-decoration: none;
}

.cart-item-product-link:focus-visible,
.cart-item-info h3 a:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}

.cart-remove-icon {
  display: none;
}

@media (max-width: 760px) {
  body[data-page='cart'] .cart-remove.btn.small {
    display: grid;
    width: 40px;
    min-width: 40px;
    height: 40px;
    min-height: 40px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 2px !important;
    background: transparent;
    color: #87949b;
    box-shadow: none;
  }

  body[data-page='cart'] .cart-remove.btn.small:hover,
  body[data-page='cart'] .cart-remove.btn.small:focus-visible {
    color: var(--green);
  }

  body[data-page='cart'] .cart-remove-icon {
    display: block;
    width: 21px;
    height: 21px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  body[data-page='cart'] .cart-remove-label {
    display: none;
  }

  .mobile-bottom-nav a:first-child .bottom-nav-icon {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    font-size: 24px;
  }

  body[data-page='product'] .tab-buttons {
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  body[data-page='product'] .tab-buttons::-webkit-scrollbar {
    display: none;
  }

  body[data-page='product'] :is(#similarProducts, #recentProducts) {
    grid-auto-columns: 176px;
    gap: 16px;
  }

  body[data-page='product'] :is(#similarProducts, #recentProducts) .product-card {
    height: 302px;
    min-height: 0;
  }

  body[data-page='product'] :is(#similarProducts, #recentProducts) .product-card .badge {
    border-radius: 2px !important;
  }
}

body[data-page='product'] [data-product-add].cart-state-active {
  border-color: var(--green) !important;
  background: var(--color-surface) !important;
  color: var(--green-dark) !important;
}

.site-header .brand-mark[hidden] {
  display: none !important;
}

.site-header .brand-lockup {
  display: flex;
  width: 211.2px;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.site-header .brand-wordmark-img,
.site-header .brand-tagline-img {
  display: block;
  width: 100%;
  height: auto;
}

.site-header .brand-desktop-logo {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 5297 / 945;
  overflow: hidden;
}

/* Frame the artwork inside the supplied PNG's transparent margins. */
.site-header .brand-desktop-logo img {
  position: absolute;
  left: calc(-100% * 1446 / 5297);
  top: calc(-100% * 1039 / 945);
  display: block;
  width: calc(100% * 8189 / 5297);
  max-width: none;
  height: auto;
}

.site-header .brand-mobile-logo {
  display: none;
  position: relative;
  width: 100%;
  aspect-ratio: 5297 / 498;
  overflow: hidden;
}

/* Frame the supplied mobile PNG without shrinking the wordmark into its margins. */
.site-header .brand-mobile-logo img {
  position: absolute;
  left: calc(-100% * 1446 / 5297);
  top: calc(-100% * 1263 / 498);
  display: block;
  width: calc(100% * 8189 / 5297);
  max-width: none;
  height: auto;
}

@media (min-width: 761px) {
  .site-header .has-desktop-artwork > .brand-desktop-logo {
    display: block;
  }

  .site-header .has-desktop-artwork > .brand-wordmark-img,
  .site-header .has-desktop-artwork > .brand-tagline-img {
    display: none;
  }
}

@media (max-width: 760px) {
  .site-header .brand .brand-name {
    display: inline-flex;
  }

  .site-header .brand .brand-lockup {
    display: flex;
    width: 105.6px;
    min-width: 0;
    max-width: 105.6px;
    flex: 0 0 105.6px;
    gap: 0;
    height: 11.18px;
    justify-content: center;
  }

  .site-header .has-desktop-artwork > .brand-mobile-logo {
    display: block;
  }

  .site-header .has-desktop-artwork > .brand-wordmark-img {
    display: none;
  }

  .site-header .brand-tagline-img {
    display: none;
  }
}

/* Keep the mobile store controls balanced around the centered wordmark. */
.site-header .header-contact-trigger {
  display: none;
}

@media (max-width: 760px) {
  body,
  body[data-page='home'] {
    overflow-x: clip;
  }

  .site-header {
    position: sticky;
    top: 0;
  }

  .site-header > .header-inner {
    display: grid;
    grid-template-columns: 44px 44px minmax(0, 1fr) 44px 44px;
    align-items: center;
    gap: 0;
  }

  .site-header .header-actions {
    display: contents;
  }

  .site-header .burger {
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
  }

  .site-header .brand {
    grid-column: 3;
    grid-row: 1;
    justify-self: center;
  }

  .site-header .header-search-trigger {
    grid-column: 4;
    grid-row: 1;
  }

  .site-header .header-actions > a.header-contact-trigger {
    display: grid !important;
    grid-column: 5;
    grid-row: 1;
    place-items: center;
    width: 44px;
    height: 44px;
    color: var(--ink);
  }

  .site-header .header-contact-trigger svg {
    width: 24px;
    height: 24px;
    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
  }
}

/* Mobile store story: photo first, admin-managed copy beneath it. */
@media (max-width: 760px) {
  body[data-page='home'] #homeGallerySection {
    padding-bottom: 0 !important;
  }

  body[data-page='home'] #homeGallerySection > .container {
    width: 100%;
    max-width: none;
  }

  body[data-page='home'] .home-gallery-layout {
    display: flex;
    flex-direction: column;
    gap: 0;
  }

  body[data-page='home'] .home-gallery-copy {
    display: contents;
  }

  body[data-page='home'] .home-gallery-head {
    order: 0;
    padding-inline: 20px;
    margin-bottom: 20px;
  }

  body[data-page='home'] .home-gallery-media {
    order: 1;
    width: 100%;
  }

  body[data-page='home'] .home-gallery-caption {
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }

  body[data-page='home'] .home-gallery-dots {
    position: absolute;
    right: auto;
    bottom: 16px;
    left: 50%;
    width: max-content;
    padding: 0;
    transform: translateX(-50%);
    border-radius: 0;
    background: transparent;
  }

  body[data-page='home'] .home-gallery-dots button {
    border-color: #113d30;
    border-radius: 0;
    background: transparent;
    color: #113d30;
    font-size: 12px;
    filter: none;
  }

  body[data-page='home'] .home-gallery-dots button[aria-pressed='true'] {
    border-width: 2px;
    background: transparent;
  }

  body[data-page='home'] .home-gallery-story {
    display: flex;
    order: 2;
    padding: 26px 20px 34px;
    background: var(--paper);
  }

  body[data-page='home'] .home-gallery-story h2 {
    margin-bottom: 20px;
    font-size: clamp(28px, 8vw, 36px);
    font-weight: 700;
    line-height: 1.15;
  }

  body[data-page='home'] .home-gallery-story p {
    font-size: 16px;
    line-height: 1.55;
  }
}

/* Homepage reference treatment. Keep the established mobile cards untouched. */
.desktop-goal-icon,
.desktop-trust-top {
  display: none;
}

@media (min-width: 761px) {
  body[data-page='home'] [data-home-block='goals'],
  body[data-page='home'] [data-home-block='brands'],
  body[data-page='home'] [data-home-block='trust'] {
    background: #fff !important;
  }

  body[data-page='home'] [data-home-block='goals'] .section-head,
  body[data-page='home'] [data-home-block='brands'] .section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px !important;
  }

  body[data-page='home'] #homeGoals {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    border: 0;
  }

  body[data-page='home'] #homeGoals .goal-card,
  body[data-page='home'] #homeGoals .goal-card:nth-child(n) {
    display: grid;
    min-height: 124px;
    padding: 18px;
    grid-template-columns: 60px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 16px;
    align-content: center;
    border: 1px solid var(--line) !important;
    border-radius: 2px !important;
    background: #fff !important;
  }

  body[data-page='home'] #homeGoals .goal-card:hover,
  body[data-page='home'] #homeGoals .goal-card:focus-visible {
    border-color: var(--green) !important;
    box-shadow: none;
    transform: none;
  }

  body[data-page='home'] #homeGoals .desktop-goal-icon {
    display: grid;
    width: 60px;
    height: 60px;
    grid-column: 1;
    grid-row: 1 / 3;
    align-self: center;
    place-items: center;
    border-radius: 50%;
    background: #f6f6f2;
  }

  body[data-page='home'] #homeGoals .desktop-goal-icon svg {
    width: 31px;
    height: 31px;
    stroke: #113d30;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  body[data-page='home'] #homeGoals .goal-card h3 {
    grid-column: 2;
    grid-row: 1;
    margin: 0 0 5px;
    color: var(--ink);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.25;
  }

  body[data-page='home'] #homeGoals .goal-card p {
    grid-column: 2;
    grid-row: 2;
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.35;
  }

  body[data-page='home'] #homeBrands {
    grid-auto-columns: calc(100% / 7) !important;
    gap: 0 !important;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    scroll-snap-type: x proximity;
  }

  body[data-page='home'] #homeBrands .home-rail-copy {
    display: none !important;
  }

  body[data-page='home'] #homeBrands .brand-card,
  body[data-page='home'] #homeBrands .brand-card:nth-child(n) {
    display: grid !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 72px !important;
    min-height: 72px !important;
    grid-template-rows: minmax(0, 1fr) !important;
    place-items: center;
    border: 0 !important;
    border-right: 1px solid var(--line) !important;
    border-radius: 0 !important;
    outline: 1px solid transparent;
    outline-offset: -1px;
    transition: outline-color 0.2s ease;
  }

  body[data-page='home'] #homeBrands .brand-card:hover,
  body[data-page='home'] #homeBrands .brand-card:focus-visible {
    position: relative;
    z-index: 1;
    outline-color: var(--green);
  }

  body[data-page='home'] #homeBrands .brand-media,
  body[data-page='home'] #homeBrands .brand-card.has-image .brand-media {
    display: grid;
    width: 100% !important;
    height: 100% !important;
    padding: 12px !important;
    place-items: center;
  }

  body[data-page='home'] #homeBrands .brand-media img,
  body[data-page='home'] #homeBrands .brand-card.has-image .brand-media img {
    width: 100% !important;
    max-height: 46px;
    object-fit: contain;
  }

  body[data-page='home'] #homeBrands .brand-letter {
    font-size: 13px !important;
  }

  body[data-page='home'] [data-home-block='trust'] .section-head {
    margin-bottom: 15px;
  }

  body[data-page='home'] #homeTrust {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
  }

  body[data-page='home'] #homeTrust .trust-item,
  body[data-page='home'] #homeTrust .trust-item + .trust-item {
    display: block;
    min-height: 170px;
    padding: 18px 22px;
    background: #fff;
  }

  body[data-page='home'] #homeTrust .trust-item:first-child {
    padding-left: 0;
  }

  body[data-page='home'] #homeTrust .desktop-trust-top {
    display: flex;
    height: 34px;
    align-items: center;
    margin-bottom: 12px;
  }

  body[data-page='home'] #homeTrust .desktop-trust-top svg {
    width: 27px;
    height: 27px;
    stroke: #113d30;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.5;
  }

  body[data-page='home'] #homeTrust .trust-item h3 {
    margin: 0 0 8px;
    color: #113d30;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.3;
  }

  body[data-page='home'] #homeTrust .trust-item p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
  }
}

@media (min-width: 761px) and (max-width: 980px) {
  body[data-page='home'] #homeBrands {
    grid-auto-columns: 20% !important;
  }
}

/* Shared progressive disclosure for category navigation. */
.catalog-subcategory-list,
.catalog-subcategory-rest {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.catalog-subcategory-list a {
  display: block;
  min-width: 0;
  padding: 2px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  white-space: normal;
  overflow-wrap: anywhere;
}

.catalog-subcategory-more > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 32px;
  color: var(--green);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  list-style: none;
}

.catalog-subcategory-more > summary::-webkit-details-marker,
.mobile-catalog-category > summary::-webkit-details-marker {
  display: none;
}

.catalog-subcategory-expand,
.catalog-subcategory-collapse {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.catalog-subcategory-collapse,
.catalog-subcategory-more[open] > summary .catalog-subcategory-expand {
  display: none;
}

.catalog-subcategory-more[open] > summary .catalog-subcategory-collapse {
  display: inline;
}

.catalog-subcategory-chevron,
.mobile-menu-next {
  display: block;
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.catalog-subcategory-more[open] > summary .catalog-subcategory-chevron {
  transform: rotate(225deg);
}

.catalog-subcategory-list a:hover,
.catalog-subcategory-more > summary:hover {
  color: var(--green);
}

.catalog-subcategory-list a:focus-visible,
.catalog-subcategory-more > summary:focus-visible,
.mobile-catalog :is(a, button, summary):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-smart-links.catalog-subcategory-list {
  display: grid;
  overflow: visible !important;
}

body:is([data-page='catalog'], [data-page='goal'], [data-page='brand'])
  .catalog-smart-links.catalog-subcategory-list
  a {
  white-space: normal;
}

@media (min-width: 1101px) {
  .catalog-mega-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    gap: 20px 32px;
  }

  .catalog-mega-group {
    min-height: 112px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
  }

  .catalog-mega-category {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .catalog-mega-subcategories a {
    overflow: visible;
    white-space: normal;
  }
}

@media (max-width: 1100px) {
  body.menu-open {
    position: fixed;
    top: var(--mobile-scroll-top, 0px);
    left: 0;
    right: 0;
    width: 100%;
  }

  body.menu-open .site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    width: 100%;
  }

  body.menu-open .mobile-panel {
    overscroll-behavior: contain;
  }

  .mobile-menu-primary[hidden],
  .mobile-catalog[hidden] {
    display: none !important;
  }

  .mobile-panel > .container {
    padding-bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .mobile-menu-primary a[data-mobile-catalog-open] {
    grid-template-columns: 24px minmax(0, 1fr) 12px;
  }

  .mobile-menu-next {
    margin-right: 4px;
    justify-self: end;
    color: var(--muted);
    transform: rotate(-45deg);
  }

  .mobile-catalog-back {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--green);
    font: inherit;
    font-size: 16px;
    cursor: pointer;
  }

  .mobile-catalog-title {
    margin: 8px 0;
    color: var(--ink);
    font-size: 24px;
    line-height: 1.3;
  }

  .mobile-catalog .mobile-catalog-all {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 48px;
    padding: 8px 0;
    color: var(--green);
    font-size: 16px;
    font-weight: 600;
  }

  .mobile-catalog-category {
    border-bottom: 1px solid var(--line);
  }

  .mobile-catalog-category > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 48px;
    padding: 12px 0;
    color: var(--ink);
    font-size: 16px;
    line-height: 1.5;
    cursor: pointer;
    list-style: none;
  }

  .mobile-catalog-category[open] > summary .mobile-menu-next {
    transform: rotate(45deg);
  }

  .mobile-catalog-category-body {
    padding: 0 12px 12px;
  }

  .mobile-catalog .catalog-subcategory-list a,
  .mobile-catalog .mobile-catalog-category-all {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 10px 0;
    border: 0;
    color: var(--muted);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.5;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .mobile-catalog .mobile-catalog-category-all {
    color: var(--green);
  }

  .mobile-catalog .catalog-subcategory-more > summary {
    min-height: 48px;
    font-size: 16px;
  }

  .mobile-catalog :is(a, button, summary):active {
    background: var(--green-soft);
  }
}

/* Goal pages reuse catalog cards, filters and brand tokens. */
.catalog-category-context {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px 16px;
  padding: 8px 0 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.catalog-context-label {
  color: var(--green);
  font-size: 14px;
  font-weight: 600;
}
.catalog-context-links,
.catalog-context-links .catalog-subcategory-rest {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.catalog-context-links a,
.catalog-context-links .catalog-subcategory-more > summary {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--green);
  font-size: 14px;
}
.catalog-context-links .catalog-subcategory-rest {
  margin-top: 8px;
}
.goals-index-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 16px;
}
.goal-selection-card {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  min-width: 0;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 2px;
  transition: border-color 180ms ease;
}
.goal-selection-card:hover {
  border-color: var(--green);
}
.goal-selection-card > div {
  flex: 1;
  min-width: 0;
}
.goal-selection-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}
.goal-selection-card p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
}
.goal-selection-icon {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  fill: none;
  color: var(--green);
}
.goal-selection-arrow {
  color: var(--green);
  font-size: 20px;
}
.goals-catalog-return {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  align-items: center;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.goals-catalog-return a {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 4px;
}
body[data-page='goal'] .goal-catalog-layout {
  display: block;
}
body[data-page='goal'] .page-hero {
  position: relative;
  z-index: 46;
  overflow: visible;
}
.goal-hero-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.goal-hero-copy {
  flex: 1;
  min-width: 0;
}
body[data-page='goal'] .page-hero p {
  display: block !important;
  max-width: 760px;
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.5;
}
.goal-navigation {
  position: relative;
  flex: 0 0 auto;
  width: max-content;
  max-width: 100%;
}
.goal-navigation > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 16px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  font-size: 15px;
  font-weight: 600;
  color: var(--green);
  list-style: none;
  cursor: pointer;
  transition: border-color 180ms ease;
}
.goal-navigation > summary:hover,
.goal-navigation[open] > summary {
  border-color: var(--green);
}
.goal-navigation > summary::-webkit-details-marker {
  display: none;
}
.goal-navigation-chevron {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 180ms ease;
}
.goal-navigation[open] .goal-navigation-chevron {
  transform: rotate(180deg);
}
.goal-navigation nav {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  max-height: var(--goal-menu-height, min(440px, 60dvh));
  overflow-y: auto;
  overscroll-behavior: contain;
  display: grid;
  padding: 8px;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
  box-shadow: 0 8px 24px rgb(18 61 48 / 8%);
}
.goal-navigation:not([open]) nav {
  display: none;
}
.goal-navigation.opens-above nav {
  top: auto;
  bottom: calc(100% + 8px);
}
.goal-navigation nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  min-height: 48px;
  font-size: 15px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}
.goal-navigation nav a > span {
  flex: 1;
  min-width: 0;
}
.goal-navigation nav a[aria-current='page'] {
  background: var(--paper);
  color: var(--green);
  font-weight: 600;
}
.goal-navigation nav a:hover {
  background: var(--paper);
}
.goal-navigation-check {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.goal-navigation nav .goal-selection-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}
.goal-navigation-all {
  border-top: 1px solid var(--line);
  color: var(--green);
}
.goal-description {
  max-width: 800px;
  margin: 48px auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}
.goal-description h2 {
  font-size: 24px;
  margin-bottom: 16px;
}
.goal-description p {
  font-size: 16px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
body[data-page='goal'] .product-grid > .empty-state,
.goals-index-grid > .empty-state {
  grid-column: 1 / -1;
}
body[data-page='goal'] .empty-state .btn {
  margin: 8px;
}
.admin-goal-products {
  padding: 16px;
  border: 1px solid var(--line);
  min-width: 0;
}
.admin-goal-products legend {
  padding: 0 8px;
  font-weight: 600;
}
.admin-goal-product-list {
  max-height: 260px;
  overflow-y: auto;
  margin-top: 12px;
  overscroll-behavior: contain;
}
.admin-goal-product-list label {
  display: flex;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
}
.admin-goal-product-list input[type='checkbox'] {
  width: 20px;
  height: 20px;
  min-height: 20px;
  flex: 0 0 20px;
}
.admin-goal-product-list small {
  display: block;
  color: var(--muted);
}
.admin-goal-details > summary {
  min-height: 48px;
  padding: 12px 0;
  cursor: pointer;
  color: var(--green);
}
.admin-goal-details[open] {
  display: grid;
  gap: 12px;
}
.goal-selection-card:focus-visible,
.goal-navigation :is(a, summary):focus-visible,
.catalog-context-links :is(a, summary):focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
.catalog-category-context[hidden],
.goal-description[hidden],
.admin-goal-product-list label[hidden] {
  display: none;
}
@media (min-width: 1101px) {
  .site-header > .header-inner > .main-nav {
    gap: clamp(8px, 1vw, 16px);
  }
}
@media (max-width: 1100px) {
  .goals-index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .goal-hero-heading {
    display: block;
  }
  .goal-navigation {
    margin-top: 16px;
    width: 100%;
  }
  .goal-navigation > summary {
    height: 40px;
    min-height: 40px;
    padding: 0 16px;
  }
  .goal-navigation nav {
    left: 0;
    right: auto;
    width: 100%;
  }
}
@media (max-width: 760px) {
  .goals-index-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  body[data-page='goal'] main > .goal-catalog-section {
    padding-top: 24px;
  }
  body[data-page='goal'] .catalog-main > .goal-navigation {
    margin: 0 0 24px;
    z-index: 46;
  }
  body[data-page='goal'] .goal-navigation > summary {
    font-size: 16px;
  }
  body[data-page='goals'] .page-hero h1 {
    font-size: 28px;
    line-height: 1.25;
  }
  .goal-selection-card {
    gap: 12px;
    padding: 20px 16px;
  }
  .goal-selection-card h2 {
    font-size: 18px;
  }
  .catalog-context-links a,
  .catalog-context-links .catalog-subcategory-more > summary {
    min-height: 48px;
  }
  .goal-description {
    margin-top: 32px;
    padding-top: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .goal-selection-card,
  .goal-navigation-chevron {
    transition: none;
  }
}

/* Brand detail pages reuse the catalogue cards and filters. */
.brand-card.has-image .brand-media,
.brand-image-admin-preview {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
}
.brand-card.has-image .brand-media > img,
.brand-image-admin-preview > img {
  min-width: 0;
  min-height: 0;
  max-width: 100%;
  max-height: 100%;
}
.brand-page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand-page-copy {
  flex: 1;
  min-width: 0;
  max-width: 800px;
}
body[data-page='brand'] .page-hero .brand-page-summary {
  display: block !important;
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
body[data-page='brand'] .page-hero h1 {
  overflow-wrap: anywhere;
}
.brand-page-logo {
  flex: 0 0 180px;
  width: 180px;
  height: 96px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background: var(--white);
}
.brand-page-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.brand-page-logo[hidden] {
  display: none;
}
.brand-page-description {
  max-width: 800px;
  margin-top: 8px;
}
.brand-page-description > summary {
  display: flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  min-height: 44px;
  color: var(--green);
  font-size: 14px;
  cursor: pointer;
  list-style: none;
}
.brand-page-description > summary::-webkit-details-marker {
  display: none;
}
.brand-page-description svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.brand-page-description[open] svg {
  transform: rotate(180deg);
}
.brand-description-collapse,
.brand-page-description[open] .brand-description-expand {
  display: none;
}
.brand-page-description[open] .brand-description-collapse {
  display: inline;
}
body[data-page='brand'] .page-hero .brand-page-description p {
  display: block !important;
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.7;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
body[data-page='brand'] .catalog-layout {
  display: block;
}
.brand-products-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
.brand-products-heading h2 {
  margin: 0;
  font-size: 24px;
}
.brand-sort {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}
body[data-page='brand'] .brand-sort #catalogSort {
  width: 200px;
  min-height: 44px;
  margin: 0;
  padding: 8px 40px 8px 12px;
  border: 1px solid var(--line);
  border-radius: 2px;
  background-color: var(--white);
  color: var(--ink);
  font-family: var(--font-body);
}
.brand-page-description > summary:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .brand-page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 12px;
  }
  .brand-page-copy {
    display: contents;
  }
  body[data-page='brand'] .page-hero h1 {
    font-size: 26px;
    line-height: 1.25;
    grid-column: 1;
    margin: 0;
  }
  .brand-page-logo {
    grid-column: 2;
    grid-row: 1;
    width: 96px;
    height: 56px;
    padding: 8px;
  }
  body[data-page='brand'] .page-hero .brand-page-summary {
    grid-column: 1 / -1;
    margin: 0;
    font-size: 15px;
    line-height: 1.5;
  }
  .brand-products-heading {
    flex-wrap: wrap;
    gap: 8px;
  }
  .brand-products-heading h2 {
    font-size: 20px;
  }
  .brand-sort {
    display: none;
  }
}
