/*
 * Komponenty współdzielone: przyciski, karty, specyfikacje, komunikaty oraz
 * elementy katalogu i koszyka. Reguła trafia tutaj tylko wtedy, gdy ten sam
 * wzorzec naprawdę występuje na wielu rodzinach stron.
 */
.button{display:inline-flex;align-items:center;justify-content:center;gap:25px;min-height:48px;background:var(--ink);color:#fff;text-decoration:none;padding:14px 24px;border:1px solid var(--ink);border-radius:3px;font-size:.87rem;transition:background .2s}.button:hover{background:#365441}.button-light{background:#e5e8d9;color:var(--ink);border-color:#e5e8d9}.button-light:hover{background:white}.button-small{font-size:.8rem}.text-link{display:inline-flex;gap:20px;align-items:center;font-size:.88rem;text-decoration:none;border-bottom:1px solid #9fa78f;padding-bottom:6px;color:var(--ink)}.text-link:hover{border-color:var(--ink)}.product-grid{display:grid;gap:34px 22px}.product-card a{text-decoration:none}.product-image{position:relative;overflow:hidden;background:var(--cream);aspect-ratio:4/3}.product-image img{width:100%;height:100%;object-fit:cover;transition:transform .4s}.product-card a:hover img{transform:scale(1.035)}.round-arrow{position:absolute;bottom:14px;right:14px;display:grid;place-items:center;border-radius:50%;width:38px;height:38px;background:var(--paper);color:var(--ink);font-size:1.3rem}.latin{text-transform:uppercase;font-size:.65rem;letter-spacing:.1em;margin:19px 0 8px;color:var(--muted)}.product-card h3{font-family:var(--serif);font-size:1.6rem;margin-bottom:10px}.product-card>p{font-size:.9rem}.use-grid{display:grid;gap:18px;margin:32px 0}.use-grid article{border-top:1px solid #cbd0c0;padding:24px 12px 24px 0}.use-grid article>span{font-family:var(--serif);font-size:1rem;color:#7e876c;display:block;margin-bottom:30px}.use-grid h2,.use-grid h3{font-family:var(--serif);font-size:1.6rem;margin-bottom:14px}.use-grid p{font-size:.92rem}.contact-strip{padding:52px 0;background:var(--ink);color:#dbe2d1}.contact-strip .container{display:flex;flex-direction:column;align-items:flex-start;gap:30px}.contact-strip h2{color:#f8f6ed;font-size:clamp(2rem,3vw,2.8rem);margin-bottom:15px}.contact-strip .eyebrow{color:#bcc9a8}.specs{margin:25px 0 32px}.specs>div{display:grid;grid-template-columns:1fr 1.4fr;gap:15px;border-bottom:1px solid var(--line);padding:14px 0}.specs dt{font-size:.85rem;color:var(--muted)}.specs dd{margin:0;color:var(--ink);font-size:.9rem}details{border-bottom:1px solid var(--line);padding:18px 0}summary{cursor:pointer;color:var(--ink)}
@media(min-width:580px){.product-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.use-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1060px){.product-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.product-image{aspect-ratio:4/5}.use-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.contact-strip .container{flex-direction:row;justify-content:space-between;align-items:center}.contact-strip .button{flex-shrink:0}}
.shop-hero{padding:54px 0 42px;background:var(--cream);border-bottom:1px solid var(--line)}.shop-hero-layout{display:grid;gap:28px}.shop-hero-copy h1{max-width:900px}.shop-hero-copy .lead{max-width:760px}.shop-summary{background:var(--paper);border:1px solid var(--line);padding:22px;display:grid;gap:16px}.shop-summary div{display:flex;justify-content:space-between;align-items:baseline;border-bottom:1px solid var(--line);padding-bottom:12px}.shop-summary span{font-size:.72rem;text-transform:uppercase;letter-spacing:.12em;color:var(--muted)}.shop-summary strong{font-family:var(--serif);font-size:1.7rem;font-weight:400;color:var(--ink)}.shop-summary p{font-size:.86rem;color:var(--muted)}.shop-filter{display:flex;flex-wrap:wrap;gap:10px;margin-top:28px}.shop-filter button{border:1px solid #bfc6b6;background:transparent;color:var(--ink);padding:10px 14px;border-radius:999px;font-size:.86rem}.shop-filter button:hover,.shop-filter button.is-active{background:var(--ink);border-color:var(--ink);color:#fff}.shop-layout{display:grid;gap:32px}.shop-main{display:grid;gap:58px}.shop-category.is-hidden{display:none}.shop-category-heading{max-width:760px;margin-bottom:22px}.shop-category-heading h2{margin-bottom:14px}.shop-category-heading p:last-child{font-size:.94rem}.shop-products{display:grid;gap:24px}.shop-card{background:#fff;border:1px solid var(--line);padding:14px;display:flex;flex-direction:column;min-width:0}.shop-card a{text-decoration:none}.shop-card h2,.shop-card h3{font-family:var(--serif);font-size:1.48rem;line-height:1.16;margin-bottom:10px}.shop-card>p{font-size:.9rem}.shop-card .button{width:100%;margin-top:16px}.shop-card .product-image{border:1px solid #edf0e8}.product-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:10px}.product-thumbs img{width:100%;aspect-ratio:1/1;object-fit:cover;background:var(--cream);border:1px solid var(--line)}.shop-specs{margin:18px 0}.shop-specs>div{display:grid;grid-template-columns:.85fr 1.35fr;gap:14px;border-bottom:1px solid var(--line);padding:11px 0}.shop-specs dt{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted)}.shop-specs dd{margin:0;font-size:.86rem;color:var(--ink)}.shop-card-footer{margin-top:auto}.price{font-size:.95rem;color:var(--ink);margin-top:18px}.price strong{font-family:var(--serif);font-size:1.45rem;font-weight:400}.shop-product-status{display:inline-flex;width:max-content;max-width:100%;font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:var(--muted);border:1px solid var(--line);padding:5px 8px;margin-top:8px}.cart-panel{background:var(--cream);padding:24px;align-self:start;border:1px solid var(--line)}.cart-panel h2{font-size:clamp(1.6rem,5vw,2.2rem);margin-bottom:18px}.cart-empty{font-size:.9rem;color:var(--muted);padding:18px 0;border-top:1px solid #cbd0c0;border-bottom:1px solid #cbd0c0}.cart-items{list-style:none;padding:0;margin:0}.cart-item{display:grid;grid-template-columns:1fr auto;gap:10px;border-bottom:1px solid #cbd0c0;padding:14px 0}.cart-item strong{font-size:.95rem}.cart-item span{font-size:.82rem;color:var(--muted)}.cart-item button{border:0;background:transparent;color:var(--muted);text-decoration:underline;cursor:pointer;padding:0;font:inherit;font-size:.8rem}.cart-total{display:flex;justify-content:space-between;gap:18px;border-top:1px solid #cbd0c0;margin-top:18px;padding-top:18px;color:var(--ink)}.cart-total strong{font-family:var(--serif);font-size:1.35rem;font-weight:400}.cart-note{font-size:.78rem;color:var(--muted);margin:16px 0 20px}.cart-count{display:inline-grid;place-items:center;min-width:1.5em;height:1.5em;padding:0 .35em;border-radius:999px;background:#e5e8d9;color:var(--ink);font-size:.78em}.cart-feedback{position:fixed;left:16px;right:16px;bottom:16px;z-index:20;background:var(--ink);color:#fff;padding:14px 18px;border-radius:3px;box-shadow:0 12px 35px rgba(0,0,0,.18)}
@media(min-width:700px){.shop-products{grid-template-columns:repeat(2,minmax(0,1fr))}.shop-card{min-height:100%}.cart-feedback{left:auto;right:24px;max-width:360px}}
@media(min-width:980px){.shop-hero-layout{grid-template-columns:minmax(0,1fr) 330px;align-items:end}.shop-layout{grid-template-columns:minmax(0,1fr) 330px;align-items:start}.cart-panel{position:sticky;top:24px}.shop-products{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(min-width:1240px){.shop-products{grid-template-columns:repeat(3,minmax(0,1fr))}.shop-layout{grid-template-columns:minmax(0,1fr) 340px}}
.product-photo-button{display:block;width:100%;border:0;background:transparent;padding:0;text-align:left;color:inherit}.product-photo-button .product-image{display:block}.product-photo-button:focus-visible .product-image{outline:3px solid #947237;outline-offset:4px}.product-thumb{border:1px solid var(--line);background:var(--paper);padding:0;cursor:pointer}.product-thumb img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover}.product-thumb.is-active{border-color:var(--ink);box-shadow:0 0 0 2px var(--ink) inset}.photo-dialog{position:fixed;inset:0;z-index:200;display:grid;place-items:center;background:rgba(17,31,25,.78);padding:22px}.photo-dialog[hidden]{display:none}.photo-dialog img{max-width:min(1100px,94vw);max-height:86vh;object-fit:contain;background:white}.photo-dialog-close{position:fixed;top:18px;right:18px;width:44px;height:44px;border:1px solid rgba(255,255,255,.45);border-radius:50%;background:var(--paper);color:var(--ink);font-size:1.6rem;line-height:1}

/* Czytelne przejście z karty do opisu gatunku. */
.product-card:not(.shop-card){display:flex;flex-direction:column;align-items:stretch}
.product-card .species-link{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:46px;padding:12px 0;margin-top:18px;border-bottom:1px solid var(--line);color:var(--ink);font-size:.88rem;text-decoration:none;transition:color .2s ease,border-color .2s ease}
.product-card:not(.shop-card) .species-link{margin-top:auto;padding-top:22px}
.product-card .species-link:hover{color:#345542;border-color:var(--ink)}

/* Links from catalog cards to species and product pages. */
.product-card :is(.species-link,.product-details-link){display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:48px;padding:13px 18px;border:1px solid #9dafa0;border-radius:10px;background:#edf2eb;color:#254332;font-size:.9rem;font-weight:700;line-height:1.4;text-decoration:none;box-shadow:0 2px 5px rgb(37 67 50 / 6%);transition:background-color .2s ease,color .2s ease,border-color .2s ease,box-shadow .2s ease}
.product-card:not(.shop-card) .species-link{padding:13px 18px}
.product-card :is(.species-link,.product-details-link):hover{background:#294b37;color:#fff;border-color:#294b37;box-shadow:0 4px 12px rgb(37 67 50 / 16%)}
.product-card :is(.species-link,.product-details-link):focus-visible{outline:3px solid #294b37;outline-offset:4px}
@media(prefers-reduced-motion:reduce){.product-card :is(.species-link,.product-details-link){transition:none}}

/* Shared interactive surfaces and cards. */
.button{min-height:50px;border-radius:10px;padding:14px 22px;font-weight:700;letter-spacing:.015em;box-shadow:0 5px 14px rgba(23,56,43,.12);transition:transform .18s ease,background-color .18s ease,box-shadow .18s ease}
.button:hover{background:var(--ink-soft);transform:translateY(-1px);box-shadow:0 8px 20px rgba(23,56,43,.16)}
.button-light{box-shadow:none}
.text-link{gap:10px;border-bottom-color:#a6b09e;font-weight:700;text-underline-offset:4px;transition:color .18s ease,border-color .18s ease}
.text-link::after{content:"→";font-size:1.05em;transition:transform .18s ease}
.text-link.text-link-explicit::after{content:none}
.text-link:hover::after{transform:translateX(3px)}
.product-grid{gap:26px}
.product-grid>.product-card{padding:12px 12px 20px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm);transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}
.product-grid>.product-card:hover{transform:translateY(-3px);border-color:var(--line-strong);box-shadow:var(--shadow-md)}
.product-image{border-radius:12px;background:var(--cream-deep)}
.round-arrow{background:rgba(255,254,250,.94);box-shadow:0 5px 16px rgba(23,56,43,.13)}
.product-card h3{margin-inline:4px}.product-card>p,.product-card>.latin{margin-inline:4px}
.use-grid{gap:18px}
.use-grid article{padding:26px;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm)}
.use-grid article>span{margin-bottom:20px;color:var(--accent-deep)}
.contact-strip{position:relative;overflow:hidden;padding:62px 0;background:linear-gradient(120deg,#123126,#204738);color:#dbe5da}
.contact-strip::after{content:"";position:absolute;right:-120px;top:-180px;width:420px;height:420px;border:1px solid rgba(255,255,255,.08);border-radius:50%;pointer-events:none}
.contact-strip .container{position:relative;z-index:1}
.shop-hero{padding:clamp(54px,7vw,86px) 0;background:linear-gradient(145deg,#ebe8dd,#f6f4ed);border-bottom:1px solid var(--line)}
.shop-summary,.shop-card,.cart-panel{border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm)}
.shop-summary{padding:26px}.shop-card{padding:16px;transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease}.shop-card:hover{transform:translateY(-2px);border-color:var(--line-strong);box-shadow:var(--shadow-md)}
.cart-panel{background:linear-gradient(150deg,#ece9df,#f3f1e9);padding:26px}
.shop-filter button{min-height:42px;background:var(--surface);font-weight:700;transition:background-color .18s ease,color .18s ease,transform .18s ease}.shop-filter button:hover{transform:translateY(-1px)}
.cart-feedback{border-radius:12px;box-shadow:var(--shadow-md)}
@media(max-width:579px){.product-grid>.product-card{padding:10px 10px 18px}.use-grid article{padding:22px}.contact-strip{padding:50px 0}}

/* Catalog cards: consistent photography, hierarchy and equal rows. */
.catalog-page .shop-card{overflow:hidden;border-color:var(--line);padding:14px}
.catalog-page .shop-card .product-image{aspect-ratio:4/3;border:0;border-radius:12px;background:#ece9df}
.catalog-page .shop-card .product-image::after{content:"";position:absolute;inset:55% 0 0;background:linear-gradient(transparent,rgba(12,35,25,.18));pointer-events:none}
.catalog-page .shop-card .round-arrow{z-index:1}
.catalog-page .shop-card h3{font-size:clamp(1.45rem,2vw,1.72rem)}
.catalog-page .shop-card>p:not(.catalog-price,.shop-product-status){color:#536057;line-height:1.68}
.catalog-page .shop-specs{margin:20px 0 18px;border-top:1px solid var(--line)}
.catalog-page .shop-specs>div{padding:12px 2px}
.catalog-page .shop-specs dd{font-weight:700;line-height:1.45}
.timber-catalog .catalog-price.price-access{margin-top:18px;padding:15px;border:1px solid #d2dacb;border-left:4px solid var(--accent-deep);border-radius:10px;background:#f1f4ec}
.timber-catalog .catalog-price.price-access strong{color:var(--ink)}
.timber-catalog .species-link{margin-top:auto}
.timber-catalog .species-link-primary{justify-content:space-between;border-color:var(--ink);background:var(--ink);color:#fff;box-shadow:0 4px 12px rgb(37 67 50 / 14%)}
.timber-catalog .species-link-primary:hover{background:var(--ink-soft);border-color:var(--ink-soft);box-shadow:0 6px 16px rgb(23 56 43 / 18%)}
.finished-catalog .finished-product-card .product-photo-button .product-image{aspect-ratio:4/3}
.finished-catalog .finished-product-card .product-photo-button img{object-fit:contain;background:#f7f5ef}
.finished-catalog .shop-product-status{border-radius:999px;background:#f1f4ec;border-color:#cbd5c6;color:var(--ink);font-weight:700}
.shop-choices>.shop-choice-body{border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm)}
@media(min-width:1180px){.timber-catalog .shop-products{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:579px){.catalog-page .shop-card{padding:10px 10px 18px}.catalog-page .shop-card .product-image{aspect-ratio:4/3}}

/* Timber catalogue decision tools and direct enquiries. */
.timber-comparison-section{background:linear-gradient(145deg,#e8e7dc,#f5f3ec)}
.timber-comparison-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm);scrollbar-width:thin;scrollbar-color:#87957b #eef1e9;-webkit-overflow-scrolling:touch}
.timber-comparison-wrap:focus-visible{outline:3px solid rgba(35,75,59,.35);outline-offset:3px}
.timber-comparison-table{width:100%;min-width:1040px;border-collapse:collapse}
.timber-comparison-table th,.timber-comparison-table td{padding:17px 16px;border-bottom:1px solid var(--line);text-align:left;vertical-align:top;font-size:.84rem;line-height:1.55}
.timber-comparison-table thead th{background:#dfe6d9;color:var(--ink);font-size:.69rem;letter-spacing:.08em;text-transform:uppercase}
.timber-comparison-table tbody th{width:165px;background:#f6f5ef;font-family:var(--serif);font-size:1.06rem;font-weight:500}
.timber-comparison-table tbody tr:nth-child(even) td{background:#fbfaf6}
.timber-comparison-table tbody tr:last-child :is(th,td){border-bottom:0}
.timber-comparison-table a{color:var(--ink);text-underline-offset:4px}
.timber-comparison-note{max-width:90ch;margin:14px 0 0;color:var(--muted);font-size:.78rem;line-height:1.6}
@media(max-width:699px){.timber-comparison-section .section-heading{margin-bottom:20px}.timber-comparison-wrap{margin-inline:-20px;border-right:0;border-left:0;border-radius:0}.timber-comparison-table{min-width:900px}.timber-comparison-table th,.timber-comparison-table td{padding:14px 13px}}

/* Verifiable seller and fulfilment information on commercial pages. */
.commercial-trust{padding:clamp(48px,7vw,78px) 0;background:#e9e7dd;border-top:1px solid var(--line)}
.commercial-trust-heading{display:flex;align-items:end;justify-content:space-between;gap:30px;margin-bottom:28px;padding-bottom:22px;border-bottom:1px solid var(--line)}
.commercial-trust-heading h2{max-width:14ch;font-size:clamp(2rem,3.8vw,3.15rem)}.commercial-trust-heading>p{max-width:470px;color:var(--muted);font-size:.9rem;line-height:1.7}
.commercial-trust-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));overflow:hidden;border:1px solid var(--line);border-radius:var(--radius-md);background:var(--surface);box-shadow:var(--shadow-sm)}
.commercial-trust-grid>div{display:grid;align-content:start;min-width:0;min-height:150px;padding:24px;border-left:1px solid var(--line)}.commercial-trust-grid>div:first-child{border-left:0}
.commercial-trust-grid span{margin-bottom:20px;color:var(--accent-deep);font-size:.67rem;font-weight:800;letter-spacing:.1em;text-transform:uppercase}.commercial-trust-grid strong{font-family:var(--serif);font-size:1.3rem;font-weight:500;line-height:1.25}.commercial-trust-grid small{margin-top:9px;color:var(--muted);font-size:.78rem;line-height:1.55}
.commercial-trust-actions{display:flex;flex-wrap:wrap;gap:24px;margin-top:24px}
@media(max-width:759px){.commercial-trust-heading{align-items:flex-start;flex-direction:column}.commercial-trust-grid{grid-template-columns:1fr}.commercial-trust-grid>div{min-height:0;border-top:1px solid var(--line);border-left:0}.commercial-trust-grid>div:first-child{border-top:0}.commercial-trust-heading h2{max-width:none}}
