/* DATADELIRIUM — hall store. Sits on top of style.css (hub/hall frames) and only adds what the store needs. */

:root {
  --line: rgba(217, 217, 217, 0.28);
  --muted: rgba(217, 217, 217, 0.55);
  --danger: #ff4d4d;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

.page-hall [hidden] {
  display: none !important;
}

/* on every page except the catalog the content sits above the statues */
.hall-flat .item,
.hall-flat .hall-main,
.hall-more {
  position: relative;
  z-index: 6;
}

.hall-flat .statue {
  opacity: 0.85;
}

/* ---------- cart pill ---------- */

.hall-cart {
  position: fixed;
  z-index: 20;
  top: 24px;
  right: 24px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 14px;
  border: 1px solid var(--fg);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.72);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--fg);
  font: 700 14px/1 var(--font);
  letter-spacing: var(--ls);
  text-decoration: none;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.page-locked .hall-cart {
  display: none;
}

.hall-cart:hover {
  background: var(--fg);
  color: var(--bg);
}

.hall-cart:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.hall-cart__n {
  min-width: 1ch;
  font-variant-numeric: tabular-nums;
}

.hall-cart.is-empty .hall-cart__n {
  opacity: 0.4;
}

.hall-cart.is-bump {
  animation: cart-bump 0.5s var(--ease);
}

@keyframes cart-bump {
  30% { transform: scale(1.12); background: var(--fg); color: var(--bg); }
}

/* ---------- filter ---------- */

.hall-filter {
  position: relative;
  z-index: 6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  width: min(510px, 100% - 2 * var(--gutter));
  margin: -40px 0 -40px;
  font-weight: 600;
  font-size: 13px;
  text-transform: lowercase;
}

.hall-filter a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hall-filter a:hover,
.hall-filter a[aria-current] {
  color: var(--white);
}

.hall-filter a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.intro .hall-filter { animation: dd-up 0.8s var(--ease) 0.8s backwards; }

/* ---------- product cards ---------- */

.page-hall .product {
  background: var(--bg);
  transition: border-color 0.3s ease, transform 0.5s var(--ease), box-shadow 0.5s ease;
}

.page-hall .product__media {
  position: relative;
  overflow: hidden;
}

.page-hall .product__media img {
  position: absolute;
  inset: 0;
  object-fit: contain;
  padding: 5% 0;
  transition: transform 0.6s var(--ease), opacity 0.45s ease, filter 0.4s ease;
}

/* product without photos: halftone dots instead of an empty white box */
.product__noimg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16) 1px, transparent 1.6px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.product__alt {
  opacity: 0;
}

.product__badge {
  position: absolute;
  z-index: 2;
  top: 8px;
  left: 8px;
  padding: 3px 6px 2px;
  background: var(--bg);
  color: var(--fg);
  font: 700 10px/1.2 var(--font);
  letter-spacing: var(--ls);
  text-transform: uppercase;
}

.product__price s,
.item__price s {
  margin-right: 6px;
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8em;
}

.product.is-sold .product__media img {
  filter: grayscale(1);
  opacity: 0.45;
}

.product.is-sold .product__price {
  color: var(--muted);
}

@media (hover: hover) {
  .page-hall .product:hover {
    border-color: var(--white);
    transform: translateY(-4px);
    box-shadow: 0 22px 40px -24px rgba(217, 217, 217, 0.45);
  }
  .product:hover /* product without photos: halftone dots instead of an empty white box */
.product__noimg {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(0, 0, 0, 0.16) 1px, transparent 1.6px) 0 0 / 9px 9px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 20%, transparent 75%);
}

.product__alt { opacity: 1; }
  .product:hover .product__alt ~ .product__badge { opacity: 1; }
  .page-hall .product:has(.product__alt):hover .product__media img:first-child { opacity: 0; }
  .page-hall .product:hover .product__media img { transform: scale(1.04); }
}

.market--empty {
  min-height: 300px;
}

.market__soon {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  margin: 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 16px;
  text-transform: uppercase;
}

/* ---------- shared headings / main ---------- */

.hall-main {
  width: min(1060px, 100% - 2 * var(--gutter));
  min-height: 420px;
}

.hall-h {
  margin: 0 0 32px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
  text-align: center;
  text-transform: uppercase;
}

.intro .hall-main,
.intro .item { animation: dd-up 0.9s var(--ease) 0.8s backwards; }

/* ---------- product page ---------- */

.item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
  width: min(1060px, 100% - 2 * var(--gutter));
}

.item__gallery {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.item__stage {
  position: relative;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--fg);
  border-radius: 4px;
  background: var(--white);
  cursor: zoom-in;
}

.item__img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 5%;
  object-fit: contain;
  opacity: 0;
  transform: scale(1.02);
  transition: opacity 0.45s ease, transform 0.8s var(--ease);
}

.item__img.is-on {
  opacity: 1;
  transform: none;
}

.item__nav {
  position: absolute;
  z-index: 3;
  top: 0;
  width: 22%;
  height: 100%;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.item__nav--prev { left: 0; cursor: w-resize; }
.item__nav--next { right: 0; cursor: e-resize; }

.item__nav:focus-visible {
  outline: 2px solid var(--bg);
  outline-offset: -6px;
}

.item__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.item__thumb {
  aspect-ratio: 1;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--ghost);
  border-radius: 4px;
  background: var(--white);
  cursor: pointer;
  opacity: 0.55;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.item__thumb img {
  width: 100%;
  height: 100%;
  padding: 6%;
  object-fit: contain;
}

.item__thumb:hover,
.item__thumb.is-on {
  border-color: var(--fg);
  opacity: 1;
}

.item__thumb:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.item__info {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
}

.item__crumbs {
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.item__crumbs a {
  text-decoration: none;
}

.item__crumbs a:hover {
  color: var(--white);
}

.item__draft {
  align-self: flex-start;
  margin: 20px 0 0;
  padding: 4px 8px;
  border: 1px dashed var(--link);
  border-radius: 4px;
  color: var(--link);
  font-size: 11px;
}

.item__maker {
  align-self: flex-start;
  margin: 28px 0 0;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: lowercase;
  text-decoration: none;
  transition: color 0.15s ease;
}

a.item__maker:hover {
  color: var(--link);
}

.item__title {
  margin: 8px 0 0;
  color: var(--white);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.item__price {
  display: flex;
  align-items: baseline;
  margin: 18px 0 0;
  color: var(--white);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: 0;
}

.item__buy {
  width: 100%;
  margin-top: 26px;
}

.btn:disabled,
.btn:disabled:hover {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  cursor: not-allowed;
}

.btn.is-done {
  background: var(--bg);
  color: var(--fg);
}

.item__stock {
  margin: 10px 0 0;
  color: var(--link);
  font-size: 12px;
  text-align: center;
  text-transform: lowercase;
}

.item__acc {
  margin-top: 30px;
  border-top: 1px solid var(--line);
}

.item__acc details {
  border-bottom: 1px solid var(--line);
}

.item__acc summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-transform: lowercase;
  list-style: none;
  cursor: pointer;
}

.item__acc summary::-webkit-details-marker {
  display: none;
}

.item__acc summary::after {
  content: "+";
  font-weight: 500;
  font-size: 16px;
  transition: transform 0.25s ease;
}

.item__acc details[open] summary::after {
  transform: rotate(45deg);
}

.item__acc summary:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.item__text,
.item__list {
  padding-bottom: 16px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0.02em;
}

.item__text p {
  margin: 0 0 8px;
}

.item__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.item__list li::before {
  content: "— ";
  color: var(--muted);
}

/* fullscreen photo */
.zoom {
  position: fixed;
  z-index: 50;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.92);
  cursor: zoom-out;
  animation: dd-fade 0.25s ease;
}

.zoom img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* more items */
.hall-more {
  width: min(1060px, 100% - 2 * var(--gutter));
}

.hall-more__title {
  margin: 0 0 16px;
  color: var(--muted);
  font-weight: 600;
  font-size: 13px;
  text-transform: lowercase;
}

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

/* ---------- cart ---------- */

.cart__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 48px;
  align-items: start;
}

.cart__lines {
  display: flex;
  flex-direction: column;
  border-top: 1px solid var(--line);
}

.cart__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  padding: 60px 0;
  border: 0;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
}

.cart__grid:has(.cart__empty) {
  grid-template-columns: 1fr;
}

.cart__grid:has(.cart__empty) .cart__lines {
  border-top: 0;
}

.line {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  transition: opacity 0.3s ease;
}

.line.is-bad {
  opacity: 0.55;
}

.line__img {
  display: block;
  aspect-ratio: 1;
  overflow: hidden;
  border: 1px solid var(--fg);
  border-radius: 4px;
  background: var(--white);
}

.line__img img {
  width: 100%;
  height: 100%;
  padding: 6%;
  object-fit: contain;
}

.line__title {
  margin: 0;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-transform: uppercase;
  text-decoration: none;
}

.line__title:hover {
  text-decoration: underline;
}

.line__meta {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.line__warn {
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 12px;
  text-transform: lowercase;
}

.line__side {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.line__price {
  color: var(--white);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0;
}

.qty {
  display: inline-flex;
  align-items: center;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 5px;
}

.qty button,
.line__remove {
  border: 0;
  background: transparent;
  color: var(--fg);
  font: 600 14px/1 var(--font);
  cursor: pointer;
}

.qty button {
  width: 30px;
  height: 100%;
}

.qty button:disabled {
  opacity: 0.3;
  cursor: default;
}

.qty span {
  min-width: 22px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.line__remove {
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.line__remove:hover,
.qty button:not(:disabled):hover {
  color: var(--white);
}

/* ---------- forms ---------- */

.checkout {
  position: sticky;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.field label,
.field legend {
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  text-transform: lowercase;
}

.field legend {
  margin-bottom: 6px;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--white);
  font: 500 14px/1.3 var(--font);
  letter-spacing: 0.02em;
  transition: border-color 0.15s ease;
}

.field textarea {
  resize: vertical;
}

.field select option {
  background: #111;
}

.field input::placeholder,
.field textarea::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.field input:focus,
.field textarea:focus,
.field select:focus {
  outline: none;
  border-color: var(--white);
}

.field .is-invalid {
  border-color: var(--danger);
}

.field label {
  transition: color 0.15s ease;
}

.field:focus-within > label:not(.opt) {
  color: var(--white);
}

/* "gmail.con → gmail.com?" */
.field__hint {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: 500 12px/1.3 var(--font);
  letter-spacing: 0.02em;
  text-decoration: underline;
  text-decoration-color: rgba(216, 206, 146, 0.4);
  text-underline-offset: 3px;
  cursor: pointer;
  animation: dd-up 0.3s var(--ease);
}

.field__hint:hover {
  color: var(--white);
}

.is-shake {
  animation: shake 0.35s ease;
}

/* ---------- delivery options ---------- */

.opts {
  gap: 6px;
}

.opt {
  position: relative;
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  min-height: 48px;
  padding: 10px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--fg);
  cursor: pointer;
  isolation: isolate;
  transition: border-color 0.2s ease, color 0.25s ease, transform 0.15s ease;
}

/* the fill wipes in from the left when the option is picked */
.opt::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: var(--fg);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.45s var(--ease);
}

/* beats the generic `.field label` look */
.field .opt {
  padding: 10px 14px;
  color: var(--fg);
  font-size: 13px;
  text-transform: none;
}

.opt:hover {
  border-color: var(--fg);
}

.opt:active {
  transform: scale(0.99);
}

.opt__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.opt__mark {
  position: relative;
  width: 18px;
  height: 18px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transition: border-color 0.25s ease;
}

.opt__mark::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 50%;
  background: currentColor;
  transform: scale(0);
  transition: transform 0.3s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.opt__name {
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.02em;
}

.opt__price {
  color: var(--muted);
  font-weight: 600;
  font-size: 12px;
  white-space: nowrap;
  transition: color 0.25s ease;
}

.opt:has(.opt__input:checked) {
  border-color: var(--fg);
  color: var(--bg);
}

.opt:has(.opt__input:checked)::before {
  transform: scaleX(1);
}

.opt:has(.opt__input:checked) .opt__mark::after {
  transform: scale(1);
}

.opt:has(.opt__input:checked) .opt__price {
  color: rgba(0, 0, 0, 0.6);
}

.opt:has(.opt__input:focus-visible) {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

/* address opens and closes with the delivery choice */
.collapse {
  display: grid;
  grid-template-rows: 1fr;
  margin-top: -14px; /* swallow the form gap, the inner padding gives it back while open */
  transition: grid-template-rows 0.4s var(--ease), opacity 0.3s ease;
}

.collapse__in {
  min-height: 0;
  overflow: hidden;
  padding-top: 14px;
}

.collapse.is-collapsed {
  grid-template-rows: 0fr;
  opacity: 0;
}

/* ---------- consent ---------- */

.agree {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color 0.2s ease;
}

.agree__input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.agree__box {
  position: relative;
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--fg);
  border-radius: 4px;
  transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.agree__box svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: var(--bg);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 16;
  stroke-dashoffset: 16;
  transition: stroke-dashoffset 0.3s var(--ease) 0.05s;
}

.agree:hover {
  color: var(--fg);
}

.agree:active .agree__box {
  transform: scale(0.9);
}

.agree__input:checked + .agree__box {
  background: var(--fg);
}

.agree__input:checked + .agree__box svg {
  stroke-dashoffset: 0;
}

.agree__input:focus-visible + .agree__box {
  outline: 2px solid var(--white);
  outline-offset: 2px;
}

.agree:has(.agree__input:checked) {
  color: var(--fg);
}

.agree a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(216, 206, 146, 0.35);
  text-underline-offset: 3px;
  transition: color 0.15s ease;
}

.agree a:hover {
  color: var(--white);
}

.agree.is-invalid {
  color: var(--danger);
}

.agree.is-invalid .agree__box {
  border-color: var(--danger);
}

/* ---------- sum & submit ---------- */

.checkout__sum {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.checkout__sum div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.checkout__sum dt {
  color: var(--muted);
  text-transform: lowercase;
}

.checkout__sum dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.checkout__sum .is-total {
  margin-top: 4px;
  color: var(--white);
  font-weight: 700;
  font-size: 16px;
}

.checkout__submit {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.btn.is-busy {
  pointer-events: none;
}

/* busy: a light band runs across the button */
.btn.is-busy::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.18), rgba(0, 0, 0, 0));
  animation: busy 0.9s linear infinite;
}

@keyframes busy {
  from { transform: translateX(-100%); }
  to { transform: translateX(100%); }
}

.line.is-leaving {
  opacity: 0;
  transform: translateX(16px);
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.qty span.is-bump {
  animation: qty-pop 0.25s var(--ease);
}

@keyframes qty-pop {
  from { transform: scale(1.35); }
}

.form-error {
  margin: 0;
  color: var(--danger);
  font-size: 13px;
  text-transform: lowercase;
}

/* ---------- order ---------- */

.order__body {
  width: min(560px, 100%);
  margin: 0 auto;
}

.order__status {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  text-align: center;
}

.order__badge {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid var(--fg);
  border-radius: 5px;
  color: var(--white);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: var(--ls);
  text-transform: uppercase;
}

.order__badge.is-paid,
.order__badge.is-shipped,
.order__badge.is-done {
  background: var(--fg);
  color: var(--bg);
}

.order__badge.is-cancelled {
  border-color: var(--danger);
  color: var(--danger);
}

.order__thanks {
  margin: 0 0 6px;
  color: var(--white);
  font-weight: 700;
  font-size: 28px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  animation: dd-logo 1s var(--ease) backwards;
}

.order__copy {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: 500 12px/1.3 var(--font);
  text-decoration: underline;
  text-decoration-color: rgba(216, 206, 146, 0.35);
  text-underline-offset: 3px;
  cursor: pointer;
}

.order__copy:hover {
  color: var(--white);
}

.order__date {
  color: var(--muted);
  font-size: 12px;
}

.order__pay {
  width: 100%;
  margin-top: 24px;
}

.order__body .line {
  grid-template-columns: 64px minmax(0, 1fr) auto;
}

/* ---------- legal ---------- */

.legal__text {
  width: min(720px, 100%);
  margin: 0 auto;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0.01em;
}

.legal__text h2 {
  margin: 36px 0 10px;
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  text-transform: uppercase;
}

.legal__text p {
  margin: 0 0 10px;
}

.legal__text a {
  color: var(--link);
}

.legal__text mark {
  padding: 0 4px;
  background: rgba(216, 206, 146, 0.18);
  color: var(--link);
}

.legal__meta {
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* ---------- footer ---------- */

.hall-footer {
  height: auto;
  padding-bottom: 40px;
}

.hall-footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 22px;
  margin-top: 14px;
  font-size: 12px;
  text-transform: lowercase;
}

.hall-footer__links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.hall-footer__links a:hover {
  color: var(--white);
}

.hall-footer .footer__copy {
  margin-top: 12px;
}

.hall-footer__req {
  margin: 14px 0 0;
  color: rgba(217, 217, 217, 0.35);
  font-size: 11px;
}

/* ---------- toast ---------- */

.toast {
  position: fixed;
  z-index: 60;
  left: 50%;
  bottom: 24px;
  padding: 10px 16px;
  border: 1px solid var(--fg);
  border-radius: 5px;
  background: var(--bg);
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-transform: lowercase;
  transform: translate(-50%, 20px);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.35s var(--ease);
  pointer-events: none;
}

.toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* =========================================================
   drops: timers, pre-order
   ========================================================= */

.product__badge--soon {
  background: var(--white);
  color: var(--bg);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

/* a quiet pulse on the dot before the time */
.product__badge--soon::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin: 0 6px 1px 0;
  border-radius: 50%;
  background: var(--bg);
  vertical-align: middle;
  animation: soon-pulse 1s ease-in-out infinite;
}

@keyframes soon-pulse {
  50% { opacity: 0.2; }
}

.product__badge--soon.is-opening {
  animation: badge-out 0.9s var(--ease) forwards;
}

@keyframes badge-out {
  0% { background: var(--link); transform: scale(1); }
  40% { background: var(--link); transform: scale(1.15); }
  100% { opacity: 0; transform: scale(0.8); }
}

.product__badge--pre {
  border: 1px solid var(--bg);
  background: var(--link);
  color: var(--bg);
}

.btn.is-soon:disabled {
  border-color: var(--fg);
  color: var(--white);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.06em;
}

.btn.is-live {
  animation: buy-live 1s var(--ease);
}

@keyframes buy-live {
  0% { box-shadow: 0 0 0 0 rgba(216, 206, 146, 0.8); background: var(--link); }
  100% { box-shadow: 0 0 0 18px rgba(216, 206, 146, 0); }
}

.item__stock--muted {
  color: var(--muted);
}

.line__pre {
  margin: 4px 0 0;
  color: var(--link);
  font-size: 12px;
  text-transform: lowercase;
}

/* =========================================================
   halftone photos (js/hall/halftone.js)
   ========================================================= */

img.ht-wait {
  opacity: 0 !important;
}

.page-hall .product__media img,
.item__img,
.pass__media img {
  transition: opacity 0.7s ease, transform 0.6s var(--ease), filter 0.4s ease;
}

.ht-canvas {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.5s ease;
}

/* archive: sold copies turn into dotted statues */
.market--archive .product,
.product.is-archive {
  border-color: rgba(217, 217, 217, 0.35);
}

.product.is-archive .product__media {
  background: var(--bg);
}

.product.is-archive .product__media img {
  filter: grayscale(1) contrast(1.1);
  opacity: 0;
}

.product.is-archive .product__media:not(.ht-still) img {
  opacity: 0.45;
}

.product.is-archive .product__info {
  border-top: 1px solid rgba(217, 217, 217, 0.12);
}

.product.is-archive .product__title {
  color: var(--fg);
}

.product__sold {
  color: var(--muted);
  font-size: 12px !important;
  font-weight: 600;
  text-transform: lowercase;
}

@media (hover: hover) {
  .product.is-archive:hover .ht-canvas { opacity: 0.25; }
  .product.is-archive:hover .product__media img { opacity: 0.9; }
}

.hall-filter__archive {
  position: relative;
  padding-left: 14px;
}

.hall-filter__archive::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.6;
}

/* =========================================================
   maker page
   ========================================================= */

.maker {
  width: min(860px, 100% - 2 * var(--gutter));
}

.maker__head {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 44px;
}

.maker__avatar {
  flex: none;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--fg);
}

.maker__avatar--empty {
  display: grid;
  place-items: center;
  color: var(--white);
  font-weight: 700;
  font-size: 36px;
  text-transform: uppercase;
}

.maker__name {
  margin: 8px 0 0;
  color: var(--white);
  font-weight: 700;
  font-size: 32px;
  text-transform: uppercase;
}

.maker__bio {
  max-width: 520px;
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.55;
}

.maker__bio p {
  margin: 0 0 8px;
}

.maker__links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin: 14px 0 0;
  font-size: 13px;
}

.maker__links a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(216, 206, 146, 0.35);
  text-underline-offset: 3px;
}

.maker__links a:hover {
  color: var(--white);
}

.maker__sub {
  margin-top: 44px;
}

.market__soon--static {
  position: static;
  padding: 60px 0;
}

/* =========================================================
   passport of a copy
   ========================================================= */

.pass {
  width: min(900px, 100% - 2 * var(--gutter));
}

.pass__draft {
  margin: 0 auto 20px;
}

.pass__card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--fg);
  border-radius: 6px;
  background: var(--bg);
  box-shadow: 0 40px 80px -50px rgba(217, 217, 217, 0.35);
  animation: dd-card 1s var(--ease) 0.2s backwards;
}

.pass__media {
  position: relative;
  aspect-ratio: 1;
  background: var(--white);
}

.pass__media > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 7%;
  object-fit: contain;
}

.seal {
  position: absolute;
  z-index: 2;
  right: 16px;
  bottom: 16px;
  width: 132px;
  height: 132px;
  overflow: visible;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.35));
}

.seal__edge {
  fill: var(--bg);
}

.seal__inner {
  fill: none;
  stroke: var(--link);
  stroke-width: 1;
  stroke-dasharray: 2 3;
}

.seal text {
  fill: var(--fg);
  font: 700 8.6px/1 var(--font);
  letter-spacing: 0.18em;
}

.seal__spin {
  transform-origin: 60px 60px;
  animation: seal-spin 24s linear infinite;
}

@keyframes seal-spin {
  to { transform: rotate(360deg); }
}

.seal .seal__no {
  fill: var(--link);
  font-size: 20px;
  letter-spacing: 0;
}

.pass__info {
  display: flex;
  flex-direction: column;
  padding: 36px 36px 30px;
  border-left: 1px solid var(--fg);
}

.pass__no {
  margin: 0;
  color: var(--white);
  font-weight: 700;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.9;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pass__no span {
  color: var(--muted);
  font-size: 0.42em;
  letter-spacing: 0;
}

.pass__title {
  margin: 20px 0 0;
  font-weight: 700;
  font-size: 18px;
  line-height: 1.25;
  text-transform: uppercase;
}

.pass__title a {
  color: var(--white);
  text-decoration: none;
}

.pass__title a:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pass__kv {
  display: flex;
  flex-direction: column;
  margin: auto 0 0;
  padding-top: 30px;
}

.pass__kv div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-size: 13px;
}

.pass__kv dt {
  color: var(--muted);
}

.pass__kv dd {
  margin: 0;
  color: var(--white);
  text-align: right;
}

.pass__kv a {
  color: var(--link);
  text-decoration: none;
}

.pass__code {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.08em;
}

/* =========================================================
   checkout: promo
   ========================================================= */

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

.promo__toggle {
  align-self: flex-start;
  padding: 0;
  border: 0;
  background: none;
  color: var(--link);
  font: 600 12px/1.4 var(--font);
  letter-spacing: 0.04em;
  text-decoration: underline dashed;
  text-decoration-color: rgba(216, 206, 146, 0.5);
  text-underline-offset: 4px;
  cursor: pointer;
}

.promo__toggle:hover {
  color: var(--white);
}

.promo__row {
  display: flex;
  gap: 6px;
  animation: dd-up 0.3s var(--ease);
}

.promo__input {
  flex: 1;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px dashed var(--fg);
  border-radius: 5px;
  background: transparent;
  color: var(--white);
  font: 700 14px/1 var(--font);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.promo__input::placeholder {
  color: rgba(255, 255, 255, 0.22);
}

.promo__input:focus {
  outline: none;
  border-style: solid;
  border-color: var(--white);
}

.promo__input.is-invalid {
  border-color: var(--danger);
}

.promo__apply {
  position: relative;
  width: 56px;
  overflow: hidden;
  border: 1px solid var(--fg);
  border-radius: 5px;
  background: var(--fg);
  color: var(--bg);
  font: 700 13px/1 var(--font);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.promo__apply:hover {
  background: var(--bg);
  color: var(--fg);
}

/* the applied code looks like a torn-off coupon */
.promo__chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: 10px 12px;
  border: 1px dashed var(--link);
  border-radius: 5px;
  background: rgba(216, 206, 146, 0.08);
  color: var(--link);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.08em;
}

.promo__chip.is-pop {
  animation: chip-pop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}

@keyframes chip-pop {
  from { transform: scale(0.9); opacity: 0; }
}

.promo__chip button {
  padding: 0 2px;
  border: 0;
  background: none;
  color: var(--link);
  font: 500 18px/1 var(--font);
  cursor: pointer;
}

.promo__chip button:hover {
  color: var(--white);
}

.promo__error {
  margin: 0;
  color: var(--danger);
  font-size: 12px;
  text-transform: lowercase;
}

.checkout__sum .is-discount {
  color: var(--link);
}

.checkout__sum .is-discount dt {
  color: var(--link);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* =========================================================
   order: passports
   ========================================================= */

.order__passports {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 28px;
}

.order__passports-title {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 12px;
}

.order__passport {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 5px;
  color: var(--white);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  text-transform: uppercase;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.order__passport span {
  color: var(--link);
  font-variant-numeric: tabular-nums;
}

.order__passport:hover {
  border-color: var(--fg);
  background: rgba(217, 217, 217, 0.05);
}

/* =========================================================
   printable card (admin → заказ → карточка)
   ========================================================= */

.print-page {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 32px 16px;
}

.print-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  color: var(--muted);
  font-size: 12px;
}

.print-bar .btn {
  height: 38px;
  padding: 0 24px;
  font-size: 13px;
}

.print-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 105mm;
  height: 148mm;
  padding: 9mm 8mm 7mm;
  background: #000;
  color: #d9d9d9;
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

.print-card__logo {
  width: 34mm;
  height: auto;
}

.print-card__no {
  margin: 7mm 0 0;
  color: #fff;
  font-weight: 700;
  font-size: 22mm;
  line-height: 0.9;
  letter-spacing: -0.02em;
}

.print-card__no span {
  color: rgba(217, 217, 217, 0.55);
  font-size: 0.4em;
}

.print-card__title {
  margin: 4mm 0 0;
  color: #fff;
  font-weight: 700;
  font-size: 10pt;
  text-align: center;
  text-transform: uppercase;
}

.print-card__maker {
  margin: 1.5mm 0 0;
  color: #d8ce92;
  font-size: 9pt;
}

.print-card__qr {
  width: 34mm;
  height: 34mm;
  margin-top: auto;
  padding: 2.5mm;
  background: #fff;
}

.print-card__qr svg {
  display: block;
  width: 100%;
  height: 100%;
}

.print-card__code {
  margin: 2mm 0 0;
  font-family: ui-monospace, Consolas, monospace;
  font-size: 8pt;
  letter-spacing: 0.12em;
}

.print-card__buhen {
  width: 22mm;
  height: auto;
  margin-top: 4mm;
  opacity: 0.8;
}

@media print {
  @page { size: 105mm 148mm; margin: 0; }
  .print-page { padding: 0; background: #000; }
  .print-bar { display: none; }
}

/* =========================================================
   Ozon pickup point picker
   ========================================================= */

.ozon {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 5px;
  transition: border-color 0.2s ease;
}

[data-ozon-box].is-invalid .ozon {
  border-color: var(--danger);
}

.ozon__bar {
  display: flex;
  gap: 6px;
}

.ozon__search {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: transparent;
  color: var(--white);
  font: 500 13px/1 var(--font);
  letter-spacing: 0.02em;
}

.ozon__search:focus {
  outline: none;
  border-color: var(--white);
}

.ozon__search::placeholder {
  color: rgba(255, 255, 255, 0.25);
}

.ozon__near {
  position: relative;
  flex: none;
  padding: 0 12px;
  overflow: hidden;
  border: 1px solid var(--fg);
  border-radius: 5px;
  background: transparent;
  color: var(--fg);
  font: 600 12px/1 var(--font);
  text-transform: lowercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.ozon__near:hover {
  background: var(--fg);
  color: var(--bg);
}

/* the map, dimmed to the site's black */
.ozon__map {
  height: 280px;
  overflow: hidden;
  border-radius: 4px;
  background: #0d0d0d;
}

/* MapLibre controls in the site's colours */
.ozon .maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid #2a2a2a;
  border-radius: 5px;
  background: var(--bg);
  box-shadow: none;
}

.ozon .maplibregl-ctrl-group button {
  width: 30px;
  height: 30px;
}

.ozon .maplibregl-ctrl-group button + button {
  border-top: 1px solid #2a2a2a;
}

.ozon .maplibregl-ctrl-group button .maplibregl-ctrl-icon {
  filter: invert(0.85);
}

.ozon .maplibregl-ctrl-group button:hover {
  background: #1a1a1a;
}

.ozon .maplibregl-ctrl-attrib {
  background: rgba(0, 0, 0, 0.65);
  color: var(--muted);
  font: 500 9px/1.4 var(--font);
}

.ozon .maplibregl-ctrl-attrib a {
  color: var(--muted);
}

.ozon .maplibregl-ctrl-attrib-button {
  filter: invert(0.8);
  background-color: transparent;
}

.ozon .maplibregl-ctrl-attrib.maplibregl-compact {
  background: rgba(0, 0, 0, 0.65);
}

.ozon__tip .maplibregl-popup-content {
  padding: 6px 9px;
  border: 1px solid var(--fg);
  border-radius: 4px;
  background: var(--bg);
  color: var(--white);
  box-shadow: none;
  font: 500 11px/1.3 var(--font);
}

.ozon__tip .maplibregl-popup-tip {
  border-top-color: var(--fg) !important;
}

.ozon__hint {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.ozon__list {
  display: flex;
  flex-direction: column;
  max-height: 228px;
  padding-right: 6px;
  overflow-y: auto;
  overscroll-behavior: contain;
  transition: mask-size 0.2s ease;
}

/* more points below: the last row fades out; gone once scrolled to the end */
.ozon__list.has-more {
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent);
}

/* thin scrollbar in the site's colours, no track, no arrows */
.ozon__list::-webkit-scrollbar {
  width: 4px;
}

.ozon__list::-webkit-scrollbar-track {
  background: transparent;
}

.ozon__list::-webkit-scrollbar-thumb {
  border-radius: 2px;
  background: rgba(217, 217, 217, 0.28);
}

.ozon__list:hover::-webkit-scrollbar-thumb {
  background: rgba(217, 217, 217, 0.5);
}

.ozon__list::-webkit-scrollbar-thumb:active {
  background: var(--link);
}

.ozon__list::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}

/* Firefox has no ::-webkit-scrollbar */
@supports not selector(::-webkit-scrollbar) {
  .ozon__list {
    scrollbar-width: thin;
    scrollbar-color: rgba(217, 217, 217, 0.35) transparent;
  }
}

.ozon__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 9px 8px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--fg);
  font: 500 13px/1.3 var(--font);
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ozon__item:hover {
  background: rgba(217, 217, 217, 0.06);
}

.ozon__item.is-on {
  background: rgba(216, 206, 146, 0.1);
}

.ozon__item.is-on .ozon__item-name {
  color: var(--link);
}

.ozon__item-name {
  color: var(--white);
}

.ozon__item-meta {
  color: var(--muted);
  font-size: 11px;
}

.ozon__empty {
  margin: 0;
  padding: 14px 0;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

/* the chosen point, like the selected delivery option: filled */
.ozon__picked {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 5px;
  background: var(--fg);
  color: var(--bg);
}

.ozon__picked.is-pop {
  animation: chip-pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.ozon__picked-type {
  color: rgba(0, 0, 0, 0.55);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: var(--ls);
  text-transform: uppercase;
}

.ozon__picked-addr {
  font-weight: 700;
  font-size: 13px;
}

.ozon__picked-meta {
  color: rgba(0, 0, 0, 0.6);
  font-size: 11px;
}

.ozon__picked-price {
  margin-top: 4px;
  font-weight: 700;
  font-size: 13px;
}

.ozon__picked-price:empty {
  display: none;
}

.ozon__calc {
  opacity: 0.6;
  animation: soon-pulse 1s ease-in-out infinite;
}

.ozon__warn {
  color: #a3001b;
  font-weight: 600;
}

.order__track {
  font-family: ui-monospace, Consolas, monospace;
  letter-spacing: 0.04em;
}

/* =========================================================
   cookie notice
   ========================================================= */

.cookie {
  position: fixed;
  z-index: 30;
  left: 24px;
  bottom: 24px;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 360px;
  padding: 12px 12px 12px 16px;
  border: 1px solid var(--fg);
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.88);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.9);
  animation: cookie-in 0.6s var(--ease);
}

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

.cookie.is-leaving {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.cookie__text {
  margin: 0;
  color: var(--fg);
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: 0.02em;
  text-transform: lowercase;
}

.cookie__text a {
  color: var(--link);
  text-decoration: underline;
  text-decoration-color: rgba(216, 206, 146, 0.35);
  text-underline-offset: 3px;
}

.cookie__text a:hover {
  color: var(--white);
}

.cookie__ok {
  flex: none;
  height: 32px;
  padding: 0 16px;
  border: 1px solid var(--fg);
  border-radius: 5px;
  background: var(--fg);
  color: var(--bg);
  font: 700 12px/1 var(--font);
  letter-spacing: var(--ls);
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.cookie__ok:hover {
  background: var(--bg);
  color: var(--fg);
}

.cookie__ok:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

/* =========================================================
   documents
   ========================================================= */

.legal__nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 18px;
  width: min(720px, 100%);
  margin: 0 auto 36px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 12px;
  text-transform: lowercase;
}

.legal__nav a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.15s ease;
}

.legal__nav a:hover,
.legal__nav a[aria-current] {
  color: var(--white);
}

.legal__nav a[aria-current] {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.legal__table {
  display: flex;
  flex-direction: column;
  margin: 0 0 14px;
  border-top: 1px solid var(--line);
}

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

.legal__table dt {
  color: var(--white);
}

.legal__table dd {
  margin: 0;
  color: var(--muted);
  text-align: right;
}

.legal__table code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
}

.legal__text ol,
.legal__text ul {
  margin: 0 0 10px;
  padding-left: 20px;
}

.legal__text li {
  margin-bottom: 6px;
}

.item__links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
}

/* ---------- responsive ---------- */

@media (max-width: 1329px) {
  .market__ghost--fill { display: none; }
}

@media (max-width: 1023px) {
  .item,
  .cart__grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 32px;
  }

  .item__info,
  .checkout {
    position: static;
  }

  .item__gallery {
    width: min(560px, 100%);
    margin: 0 auto;
  }

  .item__info {
    width: min(560px, 100%);
    margin: 0 auto;
  }
}

@media (max-width: 767px) {
  .ozon__map {
    height: 240px;
  }

  .ozon__bar {
    flex-wrap: wrap;
  }

  .ozon__near {
    height: 34px;
  }

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

  .legal__table div {
    flex-direction: column;
    gap: 2px;
  }

  .legal__table dd {
    text-align: left;
  }

  .hall-cart {
    top: 12px;
    right: 12px;
    height: 30px;
    padding: 0 10px;
    font-size: 12px;
  }

  .hall-filter {
    margin: 26px 0 -6px;
    gap: 6px 16px;
    font-size: 12px;
  }

  .hall-main,
  .item,
  .hall-more {
    margin-top: 40px;
  }

  .hall-main {
    min-height: 300px;
  }

  .hall-h {
    margin-bottom: 20px;
    font-size: 14px;
  }

  .item {
    gap: 24px;
  }

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

  .item__draft {
  align-self: flex-start;
  margin: 20px 0 0;
  padding: 4px 8px;
  border: 1px dashed var(--link);
  border-radius: 4px;
  color: var(--link);
  font-size: 11px;
}

.item__maker { margin-top: 18px; }
  .item__title { font-size: 18px; }
  .item__price { margin-top: 12px; font-size: 18px; }
  .item__buy { margin-top: 18px; }

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

  .hall-more .hall-more__grid .product:nth-child(3) {
    display: none;
  }

  .maker__head {
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
  }

  .maker__avatar {
    width: 72px;
    height: 72px;
  }

  .maker__name {
    font-size: 22px;
  }

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

  .pass__info {
    padding: 24px 20px 20px;
    border-left: 0;
    border-top: 1px solid var(--fg);
  }

  .seal {
    right: 10px;
    bottom: 10px;
    width: 88px;
    height: 88px;
  }

  .line {
    grid-template-columns: 64px minmax(0, 1fr);
    gap: 12px;
  }

  .line__side {
    grid-column: 2;
    flex-direction: row-reverse;
    justify-content: space-between;
    align-items: center;
  }

  .legal__text {
    font-size: 13px;
  }

  .hall-footer {
    padding-bottom: 32px;
  }

  .product__badge {
    top: 6px;
    left: 6px;
    font-size: 9px;
  }

  .page-hall .product__media img {
    padding: 4% 0;
  }
}
