:root {
  --bg: #fff;
  --ink: #0a0a0a;
  --muted: #777;
  --line: #e5e5e5;
  --line-strong: #bdbdbd;
  --soft: #f6f6f6;
  --overlay: rgba(0, 0, 0, .36);
  --shadow: 0 28px 80px rgba(0, 0, 0, .12);
  --ease: cubic-bezier(.2,.8,.2,1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  letter-spacing: -.01em;
}
body.no-scroll { overflow: hidden; }
a { color: inherit; text-decoration: none; }
a:hover { opacity: .55; }
button, input, textarea, select { font: inherit; color: inherit; min-width: 0; }
button { cursor: pointer; }
img { display: block; max-width: 100%; }
code { font-size: .92em; overflow-wrap: anywhere; }

.announcement {
  min-height: 28px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(18px, 6vw, 92px);
  border-bottom: 1px solid var(--line);
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .13em;
  color: var(--muted);
  background: #fff;
  padding: 6px 14px;
  text-align: center;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 0 22px;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
}
.header-link,
.cart-trigger,
.small-link,
.category-nav button,
.text-button,
.quick-add,
.btn {
  text-transform: uppercase;
  letter-spacing: .1em;
  font-size: 11px;
  line-height: 1.25;
}
.header-link { color: var(--muted); width: max-content; max-width: 100%; }
.brand {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  line-height: .78;
  font-weight: 900;
  letter-spacing: -.105em;
  font-size: clamp(28px, 4vw, 54px);
  text-align: center;
}
.cart-trigger {
  justify-self: end;
  display: inline-flex;
  gap: 12px;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: right;
  max-width: 100%;
}
.cart-trigger b { font-weight: 400; }

.category-nav {
  position: sticky;
  top: 76px;
  z-index: 45;
  display: flex;
  justify-content: center;
  gap: 0;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(12px);
}
.category-nav button {
  min-height: 43px;
  padding: 0 18px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  white-space: nowrap;
  color: #444;
}
.category-nav button:first-child { border-left: 1px solid var(--line); }
.category-nav button.active { color: #000; background: var(--soft); }

.store-intro {
  max-width: 880px;
  margin: 0 auto;
  padding: 32px 22px 16px;
  text-align: center;
  color: #2e2e2e;
  font-size: clamp(15px, 1.8vw, 22px);
  line-height: 1.25;
}
.store-intro p { margin: 0; }
.catalog { padding: 18px 22px 64px; }
.catalog-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 20px;
}
.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .15em;
  font-size: 10px;
  line-height: 1.3;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin: 0;
  font-size: clamp(56px, 11vw, 170px);
  line-height: .78;
  letter-spacing: -.09em;
  font-weight: 950;
  overflow-wrap: anywhere;
}
h2 {
  margin: 0 0 18px;
  font-size: clamp(32px, 5vw, 72px);
  line-height: .9;
  letter-spacing: -.07em;
  font-weight: 900;
  overflow-wrap: anywhere;
}
.catalog-tools { display: flex; align-items: end; gap: 18px; min-width: 0; }
.search-field { display: grid; gap: 7px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; min-width: min(260px, 100%); }
.search-field input,
.checkout-form input,
.checkout-form textarea,
.options select,
.admin-field input,
.admin-field textarea,
.admin-field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line-strong);
  background: #fff;
  border-radius: 0;
  outline: none;
  padding: 10px 11px;
  color: var(--ink);
  text-transform: none;
  letter-spacing: 0;
  resize: vertical;
}
.search-field input:focus,
.checkout-form input:focus,
.checkout-form textarea:focus,
.options select:focus,
.admin-field input:focus,
.admin-field textarea:focus,
.admin-field select:focus { border-color: var(--ink); }
.small-link { color: var(--muted); padding-bottom: 13px; white-space: nowrap; }
.active-filter { margin: 0 0 14px; color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 11px; line-height: 1.3; }

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 18px;
}
.product-card { min-width: 0; }
.product-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  display: grid;
  place-items: center;
  background: #f4f4f4;
  border: 1px solid #efefef;
  overflow: hidden;
  padding: 0;
}
.product-media::before,
.main-photo::before,
.cart-row img,
.thumbs button,
.admin-thumb { background: #f4f4f4; }
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  padding: 0;
  transition: transform .22s var(--ease), opacity .18s var(--ease);
}
.product-card:hover .product-media img { transform: scale(1.015); }
.photo-count {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--line);
  font-size: 9px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #555;
  line-height: 1.1;
}
.quick-add {
  width: 100%;
  min-height: 38px;
  margin-top: 8px;
  border: 1px solid var(--line-strong);
  background: #fff;
  text-align: center;
  padding: 8px 10px;
}
.quick-add:hover,
.btn-light:hover,
.text-button:hover { background: var(--soft); opacity: 1; }
.product-caption {
  display: grid;
  gap: 6px;
  padding-top: 10px;
  text-align: left;
  min-width: 0;
}
.product-caption h3 {
  margin: 0;
  min-height: 30px;
  font-size: 13px;
  line-height: 1.18;
  text-transform: uppercase;
  font-weight: 400;
  letter-spacing: .025em;
  overflow-wrap: anywhere;
}
.product-category {
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .1em;
  overflow-wrap: anywhere;
}
.product-colors { min-width: 0; }
.color-switcher {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
}
.color-switcher button {
  min-height: 26px;
  max-width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  color: #555;
  padding: 6px 8px;
  font-size: 9px;
  line-height: 1.15;
  text-transform: uppercase;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}
.color-switcher button.active {
  border-color: var(--ink);
  color: #000;
  background: var(--soft);
}
.product-price { font-size: 12px; line-height: 1.35; overflow-wrap: anywhere; }
.old-price { color: var(--muted); text-decoration: line-through; margin-left: 7px; }

.info-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.info-row article { padding: 34px 22px; min-height: 250px; min-width: 0; }
.info-row article + article { border-left: 1px solid var(--line); }
.info-row p { max-width: 560px; color: #333; line-height: 1.45; overflow-wrap: anywhere; }
.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 22px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .12em;
  line-height: 1.35;
}
.site-footer div { display: flex; gap: 18px; flex-wrap: wrap; }

.btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--ink);
  padding: 10px 16px;
  background: #fff;
  color: #000;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
}
.btn-dark { background: #000; color: #fff; }
.btn-light { background: #fff; color: #000; }
.btn.stretch { width: 100%; }
.btn:active, .quick-add:active, .cart-trigger:active { transform: translateY(1px); }
.text-button { border: 0; background: transparent; color: var(--muted); text-decoration: underline; padding: 10px; text-align: left; overflow-wrap: anywhere; }
.icon-button {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  background: #fff;
  font-size: 24px;
  line-height: 1;
  flex: 0 0 auto;
}
.muted { color: var(--muted); }
.small { font-size: 12px; line-height: 1.45; }

.cart-drawer,
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}
.cart-drawer.open,
.product-modal.open { pointer-events: auto; }
.layer-close {
  position: absolute;
  inset: 0;
  border: 0;
  background: var(--overlay);
  opacity: 0;
  transition: opacity .2s var(--ease);
}
.cart-drawer.open .layer-close,
.product-modal.open .layer-close { opacity: 1; }
.cart-panel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(100%, 490px);
  height: 100%;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: var(--shadow);
  transform: translateX(102%);
  transition: transform .26s var(--ease);
  display: flex;
  flex-direction: column;
}
.cart-drawer.open .cart-panel { transform: translateX(0); }
.drawer-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 18px;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.drawer-head h2 { font-size: clamp(42px, 9vw, 58px); margin: 0; }
.checkout-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.step {
  min-height: 42px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 10px;
  line-height: 1.2;
  padding: 8px 6px;
  text-align: center;
  white-space: normal;
}
.step:last-child { border-right: 0; }
.step.active { color: #000; background: var(--soft); }
.checkout-panel { display: none; min-height: 0; flex: 1; overflow: auto; }
.checkout-panel.active { display: flex; flex-direction: column; }
.cart-items { padding: 16px; display: grid; gap: 12px; }
.cart-empty { color: var(--muted); padding: 20px 0; }
.cart-row {
  display: grid;
  grid-template-columns: 78px minmax(0, 1fr) minmax(88px, auto);
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.cart-row img {
  width: 78px;
  height: 98px;
  object-fit: contain;
  border: 1px solid var(--line);
}
.cart-row h3 { margin: 0 0 4px; font-size: 12px; line-height: 1.2; text-transform: uppercase; font-weight: 400; overflow-wrap: anywhere; }
.cart-row p { margin: 0 0 8px; color: var(--muted); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.cart-row-side { text-align: right; overflow-wrap: anywhere; }
.qty { display: inline-flex; border: 1px solid var(--line-strong); }
.qty button { width: 28px; height: 28px; border: 0; background: #fff; }
.qty span { min-width: 28px; display: grid; place-items: center; font-size: 12px; }
.remove-item { border: 0; background: transparent; padding: 8px 0 0; color: var(--muted); text-decoration: underline; font-size: 11px; }
.cart-footer { margin-top: auto; padding: 16px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.total-row { display: flex; justify-content: space-between; align-items: center; padding-bottom: 6px; gap: 12px; }
.total-row span { color: var(--muted); text-transform: uppercase; letter-spacing: .12em; font-size: 10px; }
.checkout-form,
.payment-box { padding: 18px; display: grid; gap: 12px; }
.checkout-form label,
.options label,
.option-group,
.admin-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-size: 10px;
  line-height: 1.3;
  min-width: 0;
}
.form-actions { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding-top: 8px; }
.payment-box h3 { margin: 0; font-size: 34px; letter-spacing: -.055em; overflow-wrap: anywhere; }

.product-dialog {
  position: absolute;
  inset: 18px;
  margin: auto;
  width: min(1220px, calc(100% - 36px));
  height: min(820px, calc(100% - 36px));
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(320px, .82fr);
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .2s var(--ease), transform .2s var(--ease);
  overflow: hidden;
}
.product-modal.open .product-dialog { opacity: 1; transform: translateY(0); }
.dialog-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.product-gallery {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  border-right: 1px solid var(--line);
  background: #f4f4f4;
}
.main-photo {
  margin: 0;
  min-width: 0;
  min-height: 0;
  display: grid;
  place-items: center;
  background: #f4f4f4;
  padding: 22px;
}
.main-photo img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
  background: transparent;
}
.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 42px;
  height: 58px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.78);
  font-size: 34px;
  line-height: 1;
}
.gallery-arrow.prev { left: 12px; }
.gallery-arrow.next { right: 12px; }
.gallery-arrow:disabled { opacity: .22; cursor: default; }
.thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.thumbs button {
  flex: 0 0 78px;
  width: 78px;
  height: 98px;
  padding: 0;
  border: 1px solid var(--line);
  opacity: .46;
}
.thumbs button.active { opacity: 1; border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: contain; background: #fff; }
.product-details { padding: 32px 26px; overflow: auto; display: flex; flex-direction: column; min-width: 0; }
.product-details h2 { font-size: clamp(36px, 5vw, 74px); margin-bottom: 16px; line-height: .92; overflow-wrap: anywhere; }
.modal-price { font-size: 18px; margin-bottom: 18px; line-height: 1.35; }
.description { color: #333; line-height: 1.55; overflow-wrap: anywhere; }
.description p { margin: 0 0 10px; }
.description p:last-child { margin-bottom: 0; }
.product-description-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.product-description-block .eyebrow { margin-bottom: 10px; }
.options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0; }
.modal-colors { align-self: start; }
#imageSourceNote { margin-top: auto; padding-top: 18px; }

.admin-body { background: #fff; }
.admin-login { min-height: 100vh; display: grid; place-items: center; padding: 22px; }
.login-card { width: min(100%, 430px); border: 1px solid var(--line); padding: 26px; display: grid; gap: 12px; }
.login-card h1 { font-size: clamp(44px, 10vw, 62px); }
.admin-layout { min-height: 100vh; display: grid; grid-template-columns: 270px minmax(0, 1fr); }
.admin-sidebar { border-right: 1px solid var(--line); padding: 22px; display: flex; flex-direction: column; gap: 24px; position: sticky; top: 0; height: 100vh; min-width: 0; }
.admin-sidebar nav { display: grid; gap: 8px; }
.admin-sidebar nav a,
.admin-sidebar nav button { text-align: left; border: 1px solid var(--line); background: #fff; padding: 12px; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; line-height: 1.25; overflow-wrap: anywhere; }
.admin-main { padding: 22px; display: grid; gap: 22px; min-width: 0; }
.admin-section { border: 1px solid var(--line); padding: 20px; min-width: 0; overflow-x: auto; }
.admin-section h2 { font-size: clamp(42px, 7vw, 68px); }
.admin-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.admin-field.full,
.admin-actions.full { grid-column: 1 / -1; }
.admin-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 14px 0; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 760px; }
.admin-table th,
.admin-table td { border-bottom: 1px solid var(--line); padding: 10px; text-align: left; vertical-align: top; overflow-wrap: anywhere; }
.admin-table th { color: var(--muted); text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.status-pill { display: inline-flex; padding: 4px 7px; border: 1px solid var(--line-strong); text-transform: uppercase; letter-spacing: .1em; font-size: 9px; line-height: 1.2; }
.admin-thumb { width: 54px; height: 68px; object-fit: contain; border: 1px solid var(--line); margin-bottom: 5px; }
.hidden { display: none !important; }

.status-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}
.status-card {
  width: min(100%, 760px);
  border: 1px solid var(--line);
  padding: clamp(22px, 6vw, 48px);
  display: grid;
  gap: 14px;
}
.status-card h1 { font-size: clamp(48px, 12vw, 116px); }
.status-card p { color: #333; line-height: 1.45; }

@media (min-width: 1440px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .product-dialog { grid-template-columns: 1fr; overflow: auto; }
  .product-gallery { min-height: 60vh; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .announcement { justify-content: flex-start; overflow: hidden; white-space: nowrap; }
  .site-header { min-height: 68px; padding: 0 14px; grid-template-columns: minmax(0, 1fr) auto; }
  .brand { justify-self: start; align-items: flex-start; font-size: 32px; }
  .header-link { display: none; }
  .cart-trigger { font-size: 10px; gap: 8px; }
  .cart-trigger span:first-child { display: none; }
  .category-nav { top: 68px; justify-content: flex-start; }
  .store-intro { text-align: left; padding: 24px 14px 12px; }
  .catalog { padding: 14px 14px 48px; }
  .catalog-head { align-items: stretch; flex-direction: column; }
  .catalog-tools { align-items: stretch; justify-content: space-between; flex-wrap: wrap; }
  .search-field { min-width: 0; flex: 1 1 220px; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 10px; }
  .product-caption h3 { min-height: 0; }
  .info-row { grid-template-columns: 1fr; }
  .info-row article + article { border-left: 0; border-top: 1px solid var(--line); }
  .site-footer { flex-direction: column; }
  .cart-row { grid-template-columns: 70px minmax(0, 1fr); }
  .cart-row-side { grid-column: 2; text-align: left; }
  .cart-row img { width: 70px; height: 90px; }
  .product-dialog { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .product-gallery { min-height: 440px; }
  .main-photo { padding: 12px; }
  .gallery-arrow { width: 34px; height: 48px; font-size: 28px; }
  .product-details { padding: 22px 16px; }
  .product-description-block { margin-top: 18px; padding-top: 16px; }
  .options { grid-template-columns: 1fr; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-sidebar { position: relative; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .admin-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .product-grid { grid-template-columns: 1fr; }
  .product-media { aspect-ratio: 4 / 5.05; }
  h1 { font-size: 58px; letter-spacing: -.07em; }
  h2 { font-size: 42px; }
  .category-nav button { padding: 0 14px; }
  .checkout-steps { grid-template-columns: 1fr; }
  .step { border-right: 0; border-bottom: 1px solid var(--line); }
  .step:last-child { border-bottom: 0; }
}

/* v5 — более чистый магазин, без лишнего текста и без кривого открытия фото */
.site-header { top: 0; }
.category-nav { top: 76px; }
.catalog { padding-top: 28px; }
.catalog-head { margin-bottom: 16px; }
.active-filter { margin-bottom: 22px; }
.product-card { display: flex; flex-direction: column; min-width: 0; }
.product-media { aspect-ratio: 4 / 5.15; padding: 12px; }
.product-media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }
.photo-count { display: none !important; }
.product-caption { grid-template-columns: 1fr; gap: 7px; }
.product-caption h3 { min-height: auto; max-width: 100%; }
.product-category { white-space: normal; }
.color-switcher { gap: 5px; }
.color-switcher button { max-width: 100%; word-break: normal; hyphens: auto; }
.product-price { padding-top: 2px; }

.product-dialog {
  width: min(1120px, calc(100% - 32px));
  height: min(760px, calc(100% - 32px));
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
}
.product-gallery {
  grid-template-rows: minmax(0, 1fr) auto;
  overflow: hidden;
}
.main-photo {
  height: 100%;
  min-height: 0;
  padding: clamp(12px, 2vw, 24px);
  overflow: hidden;
}
.main-photo img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  object-position: center;
}
.product-details { padding: 28px 24px; gap: 0; }
.product-details h2 {
  font-size: clamp(25px, 3vw, 42px);
  line-height: .96;
  letter-spacing: -.045em;
  margin-bottom: 14px;
  word-break: normal;
  overflow-wrap: anywhere;
}
.modal-price { font-size: 15px; margin-bottom: 18px; }
.options { grid-template-columns: 1fr; gap: 14px; margin: 8px 0 16px; }
.option-group { gap: 8px; }
#imageSourceNote, .description.hidden { display: none !important; }
.thumbs { min-height: 112px; }
.thumbs button { flex-basis: 74px; width: 74px; height: 92px; }
.gallery-arrow { background: rgba(255,255,255,.94); }

@media (max-width: 1060px) {
  .product-dialog { grid-template-columns: 1fr; overflow: auto; }
  .product-gallery { min-height: min(68vh, 620px); }
}
@media (max-width: 760px) {
  .category-nav { top: 68px; }
  .product-dialog { inset: 8px; width: calc(100% - 16px); height: calc(100% - 16px); }
  .product-gallery { min-height: 58vh; }
  .product-details h2 { font-size: clamp(26px, 9vw, 40px); }
}
@media (max-width: 460px) {
  .catalog-head h1 { font-size: 52px; }
  .product-media { aspect-ratio: 4 / 5; }
}


/* v6 — исправление галереи: фото не режутся, цвета не подмешиваются */
.product-modal { overflow: hidden; }
.product-dialog {
  inset: 14px !important;
  width: min(1180px, calc(100vw - 28px)) !important;
  height: min(780px, calc(100dvh - 28px)) !important;
  max-height: calc(100dvh - 28px) !important;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px) !important;
  align-items: stretch;
}
.product-gallery {
  min-height: 0 !important;
  height: 100% !important;
  display: grid !important;
  grid-template-rows: minmax(0, 1fr) auto !important;
  overflow: hidden !important;
  background: #fff;
}
.main-photo {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: hidden !important;
  padding: 18px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.main-photo img {
  display: block !important;
  width: auto !important;
  height: auto !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  margin: auto !important;
}
.thumbs {
  flex: 0 0 auto !important;
  min-height: 92px !important;
  max-height: 112px !important;
  padding: 10px !important;
}
.thumbs button {
  flex: 0 0 70px !important;
  width: 70px !important;
  height: 88px !important;
}
.thumbs img {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
}
.product-media img { transform: none !important; }
.product-card:hover .product-media img { transform: none !important; }
.color-switcher button:hover { border-color: #0a0a0a; background: #f6f6f6; }
.product-details { min-height: 0 !important; }
.product-details h2 { max-width: 100%; }

@media (max-width: 1060px) {
  .product-dialog {
    display: flex !important;
    flex-direction: column !important;
    overflow: auto !important;
  }
  .product-gallery {
    height: min(68dvh, 620px) !important;
    min-height: 420px !important;
    flex: 0 0 auto !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .product-details { flex: 0 0 auto !important; }
}
@media (max-width: 760px) {
  .product-dialog {
    inset: 6px !important;
    width: calc(100vw - 12px) !important;
    height: calc(100dvh - 12px) !important;
    max-height: calc(100dvh - 12px) !important;
  }
  .product-gallery {
    height: min(62dvh, 520px) !important;
    min-height: 360px !important;
  }
  .main-photo { padding: 10px !important; }
  .thumbs { min-height: 80px !important; max-height: 92px !important; }
  .thumbs button { flex-basis: 58px !important; width: 58px !important; height: 72px !important; }
  .gallery-arrow { width: 32px !important; height: 44px !important; }
}

/* v7 — mobile-first webstore, шапка, футер, документы */
:root { --safe-bottom: env(safe-area-inset-bottom, 0px); }
html { scroll-padding-top: 122px; }
body { padding-bottom: 0; }
.topline {
  min-height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 5vw, 70px);
  padding: 7px 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: #6f6f6f;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-align: center;
}
.site-header-v7 {
  min-height: 84px;
  padding: 0 clamp(14px, 3.2vw, 34px);
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}
.header-nav, .header-actions {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}
.header-actions { justify-content: flex-end; }
.brand-v7 {
  font-size: clamp(31px, 4.4vw, 62px);
  letter-spacing: -.112em;
}
.brand-v7 span:first-child { transform: translateX(-1px); }
.small-link { color: var(--muted); white-space: nowrap; }
.category-nav { top: 84px; scrollbar-width: none; }
.category-nav::-webkit-scrollbar { display: none; }
.category-nav button {
  min-height: 46px;
  padding: 0 20px;
  font-size: 10px;
}
.brand-profile {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .55fr);
  gap: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.profile-logo {
  min-height: clamp(220px, 34vw, 420px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(26px, 5vw, 64px) clamp(16px, 5vw, 72px);
  border-right: 1px solid var(--line);
}
.profile-logo h1 {
  margin: 0;
  font-size: clamp(64px, 12vw, 178px);
  line-height: .72;
  letter-spacing: -.118em;
  font-weight: 900;
}
.profile-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 18px;
  padding: clamp(20px, 4vw, 42px);
  min-width: 0;
}
.profile-card p {
  margin: 0;
  max-width: 420px;
  color: #282828;
  font-size: 15px;
  line-height: 1.45;
}
.profile-meta, .profile-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.profile-meta span {
  display: inline-flex;
  min-height: 27px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 6px 9px;
  color: #555;
  font-size: 10px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.profile-actions .btn { min-height: 40px; }
.catalog-head-v7 h2 {
  margin: 0;
  font-size: clamp(38px, 6vw, 88px);
  line-height: .9;
  letter-spacing: -.065em;
}
.catalog { padding: clamp(22px, 4vw, 42px) clamp(12px, 3vw, 34px) 56px; }
.active-filter {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  border: 1px solid var(--line);
  padding: 7px 10px;
  margin-bottom: 20px;
  color: #555;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.product-grid { gap: clamp(22px, 3vw, 42px) clamp(10px, 2vw, 22px); }
.product-media {
  aspect-ratio: 4 / 5.25 !important;
  padding: 10px !important;
  border-color: #eee;
}
.product-caption h3 {
  font-size: clamp(11px, 1.1vw, 13px);
  min-height: 0 !important;
  letter-spacing: .03em;
}
.product-category { font-size: 9px; }
.quick-add { min-height: 36px; margin-top: 7px; }
.color-switcher button {
  min-height: 24px;
  padding: 5px 7px;
  font-size: 8.8px;
}
.info-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.info-panels article {
  padding: clamp(24px, 4vw, 48px);
  min-width: 0;
}
.info-panels article + article { border-left: 1px solid var(--line); }
.info-panels h2 {
  margin: 0 0 16px;
  font-size: clamp(36px, 5vw, 72px);
  line-height: .9;
  letter-spacing: -.055em;
}
.info-panels p {
  margin: 0 0 12px;
  max-width: 640px;
  color: #333;
  line-height: 1.48;
}
.footer-v7 {
  display: block;
  padding: 0;
  color: #0a0a0a;
  text-transform: none;
  letter-spacing: 0;
  font-size: 14px;
  line-height: 1.4;
  border-top: 1px solid var(--line);
}
.footer-brand {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 420px);
  gap: 24px;
  align-items: end;
  padding: clamp(28px, 5vw, 56px) clamp(16px, 4vw, 44px);
  border-bottom: 1px solid var(--line);
}
.brand-footer {
  display: inline-flex;
  align-items: flex-start;
  font-size: clamp(54px, 9vw, 138px);
  justify-self: start;
}
.footer-brand p {
  margin: 0;
  color: #444;
  max-width: 420px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border-bottom: 1px solid var(--line);
}
.footer-grid section {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px clamp(14px, 3vw, 30px);
  border-right: 1px solid var(--line);
}
.footer-grid section:last-child { border-right: 0; }
.footer-grid h3 {
  margin: 0 0 10px;
  color: #777;
  font-size: 10px;
  line-height: 1.25;
  letter-spacing: .13em;
  text-transform: uppercase;
  font-weight: 400;
}
.footer-grid a, .footer-grid span {
  display: block;
  overflow-wrap: anywhere;
  color: #111;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 18px clamp(16px, 4vw, 44px);
  color: #777;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.partners-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.partners-block img {
  width: min(100%, 390px);
  height: auto;
}
.mobile-tabbar { display: none; }
.policy-check {
  display: flex !important;
  grid-template-columns: none !important;
  flex-direction: row;
  align-items: flex-start;
  gap: 9px !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 12px !important;
  color: #333 !important;
}
.policy-check input { margin-top: 2px; flex: 0 0 auto; }
.policy-check a { text-decoration: underline; }
.product-dialog {
  border-radius: 0;
  width: min(1160px, calc(100vw - 24px)) !important;
  height: min(760px, calc(100dvh - 24px)) !important;
  max-height: calc(100dvh - 24px) !important;
}
.product-gallery { background: #fff; }
.main-photo { background: #fff; }
.main-photo img { background: #fff; }
.product-details h2 { font-size: clamp(25px, 3.8vw, 52px); }

.legal-page { background: #fff; }
.legal-main {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 6vw, 70px) clamp(16px, 4vw, 34px) 80px;
}
.legal-hero {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 28px;
}
.legal-hero h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 104px);
  line-height: .88;
  letter-spacing: -.07em;
}
.legal-note {
  margin-top: 18px;
  color: #555;
  max-width: 760px;
  line-height: 1.5;
}
.legal-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.legal-section h2 {
  margin: 0 0 12px;
  font-size: clamp(24px, 4vw, 46px);
  line-height: 1;
  letter-spacing: -.045em;
}
.legal-section p, .legal-section li {
  color: #222;
  line-height: 1.55;
}
.legal-section ul, .legal-section ol { padding-left: 22px; }
.requisites-box {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 8px 18px;
  padding: 18px;
  border: 1px solid var(--line);
  background: #fafafa;
}
.requisites-box dt { color: #777; text-transform: uppercase; letter-spacing: .1em; font-size: 10px; }
.requisites-box dd { margin: 0; overflow-wrap: anywhere; }
.legal-footer-link { margin-top: 28px; display: inline-flex; }

@media (max-width: 980px) {
  html { scroll-padding-top: 114px; }
  .topline { justify-content: flex-start; overflow-x: auto; white-space: nowrap; }
  .site-header-v7 { min-height: 72px; grid-template-columns: auto 1fr auto; }
  .header-nav { gap: 12px; }
  .header-nav .header-link:not(:first-child), .desktop-only { display: none !important; }
  .brand-v7 { justify-self: center; align-items: center; font-size: clamp(30px, 8vw, 42px); }
  .category-nav { top: 72px; justify-content: flex-start; }
  .brand-profile { grid-template-columns: 1fr; }
  .profile-logo { border-right: 0; border-bottom: 1px solid var(--line); min-height: 220px; }
  .profile-card { padding: 22px 16px; }
  .footer-brand { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid section:nth-child(2n) { border-right: 0; }
  .footer-grid section:nth-child(n+3) { border-top: 1px solid var(--line); }
  .info-panels { grid-template-columns: 1fr; }
  .info-panels article + article { border-left: 0; border-top: 1px solid var(--line); }
}

@media (max-width: 760px) {
  body { padding-bottom: calc(58px + var(--safe-bottom)); }
  .topline {
    min-height: 28px;
    font-size: 9px;
    gap: 26px;
    padding: 7px 10px;
  }
  .site-header-v7 {
    min-height: 66px;
    padding: 0 10px;
    gap: 8px;
  }
  .header-nav .header-link:first-child {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    color: #111;
  }
  .brand-v7 { font-size: clamp(28px, 8.8vw, 38px); line-height: .78; }
  .cart-trigger {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    gap: 0;
    font-size: 9px;
  }
  .cart-trigger span:first-child { display: none; }
  .category-nav {
    top: 66px;
    border-top: 0;
  }
  .category-nav button {
    min-height: 40px;
    padding: 0 14px;
    font-size: 9px;
  }
  .brand-profile { display: none; }
  .catalog { padding: 16px 10px 42px; }
  .catalog-head-v7 {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 16px;
  }
  .catalog-head-v7 h2 { font-size: 42px; letter-spacing: -.06em; }
  .catalog-tools { width: 100%; }
  .search-field { flex: 1 1 auto; width: 100%; }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 24px 9px;
  }
  .product-media {
    aspect-ratio: 4 / 5.45 !important;
    padding: 7px !important;
  }
  .quick-add {
    min-height: 34px;
    padding: 7px 6px;
    font-size: 9px;
  }
  .product-caption { gap: 5px; padding-top: 8px; }
  .product-caption h3 {
    font-size: 10.5px;
    line-height: 1.22;
    letter-spacing: .02em;
  }
  .product-category { font-size: 8px; }
  .product-price { font-size: 11px; }
  .color-switcher { gap: 4px; }
  .color-switcher button {
    min-height: 22px;
    padding: 4px 5px;
    font-size: 7.5px;
    letter-spacing: .06em;
  }
  .product-dialog {
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    display: flex !important;
    flex-direction: column !important;
    border: 0;
    overflow: auto !important;
  }
  .dialog-close {
    top: calc(8px + env(safe-area-inset-top, 0px));
    right: 8px;
    background: rgba(255,255,255,.94);
  }
  .product-gallery {
    height: auto !important;
    min-height: 0 !important;
    flex: 0 0 auto !important;
    display: block !important;
    border-right: 0 !important;
    border-bottom: 1px solid var(--line) !important;
  }
  .main-photo {
    width: 100% !important;
    height: min(61dvh, 560px) !important;
    min-height: 360px !important;
    padding: 12px 10px !important;
  }
  .main-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
  }
  .thumbs {
    min-height: 76px !important;
    max-height: 88px !important;
    padding: 8px 10px !important;
  }
  .thumbs button {
    flex-basis: 54px !important;
    width: 54px !important;
    height: 68px !important;
  }
  .gallery-arrow {
    top: calc(30dvh + 14px) !important;
    width: 32px !important;
    height: 44px !important;
    font-size: 25px !important;
  }
  .gallery-arrow.prev { left: 8px !important; }
  .gallery-arrow.next { right: 8px !important; }
  .product-details {
    padding: 18px 14px 28px !important;
    overflow: visible !important;
  }
  .product-details h2 {
    font-size: clamp(26px, 10vw, 40px) !important;
    line-height: .96;
    margin-bottom: 12px;
  }
  .options { grid-template-columns: 1fr !important; }
  .cart-panel { width: 100%; border-left: 0; }
  .drawer-head { padding: 16px 14px; }
  .drawer-head h2 { font-size: 46px; }
  .checkout-form, .payment-box { padding: 14px; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid section { border-right: 0; border-top: 1px solid var(--line); }
  .footer-grid section:first-child { border-top: 0; }
  .footer-bottom { align-items: flex-start; flex-direction: column; padding-bottom: 26px; }
  .partners-block { align-items: flex-start; flex-direction: column; }
  .partners-block img { width: 100%; max-width: 360px; }
  .mobile-tabbar {
    position: fixed;
    left: 8px;
    right: 8px;
    bottom: calc(8px + var(--safe-bottom));
    z-index: 70;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border: 1px solid var(--line-strong);
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(14px);
    box-shadow: 0 12px 30px rgba(0,0,0,.08);
  }
  .mobile-tabbar a, .mobile-tabbar button {
    min-height: 46px;
    border: 0;
    border-right: 1px solid var(--line);
    background: transparent;
    display: grid;
    place-items: center;
    color: #111;
    font-size: 10px;
    line-height: 1.2;
    letter-spacing: .11em;
    text-transform: uppercase;
  }
  .mobile-tabbar button { border-right: 0; }
  .requisites-box { grid-template-columns: 1fr; }
}

@media (max-width: 380px) {
  .brand-v7 { font-size: 26px; }
  .header-nav .header-link:first-child, .cart-trigger { padding: 0 8px; }
  .product-grid { gap: 22px 8px; }
  .product-caption h3 { font-size: 10px; }
  .main-photo { height: 58dvh !important; min-height: 330px !important; }
}

/* footer specificity reset */
.footer-v7 .footer-brand { display: grid; }
.footer-v7 .footer-grid { display: grid; gap: 0; flex-wrap: initial; }
.footer-v7 .footer-grid section { display: flex; }
.footer-v7 .footer-bottom { display: flex; }
.footer-v7 .partners-block { display: flex; }
@media (max-width: 980px) { .footer-v7 .footer-brand { display: grid; } .footer-v7 .footer-grid { display: grid; } }
@media (max-width: 760px) { .footer-v7 .footer-bottom, .footer-v7 .partners-block { display: flex; } }

/* v10 — закрытый Telegram-бот + оформление заказа как на текущем сайте + динамическое поле службы доставки */
.total-row-final {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 2px;
}
.promo-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}
.promo-row .btn { min-height: 42px; padding-left: 14px; padding-right: 14px; }
.promo-note { margin: -4px 0 2px; }
.delivery-picker {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
}
.delivery-picker-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 12px;
  min-width: 0;
}
.delivery-picker-head .eyebrow { margin: 0; }
.delivery-picker-head strong {
  font-size: 11px;
  line-height: 1.3;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: .08em;
  overflow-wrap: anywhere;
}
.delivery-methods {
  display: grid;
  gap: 8px;
}
.delivery-card {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: left;
}
.delivery-card.active {
  border-color: #000;
  box-shadow: inset 0 0 0 1px #000;
}
.delivery-card span {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.delivery-card strong {
  font-size: 12px;
  line-height: 1.25;
  white-space: nowrap;
}
.delivery-card small {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
  letter-spacing: 0;
  text-transform: none;
}
.checkout-summary {
  display: grid;
  gap: 0;
  border: 1px solid var(--line);
  background: #fafafa;
}
.checkout-summary div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  line-height: 1.3;
}
.checkout-summary div:last-child { border-bottom: 0; }
.checkout-summary span { color: var(--muted); }
.checkout-summary .summary-total {
  background: #fff;
  font-weight: 700;
}
.checkout-form label input,
.checkout-form label textarea {
  margin-top: 2px;
}
@media (max-width: 760px) {
  .checkout-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { font-size: 9px; padding: 7px 3px; }
  .promo-row { grid-template-columns: 1fr; }
  .promo-row .btn { width: 100%; }
  .delivery-card { padding: 11px 10px; }
  .delivery-card span { font-size: 10px; }
  .delivery-card strong { font-size: 11px; }
  .delivery-picker { padding: 10px; }
}

.field-hint {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
  letter-spacing: .04em;
  text-transform: none;
}

/* v12 — calmer premium minimalism */
:root {
  --bg: #ffffff;
  --ink: #080808;
  --muted: #8a8a8a;
  --line: #ececec;
  --line-strong: #cfcfcf;
  --soft: #fafafa;
  --soft-2: #f4f4f4;
  --shadow: 0 20px 70px rgba(0, 0, 0, .10);
}
body {
  font-family: Inter, Arial, Helvetica, sans-serif;
  letter-spacing: 0;
  background: #fff;
  color: #080808;
}
a:hover, button:hover { opacity: 1; }
.topline {
  min-height: 28px;
  gap: clamp(18px, 7vw, 96px);
  font-size: 9px;
  letter-spacing: .18em;
  color: #8d8d8d;
  border-color: #eeeeee;
}
.site-header-v7 {
  min-height: 78px;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid #eeeeee;
}
.header-nav, .header-actions { gap: clamp(12px, 2vw, 24px); }
.header-link,
.small-link,
.cart-trigger,
.category-nav button,
.quick-add,
.btn,
.step {
  font-size: 9.5px;
  letter-spacing: .16em;
  font-weight: 400;
}
.header-link, .small-link { color: #5f5f5f; }
.header-link:hover, .small-link:hover { color: #000; opacity: 1; }
.brand-v7 {
  font-size: clamp(30px, 4.1vw, 54px);
  letter-spacing: -.105em;
  line-height: .76;
}
.cart-trigger {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 999px;
}
.cart-trigger:hover { border-color: #dfdfdf; background: #fafafa; }
.category-nav {
  top: 78px;
  justify-content: flex-start;
  padding-inline: clamp(10px, 3vw, 34px);
  border-bottom: 1px solid #eeeeee;
  background: rgba(255,255,255,.96);
}
.category-nav button {
  min-height: 42px;
  border: 0 !important;
  padding: 0 clamp(12px, 2vw, 22px);
  color: #8a8a8a;
  background: transparent;
}
.category-nav button.active,
.category-nav button:hover {
  color: #000;
  background: transparent;
}
.category-nav button.active::after {
  content: '';
  display: block;
  height: 1px;
  margin-top: 7px;
  background: #000;
}
.brand-profile {
  min-height: clamp(260px, 35vw, 500px);
  grid-template-columns: minmax(0, 1fr) minmax(270px, 420px);
  border-bottom: 1px solid #eeeeee;
}
.profile-logo {
  min-height: 0;
  justify-content: flex-end;
  padding: clamp(36px, 7vw, 86px) clamp(14px, 5vw, 70px);
  border-right: 0;
}
.profile-logo h1 {
  font-size: clamp(70px, 13.5vw, 196px);
  letter-spacing: -.118em;
  line-height: .70;
}
.profile-card {
  justify-content: flex-end;
  padding: clamp(24px, 4vw, 48px) clamp(16px, 4vw, 38px);
  border-left: 1px solid #eeeeee;
}
.profile-card p {
  max-width: 360px;
  color: #272727;
  font-size: 14px;
  line-height: 1.55;
}
.eyebrow {
  margin-bottom: 9px;
  color: #969696;
  font-size: 9px;
  letter-spacing: .18em;
  font-weight: 400;
}
.profile-meta span {
  min-height: 25px;
  padding: 6px 8px;
  border-color: #e8e8e8;
  border-radius: 999px;
  background: #fafafa;
  color: #777;
  font-size: 9px;
  letter-spacing: .15em;
}
.btn {
  min-height: 42px;
  border-radius: 999px;
  padding: 11px 18px;
  transition: background .18s var(--ease), color .18s var(--ease), border-color .18s var(--ease), transform .18s var(--ease);
}
.btn-dark { border-color: #000; background: #000; color: #fff; }
.btn-light { border-color: #dcdcdc; background: #fff; color: #111; }
.btn-dark:hover { background: #222; border-color: #222; }
.btn-light:hover { border-color: #111; background: #fff; }
.catalog {
  padding: clamp(26px, 4.2vw, 54px) clamp(10px, 3vw, 34px) 70px;
}
.catalog-head-v7 {
  margin-bottom: 18px;
  padding-bottom: 18px;
  border-bottom-color: #eeeeee;
}
.catalog-head-v7 h2 {
  font-size: clamp(34px, 5.2vw, 74px);
  letter-spacing: -.055em;
  line-height: .92;
  font-weight: 700;
}
.search-field { gap: 8px; font-size: 9px; letter-spacing: .16em; color: #8a8a8a; }
.search-field input,
.checkout-form input,
.checkout-form textarea,
.options select,
.admin-field input,
.admin-field textarea,
.admin-field select {
  min-height: 44px;
  border: 1px solid #e1e1e1;
  border-radius: 0;
  background: #fff;
  padding: 12px 13px;
  font-size: 13px;
}
.search-field input::placeholder,
.checkout-form input::placeholder,
.checkout-form textarea::placeholder { color: #b5b5b5; }
.active-filter {
  border: 0;
  padding: 0;
  min-height: 0;
  margin-bottom: 20px;
  color: #8a8a8a;
  font-size: 9px;
  letter-spacing: .18em;
}
.product-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(30px, 4vw, 58px) clamp(10px, 2vw, 22px);
}
.product-card { position: relative; }
.product-media {
  aspect-ratio: 4 / 5.35 !important;
  border: 0;
  background: #fbfbfb;
  padding: 13px !important;
}
.product-media::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(0,0,0,.045);
  pointer-events: none;
}
.product-media img { transition: opacity .2s var(--ease); }
.product-media:hover img { opacity: .92; }
.quick-add {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: calc(100% - 46px);
  width: auto;
  min-height: 34px;
  margin: 0;
  border: 1px solid rgba(0,0,0,.14);
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(10px);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity .18s var(--ease), transform .18s var(--ease), border-color .18s var(--ease);
}
.product-card:hover .quick-add { opacity: 1; transform: translateY(0); }
.quick-add:hover { border-color: #000; background: #fff; }
.product-caption {
  gap: 6px;
  padding-top: 12px;
}
.product-caption h3 {
  font-size: 12px;
  line-height: 1.25;
  letter-spacing: .04em;
  font-weight: 400;
}
.product-category {
  order: -1;
  color: #9a9a9a;
  font-size: 8.5px;
  letter-spacing: .18em;
}
.product-price {
  font-size: 12px;
  letter-spacing: .02em;
}
.color-switcher { gap: 5px; padding-top: 1px; }
.color-switcher button {
  min-height: 22px;
  border-radius: 999px;
  border-color: #e6e6e6;
  padding: 5px 8px;
  color: #777;
  background: #fff;
  font-size: 8px;
  letter-spacing: .12em;
}
.color-switcher button.active,
.color-switcher button:hover {
  border-color: #111;
  background: #fff;
  color: #111;
}
.info-panels {
  border-color: #eeeeee;
  background: #fff;
}
.info-panels article { padding: clamp(26px, 4.6vw, 56px); }
.info-panels article + article { border-left-color: #eeeeee; }
.info-panels h2 {
  font-size: clamp(30px, 4vw, 54px);
  font-weight: 700;
  letter-spacing: -.045em;
}
.info-panels p {
  max-width: 520px;
  color: #333;
  font-size: 14px;
  line-height: 1.6;
}
.footer-v7 { border-top-color: #eeeeee; }
.footer-brand {
  align-items: end;
  border-bottom-color: #eeeeee;
  padding: clamp(34px, 6vw, 70px) clamp(16px, 4vw, 44px);
}
.brand-footer { font-size: clamp(52px, 8vw, 122px); }
.footer-brand p { color: #555; font-size: 13px; line-height: 1.5; }
.footer-grid { border-bottom-color: #eeeeee; }
.footer-grid section { border-right-color: #eeeeee; padding-block: 26px; }
.footer-grid h3 { font-size: 9px; letter-spacing: .18em; color: #969696; }
.footer-grid a, .footer-grid span {
  font-size: 13px;
  line-height: 1.45;
  color: #222;
}
.footer-bottom { color: #969696; font-size: 9px; letter-spacing: .16em; }
.cart-panel { width: min(100%, 460px); }
.drawer-head { padding: 18px; }
.drawer-head h2 { font-size: clamp(32px, 7vw, 48px); font-weight: 700; letter-spacing: -.045em; }
.checkout-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.step { min-height: 38px; }
.step.active { background: #fafafa; }
.cart-row { grid-template-columns: 72px minmax(0, 1fr) minmax(78px, auto); }
.cart-row img { width: 72px; height: 92px; background: #fbfbfb; }
.checkout-form, .payment-box { gap: 13px; }
.checkout-form label, .options label, .option-group, .admin-field {
  font-size: 9px;
  letter-spacing: .16em;
  color: #8a8a8a;
}
.delivery-picker, .checkout-summary { border-color: #e8e8e8; background: #fff; }
.delivery-card {
  border-color: #e8e8e8;
  padding: 13px;
}
.delivery-card.active {
  border-color: #111;
  box-shadow: none;
}
.delivery-card span { font-size: 10px; letter-spacing: .15em; }
.delivery-card small { color: #8a8a8a; }
.product-dialog {
  width: min(1100px, calc(100vw - 32px)) !important;
  height: min(740px, calc(100dvh - 32px)) !important;
  border-color: #e8e8e8;
}
.product-details { padding: 30px 26px !important; }
.product-details h2 {
  font-size: clamp(24px, 3.2vw, 44px) !important;
  font-weight: 700;
  letter-spacing: -.045em;
}
.modal-price { font-size: 14px; }
.main-photo { background: #fbfbfb !important; }
.thumbs { background: #fff; border-top-color: #eeeeee; }
.thumbs button { border-color: #e8e8e8; background: #fbfbfb; opacity: .42; }
.thumbs button.active { border-color: #111; }
.mobile-tabbar { border-radius: 999px; overflow: hidden; }

@media (min-width: 1440px) {
  .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (max-width: 1060px) {
  .product-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
  html { scroll-padding-top: 112px; }
  .site-header-v7 { min-height: 70px; }
  .category-nav { top: 70px; }
  .profile-card { border-left: 0; border-top: 1px solid #eeeeee; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(62px + var(--safe-bottom)); }
  .topline {
    min-height: 26px;
    font-size: 8px;
    padding: 7px 10px;
    gap: 28px;
  }
  .site-header-v7 {
    min-height: 62px;
    padding: 0 10px;
    grid-template-columns: 50px 1fr 50px;
  }
  .header-nav { justify-content: flex-start; }
  .header-nav .header-link:first-child {
    min-height: 34px;
    width: 34px;
    padding: 0;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border-color: #e2e2e2;
    font-size: 0;
  }
  .header-nav .header-link:first-child::after {
    content: '≡';
    font-size: 18px;
    letter-spacing: 0;
    line-height: 1;
  }
  .brand-v7 {
    justify-self: center;
    font-size: clamp(25px, 8vw, 34px);
  }
  .cart-trigger {
    justify-self: end;
    min-height: 34px;
    min-width: 34px;
    padding: 0;
    border-radius: 999px;
    border-color: #e2e2e2;
    display: grid;
    place-items: center;
    font-size: 0;
  }
  .cart-trigger span:last-child { font-size: 0; }
  .cart-trigger b {
    font-size: 10px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: #111;
    color: #fff;
  }
  .category-nav { top: 62px; padding-inline: 8px; }
  .category-nav button { min-height: 38px; padding: 0 12px; font-size: 8px; }
  .brand-profile { display: grid; min-height: 190px; grid-template-columns: 1fr; }
  .profile-logo {
    min-height: 170px;
    padding: 24px 10px 20px;
    justify-content: flex-end;
    border-bottom: 0;
  }
  .profile-logo .eyebrow { display: none; }
  .profile-logo h1 {
    font-size: clamp(58px, 22vw, 92px);
    line-height: .70;
  }
  .profile-card { display: none; }
  .catalog { padding: 20px 10px 44px; }
  .catalog-head-v7 { gap: 12px; margin-bottom: 14px; padding-bottom: 14px; }
  .catalog-head-v7 h2 { font-size: 34px; }
  .search-field input { min-height: 40px; font-size: 12px; }
  .active-filter { margin-bottom: 16px; font-size: 8px; }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 8px;
  }
  .product-media { aspect-ratio: 4 / 5.45 !important; padding: 7px !important; }
  .quick-add {
    position: static;
    opacity: 1;
    transform: none;
    margin-top: 7px;
    width: 100%;
    min-height: 32px;
    border-color: #e1e1e1;
    background: #fff;
    backdrop-filter: none;
    font-size: 8px;
  }
  .product-caption { padding-top: 8px; gap: 5px; }
  .product-caption h3 { font-size: 10px; line-height: 1.25; }
  .product-category { font-size: 7.5px; }
  .product-price { font-size: 10.5px; }
  .color-switcher button { min-height: 21px; padding: 4px 6px; font-size: 7px; }
  .info-panels article { padding: 28px 14px; }
  .info-panels h2 { font-size: 34px; }
  .info-panels p { font-size: 13px; }
  .footer-brand { padding: 34px 14px; }
  .brand-footer { font-size: clamp(50px, 18vw, 82px); }
  .footer-grid section { padding: 20px 14px; }
  .footer-grid a, .footer-grid span { font-size: 12px; }
  .footer-bottom { padding: 16px 14px 26px; }
  .mobile-tabbar {
    left: 10px;
    right: 10px;
    bottom: calc(10px + var(--safe-bottom));
    border-color: rgba(0,0,0,.12);
  }
  .mobile-tabbar a, .mobile-tabbar button { min-height: 46px; font-size: 9px; }
  .product-dialog { inset: 0 !important; width: 100vw !important; height: 100dvh !important; }
  .main-photo { height: min(59dvh, 520px) !important; min-height: 330px !important; }
  .product-details { padding: 18px 14px 30px !important; }
  .product-details h2 { font-size: clamp(24px, 9vw, 36px) !important; }
  .drawer-head h2 { font-size: 38px; }
}
@media (max-width: 380px) {
  .brand-v7 { font-size: 24px; }
  .product-grid { gap: 24px 8px; }
  .product-caption h3 { font-size: 9.5px; }
  .color-switcher button { font-size: 6.8px; padding-inline: 5px; }
}

/* v13 — спокойная минимальная шапка, без лишних верхних сообщений */
.topline { display: none !important; }
html { scroll-padding-top: 106px; }
.site-header-v7 {
  top: 0 !important;
  min-height: 62px !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  padding: 0 clamp(14px, 3vw, 32px) !important;
  background: rgba(255,255,255,.97) !important;
  border-bottom: 1px solid #efefef !important;
}
.header-nav, .header-actions { gap: clamp(12px, 2vw, 22px) !important; }
.header-link,
.cart-trigger,
.category-nav button,
.quick-add,
.btn,
.step {
  font-size: 9px !important;
  letter-spacing: .14em !important;
  font-weight: 400 !important;
}
.brand-v7 {
  flex-direction: row !important;
  gap: 6px !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: clamp(18px, 2vw, 28px) !important;
  line-height: 1 !important;
  letter-spacing: -.045em !important;
  font-weight: 800 !important;
}
.brand-v7 span:first-child { transform: none !important; }
.cart-trigger {
  min-height: 32px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.cart-trigger:hover { border: 0 !important; background: transparent !important; color: #777; }
.category-nav {
  top: 62px !important;
  min-height: 38px !important;
  padding-inline: clamp(10px, 3vw, 32px) !important;
}
.category-nav button {
  min-height: 38px !important;
  padding: 0 clamp(11px, 1.8vw, 18px) !important;
}
.brand-profile { display: none !important; }
.catalog {
  padding-top: clamp(20px, 3vw, 34px) !important;
}
.catalog-head-v7 {
  margin-bottom: 12px !important;
  padding-bottom: 12px !important;
  align-items: center !important;
}
.catalog-head-v7 h2 {
  font-size: clamp(20px, 2.4vw, 32px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.02em !important;
  font-weight: 500 !important;
}
.catalog-head-v7 .eyebrow { display: none !important; }
.search-field span { display: none !important; }
.search-field input {
  min-height: 38px !important;
  border-color: #efefef !important;
  font-size: 12px !important;
}
.active-filter { display: none !important; }
.product-grid {
  gap: clamp(28px, 3.4vw, 50px) clamp(10px, 1.8vw, 20px) !important;
}
.product-caption h3 {
  font-size: clamp(10.5px, 1vw, 12px) !important;
  letter-spacing: .035em !important;
}
.product-category, .product-price { font-size: 10px !important; }
.color-switcher button { font-size: 7.8px !important; }
.info-panels article { padding: clamp(22px, 3.5vw, 42px) !important; }
.info-panels h2 {
  font-size: clamp(24px, 3vw, 40px) !important;
  letter-spacing: -.025em !important;
  font-weight: 500 !important;
}
.info-panels p { font-size: 13px !important; line-height: 1.55 !important; }
.footer-brand { padding: clamp(24px, 4vw, 44px) clamp(16px, 4vw, 44px) !important; }
.brand-footer {
  flex-direction: row !important;
  gap: 8px !important;
  font-size: clamp(26px, 4.8vw, 66px) !important;
  line-height: 1 !important;
  letter-spacing: -.055em !important;
}
.footer-grid section { padding-block: 22px !important; }
.drawer-head h2,
.payment-box h3,
.admin-section h2,
.legal-hero h1 { letter-spacing: -.03em !important; font-weight: 500 !important; }
.drawer-head h2 { font-size: clamp(28px, 5vw, 40px) !important; }

@media (max-width: 980px) {
  html { scroll-padding-top: 96px; }
  .site-header-v7 { min-height: 58px !important; }
  .category-nav { top: 58px !important; }
  .brand-v7 { font-size: clamp(18px, 4.4vw, 24px) !important; }
}
@media (max-width: 760px) {
  body { padding-bottom: calc(58px + var(--safe-bottom)) !important; }
  .site-header-v7 {
    min-height: 54px !important;
    grid-template-columns: 40px minmax(0, 1fr) 40px !important;
    padding: 0 10px !important;
  }
  .category-nav { top: 54px !important; padding-inline: 8px !important; }
  .category-nav button { min-height: 36px !important; padding: 0 10px !important; font-size: 7.8px !important; }
  .brand-v7 {
    font-size: clamp(16px, 5.3vw, 22px) !important;
    letter-spacing: -.04em !important;
    white-space: nowrap !important;
  }
  .header-nav .header-link:first-child {
    width: 32px !important;
    min-height: 32px !important;
    border: 0 !important;
    padding: 0 !important;
  }
  .header-nav .header-link:first-child::after { font-size: 16px !important; }
  .cart-trigger {
    min-width: 32px !important;
    min-height: 32px !important;
    border: 0 !important;
  }
  .cart-trigger b { min-width: 18px !important; height: 18px !important; font-size: 9px !important; }
  .catalog { padding: 16px 10px 42px !important; }
  .catalog-head-v7 {
    flex-direction: row !important;
    align-items: center !important;
    gap: 10px !important;
  }
  .catalog-head-v7 h2 { font-size: 20px !important; margin: 0 !important; }
  .catalog-tools { width: auto !important; flex: 1 1 auto !important; }
  .search-field input { min-height: 36px !important; font-size: 11px !important; padding: 9px 10px !important; }
  .product-grid { gap: 26px 8px !important; }
  .quick-add { font-size: 7.6px !important; min-height: 30px !important; }
  .product-caption h3 { font-size: 9.6px !important; }
  .product-category, .product-price { font-size: 9px !important; }
  .color-switcher button { font-size: 6.8px !important; padding: 4px 5px !important; }
  .info-panels h2 { font-size: 26px !important; }
  .brand-footer { font-size: clamp(24px, 8vw, 38px) !important; }
  .mobile-tabbar { border-radius: 0 !important; left: 8px !important; right: 8px !important; }
}
@media (max-width: 380px) {
  .brand-v7 { font-size: 16px !important; gap: 4px !important; }
  .catalog-head-v7 h2 { font-size: 18px !important; }
}


/* GM v25 catalog symmetry overrides */

.product-grid {
  align-items: start;
}
.product-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.product-media {
  display: flex;
  align-items: center;
  justify-content: center;
}
.product-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
}
.product-caption {
  display: flex;
  flex-direction: column;
  min-height: 114px;
}
.product-caption h3 {
  min-height: 2.6em;
}
.product-colors {
  margin-top: auto;
}

/* GM v30 — polished mobile adaptation */
:root { --mobile-bar-height: 58px; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { overflow-x: hidden; }
img { -webkit-user-drag: none; }

@media (hover: none) and (pointer: coarse) {
  button, a, input, select, textarea { -webkit-tap-highlight-color: rgba(0,0,0,.08); }
  input, select, textarea { font-size: 16px !important; }
}

@media (max-width: 760px) {
  html { scroll-padding-top: 96px !important; }
  body {
    background: #fff !important;
    padding-bottom: calc(var(--mobile-bar-height) + var(--safe-bottom) + 14px) !important;
  }

  /* Clean mobile header */
  .site-header-v7 {
    min-height: 58px !important;
    height: 58px !important;
    padding: 0 12px !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    background: rgba(255,255,255,.94) !important;
    border-bottom: 1px solid rgba(0,0,0,.07) !important;
  }
  .header-nav { display: flex !important; justify-content: flex-start !important; min-width: 0 !important; }
  .header-nav .header-link:not(:first-child) { display: none !important; }
  .header-nav .header-link:first-child {
    width: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    border: 1px solid #ededed !important;
    background: #f4f4f4 !important;
    border-radius: 999px !important;
  }
  .header-nav .header-link:first-child::after { content: '☰' !important; font-size: 16px !important; font-weight: 400 !important; }
  .brand-v7 {
    justify-self: center !important;
    max-width: calc(100vw - 118px) !important;
    font-size: clamp(18px, 5.5vw, 24px) !important;
    letter-spacing: -.055em !important;
    white-space: nowrap !important;
    overflow: hidden !important;
  }
  .header-actions { min-width: 0 !important; justify-content: flex-end !important; }
  .cart-trigger {
    width: 38px !important;
    min-width: 38px !important;
    min-height: 38px !important;
    display: grid !important;
    place-items: center !important;
    border: 1px solid #ededed !important;
    background: #f4f4f4 !important;
    border-radius: 999px !important;
  }
  .cart-trigger span:first-child { display: none !important; }
  .cart-trigger span:last-child { font-size: 0 !important; display: grid !important; place-items: center !important; }
  .cart-trigger span:last-child::before { content: '🛒'; font-size: 15px; line-height: 1; }
  .cart-trigger b {
    position: absolute !important;
    top: 7px !important;
    right: 5px !important;
    min-width: 16px !important;
    height: 16px !important;
    font-size: 8px !important;
    border: 2px solid #fff !important;
  }

  /* Category pills */
  .category-nav {
    top: 58px !important;
    min-height: 44px !important;
    padding: 7px 10px 8px !important;
    gap: 7px !important;
    justify-content: flex-start !important;
    overflow-x: auto !important;
    overscroll-behavior-x: contain !important;
    scroll-snap-type: x proximity !important;
    background: rgba(255,255,255,.96) !important;
    border-bottom: 1px solid rgba(0,0,0,.06) !important;
    scrollbar-width: none !important;
  }
  .category-nav::-webkit-scrollbar { display: none !important; }
  .category-nav button {
    flex: 0 0 auto !important;
    scroll-snap-align: start !important;
    min-height: 30px !important;
    padding: 0 12px !important;
    border: 1px solid #ededed !important;
    border-radius: 999px !important;
    background: #fafafa !important;
    color: #777 !important;
    font-size: 8px !important;
    letter-spacing: .13em !important;
  }
  .category-nav button.active {
    background: #111 !important;
    color: #fff !important;
    border-color: #111 !important;
  }
  .category-nav button.active::after { display: none !important; }

  /* Catalog top */
  .catalog {
    padding: 18px 10px 44px !important;
  }
  .catalog-head-v7 {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
    padding-bottom: 0 !important;
    border-bottom: 0 !important;
  }
  .catalog-head-v7 h2 {
    font-size: 24px !important;
    line-height: 1 !important;
    font-weight: 600 !important;
    letter-spacing: -.04em !important;
  }
  .catalog-tools { width: 100% !important; }
  .search-field input {
    width: 100% !important;
    min-height: 44px !important;
    border-radius: 14px !important;
    border: 1px solid #ececec !important;
    background: #fafafa !important;
    padding: 0 14px !important;
    font-size: 16px !important;
  }

  /* Product cards */
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 28px 9px !important;
    align-items: stretch !important;
  }
  .product-card {
    min-width: 0 !important;
    display: flex !important;
    flex-direction: column !important;
  }
  .product-media {
    width: 100% !important;
    aspect-ratio: 3 / 4.35 !important;
    min-height: 0 !important;
    padding: 8px !important;
    border: 1px solid #f0f0f0 !important;
    border-radius: 18px !important;
    background: #f4f4f4 !important;
    overflow: hidden !important;
  }
  .product-media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    mix-blend-mode: normal;
  }
  .quick-add {
    min-height: 36px !important;
    margin-top: 8px !important;
    border-radius: 999px !important;
    border: 1px solid #e8e8e8 !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 8px !important;
    letter-spacing: .14em !important;
  }
  .product-caption {
    min-height: 124px !important;
    padding-top: 9px !important;
    gap: 6px !important;
  }
  .product-caption h3 {
    min-height: 2.5em !important;
    font-size: 10px !important;
    line-height: 1.25 !important;
    letter-spacing: .04em !important;
    overflow-wrap: anywhere !important;
  }
  .product-category { font-size: 8px !important; color: #999 !important; }
  .product-price { font-size: 11px !important; font-weight: 600 !important; }
  .product-colors { margin-top: auto !important; }
  .color-switcher { gap: 5px !important; overflow-x: auto !important; padding-bottom: 2px !important; scrollbar-width: none !important; }
  .color-switcher::-webkit-scrollbar { display: none !important; }
  .color-switcher button {
    flex: 0 0 auto !important;
    min-height: 24px !important;
    padding: 0 8px !important;
    border-radius: 999px !important;
    font-size: 7px !important;
    letter-spacing: .08em !important;
  }

  /* Product page modal */
  .product-modal { overflow: hidden !important; }
  .product-dialog {
    inset: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    max-height: 100dvh !important;
    border: 0 !important;
    border-radius: 0 !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: minmax(0, 58dvh) minmax(0, 42dvh) !important;
    overflow: hidden !important;
    background: #fff !important;
  }
  .product-gallery {
    min-height: 0 !important;
    height: 100% !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eee !important;
    background: #fafafa !important;
    display: grid !important;
    grid-template-rows: minmax(0, 1fr) auto !important;
  }
  .main-photo {
    height: auto !important;
    min-height: 0 !important;
    padding: 12px 16px !important;
    background: #fafafa !important;
  }
  .main-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    background: transparent !important;
  }
  .gallery-arrow {
    width: 38px !important;
    height: 48px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    background: rgba(255,255,255,.86) !important;
    font-size: 24px !important;
  }
  .gallery-arrow.prev { left: 10px !important; }
  .gallery-arrow.next { right: 10px !important; }
  .thumbs {
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 7px !important;
    background: #fff !important;
    border-top: 1px solid #eee !important;
  }
  .thumbs button {
    flex-basis: 54px !important;
    width: 54px !important;
    height: 68px !important;
    border-radius: 10px !important;
    background: #fafafa !important;
    overflow: hidden !important;
  }
  .product-details {
    height: 100% !important;
    min-height: 0 !important;
    overflow-y: auto !important;
    padding: 16px 14px calc(18px + env(safe-area-inset-bottom, 0px)) !important;
    gap: 10px !important;
  }
  .product-details .eyebrow { font-size: 8px !important; color: #999 !important; }
  .product-details h2 {
    font-size: clamp(24px, 8vw, 34px) !important;
    line-height: .98 !important;
    margin: 0 !important;
    letter-spacing: -.04em !important;
    font-weight: 600 !important;
  }
  .modal-price { margin: 0 !important; font-size: 16px !important; font-weight: 600 !important; }
  .description { font-size: 12px !important; line-height: 1.45 !important; color: #555 !important; }
  .options { grid-template-columns: 1fr !important; gap: 10px !important; margin: 4px 0 !important; }
  .option-group, .options label {
    border-radius: 14px !important;
    border-color: #eeeeee !important;
    background: #fafafa !important;
  }
  .options select { min-height: 44px !important; border-radius: 12px !important; background: #fff !important; }
  #modalAdd {
    position: sticky !important;
    bottom: 0 !important;
    min-height: 48px !important;
    border-radius: 999px !important;
    margin-top: 4px !important;
    z-index: 4 !important;
  }

  /* Cart and checkout */
  .cart-panel {
    width: 100% !important;
    max-width: 100% !important;
    border-left: 0 !important;
    border-radius: 0 !important;
  }
  .drawer-head {
    min-height: 64px !important;
    padding: 14px 14px 10px !important;
    border-bottom: 1px solid #eee !important;
  }
  .drawer-head h2 { font-size: 28px !important; line-height: 1 !important; }
  .icon-button { width: 38px !important; height: 38px !important; border-radius: 999px !important; }
  .checkout-steps {
    padding: 8px !important;
    gap: 6px !important;
    background: #fff !important;
    border-bottom: 1px solid #eee !important;
  }
  .step {
    min-height: 34px !important;
    border-radius: 999px !important;
    font-size: 8px !important;
  }
  .cart-items, .cart-footer, .checkout-form, .payment-box { padding-inline: 14px !important; }
  .cart-item { grid-template-columns: 54px 1fr auto !important; gap: 10px !important; padding: 12px 0 !important; }
  .cart-item img { width: 54px !important; height: 70px !important; border-radius: 10px !important; background: #fafafa !important; }
  .cart-footer { padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px)) !important; }
  .checkout-form {
    gap: 12px !important;
    padding-top: 14px !important;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)) !important;
  }
  .checkout-form label, .delivery-picker, .checkout-summary, .payment-box {
    border-radius: 16px !important;
    border-color: #eeeeee !important;
    background: #fafafa !important;
  }
  .checkout-form input, .checkout-form textarea, .checkout-form select {
    min-height: 44px !important;
    border-radius: 12px !important;
    background: #fff !important;
  }
  .promo-row { grid-template-columns: 1fr !important; gap: 8px !important; }
  .delivery-methods { grid-template-columns: 1fr !important; gap: 8px !important; }
  .form-actions { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 8px !important; }
  .btn { min-height: 46px !important; border-radius: 999px !important; }

  /* Info/footer */
  .info-panels { grid-template-columns: 1fr !important; margin-top: 12px !important; }
  .info-panels article { padding: 26px 16px !important; border-left: 0 !important; }
  .info-panels article + article { border-top: 1px solid #eee !important; }
  .info-panels h2 { font-size: 25px !important; line-height: 1.05 !important; }
  .info-panels p { font-size: 13px !important; color: #4d4d4d !important; }
  .footer-brand { padding: 30px 16px 22px !important; }
  .brand-footer { font-size: clamp(26px, 9vw, 42px) !important; justify-content: flex-start !important; }
  .footer-grid { grid-template-columns: 1fr !important; }
  .footer-grid section { padding: 20px 16px !important; border-right: 0 !important; border-top: 1px solid #eee !important; }
  .footer-grid a, .footer-grid span { font-size: 13px !important; line-height: 1.45 !important; }
  .footer-bottom {
    padding: 16px 16px 28px !important;
    gap: 12px !important;
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .partners-block img { max-width: min(100%, 300px) !important; }

  /* Bottom app nav */
  .mobile-tabbar {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    left: 10px !important;
    right: 10px !important;
    bottom: calc(10px + env(safe-area-inset-bottom, 0px)) !important;
    height: var(--mobile-bar-height) !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.93) !important;
    box-shadow: 0 16px 40px rgba(0,0,0,.13) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    overflow: hidden !important;
  }
  .mobile-tabbar a, .mobile-tabbar button {
    min-height: 56px !important;
    border: 0 !important;
    border-right: 1px solid rgba(0,0,0,.06) !important;
    background: transparent !important;
    font-size: 9px !important;
    letter-spacing: .13em !important;
  }
  .mobile-tabbar > :last-child { border-right: 0 !important; }
}

@media (max-width: 430px) {
  .product-grid { gap: 26px 8px !important; }
  .product-media { aspect-ratio: 3 / 4.5 !important; padding: 7px !important; border-radius: 16px !important; }
  .product-caption h3 { font-size: 9.5px !important; }
  .color-switcher button { padding: 0 7px !important; font-size: 6.8px !important; }
}

@media (max-width: 360px) {
  .product-grid { gap: 24px 7px !important; }
  .catalog { padding-inline: 8px !important; }
  .brand-v7 { font-size: 16px !important; }
  .product-caption h3 { font-size: 9px !important; }
  .product-category, .product-price { font-size: 8.5px !important; }
}

/* GM v32 admin/server tweaks */
#productTableWrap, #ordersTableWrap { width: 100%; overflow-x: auto; }
#serverStatus[data-type="ok"] { color: #177245; }
#serverStatus[data-type="error"] { color: #b42318; }
#serverStatus[data-type="info"] { color: var(--muted); }
.admin-field input[type="password"] { font-family: inherit; }
@media (max-width: 720px) {
  .admin-sidebar { position: static; }
  .admin-main { padding-bottom: 96px; }
  .admin-actions { gap: 8px; }
  .admin-actions .btn { width: 100%; }
}


/* GM v35 — финальная мобильная адаптация + спокойное описание товара */
html, body { max-width: 100%; overflow-x: hidden; }

.product-description-block {
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.product-description-block .eyebrow {
  margin-bottom: 8px;
  color: #9a9a9a;
}
.product-description-block .description {
  max-width: 46ch;
  font-size: 12.5px;
  line-height: 1.52;
  color: #5f5f5f;
  letter-spacing: .01em;
}
.product-description-block .description p {
  margin: 0 0 8px;
}
.product-description-block .description p:last-child {
  margin-bottom: 0;
}

@media (max-width: 900px) {
  .product-dialog {
    width: calc(100% - 16px);
    height: calc(100% - 16px);
    inset: 8px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(280px, 48svh) minmax(0, 1fr);
  }

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

  .product-details {
    min-height: 0;
    overflow: auto;
  }
}

@media (max-width: 760px) {
  body { background: #fff; }

  .announcement {
    min-height: 28px;
    padding: 0 12px;
    font-size: 9px;
  }

  .site-header {
    min-height: 62px;
    padding: 0 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    backdrop-filter: blur(14px);
  }

  .brand {
    font-size: clamp(25px, 8vw, 34px);
    letter-spacing: -.055em;
    line-height: .9;
  }

  .cart-trigger {
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
  }

  .category-nav {
    top: 62px;
    min-height: 48px;
    padding: 0 10px;
    justify-content: flex-start;
    gap: 6px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .category-nav::-webkit-scrollbar { display: none; }
  .category-nav button {
    flex: 0 0 auto;
    min-height: 32px;
    padding: 0 13px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    letter-spacing: .08em;
  }
  .category-nav button.active {
    border-color: var(--ink);
    background: #000;
    color: #fff;
  }

  .store-intro {
    padding: 18px 12px 10px;
  }

  .catalog {
    padding: 12px 10px 84px;
  }

  .catalog-head {
    gap: 12px;
    margin-bottom: 12px;
  }

  .catalog-tools {
    gap: 8px;
  }

  .search-field input {
    min-height: 40px;
    border-radius: 999px;
    padding-inline: 14px;
  }

  .active-filter {
    margin-bottom: 10px;
    font-size: 10px;
  }

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

  .product-media {
    aspect-ratio: 4 / 5.15;
    border-color: #f1f1f1;
  }

  .product-media img {
    padding: 0;
  }

  .quick-add {
    min-height: 34px;
    margin-top: 6px;
    border-radius: 999px;
    font-size: 9px;
    letter-spacing: .11em;
  }

  .product-caption {
    gap: 5px;
    padding-top: 8px;
  }

  .product-caption h3 {
    min-height: 0;
    font-size: 11px;
    line-height: 1.13;
  }

  .product-category {
    font-size: 9px;
  }

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

  .color-switcher {
    gap: 5px;
  }

  .color-switcher button {
    min-height: 25px;
    padding: 0 9px;
    font-size: 8px;
    border-radius: 999px;
  }

  .product-dialog {
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(270px, 44svh) minmax(0, 1fr);
  }

  .dialog-close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 42px;
    height: 42px;
    background: rgba(255,255,255,.9);
    border-radius: 999px;
  }

  .main-photo {
    padding: 10px 12px;
  }

  .main-photo img {
    max-height: 100%;
  }

  .gallery-arrow {
    width: 34px;
    height: 46px;
    font-size: 27px;
    border-radius: 999px;
    background: rgba(255,255,255,.86);
  }
  .gallery-arrow.prev { left: 8px; }
  .gallery-arrow.next { right: 8px; }

  .thumbs {
    gap: 6px;
    padding: 8px 10px;
  }

  .thumbs button {
    flex-basis: 54px;
    width: 54px;
    height: 68px;
  }

  .product-details {
    padding: 18px 14px max(24px, env(safe-area-inset-bottom));
  }

  .product-details h2 {
    font-size: clamp(31px, 11vw, 46px);
    line-height: .93;
    margin-bottom: 10px;
  }

  .modal-price {
    font-size: 14px;
    margin-bottom: 14px;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 14px 0;
  }

  .options select {
    min-height: 42px;
    border-radius: 10px;
  }

  #modalAdd {
    min-height: 48px;
    border-radius: 999px;
    position: sticky;
    bottom: 0;
    z-index: 2;
  }

  .product-description-block {
    margin-top: 16px;
    padding-top: 13px;
  }

  .product-description-block .description {
    font-size: 11.5px;
    line-height: 1.48;
    color: #666;
  }

  .product-description-block .description p {
    margin-bottom: 7px;
  }

  .cart-panel {
    width: 100%;
    border-left: 0;
  }

  .drawer-head {
    padding: 16px 14px;
  }

  .drawer-head h2 {
    font-size: clamp(36px, 12vw, 52px);
  }

  .cart-items {
    padding: 12px;
  }

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

  .cart-row img {
    width: 64px;
    height: 84px;
  }

  .cart-row-side {
    grid-column: 2;
    text-align: left;
  }

  .checkout-form,
  .summary,
  .payment-box {
    padding: 14px;
  }

  .admin-login {
    padding: 12px;
  }

  .login-card {
    padding: 20px;
  }

  .login-card h1 {
    font-size: clamp(42px, 15vw, 58px);
  }

  .admin-main {
    padding: 12px;
  }

  .admin-section {
    padding: 14px;
  }

  .admin-section h2 {
    font-size: clamp(36px, 13vw, 56px);
  }
}

@media (max-width: 460px) {
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px 8px;
  }

  .catalog {
    padding-inline: 8px;
  }

  .product-caption h3 {
    font-size: 10.5px;
  }

  .quick-add {
    font-size: 8px;
  }

  .product-dialog {
    grid-template-rows: minmax(245px, 42svh) minmax(0, 1fr);
  }

  .thumbs button {
    flex-basis: 50px;
    width: 50px;
    height: 64px;
  }

  .product-details {
    padding-inline: 12px;
  }

  .product-details h2 {
    font-size: clamp(30px, 12vw, 42px);
  }
}

@media (max-width: 340px) {
  .product-grid { grid-template-columns: 1fr; }
}


/* GM v39 — fixed ECLIPSE backgrounds */
.product-media,
.main-photo,
.product-gallery,
.thumbs button {
  background: #fff !important;
}
.product-media img,
.main-photo img,
.thumbs img {
  background: transparent !important;
  mix-blend-mode: normal !important;
}


/* GM v43 — максимальная мобильная адаптация */
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

@media (hover: none) {
  .product-card:hover,
  .btn:hover,
  .category-nav button:hover {
    transform: none !important;
  }
}

/* iPad / small laptop */
@media (max-width: 980px) {
  .site-header {
    padding-inline: 18px;
  }

  .catalog {
    padding-inline: 16px;
  }

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

  .product-dialog {
    width: calc(100vw - 20px);
    height: calc(100svh - 20px);
    inset: 10px;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(300px, 48svh) minmax(0, 1fr);
    border-radius: 22px;
    overflow: hidden;
  }

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

  .product-details {
    min-height: 0;
    overflow: auto;
  }
}

/* Phone */
@media (max-width: 760px) {
  :root {
    --mobile-pad: 10px;
  }

  body {
    background: #fff;
  }

  .announcement {
    min-height: 26px;
    padding: 0 12px;
    font-size: 8.5px;
    letter-spacing: .14em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .site-header {
    position: sticky;
    top: 0;
    z-index: 30;
    min-height: 58px;
    padding: 0 10px;
    grid-template-columns: minmax(0, 1fr) auto;
    background: rgba(255,255,255,.94);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(0,0,0,.07);
  }

  .brand {
    font-size: clamp(25px, 8.4vw, 34px);
    line-height: .86;
    letter-spacing: -.06em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .main-nav {
    display: none !important;
  }

  .cart-trigger {
    min-width: 42px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #e8e8e8;
    border-radius: 999px;
    background: #fff;
    font-size: 0;
  }

  .cart-trigger::before {
    content: "корзина";
    font-size: 9px;
    letter-spacing: .12em;
    text-transform: uppercase;
  }

  .cart-trigger span {
    font-size: 10px;
  }

  .category-nav {
    position: sticky;
    top: 58px;
    z-index: 25;
    justify-content: flex-start;
    gap: 6px;
    min-height: 46px;
    padding: 7px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(0,0,0,.06);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .category-nav button {
    flex: 0 0 auto;
    min-height: 31px;
    padding: 0 13px;
    border: 1px solid #e7e7e7;
    border-radius: 999px;
    background: #fff;
    font-size: 8.5px;
    letter-spacing: .1em;
  }

  .category-nav button.active {
    color: #fff;
    background: #050505;
    border-color: #050505;
  }

  .store-intro {
    padding: 16px 10px 6px;
  }

  .hero,
  .intro-grid,
  .store-intro .intro-grid {
    gap: 10px;
  }

  .hero h1,
  .page-title,
  .admin-section h2 {
    font-size: clamp(38px, 13vw, 58px);
    line-height: .82;
    letter-spacing: -.06em;
  }

  .catalog {
    padding: 10px 8px 90px;
  }

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

  .catalog-tools {
    display: grid;
    gap: 8px;
  }

  .search-field input,
  .sort-select {
    width: 100%;
    min-height: 42px;
    border-radius: 999px;
    padding-inline: 14px;
    font-size: 11px;
  }

  .active-filter {
    margin: 0 0 12px;
    font-size: 10px;
    color: #777;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 8px;
    align-items: start;
  }

  .product-card {
    min-width: 0;
    border-radius: 0;
  }

  .product-media {
    aspect-ratio: 4 / 5.25;
    background: #fff !important;
    border: 1px solid #f0f0f0;
    border-radius: 16px;
    overflow: hidden;
  }

  .product-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    padding: 0;
    background: #fff !important;
    mix-blend-mode: normal !important;
  }

  .quick-add {
    min-height: 34px;
    margin-top: 7px;
    border-radius: 999px;
    font-size: 8.5px;
    letter-spacing: .12em;
  }

  .product-caption {
    min-height: auto;
    gap: 5px;
    padding: 8px 2px 0;
  }

  .product-caption h3 {
    min-height: 0;
    font-size: 10.5px;
    line-height: 1.15;
    letter-spacing: .02em;
  }

  .product-category,
  .product-desc-short {
    font-size: 8.5px;
  }

  .product-price {
    font-size: 11px;
    line-height: 1.2;
  }

  .product-colors,
  .color-switcher {
    gap: 5px;
    flex-wrap: wrap;
  }

  .product-colors button,
  .color-switcher button {
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 7.5px;
    letter-spacing: .08em;
  }

  .product-dialog {
    inset: 0;
    width: 100vw;
    height: 100svh;
    max-width: none;
    max-height: none;
    border: 0;
    border-radius: 0;
    grid-template-columns: 1fr;
    grid-template-rows: minmax(270px, 43svh) minmax(0, 1fr);
    background: #fff;
  }

  .dialog-close {
    top: max(10px, env(safe-area-inset-top));
    right: 10px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: rgba(255,255,255,.94);
    border: 1px solid rgba(0,0,0,.08);
    z-index: 5;
  }

  .product-gallery,
  .main-photo {
    background: #fff !important;
  }

  .main-photo {
    padding: 8px 10px;
  }

  .main-photo img {
    max-height: 100%;
    object-fit: contain;
    background: #fff !important;
    mix-blend-mode: normal !important;
  }

  .gallery-arrow {
    width: 34px;
    height: 44px;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    font-size: 25px;
  }

  .gallery-arrow.prev { left: 7px; }
  .gallery-arrow.next { right: 7px; }

  .thumbs {
    gap: 6px;
    padding: 7px 10px 9px;
    overflow-x: auto;
    scrollbar-width: none;
  }

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

  .thumbs button {
    flex: 0 0 48px;
    width: 48px;
    height: 62px;
    border-radius: 10px;
    background: #fff !important;
  }

  .product-details {
    padding: 17px 12px max(24px, env(safe-area-inset-bottom));
    overflow: auto;
  }

  .product-details h2 {
    font-size: clamp(30px, 11vw, 44px);
    line-height: .9;
    margin-bottom: 9px;
    letter-spacing: -.055em;
  }

  .modal-price {
    font-size: 14px;
    margin-bottom: 13px;
  }

  .options {
    grid-template-columns: 1fr;
    gap: 10px;
    margin: 13px 0;
  }

  .option-group span,
  .options label {
    font-size: 9px;
  }

  .options select {
    min-height: 42px;
    border-radius: 10px;
    font-size: 12px;
  }

  #modalAdd {
    min-height: 48px;
    border-radius: 999px;
    font-size: 10px;
    position: sticky;
    bottom: 0;
    z-index: 3;
    box-shadow: 0 -8px 20px rgba(255,255,255,.92);
  }

  .product-description-block {
    margin-top: 15px;
    padding-top: 13px;
  }

  .product-description-block .eyebrow {
    margin-bottom: 7px;
    font-size: 8.5px;
    color: #999;
  }

  .product-description-block .description {
    max-width: 100%;
    font-size: 11px;
    line-height: 1.48;
    color: #666;
  }

  .product-description-block .description p {
    margin-bottom: 7px;
  }

  .cart-panel {
    width: 100vw;
    max-width: none;
    border-left: 0;
  }

  .drawer-head {
    padding: 16px 12px;
  }

  .drawer-head h2 {
    font-size: clamp(36px, 12vw, 54px);
    line-height: .82;
  }

  .cart-items {
    padding: 12px;
  }

  .cart-row {
    grid-template-columns: 62px minmax(0, 1fr);
    gap: 10px;
    padding: 10px 0;
  }

  .cart-row img {
    width: 62px;
    height: 82px;
    border-radius: 10px;
    background: #fff !important;
  }

  .cart-row-side {
    grid-column: 2;
    text-align: left;
  }

  .qty {
    justify-content: flex-start;
  }

  .checkout-form,
  .summary,
  .payment-box {
    padding: 14px 12px;
  }

  .checkout-form input,
  .checkout-form textarea,
  .checkout-form select {
    min-height: 42px;
    font-size: 12px;
  }

  .footer-grid {
    display: grid;
    gap: 16px;
    padding-inline: 12px;
  }

  .admin-login {
    padding: 12px;
  }

  .login-card {
    padding: 20px 14px;
  }

  .login-card h1 {
    font-size: clamp(44px, 15vw, 64px);
    line-height: .8;
  }

  .admin-main {
    padding: 12px;
  }

  .admin-section {
    padding: 14px;
    overflow-x: auto;
  }

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

  .admin-grid,
  .admin-form-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Small phones */
@media (max-width: 430px) {
  .product-grid {
    gap: 22px 7px;
  }

  .catalog {
    padding-inline: 7px;
  }

  .product-media {
    aspect-ratio: 4 / 5.35;
    border-radius: 14px;
  }

  .product-caption h3 {
    font-size: 10px;
  }

  .quick-add {
    min-height: 32px;
    font-size: 8px;
  }

  .product-dialog {
    grid-template-rows: minmax(245px, 41svh) minmax(0, 1fr);
  }

  .thumbs button {
    flex-basis: 45px;
    width: 45px;
    height: 58px;
  }

  .product-details h2 {
    font-size: clamp(29px, 12vw, 40px);
  }
}

/* Very narrow phones */
@media (max-width: 340px) {
  .product-grid {
    grid-template-columns: 1fr;
  }

  .product-media {
    aspect-ratio: 4 / 5;
  }
}


/* GM v45 — ровная лаконичная витрина */
.product-grid {
  align-items: start;
}

.product-card {
  height: 100%;
}

.product-media {
  background: #fff !important;
}

.product-media img {
  object-fit: contain;
  object-position: center;
  background: #fff !important;
  mix-blend-mode: normal !important;
}

@media (min-width: 761px) {
  .product-grid {
    gap: 34px 20px;
  }

  .product-media {
    aspect-ratio: 4 / 5.15;
  }

  .product-caption {
    min-height: 132px;
  }
}

@media (max-width: 760px) {
  .product-grid {
    gap: 24px 8px !important;
  }

  .product-media {
    aspect-ratio: 4 / 5.25 !important;
  }
}

/* GM v52 — based on v49, remove grey circles in mobile header */
@media (max-width: 760px) {
  .header-nav .header-link:first-child,
  .cart-trigger {
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }
}


/* GM v55 — mobile UX rebuild: readable product page, real size choice */
.modal-size-buttons {
  display: none;
}

@media (max-width: 760px) {
  .product-modal.open {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
    background: #fff !important;
  }

  .product-dialog {
    position: fixed !important;
    inset: 0 !important;
    width: 100vw !important;
    height: auto !important;
    min-height: 100dvh !important;
    max-height: none !important;
    display: flex !important;
    flex-direction: column !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background: #fff !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .dialog-close {
    position: fixed !important;
    top: calc(10px + env(safe-area-inset-top, 0px)) !important;
    right: 10px !important;
    z-index: 50 !important;
    width: 42px !important;
    height: 42px !important;
    border-radius: 999px !important;
    border: 1px solid rgba(0,0,0,.08) !important;
    background: rgba(255,255,255,.96) !important;
    box-shadow: 0 10px 30px rgba(0,0,0,.08) !important;
  }

  .product-gallery {
    flex: 0 0 auto !important;
    display: flex !important;
    flex-direction: column !important;
    height: auto !important;
    min-height: 0 !important;
    border-right: 0 !important;
    border-bottom: 1px solid #eeeeee !important;
    background: #fff !important;
  }

  .main-photo {
    height: min(38dvh, 330px) !important;
    min-height: 255px !important;
    padding: calc(12px + env(safe-area-inset-top, 0px)) 12px 8px !important;
    background: #fff !important;
  }

  .main-photo img {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    background: #fff !important;
    mix-blend-mode: normal !important;
  }

  .gallery-arrow {
    top: calc((min(38dvh, 330px) + env(safe-area-inset-top, 0px)) / 2) !important;
    width: 36px !important;
    height: 46px !important;
    border-radius: 999px !important;
    background: rgba(255,255,255,.94) !important;
    border-color: rgba(0,0,0,.08) !important;
    font-size: 26px !important;
  }

  .gallery-arrow.prev { left: 8px !important; }
  .gallery-arrow.next { right: 8px !important; }

  .thumbs {
    flex: 0 0 auto !important;
    gap: 7px !important;
    padding: 8px 12px 10px !important;
    border-top: 0 !important;
    background: #fff !important;
    overflow-x: auto !important;
    scrollbar-width: none !important;
  }

  .thumbs::-webkit-scrollbar { display: none !important; }

  .thumbs button {
    flex: 0 0 48px !important;
    width: 48px !important;
    height: 62px !important;
    border-radius: 10px !important;
    background: #fff !important;
    opacity: .45 !important;
  }

  .thumbs button.active {
    opacity: 1 !important;
    border-color: #111 !important;
  }

  .product-details {
    flex: 1 0 auto !important;
    height: auto !important;
    min-height: auto !important;
    overflow: visible !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 14px !important;
    padding: 16px 14px calc(96px + env(safe-area-inset-bottom, 0px)) !important;
    background: #fff !important;
  }

  .product-details .eyebrow {
    margin: 0 !important;
    font-size: 9px !important;
    color: #8a8a8a !important;
    letter-spacing: .14em !important;
  }

  .product-details h2 {
    margin: 0 !important;
    font-size: clamp(26px, 8.2vw, 36px) !important;
    line-height: .96 !important;
    letter-spacing: -.045em !important;
    font-weight: 850 !important;
  }

  .modal-price {
    margin: -2px 0 0 !important;
    font-size: 15px !important;
    line-height: 1.3 !important;
    font-weight: 700 !important;
  }

  .options {
    order: 3 !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 12px !important;
    margin: 0 !important;
  }

  .option-group,
  .options label {
    display: grid !important;
    gap: 8px !important;
    padding: 12px !important;
    border: 1px solid #ececec !important;
    border-radius: 16px !important;
    background: #fafafa !important;
    color: #777 !important;
    text-transform: uppercase !important;
    letter-spacing: .12em !important;
    font-size: 9px !important;
  }

  .modal-colors .color-switcher,
  .modal-colors {
    width: 100% !important;
  }

  .color-switcher button {
    min-height: 36px !important;
    padding: 0 13px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
  }

  #modalSize {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    opacity: 0 !important;
    pointer-events: none !important;
  }

  .modal-size-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .modal-size-buttons button {
    min-height: 44px !important;
    padding: 0 10px !important;
    border: 1px solid #dddddd !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 11px !important;
    line-height: 1.15 !important;
    letter-spacing: .04em !important;
    text-transform: uppercase !important;
  }

  .modal-size-buttons button.active {
    background: #000 !important;
    border-color: #000 !important;
    color: #fff !important;
  }

  .product-description-block {
    order: 4 !important;
    margin-top: 0 !important;
    padding: 14px !important;
    border: 1px solid #ececec !important;
    border-radius: 16px !important;
    background: #fafafa !important;
  }

  .product-description-block.hidden {
    display: none !important;
  }

  .product-description-block .eyebrow {
    margin-bottom: 9px !important;
    color: #777 !important;
  }

  .product-description-block .description {
    max-width: none !important;
    font-size: 14px !important;
    line-height: 1.65 !important;
    color: #171717 !important;
  }

  .product-description-block .description p {
    margin: 0 0 10px !important;
  }

  .product-description-block .description p:last-child {
    margin-bottom: 0 !important;
  }

  #modalAdd {
    order: 5 !important;
    position: sticky !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 20 !important;
    min-height: 52px !important;
    margin-top: 4px !important;
    border-radius: 999px !important;
    box-shadow: 0 14px 36px rgba(0,0,0,.12), 0 -18px 24px rgba(255,255,255,.96) !important;
    font-size: 10px !important;
    letter-spacing: .13em !important;
  }

  .quick-add {
    min-height: 36px !important;
    font-size: 8px !important;
    letter-spacing: .11em !important;
  }
}

@media (max-width: 430px) {
  .main-photo {
    height: min(36dvh, 300px) !important;
    min-height: 235px !important;
  }

  .product-details {
    padding-inline: 12px !important;
  }

  .product-description-block .description {
    font-size: 13.5px !important;
  }

  .modal-size-buttons {
    grid-template-columns: repeat(auto-fit, minmax(50px, 1fr)) !important;
  }
}


/* GM v57 — anti-cache/mobile modal safety patch.
   Native size selector is visible as fallback; buttons remain extra convenience.
*/
@media (max-width: 760px) {
  .product-dialog {
    visibility: visible !important;
  }

  .product-details {
    padding-bottom: calc(118px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .product-details h2,
  .modal-price,
  .product-description-block,
  .options {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  .options {
    display: grid !important;
    grid-template-columns: 1fr !important;
  }

  #modalSize {
    position: static !important;
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 14px !important;
    border: 1px solid #dcdcdc !important;
    border-radius: 999px !important;
    background: #fff !important;
    color: #111 !important;
    font-size: 16px !important;
    letter-spacing: 0 !important;
    text-transform: none !important;
    appearance: auto !important;
    -webkit-appearance: menulist !important;
  }

  .modal-size-buttons {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 8px !important;
  }

  .modal-colors,
  #modalColorButtons,
  #modalColorButtons .color-switcher {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
    min-height: 36px !important;
  }

  #modalColorButtons button,
  .modal-size-buttons button {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .main-photo {
    position: relative !important;
    background: #fff !important;
  }

  .main-photo img {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  #modalAdd {
    position: sticky !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
  }
}


/* GM v58 — critical fix: product card/modal must not be visible on page load */
.product-modal:not(.open),
.cart-drawer:not(.open) {
  display: none !important;
  pointer-events: none !important;
}

.product-modal.open,
.cart-drawer.open {
  display: block !important;
  pointer-events: auto !important;
}

.product-modal:not(.open) .product-dialog,
.product-modal:not(.open) .layer-close,
.cart-drawer:not(.open) .cart-panel,
.cart-drawer:not(.open) .layer-close {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

.product-modal.open .product-dialog,
.cart-drawer.open .cart-panel {
  visibility: visible !important;
  pointer-events: auto !important;
}

@media (max-width: 760px) {
  .product-modal:not(.open) {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .product-modal:not(.open) .product-dialog {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
  }

  .product-modal.open {
    display: block !important;
    opacity: 1 !important;
    visibility: visible !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .product-modal.open .product-dialog {
    display: flex !important;
    opacity: 1 !important;
    visibility: visible !important;
  }

  body:not(.no-scroll) .product-modal:not(.open) {
    display: none !important;
  }
}


/* GM v59 — lock background page scroll while product/cart modal is open */
html.scroll-locked,
body.no-scroll {
  overflow: hidden !important;
  overscroll-behavior: none !important;
  touch-action: none !important;
}

body.no-scroll {
  position: fixed !important;
  width: 100% !important;
  left: 0 !important;
  right: 0 !important;
}

.product-modal.open,
.cart-drawer.open {
  overscroll-behavior: contain !important;
  touch-action: auto !important;
}

.product-modal.open .product-dialog,
.product-modal.open .product-details,
.cart-drawer.open .cart-panel {
  overscroll-behavior: contain !important;
  touch-action: pan-y !important;
  -webkit-overflow-scrolling: touch !important;
}

@media (max-width: 760px) {
  .product-modal.open {
    position: fixed !important;
    inset: 0 !important;
    overflow: hidden !important;
  }

  .product-modal.open .product-dialog {
    height: 100dvh !important;
    min-height: 100dvh !important;
    max-height: 100dvh !important;
    overflow-y: auto !important;
  }

  .product-modal.open .product-details {
    overflow-y: auto !important;
  }
}


/* GM v60 — full-screen product photo zoom */
.main-photo {
  cursor: zoom-in;
}

.main-photo::after {
  content: "Нажмите, чтобы увеличить";
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.88);
  color: #111;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

.photo-zoom:not(.open) {
  display: none !important;
}

.photo-zoom.open {
  position: fixed;
  inset: 0;
  z-index: 300;
  display: block;
  background: #fff;
  pointer-events: auto;
}

.photo-zoom-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #fff;
}

.photo-zoom-dialog {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
  overflow: hidden;
}

.photo-zoom-close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 4;
  background: rgba(255,255,255,.95);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.photo-zoom-toggle {
  position: fixed;
  left: 12px;
  top: calc(12px + env(safe-area-inset-top, 0px));
  z-index: 4;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid #e5e5e5;
  border-radius: 999px;
  background: rgba(255,255,255,.95);
  color: #111;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.photo-zoom-scroll {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  overflow: auto;
  display: grid;
  place-items: center;
  padding: calc(58px + env(safe-area-inset-top, 0px)) 14px calc(54px + env(safe-area-inset-bottom, 0px));
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-x pan-y pinch-zoom;
}

.photo-zoom-scroll img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 120px);
  object-fit: contain;
  cursor: zoom-in;
  transition: width .18s ease, max-width .18s ease, max-height .18s ease;
}

.photo-zoom.open.zoomed .photo-zoom-scroll {
  place-items: start center;
}

.photo-zoom.open.zoomed .photo-zoom-scroll img {
  width: min(220vw, 1600px);
  max-width: none;
  max-height: none;
  cursor: zoom-out;
}

.photo-zoom-help {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  z-index: 4;
  transform: translateX(-50%);
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #777;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .08em;
  text-align: center;
  white-space: nowrap;
}

@media (max-width: 760px) {
  .main-photo::after {
    left: 10px;
    bottom: 10px;
    font-size: 8px;
    padding: 6px 8px;
  }

  .photo-zoom-scroll {
    padding-left: 8px;
    padding-right: 8px;
  }

  .photo-zoom.open.zoomed .photo-zoom-scroll img {
    width: 230vw;
  }
}


/* GM v61 — remove photo zoom, make gallery swipe-friendly */
.main-photo {
  cursor: default !important;
  touch-action: pan-y pinch-zoom !important;
}

.main-photo::after {
  content: none !important;
  display: none !important;
}

.photo-zoom,
.photo-zoom.open,
.photo-zoom-dialog,
.photo-zoom-backdrop {
  display: none !important;
}

.product-gallery,
.main-photo {
  overscroll-behavior: contain !important;
}

@media (max-width: 760px) {
  .main-photo {
    touch-action: pan-y !important;
  }

  .gallery-arrow {
    display: grid !important;
  }

  .thumbs {
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
  }
}


/* GM v62 — fullscreen photo gallery, no zoom */
.main-photo {
  cursor: pointer !important;
}

.main-photo::after {
  content: "Открыть фото" !important;
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  padding: 7px 10px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.9);
  color: #111;
  font-size: 9px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
  pointer-events: none;
}

.photo-viewer:not(.open) {
  display: none !important;
}

.photo-viewer.open {
  position: fixed;
  inset: 0;
  z-index: 320;
  display: block;
  background: #fff;
  pointer-events: auto;
}

.photo-viewer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: #fff;
}

.photo-viewer-dialog {
  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  background: #fff;
  overflow: hidden;
  touch-action: pan-y;
}

.photo-viewer-close {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  z-index: 5;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.photo-viewer-main {
  position: relative;
  z-index: 2;
  min-width: 0;
  min-height: 0;
  margin: 0;
  display: grid;
  place-items: center;
  padding: calc(54px + env(safe-area-inset-top, 0px)) 52px 18px;
  background: #fff;
  overflow: hidden;
  touch-action: pan-y;
}

.photo-viewer-main img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100dvh - 158px);
  object-fit: contain;
  object-position: center;
  user-select: none;
  -webkit-user-select: none;
  -webkit-user-drag: none;
}

.photo-viewer-arrow {
  position: fixed;
  top: 50%;
  z-index: 5;
  transform: translateY(-50%);
  width: 44px;
  height: 72px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  background: rgba(255,255,255,.92);
  color: #111;
  font-size: 40px;
  line-height: 1;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 30px rgba(0,0,0,.06);
}

.photo-viewer-arrow.prev { left: 10px; }
.photo-viewer-arrow.next { right: 10px; }

.photo-viewer-bottom {
  position: relative;
  z-index: 4;
  display: grid;
  gap: 10px;
  padding: 10px 12px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid #eee;
  background: rgba(255,255,255,.96);
}

.photo-viewer-bottom span {
  justify-self: center;
  color: #777;
  font-size: 10px;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.photo-viewer-thumbs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.photo-viewer-thumbs::-webkit-scrollbar {
  display: none;
}

.photo-viewer-thumbs button {
  flex: 0 0 54px;
  width: 54px;
  height: 68px;
  border: 1px solid #e8e8e8;
  border-radius: 10px;
  background: #fff;
  padding: 0;
  overflow: hidden;
  opacity: .42;
}

.photo-viewer-thumbs button.active {
  opacity: 1;
  border-color: #111;
}

.photo-viewer-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
}

@media (max-width: 760px) {
  .main-photo::after {
    left: 10px;
    bottom: 10px;
    font-size: 8px;
    padding: 6px 8px;
  }

  .photo-viewer-main {
    padding: calc(56px + env(safe-area-inset-top, 0px)) 34px 12px;
  }

  .photo-viewer-main img {
    max-height: calc(100dvh - 150px);
  }

  .photo-viewer-arrow {
    width: 34px;
    height: 58px;
    font-size: 32px;
    background: rgba(255,255,255,.88);
  }

  .photo-viewer-arrow.prev { left: 6px; }
  .photo-viewer-arrow.next { right: 6px; }

  .photo-viewer-thumbs button {
    flex-basis: 48px;
    width: 48px;
    height: 60px;
  }
}


/* GM v64 — cart must open above product card after adding */
.cart-drawer.open {
  z-index: 500 !important;
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

.product-modal:not(.open) {
  display: none !important;
  pointer-events: none !important;
}

.product-modal:not(.open) .product-dialog {
  display: none !important;
}
