/* YC-KOS3: sklep kosmetykow v3 - nowy uklad + wydajnosc (2000+ pozycji) */
html body.p2-shop{background:#04070a}
html body.p2-shop .p2-ban{position:relative;overflow:hidden;padding:64px 0 46px !important;border-radius:0 0 44px 44px !important;background:radial-gradient(60% 130% at 8% 0%,var(--c1,rgba(244,114,182,.3)),transparent 62%),radial-gradient(55% 130% at 96% 8%,var(--c2,rgba(251,191,36,.22)),transparent 62%),linear-gradient(180deg,rgba(255,255,255,.04),transparent) !important;border-bottom:1px solid var(--n2-ln) !important}
html body.p2-shop .p2-ban::after{content:"";position:absolute;inset:0;background:linear-gradient(rgba(255,255,255,.04) 1px,transparent 1px) 0 0/100% 44px,linear-gradient(90deg,rgba(255,255,255,.04) 1px,transparent 1px) 0 0/44px 100%;-webkit-mask:radial-gradient(70% 90% at 50% 0%,#000,transparent 80%);mask:radial-gradient(70% 90% at 50% 0%,#000,transparent 80%);pointer-events:none}
html body.p2-shop .p2-ban-in{position:relative;z-index:1}
html body.p2-shop .p2-ban h1{font-size:clamp(44px,7.4vw,104px) !important;line-height:.96 !important}
/* pasek sklepu: lepki, szklany */
html body.p2-shop #sbar{position:sticky;top:70px;z-index:40;display:flex;flex-direction:column;gap:12px;padding:14px 16px;margin:22px 0 18px;border-radius:24px;background:rgba(6,10,14,.84);backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);border:1px solid var(--n2-ln);box-shadow:0 18px 50px rgba(0,0,0,.45)}
html body.p2-shop #cats{display:flex !important;flex-wrap:nowrap !important;gap:8px;overflow-x:auto;scroll-snap-type:x proximity;scrollbar-width:none;padding:2px 0 4px}
html body.p2-shop #cats::-webkit-scrollbar{display:none}
html body.p2-shop #cats>*{flex:0 0 auto !important;scroll-snap-align:start;white-space:nowrap;border-radius:999px !important;padding:9px 16px !important;font-weight:700;border:1px solid var(--n2-ln) !important;background:rgba(255,255,255,.05) !important;transition:background .15s,border-color .15s,transform .15s}
html body.p2-shop #cats>*:hover{transform:translateY(-2px);border-color:rgba(57,255,136,.5) !important}
html body.p2-shop #cats>.on,html body.p2-shop #cats>.active,html body.p2-shop #cats>[aria-selected="true"],html body.p2-shop #cats>.sel{background:linear-gradient(120deg,#39ff88,#22d3ee) !important;color:#03150b !important;border-color:transparent !important}
html body.p2-shop .sctl{display:flex;flex-wrap:wrap;gap:10px;align-items:center}
html body.p2-shop .ssearch{flex:1 1 260px}
html body.p2-shop .ssearch input,html body.p2-shop .ssel{border-radius:999px !important;background:rgba(255,255,255,.06) !important;border:1px solid var(--n2-ln) !important;padding:11px 16px !important}
#n3-count{margin:0 2px 12px;color:#8c9aab;font-size:13px;font-weight:700;letter-spacing:.3px}
#n3-count b{color:var(--n2-g,#39ff88)}
/* siatka: duze kafle + content-visibility */
html body.p2-shop #grid{display:grid !important;grid-template-columns:repeat(auto-fill,minmax(210px,1fr)) !important;gap:16px !important}
html body.p2-shop #grid>*{content-visibility:auto;contain-intrinsic-size:auto 320px;border-radius:26px !important;border:1px solid var(--n2-ln) !important;background:linear-gradient(170deg,rgba(255,255,255,.075),rgba(255,255,255,.015)) !important;overflow:hidden;transition:transform .22s,border-color .22s,box-shadow .22s}
html body.p2-shop #grid>*:hover{transform:translateY(-6px);border-color:rgba(57,255,136,.55) !important;box-shadow:0 26px 70px rgba(0,0,0,.55),0 0 44px rgba(57,255,136,.14)}
html body.p2-shop #grid img{object-fit:contain}
html body.p2-shop #grid button{border-radius:999px !important;font-weight:800;transition:transform .15s,filter .15s}
html body.p2-shop #grid button:hover{transform:translateY(-1px);filter:brightness(1.1)}
.n3-h{display:none !important}
#n3-more{display:none;margin:26px auto 0;padding:16px 34px;border-radius:999px;border:1px solid rgba(57,255,136,.45);background:rgba(57,255,136,.1);color:#d4ffe6;font:800 16px inherit;font-family:inherit;cursor:pointer;transition:transform .18s,background .18s}
#n3-more:hover{transform:translateY(-2px);background:rgba(57,255,136,.2)}
/* modal zakupu */
html body.p2-shop #modal{backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px)}
html body.p2-shop #modal .mbox{border-radius:30px !important;border:1px solid rgba(255,255,255,.16) !important;background:linear-gradient(170deg,#10161d,#090d12) !important;box-shadow:0 40px 120px rgba(0,0,0,.7),0 0 80px rgba(57,255,136,.08) !important}
html body.p2-shop .panel{border-radius:26px !important;background:linear-gradient(170deg,rgba(255,255,255,.07),rgba(255,255,255,.015)) !important;border:1px solid var(--n2-ln) !important}
@media (max-width:640px){html body.p2-shop #grid{grid-template-columns:repeat(2,1fr) !important;gap:10px !important}html body.p2-shop #sbar{top:60px;padding:10px}html body.p2-shop .p2-ban{padding:40px 0 30px !important;border-radius:0 0 28px 28px !important}}
@media (prefers-reduced-motion:reduce){html body.p2-shop #grid>*{transition:none}}
