/* ============================================================
   Podstrona produktu WooCommerce — odwzorowanie makiety
   (widok-2-produkt). Klasy `wfs-`, tokeny z .wfs (shop.css).
   ============================================================ */

.wfs-ppage { max-width: 1140px; margin: 0 auto; padding: 44px 0 90px; }

/* powrót + breadcrumb */
.wfs-ppage .wfs-back {
	display: inline-flex; align-items: center; gap: 8px;
	color: var(--wfs-muted); font-size: 13.5px; font-weight: 500; text-decoration: none;
	padding: 8px 0; margin-bottom: 12px; transition: color .15s;
}
.wfs-ppage .wfs-back:hover { color: var(--wfs-text); }
.wfs-ppage .wfs-back svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 2; fill: none; }
.wfs-crumbs { font-size: 12.5px; color: var(--wfs-muted); margin-bottom: 22px; }
.wfs-crumbs a { color: var(--wfs-muted); text-decoration: none; }
.wfs-crumbs a:hover { color: var(--wfs-text); }
.wfs-crumbs b { color: var(--wfs-text); font-weight: 500; }

/* układ dwukolumnowy: galeria | informacje */
.wfs-pcols { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; }

/* ---------- galeria: pionowy pasek miniatur | główne zdjęcie ---------- */
.wfs-gallery { display: flex; gap: 12px; align-items: flex-start; }
.wfs-gallery__thumbs {
	display: flex; flex-direction: column; gap: 10px; width: 78px; flex: none;
	overflow-y: auto; overflow-x: hidden; padding-right: 2px;
	scrollbar-width: thin; scrollbar-color: var(--wfs-line2) transparent;
}
.wfs-gallery__thumbs::-webkit-scrollbar { width: 5px; }
.wfs-gallery__thumbs::-webkit-scrollbar-thumb { background: var(--wfs-line2); border-radius: 99px; }
.wfs-gthumb {
	width: 78px; height: 78px; flex: none; border-radius: 12px; border: 1px solid var(--wfs-line);
	cursor: pointer; overflow: hidden; padding: 0;
	background: radial-gradient(100% 100% at 30% 20%, rgba(139,92,246,.30), #17131f);
	transition: border-color .15s;
}
.wfs-gthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wfs-gthumb.on, .wfs-gthumb:hover { border-color: var(--wfs-accent); }

.wfs-gallery__main {
	flex: 1; min-width: 0; position: relative; aspect-ratio: 4/3; border-radius: 20px; border: 1px solid var(--wfs-line);
	display: grid; place-items: center; overflow: hidden;
	background:
		radial-gradient(120% 90% at 20% 0%, rgba(139,92,246,.30), transparent 60%),
		radial-gradient(100% 80% at 90% 100%, rgba(192,132,252,.16), transparent 55%),
		#17131f;
}
.wfs-gallery__main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wfs-gallery__main > svg { width: 110px; height: 110px; stroke: rgba(230,220,255,.55); stroke-width: 1.1; fill: none; }
.wfs-gallery__arrow {
	position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
	width: 40px; height: 40px; border-radius: 99px; border: 1px solid var(--wfs-line2);
	background: rgba(20,17,28,.72); color: var(--wfs-text); cursor: pointer;
	display: grid; place-items: center; transition: background .15s, border-color .15s;
}
.wfs-gallery__arrow:hover { background: rgba(20,17,28,.95); border-color: var(--wfs-accent); }
.wfs-gallery__arrow svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; fill: none; }
.wfs-gallery__arrow--prev { left: 12px; }
.wfs-gallery__arrow--next { right: 12px; }

/* ---------- informacje o produkcie ---------- */
.wfs-pmeta { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.wfs-pmeta .wfs-badge { position: static; }
.wfs-pmeta .wfs-card__cat { position: static; }
.wfs-pname { font-size: clamp(24px,3vw,32px); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; margin: 0 0 12px; }
.wfs-sku { font-size: 12px; color: var(--wfs-muted); margin-bottom: 16px; }
.wfs-sku span { color: var(--wfs-text); }
.wfs-pprice { font-size: 30px; font-weight: 700; line-height: 1.1; }
.wfs-pprice .amount, .wfs-pprice bdi { color: var(--wfs-text); }
.wfs-pprice del { opacity: .5; font-weight: 400; font-size: 20px; margin-right: 8px; }
.wfs-pprice ins { text-decoration: none; }
.wfs-pprice small { display: block; font-size: 12px; color: var(--wfs-muted); font-weight: 500; margin-top: 4px; }
.wfs-pdesc { color: var(--wfs-muted); margin: 16px 0 20px; font-size: 14.5px; }
.wfs-pdesc p { margin: 0 0 10px; }
.wfs-pdesc p:last-child { margin-bottom: 0; }

/* wiersz zakupu */
.wfs-buyrow { display: flex; gap: 10px; align-items: stretch; flex-wrap: wrap; }
.wfs-qty { display: flex; align-items: center; gap: 2px; background: var(--wfs-surface2); border: 1px solid var(--wfs-line); border-radius: 99px; padding: 4px 6px; }
.wfs-qty button { width: 30px; height: 30px; border: none; background: transparent; color: var(--wfs-muted); font-size: 17px; line-height: 1; cursor: pointer; border-radius: 99px; }
.wfs-qty button:hover { color: var(--wfs-text); background: rgba(167,139,250,.15); }
.wfs-qty span { min-width: 26px; text-align: center; font-size: 14px; font-weight: 600; color: var(--wfs-text); }
.wfs-btn-grad {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	background: var(--wfs-grad); color: #fff; border: none; border-radius: 99px;
	padding: 0 26px; height: 42px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none;
	transition: filter .15s, transform .1s;
}
.wfs-btn-grad:hover { filter: brightness(1.1); }
.wfs-btn-grad:active { transform: scale(.98); }
.wfs-btn-grad svg { width: 15px; height: 15px; stroke: #fff; stroke-width: 2.2; fill: none; }
.wfs-btn-grad.is-loading { opacity: .7; pointer-events: none; }
.wfs-btn-ghost {
	display: inline-flex; align-items: center; justify-content: center;
	border: 1px solid var(--wfs-line2); background: transparent; color: var(--wfs-text);
	border-radius: 99px; padding: 0 22px; height: 42px; font-size: 14px; font-weight: 600; font-family: inherit; cursor: pointer; text-decoration: none;
	transition: border-color .15s;
}
.wfs-btn-ghost:hover { border-color: var(--wfs-accent); }
.wfs-padd.added ~ .added_to_cart, .wfs-padd .added_to_cart { display: none; }
.wfs-outofstock { color: var(--wfs-soon); font-size: 14px; margin-top: 4px; }

/* lista korzyści */
.wfs-plist { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--wfs-muted); }
.wfs-plist li { display: flex; gap: 10px; align-items: center; }
.wfs-plist svg { width: 15px; height: 15px; stroke: var(--wfs-ok); stroke-width: 2; fill: none; flex: none; }

/* ---------- szczegóły: specyfikacja | w zestawie ---------- */
.wfs-pdetails { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 44px; }
.wfs-panel { background: var(--wfs-surface); border: 1px solid var(--wfs-line); border-radius: 20px; padding: 22px 24px; }
.wfs-panel h2 { font-size: 15px; font-weight: 600; margin: 0 0 14px; }
.wfs-spec { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.wfs-spec td { padding: 8px 0; border-bottom: 1px dashed var(--wfs-line); vertical-align: top; color: var(--wfs-text); }
.wfs-spec td:first-child { color: var(--wfs-muted); width: 45%; padding-right: 12px; }
.wfs-spec tr:last-child td { border-bottom: none; }
.wfs-inclist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--wfs-text); }
.wfs-inclist li { display: flex; gap: 10px; align-items: baseline; }
.wfs-inclist li::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--wfs-accent); flex: none; transform: translateY(-1px); }

/* ---------- podobne produkty ---------- */
.wfs-related { margin-top: 48px; }
.wfs-related h2 { font-size: 19px; font-weight: 600; margin: 0 0 18px; }

/* responsywność jak w makiecie */
@media (max-width: 1020px) {
	.wfs-pcols { grid-template-columns: 1fr; gap: 26px; }
	.wfs-pdetails { grid-template-columns: 1fr; }
}

/* Gorny wiersz podstrony produktu: "Wroc do sklepu" + minicart po prawej */
.wfs-ppage__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.wfs-ppage__top .wfs-minicart { margin-top: 0; flex: none; }
@media (max-width: 640px) {
	.wfs-ppage__top { flex-wrap: wrap; }
	.wfs-ppage__top .wfs-minicart { order: -1; margin-left: auto; }
}

.wfs-pprice .wfs-omnibus { margin-top: 2px; opacity: .85; }
