/* Perkelta iš prototipo mix-isklotine.html (bendra antraštės, mygtukų ir poraštės dalis yra shop.css). */
/* Paieškos eigos bendri elementai */
.crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;font-size:15.5px;color:var(--ink-3);padding:4px 0 16px;list-style:none}
.crumbs a{color:var(--ink-2);font-weight:500}
.crumbs a:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.crumbs i{font-size:13px}
.crumbs [aria-current]{color:var(--ink);font-weight:600}
.steps{display:flex;align-items:center;gap:6px;list-style:none;font-size:15px;font-weight:600;flex-wrap:wrap}
.steps li{display:flex;align-items:center;gap:8px;height:36px;padding:0 14px 0 6px;border-radius:var(--r-pill);background:var(--tile-2);color:var(--ink-3)}
.steps li b{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;font-size:13.5px;background:#fff;box-shadow:0 0 0 1px var(--line);color:var(--ink-2)}
.steps li.done{color:var(--ink-2)}
.steps li.done b{background:var(--ink);color:#fff;box-shadow:none}
.steps li.now{background:var(--yellow);color:var(--ink)}
.steps li.now b{background:var(--ink);color:var(--yellow);box-shadow:none}
.steps li a{display:flex;align-items:center;gap:8px}
.steps li a:hover{text-decoration:underline;text-underline-offset:3px}
.steps .sep{width:18px;height:2px;background:rgba(0,0,0,.14);border-radius:2px;padding:0}
.steps-note{font-size:14.5px;color:var(--ink-3);margin-top:8px}
.head{padding:40px 44px;background:linear-gradient(135deg,#fff 0%,#fff 60%,#fff6d8 100%)}
.head h1{font-size:52px;line-height:1.06;letter-spacing:-.03em;font-weight:800}
.head .lead{font-size:19px;color:var(--ink-2);margin-top:12px;max-width:52ch}
.filter{display:flex;align-items:center;gap:8px;height:58px;padding:0 8px 0 20px;border-radius:var(--r-pill);background:var(--tile-2);box-shadow:inset 0 0 0 1px var(--line)}
.filter:focus-within{background:#fff;box-shadow:inset 0 0 0 2px var(--yellow)}
.filter i{font-size:22px;color:var(--ink-2)}
.filter input{flex:1;min-width:0;border:0;outline:0;background:transparent;font-size:17.5px;padding:0 6px;height:50px}
.filter input::placeholder{color:var(--ink-3)}
.h2{font-size:32px;letter-spacing:-.02em;line-height:1.15;font-weight:800}
.sec-h{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin:48px 0 18px;flex-wrap:wrap}
.sec-h small{font-size:15.5px;color:var(--ink-3)}
/* Pagalbos lentelė */
.help{padding:36px;display:grid;grid-template-columns:1.1fr 1fr;gap:32px;align-items:center}
.help h2{font-size:30px;line-height:1.15;font-weight:800;letter-spacing:-.02em;color:#fff}
.help .p{color:#c7c7cc;margin-top:8px;font-size:17px;max-width:46ch}
.help ol{list-style:none;display:grid;gap:12px;counter-reset:h}
.help ol li{display:flex;gap:14px;align-items:flex-start;background:rgba(255,255,255,.07);border-radius:var(--r-md);padding:16px 18px;font-size:16.5px;line-height:1.45;color:#e5e5ea}
.help ol li b{display:block;color:#fff;font-size:17px;margin-bottom:2px}
.help ol li .ic-chip{background:var(--yellow);width:40px;height:40px;border-radius:12px}
.help ol li .ic-chip .ph{color:var(--ink);font-size:21px}
.help .act{display:flex;flex-wrap:wrap;gap:10px;margin-top:24px}
.help .num{font-size:20px;font-weight:800}
.help .btn-w{box-shadow:none}
.help small{display:block;color:#aeaeb2;font-size:15px;margin-top:12px}
@media (max-width:1180px){
  .help{grid-template-columns:1fr}
}
@media (max-width:767px){
  .crumbs{font-size:14.5px;padding-bottom:12px}
  .head{padding:24px 20px}
  .head h1{font-size:34px}
  .head .lead{font-size:17px}
  .steps{font-size:13.5px;gap:4px}
  .steps li{height:32px;padding:0 10px 0 4px;gap:6px}
  .steps li b{width:24px;height:24px;font-size:12.5px}
  .steps .sep{width:8px}
  .h2{font-size:26px}
  .sec-h{margin:36px 0 14px}
  .help{padding:24px 20px;gap:20px}
  .help h2{font-size:25px}
  .help .act .btn{flex:1 1 auto}
}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{transition-duration:.01ms!important;animation:none!important;scroll-behavior:auto!important}
}
@media (max-width:767px){ .steps{flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none} .steps::-webkit-scrollbar{display:none} .steps li{flex:none;white-space:nowrap} }
.head{display:grid;grid-template-columns:96px 1fr auto;gap:28px;align-items:center;padding:28px 36px}
.head .boiler{height:150px;display:flex;align-items:center;justify-content:center;background:var(--tile-2);border-radius:var(--r-md)}
.head .boiler img{max-height:126px;width:auto;filter:drop-shadow(0 8px 12px rgba(0,0,0,.12))}
.head h1{font-size:44px}
.head .lead{margin-top:6px;font-size:18px}
.head .lead b{color:var(--ink)}
.head .side{display:flex;flex-direction:column;align-items:flex-end;gap:12px}
.change{font-size:15.5px;font-weight:600;display:inline-flex;align-items:center;gap:6px;color:var(--ink-2)}
.change:hover{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.layout{display:grid;grid-template-columns:300px minmax(0,1fr);gap:var(--gap);margin-top:var(--gap);align-items:start}
.aside{position:sticky;top:16px;display:flex;flex-direction:column;gap:var(--gap)}
.content{display:flex;flex-direction:column;gap:var(--gap);min-width:0}
.cats{padding:12px}
.cats h2{font-size:14px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--ink-3);padding:10px 12px 8px}
.cats ul{list-style:none;display:grid;gap:2px}
.cats button{width:100%;display:flex;align-items:center;gap:12px;height:48px;padding:0 12px;border:0;background:transparent;border-radius:var(--r-sm);font-size:16.5px;font-weight:500;cursor:pointer;text-align:left}
.cats button i{font-size:20px;color:var(--ink-2)}
.cats button span{margin-left:auto;font-size:14px;color:var(--ink-3);font-weight:600}
.cats button:hover{background:var(--tile-2)}
.cats button[aria-pressed="true"]{background:var(--ink);color:#fff;font-weight:600}
.cats button[aria-pressed="true"] i,.cats button[aria-pressed="true"] span{color:var(--yellow)}
.mcart{padding:22px}
.mcart h2{font-size:18px;font-weight:700;display:flex;align-items:center;gap:10px}
.mcart h2 i{font-size:22px}
.mcart .line{display:flex;justify-content:space-between;align-items:baseline;margin-top:12px;font-size:16px;color:var(--ink-2)}
.mcart .line b{font-size:17px;color:var(--ink)}
.mcart .sum b{font-size:26px;font-weight:800;letter-spacing:-.01em}
.mcart .pz-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px;min-height:28px}
.mcart .pz-list span{height:28px;min-width:28px;padding:0 9px;border-radius:var(--r-pill);background:var(--accent-soft);color:var(--accent-ink);font-size:13.5px;font-weight:700;display:inline-grid;place-items:center}
.mcart .btn{width:100%;margin-top:16px}
.mcart small{display:block;font-size:14px;color:var(--ink-3);margin-top:10px;line-height:1.45}
.mcart .bar-txt{display:none}
/* Tik puslapio kortelė „Meistrams“ (.cell.b2b), ne antraštės mygtukas a.gh.b2b */
.cell.b2b{padding:22px}
.cell.b2b b{font-size:18px;display:block;margin-top:12px;line-height:1.3}
.cell.b2b p{font-size:15.5px;margin-top:6px;color:#2A2A2D;line-height:1.5}
.cell.b2b .act{display:flex;gap:10px;align-items:center;margin-top:14px;flex-wrap:wrap}
.cell.b2b .btn{height:44px;padding:0 18px;font-size:15.5px}
.cell.b2b a.u{font-weight:600;font-size:15.5px;text-decoration:underline;text-underline-offset:4px}
.cell.b2b .ic-chip{background:rgba(255,255,255,.55)}
.cell.b2b .ic-chip .ph{color:var(--ink)}
/* Brėžinys */
.dg{padding:14px}
.dg-top{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:8px 8px 14px;flex-wrap:wrap}
.dg-top h2{font-size:22px;font-weight:800;letter-spacing:-.01em}
.dg-top p{font-size:15.5px;color:var(--ink-2);margin-top:2px;max-width:56ch;line-height:1.45}
.ctrl{display:flex;align-items:center;gap:6px;background:var(--tile-2);padding:5px;border-radius:var(--r-pill);box-shadow:inset 0 0 0 1px var(--line)}
.ctrl button{height:44px;min-width:44px;padding:0 14px;border-radius:var(--r-pill);border:0;background:#fff;box-shadow:0 0 0 1px rgba(0,0,0,.16),0 1px 2px rgba(0,0,0,.06);display:inline-flex;align-items:center;justify-content:center;gap:7px;font-weight:600;font-size:15px;cursor:pointer;color:var(--ink)}
.ctrl button i{font-size:20px}
.ctrl button:hover{background:var(--yellow);box-shadow:none}
.ctrl button:disabled{opacity:.4;cursor:default;background:#fff}
.ctrl .lvl{min-width:56px;text-align:center;font-weight:700;font-size:15px}
.dg-view{position:relative;overflow:auto;border-radius:var(--r-md);background:#fff;box-shadow:inset 0 0 0 1px var(--line);max-height:640px;cursor:grab;overscroll-behavior:contain}
.dg-view.drag{cursor:grabbing}
.dg-canvas{width:100%;transition:width .3s var(--ease)}
.dg-crop{position:relative;aspect-ratio:1520/956;overflow:hidden}
.dg-crop img{position:absolute;width:131.58%;height:auto;max-width:none;left:-15.79%;top:-10.04%;user-select:none;-webkit-user-drag:none;pointer-events:none}
/* Kiekvienas brėžinio numeris yra paspaudžiama zona ant paties skaičiaus. Numeris lieka matomas, žymeklis jo neuždengia. */
.mk{position:absolute;transform:translate(-50%,-50%);width:1.9%;height:2.5%;min-width:14px;min-height:14px;border:0;padding:0;border-radius:6px;background:transparent;cursor:pointer;mix-blend-mode:multiply;transition:background-color .15s,box-shadow .15s}
.mk:hover,.mk:focus-visible{background:rgba(0,0,0,.08);box-shadow:0 0 0 1.5px var(--ink);outline:0}
.dg.hl .mk.ok{background:rgba(242,183,5,.45)}
.dg.hl .mk.ok:hover{background:rgba(242,183,5,.7)}
.mk.on,.dg.hl .mk.on{background:rgba(242,183,5,.9);box-shadow:0 0 0 2px var(--ink),0 0 0 7px rgba(242,183,5,.35);z-index:2}
.mk.dim{opacity:.25}
.pop{position:fixed;z-index:70;width:270px;max-width:calc(100vw - 24px);background:#fff;border-radius:16px;padding:14px 16px;box-shadow:0 14px 40px rgba(0,0,0,.2),0 0 0 1px rgba(0,0,0,.06);font-size:14.5px;line-height:1.35}
.pop::after{content:"";position:absolute;left:var(--ax,50%);bottom:-7px;width:14px;height:14px;background:#fff;transform:translateX(-50%) rotate(45deg)}
.pop.below::after{bottom:auto;top:-7px}
.pop small{display:block;font-weight:700;color:var(--ink-3);letter-spacing:.04em;font-size:12px}
.pop b{display:block;font-size:16px;margin:2px 0 4px}
.pop .pr{font-weight:800;font-size:18px}
.pop .pa{display:flex;gap:8px;margin-top:10px}
.pop .pa .btn{height:38px;font-size:14.5px;padding:0 14px}
.pop .x{position:absolute;right:8px;top:8px;width:28px;height:28px;border:0;background:var(--tile-2);border-radius:50%;cursor:pointer;display:grid;place-items:center}
.dg-tools{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-bottom:12px}
.pz-find{display:flex;align-items:center;gap:8px;height:42px;padding:0 6px 0 14px;border-radius:99px;background:var(--tile-2);box-shadow:inset 0 0 0 1px var(--line)}
.pz-find input{width:120px;border:0;outline:0;background:transparent;font-size:15.5px;font-family:inherit}
.pz-find button{height:32px;padding:0 12px;border:0;border-radius:99px;background:var(--ink);color:#fff;font-weight:700;font-family:inherit;cursor:pointer}
.hl-t{display:inline-flex;align-items:center;gap:8px;font-size:15px;font-weight:600;cursor:pointer}
.dg-legend{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14.5px;color:var(--ink-3);padding:12px 8px 4px}
.dg-legend .dot{min-width:30px;height:22px;padding:0 4px;border-radius:5px;background:rgba(242,183,5,.45);display:inline-grid;place-items:center;font-size:13px;font-weight:700;color:var(--ink)}
/* Visas ekranas: brėžinys užpildo visą langą (veikia ir iPhone, kur naršyklės pilno ekrano režimo nėra) */
.dg.fs{position:fixed;inset:0;z-index:80;border-radius:0;padding:16px 20px;display:flex;flex-direction:column;background:#fff;box-shadow:none}
.dg.fs .dg-top p{display:none}
.dg.fs .dg-top{padding:0 0 10px}
.dg.fs .dg-view{flex:1;max-height:none}
.dg.fs .dg-legend{display:none}
.fs-bar{display:none}
.dg.fs .fs-bar{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-top:12px}
.fs-bar b{font-size:18px}
.fs-bar small{display:block;color:var(--ink-3);font-size:14px}
.pop{z-index:90!important}
/* Dalių sąrašas */
.list-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 4px 0}
.list-h small{font-size:15.5px;color:var(--ink-3)}
.parts{display:grid;gap:10px}
.part{display:grid;grid-template-columns:104px minmax(0,1fr) auto auto auto;grid-template-areas:"th info price qty add";align-items:center;gap:20px;padding:12px 20px 12px 12px;background:var(--tile);border-radius:22px;box-shadow:0 0 0 1px var(--line);cursor:pointer;scroll-margin:120px;transition:box-shadow .25s var(--ease),background-color .25s var(--ease)}
.part:hover{box-shadow:0 0 0 1px rgba(0,0,0,.14),0 10px 24px rgba(0,0,0,.06)}
.part.on{background:#fffbea;box-shadow:0 0 0 3px var(--yellow),0 12px 28px rgba(245,184,0,.18)}
.th{grid-area:th;width:104px;height:104px;border-radius:var(--r-md);overflow:hidden;position:relative;background:#fff;box-shadow:inset 0 0 0 1px var(--line)}
.th.img img{width:100%;height:100%;object-fit:contain;padding:8px}
.th.snip img{object-fit:cover;padding:0;object-position:35% 62%}
.th .pz{position:absolute;left:6px;top:6px;min-width:34px;height:34px;padding:0 6px;border-radius:var(--r-pill);background:var(--yellow);font-weight:800;font-size:16px;display:grid;place-items:center;box-shadow:0 0 0 2px #fff}
.th.num{background:var(--tile-2);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1}
.th.num small{font-size:13px;font-weight:600;color:var(--ink-3);letter-spacing:.04em}
.th.num span{font-size:44px;font-weight:800;letter-spacing:-.03em;margin-top:4px}
.part.on .th.num{background:var(--yellow)}
.part.on .th.num small{color:var(--ink)}
.info{grid-area:info;min-width:0;display:flex;flex-direction:column;align-items:flex-start}
.pos-l{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:var(--accent-ink)}
.info h3{font-size:18.5px;font-weight:700;line-height:1.3}
.code{font-size:15px;color:var(--ink-3)}
.stock{display:inline-flex;align-items:center;gap:6px;font-size:14.5px;font-weight:600;margin-top:6px}
.stock.ok{color:var(--ok)}
.stock.wait{color:var(--wait)}
.stock i{font-size:17px}
.loc{display:inline-flex;align-items:center;gap:5px;border:0;background:none;padding:2px 0;margin-top:4px;font-size:14.5px;font-weight:600;color:var(--ink-2);cursor:pointer;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(0,0,0,.25)}
.loc:hover{color:var(--ink);text-decoration-color:var(--ink)}
.price{grid-area:price;text-align:right}
.price b{display:block;font-size:24px;font-weight:800;white-space:nowrap}
.price small{display:block;font-size:13px;color:var(--ink-3);white-space:nowrap}
.qty{grid-area:qty;display:flex;align-items:center;height:44px;border-radius:var(--r-pill);background:var(--tile-2);box-shadow:inset 0 0 0 1px var(--line)}
.qty button{width:40px;height:44px;border:0;background:none;font-size:16px;cursor:pointer;display:grid;place-items:center;border-radius:var(--r-pill)}
.qty button:hover{background:#e6e6ea}
.qty input{width:36px;border:0;background:transparent;text-align:center;font-weight:700;font-size:16px;-moz-appearance:textfield}
.qty input::-webkit-outer-spin-button,.qty input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.add{grid-area:add;height:44px;padding:0 18px;font-size:15.5px;font-weight:700;min-width:150px}
.add.in{background:var(--ink);color:#fff}
.help{padding:28px 32px;grid-template-columns:1fr auto;gap:24px}
.help h2{font-size:26px}
@media (max-width:1180px){
  .layout{grid-template-columns:260px minmax(0,1fr)}
  .head{grid-template-columns:96px 1fr}
  .head .side{grid-column:1 / -1;flex-direction:row;align-items:center;justify-content:space-between}
  .part{grid-template-columns:96px minmax(0,1fr) auto;grid-template-areas:"th info price" "th qty add";row-gap:10px}
  .th{width:96px;height:96px}
  .qty{justify-self:end}
  .help{grid-template-columns:1fr}
}
@media (max-width:900px){
  .layout{grid-template-columns:1fr}
  .aside{display:contents}
  .cats{order:1;padding:8px;border-radius:22px}
  .cats h2{display:none}
  .cats ul{display:flex;overflow-x:auto;gap:6px;scrollbar-width:none}
  .cats ul::-webkit-scrollbar{display:none}
  .cats button{white-space:nowrap;height:42px;width:auto;border-radius:var(--r-pill);background:var(--tile-2);font-size:15px}
  .content{order:2}
  .cell.b2b{order:3}
  .mcart{position:fixed;left:12px;right:12px;bottom:12px;z-index:20;padding:10px 10px 10px 18px;border-radius:var(--r-pill);background:var(--ink);color:#fff;box-shadow:0 12px 32px rgba(0,0,0,.3);display:flex;align-items:center;gap:12px}
  .mcart > *:not(.bar-txt):not(.btn){display:none}
  .mcart .bar-txt{display:flex;flex-direction:column;line-height:1.25;flex:1;min-width:0}
  .mcart .bar-txt span{font-size:14px;color:#c7c7cc}
  .mcart .bar-txt b{font-size:18px}
  .mcart .btn{width:auto;margin:0;height:46px}
}
@media (max-width:767px){
  .head{grid-template-columns:64px 1fr;gap:14px 16px;padding:20px}
  .head .boiler{height:100px;border-radius:var(--r-sm)}
  .head .boiler img{max-height:84px}
  .head h1{font-size:28px}
  .head .lead{font-size:15.5px}
  .head .side{flex-direction:column;align-items:flex-start;gap:10px}
  .dg{padding:8px}
  .dg-top{padding:8px 6px 12px;gap:12px}
  .dg-top h2{font-size:20px}
  .ctrl{width:100%;justify-content:space-between}
  .ctrl button .l{display:none}
  .ctrl button{padding:0 12px}
  .dg-view{max-height:460px;border-radius:var(--r-sm)}
  .dg-canvas{min-width:720px}
  .part{grid-template-columns:76px minmax(0,1fr);grid-template-areas:"th info" "th price" "qty add";gap:8px 14px;padding:10px;border-radius:18px}
  .th{width:76px;height:76px;border-radius:var(--r-sm)}
  .th .pz{min-width:28px;height:28px;font-size:14px;left:4px;top:4px}
  .th.num span{font-size:32px}
  .info h3{font-size:16.5px}
  .code{font-size:14px}
  .price{text-align:left}
  .price b{font-size:21px}
  .qty{justify-self:start}
  .add{min-width:0;width:auto;margin-left:36px} /* prototipe mygtukas uždengė kiekio „+“ (116 px kiekis 76 px stulpelyje) */
  .help{padding:24px 20px}
  .help h2{font-size:23px}
}
.cell.b2b{background:linear-gradient(135deg,#fff 0%,#fff 55%,#fff6d8 100%)}
.cell.b2b .ic-chip{background:var(--accent-soft)}
.cell.b2b .ic-chip .ph{color:var(--accent-ink)}
.info h3 a:hover{text-decoration:underline;text-underline-offset:3px}
.xs{padding:22px}
.xs h2{font-size:18px;font-weight:700;margin-bottom:10px}
.xs ul{list-style:none;display:grid;gap:8px}
.xs li{display:flex;align-items:center;gap:10px;font-size:15px;line-height:1.3}
.xs li a{flex:1;min-width:0;font-weight:600}
.xs li a:hover{text-decoration:underline}
.xs li b{white-space:nowrap;font-size:15px}
.xs li button{width:36px;height:36px;border-radius:50%;border:0;background:var(--yellow);display:grid;place-items:center;cursor:pointer;flex:none;font-size:17px}
@media (max-width:900px){.xs{order:4} .toast{bottom:92px}}
/* Rethink brėžinys rodomas visas: prototipo apkarpymas buvo pritaikytas tik pavyzdiniam paveikslėliui. */
.dg-crop.dg-full{aspect-ratio:auto}
.dg-crop.dg-full img{position:static;width:100%;height:auto;left:0;top:0}
.dg-crop.dg-full canvas{display:block;width:100%;height:auto}
/* Tuščias dalių sąrašas: prototipo mix-modelis.html .empty (stilius buvo tik fit-model.css). */
.empty{padding:32px;display:flex;gap:18px;align-items:center;flex-wrap:wrap}
.empty p{flex:1;min-width:220px;font-size:17px;color:var(--ink-2)}
.empty b{color:var(--ink);display:block;font-size:20px}
@media (max-width:767px){.empty{padding:22px 20px}}
