/* InstrumStroi.kg — storefront styles (tokens, layout, components, responsive) */
:root {
  --bg: #f4f5f7;
  --cd: #fff;
  --tx: #1b1f24;
  --mu: #6b7380;
  --br: #e3e6ea;
  --ac: #ff6a00;
  --ad: #e55f00;
  --price: #a83f00;
  --ink: #1b1f24;
  --soft: #fff0e4;
  --pa: #fff;
  --pb: #e6e9ee;
  --ic: #2b323a;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --s1: 8px;
  --s2: 16px;
  --s3: 24px;
  --s4: 40px;
  --r: 14px;
  box-sizing: border-box;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #111418;
    --cd: #1b2026;
    --tx: #eef0f3;
    --mu: #9aa3af;
    --br: #2c333b;
    --ink: #0b0d10;
    --soft: #2a2018;
    --pa: #2b3138;
    --pb: #181c21;
    --ic: #c9d0d9;
    --price: #ff9b45;
  }
}
:root[data-theme="dark"] {
  --bg: #111418;
  --cd: #1b2026;
  --tx: #eef0f3;
  --mu: #9aa3af;
  --br: #2c333b;
  --ink: #0b0d10;
  --soft: #2a2018;
  --pa: #2b3138;
  --pb: #181c21;
  --ic: #c9d0d9;
  --price: #ff9b45;
}
html {
  scroll-padding-top: env(safe-area-inset-top, 0px);
  scroll-behavior: smooth;
  height: 100%;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--tx);
  font: 15px/1.45 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  transition:
    transform 0.15s,
    background 0.2s,
    opacity 0.2s;
}
button:active {
  transform: scale(0.96);
}
a {
  color: inherit;
  text-decoration: none;
}
.w {
  max-width: 1600px;
  margin: 0 auto;
  padding: 0 var(--s2);
}
header {
  background: var(--ink);
  color: #fff;
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 10;
}
.hw {
  display: flex;
  gap: var(--s2);
  align-items: center;
  padding-top: var(--s1);
  padding-bottom: var(--s1);
}
.logo {
  display: flex;
  align-items: center;
  gap: var(--s1);
  font-weight: 800;
  font-size: 18px;
  white-space: nowrap;
}
.logo img {
  width: 44px;
  height: 44px;
  border-radius: 50%;
}
.logo em {
  font-style: normal;
  color: var(--ac);
}
.sr {
  flex: 1;
  display: flex;
  min-width: 0;
}
.sr input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 var(--s2);
  border: 0;
  border-radius: 12px 0 0 12px;
  background: #fff;
  color: #1b1f24;
  outline: 0;
}
.sr button {
  height: 44px;
  padding: 0 var(--s2);
  background: var(--ac);
  color: #fff;
  border-radius: 0 12px 12px 0;
  font-weight: 600;
}
.nv {
  display: flex;
  gap: 4px;
}
.ib {
  position: relative;
  min-width: 64px;
  height: 48px;
  padding: 4px 8px;
  border-radius: 10px;
  color: #fff;
  font-size: 12px;
  text-align: center;
  line-height: 1.2;
}
.ib:hover {
  background: #2b323a;
}
.ib i {
  display: flex;
  justify-content: center;
  margin-bottom: 2px;
}
.cn {
  position: absolute;
  top: 0;
  right: 8px;
  background: var(--ac);
  border-radius: 9px;
  font-size: 11px;
  min-width: 18px;
  height: 18px;
  line-height: 18px;
}
.cn:empty,
.cn[data-n="0"] {
  display: none;
}
.bump {
  animation: bp 0.5s ease-out;
}
@keyframes bp {
  from {
    box-shadow: 0 0 0 0 rgba(255, 106, 0, 0.7);
  }
  to {
    box-shadow: 0 0 0 9px rgba(255, 106, 0, 0);
  }
}
@keyframes up {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
#app {
  padding-top: var(--s3);
  padding-bottom: var(--s4);
  min-height: 70vh;
}
.pg {
  animation: up 0.4s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
}
section {
  margin-bottom: var(--s3);
}
h1,
h2,
h3 {
  margin: 0 0 var(--s2);
  line-height: 1.2;
}
h1 {
  font-size: clamp(22px, 4vw, 34px);
}
h2 {
  font-size: 20px;
}
.hero {
  border-radius: 20px;
  padding: clamp(20px, 4vw, 40px);
  background: linear-gradient(120deg, var(--ink), #3a2a1c 60%, var(--ac));
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.hero p {
  margin: 0 0 var(--s2);
  opacity: 0.9;
}
.hero .em {
  width: clamp(110px, 20vw, 210px);
  color: #fff;
  flex: none;
}
.btn {
  display: inline-block;
  background: var(--ac);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  font-weight: 600;
  text-align: center;
}
.btn:hover {
  background: var(--ad);
}
.btn.g {
  background: var(--cd);
  color: var(--tx);
  border: 1px solid var(--br);
}
.perks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s2);
  margin-bottom: var(--s3);
}
.perk,
.box {
  background: var(--cd);
  border: 1px solid var(--br);
  border-radius: var(--r);
  padding: var(--s2);
}
.perk i {
  display: block;
  margin-bottom: 8px;
  color: var(--ac);
}
.perk small,
.mu {
  color: var(--mu);
}
.cats {
  display: flex;
  gap: var(--s1);
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  margin-bottom: var(--s2);
}
.chip {
  white-space: nowrap;
  padding: 8px 16px;
  border-radius: 20px;
  background: var(--cd);
  border: 1px solid var(--br);
}
.chip.on {
  background: var(--ac);
  border-color: var(--ac);
  color: #fff;
}
.bar {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s1) var(--s2);
  align-items: center;
  margin-bottom: var(--s2);
}
.bar label {
  font-size: 13px;
  color: var(--mu);
  display: flex;
  align-items: center;
  gap: 6px;
}
.bar input,
.bar select,
.f input,
.f select {
  height: 40px;
  padding: 0 10px;
  border: 1px solid var(--br);
  border-radius: 10px;
  background: var(--cd);
  width: 100%;
  outline: 0;
}
.bar input {
  width: 90px;
}
.bar select {
  width: auto;
}
input:focus,
select:focus {
  border-color: var(--ac);
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--s2);
}
.card {
  background: var(--cd);
  border: 1px solid var(--br);
  border-radius: var(--r);
  overflow: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
  animation: pop 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) backwards;
  animation-delay: calc(var(--i, 0) * 35ms);
  transition:
    border-color 0.25s,
    box-shadow 0.25s;
}
.card:hover {
  border-color: var(--ac);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}
.pic {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 50% 35%, var(--pa), var(--pb));
  position: relative;
  color: var(--ic);
}
.pic .ill {
  width: 56%;
  max-width: 120px;
  transition: transform 0.35s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pic small {
  position: absolute;
  bottom: 8px;
  left: 10px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--mu);
  font-weight: 700;
}
.card:hover .ill {
  transform: translateY(-4px);
}
.pc {
  overflow: hidden;
}
.bd {
  position: absolute;
  top: var(--s1);
  left: var(--s1);
  background: var(--ac);
  color: #fff;
  font-weight: 700;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}
.fv {
  position: absolute;
  top: var(--s1);
  right: var(--s1);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--cd);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mu);
  transition: color 0.2s;
}
.cb {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}
.pr {
  font-size: 18px;
  font-weight: 800;
}
.old {
  color: var(--mu);
  text-decoration: line-through;
  font-size: 13px;
  margin-left: 6px;
  font-weight: 400;
}
.nm {
  font-size: 13px;
  min-height: 38px;
}
.rt {
  font-size: 12px;
  color: var(--mu);
}
.rt b {
  color: #f5a300;
}
.add {
  margin-top: auto;
  background: var(--ac);
  color: #fff;
  height: 40px;
  border-radius: 10px;
  font-weight: 600;
  padding: 0 12px;
}
.add:hover {
  background: var(--ad);
}
.add.in {
  background: var(--soft);
  color: var(--ac);
}
.two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
}
.two .pic {
  min-height: 320px;
  border-radius: var(--r);
}
.two .pic .ill {
  width: 50%;
  max-width: 240px;
}
.th {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-top: 8px;
}
.th .pic {
  min-height: 0 !important;
  height: 72px;
  border-radius: 10px;
}
table {
  width: 100%;
  border-collapse: collapse;
  margin: var(--s2) 0;
}
td {
  padding: 8px 0;
  border-bottom: 1px solid var(--br);
}
td:first-child {
  color: var(--mu);
}
.rev {
  background: var(--bg);
  border-radius: 10px;
  padding: var(--s1) 12px;
  margin-top: var(--s1);
  font-size: 14px;
}
.row {
  display: flex;
  gap: var(--s2);
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid var(--br);
}
.row .em {
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, var(--pa), var(--pb));
  border-radius: 10px;
  padding: 8px;
  color: var(--ic);
}
.row > div {
  flex: 1;
}
.q {
  display: flex;
  align-items: center;
  gap: var(--s1);
}
.q button {
  width: 32px;
  height: 32px;
  border: 1px solid var(--br);
  border-radius: 8px;
}
.cols {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s3);
  align-items: start;
}
.sum div {
  display: flex;
  justify-content: space-between;
  margin-bottom: var(--s1);
}
.sum .t {
  font-size: 20px;
  font-weight: 800;
}
.f {
  display: grid;
  gap: 12px;
}
.f label {
  font-size: 13px;
  color: var(--mu);
  display: grid;
  gap: 4px;
}
.pf {
  display: flex;
}
.pf span {
  display: flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid var(--br);
  border-right: 0;
  border-radius: 10px 0 0 10px;
  background: var(--bg);
}
.pf input {
  border-radius: 0 10px 10px 0;
}
.empty {
  text-align: center;
  padding: var(--s4) var(--s2);
  color: var(--mu);
}
.empty i {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
  opacity: 0.5;
}
.cg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--s2);
}
footer {
  background: var(--ink);
  color: #cfd4db;
  padding: var(--s3) 0;
  font-size: 14px;
}
.fg {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: var(--s3);
}
footer h4 {
  color: #fff;
  margin: 0 0 var(--s1);
}
footer a {
  display: block;
  padding: 2px 0;
}
footer a:hover {
  color: var(--ac);
}
.ts {
  position: fixed;
  left: 50%;
  bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 20px);
  background: var(--ink);
  color: #fff;
  padding: 10px 18px;
  border-radius: 12px;
  opacity: 0;
  pointer-events: none;
  transition: 0.3s;
  z-index: 50;
  max-width: 90%;
  text-align: center;
}
.ts.on {
  opacity: 1;
  transform: translate(-50%, 0);
}
nav.tb {
  display: none;
}
@media (max-width: 900px) {
  .cols,
  .two {
    grid-template-columns: 1fr;
  }
  .two .pic {
    min-height: 200px;
    font-size: 90px;
  }
}
@media (max-width: 700px) {
  .hw {
    flex-wrap: wrap;
  }
  .logo {
    order: 1;
  }
  .nv {
    order: 2;
    margin-left: auto;
  }
  .sr {
    order: 3;
    flex-basis: 100%;
  }
  .nv .ib {
    display: none;
  }
  .nv .ib.acc {
    display: block;
    min-width: 48px;
  }
  .nv .ib.acc span {
    display: none;
  }
  .hero .em {
    display: none;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .pic {
    height: 130px;
    font-size: 56px;
  }
  body {
    padding-bottom: 64px;
  }
  .logo {
    gap: 6px;
  }
  .logo img {
    width: 34px;
    height: 34px;
  }
  .logo b {
    font-size: 15px;
  }
  nav.tb {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 10;
    background: var(--cd);
    border-top: 1px solid var(--br);
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  nav.tb a {
    flex: 1;
    padding: 8px 0;
    font-size: 11px;
    color: var(--mu);
    text-align: center;
    position: relative;
  }
  nav.tb a.on {
    color: var(--ac);
  }
  nav.tb i {
    display: flex;
    justify-content: center;
    font-style: normal;
  }
  nav.tb .cn {
    right: calc(50% - 22px);
  }
}

/* Contrast-safe price hierarchy in both automatic and explicit dark themes. */
.pr:not(.hb), .pbig, .sum .t > span:last-child, .row > div > b, .hi > b,
.saved-summary .t b, .seller-order-summary > b { color: var(--price); }
.pr { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; white-space: normal; overflow-wrap: anywhere; }
.pr .old, .old { color: var(--mu); text-decoration: line-through; white-space: nowrap; }
.pbig { overflow-wrap: anywhere; }
.sum .t > span:last-child, .row > div > b, .hi > b, .saved-summary .t b, .seller-order-summary > b { font-weight: 800; }

/* Native, low-motion hero carousel. The existing image is a CSS background,
   so a delayed/missing image still leaves the gradient and text readable. */
.hero.hero-slider { position: relative; display: block; min-height: 320px; padding: clamp(28px, 5vw, 68px) clamp(24px, 5vw, 68px) 76px; overflow: hidden; color: #fff; }
.hero-slide { max-width: 780px; }
.hero-slide[hidden] { display: none; }
.hero-slide h1 { margin: 8px 0 12px; }
.hero-slide p { margin-bottom: 20px; }
.hero-eyebrow { display: inline-block; color: #ffd1a3; font-size: 13px; font-weight: 700; letter-spacing: .04em; }
.hero-controls { position: absolute; right: clamp(18px, 4vw, 48px); bottom: 20px; display: flex; align-items: center; gap: 10px; }
.hero-arrow, .hero-dot { display: inline-grid; place-items: center; border: 1px solid rgba(255,255,255,.55); color: #fff; background: rgba(10,14,18,.48); cursor: pointer; }
.hero-arrow { width: 36px; height: 36px; border-radius: 50%; font-size: 24px; line-height: 1; }
.hero-dots { display: flex; align-items: center; gap: 7px; }
.hero-dot { width: 10px; height: 10px; padding: 0; border-radius: 50%; }
.hero-dot.active { background: var(--ac); border-color: #fff; transform: scale(1.15); }
.hero-arrow:focus-visible, .hero-dot:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
@media (max-width: 700px) {
  .hero.hero-slider { min-height: 290px; padding: 24px 20px 74px; }
  .hero-slide h1 { max-width: 100%; font-size: clamp(25px, 7vw, 34px); }
  .hero-slide p { max-width: 100%; }
  .hero-controls { left: 16px; right: 16px; bottom: 16px; justify-content: center; }
}
@media (max-width: 350px) {
  .hero.hero-slider { min-height: 310px; padding-inline: 16px; }
  .hero-slide .btn { max-width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-dot.active { transform: none; }
  .hero-arrow, .hero-dot { scroll-behavior: auto; }
}
#sp {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: var(--ink);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  transition:
    opacity 0.5s,
    visibility 0.5s;
}
#sp.off {
  opacity: 0;
  visibility: hidden;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.bar2 {
  width: 140px;
  height: 4px;
  border-radius: 2px;
  background: #2b323a;
  overflow: hidden;
}
.bar2:after {
  content: "";
  display: block;
  height: 100%;
  width: 40%;
  background: var(--ac);
  border-radius: 2px;
  animation: ldg 1s ease-in-out infinite;
}
@keyframes pl {
  50% {
    transform: scale(1.08);
  }
}
@keyframes ldg {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(250%);
  }
}
.ar {
  display: flex;
  gap: var(--s1);
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid var(--br);
}
.ar span {
  flex: 1;
}
.ar input {
  width: 110px;
  height: 36px;
  padding: 0 8px;
  border: 1px solid var(--br);
  border-radius: 8px;
  background: var(--cd);
}
.sr {
  position: relative;
}
.sg {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: var(--cd);
  color: var(--tx);
  border: 1px solid var(--br);
  border-radius: 12px;
  margin-top: 6px;
  overflow: hidden;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
}
.sg.on {
  display: block;
}
.sg a {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
}
.sg a:hover {
  background: var(--soft);
}
.stk {
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--mu);
}
.stk:before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1a9d55;
}
.s-order:before {
  background: #f5a300;
}
.s-out:before {
  background: #c0392b;
}
.fv.on,
.fvb.on {
  color: var(--ac);
}
.fv.on svg,
.fvb.on svg {
  fill: currentColor;
}
.btn svg {
  vertical-align: -4px;
  margin-right: 6px;
}
.fvb svg {
  margin: 0;
}
.promo {
  background: var(--soft);
  border: 1px dashed var(--ac);
  border-radius: var(--r);
  padding: 12px var(--s2);
  text-align: center;
}
.igs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: var(--s1);
}
.igs a {
  aspect-ratio: 1;
  border-radius: 12px;
  background: radial-gradient(circle at 50% 35%, var(--pa), var(--pb));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ic);
  transition: box-shadow 0.25s;
}
.igs a:hover {
  box-shadow: 0 0 0 2px var(--ac);
}
.igs .ill {
  width: 50%;
}
.ci svg {
  color: var(--ac);
  margin-bottom: 6px;
}
.ar {
  flex-wrap: wrap;
}
.ar select {
  height: 36px;
  border: 1px solid var(--br);
  border-radius: 8px;
  background: var(--cd);
  color: var(--tx);
}
.doc p {
  max-width: 760px;
}
.doc h2 {
  margin: 24px 0 8px;
  font-size: 18px;
}
.legal-draft-notice {
  max-width: none !important;
  padding: 12px 14px;
  border: 1px solid #edc879;
  border-radius: 10px;
  background: #fff7df;
  color: #5a4314;
}
.pic.ph {
  height: auto;
  aspect-ratio: 3/4;
  background: linear-gradient(145deg, #252a30, #171b20);
  background-image:
    linear-gradient(145deg, #252a30, #171b20), url(/assets/no-photo.svg);
  background-blend-mode: normal;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.two .pic.ph {
  min-height: 0;
}
.th .pic.ph {
  aspect-ratio: auto;
  height: 72px;
}
.row .em.ph {
  background: #fff url(/assets/no-photo.svg) center/cover no-repeat;
  padding: 0;
}
.pw {
  position: relative;
}
.qv {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  height: 36px;
  border-radius: 10px;
  background: rgba(27, 31, 36, 0.88);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.25s,
    transform 0.25s;
}
.card:hover .qv,
.qv:focus-visible {
  opacity: 1;
  transform: none;
}
@media (hover: none) {
  .qv {
    display: none;
  }
}
.act {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}
.act .add {
  margin: 0;
  flex: 1 1 70px;
}
.cb2 {
  width: 44px;
  height: 40px;
  border: 1px solid var(--br);
  border-radius: 10px;
  color: var(--ac);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.cb2:hover {
  background: var(--soft);
}
.stp {
  display: flex;
  align-items: center;
  border: 1px solid var(--ac);
  border-radius: 10px;
  height: 40px;
  flex: none;
}
.stp button {
  width: 34px;
  height: 100%;
  color: var(--ac);
  font-size: 20px;
}
.stp b {
  min-width: 24px;
  text-align: center;
}
@media (max-width: 700px) {
  .stp {
    flex: 1 1 100%;
    justify-content: space-between;
  }
  .stp b {
    flex: 1;
  }
}
.mo {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 40;
  padding: var(--s2);
}
.mo.on {
  display: flex;
  animation: fade 0.2s;
}
@keyframes fade {
  from {
    opacity: 0;
  }
}
.mc {
  background: var(--cd);
  border-radius: 16px;
  max-width: 760px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  padding: var(--s3);
  position: relative;
  animation: up 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.mc .x {
  position: absolute;
  top: 6px;
  right: 14px;
  font-size: 30px;
  color: var(--mu);
  z-index: 2;
}
@media (max-width: 700px) {
  .mc {
    grid-template-columns: 1fr;
  }
  .mc .pic.ph {
    aspect-ratio: auto;
    height: 240px;
  }
}
.shelf {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  padding-bottom: 6px;
}
.shelf .card {
  min-width: 200px;
  flex: none;
}
.rev {
  display: flex;
  gap: 12px;
  padding: 12px;
}
.rev2 {
  background: var(--bg);
  border-radius: 10px;
  padding: 8px 12px;
  margin-top: 8px;
  font-size: 14px;
}
.av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--ac);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex: none;
}
.vb {
  font-size: 12px;
  color: #1a9d55;
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-top: 4px;
}
.rs {
  display: flex;
  gap: 4px;
  margin-bottom: 12px;
}
.rs button {
  padding: 2px;
}
.rform textarea {
  width: 100%;
  border: 1px solid var(--br);
  border-radius: 10px;
  padding: 10px;
  background: var(--cd);
  color: var(--tx);
  font: inherit;
  resize: vertical;
  outline: 0;
}
.rform textarea:focus {
  border-color: var(--ac);
}
.rsum {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin-bottom: var(--s2);
}
.big {
  font-size: 40px;
  font-weight: 800;
}
.sl {
  max-width: 1000px;
  margin: 0 auto;
}
.sl select {
  height: 40px;
  border: 1px solid var(--br);
  border-radius: 10px;
  background: var(--cd);
  color: var(--tx);
  padding: 0 10px;
}
@media print {
  header,
  footer,
  nav.tb,
  .noprint {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  .box {
    border: 0;
  }
}
.ft {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.3fr;
  gap: var(--s4) var(--s3);
}
.ft h4 {
  color: #fff;
  margin: 0 0 var(--s1);
  font-size: 15px;
}
.ft a,
.ft span {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
}
.ft p {
  margin: var(--s1) 0 0;
  max-width: 320px;
}
.ft .btn {
  display: inline-flex;
  margin-top: var(--s1);
  justify-content: center;
  color: #fff;
}
.soc {
  display: flex;
  gap: var(--s1);
  margin-top: var(--s2);
}
.ft .soc a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2b323a;
  justify-content: center;
  padding: 0;
  transition: background 0.2s;
}
.ft .soc a:hover {
  background: var(--ac);
  color: #fff;
}
.fl {
  grid-column: 1/-1;
  border-top: 1px solid #2b323a;
  padding-top: var(--s2);
  font-size: 13px;
  color: #8b94a1;
}
@media (max-width: 900px) {
  .ft {
    grid-template-columns: 1fr 1fr;
  }
  .ft > div:first-child,
  .ft > .fc {
    grid-column: 1/-1;
  }
}
:focus-visible {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}
.hp {
  width: clamp(130px, 22vw, 240px);
  aspect-ratio: 1;
  border-radius: 18px;
  background: var(--c1) center/cover;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
  transform: rotate(3deg);
  flex: none;
}
.igs a.ig {
  background-size: cover;
  background-position: center;
}
.nm {
  display: block;
}
.s-low:before {
  background: #f5a300;
}
.add:disabled {
  background: var(--br);
  color: var(--mu);
  cursor: not-allowed;
}
.add:disabled:hover {
  background: var(--br);
}
.nl {
  width: 100%;
  color: var(--ac);
  font-size: 13px;
  padding: 4px;
}
.inv {
  border-color: #c0392b !important;
  animation: shk 0.3s;
}
@keyframes shk {
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.otp {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.otp input {
  width: 44px;
  height: 52px;
  text-align: center;
  font-size: 22px;
  font-weight: 700;
  border: 1px solid var(--br);
  border-radius: 10px;
  background: var(--cd);
  color: var(--tx);
  padding: 0;
  outline: 0;
  min-width: 0;
}
.otp input:focus {
  border-color: var(--ac);
  box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.18);
}
.tm {
  text-align: center;
  font-size: 13px;
  min-height: 22px;
}
.lk {
  color: var(--ac);
  font-weight: 600;
}
.lg {
  position: relative;
}
.lg > button {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 48px;
  padding: 0 10px;
  border-radius: 10px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}
.lg > button:hover {
  background: #2b323a;
}
.lgl {
  position: absolute;
  right: 0;
  top: 100%;
  background: var(--cd);
  color: var(--tx);
  border: 1px solid var(--br);
  border-radius: 12px;
  min-width: 150px;
  overflow: hidden;
  display: none;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 30;
}
.lgl.on {
  display: block;
  animation: up 0.2s;
}
.lgl button {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
}
.lgl button:hover {
  background: var(--soft);
}
.lgl button.on {
  color: var(--ac);
  font-weight: 700;
}
.bc {
  font-size: 13px;
  color: var(--mu);
  margin-bottom: var(--s2);
}
.bc a:hover {
  color: var(--ac);
}
.pd {
  display: grid;
  grid-template-columns: minmax(0, 440px) minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
}
.gl {
  display: flex;
  gap: 12px;
}
.thv {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 60px;
  flex: none;
}
.thv .pic {
  width: 60px;
  height: 80px;
  aspect-ratio: auto;
  border-radius: 8px;
  border: 2px solid transparent;
  padding: 0;
  min-height: 0;
}
.thv .pic.on {
  border-color: var(--ac);
}
.gm {
  flex: 1;
  min-width: 0;
}
.gm .pic {
  aspect-ratio: 3/4;
  width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
  min-height: 0;
}
.pi h1 {
  font-size: 22px;
  font-weight: 600;
  margin: 4px 0 8px;
}
.pbox {
  background: var(--cd);
  border: 1px solid var(--br);
  border-radius: var(--r);
  padding: var(--s2);
  margin-top: var(--s2);
}
.pbig {
  font-size: 32px;
  font-weight: 800;
}
.dli {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
  font-size: 14px;
}
.dli svg {
  color: var(--ac);
  flex: none;
}
.sec {
  margin-top: var(--s4);
}
.sbuy {
  display: none;
}
.fb2 {
  margin: 8px 0 12px;
}
.bar3 {
  height: 6px;
  border-radius: 3px;
  background: var(--br);
  overflow: hidden;
  margin-top: 6px;
}
.bar3 i {
  display: block;
  height: 100%;
  background: var(--ac);
  transition: width 0.4s;
}
@keyframes grow {
  from {
    transform: scaleY(0);
  }
}
.st3 {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 10px;
  background: var(--soft);
  font-size: 12px;
}
@media (max-width: 900px) {
  .pd {
    grid-template-columns: 1fr;
    gap: var(--s2);
  }
  .gl {
    flex-direction: column-reverse;
  }
  .thv {
    flex-direction: row;
    width: auto;
    overflow-x: auto;
  }
  .thv .pic {
    width: 56px;
    height: 72px;
    flex: none;
  }
  .gm .pic {
    aspect-ratio: 1/1;
    max-height: 62vh;
  }
}
@media (max-width: 800px) {
  .slay {
    grid-template-columns: 1fr;
  }
  .side {
    flex-direction: row;
    overflow-x: auto;
    top: 0;
    z-index: 5;
  }
  .sb0 {
    display: none;
  }
  .si {
    white-space: nowrap;
  }
  .gr {
    grid-template-columns: 48px minmax(0, 1fr) 36px;
  }
  .gr label,
  .gr .stk,
  .gr .cl {
    grid-column: 2/-1;
  }
}
@media (max-width: 700px) {
  .w {
    padding: 0 12px;
  }
  .grid,
  .shelf {
    gap: 12px;
  }
  .cb {
    padding: 10px;
    gap: 6px;
  }
  .pr {
    font-size: 17px;
  }
  .nm {
    font-size: 14px;
    line-height: 1.3;
    min-height: 38px;
  }
  .add,
  .cb2,
  .stp {
    height: 44px;
  }
  .add {
    font-size: 15px;
  }
  .stp button {
    width: 40px;
  }
  .hp {
    width: 96px;
  }
  .shelf .card {
    min-width: 170px;
  }
  .sbuy {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: calc(58px + env(safe-area-inset-bottom, 0px));
    background: var(--cd);
    border-top: 1px solid var(--br);
    padding: 8px var(--s2);
    gap: 12px;
    align-items: center;
    z-index: 9;
  }
  .sbuy .act {
    flex: 1;
    flex-wrap: nowrap;
    margin: 0;
  }
  .sbuy .stp {
    flex: none !important;
  }
  .pbox .act {
    display: none;
  }
  body.pp {
    padding-bottom: 130px;
  }
  .pbig {
    font-size: 26px;
  }
  .otp input {
    width: 40px;
    height: 48px;
  }
  .lg > button span {
    display: none;
  }
}
/* === Stage 1: buttons never overflow === */
.btn,
.add,
.cb2,
.stp,
.chip,
.nl {
  box-sizing: border-box;
  max-width: 100%;
}
.add,
.btn {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.1;
}
.card {
  container-type: inline-size;
  border-radius: 16px;
}
.act .add {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 8px;
  font-size: 13px;
  font-size: clamp(12px, 6.2cqw, 15px);
}
.nm {
  display: -webkit-box;
  line-clamp: 2;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}
.cb {
  padding: 10px 12px 12px;
}
@media (max-width: 700px) {
  .grid,
  .shelf {
    gap: 10px;
  }
  .cb {
    padding: 8px 10px 10px;
    gap: 4px;
  }
  .nm {
    font-size: 13px;
    line-height: 1.3;
    min-height: 34px;
  }
  .pr {
    font-size: 16px;
  }
  .pr .old {
    font-size: 12px;
    margin-left: 4px;
  }
  .fv {
    width: 32px;
    height: 32px;
    top: 6px;
    right: 6px;
  }
  .bd {
    top: 6px;
    left: 6px;
  }
}
/* === Stage 1: seller table, toggle, 2FA, devices === */
/* === v6: overflow hardening, 320–440 px (WB-style mobile) === */
html,
body {
  overflow-x: clip;
}
.card,
.cb,
.row > div,
.hero > div:first-child {
  min-width: 0;
}
.btn {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  min-width: 0;
  padding: 12px clamp(8px, 2vw, 20px);
  font-size: clamp(13px, 3vw, 15px);
}
.btn svg {
  margin: 0;
  flex: none;
}
.add,
.nl {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.act .add {
  font-size: 13px;
  font-size: clamp(12px, 8cqw, 15px);
}
.nm {
  overflow-wrap: anywhere;
  hyphens: auto;
}
.stk {
  flex-wrap: wrap;
}
.cols {
  grid-template-columns: minmax(0, 1fr) 340px;
}
@media (max-width: 900px) {
  .cols {
    grid-template-columns: minmax(0, 1fr);
  }
}
.otp input {
  flex: 1;
  min-width: 0;
  max-width: 44px;
  width: auto;
}
@media (max-width: 700px) {
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(8px, 2vw, 16px);
  }
  .shelf {
    gap: clamp(8px, 2vw, 16px);
  }
  .shelf .card {
    min-width: 156px;
  }
  .hero {
    padding: 20px 16px;
    gap: 12px;
  }
  .hero h1 {
    font-size: clamp(20px, 6vw, 26px);
  }
  .hero p {
    font-size: 14px;
  }
  .hp {
    width: 72px;
    transform: none;
    border-radius: 14px;
  }
  .row {
    gap: 10px;
  }
  .row .em {
    width: 52px;
    height: 52px;
  }
  .row > div {
    overflow-wrap: anywhere;
  }
  .otp {
    gap: 6px;
  }
  .otp input {
    height: 48px;
  }
  .act {
    gap: 6px;
  }
  .cb2 {
    width: 40px;
  }
  .act .add {
    padding: 0 6px;
  }
  .sbuy {
    gap: 10px;
    padding: 8px 12px;
  }
  .sbuy > div:first-child {
    flex: none;
  }
}
.nl {
  white-space: normal;
  line-height: 1.2;
  font-size: 12px;
  padding: 2px 0;
}
.pr,
.old {
  white-space: nowrap;
}
.pr {
  overflow-wrap: normal;
}
/* === Stage 2/3: delivery, payments, splash === */
.fs {
  border: 0;
  padding: 0;
  margin: 0;
  min-width: 0;
  display: grid;
  gap: 8px;
}
.fs legend {
  font-size: 13px;
  color: var(--mu);
  padding: 0;
  margin-bottom: 6px;
}
.f .opt {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--br);
  border-radius: 12px;
  padding: 12px;
  cursor: pointer;
  color: var(--tx);
  font-size: 14px;
  position: relative;
  transition:
    border-color 0.2s,
    background 0.2s;
}
.f .opt.on {
  border-color: var(--ac);
  background: var(--soft);
}
.opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.opt:focus-within {
  outline: 2px solid var(--ac);
  outline-offset: 2px;
}
.oi {
  color: var(--ac);
  flex: none;
  display: flex;
}
.ot {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.ot small {
  color: var(--mu);
  font-size: 12px;
  overflow-wrap: anywhere;
}
.op {
  font-weight: 700;
  white-space: nowrap;
  font-size: 14px;
}
.cform {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px dashed var(--br);
  border-radius: 12px;
}
.cform[hidden],
#rg[hidden] {
  display: none;
}
.two2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.cnw {
  position: relative;
}
.cnw input {
  width: 100%;
}
.cnw b {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  color: var(--ac);
}
.pmc {
  background: var(--cd);
  border-radius: 20px;
  max-width: 420px;
  width: 100%;
  padding: 24px;
  max-height: 92vh;
  overflow: auto;
  animation: up 0.3s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.pmw {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.pmw h3 {
  margin: 0;
}
.pmw p {
  margin: 0;
}
.spin {
  width: 48px;
  height: 48px;
  border: 4px solid var(--br);
  border-top-color: var(--ac);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}
.pmi {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  color: #fff;
  background: #1a9d55;
  animation: pop 0.4s;
}
.pmi.bad {
  background: #c0392b;
}
#pq {
  background: #fff;
  padding: 12px;
  border-radius: 16px;
  width: 230px;
  height: 230px;
}
#pq svg {
  width: 100%;
  height: 100%;
  display: block;
}
#pq p {
  color: #6b7380;
  text-align: center;
  padding-top: 90px;
  margin: 0;
}
.bt {
  display: flex;
  gap: 8px;
  width: 100%;
}
.bt button {
  flex: 1;
  padding: 8px;
  border: 1px solid var(--br);
  border-radius: 10px;
  font-weight: 600;
}
.bt button.on {
  border-color: var(--ac);
  background: var(--soft);
  color: var(--ac);
}
.pb2 {
  height: 4px;
  background: var(--br);
  border-radius: 2px;
  overflow: hidden;
  width: 100%;
}
.pb2 i {
  display: block;
  height: 100%;
  background: var(--ac);
}
#sp {
  background: radial-gradient(
    circle at 50% 42%,
    #2a1d12 0,
    #14171b 55%,
    #0b0d10 100%
  );
  transition:
    opacity 0.6s ease,
    visibility 0.6s,
    transform 0.6s;
}
#sp.off {
  transform: scale(1.03);
}
.spc {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.spm {
  overflow: visible;
}
.spm circle,
.spm path {
  fill: none;
  stroke: #ff6a00;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.spm .r1 {
  stroke-dasharray: 290;
  stroke-dashoffset: 290;
  animation: dr 1.1s 0.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.spm .r2 {
  stroke: #fff;
  stroke-width: 1.5;
  opacity: 0.45;
  stroke-dasharray: 214;
  stroke-dashoffset: 214;
  animation: dr 1.1s 0.35s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.spm .teeth {
  stroke-width: 7;
  stroke-dasharray: 13.6 13.6;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  animation:
    fade 0.6s 0.6s forwards,
    spin 8s linear infinite;
}
.spm .bolt {
  stroke: #fff;
  stroke-width: 3;
  stroke-dasharray: 120;
  stroke-dashoffset: 120;
  animation: dr 0.9s 0.7s forwards;
}
.spm .hole {
  stroke-width: 2;
  opacity: 0;
  animation: fade 0.4s 1.1s forwards;
}
.spw {
  font-weight: 800;
  letter-spacing: 0.34em;
  color: #fff;
  font-size: 18px;
  opacity: 0;
  animation: wm 1s 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
  padding-left: 0.34em;
}
.spw b {
  color: #ff6a00;
  font-weight: 800;
}
.spw i {
  font-style: normal;
  color: #8b94a1;
  letter-spacing: 0.1em;
}
.spl {
  width: 160px;
  height: 3px;
  background: #2b323a;
  border-radius: 2px;
  overflow: hidden;
}
.spl i {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, #ff6a00, #ffb066);
  transform-origin: left;
  transform: scaleX(0);
  animation: ld2 1.3s 0.2s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
@keyframes dr {
  to {
    stroke-dashoffset: 0;
  }
}
@keyframes fade {
  to {
    opacity: 1;
  }
}
@keyframes wm {
  from {
    opacity: 0;
    letter-spacing: 0.6em;
  }
  to {
    opacity: 1;
    letter-spacing: 0.34em;
  }
}
@keyframes ld2 {
  to {
    transform: scaleX(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .spm * {
    stroke-dashoffset: 0 !important;
    opacity: 1 !important;
  }
  .spm .r2 {
    opacity: 0.45 !important;
  }
  .spw {
    opacity: 1 !important;
  }
  .spl i {
    transform: none !important;
  }
}
@media (max-width: 480px) {
  .two2 {
    grid-template-columns: 1fr 1fr;
  }
  .f .opt {
    padding: 10px;
  }
  .pmc {
    padding: 18px;
  }
}
/* === Rev3 / Module 1: header + search alignment === */
.hw {
  align-items: center;
}
.nv {
  display: flex;
  align-items: center;
  gap: 2px;
}
.ib {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 48px;
  line-height: 1.2;
}
.ib i {
  margin-bottom: 2px;
}
.sr input,
.sr button {
  margin: 0;
  border: 0;
  min-width: 0;
  -webkit-appearance: none;
  appearance: none;
}
.sr input {
  border-radius: 12px 0 0 12px;
  padding-right: 12px;
}
.sr button {
  border-radius: 0 12px 12px 0;
}
@media (max-width: 700px) {
  .hw {
    padding-top: 10px;
    padding-bottom: 10px;
    row-gap: 10px;
  }
  .nv .ib.acc {
    display: flex !important;
    min-width: 44px;
    height: 44px;
    padding: 0;
  }
  .nv .ib.acc > span:not(.cn) {
    display: none;
  }
  .nv .ib.acc .cn:not(:empty) {
    display: block;
    top: 2px;
    right: 2px;
  }
  .lg > button {
    height: 44px;
  }
}
/* === Rev3 / Module 2: touch carousel === */
.carw {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background: var(--cd);
}
.car {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-x: contain;
  aspect-ratio: 3/4;
  outline: 0;
  cursor: grab;
}
.car::-webkit-scrollbar {
  display: none;
}
.car.drag {
  scroll-snap-type: none;
  cursor: grabbing;
  user-select: none;
}
.car > * {
  flex: 0 0 100%;
  scroll-snap-align: center;
  scroll-snap-stop: always;
  min-width: 0;
}
.car .pic {
  aspect-ratio: auto !important;
  height: 100%;
  border-radius: 0;
  min-height: 0;
}
.car .vd {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: #111;
  color: #fff;
  text-align: center;
  padding: 16px;
}
.car .vd video {
  max-width: 100%;
  max-height: 100%;
}
.dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 6px;
  pointer-events: none;
}
.dots i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.25);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.6);
  transition:
    width 0.25s,
    background 0.25s;
}
.dots i.on {
  width: 20px;
  border-radius: 4px;
  background: var(--ac);
}
.arr {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #1b1f24;
  font-size: 22px;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.2s;
}
.arr.l {
  left: 8px;
}
.arr.r {
  right: 8px;
}
.carw:hover .arr {
  opacity: 1;
}
@media (hover: none) {
  .arr {
    display: none;
  }
}
.thv .pic.vt {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #111;
  color: #fff;
}
@media (max-width: 900px) {
  .car {
    aspect-ratio: 1/1;
    max-height: 62vh;
  }
  .thv {
    display: none;
  }
}
/* === Rev3 / Module 3: card constructor, table, media === */
/* === Rev3 / Module 4: push notification === */
.push {
  position: fixed;
  top: calc(12px + env(safe-area-inset-top, 0px));
  right: 12px;
  left: 12px;
  max-width: 360px;
  margin-left: auto;
  background: var(--cd);
  color: var(--tx);
  border: 1px solid var(--br);
  border-left: 4px solid var(--ac);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.3);
  z-index: 110;
  display: flex;
  gap: 12px;
  align-items: center;
  transform: translateY(-150%);
  transition: transform 0.4s cubic-bezier(0.2, 0.7, 0.2, 1);
  cursor: pointer;
}
.push.on {
  transform: none;
}
.push .pi2 {
  color: var(--ac);
  flex: none;
  display: flex;
}
.push div {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.push span {
  font-size: 14px;
}
.push small {
  color: var(--mu);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#ct.cats {
  display: block;
  overflow: visible;
}
.cats.sub {
  margin-top: -4px;
}
.cats.sub .chip {
  font-size: 13px;
  padding: 6px 12px;
}
@media (max-width: 700px) {
  .nv .ib.acc i {
    margin: 0;
  }
}
.sl {
  max-width: 1240px;
}
/* === Rev4: hero banner, 2GIS card, history, security, success animation === */
.hero {
  background:
    linear-gradient(
      90deg,
      rgba(11, 13, 16, 0.9) 0%,
      rgba(11, 13, 16, 0.55) 48%,
      rgba(11, 13, 16, 0.05) 100%
    ),
    url(/assets/hero-sparks.jpg) right center/cover no-repeat,
    #0b0d10;
  min-height: 230px;
  border-radius: 20px;
}
.gis {
  margin-top: var(--s2);
  padding: 16px;
  border-radius: 16px;
  background: linear-gradient(160deg, #272f37, #1b2026);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 320px;
}
.gis .gi {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #19aa1e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.gis b {
  color: #fff;
  font-size: 16px;
  display: block;
}
.gis small {
  color: #9aa3af;
  display: block;
  line-height: 1.35;
}
.ft .gis a.gb {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--ac);
  color: #fff;
  font-weight: 700;
  border-radius: 12px;
  padding: 11px 14px;
  transition:
    background 0.2s,
    transform 0.15s;
}
.ft .gis a.gb:hover {
  background: var(--ad);
  color: #fff;
}
.ft .gis a.gb:active {
  transform: scale(0.98);
}
.hc {
  background: var(--cd);
  border: 1px solid var(--br);
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 12px;
}
.hh {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}
.hb {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.hb.ok {
  background: #e6f6ec;
  color: #1a9d55;
}
.hb.go {
  background: #e8f0fe;
  color: #2a5bd7;
}
.hb.pr {
  background: var(--soft);
  color: var(--ac);
}
.hb.w {
  background: #fdecea;
  color: #c0392b;
}
.hb.x {
  background: var(--bg);
  color: var(--mu);
}
.pt4 {
  display: flex;
  gap: 4px;
  margin: 12px 0 4px;
}
.pt4 i {
  flex: 1;
  height: 4px;
  background: var(--br);
  border-radius: 2px;
}
.pt4 i.on {
  background: var(--ac);
}
.pl4 {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--mu);
  gap: 4px;
}
.pl4 span {
  flex: 1;
  text-align: center;
}
.hi {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-top: 1px solid var(--br);
  font-size: 14px;
}
.hi > div {
  min-width: 0;
  overflow-wrap: anywhere;
}
.sok {
  width: 92px;
  height: 92px;
}
.sok circle {
  fill: rgba(26, 157, 85, 0.1);
  stroke: #1a9d55;
  stroke-width: 4;
  stroke-dasharray: 240;
  stroke-dashoffset: 240;
  animation: dr 0.6s ease forwards;
}
.sok path {
  fill: none;
  stroke: #1a9d55;
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 60;
  stroke-dashoffset: 60;
  animation: dr 0.4s 0.5s ease forwards;
}
.wt {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--mu);
}
.spin.sm {
  width: 18px;
  height: 18px;
  border-width: 3px;
}
@media (prefers-reduced-motion: reduce) {
  .sok circle,
  .sok path {
    stroke-dashoffset: 0 !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Каталог Instrum Stroi: адаптивная сетка */
#gr {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

#gr > .grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)) !important;
  justify-content: start !important;
  align-content: start;
  gap: 16px;
  width: 100%;
  max-width: none;
  box-sizing: border-box;
}

#gr .card {
  min-width: 0;
  width: 100%;
}

#gr .card .pw .pc {
  display: block;
}

/* Реальные фото не затрагиваем; формат 3:4 сохраняем для заглушек */
#gr .card .pw .pic.ph:not([style*="background-image"]) {
  position: relative;
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #20252b url("/assets/no-photo.svg") center / cover no-repeat;
}

/* Hero carousel: controls stay at the banner edges, dots remain centered. */
.hero-slider { position: relative; }
.hero-controls { inset: 50% 14px auto; right: 14px; bottom: auto; transform: translateY(-50%); display: flex; justify-content: space-between; gap: 0; pointer-events: none; }
.hero-dots { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: flex; gap: 7px; pointer-events: auto; }
.hero-arrow { pointer-events: auto; display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid color-mix(in srgb, var(--br), transparent 20%); border-radius: 50%; background: color-mix(in srgb, var(--cd), transparent 10%); color: var(--tx); font-size: 28px; line-height: 1; box-shadow: 0 6px 18px #0002; transition: transform .18s, border-color .18s, background .18s; }
.hero-arrow:hover { transform: scale(1.06); border-color: var(--ac); background: var(--cd); }
.hero-arrow:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; }
.hero-arrow:disabled { opacity: .45; cursor: not-allowed; }
.hero-dot { width: 8px; height: 8px; padding: 0; border: 0; border-radius: 999px; background: var(--mu); opacity: .55; }
.hero-dot.active, .hero-dot[aria-pressed="true"] { width: 22px; background: var(--ac); opacity: 1; }

.cart-list { display: grid; gap: 0; }
.cart-item { display: grid; grid-template-columns: 80px minmax(0,1fr) auto; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--br); }
.cart-item:last-child { border-bottom: 0; }
.cart-thumb { display: block; width: 80px; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--bg); }
.cart-thumb img { width: 100%; height: 100%; object-fit: contain; }
.cart-info { min-width: 0; display: grid; gap: 5px; }
.cart-name { color: var(--tx); font-weight: 650; }
.cart-info strong { color: var(--ac); }
.cart-qty { flex-wrap: wrap; justify-content: flex-end; }
.cart-qty .cart-remove { width: auto; padding: 0 8px; color: var(--mu); font-size: 12px; }
.instagram-section { margin: var(--s4) 0; }
.instagram-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: var(--s2); }
.instagram-heading h2 { margin: 4px 0; }
.instagram-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.instagram-tile { overflow: hidden; border-radius: 16px; aspect-ratio: 1; background: var(--cd); }
.instagram-tile img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease, filter .3s ease; }
.instagram-tile:hover img, .instagram-tile:focus-visible img { transform: scale(1.045); filter: saturate(1.08); }
.instagram-tile:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; }
.instagram-admin-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(150px,1fr)); gap: 12px; }
.instagram-admin-tile { min-width: 0; padding: 8px; border: 1px solid var(--br); border-radius: 12px; }
.instagram-admin-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
.instagram-admin-tile > div { display: flex; gap: 5px; margin-top: 6px; }
.instagram-admin-tile .btn { min-height: 36px; flex: 1; padding: 0 6px; }
.instagram-manager { margin-top: var(--s2); }
.product-translations { border: 1px solid var(--br); border-radius: 12px; padding: 12px; }
.product-translations fieldset { display: grid; gap: 10px; margin: 10px 0; border: 1px solid var(--br); border-radius: 10px; }
.not-found { max-width: 680px; margin: 10vh auto; text-align: center; padding: clamp(24px,5vw,48px); }
.not-found-code { color: var(--ac); font-size: clamp(56px,14vw,112px); line-height: 1; font-weight: 850; }
.not-found > div { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
@media (max-width: 700px) {
  .hero-controls { inset-inline: 8px; }
  .hero-arrow { width: 38px; height: 38px; font-size: 24px; }
  .cart-item { grid-template-columns: 64px minmax(0,1fr); gap: 10px; }
  .cart-thumb { width: 64px; }
  .cart-qty { grid-column: 2; justify-content: flex-start; }
  .instagram-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .instagram-heading { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  .instagram-tile img, .hero-arrow { transition: none; }
  .instagram-tile:hover img, .instagram-tile:focus-visible img { transform: none; }
}

/* Телефоны: две карточки в ряд, без переполнения узкого экрана. */
@media (max-width: 700px) {
  #gr > .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px;
  }
}

@media (max-width: 360px) {
  #gr > .grid {
    gap: 8px;
  }
}

/* Компактная подпись только для товаров без реальной фотографии */
.pic.ph[data-placeholder="1"] {
  position: relative;
}

.pic.ph[data-placeholder="1"] {
  position: relative;
}

.pic.ph[data-placeholder="1"] {
  position: relative;
}

.pic.ph[data-placeholder="1"]::after {
  content: "Фото скоро появится";
  position: absolute;
  left: 50%;
  bottom: auto;
  top: 12px;
  transform: translateX(-50%);
  width: max-content;
  max-width: calc(100% - 16px);
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  background: rgba(15, 18, 22, 0.94);
  color: #fff;
  font-size: 10px;
  line-height: 1.3;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  box-sizing: border-box;
  pointer-events: none;
  z-index: 1;
}

/* 2026 storefront polish: clearer hierarchy, richer surfaces, and calmer spacing. */
:root {
  --bg: #f3f4f6;
  --cd: #fff;
  --tx: #20252b;
  --mu: #66717c;
  --br: #e1e5e9;
  --ac: #f36b21;
  --ad: #d95712;
  --ink: #171c21;
  --soft: #fff1e8;
  --r: 16px;
}
body { background: var(--bg); color: var(--tx); }
.w { max-width: 1440px; }
header { box-shadow: 0 5px 24px rgba(16, 24, 32, .14); border-bottom: 2px solid var(--ac); }
.hw { min-height: 70px; gap: clamp(10px, 1.6vw, 24px); }
.logo img { object-fit: contain; background: #fff; }
.sr input { box-shadow: inset 0 0 0 1px rgba(17, 28, 38, .08); }
.sr input:focus { box-shadow: inset 0 0 0 2px var(--ac); }
.ib { min-width: 58px; transition: background .18s, color .18s; }
#app { padding-top: clamp(20px, 3vw, 36px); }
.hero {
  min-height: 320px;
  padding: clamp(28px, 5vw, 68px);
  border-radius: 22px;
  background: linear-gradient(90deg, rgba(18, 22, 26, .96) 0%, rgba(25, 27, 28, .82) 48%, rgba(35, 26, 20, .12) 100%), url('/assets/hero-sparks.jpg') center 54% / cover;
  box-shadow: 0 18px 44px rgba(18, 25, 32, .18);
}
.hero h1 { max-width: 680px; font-size: clamp(30px, 5vw, 52px); letter-spacing: -.035em; }
.hero p { max-width: 540px; font-size: clamp(15px, 1.6vw, 18px); color: rgba(255,255,255,.85); }
.btn, .add { border-radius: 11px; box-shadow: 0 5px 12px rgba(206, 80, 15, .14); transition: transform .18s, background .18s, box-shadow .18s; }
.btn:hover, .add:hover { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(206, 80, 15, .2); }
.btn.g { box-shadow: none; }
.perks { gap: 12px; }
.perk, .box { border-color: #e5e8ec; border-radius: 16px; box-shadow: 0 5px 18px rgba(21, 31, 41, .035); }
.perk { padding: 18px; transition: transform .2s, box-shadow .2s; }
.perk:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(21, 31, 41, .08); }
.perk b { font-size: 14px; }
#cat > h2, section > h1, .sec > h2 { letter-spacing: -.02em; }
.cats { padding: 2px 2px 8px; }
.chip { font-weight: 600; transition: background .18s, color .18s, border .18s; }
.chip:hover:not(.on) { border-color: var(--ac); color: var(--ad); }
.bar { padding: 12px 14px; background: var(--cd); border: 1px solid var(--br); border-radius: 14px; }
.grid { gap: 16px; }
.card { border-radius: 16px; border-color: #e5e8ec; box-shadow: 0 4px 14px rgba(24, 32, 40, .04); }
.card:hover { transform: translateY(-3px); box-shadow: 0 14px 28px rgba(24, 32, 40, .12); }
.pic { background: radial-gradient(circle at 50% 35%, #fff, #edf0f3); }
.cb { padding: 14px; gap: 8px; }
.nm { font-size: 13.5px; line-height: 1.4; }
.pr { color: #1d242a; }
.old { color: #858e98; }
.bd { border-radius: 999px; padding: 4px 10px; }
.fv { box-shadow: 0 3px 10px rgba(0,0,0,.1); }
.empty { background: var(--cd); border: 1px dashed #ccd3da; border-radius: 18px; }
.f input, .f select, .rform textarea, .bar input, .bar select { transition: border-color .16s, box-shadow .16s; }
.f input:focus, .f select:focus, .rform textarea:focus, .bar input:focus, .bar select:focus { border-color: var(--ac); box-shadow: 0 0 0 3px rgba(243,107,33,.13); outline: 0; }
.cols { gap: 22px; }
.sum { box-shadow: 0 10px 26px rgba(21,31,41,.07); }
@media (min-width: 901px) { .cols .sum { position: sticky; top: 96px; } }
footer { background: #171c21; border-top: 3px solid #292f35; }
.ft { gap: 28px; }
.fl { margin-top: 4px; }
@media (max-width: 700px) {
  .hw { min-height: 0; }
  .hero { min-height: 260px; border-radius: 18px; background-position: 62% center; }
  .hero h1 { max-width: 440px; }
  .perk { padding: 14px; }
  .bar { align-items: stretch; }
  .bar label { justify-content: space-between; flex: 1 1 140px; }
  .bar select { max-width: 150px; }
  .cb { padding: 10px; }
  .pr { font-size: 16px; }
  .ft { gap: 22px 16px; }
  .ft > div:first-child, .ft > .fc { grid-column: 1/-1; }
}
@media (prefers-reduced-motion: reduce) {
  .card:hover, .perk:hover, .btn:hover, .add:hover { transform: none; }
}
.free-delivery-note,
.free-delivery-callout {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #b6dfc3;
  border-radius: 12px;
  background: #effaf2;
  color: #185b2b;
}
.free-delivery-note { margin: 14px 0; font-weight: 700; }
.free-delivery-callout { margin: 4px 0 12px; }
.free-delivery-callout b { font-size: 16px; }
.free-delivery-callout span { font-size: 14px; }
.delivery-summary { display: flex; justify-content: space-between; gap: 12px; }
.delivery-summary b { text-align: right; }
.promo-row { display: flex; gap: 8px; margin: 12px 0; }
.promo-row input { min-width: 0; flex: 1; height: 42px; border: 1px solid var(--br); border-radius: 10px; padding: 0 10px; background: var(--cd); }
.form-error { color: #a83232; font-size: 13px; }
.order-saved { max-width: 680px; margin: 0 auto; text-align: center; }
.saved-icon { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; background: #eaf7ed; color: #1a8f45; }
.order-state { display: inline-block; padding: 6px 12px; border-radius: 999px; background: #fff4e8; color: #8b4b0a; font-weight: 700; }
.saved-summary { display: grid; gap: 8px; max-width: 450px; margin: 18px auto; padding: 16px; border: 1px solid var(--br); border-radius: 12px; text-align: left; }
.saved-summary > div { display: flex; justify-content: space-between; gap: 12px; }
.saved-summary .t { border-top: 1px solid var(--br); padding-top: 10px; font-size: 18px; }
.order-message { margin-top: 14px; text-align: left; }
.order-message summary { cursor: pointer; color: var(--ac); }
.order-message textarea { width: 100%; min-height: 210px; margin-top: 8px; padding: 10px; border: 1px solid var(--br); border-radius: 10px; background: var(--cd); resize: vertical; }
.seller-order-card { margin-bottom: var(--s1); }
.seller-order-head, .seller-order-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.seller-order-head { align-items: flex-start; }
.seller-order-date { margin-top: 4px; font-size: 12px; }
.seller-order-status { flex: 0 0 auto; padding: 5px 10px; border: 1px solid var(--br); border-radius: 999px; background: var(--bg); font-size: 13px; font-weight: 700; }
.seller-order-summary { justify-content: flex-start; flex-wrap: wrap; margin-top: 12px; }
.seller-order-summary > span { min-width: 0; overflow-wrap: anywhere; }
.seller-order-summary > b { margin-left: auto; white-space: nowrap; }
.seller-order-summary a { color: inherit; }
.seller-order-details { margin-top: 12px; border-top: 1px solid var(--br); }
.seller-order-details summary { padding: 10px 0 4px; cursor: pointer; font-weight: 700; }
.seller-order-details summary:focus-visible { outline: 2px solid var(--ac); outline-offset: 3px; }
.seller-order-details p { margin: 8px 0; overflow-wrap: anywhere; }
.seller-order-details ul { margin: 8px 0; padding-left: 20px; }
.seller-order-details li { margin: 6px 0; }
.seller-order-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.seller-order-actions .btn { min-height: 42px; }
.history-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.hero.hero-slider { isolation: isolate; padding: 0; min-height: 360px; background: linear-gradient(118deg,#171b20 0%,#7b351c 48%,#ed6a1d 100%); }
.hero-slide { position: relative; display: flex; align-items: center; min-height: 360px; max-width: none; padding: clamp(28px,5vw,68px); overflow: hidden; background: linear-gradient(120deg,#17212a,#703a21 58%,#f17624); }
.hero-slide::after { position: absolute; z-index: 1; inset: 0; content: ""; background: linear-gradient(90deg,rgba(12,17,21,.92),rgba(15,19,23,.74) 48%,rgba(38,24,15,.18)); pointer-events: none; }
.hero-slide:nth-child(3n + 2) { background: linear-gradient(120deg,#173b53,#126f75 55%,#e2a23d); }
.hero-slide:nth-child(3n) { background: linear-gradient(120deg,#40204b,#a43e54 55%,#ff9a38); }
.hero-image { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; }
.hero-copy { position: relative; z-index: 2; width: min(760px,100%); }
.hero-controls { z-index: 3; }
.hero-slide h1 { text-wrap: balance; }
.catalog-filter-panel { margin: 12px 0 16px; }
.catalog-filter-panel > summary { width: fit-content; padding: 9px 13px; border: 1px solid var(--br); border-radius: 11px; background: var(--cd); font-weight: 700; cursor: pointer; }
.catalog-filter-panel[open] > summary { margin-bottom: 8px; color: var(--ad); }
.catalog-filter-panel .bar { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; }
.catalog-filter-panel .bar label { flex: 1 1 150px; min-width: 0; }
.catalog-filter-panel input, .catalog-filter-panel select { max-width: 100%; }
.filter-status { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 8px 0; color: var(--mu); font-size: 13px; }
.filter-status[hidden] { display: none; }
.filter-status span { min-width: 0; overflow-wrap: anywhere; }
.filter-status .btn { flex: 0 0 auto; min-height: 40px; }
.catalog-results { margin: 4px 0 10px; color: var(--mu); font-size: 13px; }
.product-image-wrap { display: grid; place-items: center; overflow: hidden; background: var(--cd); }
.product-image-wrap .product-image { display: block; width: 100%; height: 100%; object-fit: contain; }
.product-detail-image { display: grid; place-items: center; background: var(--cd); }
.product-detail-image img { width: 100%; height: 100%; min-width: 0; min-height: 0; object-fit: contain; }
.product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-zoom-image img { display: block; width: 100%; max-height: 80vh; object-fit: contain; }
.mc .product-image-wrap { height: auto; min-height: 0; aspect-ratio: 1 / 1; background: var(--cd); }
.order-status-explanation { margin: 9px 0 0; font-size: 13px; }
.banner-manager { gap: 16px; }
.banner-editor { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 14px; border: 1px solid var(--br); border-radius: 14px; }
.banner-editor legend { padding: 0 6px; font-weight: 700; }
.banner-editor label { display: grid; gap: 5px; min-width: 0; }
.banner-editor input, .banner-editor textarea { width: 100%; min-width: 0; }
.banner-preview-wrap { position: relative; min-height: 135px; overflow: hidden; border-radius: 12px; background: linear-gradient(120deg,#17212a,#b44a1e 55%,#f49a24); }
.banner-preview { width: 100%; height: 190px; object-fit: cover; }
.banner-preview-empty { display: grid; min-height: 135px; place-items: center; color: #fff; font-weight: 700; }
.banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.banner-actions .btn { min-height: 42px; }
@media (max-width: 700px) {
  .hero.hero-slider, .hero-slide { min-height: 310px; }
  .hero-slide { padding: 24px 20px 74px; }
  .hero-slide::after { background: linear-gradient(90deg,rgba(12,17,21,.88),rgba(15,19,23,.48)); }
  .catalog-filter-panel .bar { align-items: stretch; }
  .catalog-filter-panel .bar label { flex: 1 1 100%; }
  .catalog-filter-panel .bar select, .catalog-filter-panel .bar input { width: 100%; max-width: none; }
  .filter-status { align-items: flex-start; }
  .banner-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .banner-actions .btn:last-child { grid-column: 1/-1; }
}
@media (max-width: 700px) {
  .free-delivery-callout { padding: 12px; }
  .free-delivery-callout b { font-size: 15px; }
  .delivery-summary { align-items: flex-start; }
  .saved-summary { padding: 12px; }
  .order-saved > .btn { width: 100%; }
  .seller-order-head { align-items: flex-start; }
  .seller-order-summary { align-items: flex-start; flex-direction: column; gap: 5px; }
  .seller-order-summary > b { margin-left: 0; }
  .seller-order-actions { display: grid; grid-template-columns: 1fr; }
  .seller-order-actions .btn { width: 100%; }
}

/* Final theme-aware price colors override legacy palette rules above. */
body .pr:not(.hb), body .pbig, body .sum .t > span:last-child, body .row > div > b,
body .hi > b, body .saved-summary .t b, body .seller-order-summary > b { color: var(--price); }
body .pr .old, body .old { color: var(--mu); text-decoration: line-through; white-space: nowrap; }
body .pr:not(.hb) { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 7px; white-space: normal; overflow-wrap: anywhere; }

/* Compact horizontal hero carousel; dots have their own reserved row. */
.hero.hero-slider { display: block; min-height: 0; padding: 0; overflow: hidden; background: transparent; }
.hero-slides { position: relative; display: grid; min-width: 0; overflow: hidden; touch-action: pan-y; }
.hero-slider .hero-slide { grid-area: 1 / 1; min-width: 0; min-height: clamp(270px, 21vw, 320px); padding: clamp(28px, 4vw, 52px) clamp(72px, 8vw, 112px); transform: translateX(100%); opacity: 0; visibility: hidden; pointer-events: none; transition: transform .48s cubic-bezier(.22,.68,0,1), opacity .3s ease, visibility 0s linear .48s; will-change: transform; }
.hero-slider .hero-slide.is-before { transform: translateX(-100%); }
.hero-slider .hero-slide.is-after { transform: translateX(100%); }
.hero-slider .hero-slide.is-active { z-index: 2; transform: translateX(0); opacity: 1; visibility: visible; pointer-events: auto; transition-delay: 0s; }
.hero-slider .hero-copy { width: min(760px, 100%); }
.hero-slider .hero-slide h1 { max-width: 22ch; margin: 8px 0 12px; font-size: clamp(30px, 4vw, 56px); line-height: 1.08; text-wrap: balance; }
.hero-slider .hero-slide p { max-width: 58ch; margin-bottom: 0; }
.hero-slider .hero-controls { position: absolute; z-index: 3; inset: 0 14px 36px; display: flex; align-items: center; justify-content: space-between; gap: 0; transform: none; pointer-events: none; }
.hero-slider .hero-arrow { flex: 0 0 auto; pointer-events: auto; }
.hero-slider .hero-dots { position: relative; inset: auto; display: flex; min-height: 36px; align-items: center; justify-content: center; gap: 8px; padding: 2px 0 4px; transform: none; }
.hero-slider .hero-dot { flex: 0 0 8px; transition: width .2s ease, opacity .2s ease, background-color .2s ease; }
.hero-slider .hero-dot.active, .hero-slider .hero-dot[aria-pressed="true"] { flex-basis: 22px; }
@media (max-width: 700px) {
  .hero-slider .hero-slide { min-height: 270px; padding: 24px 54px; }
  .hero-slider .hero-slide h1 { max-width: 16ch; font-size: clamp(24px, 7vw, 32px); }
  .hero-slider .hero-slide p { font-size: 15px; line-height: 1.45; }
  .hero-slider .hero-controls { inset-inline: 8px; bottom: 36px; }
  .hero-slider .hero-arrow { width: 38px; height: 38px; font-size: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-slider .hero-slide, .hero-slider .hero-dot { transition: none !important; will-change: auto; }
}

/* Product photos use one portrait frame across catalogue and recently viewed. */
.card .product-image-wrap, .mc .product-image-wrap { width: 100%; height: auto; min-height: 0; aspect-ratio: 3 / 4; box-sizing: border-box; }
.card .product-image-wrap .product-image, .mc .product-image-wrap .product-image { display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; }

/* Instagram photos form a horizontal, swipeable carousel. */
.instagram-carousel { min-width: 0; }
.instagram-carousel.has-controls { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; align-items: center; gap: 10px; }
.instagram-grid { display: flex; min-width: 0; gap: 12px; overflow-x: auto; overflow-y: hidden; padding: 4px 3px 10px; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: thin; }
.instagram-tile { position: relative; display: block; flex: 0 0 clamp(220px, 24vw, 280px); min-width: 0; scroll-snap-align: start; }
.instagram-arrow { display: inline-flex; width: 42px; height: 42px; align-items: center; justify-content: center; border: 1px solid var(--br); border-radius: 50%; background: var(--cd); color: var(--tx); font-size: 28px; line-height: 1; transition: background-color .18s ease, border-color .18s ease, color .18s ease; }
.instagram-arrow:hover:not(:disabled) { border-color: var(--ac); background: var(--ac); color: #fff; }
.instagram-arrow:disabled { cursor: default; opacity: .4; }
.instagram-arrow:focus-visible, .instagram-grid:focus-visible { outline: 3px solid var(--ac); outline-offset: 3px; }
.instagram-scroll-hint { margin: 8px 0 0; color: var(--mu); font-size: 13px; }
.instagram-grid::-webkit-scrollbar { height: 6px; }
.instagram-grid::-webkit-scrollbar-thumb { border-radius: 8px; background: var(--br); }
@media (max-width: 700px) {
  .instagram-carousel.has-controls { display: block; }
  .instagram-carousel.has-controls .instagram-arrow { display: none; }
  .instagram-grid { gap: 10px; scroll-padding-inline: 3px; }
  .instagram-tile { flex-basis: min(78vw, 270px); }
}
@media (prefers-reduced-motion: reduce) {
  .instagram-grid { scroll-behavior: auto; }
  .instagram-tile img, .instagram-arrow { transition: none; }
  .instagram-tile:hover img, .instagram-tile:focus-visible img { transform: none; }
}
