/* NTC: strona produktu. Warstwa stylów nad układami Woodmart (Layouts > Single Product). Opis (HTML Blocks) nie jest zmieniany. */
body.single-product { --py: #ffcc00; --pyd: #e6b800; --pink: #0d0d0d; --pline: #e5e2d6; }

/* ---------- Główny układ: galeria | karta zakupu, pod spodem pasek informacji ---------- */
@media (min-width: 1025px) {
	body.single-product .single-product-page > .wp-block-wd-row { display: grid !important; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 26px; align-items: start; }
	body.single-product .single-product-page > .wp-block-wd-row > .wp-block-wd-column { width: auto !important; max-width: none !important; flex: none !important; min-width: 0; }
	body.single-product .single-product-page > .wp-block-wd-row > .wp-block-wd-column:nth-child(3) { grid-column: 1 / -1; display: grid !important; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; align-items: stretch; }
}
body.single-product .single-product-page > .wp-block-wd-row > .wp-block-wd-column:nth-child(3) > .wp-block-wd-container { background: #fff; border: 1px solid var(--pline); border-radius: 16px; padding: 14px 16px; margin: 0 !important; width: auto !important; max-width: none !important; }

/* ---------- Karta zakupu ---------- */
body.single-product .single-product-page > .wp-block-wd-row > .wp-block-wd-column:nth-child(2) { background: #fff; border: 1px solid var(--pline); border-radius: 20px; padding: 24px; box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .35); }
body.ntcx-pp-on .ntcx-promo { display: none !important; }
body.ntcx-pp-on .wd-single-stock-status, body.ntcx-pp-on .wd-single-add-cart > p.stock { display: none; }
.ntcx-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; }
.ntcx-chips span { background: #f3f1e8; color: #3a3a3a; border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 700; }
.ntcx-chips .ok { background: #eaf3de; color: #27500a; }
.ntcx-chips .no { background: #fcebeb; color: #791f1f; }
.ntcx-chips .mid { background: #fff3cc; color: #6b5200; }
body.single-product h1.product_title { font-size: clamp(22px, 2.2vw, 30px); line-height: 1.2; margin: 0 0 12px; }
.ntcx-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); gap: 8px; margin: 0 0 14px; }
.ntcx-specs b { line-height: 1.25; display: block; white-space: nowrap; }
.ntcx-specs .wide { grid-column: span 2; }
body.single-product .wd-single-price .iworks-omnibus .amount, body.single-product .wd-single-price .iworks-omnibus bdi { color: #6a6a6a; font-weight: 600; }
.ntcx-specs div { background: #f6f5f1; border-radius: 12px; padding: 9px 12px; }
.ntcx-specs small { display: block; color: #8a8576; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.ntcx-specs b { font-size: 15px; font-weight: 800; color: #111; }
body.single-product .wd-single-price .price .woocommerce-Price-amount { font-size: clamp(28px, 3vw, 36px); font-weight: 900; letter-spacing: -.02em; }
body.single-product .wd-single-price .price .woocommerce-price-suffix { font-size: 14px; }
body.single-product .wd-single-price .iworks-omnibus { font-size: 12.5px; color: #8a8576; margin: 2px 0 0; }
body.single-product .wd-single-add-cart form.cart { display: flex; gap: 8px; flex-wrap: wrap; align-items: stretch; margin: 14px 0; }
body.single-product .wd-single-add-cart form.cart .quantity { flex: none; }
body.single-product .wd-single-add-cart form.cart .single_add_to_cart_button { flex: 1 1 160px; min-height: 52px; border-radius: 12px; }
body.single-product .wd-single-add-cart form.cart .wd-buy-now-btn { flex: 0 0 auto; min-height: 52px; border-radius: 12px; padding: 0 22px; }
body.single-product .ntc-trustbox { grid-template-columns: 1fr 1fr; gap: 8px 14px; background: #faf9f5; border-color: var(--pline); }
.ntcx-help { margin-top: 12px; font-size: 13.5px; color: #6a6a6a; }
.ntcx-help a { color: #111; font-weight: 700; text-decoration: underline; text-decoration-color: var(--py); text-decoration-thickness: 2px; text-underline-offset: 3px; }

/* ---------- Panel "Dostawa i zwroty": ukryty, widoczny po najechaniu lub kliknięciu zakładki ---------- */
body.single-product .ntcx-shippanel { display: none !important; }
body.single-product .ntcx-shippanel.open { display: block !important; background: #fff; border: 1px solid var(--pline); border-radius: 16px; padding: 6px 10px; margin: 6px 0 14px; box-shadow: 0 18px 40px -30px rgba(0, 0, 0, .4); }
body.single-product .ntcx-shippanel > .wp-block-wd-container { background: transparent !important; border: 0 !important; padding: 10px 8px !important; margin: 0 !important; width: 100% !important; max-width: none !important; }
body.single-product .ntcx-shippanel .ntcx-src { display: none !important; }
.ntcx-sh { padding: 18px 20px 20px; }
.ntcx-sh .hd { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin: 0 0 14px; }
.ntcx-sh .hd b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.ntcx-sh .hd span { color: #6a6a6a; font-size: 13.5px; }
.ntcx-sh .x { border: 0; background: #f3f1e8; color: #3a3a3a; width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; padding: 0; min-height: 0; }
.ntcx-sh .x:hover { background: #ffcc00; color: #0d0d0d; }
.ntcx-sh .g { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin: 0 0 14px; }
.ntcx-sh .c { display: flex; align-items: center; gap: 12px; border: 1.5px solid var(--pline); border-radius: 14px; padding: 12px 14px; background: #fff; }
.ntcx-sh .c img { flex: none; width: 28px; height: 28px; object-fit: contain; }
.ntcx-sh .c img.lg { width: 72px; height: 40px; object-fit: contain; }
.ntcx-sh .c .ph { flex: none; width: 28px; height: 28px; color: #b38f00; }
.ntcx-sh .c .ph svg { width: 28px; height: 28px; }
.ntcx-sh .c > div { flex: 1; min-width: 0; }
.ntcx-sh .c b { display: block; font-size: 15px; font-weight: 800; color: #111; }
.ntcx-sh .c small { display: block; color: #6a6a6a; font-size: 12.5px; line-height: 1.35; }
.ntcx-sh .c em { flex: none; font-style: normal; font-weight: 900; font-size: 16px; color: #111; background: #fff3cc; border-radius: 10px; padding: 4px 10px; white-space: nowrap; }
.ntcx-sh .inf { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 10px; }
.ntcx-sh .inf > div { display: flex; gap: 12px; background: #faf9f5; border-radius: 14px; padding: 12px 14px; align-items: flex-start; }
.ntcx-sh .inf i { flex: none; width: 34px; height: 34px; border-radius: 10px; background: #ffcc00; color: #0d0d0d; display: grid; place-items: center; }
.ntcx-sh .inf i svg { width: 18px; height: 18px; }
.ntcx-sh .inf b { display: block; font-size: 14.5px; font-weight: 800; color: #111; }
.ntcx-sh .inf small { display: block; color: #6a6a6a; font-size: 12.5px; line-height: 1.35; margin: 1px 0 4px; }
.ntcx-sh .inf a { font-size: 13px; font-weight: 700; color: #111; text-decoration: underline; text-decoration-color: #ffcc00; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.ntcx-shipbtn { display: block; width: 100%; margin: 10px 0 0; padding: 14px 16px; border: 1px solid var(--pline); border-radius: 14px; background: #fff; color: #111; font-weight: 800; font-size: 15px; text-align: left; text-transform: none; letter-spacing: normal; cursor: pointer; }
.ntcx-shipbtn::after { content: "+"; float: right; font-size: 20px; line-height: 1; }
.ntcx-shipbtn.open::after { content: "−"; }
.ntcx-shipbtn:hover { background: #faf9f5; color: #111; }
@media (min-width: 769px) { .ntcx-shipbtn { display: none; } }

/* ---------- Nawigacja sekcji (komputer) ---------- */
.ntcx-pnav { display: none; }
@media (min-width: 769px) {
	.ntcx-pnav { display: flex; gap: 4px; position: sticky; top: 64px; z-index: 30; background: rgba(255, 255, 255, .96); backdrop-filter: blur(6px); border-top: 1px solid var(--pline); border-bottom: 1px solid var(--pline); padding: 0 8px; margin: 14px 0 6px; overflow-x: auto; scrollbar-width: none; }
	.ntcx-pnav::-webkit-scrollbar { display: none; }
	.ntcx-pnav a { padding: 14px 16px; font-weight: 700; font-size: 14px; color: #6a6a6a; text-decoration: none; white-space: nowrap; box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .2s; }
	.ntcx-pnav a:hover { color: #111; }
	.ntcx-pnav a.on { color: #111; box-shadow: inset 0 -3px 0 var(--py); }
	body.ntcx-pnav-on .wd-single-tabs .wd-nav-tabs-wrapper { display: none; }
}
body.single-product .wd-single-tabs, body.single-product #ntcx-ship, body.single-product #ntcx-cross, body.single-product .single-product-page > .wp-block-wd-section { scroll-margin-top: 130px; }

/* ---------- Często kupowane razem ---------- */
.ntcx-cw { max-width: 1222px; margin: 0 auto; padding: 0 15px; }
.ntcx-cross { margin: 34px 0 10px; }
.ntcx-cross h2 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 16px; }
.ntcx-cg { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ntcx-xc { background: #fff; border: 1px solid var(--pline); border-radius: 16px; padding: 12px; display: grid; gap: 8px; align-content: start; transition: box-shadow .2s, transform .2s; }
.ntcx-xc:hover { box-shadow: 0 16px 30px -20px rgba(0, 0, 0, .4); transform: translateY(-2px); }
.ntcx-xc .im { display: block; aspect-ratio: 1; background: #f6f5f1; border-radius: 12px; overflow: hidden; }
.ntcx-xc .im img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; }
.ntcx-xc .nm { font-weight: 700; font-size: 14px; line-height: 1.3; color: #111; text-decoration: none; min-height: 2.6em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ntcx-xc .pr { font-weight: 800; color: #111; }
.ntcx-xc .pr .amount { color: #111; }
.ntcx-xc .ntcx-xb { display: flex; align-items: center; justify-content: center; min-height: 42px; border-radius: 10px; background: #ffcc00; color: #0d0d0d; font-weight: 800; font-size: 14px; text-transform: none; letter-spacing: normal; border: 0; }
.ntcx-xc .ntcx-xb:hover { background: #e6b800; color: #0d0d0d; }

/* ---------- Pasek wyceny dla firm ---------- */
.ntcx-b2bp { margin: 30px 0; background: #1c1a14; color: #ece8d9; position: relative; overflow: hidden; }
.ntcx-b2bp::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #ffcc00; }
.ntcx-b2bp .ntcx-cw { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap; }
.ntcx-b2bp b { display: block; color: #fff; font-size: 20px; font-weight: 800; }
.ntcx-b2bp span { color: #c8c3ad; font-size: 15px; }
.ntcx-b2bp a { background: #ffcc00; color: #0d0d0d; font-weight: 800; border-radius: 12px; padding: 14px 24px; text-decoration: none; transition: background .2s, box-shadow .2s; }
.ntcx-b2bp a:hover { background: #e6b800; color: #0d0d0d; box-shadow: 0 14px 30px -10px rgba(255, 204, 0, .55); }

@media (max-width: 1024px) {
	body.single-product .single-product-page > .wp-block-wd-row > .wp-block-wd-column:nth-child(2) { padding: 18px; border-radius: 18px; }
	.ntcx-cg { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
	body.single-product .wd-single-add-cart form.cart .wd-buy-now-btn { flex: 1 1 100%; }
	body.single-product .ntc-trustbox { grid-template-columns: 1fr; }
	.ntcx-b2bp .ntcx-cw { flex-direction: column; align-items: stretch; text-align: center; }
	.ntcx-cross h2 { font-size: 21px; }
}
