.market-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap; margin: calc(clamp(1.4rem, 3vw, 2.4rem) * -1) calc(clamp(1.4rem, 3vw, 2.4rem) * -1) 1.5rem; padding: clamp(1.5rem, 3vw, 2.4rem); border-bottom: 1.5px solid var(--ink); background: var(--leaf-soft); }
.market-head h1 { margin-bottom: 0.35rem; }
.market-head p { max-width: 48rem; margin: 0; }
.market-filter { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.market-filter a { padding: 0.3rem 0.8rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); color: var(--ink); font-family: var(--font-mono); font-size: 0.7rem; text-decoration: none; text-transform: uppercase; }
.market-filter a[aria-current="true"] { background: var(--sun); color: var(--ink); box-shadow: inset 0 0 0 1px var(--sun); }
.market-price { font-size: 1.3rem; font-weight: 800; letter-spacing: -0.03em; }
.market-price small { color: var(--ink-soft); font-size: 0.7rem; font-weight: 400; }
.market-muted { color: var(--ink-soft); font-size: 0.88rem; }
.market-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 0 0 1.1rem; overflow: hidden; }
.market-card > * { margin-inline: 1.2rem; }
.market-card .market-price { margin-top: auto; }
.market-card .market-card__pic { display: block; height: 11rem; margin: 0 0 0.8rem; padding: 1rem 0 0.4rem; border-bottom: 1px solid var(--ink); background-color: color-mix(in srgb, var(--tint, var(--sun)) 12%, var(--paper)); background-image: linear-gradient(var(--grid) 1px, transparent 1px), linear-gradient(90deg, var(--grid) 1px, transparent 1px); background-size: 16px 16px; }

.market-product { display: grid; grid-template-columns: minmax(0, 2fr) minmax(18rem, 1fr); align-items: stretch; border: 1.5px solid var(--ink); }
.market-product > article { padding: clamp(1.2rem, 3vw, 2rem); }
.market-product__head { display: flex; gap: 1.2rem; align-items: center; margin: 0 0 1.5rem; padding-bottom: 1.4rem; border-bottom: 1px dashed var(--ink); }
.market-product__pic { flex: 0 0 7rem; height: 10rem; padding: 0.8rem 0 0.3rem; border: 1px solid var(--ink); background: color-mix(in srgb, var(--tint, var(--sun)) 12%, var(--paper)); }
.market-product__head h1 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.7rem); }
.market-product h2 { margin: 1.8rem 0 0.6rem; padding-top: 0.6rem; border-top: 1px solid var(--grid); font-size: 1.45rem; }
.market-facts { display: grid; grid-template-columns: max-content 1fr; gap: 0.45rem 1.2rem; margin: 0 0 1.4rem; padding: 1rem; border: 1px solid var(--ink); background: var(--leaf-soft); }
.market-facts dt { color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.7rem; text-transform: uppercase; }
.market-facts dd { margin: 0; }
.market-verbatim { padding: 1rem 1.2rem; border: 1px solid var(--ink); border-left: 0.4rem solid var(--leaf); background: var(--leaf-soft); white-space: pre-line; }
.market-verbatim--warn { border-left-color: var(--warn); background: #fbefe6; }
.market-text { white-space: pre-line; }
.market-source { margin-top: 1.4rem; text-transform: none; }
.market-buy { display: flex; flex-direction: column; gap: 0; border: 0; border-left: 1.5px solid var(--ink); border-radius: 0; }
.market-channel { padding: 1.4rem; border-top: 1.5px solid var(--ink); }
.market-channel:first-child { border-top: 0; }
.market-channel h2 { font-size: 1.25rem; }
.market-qty { width: 4.5rem; padding: 0.5rem; border: 1.5px solid var(--ink); border-radius: 0; font: inherit; }
.market-inline-form { display: flex; gap: 0.6rem; align-items: center; flex-wrap: wrap; }

.market-table { width: 100%; border-collapse: collapse; border: 1.5px solid var(--ink); background: var(--paper); }
.market-table th, .market-table td { padding: 0.8rem 1rem; border-bottom: 1px solid var(--grid); text-align: left; vertical-align: middle; }
.market-table th { border-bottom: 1.5px solid var(--ink); color: var(--ink-soft); font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; }
.market-table td.num, .market-table th.num { text-align: right; white-space: nowrap; }
.market-table tfoot td { border-bottom: 0; background: var(--leaf-soft); font-size: 1.1rem; font-weight: 800; }
.market-actions { display: flex; gap: 0.8rem; justify-content: flex-end; margin-top: 1.2rem; flex-wrap: wrap; }
.market-messages { margin: 0 0 1rem; padding: 0; list-style: none; }
.market-messages li { margin-bottom: 0.4rem; padding: 0.7rem 1rem; border: 1px solid var(--ink); background: var(--leaf-soft); }
.market-messages li.error, .market-messages li.warning { background: #fbefe6; color: var(--warn); }
.market-status { display: inline-block; padding: 0.2rem 0.65rem; border: 1px solid var(--ink); border-radius: 999px; background: var(--paper); font-family: var(--font-mono); font-size: 0.66rem; text-transform: uppercase; }
.market-status--paid, .market-status--shipped, .market-status--done { border-color: var(--leaf); background: var(--leaf-soft); color: var(--leaf); }

.bottle { width: 100%; height: 100%; display: block; }
.bottle__shade { fill: rgba(16, 20, 15, 0.1); }
.bottle__cap { fill: #10140f; }
.bottle__glass { fill: #7a3f14; stroke: #10140f; stroke-width: 1.5; }
.bottle__shine { stroke: rgba(255, 255, 255, 0.28); stroke-width: 4; stroke-linecap: round; fill: none; }
.bottle__label { fill: #fbfaf6; }
.bottle__band { fill: var(--tint, var(--leaf)); stroke: var(--tint, var(--leaf)); stroke-width: 3; stroke-linecap: round; }
.bottle__text { font-family: var(--font-display); font-weight: 800; font-size: 19px; fill: #10140f; }
.tint--c60-chernyj-tmin { --tint: #3a3340; }
.tint--c60-olivkovoe { --tint: #8a9a3b; }
.tint--c60-lnyanoe { --tint: #c79a1e; }
.tint--c60-vinogradnaya-kostochka { --tint: #6f2c5f; }
.tint--c60-shipovnik { --tint: #c8452e; }
.tint--c60-greckij-oreh { --tint: #8b5a2b; }
.tint--c60-ryzhikovoe { --tint: #d9a11c; }
.tint--c60-tykva { --tint: #56732c; }
.tint--c60-avokado-rastoropsha { --tint: #5e8c3a; }
.tint--c60-oblepiha { --tint: #ef7d1a; }
.tint--formula-alhimika, .tint--formula-alhimika-3 { --tint: #4f9fb8; }

@media (max-width: 760px) {
  .market-product { grid-template-columns: 1fr; }
  .market-buy { border-left: 0; border-top: 1.5px solid var(--ink); }
  .market-table { display: block; overflow-x: auto; }
  .market-product__head { align-items: flex-start; }
  .market-product__pic { flex-basis: 5rem; height: 7rem; }
}

.market-product-image{display:block;width:100%;height:100%;object-fit:contain;mix-blend-mode:multiply}.market-text,.market-product h1,.card__title,.kit-card__description{overflow-wrap:anywhere}.market-description{max-width:100%;margin-bottom:1.2rem}.market-description>summary{cursor:pointer;font-weight:700}.market-description>div{padding-top:1rem}.market-card__pic .market-product-image{mix-blend-mode:multiply}
