/*
 * Sklep: listing, karta produktu, koszyk, zamówienie, podziękowanie i wspólny system przycisków.
 * Źródło wzorca: prototyp Netlify (shop.css, flow.css). Ładowany na stronach WooCommerce (sklep, produkt, koszyk, zamówienie, konto).
 */

/* ===== Przyciski: jeden system w całym sklepie ===== */
.buy-btn, .aw-btn-cta,
.wc-block-components-button:not(.is-link),
.wp-block-button.wc-block-components-button .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce .woocommerce-Button, .woocommerce-page a.button, .woocommerce-page button.button {
	display: inline-flex; align-items: center; justify-content: space-between; gap: 38px; box-sizing: border-box;
	min-height: 58px; padding: 0 22px; border: 0; border-radius: 0;
	background: var(--green); color: #fff; font: 800 10px/1.2 var(--wp--preset--font-family--manrope, "Manrope", Arial, sans-serif);
	letter-spacing: .05em; text-transform: uppercase; text-decoration: none; text-align: left; cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.buy-btn span, .aw-btn-cta span { font-size: 18px; color: var(--gold); line-height: 1; }
.buy-btn:hover, .wc-block-components-button:not(.is-link):hover,
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce .woocommerce-Button:hover { background: var(--ink); color: #fff; }
.aw-btn-cta { background: #fff; color: var(--ink); min-width: 270px; }
.aw-btn-cta:hover { background: var(--ink); color: #fff; }
.wc-block-components-button:not(.is-link) .wc-block-components-button__text { font: inherit; letter-spacing: inherit; text-transform: inherit; }
.wc-block-components-button:not(.is-link):disabled, .wc-block-components-button:not(.is-link)[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.buy-btn:focus-visible, .aw-btn-cta:focus-visible, .wc-block-components-button:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ===== Listing /sklep/ ===== */
.aw-shop-main { background: #fff; }
.shop-hero { padding: 105px 4vw 115px; background: var(--ink); color: #fff; }
.shop-hero > .section-id { color: var(--green-soft); }
.shop-hero-grid { display: grid; grid-template-columns: 1.3fr .7fr; gap: 8vw; align-items: end; margin-top: 40px; }
.shop-hero h1 { margin: 0; font-size: clamp(54px, 6vw, 88px); line-height: .94; letter-spacing: -.058em; font-weight: 600; color: #fff; }
.shop-hero h1 em { font-style: normal; color: var(--green-soft); }
.shop-hero-grid > div { padding-bottom: 6px; }
.shop-hero-grid p { margin: 0; color: #c5d0cb; font-size: 16px; line-height: 1.7; max-width: 520px; }
.shop-hero-grid span { display: block; margin-top: 35px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); font-size: 9px; text-transform: uppercase; letter-spacing: .12em; color: var(--gold); }
.shop-guide { padding: 95px 4vw 85px; background: #fff; }
.shop-guide-head { max-width: 900px; }
.shop-guide-head h2, .catalog-head h2, .shop-help h2 { margin: 22px 0 0; font-size: clamp(40px, 4.4vw, 66px); line-height: .98; letter-spacing: -.05em; font-weight: 600; }
.shop-guide-head > p:last-child { margin: 25px 0 0; max-width: 680px; color: #626b67; font-size: 15px; line-height: 1.7; }
.audience-tabs { display: grid; grid-template-columns: repeat(5, 1fr); margin-top: 62px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.filter-btn { min-height: 128px; padding: 22px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: #fff; color: var(--ink); text-align: left; display: flex; flex-direction: column; justify-content: space-between; font: 700 14px/1.3 inherit; cursor: pointer; transition: background .15s; }
.filter-btn span { font-size: 10px; font-weight: 500; color: #5f6863; }
.filter-btn:hover { background: #f5f6f3; }
.filter-btn.is-active { background: var(--green); color: #fff; }
.filter-btn.is-active span { color: #d8e8e1; }
.catalog { padding: 80px 4vw 135px; background: #f7f7f4; }
.catalog-head { display: grid; grid-template-columns: 200px 1fr; gap: 40px; align-items: start; margin-bottom: 58px; }
.catalog-head h2 { margin-top: 0; }
.catalog-head > div > p { margin: 18px 0 0; color: #5d6662; }
.shop-grid, .related-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.shop-grid .product-card, .related-grid .product-card { flex: none; min-width: 0; }
.shop-grid .product-card[hidden] { display: none; }
.product-card__cover { display: block; color: inherit; }
.product-info h3 a { color: inherit; text-decoration: none; }
.product-info h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.product-card__more { white-space: nowrap; color: var(--ink); text-decoration: none; }
.product-card__more span { color: var(--gold); font-size: 14px; margin-left: 6px; }
.product-info footer strong { white-space: nowrap; }
.product-info footer .woocommerce-Price-amount, .product-info footer strong { font-size: 20px; }
.empty-state { padding: 40px; border: 1px solid var(--line); background: #fff; text-align: center; color: var(--muted); }
.empty-state[hidden] { display: none; }
.shop-help { padding: 100px 4vw; background: var(--green); color: #fff; display: grid; grid-template-columns: 1.15fr .85fr; gap: 8vw; align-items: end; }
.shop-help .section-id { color: #c9dfd6; }
.shop-help h2 { margin-top: 30px; color: #fff; }
.shop-help > div:last-child p { margin: 0 0 28px; color: #d7e5df; line-height: 1.75; font-size: 15px; }

/* ===== Karta produktu ===== */
.flow-main { background: #f7f7f4; }
.flow-header { padding: 34px 4vw 0; background: #f7f7f4; }
.breadcrumbs { display: flex; gap: 8px; align-items: center; color: #5f6863; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.breadcrumbs a { color: inherit; text-decoration: none; }
.breadcrumbs a:hover { color: var(--green); }
.product-page { padding: 44px 4vw 105px; display: grid; grid-template-columns: minmax(360px, .88fr) minmax(440px, 1.12fr); gap: 6vw; align-items: start; background: #f7f7f4; }
.product-visual { position: sticky; top: 24px; }
.product-visual .product-cover { margin: 0; }
.product-visual .product-cover:not(.product-cover--image) { height: min(570px, 65vw); min-height: 500px; padding: 42px; }
.product-visual .product-cover:not(.product-cover--image) strong { font-size: clamp(48px, 6vw, 82px); }
.product-visual .product-cover span, .product-visual .product-cover small { font-size: 10px; }
.product-copy > .section-id { color: var(--green); }
.product-copy h1 { margin: 20px 0 18px; font-size: clamp(42px, 4.9vw, 68px); line-height: 1; letter-spacing: -.055em; font-weight: 600; }
.product-copy h1.is-long { font-size: clamp(30px, 3.1vw, 46px); line-height: 1.08; letter-spacing: -.045em; }
.product-lead { margin: 0; max-width: 700px; color: #59635f; font-size: 17px; line-height: 1.72; }
.product-buy { margin: 34px 0 38px; padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.product-price strong { display: block; font-size: 34px; letter-spacing: -.04em; }
.product-price > span { display: block; margin-top: 5px; color: #5f6863; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.product-buy .buy-btn { min-width: 260px; }
.aw-buy { margin: 0; }
.product-facts { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 48px; background: #fff; }
.product-facts div { padding: 20px; }
.product-facts div + div { border-left: 1px solid var(--line); }
.product-facts small { display: block; color: #5f6863; text-transform: uppercase; letter-spacing: .11em; font-size: 8px; margin-bottom: 8px; }
.product-facts strong { font-size: 13px; }
.product-section { padding: 34px 0; border-top: 1px solid var(--line); }
.product-section h2 { margin: 0 0 18px; font-size: 28px; letter-spacing: -.04em; }
.product-section p { margin: 0 0 14px; color: #5d6662; font-size: 15px; line-height: 1.75; }
.product-section ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.product-section li { padding-left: 22px; position: relative; color: #333b37; line-height: 1.6; }
.product-section li::before { content: ""; position: absolute; left: 0; top: .72em; width: 7px; height: 7px; background: var(--gold); border-radius: 50%; }
.product-richtext ul { margin: 0 0 18px; }
.product-richtext strong { color: var(--ink); }
.product-richtext u { text-decoration: none; }
.product-note { margin-top: 25px; padding: 20px; background: #eef1ec; color: #4f5954; font-size: 12px; line-height: 1.65; }
.product-note p { margin: 0 0 10px; font-size: 12px; line-height: 1.65; color: inherit; }
.product-note p:last-child { margin-bottom: 0; }
.product-note a { color: var(--green); text-decoration: underline; text-underline-offset: 2px; }
.related { padding: 95px 4vw 120px; background: #fff; }
.related-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 45px; }
.related-head h2 { margin: 18px 0 0; font-size: clamp(38px, 4vw, 58px); letter-spacing: -.05em; line-height: 1; font-weight: 600; }
.related-head > a { font-size: 9px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--ink); padding-bottom: 6px; white-space: nowrap; }
.related .product-card { min-height: 500px; }

@media (max-width: 1220px) {
	.audience-tabs { grid-template-columns: repeat(3, 1fr); }
	.shop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 980px) {
	.shop-hero-grid { grid-template-columns: 1fr; gap: 38px; }
	.shop-guide, .catalog { padding-left: 24px; padding-right: 24px; }
	.catalog-head { grid-template-columns: 1fr; }
	.shop-help { grid-template-columns: 1fr; gap: 35px; padding-left: 24px; padding-right: 24px; }
	.product-page { grid-template-columns: 1fr; }
	.product-visual { position: static; }
	.product-visual .product-cover:not(.product-cover--image) { height: 520px; }
	.related-grid { grid-template-columns: 1fr 1fr; }
	.product-facts { grid-template-columns: 1fr; }
	.product-facts div + div { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
	.shop-hero { padding: 75px 24px 85px; }
	.shop-hero h1 { font-size: 46px; }
	.shop-guide { padding-top: 70px; padding-bottom: 70px; }
	.shop-guide-head h2, .catalog-head h2, .shop-help h2 { font-size: 39px; }
	.audience-tabs { grid-template-columns: 1fr 1fr; margin-top: 45px; }
	.filter-btn { min-height: 105px; }
	.filter-btn:first-child { grid-column: 1 / -1; }
	.catalog { padding-top: 70px; padding-bottom: 90px; }
	.shop-grid, .related-grid { grid-template-columns: 1fr; }
	.shop-help { padding-top: 75px; padding-bottom: 75px; }
	.flow-header { padding: 24px 24px 0; }
	.product-page, .related { padding-left: 24px; padding-right: 24px; }
	.product-page { padding-top: 30px; }
	.product-copy h1, .product-copy h1.is-long { font-size: 32px; }
	.product-buy { align-items: stretch; flex-direction: column; }
	.product-buy .buy-btn, .aw-buy .buy-btn { width: 100%; min-width: 0; }
	.related-head { flex-direction: column; align-items: flex-start; }
	.aw-btn-cta { width: 100%; min-width: 0; }
}
