/* EDAM Maszyny: style katalogu. Kolory i fonty można zmienić w motywie przez zmienne poniżej. */
:root {
	--edam-bg: #F5F5F3;
	--edam-surface: #FFFFFF;
	--edam-ink: #17191C;
	--edam-muted: #55595F;
	--edam-line: #DADBD7;
	--edam-soft: #ECECE9;
	--edam-accent: #B4410F;
	--edam-accent-hover: #933409;
	--edam-dark: #1E2226;
	--edam-ok: #1F6B3A;
	--edam-ok-bg: #E3F1E7;
	--edam-warn: #7A4B00;
	--edam-warn-bg: #FFF1D6;
	--edam-display: inherit;
	--edam-radius: 0px;
	--edam-max: 1280px;
}

.edam-page { background: var(--edam-bg); }
.edam-wrap { max-width: calc(var(--edam-max) + 40px); margin: 0 auto; padding: 22px 20px 72px; color: var(--edam-ink); box-sizing: border-box; width: 100%; }
.edam-wrap *, .edam-grid *, .edam-form * { box-sizing: border-box; }
.edam-wrap h1, .edam-wrap h2, .edam-wrap h3, .edam-card__title, .edam-cat strong, .edam-form h2 { font-family: var(--edam-display); color: inherit; }

/* Ścieżka */
.edam-crumbs { font-size: 14px; color: var(--edam-muted); margin-bottom: 14px; }
.edam-crumbs a { color: var(--edam-ink); }
.edam-crumbs span[aria-hidden] { margin: 0 4px; }

.edam-h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 10px 0 10px; font-weight: 800; }
.edam-intro { max-width: 780px; color: var(--edam-muted); font-size: 17px; margin-bottom: 22px; }
.edam-intro p { margin: 0 0 8px; }
.edam-muted { color: var(--edam-muted); font-size: 14px; }

/* Przyciski */
.edam-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; background: var(--edam-accent); color: #fff !important; text-decoration: none !important; font-weight: 600; border: 1px solid transparent; border-radius: var(--edam-radius); cursor: pointer; font-size: 16px; line-height: 1.2; text-align: center; }
.edam-btn:hover { background: var(--edam-accent-hover); color: #fff; }
.edam-btn--dark { background: var(--edam-ink); }
.edam-btn--dark:hover { background: #000; }
.edam-btn--light { background: #fff; color: var(--edam-ink) !important; }
.edam-btn--light:hover { background: var(--edam-soft); }
.edam-btn--outline { background: #fff; color: var(--edam-ink) !important; border-color: var(--edam-ink); }
.edam-btn--outline:hover { background: var(--edam-soft); }
.edam-btn--soft { border-color: #B9BAB5; }
.edam-btn--block { display: flex; width: 100%; }
.edam-btn--lg { min-height: 54px; font-size: 17px; }

/* Kategorie jako pigułki */
.edam-pills { display: flex; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 6px; margin-bottom: 24px; }
.edam-pills a { flex: 0 0 auto; padding: 10px 15px; background: var(--edam-surface); border: 1px solid #B9BAB5; color: var(--edam-ink); text-decoration: none; font-weight: 600; font-size: 15px; border-radius: var(--edam-radius); }
.edam-pills a.is-on { background: var(--edam-ink); color: #fff; border-color: var(--edam-ink); }

/* Układ listy */
.edam-layout { display: flex; flex-wrap: wrap; gap: 28px; align-items: flex-start; }
.edam-filters { flex: 1 1 260px; max-width: 300px; background: var(--edam-surface); border: 1px solid var(--edam-line); border-radius: var(--edam-radius); }
.edam-filters summary { padding: 16px 20px; font-weight: 700; font-size: 19px; cursor: pointer; list-style: none; font-family: var(--edam-display); }
.edam-filters summary::-webkit-details-marker { display: none; }
.edam-filters summary::after { content: '+'; float: right; }
.edam-filters[open] summary::after { content: '–'; }
.edam-filters__in { padding: 0 20px 20px; }
.edam-filters fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.edam-filters legend { font-weight: 600; margin-bottom: 6px; padding: 0; }
.edam-filters label { display: flex; gap: 10px; align-items: center; min-height: 36px; font-size: 15px; cursor: pointer; }
.edam-filters input[type=checkbox] { width: 20px; height: 20px; margin: 0; accent-color: var(--edam-accent); flex: 0 0 20px; }
.edam-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 18px; }
.edam-field label { font-weight: 600; min-height: 0; }
.edam-field--row { flex-direction: row; align-items: center; gap: 12px; }
.edam-field input { height: 44px; padding: 0 12px; border: 1px solid #B9BAB5; border-radius: var(--edam-radius); font: inherit; background: #fff; width: 100%; }
.edam-field--row input { width: 110px; }
.edam-filters__actions { display: flex; flex-direction: column; gap: 10px; }
.edam-filters__actions a { color: var(--edam-ink); font-size: 15px; }
.edam-list { flex: 999 1 560px; min-width: 0; }
.edam-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 14px; color: var(--edam-muted); }
.edam-sort { display: flex; align-items: center; gap: 10px; margin: 0; }
.edam-sort select { height: 44px; padding: 0 10px; border: 1px solid #B9BAB5; border-radius: var(--edam-radius); font: inherit; background: #fff; color: var(--edam-ink); }

/* Siatka i kafelki */
.edam-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.edam-grid--3 { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
@media (min-width: 1100px) {
	.edam-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
	.edam-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.edam-card { display: flex; flex-direction: column; background: var(--edam-surface); border: 1px solid var(--edam-line); border-radius: var(--edam-radius); color: var(--edam-ink) !important; text-decoration: none !important; overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.edam-card:hover { border-color: var(--edam-ink); box-shadow: 0 6px 18px rgba(23, 25, 28, .08); }
.edam-card.is-sold { opacity: .7; }
.edam-card__img { aspect-ratio: 4 / 3; background: var(--edam-soft); overflow: hidden; }
.edam-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edam-card__img .edam-noimg { width: 100%; height: 100%; min-height: 0; }
.edam-card__body { padding: 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.edam-card__meta { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--edam-muted); }
.edam-card__title { font-size: 19px; line-height: 1.25; font-weight: 700; margin: 0; }
.edam-card__foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.edam-card__ask { font-weight: 600; color: var(--edam-accent); }
.edam-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.edam-chip { font-size: 13px; padding: 4px 8px; background: #F0F0ED; border: 1px solid var(--edam-line); border-radius: var(--edam-radius); }
.edam-badge { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; padding: 4px 8px; color: var(--edam-ok); background: var(--edam-ok-bg); border-radius: var(--edam-radius); }
.edam-badge--rezerwacja, .edam-badge--zamowienie { color: var(--edam-warn); background: var(--edam-warn-bg); }
.edam-badge--sprzedana { color: #fff; background: var(--edam-muted); }
.edam-noimg { display: flex; align-items: center; justify-content: center; background: var(--edam-soft) repeating-linear-gradient(135deg, transparent 0 14px, rgba(0,0,0,.025) 14px 28px); color: #6B6E6A; font-size: 14px; min-height: 160px; }
.edam-cta-card { display: flex; flex-direction: column; justify-content: center; gap: 12px; padding: 26px; background: var(--edam-dark); color: #fff; border-radius: var(--edam-radius); }
.edam-cta-card strong { color: #fff; font-size: 22px; font-family: var(--edam-display); line-height: 1.2; }
.edam-cta-card p { margin: 0; color: #D6D7D3; }
.edam-cta-card .edam-btn { align-self: flex-start; }
.edam-empty { grid-column: 1 / -1; padding: 24px; background: var(--edam-surface); border: 1px solid var(--edam-line); margin: 0; }

/* Paginacja */
.edam-list .navigation.pagination { margin-top: 28px; }
.edam-list .nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.edam-list .page-numbers { padding: 10px 14px; border: 1px solid #B9BAB5; background: #fff; color: var(--edam-ink); text-decoration: none; }
.edam-list .page-numbers.current { background: var(--edam-ink); color: #fff; border-color: var(--edam-ink); }

/* Kafelki kategorii */
.edam-cats { grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.edam-cat { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--edam-surface); border: 1px solid var(--edam-line); border-radius: var(--edam-radius); color: var(--edam-ink) !important; text-decoration: none !important; }
.edam-cat:hover { border-color: var(--edam-ink); }
.edam-cat__img { flex: 0 0 80px; height: 66px; background: var(--edam-soft); overflow: hidden; display: block; }
.edam-cat__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edam-cat__ph { display: block; width: 100%; height: 100%; background: var(--edam-soft) repeating-linear-gradient(135deg, transparent 0 10px, rgba(0,0,0,.03) 10px 20px); }
.edam-cat__txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.edam-cat strong { font-size: 17px; line-height: 1.25; }
.edam-cat__txt span { font-size: 14px; color: var(--edam-muted); }

/* Marki */
.edam-brands { display: flex; flex-wrap: wrap; gap: 10px; }
.edam-brands a { padding: 11px 16px; border: 1px solid #B9BAB5; background: #fff; color: var(--edam-ink) !important; text-decoration: none !important; font-weight: 600; border-radius: var(--edam-radius); }
.edam-brands a:hover { border-color: var(--edam-ink); }

/* Wyszukiwarka */
.edam-search { display: flex; width: 100%; min-width: 0; margin: 0; }
.edam-search input { flex: 1; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid #B9BAB5; border-right: 0; border-radius: var(--edam-radius) 0 0 var(--edam-radius); font: inherit; font-size: 15px; background: #fff; color: var(--edam-ink); -webkit-appearance: none; }
.edam-search button { height: 48px; padding: 0 18px; border: 0; border-radius: 0 var(--edam-radius) var(--edam-radius) 0; background: var(--edam-ink); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* Karta maszyny */
.edam-pdp { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; margin-top: 6px; }
.edam-gallery { flex: 999 1 540px; min-width: 0; }
.edam-gallery__main { border: 1px solid var(--edam-line); background: var(--edam-surface); aspect-ratio: 4 / 3; overflow: hidden; }
.edam-gallery__main > .edam-noimg { height: 100%; }
.edam-gallery__slide { display: none; margin: 0; width: 100%; height: 100%; }
.edam-gallery__slide.is-active { display: block; }
.edam-gallery__slide img { width: 100%; height: 100%; object-fit: contain; display: block; }
.edam-gallery__thumbs { margin-top: 10px; display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; }
.edam-gallery__thumbs button { padding: 0; border: 1px solid var(--edam-line); background: var(--edam-soft); aspect-ratio: 1; cursor: pointer; overflow: hidden; border-radius: var(--edam-radius); }
.edam-gallery__thumbs button.is-active { outline: 3px solid var(--edam-ink); outline-offset: -3px; }
.edam-gallery__thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.edam-gallery__video { display: flex; align-items: center; justify-content: center; aspect-ratio: 1; background: var(--edam-dark); color: #fff !important; font-weight: 600; font-size: 13px; text-align: center; text-decoration: none !important; padding: 6px; }
.edam-summary { flex: 1 1 380px; min-width: 0; }
.edam-summary__top { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.edam-summary .edam-h1 { margin-top: 12px; font-size: clamp(28px, 4.5vw, 40px); }
.edam-lead { margin: 10px 0 0; font-size: 17px; color: var(--edam-muted); }
.edam-facts { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--edam-line); border: 1px solid var(--edam-line); }
.edam-facts div { background: #fff; padding: 13px; }
.edam-facts div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.edam-facts dt { font-size: 13px; color: var(--edam-muted); margin: 0; }
.edam-facts dd { margin: 3px 0 0; font-weight: 600; font-size: 17px; }
.edam-price { margin-top: 22px; padding: 20px; background: #fff; border: 1px solid var(--edam-line); border-radius: var(--edam-radius); }
.edam-price__v { margin-top: 3px; font-family: var(--edam-display); font-size: 28px; font-weight: 800; line-height: 1.15; }
.edam-price__acts { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.edam-checks { margin: 18px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 15px; }
.edam-checks li { display: flex; gap: 10px; align-items: flex-start; margin: 0; }
.edam-checks svg { color: var(--edam-ok); flex: 0 0 20px; margin-top: 1px; }
.edam-spec { display: flex; flex-wrap: wrap; gap: 36px; align-items: flex-start; margin-top: 52px; }
.edam-spec__main { flex: 999 1 540px; min-width: 0; }
.edam-spec__main h2 { margin: 0 0 14px; font-size: 27px; }
.edam-spec__main h2 + .edam-content, .edam-table + h2 { margin-top: 0; }
.edam-table + h2 { margin-top: 36px; }
.edam-table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--edam-line); margin: 0 0 36px; }
.edam-table th, .edam-table td { padding: 12px 14px; text-align: left; border: 0; border-bottom: 1px solid #ECECE9; vertical-align: top; }
.edam-table th { font-weight: 500; color: var(--edam-muted); width: 44%; background: transparent; }
.edam-table td { font-weight: 600; }
.edam-spec__side { flex: 1 1 360px; min-width: 0; scroll-margin-top: 20px; }
.edam-related { margin-top: 56px; }
.edam-related h2 { margin: 0 0 18px; font-size: 27px; }

/* Formularz */
.edam-form { background: var(--edam-dark); color: #fff; padding: 28px; border-radius: var(--edam-radius); }
.edam-form h2, .entry-content .edam-form h2, .elementor-widget-shortcode .edam-form h2 { margin: 0 0 6px; font-size: 24px; color: #fff; line-height: 1.2; }
.edam-form__form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.edam-form__intro { margin: 0; color: #D6D7D3; }
.edam-form__ref { background: #2C3136; padding: 12px 14px; font-size: 14px; }
.edam-form__f { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: #fff; margin: 0; }
.edam-form__f input, .edam-form__f textarea { height: 48px; padding: 0 12px; border: 0; border-radius: var(--edam-radius); font: inherit; font-size: 16px; font-weight: 400; background: #fff; color: var(--edam-ink); width: 100%; -webkit-appearance: none; }
.edam-form__f textarea { height: auto; padding: 10px 12px; resize: vertical; }
.edam-form__rodo { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: #D6D7D3; font-weight: 400; margin: 0; }
.edam-form__rodo input { width: 20px; height: 20px; flex: 0 0 20px; margin: 0; accent-color: var(--edam-accent); }
.edam-form__rodo a, .edam-form__ok a { color: #fff; }
.edam-form__hint { margin: -4px 0 0; font-size: 13px; color: #B9BAB5; }
.edam-form__err { margin: 0; padding: 10px 12px; background: #5C1A0A; color: #fff; }
.edam-form__ok { text-align: left; }
.edam-form__ok svg { color: #7FD69B; }
.edam-form__ok h2 { margin-top: 8px; }
.edam-form__ok p { color: #D6D7D3; margin: 8px 0 0; }
.edam-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.edam-form--light { background: var(--edam-surface); color: var(--edam-ink); border: 1px solid var(--edam-line); }
.edam-form--light h2, .entry-content .edam-form--light h2, .elementor-widget-shortcode .edam-form--light h2, .edam-form--light .edam-form__f { color: var(--edam-ink); }
.edam-form--light .edam-form__intro, .edam-form--light .edam-form__rodo, .edam-form--light .edam-form__hint { color: var(--edam-muted); }
.edam-form--light .edam-form__f input, .edam-form--light .edam-form__f textarea { border: 1px solid #B9BAB5; }
.edam-form-wide { margin-top: 48px; max-width: 760px; scroll-margin-top: 20px; }

.edam-contact { line-height: 1.8; }

@media (max-width: 700px) {
	.edam-wrap { padding: 16px 16px 56px; }
	.edam-filters { max-width: none; }
	.edam-pdp { gap: 22px; }
	.edam-spec { margin-top: 36px; gap: 28px; }
	.edam-form { padding: 22px; }
	.edam-card__img { aspect-ratio: 16 / 10; }
}
