/* filtryprywatyzujace.pl - brands in the catalogue (29.11.2026), after the approved mock-ups
   MAKIETA-LISTING-PRODUKTOW-I-MAREK.html and MAKIETA-DICOTA-POROWNANIE-1-DO-1.html.
   Loaded last in base.html.twig, so it overrides b2c-theme.css without touching it. */

/* Brand mark: logo on a transparent background, else the brand name. */
.fp-brand-mark{display:block;width:auto;max-width:none;object-fit:contain}
.fp-brand-mark--text{color:#253045;font-size:10px;font-weight:800;letter-spacing:.06em;line-height:1;text-transform:uppercase;white-space:nowrap}

/* Photo area of a card: the brand mark sits in the RIGHT top corner, the left top corner stays free for a product label.
   The image starts below the strip of the mark (top padding), so the mark never covers the product. No extra frame
   around the photo itself: the frame of the whole card stays. */
.tenant-filtry-b2c .fp-photo{position:relative}
.fp-photo-brand{position:absolute;top:9px;right:10px;z-index:2;display:flex;align-items:center;line-height:0;pointer-events:none}
.tenant-filtry-b2c .fp-photo .fp-photo-brand img.fp-brand-mark{max-width:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;object-fit:contain!important;transform:none!important;transition:none!important}
.tenant-filtry-b2c .fp-photo .fp-photo-brand .fp-brand-mark--wide{width:46px!important;height:11px!important}
.tenant-filtry-b2c .fp-photo .fp-photo-brand .fp-brand-mark--square{width:23px!important;height:12px!important}
.fp-photo-label{position:absolute;top:8px;left:10px;z-index:2}

.tenant-filtry-b2c .cp-product-image.fp-photo{margin:0!important;border:0!important;border-radius:0!important;padding:0!important}
.tenant-filtry-b2c .cp-product-image.fp-photo img{padding:30px 14px 10px!important}
.tenant-filtry-b2c .hp-product-card__image-wrap.fp-photo{margin:0!important;border:0!important;border-radius:0!important}
.tenant-filtry-b2c .hp-product-card__image-wrap.fp-photo img{box-sizing:border-box;padding-top:30px}

/* Product page: the same corner, a little larger; the photo area keeps its own padding below the mark. */
.fp-photo-brand--detail{top:16px;right:18px}
.tenant-filtry-b2c .fp-photo .fp-photo-brand--detail .fp-brand-mark--wide{width:66px!important;height:14px!important}
.tenant-filtry-b2c .fp-photo .fp-photo-brand--detail .fp-brand-mark--square{width:31px!important;height:16px!important}
.tenant-filtry-b2c .pd-main-image.fp-photo{padding-top:44px}

@media(max-width:767px){
 .fp-photo-brand{top:7px;right:8px}
 .tenant-filtry-b2c .fp-photo .fp-photo-brand .fp-brand-mark--wide{width:42px!important;height:10px!important}
 .tenant-filtry-b2c .fp-photo .fp-photo-brand .fp-brand-mark--square{width:21px!important;height:11px!important}
 .tenant-filtry-b2c .cp-product-image.fp-photo img{padding:24px 8px 6px!important}
 .tenant-filtry-b2c .hp-product-card__image-wrap.fp-photo img{padding-top:24px}
 .fp-photo-brand--detail{top:10px;right:12px}
 .tenant-filtry-b2c .fp-photo .fp-photo-brand--detail .fp-brand-mark--wide{width:56px!important;height:12px!important}
 .tenant-filtry-b2c .fp-photo .fp-photo-brand--detail .fp-brand-mark--square{width:27px!important;height:14px!important}
 .tenant-filtry-b2c .pd-main-image.fp-photo{padding-top:34px}
}

/* Brand filter: a row of brand marks that toggle (checkbox underneath, works without JavaScript). */
.fp-brand-filter{min-width:0;margin:0 0 14px;padding:0;border:0}
.fp-brand-filter legend{margin:0 0 7px;padding:0;border:0;color:#111827;font-size:13px;font-weight:750}
.fp-brand-options{display:flex;flex-wrap:wrap;gap:7px}
.fp-brand-toggle{position:relative;display:inline-flex;align-items:center;gap:8px;min-width:76px;height:38px;margin:0;padding:0 10px 0 12px;border:1px solid #cbd3dc;border-radius:8px;background:#fff;cursor:pointer;font-weight:400}
.fp-brand-toggle input{position:absolute;inset:0;width:100%;height:100%;margin:0;opacity:0;cursor:pointer}
.fp-brand-toggle__mark{display:flex;align-items:center;line-height:0}
.fp-brand-toggle .fp-brand-mark--wide{width:52px;height:12px}
.fp-brand-toggle .fp-brand-mark--square{width:26px;height:13px}
.fp-brand-toggle small{margin-left:auto;color:#657489;font-size:11px}
.fp-brand-toggle:hover{border-color:#8fb3e6}
.fp-brand-toggle.is-selected,.fp-brand-toggle:has(input:checked){border-color:#3579d3;background:#eaf3ff;box-shadow:inset 0 0 0 1px #3579d3}
.fp-brand-toggle:has(input:focus-visible){outline:3px solid #4287f5;outline-offset:2px}
.fp-brand-toggle.is-empty{opacity:.4;cursor:default}
.fp-brand-toggle.is-empty input{cursor:default}

/* Brands in the current view, under the category lead (data of the listing, not a fixed list). */
.fp-view-brands{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:14px 0 0;padding:0;list-style:none}
.fp-view-brands>span{color:#586475;font-size:12px}
.fp-view-brands li{display:inline-flex;align-items:center;justify-content:center;min-height:30px;padding:5px 10px;border:1px solid #dce1e7;border-radius:7px;background:#fff;line-height:0}
.fp-view-brands .fp-brand-mark--wide{width:56px;height:13px}
.fp-view-brands .fp-brand-mark--square{width:28px;height:14px}

/* Empty category: a readable empty state instead of a bare sentence. */
.fp-empty-category{grid-column:1/-1;padding:28px 24px;border:1px dashed #cfd7e2;border-radius:14px;background:#f6f8fb;color:#374151}
.fp-empty-category strong{display:block;margin-bottom:6px;color:#111827;font-size:17px}
.fp-empty-category p{margin:0 0 12px;font-size:14px;line-height:1.55}
.fp-empty-category a{font-weight:700}

/* Catalogue index: six categories in two columns, number above the title, product photo on the right (approved mock-up). */
.tenant-filtry-b2c .pf-device-grid--rows{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0;padding:0;overflow:visible}
.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card{min-width:0;min-height:172px;display:grid;grid-template-columns:minmax(0,1fr) 210px;align-items:center;border-radius:18px}
.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__index{position:static;grid-column:1;grid-row:1;align-self:end;margin:26px 0 0 26px;color:#3f77d4;font-size:10px;letter-spacing:.08em}
.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__copy{grid-column:1;grid-row:2;min-height:0;padding:4px 16px 26px 26px}
.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__copy h3{max-width:none;margin:4px 0 6px;font-size:23px;letter-spacing:-.03em}
.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__copy p{min-height:0;font-size:13px}
.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__copy strong{margin-top:12px;font-size:12px}
.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__media{grid-column:2;grid-row:1/3;height:150px;margin:10px 16px 10px 0;border:0;border-radius:0;background:transparent}
.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__media img{padding:4px;mix-blend-mode:multiply}
@media(max-width:991px){.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card{grid-template-columns:minmax(0,1fr) 150px}.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__media{height:120px}.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__copy h3{font-size:19px}}
@media(max-width:767px){.tenant-filtry-b2c .pf-device-grid--rows{grid-template-columns:1fr;gap:10px;margin-right:0}.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card{min-width:0;min-height:128px;grid-template-columns:minmax(0,1fr) 112px}.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__index{margin:16px 0 0 16px}.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__copy{padding:2px 8px 16px 16px}.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__copy h3{font-size:17px}.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__copy p{font-size:12px}.tenant-filtry-b2c .pf-device-grid--rows .pf-device-card__media{height:96px;margin:8px 10px 8px 0}}

/* Category header with a product photo (smartphones, bags, accessories): the photo fits the header instead of setting its height. */
.tenant-filtry-b2c .cp-hero--accessories .cp-hero-media{min-height:300px}
.tenant-filtry-b2c .cp-hero--accessories .cp-hero-media img{position:absolute;inset:0;width:100%;height:100%}
@media(max-width:767px){.tenant-filtry-b2c .cp-hero--accessories .cp-hero-media{min-height:0}}

/* Category banner photos (owner-approved set, local preview 29.11.2026): full photo, no shading, padding or tinted backdrop. */
.tenant-filtry-b2c .cp-hero--photo .cp-hero-media{min-height:300px;border:0;background:none;box-shadow:none}
.tenant-filtry-b2c .cp-hero--photo .cp-hero-media:before,.tenant-filtry-b2c .cp-hero--photo .cp-hero-media:after{content:none;display:none}
.tenant-filtry-b2c .cp-hero--photo .cp-hero-media img{position:absolute;inset:0;width:100%;height:100%;padding:0!important;object-fit:cover!important;object-position:center!important;background:none!important;filter:none;box-shadow:none}
@media(max-width:767px){.tenant-filtry-b2c .cp-hero--photo .cp-hero-media{min-height:0}}

/* Product that cannot be bought now (VariantAvailability not purchasable, e.g. the only supplier offer is inactive). */
.cp-fulfilment--unavailable>i{color:#6b7280;background:#eceef1}
.cp-fulfilment--unavailable strong{color:#4b5563}
.tenant-filtry-b2c .pd-availability--unavailable strong{color:#b42318}
.tenant-filtry-b2c .pd-availability--unavailable a{margin-left:6px;font-weight:700}

/* Filter action bars (main .sf-actions and each option list's .sf-choice-actions) are <footer> elements; the legacy main.css
   styles every footer as the page footer (dark band, 4px border, 40px padding, white links). Neutralise that for any footer inside
   the filter panel; border and padding of the choice bars and the mobile drawer still come from facet-controls.css. */
.tenant-filtry-b2c .sf-panel footer{background:transparent;font-size:inherit}
.tenant-filtry-b2c .sf-panel footer a{color:var(--sf-muted)!important}
.tenant-filtry-b2c .sf-panel:not(.is-open) footer.sf-actions{border-top:0;padding:0}
/* Breathing room between the filter panel and the photo card below it. */
.tenant-filtry-b2c .cp-sidebar .sf-panel ~ .cp-sidebar-photo-card{margin-top:24px}

/* Sidebar panels: one continuous, visible outline around the rounded corners. The Kategorie header painted its square-ish
   background (7px radius, overflow visible) over the 16px panel border; clip it to the panel instead. */
.tenant-filtry-b2c .cp-sidebar .cf-panel{border:1px solid #d9d6ce!important;border-radius:16px!important;overflow:hidden}
.tenant-filtry-b2c .cp-sidebar .cf-panel .cf-panel-header{border-radius:0}
.tenant-filtry-b2c .sf-panel:not(.is-open) .sf-form{border:1px solid #d9d6ce;border-radius:16px}

/* Sort control: shop blue instead of the shared green, slightly smaller, with clear space inside the results bar.
   Focus stays a visible 3px outline (blue on white, contrast above 3:1). */
.tenant-filtry-b2c .cp-results-toolbar .sf-single{min-width:160px}
.tenant-filtry-b2c .cp-results-toolbar .sf-single-trigger{min-height:34px;padding:6px 12px;border-color:#d9d6ce;font-size:12px}
.tenant-filtry-b2c .sf-single-trigger[aria-expanded=true]{border-color:var(--pf-violet,#4287f5)}
.tenant-filtry-b2c .sf-single-option[aria-selected=true]{background:var(--pf-lilac,#eaf2ff)}
.tenant-filtry-b2c .sf-single-option.is-active{outline:2px solid var(--pf-violet,#4287f5);outline-offset:-2px}
/* b2c-theme.css gives every button a 28% transparent focus ring (!important); in the sort and filter controls use the solid shop blue. */
.tenant-filtry-b2c .sf-single :focus-visible,.tenant-filtry-b2c .sf-panel :focus-visible{outline:3px solid var(--pf-violet,#4287f5)!important;outline-offset:2px!important}
/* category-products.css hides every span in the results bar below 480px (meant for the "Sortuj według:" label), which also emptied
   the sort button: keep its value and chevron visible. */
@media(max-width:479px){.tenant-filtry-b2c .cp-results-toolbar .sf-single-trigger span{display:inline-block}}
.tenant-filtry-b2c .cp-results-toolbar .sf-single-trigger span{font-size:inherit;color:inherit}

/* Owner decision 29.11: no generic "60°" claim outside 3M product cards; drop the decorative 60° watermarks (footer, About lead card). */
.tenant-filtry-b2c .privacy-footer__stage:before,.tenant-filtry-b2c .about-manifesto__lead:after{content:none}
.tenant-filtry-b2c .about-manifesto__lead h3{color:#fff}

/* Option popovers (Przekątna, Proporcje...): facet-controls.css sets width:max(100%,260px), wider than the 238px field in this sidebar,
   so the list stuck out past the panel border. Match the field width exactly; the mobile drawer already uses 100% (static). */
.tenant-filtry-b2c .sf-panel.is-enhanced:not(.is-open) .sf-popover{left:0;right:0;width:100%;max-width:100%}

/* Owner 29.11: the brand mark is an overlay on the photo; move it about 5px further from the top and right edge than before
   (9/10 -> 14/15, detail 16/18 -> 21/23; mobile 7/8 -> 12/13, detail 10/12 -> 15/17). No change to the photo layout or padding. */
.fp-photo-brand{top:14px;right:15px}
.fp-photo-brand--detail{top:21px;right:23px}
@media(max-width:767px){.fp-photo-brand{top:12px;right:13px}.fp-photo-brand--detail{top:15px;right:17px}}
