/* PNT – Elementy systemu (wg makiety T3) */
.pnt-es { --pnt-red:#E63946; --pnt-red2:#C1121F; --pnt-navy:#222b3b; --pnt-ink:#1c1f26; --pnt-muted:#5b6470; --pnt-line:#e6e8ec; --pnt-bg:#f5f6f8;
  font-family: inherit; color: var(--pnt-ink); display: flex; flex-direction: column; gap: 8px; position: relative; }
.pnt-es *, .pnt-es *::before, .pnt-es *::after { box-sizing: border-box; }
.pnt-es a { text-decoration: none; color: inherit; }

/* nagłówki grup */
.pnt-es-group { display: flex; flex-direction: column; gap: 18px; margin: 0 0 22px; }
.pnt-es-group-title { display: flex; align-items: center; gap: 14px; margin-top: 10px; }
.pnt-es-group-title span { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--pnt-navy); }
.pnt-es-group-title i { flex-grow: 1; height: 1px; background: var(--pnt-line); }

/* siatka */
.pnt-es-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.pnt-es[data-columns="3"] .pnt-es-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .pnt-es-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 780px)  { .pnt-es-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px; } }
@media (max-width: 480px)  { .pnt-es-grid { grid-template-columns: 1fr !important; } }

/* karta */
.pnt-es-card { background: #fff; border: 1px solid var(--pnt-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s; }
.pnt-es-card:hover { box-shadow: 0 6px 24px rgba(28,31,38,.08); }
.pnt-es-img { display: flex; align-items: center; justify-content: center; background: #f2f3f5; border-bottom: 1px solid var(--pnt-line); height: 210px; }
.pnt-es-img img { max-height: 170px; max-width: 80%; width: auto; object-fit: contain; mix-blend-mode: multiply; }
.pnt-es-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.pnt-es-name { font-weight: 600; font-size: 15px; line-height: 1.35; color: var(--pnt-ink); min-height: 40px; }
.pnt-es-name:hover { color: var(--pnt-red); }
.pnt-es-sku { font-size: 12px; color: var(--pnt-muted); margin-top: -4px; }
.pnt-es-badge { align-self: flex-start; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--pnt-red); background: #fdeaec; padding: 4px 8px; border-radius: 4px; }

.pnt-es-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }
.pnt-es-price { color: var(--pnt-red); font-weight: 800; font-size: 19px; white-space: nowrap; }
.pnt-es-price:empty::before { content: "—"; color: var(--pnt-muted); }

/* ilość */
.pnt-es-qty { display: inline-flex; align-items: stretch; border: 1px solid var(--pnt-line); border-radius: 6px; overflow: hidden; height: 40px; }
.pnt-es-qty-btn { width: 36px; border: 0; background: #fff; font-size: 18px; font-weight: 600; color: var(--pnt-ink); cursor: pointer; line-height: 1; }
.pnt-es-qty-btn:hover { background: var(--pnt-bg); }
.pnt-es-qty-input { width: 46px; border: 0; border-left: 1px solid var(--pnt-line); border-right: 1px solid var(--pnt-line); text-align: center; font: inherit; font-weight: 700; font-size: 14px; color: var(--pnt-ink); -moz-appearance: textfield; padding: 0; margin: 0; min-height: 0; background: #fff; }
.pnt-es-qty-input::-webkit-outer-spin-button, .pnt-es-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }

/* przycisk */
.pnt-es-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; width: 100%; background: var(--pnt-red); color: #fff !important; font: inherit; font-weight: 700; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; padding: 12px 16px; border: 0; border-radius: 6px; cursor: pointer; transition: background .15s; }
.pnt-es-btn:hover { background: var(--pnt-red2); }
.pnt-es-btn:disabled { background: #cfd3d9; cursor: default; }
.pnt-es-card.is-added .pnt-es-btn:disabled { background: #16a34a; }
.pnt-es-note { font-size: 12px; color: var(--pnt-muted); min-height: 0; }
.pnt-es-note:empty { display: none; }

/* kolory: próbki (profil główny) i kropki (elementy) */
.pnt-es-swatches { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pnt-es-swatch { width: 30px; height: 30px; border-radius: 50%; border: 2px solid transparent; padding: 2px; background: #fff; cursor: pointer; }
.pnt-es-swatch span { display: block; width: 100%; height: 100%; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); }
.pnt-es-swatch.is-on { border-color: var(--pnt-red); }
.pnt-es-color-name { font-size: 13px; color: var(--pnt-muted); margin-left: 4px; }
.pnt-es-dots { display: flex; gap: 6px; align-items: center; }
.pnt-es-dot { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgba(0,0,0,.18); padding: 0; cursor: pointer; outline: 2px solid transparent; outline-offset: 2px; }
.pnt-es-dot.is-on { outline-color: var(--pnt-red); }
.pnt-es-card.is-unavailable .pnt-es-img img { opacity: .35; filter: grayscale(1); }

/* karta wyróżniona: profil główny */
.pnt-es-card--featured { display: grid; grid-template-columns: 420px 1fr; }
.pnt-es-card--featured .pnt-es-img { height: auto; min-height: 320px; border-bottom: 0; border-right: 1px solid var(--pnt-line); }
.pnt-es-card--featured .pnt-es-img img { max-height: 260px; }
.pnt-es-card--featured .pnt-es-body { padding: 28px 32px; gap: 14px; }
.pnt-es-card--featured .pnt-es-name { font-size: 24px; font-weight: 700; line-height: 1.25; min-height: 0; }
.pnt-es-card--featured .pnt-es-row { margin-top: 6px; justify-content: flex-start; gap: 28px; }
.pnt-es-card--featured .pnt-es-price { font-size: 28px; }
.pnt-es-card--featured .pnt-es-btn { width: auto; padding: 14px 22px; font-size: 14px; align-self: flex-start; }
@media (max-width: 780px) { .pnt-es-card--featured { grid-template-columns: 1fr; } .pnt-es-card--featured .pnt-es-img { min-height: 220px; border-right: 0; border-bottom: 1px solid var(--pnt-line); } .pnt-es-card--featured .pnt-es-body { padding: 20px; } .pnt-es-card--featured .pnt-es-btn { width: 100%; } }

/* karta pominięta (ilość 0) */
.pnt-es-card.is-skipped .pnt-es-img img { opacity: .55; }
.pnt-es-card.is-skipped .pnt-es-name, .pnt-es-card.is-skipped .pnt-es-price { opacity: .75; }
.pnt-es-card.is-skipped .pnt-es-qty-input { color: var(--pnt-muted); }
.pnt-es-hint { font-size: 13px; color: var(--pnt-muted); margin: 6px 0 0; }
.pnt-es-bar-links { display: flex; gap: 14px; margin-top: 6px; }
.pnt-es-bar-link { background: none; border: 0; padding: 0; color: #c9d0dc; font: inherit; font-size: 12.5px; text-decoration: underline; cursor: pointer; }
.pnt-es-bar-link:hover { color: #fff; }

/* pasek „Wybrane elementy” (komplet) */
.pnt-es-bar { position: sticky; bottom: 16px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--pnt-navy); color: #fff; border-radius: 10px; padding: 14px 20px; box-shadow: 0 10px 30px rgba(28,31,38,.25); margin-top: 6px; }
.pnt-es-bar-info { display: flex; flex-direction: column; gap: 2px; }
.pnt-es-bar-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: #c9d0dc; font-weight: 700; }
.pnt-es-bar-sum { font-size: 16px; font-weight: 700; }
.pnt-es-bar .pnt-es-btn { width: auto; }
.pnt-es-bar.is-added .pnt-es-btn:disabled { background: #16a34a; }
@media (max-width: 600px) { .pnt-es-bar { flex-direction: column; align-items: stretch; } }

/* toast */
.pnt-es-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 9999; background: #16a34a; color: #fff; padding: 12px 18px; border-radius: 8px; font-size: 14px; font-weight: 600; display: flex; gap: 14px; align-items: center; box-shadow: 0 10px 30px rgba(0,0,0,.25); }
.pnt-es-toast a { color: #fff; text-decoration: underline; font-weight: 700; }
.pnt-es-toast.is-error { background: var(--pnt-red2); }
.pnt-es-empty { padding: 12px; border: 1px dashed var(--pnt-red); color: var(--pnt-red); border-radius: 6px; }

/* [hidden] musi wygrywać z display:flex paska i toasta */
.pnt-es [hidden], .pnt-es-bar[hidden], .pnt-es-toast[hidden] { display: none !important; }

/* Divi: neutralizacja stylów motywu wewnątrz sekcji */
.pnt-es img { max-width: 100%; height: auto; }
.et_pb_text_inner .pnt-es-img img, .pnt-es .pnt-es-img img { max-height: 170px; }
.pnt-es .pnt-es-card--featured .pnt-es-img img { max-height: 260px; }
.pnt-es .pnt-es-btn, .pnt-es .pnt-es-qty-btn { box-shadow: none; text-decoration: none; line-height: 1.2; }
.pnt-es button { -webkit-appearance: none; }
.pnt-es input[type=number] { box-shadow: none; }
