/* TB Market v0.13.334 — customer variant selectors, picker sheet and size chart (web + mobile web) */
.pv-picker{display:grid;gap:12px}
.pv-axes{display:grid;gap:14px}
.pv-axis{display:grid;gap:8px;min-width:0}
.pv-axis-head{display:flex;flex-wrap:wrap;align-items:baseline;gap:5px;color:#707f8d;font-size:14px;line-height:1.3}
.pv-axis-head b{color:#001a34;font-weight:600}
.pv-size-link{margin-left:auto;padding:0;border:0;background:none;color:#005bff;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.pv-size-link:hover{text-decoration:underline}
.pv-values{display:flex;flex-wrap:wrap;gap:8px}
.pv-value{position:relative;margin:0;border:2px solid transparent;border-radius:12px;background:#f2f3f5;color:#001a34;font:inherit;cursor:pointer;transition:border-color .12s,background .12s,opacity .12s}
.pv-value:hover{border-color:#b8c4d6}
.pv-value:focus-visible{outline:2px solid #005bff;outline-offset:2px}
.pv-chip{display:inline-grid;justify-items:center;align-content:center;gap:1px;min-width:52px;min-height:40px;padding:7px 13px;font-size:14px;line-height:1.2}
.pv-chip b{font-weight:600;white-space:nowrap}
.pv-chip.has-price{min-width:78px;padding:7px 12px}
.pv-price{color:#5b6573;font-size:12px;font-weight:500;white-space:nowrap}
.pv-chip.is-active{border-color:#005bff;background:#fff}
.pv-thumb{display:grid;gap:2px;width:62px;padding:2px;border-color:#e3e8ef;background:#fff}
.pv-thumb.is-active{border-color:#005bff}
.pv-thumb-media{display:block;width:54px;height:72px;overflow:hidden;border-radius:9px;background:#f2f3f5}
.pv-thumb-media img{display:block;width:100%;height:100%;object-fit:cover}
.pv-thumb-media.is-swatch{display:grid;place-items:center;align-content:center;gap:5px;padding:4px}
.pv-thumb-media.is-swatch i{width:26px;height:26px;border-radius:50%;background:var(--pv-color);box-shadow:inset 0 0 0 1px rgba(0,26,52,.14)}
.pv-thumb-media.is-swatch small{max-width:100%;overflow:hidden;font-size:10px;line-height:1.1;text-align:center;text-overflow:ellipsis}
.pv-thumb .pv-price{padding:1px 0 2px;font-size:11px;text-align:center}
.pv-badge{position:absolute;top:-8px;right:-6px;z-index:1;padding:0 5px;border-radius:7px;background:#f91155;color:#fff;font-size:10px;font-style:normal;font-weight:700;line-height:17px}
.pv-value.is-other{opacity:.6}
.pv-value.is-out{color:#99a3ae}
.pv-chip.is-out b{text-decoration:line-through}
.pv-thumb.is-out .pv-thumb-media{opacity:.45}
.product-gallery-card.has-single-visible .product-detail-gallery-arrow,.product-gallery-card.has-single-visible .product-detail-gallery-dots{display:none!important}
.product-choice-picker .pv-picker .product-variant-selected{display:none}

/* ---------- sheets (picker + size chart) ---------- */
body.pv-modal-open{overflow:hidden}
.pv-modal{position:fixed;inset:0;z-index:5000;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,26,52,.48);animation:pvFade .15s ease}
@keyframes pvFade{from{opacity:0}to{opacity:1}}
.pv-sheet{display:flex;flex-direction:column;width:min(520px,100%);max-height:calc(100vh - 48px);overflow:hidden;border-radius:20px;background:#fff;color:#001a34;box-shadow:0 24px 70px rgba(0,26,52,.3)}
.pv-sg-modal .pv-sheet{width:min(720px,100%)}
.pv-sheet-head{display:flex;align-items:center;gap:10px;padding:16px 18px 8px}
.pv-sheet-head b{flex:1;font-size:18px;font-weight:700}
.pv-close{flex:none;width:34px;height:34px;border:0;border-radius:10px;background:#f2f3f5;color:#001a34;font-size:22px;line-height:1;cursor:pointer}
.pv-sheet-body{flex:1;min-height:0;overflow-y:auto;padding:8px 18px 16px}
.pv-sheet-foot{display:flex;align-items:center;gap:12px;padding:12px 18px calc(14px + env(safe-area-inset-bottom));border-top:1px solid #eef1f5}
.pv-more{color:#005bff;font-size:14px;font-weight:600;text-decoration:none;white-space:nowrap}
.pv-add{flex:1;min-height:48px;border:0;border-radius:14px;background:#005bff;color:#fff;font:inherit;font-size:16px;font-weight:700;cursor:pointer}
.pv-add:disabled{background:#c9d2de;cursor:not-allowed}
.pv-add.is-loading{opacity:.7}
.pv-pick-product{display:grid;grid-template-columns:72px 1fr;gap:12px;align-items:center;margin-bottom:14px}
.pv-pick-product>img,.pv-pick-noimg{width:72px;height:96px;border-radius:12px;background:#f2f3f5;object-fit:cover}
.pv-pick-name{display:-webkit-box;overflow:hidden;font-size:14px;font-weight:600;line-height:1.3;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.pv-pick-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px;margin:4px 0 2px}
.pv-pick-price strong{font-size:20px;font-weight:800}
.pv-pick-price del{color:#99a3ae;font-size:13px}
.pv-pick-price em{padding:0 5px;border-radius:6px;background:#f91155;color:#fff;font-size:11px;font-style:normal;font-weight:700;line-height:17px}
.pv-pick-product small{font-size:12px;font-weight:600}
.pv-pick-product small.is-ok{color:#10c44c}.pv-pick-product small.is-out{color:#f91155}
.pv-sg-modal section{margin-bottom:16px}
.pv-sg-modal h4{margin:0 0 8px;font-size:15px}
.pv-sg-image{display:block;max-width:100%;border-radius:12px;border:1px solid #eef1f5}
.pv-sg-text{margin:0;color:#334155;font-size:14px;line-height:1.5}
.pv-sg-table-wrap{overflow-x:auto}
.pv-sg-table{width:100%;border-collapse:collapse;font-size:13px}
.pv-sg-table th,.pv-sg-table td{padding:8px 10px;border-bottom:1px solid #eef1f5;text-align:left;white-space:nowrap}
.pv-sg-table th{color:#707f8d;font-weight:600;background:#f7f8fa}
.pv-sg-table-wrap small{display:block;margin-top:6px;color:#707f8d;font-size:12px}
.pv-sg-how-grid{display:grid;grid-template-columns:150px 1fr;gap:14px;align-items:center}
.pv-sg-how svg{width:100%;height:auto}
.pv-sg-how ol{margin:0;padding-left:0;list-style:none;display:grid;gap:8px;font-size:13px;line-height:1.45}
.pv-sg-how li b{display:inline-grid;place-items:center;width:18px;height:18px;margin-right:4px;border-radius:50%;background:#f2f3f5;font-size:11px}
.pv-sg-how p{margin:8px 0 0;color:#707f8d;font-size:12px}
@media(max-width:720px){
  .pv-modal{align-items:flex-end;padding:0}
  .pv-sheet,.pv-sg-modal .pv-sheet{width:100%;max-height:90vh;border-radius:20px 20px 0 0;animation:pvUp .2s ease}
  @keyframes pvUp{from{transform:translateY(30px)}to{transform:none}}
  .pv-sg-how-grid{grid-template-columns:110px 1fr}
  .pv-values{gap:7px}
}
/* v0.13.336: "Barcha variantlar" link + sheet (every combination with photo, price, discount) */
/* v0.13.345: the selected variant is sold out — the buy button says so and a note sits under the selectors */
.pv-stock-note{margin:10px 0 0;padding:9px 12px;border-radius:12px;background:#fff1f3;color:#c0264f;font-size:13px;font-weight:650;line-height:1.35}
html body:not(#tbp) .btn-buy-main.is-soldout,html body:not(#tbp) .btn-buy-main.is-soldout:hover{background:#e9edf3!important;border-color:#e9edf3!important;color:#5f6b7c!important;box-shadow:none!important;cursor:not-allowed!important}
html body:not(#tbp) .btn-buy-main.is-soldout .arrival-cart-icon{display:none!important}
html[data-theme="dark"] .pv-stock-note{background:#3a1d26;color:#ff8fa8}
html[data-theme="dark"] body:not(#tbp) .btn-buy-main.is-soldout{background:#273140!important;border-color:#273140!important;color:#9fb0c4!important}

/* v0.13.347 — more than 5 sizes: plain drop-down list (no photos); "Barcha variantlar" = plain list (no photos) */
.pv-dd{position:relative;max-width:360px}
.pv-dd-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-height:46px;padding:0 14px;border:2px solid #e3e8ef;border-radius:12px;background:#fff;color:#001a34;font:inherit;font-size:15px;font-weight:600;text-align:left;cursor:pointer}
.pv-dd-btn:hover,.pv-dd-btn[aria-expanded="true"]{border-color:#005bff}
.pv-dd-btn i{width:9px;height:9px;margin-top:-4px;border-right:2px solid #707f8d;border-bottom:2px solid #707f8d;transform:rotate(45deg);transition:transform .15s}
.pv-dd-btn[aria-expanded="true"] i{margin-top:4px;transform:rotate(-135deg)}
.pv-dd-list{position:absolute;left:0;right:0;top:calc(100% + 6px);z-index:40;display:grid;max-height:300px;overflow:auto;padding:6px;border:1px solid #e3e8ef;border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(0,26,52,.16)}
.pv-dd-list[hidden]{display:none!important}
.pv-dd-item{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:42px;padding:8px 12px;border:0;border-radius:10px;background:transparent;color:#001a34;font:inherit;font-size:15px;text-align:left;cursor:pointer}
.pv-dd-item:hover{background:#f2f5fa}
.pv-dd-item.is-active{background:#eef4ff}
.pv-dd-item.is-active b{color:#005bff}
.pv-dd-item b{font-weight:600}
.pv-dd-note{color:#707f8d;font-size:13px;white-space:nowrap}
.pv-dd-item.is-out b{color:#99a3ae;text-decoration:line-through}
.pv-dd-item.is-out .pv-dd-note{color:#e8336d}
.pv-dd-item.is-other{opacity:.7}
html[data-theme="dark"] .pv-dd-btn,html[data-theme="dark"] .pv-dd-list{border-color:#354153;background:#18202b;color:#edf3fa}
html[data-theme="dark"] .pv-dd-item{color:#edf3fa}
html[data-theme="dark"] .pv-dd-item:hover{background:#212b38}
html[data-theme="dark"] .pv-dd-item.is-active{background:#1d2a40}

/* v0.13.407: the colour name under every colour photo (as in the app) */
.pv-thumb{align-content:start}
.pv-thumb-name{display:block;max-width:58px;overflow:hidden;padding:0 1px 2px;font-size:11px;line-height:1.2;text-align:center;text-overflow:ellipsis;white-space:nowrap;color:#001A34}
.pv-thumb.is-active .pv-thumb-name{font-weight:700}
/* v0.13.407: one clean block in the product card — no box inside a box inside a box; the size list as wide as the block */
.product-summary-card .product-choice-picker,html body:not(#tbp):not(#tbq) .product-summary-card .product-choice-picker{border:0!important;padding:14px 0 4px!important;margin:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important;border-top:1px solid #EEECE7!important}
.product-summary-card .product-choice-section.pv-picker,html body:not(#tbp):not(#tbq) .product-summary-card .product-choice-picker .product-choice-section{border:0!important;padding:0!important;background:transparent!important;border-radius:0!important;box-shadow:none!important}
.pv-picker .pv-dd{width:100%;max-width:none}
.pv-picker .pv-axis+.pv-axis{margin-top:14px}
/* v0.13.407: an old price that is not higher than the price (and «-0%») never shows */
[data-product-discount][hidden],[data-product-old-price][hidden]{display:none!important}
