/* ===========================================================================
   AQ-MED — Sklep (LIGHT)
   =========================================================================== */

/* cart button in nav */
.cart-btn { position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; background: #fff; border: 1px solid var(--line);
  color: var(--ink); box-shadow: var(--shadow-sm); transition: transform .25s, border-color .25s; }
.cart-btn:hover { transform: translateY(-2px); border-color: var(--ink); }
.cart-btn--mobile { display: none; }
.cart-count { position: absolute; top: -7px; right: -7px; min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px; background: var(--red); color: #fff; font-family: var(--font-mono); font-size: 11px;
  font-weight: 700; display: grid; place-items: center; box-shadow: var(--glow-red); }
@media (max-width: 620px) { .cart-btn--mobile { display: inline-flex; } }

/* header */
.shop-head { padding: 130px 0 36px; background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.shop-title { font-size: clamp(38px, 6vw, 76px); margin: 6px 0 16px; }
.shop-tools { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.search { display: flex; align-items: center; gap: 10px; background: #fff; border: 1px solid var(--line);
  border-radius: 999px; padding: 12px 18px; box-shadow: var(--shadow-sm); color: var(--ink-3); min-width: 280px; flex: 1; max-width: 420px; }
.search input { border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); width: 100%; }
.sort-sel { font-family: var(--font-display); font-weight: 500; font-size: 13.5px; padding: 12px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; box-shadow: var(--shadow-sm); outline: 0; }
.cat-toggle { display: none; font-family: var(--font-display); font-weight: 600; font-size: 13.5px; padding: 12px 18px; border-radius: 999px; background: var(--ink); color: #fff; border: 0; cursor: pointer; }
.cats { display: flex; flex-wrap: wrap; gap: 8px; }
.cat-chip { font-family: var(--font-display); font-weight: 500; font-size: 13.5px; padding: 9px 16px; border-radius: 999px;
  background: #fff; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; transition: all .25s; }
.cat-chip:hover { border-color: var(--ink); color: var(--ink); }
.cat-chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* ==== animacje sklepu (1,2,4,5,6,7) ==== */
.shop-stats { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--font-mono); font-size: 13px; color: var(--ink-3); }
.shop-stats b { color: var(--red); font-size: 15px; }
.prereveal { opacity: 0; transform: translateY(18px); }
.prereveal.in { opacity: 1; transform: none; transition: opacity .5s cubic-bezier(.22,.9,.3,1), transform .5s cubic-bezier(.22,.9,.3,1); }
.grid-leaving .product { opacity: 0; transform: translateY(-8px); transition: opacity .16s, transform .16s; }
@media (hover: hover) {
  .product { transition: transform .3s cubic-bezier(.22,.9,.3,1), box-shadow .3s; }
  .product:hover { transform: translateY(-4px); box-shadow: 0 18px 44px rgba(13,27,51,0.13); }
  .product .product-photo img { transition: transform .45s cubic-bezier(.22,.9,.3,1); }
  .product:hover .product-photo img { transform: scale(1.06); }
}
.fly-ghost { position: fixed; z-index: 999; width: 56px; height: 56px; border-radius: 14px; pointer-events: none;
  background: var(--red) center/cover no-repeat; box-shadow: 0 8px 24px rgba(13,27,51,0.25);
  transition: transform .6s cubic-bezier(.5,-0.05,.6,1), opacity .6s; }
#cartCount.bump { animation: ccBump .45s cubic-bezier(.34,1.56,.64,1); }
@keyframes ccBump { 40% { transform: scale(1.45); } }
.cart-bar { animation: barIn .5s cubic-bezier(.34,1.56,.64,1); }
.cart-bar.pulse { animation: barPulse .5s ease; }
@keyframes barIn { from { transform: translateX(-50%) translateY(60px); opacity: 0; } to { transform: translateX(-50%); opacity: 1; } }
@keyframes barPulse { 40% { transform: translateX(-50%) scale(1.05); } }
.pm-card.zoom-in, .pmodal-card.zoom-in { animation: pmZoom .38s cubic-bezier(.22,.9,.3,1); }
@keyframes pmZoom { from { transform: scale(0.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .prereveal { opacity: 1; transform: none; }
  .product, .product .product-photo img, .cart-bar, .pm-card.zoom-in, .pmodal-card.zoom-in { animation: none; transition: none; }
}
@media (max-width: 760px) {
  .product:hover { transform: none; }
}
/* product grid + layout z panelem kategorii */
.shop-grid-wrap { padding: 40px 0 100px; }
.shop-layout { display: grid; grid-template-columns: 230px 1fr; gap: 28px; align-items: start; }
.cat-side { position: sticky; top: 92px; }
.cat-side-title { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px; }
.cat-side .cats { flex-direction: column; align-items: stretch; gap: 4px; max-height: calc(100vh - 160px); overflow: auto; padding-right: 4px; }
.cat-side .cat-chip { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-radius: 10px; text-align: left; padding: 9px 12px; }
.cat-n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
/* grupy kategorii */
.cat-group { border-top: 1px solid var(--line-soft); margin-top: 6px; padding-top: 6px; }
.cat-group-head { width: 100%; display: flex; align-items: center; gap: 8px; background: none; border: 0; font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-2); padding: 9px 12px; border-radius: 10px; cursor: pointer; transition: all .25s; }
.cat-group-head:hover { background: #f5f5f7; color: var(--ink); }
.cat-group-head .cat-n { margin-left: auto; }
.cat-chev { font-size: 10px; color: var(--ink-3); transition: transform .3s; }
.cat-group.open .cat-chev { transform: rotate(180deg); }
.cat-group-list { display: none; flex-direction: column; gap: 4px; padding: 2px 0 4px 8px; border-left: 2px solid var(--line-soft); margin-left: 12px; }
.cat-group.open .cat-group-list { display: flex; }
/* filtr ceny */
.price-filter { display: flex; align-items: center; gap: 8px; color: var(--ink-3); }
.price-filter input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13.5px; background: #fff; }
.price-filter input:focus { outline: none; border-color: var(--red); }
/* ulubione */
.fav-toggle { font-family: var(--font-display); font-weight: 600; font-size: 13.5px; padding: 12px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; transition: all .25s; display: inline-flex; align-items: center; gap: 7px; }
.fav-toggle[hidden] { display: none; }
.fav-toggle .fav-n { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); }
.fav-toggle.active { background: var(--red); border-color: var(--red); color: #fff; }
.fav-toggle.active .fav-n { color: rgba(255,255,255,0.75); }
.fav-btn { position: absolute; top: 10px; right: 10px; z-index: 3; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: rgba(255,255,255,0.92); color: #c9ced9; font-size: 15px; line-height: 1; cursor: pointer; transition: all .25s; display: grid; place-items: center; }
.fav-btn:hover { color: var(--red); border-color: var(--red); transform: scale(1.08); }
.fav-btn.on { color: #fff; background: var(--red); border-color: var(--red); }
/* promocja */
.promo-badge { position: absolute; top: 10px; left: 10px; z-index: 3; font-family: var(--font-mono); font-size: 12px; font-weight: 700; padding: 5px 9px; border-radius: 8px; background: var(--red); color: #fff; box-shadow: 0 6px 16px rgba(229,52,63,0.35); }
.price-old { display: block; font-size: 12.5px; color: var(--ink-3); text-decoration: line-through; }
/* darmowa dostawa */
.ship-progress { margin-bottom: 14px; }
.fs-label { font-size: 13px; color: var(--ink-2); margin-bottom: 7px; }
.fs-label.ok { color: #1d9e55; font-weight: 600; }
.fs-bar { height: 6px; border-radius: 999px; background: var(--line-soft); overflow: hidden; }
.fs-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--red), var(--red-soft)); transition: width .4s var(--ease); }
/* mini-karty: ostatnio oglądane / podobne */
.recent-row, .pm-rel-row { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.pm-rel-row { grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
.mini-prod { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; transition: all .25s; }
.mini-prod:hover { border-color: var(--red); transform: translateY(-2px); box-shadow: 0 12px 28px rgba(15,23,42,0.08); }
.mini-ph { width: 100%; aspect-ratio: 4/3; border-radius: 9px; overflow: hidden; background: #f4f5f8; display: block; }
.mini-ph img { width: 100%; height: 100%; object-fit: cover; }
.mini-name { font-size: 12.5px; font-weight: 600; color: var(--ink); line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.mini-price { font-family: var(--font-mono); font-size: 12px; color: var(--red); }
.cat-chip.active .cat-n { color: rgba(255,255,255,0.7); }
.featured-title { font-family: var(--font-display); font-size: 20px; margin: 0 0 14px; padding-left: 12px; border-left: 3px solid var(--red); }
.featured-grid { margin-bottom: 34px; }
.more-wrap { display: flex; justify-content: center; margin-top: 34px; }
#moreBtn .mono { font-size: 11.5px; color: var(--ink-3); margin-left: 6px; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product { display: flex; flex-direction: column; overflow: hidden; padding: 0; transition: transform .4s var(--ease), box-shadow .4s; cursor: pointer; position: relative; }
.product-multi { position: absolute; top: 12px; right: 12px; z-index: 2; background: rgba(13,27,51,0.78); color: #fff;
  font-size: 10.5px; letter-spacing: 0.04em; padding: 5px 10px; border-radius: 999px; }
.product:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.product .ph { aspect-ratio: 4/3; min-height: 0; border-radius: 0; border: 0; border-bottom: 1px solid var(--line-soft); }
.product .product-photo { aspect-ratio: 4/3; border-radius: 0; border-bottom: 1px solid var(--line-soft); }
.product-body { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.product-cat { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.product-name { font-family: var(--font-display); font-weight: 600; font-size: 17px; line-height: 1.2; }
.product-desc { font-size: 13px; color: var(--ink-2); margin: 0; flex: 1; }
.product-more { align-self: flex-start; background: none; border: 0; padding: 0; margin-top: 4px; font-size: 12.5px; font-weight: 600; color: var(--red); cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.product-more:hover { color: var(--ink); }
.product-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; }
.product-price { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); white-space: nowrap; }
.price-block { display: flex; flex-direction: column; gap: 1px; line-height: 1.2; }
.price-gross { font-family: var(--font-display); font-weight: 700; font-size: 19px; color: var(--ink); }
.price-vat-lab { font-size: 10px; color: var(--ink-3); font-weight: 500; margin-left: 3px; }
.price-net { font-size: 11px; color: var(--ink-3); font-weight: 500; }
.add-btn { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 10px; border: 0;
  background: var(--red); color: #fff; font-family: var(--font-display); font-weight: 600; font-size: 13px; transition: transform .25s, box-shadow .25s; box-shadow: var(--glow-red); }
.add-btn:hover { transform: translateY(-2px); }
.add-btn.added { background: var(--mint); box-shadow: none; }
/* przycisk "Do koszyka" pojawia się po najechaniu (desktop) */
@media (hover: hover) {
  .product .add-btn { opacity: 0; transform: translateY(4px); transition: opacity .25s, transform .25s, box-shadow .25s; }
  .product:hover .add-btn, .product .add-btn:focus-visible, .product .add-btn.added { opacity: 1; transform: none; }
}
.empty-note { text-align: center; color: var(--ink-3); padding: 60px 0; font-size: 16px; }
/* sticky pasek koszyka */
.cart-bar { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 350;
  display: flex; align-items: center; gap: 16px; padding: 10px 12px 10px 22px; border-radius: 999px;
  background: rgba(255,255,255,0.94); backdrop-filter: blur(8px); border: 1px solid var(--line); box-shadow: var(--shadow);
  font-family: var(--font-display); font-size: 14.5px; color: var(--ink-2); }
.cart-bar[hidden] { display: none; }
.cart-bar .btn { padding: 12px 22px; }
@media (max-width: 1180px) { .shop-layout { grid-template-columns: 200px 1fr; } }
@media (max-width: 1040px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 900px) {
  .shop-layout { grid-template-columns: 1fr; }
  .cat-toggle { display: inline-flex; }
  .cat-side { position: static; display: none; }
  .cat-side.open { display: block; }
  .cat-side .cats { flex-direction: row; flex-wrap: wrap; max-height: none; }
  .cat-side .cat-chip { border-radius: 999px; }
  .cat-group { border: 0; margin: 0; padding: 0; }
  .cat-group-head { display: none; }
  .cat-group-list { display: flex !important; flex-direction: row; flex-wrap: wrap; border: 0; padding: 0; margin: 0; gap: 8px; }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .product-grid { grid-template-columns: 1fr; } }

/* cart drawer */
.cart-overlay { position: fixed; inset: 0; background: rgba(13,27,51,0.35); z-index: 300; opacity: 0; visibility: hidden; transition: opacity .4s; }
.cart-overlay.show { opacity: 1; visibility: visible; }
.cart { position: fixed; top: 0; right: 0; bottom: 0; width: min(420px, 92vw); z-index: 310; background: #fff;
  box-shadow: -20px 0 60px rgba(13,27,51,0.18); transform: translateX(100%); transition: transform .45s var(--ease);
  display: flex; flex-direction: column; }
.cart.open { transform: none; }
.cart-top { display: flex; align-items: center; justify-content: space-between; padding: 24px 24px 16px; border-bottom: 1px solid var(--line-soft); }
.cart-top h2 { font-size: 22px; }
.cart-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line); background: #fff; font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer; transition: border-color .25s; }
.cart-close:hover { border-color: var(--ink); }
.cart-items { flex: 1; overflow-y: auto; padding: 16px 24px; display: flex; flex-direction: column; gap: 12px; }
.cart-empty { color: var(--ink-3); text-align: center; padding: 40px 0; }
.cart-item { display: grid; grid-template-columns: 56px 1fr auto; gap: 12px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.cart-item .ph, .cart-item .ci-photo { width: 56px; height: 56px; min-height: 0; border-radius: 10px; }
.cart-item .ph::after { display: none; }
.ci-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; line-height: 1.2; }
.ci-price { font-family: var(--font-mono); font-size: 12px; color: var(--ink-3); margin-top: 3px; }
.ci-qty { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; }
.qbtn { width: 24px; height: 24px; border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-size: 15px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.qbtn:hover { border-color: var(--ink); }
.ci-q { font-family: var(--font-mono); font-size: 13px; min-width: 18px; text-align: center; }
.ci-right { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.ci-sum { font-family: var(--font-display); font-weight: 700; font-size: 15px; }
.ci-remove { background: none; border: 0; color: var(--ink-3); font-size: 12px; cursor: pointer; text-decoration: underline; }
.ci-remove:hover { color: var(--red); }
.cart-foot { padding: 20px 24px 24px; border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; gap: 14px; }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--font-display); }
.cart-total span:first-child { color: var(--ink-2); font-size: 15px; }
.cart-total span:last-child { font-weight: 700; font-size: 26px; }

/* order modal */
/* ---- opcje dostawy / płatności ---- */
.opt-set { border: 0; padding: 0; margin: 4px 0 0; }
.opt-set legend { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); padding: 0; margin-bottom: 10px; }
.opt-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
#shipOpts { grid-template-columns: repeat(2, 1fr); }
.opt { display: flex; align-items: center; gap: 10px; padding: 13px 14px; border: 1px solid var(--line); border-radius: 13px; background: #fff; cursor: pointer; transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.opt:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.opt input { accent-color: var(--red); margin: 0; flex-shrink: 0; }
.opt:has(input:checked) { border-color: var(--red); box-shadow: 0 0 0 1px var(--red), var(--shadow-sm); }
.opt-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-name { font-family: var(--font-display); font-weight: 600; font-size: 14px; color: var(--ink); }
.opt-sub { font-size: 11.5px; color: var(--ink-3); }
.opt-price { margin-left: auto; font-family: var(--font-mono); font-size: 13px; font-weight: 700; color: var(--ink-2); flex-shrink: 0; }
@media (max-width: 640px) { .opt-grid { grid-template-columns: 1fr; } }

.modal { position: fixed; inset: 0; z-index: 400; display: none; align-items: center; justify-content: center; padding: 20px;
  background: rgba(13,27,51,0.4); overflow-y: auto; }
.modal.show { display: flex; }
.modal-card { position: relative; width: min(640px, 100%); padding: 36px; max-height: 92vh; overflow-y: auto; }
.modal-card > div > h2 { font-size: 28px; margin-bottom: 18px; }
.modal-card .cart-close { position: absolute; top: 20px; right: 20px; }
.order-summary { background: var(--bg-soft); border-radius: var(--radius); padding: 16px 18px; margin-bottom: 22px; display: flex; flex-direction: column; gap: 8px; }
.os-row { display: flex; justify-content: space-between; font-size: 14px; }
.os-row.total { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 4px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.order-form { display: flex; flex-direction: column; gap: 14px; }
.order-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.field input, .field textarea { width: 100%; padding: 12px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--ink); font-size: 15px; transition: border-color .25s, box-shadow .25s, background .25s; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: 0 0 0 4px rgba(229,52,63,0.10); }
.field textarea { resize: vertical; }
.done-mark { width: 64px; height: 64px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font-size: 32px; margin-bottom: 18px; }
.pay-badge { display: inline-block; font-family: var(--font-display); font-weight: 700; font-size: 20px; color: #fff;
  background: #ec0000; padding: 8px 18px; border-radius: 10px; margin-bottom: 18px; letter-spacing: -0.01em; }
.pay-note { font-family: var(--font-mono); font-size: 11px; color: var(--ink-3); background: var(--bg-soft);
  border: 1px dashed var(--line); border-radius: 10px; padding: 12px 14px; margin: 16px 0; line-height: 1.5; }
#orderPay .btn { margin-top: 10px; width: 100%; }
#orderDone .btn { margin-top: 20px; }
@media (max-width: 540px) { .order-form .row { grid-template-columns: 1fr; } .modal-card { padding: 26px 20px; } }

/* ===== modal produktu (galeria + zoom) ===== */
/* bazowy modal (sklep nie wczytuje landing.css, więc definicja tutaj) */
.tmodal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: rgba(13,27,51,0.45); backdrop-filter: blur(4px); opacity: 0; visibility: hidden;
  transition: opacity .3s, visibility .3s; }
.tmodal.show { opacity: 1; visibility: visible; }
.tmodal-card { position: relative; background: #fff; border-radius: var(--radius-lg); max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.98); transition: transform .3s var(--ease); }
.tmodal.show .tmodal-card { transform: none; }
.tmodal-close { position: absolute; top: 14px; right: 14px; z-index: 5; width: 38px; height: 38px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,0.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.tmodal-close:hover { background: #fff; }
.tmodal-title { font-size: clamp(22px, 3vw, 30px); margin: 0; }
.pmodal-card { max-width: 900px; width: 100%; }
.pmodal-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; }
.pmodal-gallery { padding: 24px; background: var(--bg-soft); border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
.pmodal-stage { position: relative; background: #fff; border: 1px solid var(--line-soft); border-radius: var(--radius);
  aspect-ratio: 1/1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.pm-imgwrap { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; overflow: hidden; cursor: zoom-in; }
.pm-imgwrap.zoomed { cursor: zoom-out; }
.pm-imgwrap img { max-width: 100%; max-height: 100%; object-fit: contain; transition: transform .3s var(--ease); transform-origin: center; }
.pm-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 3; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid var(--line); background: rgba(255,255,255,0.92); color: var(--ink); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.pm-prev { left: 12px; } .pm-next { right: 12px; }
.pm-nav:hover { background: #fff; border-color: var(--ink); }
.pm-zoombar { position: absolute; bottom: 12px; right: 12px; z-index: 3; display: flex; gap: 6px; }
.pm-zbtn { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,0.92);
  color: var(--ink); font-size: 20px; line-height: 1; cursor: pointer; box-shadow: var(--shadow-sm); }
.pm-zbtn:hover { background: #fff; border-color: var(--ink); }
.pm-thumbs { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.pm-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0; }
.pm-thumb.active { border-color: var(--red); box-shadow: 0 0 0 2px rgba(229,52,63,0.25); }
.pm-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pmodal-info { padding: 34px 34px 30px; display: flex; flex-direction: column; max-height: 82vh; min-height: 520px; }
.pmodal-info .tmodal-title { margin: 8px 0 10px; }
.pm-price { display: flex; flex-direction: column; gap: 2px; margin-bottom: 16px; }
.pm-price .price-gross { font-size: 30px; color: var(--red); }
.pm-price .price-net { font-size: 13px; }
.pm-unit { font-size: 14px; color: var(--ink-3); font-weight: 500; }
.pm-desc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 8px; }
.pm-desc-wrap { position: relative; flex: 1; min-height: 240px; margin: 0 0 20px; display: flex; }
.pm-desc { color: var(--ink-2); font-size: 15px; line-height: 1.7; margin: 0; overflow-y: auto; flex: 1; min-height: 240px; padding-right: 10px; white-space: pre-line;
  scrollbar-width: auto; scrollbar-color: var(--red) var(--bg-soft); }
.pm-desc::-webkit-scrollbar { width: 8px; }
.pm-desc::-webkit-scrollbar-track { background: var(--bg-soft); border-radius: 8px; }
.pm-desc::-webkit-scrollbar-thumb { background: var(--red); border-radius: 8px; }
.pm-desc-fade { position: absolute; left: 0; right: 10px; bottom: 0; height: 58px; pointer-events: none; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; background: linear-gradient(to bottom, rgba(255,255,255,0), #fff 60%); transition: opacity .2s; }
.pm-desc-fade.hidden { opacity: 0; pointer-events: none; }
.pm-desc-fade-btn { pointer-events: auto; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.02em; color: #fff; background: var(--red); padding: 6px 14px; border-radius: 999px; box-shadow: 0 3px 10px rgba(229,52,63,0.35); animation: pmFadeBounce 1.4s ease-in-out infinite; }
.pm-desc-fade-btn:hover { background: var(--ink); }
.pm-desc-fade .arrow { display: inline-block; animation: pmArrowBounce 1.4s ease-in-out infinite; }
@keyframes pmFadeBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
@keyframes pmArrowBounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.pm-actions { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line-soft); flex-shrink: 0; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.pm-qty { display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; }
.pm-qty .qbtn { width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--bg-soft); color: var(--ink); font-size: 18px; cursor: pointer; }
.pm-qty span { min-width: 20px; text-align: center; font-weight: 600; }
.pm-actions .btn.added { background: var(--mint); }
/* galeria w panelu */
.gallery-pick { display: flex; flex-direction: column; gap: 10px; }
.gallery-thumbs { display: flex; flex-wrap: wrap; gap: 8px; }
.gthumb { position: relative; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gthumb-del { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0;
  background: rgba(13,27,51,0.75); color: #fff; font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.gallery-pick .rowbtn { align-self: flex-start; }
@media (max-width: 720px) {
  .pmodal-grid { grid-template-columns: 1fr; }
  .pmodal-gallery { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .pmodal-info { padding: 24px; }
}

/* ===== InPost — mapa paczkomatów (musi być NAD oknem zamówienia, z-index 400) ===== */
.pacz-modal { z-index: 500; }
.pacz-picked { display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 13px 16px; border: 1px solid var(--red); background: rgba(229,52,63,0.05); border-radius: 12px; }
.pacz-picked .pacz-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 14.5px; color: var(--ink); }
.pacz-picked .pacz-addr { display: block; font-size: 12px; color: var(--ink-3); margin-top: 2px; }
.pacz-modal-card { max-width: 720px; width: 100%; padding: 28px; }
.pacz-modal-title { font-size: 20px; margin: 0 0 16px; }
.pacz-map-mount { min-height: 480px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line-soft); }
.pacz-map-mount inpost-geowidget { display: block; width: 100%; height: 480px; }
.pacz-no-token { display: flex; flex-direction: column; gap: 10px; padding: 30px 10px; text-align: center; }
.pacz-no-token input { padding: 13px 16px; border: 1px solid var(--line); border-radius: 12px; font: inherit; font-size: 15px; text-align: center; }
@media (max-width: 640px) { .pacz-map-mount, .pacz-map-mount inpost-geowidget { min-height: 360px; height: 360px; } }
