@font-face {
  font-family: "Olesalis Montserrat";
  src: url("brand/fonts/Montserrat-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Olesalis Montserrat";
  src: url("brand/fonts/Montserrat-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Olesalis Argue";
  src: url("brand/fonts/Arguedemo.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --text: #2d2d32;
  --muted: #737075;
  --line: #e8e1d4;
  --soft: #fffaf0;
  --accent: #ffdc4b;
  --accent-soft: #fff6c7;
  --brand-pink: #cd0055;
  --brand-red: #870032;
  --gold: #ffdc4b;
  --gold-dark: #2d2d32;
  --green: #dff5e6;
  --green-text: #245b33;
  --danger: #fff0f0;
  --keyboard-height: 0px;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100%;
  padding-bottom: var(--keyboard-height);
  background: var(--bg);
  color: var(--text);
  font: 16px/1.42 "Olesalis Montserrat", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  min-height: 82px;
  padding: 14px clamp(18px, 4vw, 48px);
  background: rgba(255, 255, 255, .94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  justify-self: center;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.brand img {
  display: block;
  width: clamp(116px, 12vw, 154px);
  height: auto;
}
.brand img.questionnaire-logo {
  width: clamp(92px, 8vw, 116px);
  height: clamp(92px, 8vw, 116px);
  object-fit: contain;
}
.header-actions,
.topnav {
  display: flex;
  align-items: center;
  gap: 16px;
}
.header-left { justify-self: start; }
.topnav { justify-self: end; }
.topnav a,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  text-decoration: none;
  font-weight: 500;
  cursor: pointer;
}
.icon-button {
  position: relative;
  width: 36px;
  height: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.topnav a.icon-button {
  width: 36px;
  min-width: 36px;
  min-height: 36px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.cart-button {
  overflow: visible;
}
.cart-count {
  position: absolute;
  top: -4px;
  right: -6px;
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border: 2px solid var(--surface);
  border-radius: 999px;
  background: var(--brand-pink);
  color: var(--surface);
  font-size: 11px;
  font-weight: 500;
  line-height: 1;
}
.cart-count[hidden] {
  display: none;
}
.admin-link {
  min-height: 42px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  text-decoration: none;
  font-weight: 800;
}
.topnav a.admin-link {
  min-height: 42px;
  padding: 0 14px;
}
.hamburger-icon,
.hamburger-icon::before,
.hamburger-icon::after {
  position: absolute;
  left: 4px;
  width: 28px;
  height: 2px;
  background: var(--text);
  content: "";
}
.hamburger-icon { top: 17px; }
.hamburger-icon::before { top: -9px; left: 0; }
.hamburger-icon::after { top: 9px; left: 0; }
.search-icon {
  position: absolute;
  inset: 5px 8px 8px 5px;
  border: 3px solid var(--text);
  border-radius: 50%;
}
.search-icon::after {
  position: absolute;
  right: -8px;
  bottom: -7px;
  width: 11px;
  height: 3px;
  background: var(--text);
  transform: rotate(45deg);
  content: "";
}
.account-icon {
  position: absolute;
  inset: 4px;
  border: 2px solid var(--text);
  border-radius: 50%;
}
.account-icon::before {
  position: absolute;
  left: 50%;
  top: 6px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--text);
  border-radius: 50%;
  transform: translateX(-50%);
  content: "";
}
.account-icon::after {
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 16px;
  height: 8px;
  border: 2px solid var(--text);
  border-bottom: 0;
  border-radius: 16px 16px 0 0;
  transform: translateX(-50%);
  content: "";
}
.bag-icon {
  position: absolute;
  left: 6px;
  right: 6px;
  bottom: 4px;
  height: 20px;
  border: 2px solid var(--text);
  border-radius: 2px 2px 4px 4px;
}
.bag-icon::before {
  position: absolute;
  left: 50%;
  top: -10px;
  width: 12px;
  height: 10px;
  border: 2px solid var(--text);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
  transform: translateX(-50%);
  content: "";
}
.button.primary {
  background: var(--gold);
  border-color: var(--gold-dark);
}
.button.disabled {
  opacity: .5;
  pointer-events: none;
}
.page {
  width: min(1960px, 100%);
  margin: 0 auto;
  padding: 32px clamp(20px, 1.6vw, 32px) 42px;
}
.hero,
.panel,
.product-page,
.checkout-chat,
.checkout-page {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 0;
  padding: clamp(22px, 4vw, 42px);
}
.catalog-intro {
  border: 0;
  padding: 22px 0 4px;
  text-align: center;
}
.catalog-intro p {
  margin-inline: auto;
  margin-top: 18px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.65;
}
.catalog-intro .badge {
  border-color: transparent;
  background: var(--accent-soft);
  color: var(--brand-red);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.catalog-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 18px 0 8px;
}
.catalog-sections a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  text-decoration: none;
  font-weight: 500;
}
.catalog-sections a.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--brand-red);
}
.catalog-layout {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.catalog-layout.no-side {
  grid-template-columns: minmax(0, 1fr);
}
.catalog-layout.no-side .catalog-main,
.catalog-layout > .catalog-main:only-child {
  grid-column: 1 / -1;
}
.catalog-side {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 4px;
  padding-top: 1em;
}
.catalog-side h2 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  text-transform: uppercase;
}
.catalog-side a,
.catalog-filter-panel a {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 500;
}
.catalog-side a.active,
.catalog-filter-panel a.active {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--brand-red);
}
.catalog-main {
  min-width: 0;
}
.catalog-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 39;
  background: rgba(0, 0, 0, .28);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease;
}
.catalog-drawer {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 40;
  width: min(360px, 88vw);
  padding: 96px 24px 28px;
  background: var(--surface);
  border-right: 1px solid var(--line);
  box-shadow: 16px 0 36px rgba(45, 45, 50, .12);
  transform: translateX(-105%);
  transition: transform .2s ease;
  overflow-y: auto;
}
.catalog-drawer.open {
  transform: translateX(0);
}
.catalog-drawer-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}
.catalog-drawer-head {
  position: absolute;
  top: 22px;
  left: 24px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.catalog-drawer-head h2 {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  text-transform: uppercase;
  color: var(--muted);
}
.catalog-drawer-head .icon-button {
  display: grid;
  place-items: center;
  font-size: 32px;
  line-height: 1;
}
.catalog-drawer-links {
  display: grid;
  gap: 6px;
}
.catalog-drawer-links a,
.catalog-drawer-label {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 500;
}
.catalog-drawer-links a.active {
  background: var(--accent-soft);
  color: var(--brand-red);
}
.catalog-drawer-label {
  margin-top: 16px;
  min-height: 28px;
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}
body.catalog-menu-open {
  overflow: hidden;
}
body.gallery-lightbox-open {
  overflow: hidden;
}
.hero h1,
.panel h1,
.product-info h1,
.chat-header h1 {
  margin: 10px 0;
  font-size: 46px;
  line-height: 1.04;
  letter-spacing: 0;
}
.catalog-intro h1 {
  margin: 14px auto 0;
  font-family: "Olesalis Argue", "Didot", "Bodoni 72", "Times New Roman", serif;
  font-size: clamp(40px, 6.5vw, 96px);
  font-weight: 400;
  line-height: .98;
  color: var(--brand-pink);
}
.product-info h1 {
  max-width: 560px;
  margin: 8px 0 16px;
  font-family: "Didot", "Bodoni 72", "Bodoni 72 Smallcaps", "Times New Roman", serif;
  font-size: clamp(22px, 1.7vw, 30px);
  font-weight: 400;
  line-height: 1.12;
  text-transform: uppercase;
}
.hero p,
.panel p,
.product-info p,
.chat-header p {
  color: var(--muted);
  font-size: 20px;
  max-width: 720px;
}
.badge,
.status {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 0;
  background: var(--surface);
  color: var(--muted);
  font-weight: 500;
}
.status.ok { background: var(--green); color: var(--green-text); }
.status.warn { background: var(--danger); color: #8a2424; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }

.product-page {
  display: grid;
  grid-template-columns: minmax(560px, 780px) minmax(360px, 430px);
  justify-content: center;
  align-items: start;
  gap: clamp(34px, 4.4vw, 86px);
  border: 0;
  background: transparent;
  padding: 0;
}
.product-media-layout {
  display: grid;
  gap: 14px;
  align-items: start;
  min-width: 0;
}
.product-variant-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0 8px;
  max-width: 100%;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.product-variant-strip::-webkit-scrollbar {
  display: none;
}
.product-variant-option {
  position: relative;
  flex: 0 0 74px;
  display: grid;
  gap: 5px;
  width: 74px;
  color: var(--muted);
  text-align: center;
  text-decoration: none;
}
.product-variant-option img,
.product-variant-option > span:not(.cart-photo-badge) {
  width: 74px;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 2px solid transparent;
  background: #f3f3f3;
}
.product-variant-option.active img,
.product-variant-option.active > span:not(.cart-photo-badge) {
  border-color: var(--text);
}
.product-variant-option.in-cart img,
.product-variant-option.in-cart > span:not(.cart-photo-badge) {
  border-color: var(--brand-pink);
  filter: brightness(.88);
}
.product-variant-option img {
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.product-variant-option > span:not(.cart-photo-badge) {
  display: grid;
  place-items: center;
  padding: 4px;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 850;
}
.product-variant-option small {
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cart-photo-badge {
  position: absolute;
  left: 5px;
  right: 5px;
  top: 5px;
  z-index: 3;
  display: none;
  min-height: 20px;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  background: rgba(23, 23, 23, .86);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  line-height: 1.05;
  text-transform: uppercase;
}
.product-variant-option.in-cart .cart-photo-badge {
  display: inline-flex;
}
.media-frame,
.product-gallery {
  min-height: 360px;
  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
}
.product-gallery {
  display: grid;
  align-content: start;
  gap: 14px;
  justify-self: center;
  width: min(100%, 440px, calc((100vh - 250px) * 9 / 16));
  min-width: 0;
  padding: 0;
}
.product-gallery.is-dragging {
  cursor: grabbing;
}
.product-gallery:focus {
  outline: 3px solid rgba(200, 157, 31, .35);
  outline-offset: 3px;
}
.gallery-stage {
  position: relative;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  aspect-ratio: 9 / 16;
  height: auto;
  border-radius: 0;
  overflow: hidden;
  background: #fffdfa;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
}
.gallery-slide {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  opacity: 0;
  transform: translate3d(100%, 0, 0);
  transition: transform .28s cubic-bezier(.22, .61, .36, 1), opacity .18s ease;
  will-change: transform;
}
.gallery-slide.active {
  z-index: 1;
  opacity: 1;
  transform: translate3d(0, 0, 0);
}
.gallery-slide.in-cart::after {
  content: attr(data-cart-label);
  position: absolute;
  left: 16px;
  top: 16px;
  z-index: 5;
  max-width: calc(100% - 32px);
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(23, 23, 23, .88);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}
.product-gallery.is-dragging .gallery-slide {
  transition: none;
}
.media-frame img,
.gallery-slide img,
.gallery-slide video {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.gallery-slide figcaption {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(30, 30, 31, .78);
  color: #fffdfa;
  font-size: 13px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.gallery-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 48px;
  height: 58px;
  border: 1px solid rgba(234, 223, 206, .9);
  border-radius: 14px;
  background: rgba(255, 253, 250, .92);
  color: var(--text);
  font: inherit;
  font-size: 28px;
  font-weight: 950;
  transform: translateY(-50%);
  cursor: pointer;
}
.gallery-nav.prev { left: 10px; }
.gallery-nav.next { right: 10px; }
.gallery-cart-button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  z-index: 4;
  display: none;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid var(--text);
  background: rgba(255, 220, 75, .9);
  color: var(--text);
  cursor: pointer;
}
.gallery-cart-button .bag-icon {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 30px;
  height: 26px;
}
.gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  grid-template-columns: 88px minmax(0, 1fr) 88px;
  align-items: center;
  gap: 18px;
  padding: 28px clamp(18px, 4vw, 56px);
  background: rgba(255, 255, 255, .96);
}
.gallery-lightbox.open {
  display: grid;
}
.gallery-lightbox-media {
  position: relative;
  justify-self: center;
  width: min(100%, 72vh);
  max-height: calc(100vh - 56px);
  aspect-ratio: 9 / 16;
  background: #fffdfa;
  overflow: hidden;
  touch-action: none;
  user-select: none;
  --zoom-x: 50%;
  --zoom-y: 50%;
  --zoom-scale: 1.85;
}
.gallery-lightbox-media img,
.gallery-lightbox-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
  transform-origin: var(--zoom-x) var(--zoom-y);
  transition: transform .16s ease;
}
.gallery-lightbox-media.is-zooming img {
  transform: scale(var(--zoom-scale));
  cursor: zoom-out;
}
.gallery-lightbox-close,
.gallery-lightbox-cart,
.gallery-lightbox-nav {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}
.gallery-lightbox-close {
  position: absolute;
  top: 22px;
  right: 22px;
  z-index: 2;
  width: 42px;
  height: 42px;
  border-color: rgba(234, 223, 206, .9);
  border-radius: 50%;
  background: rgba(255, 255, 255, .78);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .08);
  font-size: 24px;
  line-height: 1;
}
.gallery-lightbox-cart {
  position: absolute;
  right: 22px;
  bottom: 22px;
  z-index: 2;
  width: 54px;
  height: 54px;
  background: rgba(255, 220, 75, .82);
  border-color: var(--text);
}
.gallery-lightbox-cart .bag-icon {
  position: relative;
  left: auto;
  right: auto;
  bottom: auto;
  width: 28px;
  height: 24px;
}
.gallery-lightbox-nav {
  justify-self: center;
  width: 54px;
  height: 68px;
  font-size: 32px;
  font-weight: 500;
}
.gallery-lightbox-variants {
  display: none;
}
.gallery-counter {
  position: absolute;
  top: 12px;
  right: max(12px, env(safe-area-inset-right));
  z-index: 4;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(30, 30, 31, .78);
  color: #fffdfa;
  font-size: 13px;
  font-weight: 850;
}
.product-info {
  position: sticky;
  top: 112px;
  min-width: 0;
  padding-top: 12px;
}
.image-empty,
.thumb-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  color: var(--muted);
  font-weight: 800;
}
.sku {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
}
.price {
  margin: 0;
  font-size: clamp(32px, 2.4vw, 44px);
  font-weight: 500;
  line-height: 1.08;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin: 14px 0 12px;
}
.price-row .price {
  margin: 0;
}
.price-cart-button {
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid var(--text);
  background: var(--gold);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
  cursor: pointer;
}
.price-cart-button:active {
  transform: translateY(1px);
}
.attrs {
  display: grid;
  gap: 7px;
  margin: 18px 0 22px;
}
.attrs div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  align-items: baseline;
}
.attrs dt {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}
.attrs dd {
  min-width: 0;
  margin: 0;
  font-size: 13px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.product-cart-panel {
  display: grid;
  gap: 10px;
  margin: 22px 0 12px;
}
.product-cart-items {
  display: grid;
  gap: 8px;
  padding-right: 2px;
}
.product-cart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 52px;
  padding: 10px 0;
  border: 1px solid var(--line);
  border-left: 0;
  border-right: 0;
  background: var(--surface);
}
.product-cart-row.has-qty,
.product-info.has-qty .product-cart-row {
  border-color: var(--line);
}
.product-cart-row strong,
.product-cart-row span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.product-cart-row strong {
  font-size: 13px;
  line-height: 1.15;
  font-weight: 500;
}
.product-cart-row span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.qty-control {
  display: grid;
  grid-template-columns: 30px 28px 30px;
  align-items: center;
  border: 1px solid var(--line);
  background: var(--surface);
}
.qty-control button {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 0;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
}
.qty-control output {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 30px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-size: 13px;
  font-weight: 500;
}
.product-cart-panel .button.primary {
  width: 100%;
  min-height: 54px;
  border-color: var(--text);
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .02em;
}
.product-secondary-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}
.product-secondary-actions .button {
  min-height: 46px;
  border-color: var(--line);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
}
.checkout-summary {
  display: grid;
  gap: 6px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  font-weight: 850;
}
.checkout-page {
  max-width: 1180px;
  margin: 0 auto;
  padding-bottom: calc(var(--keyboard-height) + 24px);
}
.checkout-keyboard-active .checkout-page {
  padding-bottom: calc(var(--keyboard-height) + 180px);
}
.checkout-head {
  max-width: 720px;
}
.checkout-head h1,
.checkout-summary h2,
.checkout-form h2 {
  margin: 0 0 12px;
}
.checkout-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(360px, 1.1fr);
  gap: 24px;
  align-items: start;
  margin-top: 24px;
}
.checkout-summary {
  margin: 0;
  gap: 10px;
}
.checkout-item {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.checkout-item-photo {
  width: 92px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  background: #f3eee4;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.checkout-item-photo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.checkout-item-photo span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}
.checkout-item-main {
  min-width: 0;
}
.checkout-item strong,
.checkout-item-main > span {
  display: block;
}
.checkout-item-main > span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.checkout-item strong span {
  display: inline;
  margin: 0;
  color: inherit;
  font-size: inherit;
}
.checkout-item-meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}
.checkout-item-meta span {
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: #fbf7ef;
  color: var(--muted);
  font-size: 12px;
}
.checkout-item-meta b {
  display: block;
  margin-top: 2px;
  color: var(--text);
  font-size: 14px;
}
.checkout-item-controls {
  display: grid;
  grid-template-columns: 36px 38px 36px;
  align-items: center;
  border: 1px solid var(--line);
  background: #fff;
}
.checkout-item-controls button,
.checkout-item-remove {
  min-height: 38px;
  border: 0;
  background: #f6efe2;
  font-weight: 950;
}
.checkout-item-controls output {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  font-weight: 950;
}
.checkout-item-remove {
  grid-column: 3;
  min-width: 104px;
  padding: 0 14px;
  background: #f0a8ae;
}
.checkout-empty {
  display: grid;
  gap: 10px;
}
.checkout-empty[hidden] {
  display: none;
}
.checkout-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 8px;
  font-size: 18px;
}
.checkout-total[hidden] {
  display: none;
}
.account-page {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  gap: 18px;
}
.account-head {
  max-width: 720px;
}
.questionnaire-head > *:first-child {
  margin-top: 0;
}
.questionnaire-head > *:last-child {
  margin-bottom: 0;
}
.questionnaire-head p,
.questionnaire-head div {
  margin: 0;
  line-height: 1.2;
}
.questionnaire-head h1,
.questionnaire-head h2,
.questionnaire-head h3 {
  margin: 0;
  line-height: 1.2;
}
.account-head h1,
.account-card h2 {
  margin: 0 0 12px;
}
.account-auth,
.account-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.account-auth .account-card:last-child {
  grid-column: 1 / -1;
}
.account-dashboard {
  display: grid;
  gap: 16px;
}
.account-dashboard[hidden],
.account-auth[hidden],
.account-message[hidden] {
  display: none;
}
.account-card {
  border: 1px solid var(--line);
  background: #fff;
  padding: 16px;
  display: grid;
  gap: 12px;
}
.account-card label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}
.account-card input,
.account-card select,
.account-card textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font: inherit;
  background: #fff;
}
.account-card textarea {
  resize: vertical;
}
.account-card .questionnaire-required::after {
  content: " *";
  color: #d11b5f;
  font-weight: 1000;
}
.account-card .questionnaire-full-name {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  border: 0;
  padding: 0;
  margin: 0;
}
.account-card .questionnaire-full-name legend {
  grid-column: 1 / -1;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
  padding: 0;
  margin: 0 0 -2px;
}
.account-card .questionnaire-date-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 8px;
  position: relative;
}
.account-card .questionnaire-date-button {
  width: 44px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.account-card .questionnaire-date-button svg {
  width: 20px;
  height: 20px;
  display: block;
  margin: 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.account-card .questionnaire-date-picker {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 44px;
  height: 44px;
  opacity: 0;
  pointer-events: none;
}
.account-card .questionnaire-check {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.45;
  min-height: 46px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
}
.account-card .questionnaire-check input {
  width: auto;
  min-height: 0;
  margin: 0;
  flex: 0 0 auto;
}
.account-card .questionnaire-options {
  display: grid;
  gap: 8px;
  border: 0;
  padding: 0;
  background: transparent;
  margin: 0;
}
.account-card .questionnaire-options legend {
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
  font-weight: 900;
  padding: 0;
  margin-bottom: 8px;
  overflow-wrap: anywhere;
}
.account-card .questionnaire-check--single {
  align-items: flex-start;
  min-height: 0;
  border: 0;
  padding: 0;
  color: var(--ink);
}
.account-card .questionnaire-check--single input {
  margin-top: 3px;
}
.questionnaire-wide {
  grid-column: 1 / -1;
}
.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.account-profile {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.account-provider-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.account-list {
  display: grid;
  gap: 10px;
}
.account-list:empty::before {
  content: "Поки немає даних.";
  color: var(--muted);
  font-weight: 750;
}
.account-list-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}
.account-list-row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}
.account-list-row strong,
.account-list-row span {
  display: block;
}
.account-list-row span {
  color: var(--muted);
  font-size: 13px;
  margin-top: 3px;
}
.account-bonus-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fbf7ef;
  font-weight: 950;
}
.account-danger {
  border: 0;
  background: transparent;
  padding: 0;
}
.account-danger .button {
  background: transparent;
  border-color: var(--line);
  color: var(--muted);
}
.account-danger .account-delete-button {
  width: auto;
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 650;
}
.account-quiet-action {
  align-self: start;
}
.account-message {
  position: sticky;
  bottom: 12px;
  z-index: 30;
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: #fff;
  font-weight: 850;
}
.account-message.ok {
  background: #f1fbf2;
  border-color: #b7dfbc;
}
.checkout-form {
  display: grid;
  gap: 12px;
}
.checkout-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.checkout-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-weight: 850;
}
.checkout-form label input,
.checkout-form label select,
.checkout-form label textarea {
  color: var(--text);
}
.checkout-suggest-field {
  position: relative;
}
.checkout-suggest-list {
  position: absolute;
  z-index: 80;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: min(260px, 42vh);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, .12);
  scroll-margin-bottom: calc(var(--keyboard-height) + 96px);
}
.checkout-keyboard-active .checkout-suggest-list {
  max-height: min(190px, 30vh);
}
.checkout-suggest-option {
  width: 100%;
  display: block;
  padding: 12px 14px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  text-align: left;
  font: inherit;
  font-weight: 850;
}
.checkout-suggest-option:last-child {
  border-bottom: 0;
}
.checkout-suggest-option:active,
.checkout-suggest-option:focus {
  background: #f6f1e8;
}
.checkout-message {
  padding: 12px 14px;
  border: 1px solid #e6cfcf;
  background: #fff5f5;
  font-weight: 850;
}
.checkout-message.ok {
  border-color: #b9dfc1;
  background: #effaf1;
}
.checkout-payment-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid #171717;
  background: var(--accent);
  color: var(--text);
  text-decoration: none;
  font-weight: 900;
}
.checkout-action-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.checkout-secondary-action,
.checkout-instagram-link {
  background: #fff;
}
.checkout-secondary-action {
  cursor: pointer;
}
.catalog-toolbar {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  margin: 22px 0 28px;
  border: 1px solid var(--line);
  background: rgba(255, 250, 240, .74);
}
.catalog-toolbar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 58px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
}
.catalog-filter {
  position: relative;
  min-height: 58px;
  border-right: 1px solid var(--line);
}
.catalog-filter summary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .04em;
  text-transform: uppercase;
  cursor: pointer;
  list-style: none;
}
.catalog-filter summary::-webkit-details-marker {
  display: none;
}
.catalog-filter-panel {
  position: absolute;
  z-index: 6;
  top: calc(100% + 1px);
  left: -1px;
  width: min(320px, 86vw);
  padding: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: 0 18px 38px rgba(45, 45, 50, .09);
}
.catalog-toolbar > button:last-child,
.view-toggle button:last-child {
  border-right: 0;
}
.filter-icon {
  width: 18px;
  height: 14px;
  background:
    linear-gradient(var(--brand-pink), var(--brand-pink)) 0 1px / 18px 1px no-repeat,
    linear-gradient(var(--brand-pink), var(--brand-pink)) 0 6px / 12px 1px no-repeat,
    linear-gradient(var(--brand-pink), var(--brand-pink)) 0 11px / 7px 1px no-repeat;
}
.view-toggle {
  display: grid;
  grid-template-columns: 58px 58px;
}
.view-toggle button.active {
  background: rgba(255, 220, 75, .32);
  color: var(--brand-red);
}
.view-list-icon,
.view-grid-icon {
  width: 19px;
  height: 19px;
}
.view-list-icon {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 19px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 8px / 19px 3px no-repeat,
    linear-gradient(currentColor, currentColor) 0 16px / 19px 3px no-repeat;
}
.view-grid-icon {
  background:
    linear-gradient(currentColor, currentColor) 0 0 / 8px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 11px 0 / 8px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 0 11px / 8px 8px no-repeat,
    linear-gradient(currentColor, currentColor) 11px 11px / 8px 8px no-repeat;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(22px, 1.7vw, 34px);
  margin: 0;
  background: transparent;
}
.product-card {
  display: block;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
  border: 0;
  border-radius: 0;
}
.product-image-wrap {
  position: relative;
  background: #f7f7f5;
  overflow: hidden;
}
.product-card.in-cart .product-image-wrap::after {
  content: attr(data-cart-label);
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 4;
  max-width: calc(100% - 24px);
  padding: 7px 10px;
  background: rgba(23, 23, 23, .9);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}
.product-main-link {
  display: block;
  color: inherit;
  text-decoration: none;
}
.product-image-wrap img,
.product-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  display: block;
}
.quick-cart {
  position: absolute;
  right: 18px;
  top: 18px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border: 1px solid rgba(205, 0, 85, .2);
  background: rgba(255, 255, 255, .92);
  color: var(--brand-pink);
  font: inherit;
  font-size: 26px;
  font-weight: 450;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease;
}
.quick-cart:hover,
.quick-cart:focus-visible {
  border-color: var(--brand-pink);
  background: var(--brand-pink);
  color: #fff;
}
.variant-photo-strip {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  padding: 32px 12px 12px;
  background: linear-gradient(to top, rgba(255, 255, 255, .94), rgba(255, 255, 255, .62), rgba(255, 255, 255, 0));
  scrollbar-width: none;
}
.variant-photo-strip::-webkit-scrollbar {
  display: none;
}
.variant-photo {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .94);
  background: var(--surface);
  color: var(--text);
  text-decoration: none;
}
.variant-photo.active {
  border-color: var(--brand-pink);
}
.variant-photo.in-cart {
  border-color: var(--brand-pink);
}
.variant-photo.in-cart::after {
  content: attr(data-cart-label);
  position: absolute;
  left: 3px;
  right: 3px;
  top: 3px;
  z-index: 3;
  padding: 3px 4px;
  background: rgba(23, 23, 23, .88);
  color: #fff;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.05;
  text-align: center;
  text-transform: uppercase;
}
.variant-photo.in-cart img {
  filter: brightness(.82);
}
.variant-photo img,
.product-card .variant-photo img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}
.variant-photo span {
  padding: 4px;
  font-size: 10px;
  line-height: 1.1;
  font-weight: 850;
  text-align: center;
}
.card-body {
  padding: 18px 10px 24px;
  text-align: center;
}
.card-body h2 {
  margin: 8px auto 6px;
  max-width: 30ch;
  font-size: 15px;
  line-height: 1.42;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 400;
}
.product-card-group .price {
  margin: 8px 0 0;
  color: var(--brand-red);
  font-size: 15px;
  font-weight: 500;
}
.product-card .sku {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.checkout-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 14px 18px;
  background: rgba(255, 255, 255, .97);
  border-top: 1px solid var(--line);
  box-shadow: 0 -10px 28px rgba(0, 0, 0, .08);
}

.catalog-grid.is-list {
  grid-template-columns: 1fr;
  gap: 12px;
  background: transparent;
}
.catalog-grid.is-list .product-card {
  display: grid;
  grid-template-columns: minmax(170px, 38%) 1fr;
  border: 1px solid var(--line);
}
.catalog-grid.is-list .card-body {
  align-self: center;
  text-align: left;
}
.checkout-chat { max-width: 740px; margin: 0 auto; }
.chat-stream {
  display: grid;
  gap: 10px;
  margin: 24px 0;
}
.bot-message,
.user-message {
  width: fit-content;
  max-width: min(88%, 560px);
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 750;
}
.bot-message { background: #efe8db; }
.user-message {
  justify-self: end;
  background: var(--gold);
}
.chat-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
}
input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font: inherit;
  font-weight: 750;
}
select {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  font: inherit;
  font-weight: 750;
}
textarea {
  width: 100%;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-weight: 750;
  resize: vertical;
}
.muted { color: var(--muted); }

.admin-shell {
  display: grid;
  gap: 16px;
}
.admin-head,
.admin-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(20px, 4vw, 34px);
}
.admin-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}
.admin-head h1,
.admin-card h2 {
  margin: 8px 0;
  letter-spacing: 0;
}
.admin-head h1 {
  font-size: clamp(32px, 5vw, 50px);
  line-height: 1.04;
}
.admin-head p,
.admin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 18px;
}
.admin-card {
  display: grid;
  gap: 16px;
}
.admin-card label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-weight: 850;
}
.admin-card label input,
.admin-card label select {
  color: var(--text);
}
.admin-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.admin-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
}
.admin-options label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}
.admin-options input {
  width: 20px;
  min-height: 20px;
}
.admin-alert {
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid var(--line);
  font-weight: 900;
}
.admin-alert.ok {
  background: var(--green);
  color: var(--green-text);
}
.admin-alert.error {
  background: var(--danger);
  color: #8a2424;
}
.button.danger {
  background: var(--danger);
  border-color: #8a2424;
  color: #8a2424;
}
.catalog-rule-form {
  display: grid;
  gap: 14px;
}
.catalog-rule-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}
.catalog-rule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
}
.catalog-rule-actions label {
  display: inline-flex;
  grid-template-columns: none;
  align-items: center;
  gap: 10px;
  margin-right: auto;
  color: var(--text);
}
.catalog-rule-actions input {
  width: 20px;
  min-height: 20px;
}

@media (max-width: 1020px) {
  .product-page {
    grid-template-columns: 1fr;
  }
  .product-info {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    grid-template-columns: 74px minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 74px;
    padding: 12px 18px;
  }
  .topbar-minimal {
    grid-template-columns: 1fr auto 1fr;
  }
  .brand img {
    width: min(128px, 36vw);
  }
  .brand img.questionnaire-logo {
    width: 76px;
    height: 76px;
  }
  .header-actions,
  .topnav {
    gap: 10px;
    min-width: 0;
  }
  .topnav a.admin-link {
    display: none;
  }
  .page {
    padding: 26px 20px 40px;
  }
  .hero h1,
  .panel h1,
  .chat-header h1 {
    font-size: 38px;
  }
  .product-info h1 {
    max-width: 100%;
    margin: 8px 0 10px;
    font-size: clamp(16px, 4.8vw, 20px);
    line-height: 1.16;
  }
  .price-row {
    gap: 10px;
    margin: 8px 0 10px;
  }
  .price-cart-button {
    min-height: 38px;
    padding: 0 12px;
    font-size: 13px;
  }
  .attrs {
    gap: 5px;
    margin: 12px 0 14px;
  }
  .attrs div {
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 8px;
  }
  .attrs dt,
  .attrs dd {
    font-size: 12px;
    line-height: 1.3;
  }
  .hero p,
  .panel p,
  .product-info p,
  .chat-header p {
    font-size: 20px;
  }
  .catalog-toolbar {
    grid-template-columns: 1fr 1fr 116px;
    margin-inline: 0;
  }
  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .catalog-side {
    position: static;
    display: flex;
    gap: 6px;
    overflow-x: auto;
    padding: 6px 0 0;
    scrollbar-width: none;
  }
  .catalog-side::-webkit-scrollbar {
    display: none;
  }
  .catalog-side h2 {
    display: none;
  }
  .catalog-side a {
    flex: 0 0 auto;
    border-color: var(--line);
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 12px;
    margin-inline: 0;
    background: transparent;
  }
  .card-body {
    padding: 13px 4px 18px;
  }
  .card-body h2 {
    font-size: 13px;
    line-height: 1.35;
  }
  .product-card-group .price {
    font-size: 14px;
  }
  .quick-cart {
    right: 10px;
    top: 10px;
    width: 50px;
    height: 50px;
  }
  .variant-photo-strip {
    gap: 6px;
    padding: 28px 8px 8px;
  }
  .variant-photo {
    flex-basis: 48px;
    width: 48px;
  }
  .catalog-grid.is-list {
    margin-inline: 0;
  }
  .catalog-grid.is-list .product-card {
    grid-template-columns: 42% 1fr;
  }
  .product-page { grid-template-columns: 1fr; }
  .product-media-layout {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow: hidden;
  }
  .product-variant-strip {
    margin-inline: 0;
    padding: 2px 0 10px;
  }
  .product-variant-option {
    flex: 0 0 62px;
    width: 62px;
  }
  .product-variant-option img,
  .product-variant-option > span:not(.cart-photo-badge) {
    width: 62px;
  }
  .product-gallery {
    grid-template-columns: 1fr;
    width: 100%;
    min-height: 0;
    border-radius: 0;
    padding: 0;
    border-left: 0;
    border-right: 0;
  }
  .gallery-stage,
  .gallery-slide,
  .gallery-slide img,
  .gallery-slide video {
    min-height: 0;
  }
  .gallery-stage {
    aspect-ratio: 4 / 5;
    height: auto;
    border-radius: 0;
  }
  .gallery-cart-button {
    display: grid;
    right: 18px;
    bottom: 18px;
  }
  .gallery-slide,
  .gallery-slide img,
  .gallery-slide video {
    width: 100%;
    height: 100%;
  }
  .gallery-nav {
    display: none;
  }
  .gallery-lightbox {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    padding: 58px 0 calc(14px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96);
  }
  .gallery-lightbox-nav {
    display: none !important;
  }
  .gallery-lightbox-media {
    width: min(calc(100vw - 16px), calc((100vh - 118px) * 9 / 16));
    height: min(calc(100vh - 118px), calc((100vw - 16px) * 16 / 9));
    width: min(calc(100vw - 16px), calc((100dvh - 118px) * 9 / 16));
    height: min(calc(100dvh - 118px), calc((100vw - 16px) * 16 / 9));
    max-width: calc(100vw - 16px);
    max-height: calc(100dvh - 118px);
  }
  .gallery-lightbox-close {
    top: 14px;
    right: 14px;
    width: 44px;
    height: 44px;
  }
  .gallery-lightbox-cart {
    right: 24px;
    bottom: calc(138px + env(safe-area-inset-bottom));
  }
  .gallery-lightbox-variants {
    position: relative;
    z-index: 2;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 100vw;
    overflow-x: auto;
    padding: 0 14px 2px;
    background: rgba(255, 255, 255, .96);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }
  .gallery-lightbox-variants::-webkit-scrollbar {
    display: none;
  }
  .gallery-lightbox-variants .product-variant-option {
    flex: 0 0 74px;
    width: 74px;
  }
  .gallery-lightbox-variants .product-variant-option img,
  .gallery-lightbox-variants .product-variant-option > span:not(.cart-photo-badge) {
    width: 74px;
  }
  .product-cart-panel {
    gap: 7px;
  }
  .product-cart-row {
    min-height: 42px;
    padding: 7px 8px;
  }
  .product-cart-row strong {
    font-size: 12px;
  }
  .product-cart-row span {
    font-size: 11px;
  }
  .checkout-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .checkout-form-grid {
    grid-template-columns: 1fr;
  }
  .checkout-item {
    grid-template-columns: 92px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
  }
  .checkout-item-photo {
    width: 92px;
  }
  .checkout-item-controls {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: 30px 32px 30px;
    align-self: start;
  }
  .checkout-item-controls button,
  .checkout-item-controls output {
    min-height: 34px;
  }
  .checkout-item-remove {
    grid-column: 2;
    grid-row: 2;
    justify-self: stretch;
    min-width: 0;
    min-height: 34px;
  }
  .checkout-item-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
  }
  .checkout-item-meta span {
    padding: 6px 8px;
  }
  .account-auth,
  .account-grid,
  .account-form-grid {
    grid-template-columns: 1fr;
  }
  .account-profile {
    display: grid;
  }
  .account-provider-grid {
    grid-template-columns: 1fr;
  }
  .account-card {
    padding: 14px;
  }
  .questionnaire-form {
    gap: 16px;
  }
  .questionnaire-form .account-form-grid {
    gap: 14px;
  }
  .account-card .questionnaire-full-name {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .account-card .questionnaire-full-name legend {
    margin-bottom: 0;
  }
  .account-card .questionnaire-options {
    gap: 8px;
    margin: 3px 0 6px;
  }
  .account-card .questionnaire-options legend {
    font-size: 13px;
    line-height: 1.35;
    margin-bottom: 9px;
  }
  .account-card .questionnaire-check {
    min-height: 44px;
    padding: 10px 11px;
    font-size: 13px;
  }
  .account-card .questionnaire-check--single {
    min-height: 0;
    padding: 0;
  }
  .account-list-row {
    grid-template-columns: 1fr;
  }
  .hero:not(.catalog-intro),
  .panel,
  .product-page,
  .checkout-chat,
  .checkout-page { border-radius: 0; margin-inline: -16px; }
  .admin-head { display: grid; }
  .admin-grid { grid-template-columns: 1fr; }
  .catalog-rule-row { grid-template-columns: 1fr; }
}
