/* Магазин it-pro.store: каталог во всю ширину, карточка товара, корзина и оформление. Цвета — из site.css */
.shop{width:100%;max-width:none;margin:0;padding:0 32px 40px;box-sizing:border-box}
.shop-head{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:16px;margin:40px 0 18px}
.shop-head h1{font-size:clamp(30px,3.4vw,44px);letter-spacing:-.03em}
.crumbs{font-size:14px;color:var(--muted);margin-top:28px}.crumbs a{color:var(--muted);text-decoration:none}.crumbs a:hover{color:var(--fg)}
.in,.sel{font:400 15px var(--body);color:var(--fg);background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:10px 13px;min-width:0;box-sizing:border-box}
.in:focus,.sel:focus{outline:2px solid var(--tint);outline-offset:1px}
textarea.in{resize:vertical;font-family:var(--body)}
.btn.sm{padding:8px 14px;font-size:14px}.btn.alt{background:var(--raised);color:var(--fg)}.btn[disabled]{opacity:.5;cursor:default}
.cartlink{position:relative;display:inline-flex;align-items:center;gap:6px;text-decoration:none;font-size:14px;padding:9px 14px;border-radius:999px;background:var(--surface);color:var(--fg)}
.cartlink b{min-width:20px;height:20px;border-radius:10px;background:var(--tint);color:#000;font-size:12px;display:inline-flex;align-items:center;justify-content:center;padding:0 6px}
.cartlink b:empty{display:none}
/* каталог */
.cat-tools{display:flex;gap:10px;flex-wrap:wrap;align-items:center;flex:1;justify-content:flex-end}
.cat-tools .in{flex:1 1 360px;max-width:640px}
.cat-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:28px;align-items:start}
.cat-side{position:sticky;top:96px;background:var(--surface);border-radius:20px;padding:18px;display:flex;flex-direction:column;gap:16px;max-height:calc(100vh - 120px);overflow:auto;scrollbar-width:thin}
.cat-side h3{font-size:14px;color:var(--muted);font-weight:500}
.cat-side label{display:flex;flex-direction:column;gap:6px;font-size:13px;color:var(--muted)}
.row2{display:flex;gap:8px}.row2 .in{width:100%}
.chk{flex-direction:row!important;align-items:center;gap:8px!important;color:var(--fg)!important;font-size:14px!important}
.cat-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:2px}
.cat-list button{all:unset;cursor:pointer;display:flex;justify-content:space-between;gap:8px;width:100%;box-sizing:border-box;padding:7px 10px;border-radius:10px;font-size:14px;color:var(--fg)}
.cat-list button:hover{background:var(--raised)}.cat-list button[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.cat-list small{color:var(--muted)}.cat-list button[aria-pressed="true"] small{color:inherit;opacity:.7}
.cat-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:14px}
.pcard{background:var(--surface);border-radius:18px;padding:14px;display:flex;flex-direction:column;gap:8px;min-width:0;text-decoration:none;color:inherit;transition:background .2s}
.pcard:hover{background:var(--raised)}
.pimg{aspect-ratio:1/1;border-radius:12px;background:#fff;display:flex;align-items:center;justify-content:center;overflow:hidden}
.pimg img{width:100%;height:100%;object-fit:contain}
.pimg.ph{background:var(--raised);color:var(--muted);font-size:12px;text-align:center;padding:10px}
.pcard .k{font-size:12px;color:var(--muted)}
.pcard h3{font-size:14px;line-height:1.35;font-weight:500;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
.pcard .p{font-size:19px;font-weight:600;letter-spacing:-.02em;margin-top:auto}
.st{font-size:12px;color:var(--tint)}
.info{color:var(--muted);font-size:14px;margin:0 0 12px}
.more{display:flex;justify-content:center;margin:22px 0}
.empty{background:var(--surface);border-radius:20px;padding:40px 24px;text-align:center;color:var(--muted)}
.fbtn{display:none}
/* карточка товара */
.prod{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:40px;margin-top:20px;align-items:start}
.gal{display:flex;flex-direction:column;gap:10px}
.gal .main{aspect-ratio:1/1;background:#fff;border-radius:20px;display:flex;align-items:center;justify-content:center;overflow:hidden}
.gal .main img{width:100%;height:100%;object-fit:contain}
.gal .thumbs{display:flex;gap:8px;flex-wrap:wrap}.gal .thumbs button{all:unset;cursor:pointer;width:72px;height:72px;background:#fff;border-radius:10px;overflow:hidden;border:2px solid transparent}
.gal .thumbs button[aria-pressed="true"]{border-color:var(--tint)}.gal .thumbs img{width:100%;height:100%;object-fit:contain}
.buy{display:flex;flex-direction:column;gap:14px}
.buy h1{font-size:clamp(24px,2.6vw,34px);letter-spacing:-.025em;line-height:1.15}
.buy .meta{color:var(--muted);font-size:14px;display:flex;gap:6px 16px;flex-wrap:wrap}
.buy .price{font-size:34px;font-weight:600;letter-spacing:-.03em}
.qty{display:inline-flex;align-items:center;background:var(--surface);border-radius:999px}
.qty button{all:unset;cursor:pointer;width:38px;height:38px;display:flex;align-items:center;justify-content:center;font-size:18px}
.qty input{width:52px;text-align:center;background:transparent;border:0;color:var(--fg);font:500 16px var(--body)}
.tabs{display:flex;gap:6px;margin:34px 0 14px;flex-wrap:wrap}
.tabs button{all:unset;cursor:pointer;padding:9px 16px;border-radius:999px;background:var(--surface);color:var(--muted);font-size:14px}
.tabs button[aria-selected="true"]{background:var(--fg);color:var(--bg)}
.pane{background:var(--surface);border-radius:20px;padding:22px;line-height:1.55;font-size:16px}
.pane p{margin:0 0 12px}
.specs{width:100%;border-collapse:collapse;font-size:15px}.specs td{padding:9px 6px;border-bottom:1px solid var(--line);vertical-align:top}.specs td:first-child{color:var(--muted);width:42%}
.note{font-size:13px;color:var(--muted)}
/* корзина и оформление */
.cart{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:28px;align-items:start;margin-top:10px}
.box{background:var(--surface);border-radius:20px;padding:20px;display:flex;flex-direction:column;gap:12px}
.box h2{font-size:20px;letter-spacing:-.02em}
.line{display:grid;grid-template-columns:64px minmax(0,1fr) auto auto auto;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.line .pimg{width:64px;height:64px;aspect-ratio:auto}
.line a{color:inherit;text-decoration:none}.line .nm{font-size:15px;line-height:1.3}.line .sum{font-weight:600;white-space:nowrap}
.x{all:unset;cursor:pointer;color:var(--muted);padding:4px 8px;font-size:18px}
.seg{display:inline-flex;background:var(--raised);border-radius:999px;padding:3px}
.seg button{all:unset;cursor:pointer;padding:7px 14px;border-radius:999px;font-size:14px;color:var(--muted)}
.seg button[aria-pressed="true"]{background:var(--fg);color:var(--bg)}
.opts{display:flex;flex-direction:column;gap:8px}
.opt{display:flex;gap:12px;align-items:flex-start;padding:12px;border-radius:14px;background:var(--bg);border:1px solid var(--line);cursor:pointer}
.opt input{margin-top:3px}.opt b{font-weight:500}.opt .c{margin-left:auto;font-weight:600;white-space:nowrap}
.opt.off{opacity:.55;cursor:default}
.grid2{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.sug{position:relative}.sug ul{position:absolute;z-index:5;left:0;right:0;top:100%;margin:4px 0 0;padding:4px;list-style:none;background:var(--raised);border-radius:12px;max-height:260px;overflow:auto;box-shadow:0 10px 30px rgba(0,0,0,.4)}
.sug li{padding:8px 10px;border-radius:8px;cursor:pointer;font-size:14px}.sug li:hover,.sug li.on{background:var(--surface)}
.tot{display:flex;justify-content:space-between;font-size:15px}.tot.big{font-size:22px;font-weight:600}
.msg{font-size:14px}.msg[data-state=err]{color:#ff6b6b}.msg[data-state=ok]{color:var(--tint)}
.pill{display:inline-block;padding:4px 10px;border-radius:999px;font-size:13px;background:var(--raised)}
.pill.ok{background:rgba(52,199,89,.18);color:#5be37f}.pill.wait{background:rgba(255,159,10,.18);color:#ffb340}
@media (max-width:1100px){.cart{grid-template-columns:1fr}}
@media (max-width:900px){.shop{padding:0 16px 32px}.cat-layout{grid-template-columns:1fr}.cat-side{position:static;max-height:none;display:none}.cat-side.on{display:flex}.fbtn{display:inline-block}.prod{grid-template-columns:1fr;gap:20px}.grid2{grid-template-columns:1fr}.line{grid-template-columns:56px minmax(0,1fr) auto;}.line .qty{grid-column:2}.cat-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}}
/* поверх общих правил site.css (подписи, поля, примечания) — внутри магазина свои */
.shop-page .cityBg,.shop-page .side3d{display:none!important}
.shop .note{margin:0;max-width:none;text-align:left;text-shadow:none;font-size:13px;line-height:1.4}
.shop .opt,.shop .chk{flex-direction:row;align-items:flex-start;gap:10px;color:var(--fg);font-size:14px}
.shop .chk{align-items:center}
.shop input[type=radio],.shop input[type=checkbox]{width:auto;padding:0;margin:3px 0 0;flex:0 0 auto;accent-color:var(--tint);border:0;background:none}
.shop input.in,.shop textarea.in{font-size:15px;padding:10px 13px;background:var(--bg);border:1px solid var(--line);border-radius:12px}
.shop .box input.in,.shop .box textarea.in{background:var(--bg)}
.shop .qty input{border:0;padding:0;background:transparent;width:52px}
.shop .opt>span:first-of-type{flex:1;min-width:0}
.gal .main{max-height:560px;width:100%}.gal .main .pimg.ph{font-size:14px}
.gal .main.noimg{aspect-ratio:auto;height:240px;background:var(--surface)}
