:where(.logout-button) { appearance: none; -webkit-appearance: none; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; color: inherit; font: inherit; text-align: inherit; cursor: pointer; text-decoration: none; }
.logout-button:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }

:root {
    --hyd-ink: #242424;
    --hyd-muted: #666;
    --hyd-line: #dedede;
    --hyd-soft: #f4f4f4;
    --hyd-panel: #fff;
    --hyd-black: #202020;
    --hyd-black-2: #2d2d2d;
    --hyd-green: #32a848;
    --hyd-green-dark: #198432;
    --hyd-red: #e21b1b;
    --hyd-radius: 7px;
    --hyd-gutter: 32px;
}
* { box-sizing: border-box; }
body.hyd-skin { margin: 0; font-family: Arial, Helvetica, sans-serif; color: var(--hyd-ink); background: #fff; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.hyd-wrap { width: 100%; max-width: none; margin: 0; padding-left: var(--hyd-gutter); padding-right: var(--hyd-gutter); }

.hyd-top { position: sticky; top: 0; z-index: 20; background: #fff; box-shadow: 0 6px 18px rgba(0,0,0,.12); }
.hyd-strip { background: #fff; color: #555; border-bottom: 1px solid #ececec; font-size: .83rem; }
.hyd-strip-row { min-height: 30px; display: flex; align-items: center; justify-content: center; gap: 54px; font-weight: 700; }
.hyd-strip-row span::before { content: "✓"; margin-right: 7px; color: #999; }
.hyd-topbar { min-height: 74px; display: grid; grid-template-columns: 430px minmax(260px, 1fr) auto; gap: 22px; align-items: center; }
.hyd-brand { display: inline-flex; align-items: center; gap: 13px; min-width: 0; }
.hyd-brand-mark { display: inline-flex; gap: 2px; }
.hyd-brand-mark i { display: block; width: 21px; height: 26px; background: #111; clip-path: polygon(0 0,100% 50%,0 100%,25% 50%); }
.hyd-brand strong { display: block; color: #121212; font-size: 1.78rem; line-height: 1; font-weight: 900; letter-spacing: 0; text-transform: uppercase; white-space: nowrap; }
.hyd-brand small { display: block; margin-top: 3px; color: #777; font-size: .72rem; font-weight: 800; text-transform: uppercase; }
.hyd-search { display: grid; grid-template-columns: 1fr 48px; gap: 8px; min-width: 0; }
.hyd-search input { width: 100%; min-height: 40px; border: 1px solid #d5d5d5; border-radius: 7px; padding: 0 14px; font-size: .96rem; box-shadow: inset 0 2px 8px rgba(0,0,0,.12); }
.hyd-search button { border: 1px solid #d5d5d5; background: #fff; color: #111; border-radius: 7px; font-size: 1.35rem; font-weight: 900; cursor: pointer; box-shadow: 0 2px 7px rgba(0,0,0,.16); }
.hyd-actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.hyd-actions a,
.hyd-actions .logout-button { color: #050505; font-size: 1.55rem; font-weight: 900; line-height: 1; }
.hyd-actions a:hover,
.hyd-actions .logout-button:hover { color: var(--hyd-green); }
.hyd-actions .hyd-cta { font-size: .82rem; font-weight: 900; text-transform: uppercase; letter-spacing: .02em; color: #fff !important; background: var(--hyd-green); padding: 10px 16px; border-radius: 8px; white-space: nowrap; }
.hyd-actions .hyd-cta:hover { background: var(--hyd-green-dark); color: #fff !important; }
.hyd-cart span { display: inline-grid; min-width: 20px; height: 20px; place-items: center; margin-left: -6px; border-radius: 999px; background: var(--hyd-red); color: #fff; font-size: .72rem; }
.hyd-nav { background: #f8f8f8; border-top: 1px solid #efefef; }
.hyd-nav .hyd-wrap { min-height: 48px; display: flex; align-items: center; gap: 18px; overflow-x: auto; }
.hyd-nav a { padding: 14px 5px; font-size: .78rem; font-weight: 900; text-transform: uppercase; color: #262626; white-space: nowrap; }
.hyd-nav a:hover { color: var(--hyd-green-dark); }
.hyd-nav-sale { color: var(--hyd-red) !important; }
.hyd-nav-firm { margin-left: auto; padding: 13px 26px !important; color: #fff !important; background: #000; border-radius: 9px; }

.hyd-notice { background: #fff; border-bottom: 1px solid #e8e8e8; color: #333; font-size: .92rem; }
.hyd-notice .hyd-wrap { padding-top: 8px; padding-bottom: 8px; }
.hyd-main { display: grid; grid-template-columns: 318px minmax(0, 1fr); gap: 20px; padding-top: 26px; padding-bottom: 42px; }

.hyd-rail { align-self: start; background: linear-gradient(110deg, #181818, #2f2f2f); color: #fff; border-radius: 8px 8px 0 0; padding: 24px 22px; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.hyd-rail h2 { margin: 0 0 24px; color: #fff; text-transform: uppercase; font-size: 1.15rem; font-weight: 900; }
.hyd-cats { display: flex; flex-direction: column; gap: 4px; }
.hyd-cats a { display: flex; justify-content: space-between; gap: 10px; min-width: 0; padding: 10px 0; color: #fff; font-size: .88rem; font-weight: 900; line-height: 1.25; }
.hyd-cats a:hover, .hyd-cats a.active { text-decoration: underline; }
.hyd-cats > a:first-child { border-bottom: 1px solid rgba(255,255,255,.18); margin-bottom: 8px; }
.hyd-cats details { border-top: 1px solid rgba(255,255,255,.1); padding-top: 7px; }
.hyd-cats summary { display: flex; align-items: center; list-style: none; cursor: pointer; }
.hyd-cats summary::-webkit-details-marker { display: none; }
.hyd-cats summary > a { flex: 1; }
.hyd-cats summary > span { order: -1; width: 18px; margin-right: 8px; color: #fff; }
.hyd-cats summary > span::before { content: "+"; font-weight: 900; }
.hyd-cats details[open] summary > span::before { content: "-"; }
.hyd-cats details > div { padding: 4px 0 8px 25px; }
.hyd-cats details > div a { color: #f0f0f0; font-weight: 800; font-size: .84rem; padding: 8px 0; }
.cat-count { color: #d8d8d8; font-size: .76rem; font-weight: 700; }
.cat-count-active { color: #fff; font-weight: 900; }

.hyd-results { min-width: 0; }
.hyd-breadcrumbs { margin: 0 0 16px; color: #555; font-size: .94rem; }
.hyd-category-showcase { margin-bottom: 28px; text-align: center; }
.hyd-category-showcase h1 { margin: 0 0 16px; font-size: 1.12rem; font-weight: 500; }
.hyd-tile-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.hyd-tile { min-height: 104px; display: grid; grid-template-columns: 100px minmax(0, 1fr); align-items: center; gap: 10px; padding: 10px 14px; background: #fff; border: 1px solid #e2e2e2; border-radius: 9px; box-shadow: 0 3px 14px rgba(0,0,0,.16); text-align: left; }
.hyd-tile:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(0,0,0,.18); }
.hyd-tile-img { width: 94px; height: 72px; display: grid; place-items: center; overflow: hidden; color: #aaa; border-radius: 6px; background: #f4f4f4; font-size: .8rem; font-weight: 900; }
.hyd-tile-img img { width: 100%; height: 100%; object-fit: contain; }
.hyd-tile strong { font-size: .86rem; line-height: 1.25; }
.hyd-filter-toggle { display: block; min-width: 155px; margin: 6px auto 28px; border: 0; border-radius: 8px; background: #333; color: #fff; min-height: 34px; padding: 0 22px; font-weight: 900; cursor: pointer; }

.hyd-sec-head { display: grid; grid-template-columns: minmax(180px, 1fr) auto; gap: 18px; align-items: end; margin-bottom: 18px; }
.hyd-sec-head h2 { margin: 0; font-size: 1rem; font-weight: 900; }
.hyd-sec-head p { margin: 4px 0 0; color: var(--hyd-muted); }
.hyd-view-tools { display: flex; align-items: end; gap: 10px; flex-wrap: wrap; justify-content: flex-end; color: #4b4b4b; font-size: .9rem; font-weight: 800; }
.hyd-view-tools button, .hyd-view-tools select { min-height: 34px; border: 1px solid #cfcfcf; border-radius: 7px; background: #fff; padding: 0 12px; color: #444; box-shadow: inset 0 2px 7px rgba(0,0,0,.12); }
.hyd-view-tools button.active { background: #272727; color: #fff; box-shadow: none; }
.hyd-view-tools label { display: inline-flex; align-items: center; gap: 7px; }

.hyd-list { display: grid; gap: 0; background: #fff; }
.hyd-card { display: grid; grid-template-columns: 90px minmax(0, 1fr) minmax(300px, 440px); gap: 18px; align-items: center; padding: 19px 10px 19px 8px; border-top: 1px solid #ddd; background: #fff; overflow: hidden; }
.hyd-card:last-child { border-bottom: 1px solid #ddd; }
.hyd-card-img { width: 90px; min-height: 76px; display: grid; place-items: center; color: #aaa; font-weight: 900; }
.hyd-card-img img { width: 100%; height: 76px; object-fit: contain; }
.hyd-card-body { min-width: 0; }
.hyd-card-title { display: block; margin-bottom: 10px; color: #1e2d44; font-size: 1.2rem; font-weight: 900; line-height: 1.24; }
.hyd-card-title:hover { color: var(--hyd-green-dark); }
.hyd-index { margin: 0 0 12px; color: #333; font-size: 1rem; }
.hyd-ean, .hyd-delivery { margin: 0 0 5px; color: #4e5a67; font-size: .9rem; }
.hyd-stock { margin: 0 0 5px; color: #08752c; font-size: .92rem; font-weight: 900; text-transform: uppercase; }
.hyd-card-links { display: flex; gap: 14px; color: #555; font-size: .78rem; text-transform: uppercase; }
/* Kolumny 92+208+2*14(gap) = 328px - zestaw tego bloku POTRZEBOWAL wiecej miejsca
   niz mu dawala 3. kolumna .hyd-card (byla 320px) - stad przelewanie sie poza
   ramke po prawej. Srodkowa kolumna dostaje realny minimum (minmax), zeby nie
   zerowala sie do ujemnej szerokosci przy ciasnym kontenerze. */
.hyd-card-buy { display: grid; grid-template-columns: 92px minmax(90px, 1fr) 208px; grid-template-rows: auto auto auto; gap: 3px 14px; align-items: center; text-align: right; min-width: 0; }
.hyd-card-buy small { grid-row: 1 / 4; align-self: center; color: red; font-size: .67rem; font-weight: 900; line-height: 1.45; }
.hyd-card-buy strong { color: #3a3a3a; font-size: 1.18rem; font-weight: 900; }
.hyd-card-buy > span { color: #333; font-size: .72rem; }
.hyd-qty { grid-column: 3; grid-row: 1 / 3; display: grid; grid-template-columns: 38px 48px 38px; gap: 6px; align-items: center; justify-content: end; }
.hyd-qty button { width: 38px; height: 38px; border: 0; border-radius: 8px; background: #2d2d2d; color: #fff; font-size: 1.2rem; cursor: pointer; }
.hyd-qty input { width: 48px; height: 38px; border: 1px solid #cfcfcf; border-radius: 8px; text-align: center; font-weight: 700; }
.hyd-card-buy .op-card-add { position: static; grid-column: 3; grid-row: 3; width: 100%; min-height: 44px; border: 0; border-radius: 8px; background: var(--hyd-green); color: #fff; padding: 0 18px; font-weight: 900; text-transform: uppercase; cursor: pointer; box-shadow: none; white-space: nowrap; }
.hyd-card-buy .op-card-add:hover { background: var(--hyd-green-dark); }
.hyd-cart-button-icon { display: inline-block; margin-right: 3px; filter: grayscale(1) brightness(0) invert(1); }
.hyd-empty, .hyd-flash { background: #fff; border: 1px solid var(--hyd-line); border-radius: var(--hyd-radius); padding: 20px; color: var(--hyd-muted); }
.hyd-pager { display: flex; gap: 10px; margin-top: 18px; }
.hyd-pager a { background: #fff; border: 1px solid var(--hyd-line); border-radius: 8px; padding: 9px 12px; font-weight: 800; }

.listing-badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.listing-badge { display: inline-flex; align-items: center; width: fit-content; padding: 3px 10px; border-radius: 8px;
    font-size: .72rem; font-weight: 900; line-height: 1.2; text-transform: uppercase; letter-spacing: .04em; }
.listing-badge-compact { margin-left: 6px; padding: 2px 8px; font-size: .66rem; vertical-align: middle; }
.listing-badge-demo { border: 1px solid #f7c9c6; background: #fdeceb; color: var(--hyd-red); }
.listing-badge-sold { background: var(--hyd-black); color: #fff; }
.listing-badge-reserved { background: #0f766e; color: #fff; }
.listing-badge-stale { border: 1px solid rgba(107, 114, 128, .3); background: rgba(107, 114, 128, .08); color: #9ca3af; text-transform: none; letter-spacing: 0; opacity: 0.75; }
.listing-badge-views { border: 1px solid #abefc6; background: #ecfdf3; color: #067647; text-transform: none; letter-spacing: 0; }

.hyd-listing { display: grid; grid-template-columns: minmax(280px, 520px) 1fr; gap: 28px; padding-top: 28px; padding-bottom: 40px; }
.hyd-listing-media { background: #fff; border: 1px solid var(--hyd-line); border-radius: var(--hyd-radius); min-height: 380px; display: flex; flex-direction: column; overflow: hidden; }
.hyd-listing-media > img { flex: 1 1 auto; min-height: 0; width: 100%; object-fit: contain; padding: 18px; }
.hyd-listing-media > span { flex: 1 1 auto; display: grid; place-items: center; }
.hyd-listing-thumbs { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 18px 18px; }
.hyd-listing-thumbs img { width: 72px; height: 56px; object-fit: cover; border: 2px solid var(--hyd-line); border-radius: 4px; background: #fff; cursor: pointer; }
.hyd-listing-thumbs img.is-active { border-color: var(--hyd-red); }
.hyd-listing-info { background: #fff; border: 1px solid var(--hyd-line); border-radius: var(--hyd-radius); padding: 22px; }
.hyd-breadcrumb { color: var(--hyd-muted); font-weight: 800; margin: 0 0 8px; }
.hyd-listing h1 { margin: 0; font-size: 2rem; line-height: 1.12; }
.hyd-price { margin: 16px 0 8px; font-size: 2rem; font-weight: 900; color: #222; }
.hyd-meta { color: var(--hyd-muted); }
.hyd-actions-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 18px 0; }
.hyd-detail-buy { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hyd-actions-row .hyd-detail-buy .op-card-add { position: static; min-height: 44px; border: 0; border-radius: 8px; background: var(--hyd-green); color: #fff; padding: 0 18px; font-weight: 900; text-transform: uppercase; cursor: pointer; box-shadow: none; white-space: nowrap; }
.hyd-actions-row .hyd-detail-buy .op-card-add:hover { background: var(--hyd-green-dark); }
.hyd-msg { border: 1px solid var(--hyd-line); border-radius: 8px; padding: 11px 14px; font-weight: 900; }
.hyd-edit { border: 1px solid var(--hyd-line); border-radius: 8px; padding: 11px 14px; font-weight: 900; display: inline-flex; align-items: center; gap: 5px; }
.hyd-edit:hover { background: var(--hyd-soft); }
.hyd-desc { border-top: 1px solid var(--hyd-line); margin-top: 18px; padding-top: 18px; line-height: 1.6; }
.hyd-contact { background: #fff; border: 1px solid var(--hyd-line); border-radius: var(--hyd-radius); margin-top: 28px; margin-bottom: 40px; padding-top: 24px; padding-bottom: 24px; }

.hyd-foot { background: #ececec; color: #2d2d2d; padding: 34px 0 12px; }
.hyd-contact-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-bottom: 34px; }
.hyd-contact-cards section { min-height: 168px; background: #fff; border-radius: 8px; padding: 24px 20px; box-shadow: 0 8px 22px rgba(0,0,0,.06); }
.hyd-contact-cards h3 { margin: 0 0 22px; font-size: .9rem; text-transform: uppercase; }
.hyd-contact-cards h3::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 11px; background: #222; }
.hyd-contact-cards p { margin: 14px 0 0; color: #666; font-size: .84rem; line-height: 1.45; }
.hyd-contact-cards a { display: block; margin: 0 0 12px; color: #333; font-size: .9rem; font-weight: 700; line-height: 1.35; }
.hyd-contact-cards a:hover, .hyd-foot a:hover { color: var(--hyd-green-dark); }
.hyd-foot-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px; }
.hyd-foot h3 { margin: 0 0 22px; font-size: .9rem; text-transform: uppercase; }
.hyd-foot h3::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 11px; background: #222; }
.hyd-foot a { display: block; margin: 0 0 13px; color: #2d2d2d; font-size: .86rem; }
.hyd-foot-bottom { display: flex; gap: 16px; justify-content: space-between; border-top: 1px solid #d6d6d6; margin-top: 24px; padding-top: 18px; color: #666; font-size: .86rem; }
.hyd-whatsapp { position: fixed; right: 24px; bottom: 18px; z-index: 25; min-height: 58px; display: inline-flex; align-items: center; justify-content: center; border-radius: 28px; background: var(--hyd-green); color: #fff; padding: 0 25px; font-size: 1.35rem; font-weight: 900; box-shadow: 0 10px 30px rgba(0,0,0,.22); }

.shop-seller-tools { background: #fafafa; border: 1px solid var(--hyd-line); border-radius: 8px; padding: 14px 16px; margin: 0 0 18px; }
.shop-seller-picker { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.shop-seller-picker label { font-weight: 900; color: var(--hyd-ink); font-size: .95rem; text-transform: uppercase; letter-spacing: .02em; }
.shop-seller-picker select { min-width: 200px; min-height: 38px; padding: 8px 12px; border: 1px solid var(--hyd-line); border-radius: 6px; background: #fff; color: var(--hyd-ink); font-size: .9rem; font-weight: 700; cursor: pointer; box-shadow: inset 0 1px 3px rgba(0,0,0,.08); }
.shop-seller-picker select:hover { border-color: var(--hyd-green); }
.shop-seller-picker select:focus { outline: none; border-color: var(--hyd-green); box-shadow: 0 0 0 3px rgba(50, 168, 72, .1); }
.shop-seller-picker button { min-height: 38px; padding: 8px 20px; border: 0; border-radius: 6px; background: var(--hyd-green); color: #fff; font-weight: 900; text-transform: uppercase; font-size: .85rem; cursor: pointer; box-shadow: 0 2px 6px rgba(50, 168, 72, .3); transition: all 200ms; }
.shop-seller-picker button:hover { background: var(--hyd-green-dark); box-shadow: 0 4px 10px rgba(50, 168, 72, .4); transform: translateY(-1px); }
.shop-seller-picker a { min-height: 38px; padding: 8px 16px; border: 1px solid var(--hyd-line); border-radius: 6px; background: #fff; color: var(--hyd-ink); font-weight: 700; font-size: .85rem; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: all 200ms; }
.shop-seller-picker a:hover { background: var(--hyd-soft); border-color: var(--hyd-green); color: var(--hyd-green); }

/* Pelna szerokosc: wieksze marginesy boczne dopiero na bardzo duzych ekranach,
   zeby tresc nie dotykala krawedzi (ten sam wzorzec co subdomena/samochody). */
@media (min-width: 1500px) {
    :root { --hyd-gutter: 48px; }
}

@media (max-width: 1100px) {
    :root { --hyd-gutter: 24px; }
    .hyd-strip-row { gap: 20px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
    .hyd-topbar { grid-template-columns: minmax(0, 1fr); padding-top: 14px; padding-bottom: 14px; }
    .hyd-actions { justify-content: flex-start; flex-wrap: wrap; row-gap: 10px; }
    .hyd-main, .hyd-listing { grid-template-columns: 1fr; }
    .hyd-rail { position: static; }
    .hyd-tile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hyd-card { grid-template-columns: 90px minmax(0, 1fr); }
    .hyd-card-buy { grid-column: 1 / -1; grid-template-columns: 120px 1fr 208px; padding-left: 108px; }
}
@media (max-width: 720px) {
    :root { --hyd-gutter: 24px; }
    .hyd-brand strong { font-size: 1.28rem; white-space: normal; overflow-wrap: anywhere; }
    .hyd-actions { gap: 12px; }
    .hyd-actions a,
    .hyd-actions .logout-button { font-size: 1.25rem; }
    .hyd-nav .hyd-wrap { gap: 12px; }
    .hyd-tile-grid { grid-template-columns: 1fr; }
    .hyd-sec-head { grid-template-columns: 1fr; }
    .hyd-view-tools { justify-content: flex-start; }
    .hyd-card { grid-template-columns: 74px minmax(0, 1fr); gap: 12px; }
    .hyd-card-img { width: 74px; }
    .hyd-card-title { font-size: 1rem; }
    .hyd-card-buy { padding-left: 0; grid-template-columns: 1fr; text-align: left; }
    .hyd-card-buy small, .hyd-card-buy strong, .hyd-card-buy > span, .hyd-qty, .hyd-card-buy .op-card-add { grid-column: 1; grid-row: auto; justify-content: start; }
    .hyd-detail-buy { width: 100%; }
    .hyd-actions-row .hyd-detail-buy .op-card-add { flex: 1; min-width: 190px; }
    .hyd-contact-cards, .hyd-foot-grid { grid-template-columns: 1fr; }
    .hyd-foot-bottom { flex-direction: column; }
    .hyd-whatsapp { left: 18px; right: 18px; bottom: 14px; }
}
