/**
 * FlowOrder — skórka panelu zamówień hurtowych.
 * Źródło wizualne: projekt „Flowhurt Panel Zamowien" (Claude Design, ekrany 1a–1g)
 * + ikony kategorii z planszy Figma „FLOWHURT" (sierpień 2026).
 * Wszystko pod .fo — zero wpływu na resztę motywu.
 */

.fo {
	--fo-ink: #111;
	--fo-text: #333;
	--fo-muted: #666;
	--fo-faint: #8a8a8a;
	--fo-dim: #9a9a9a;
	--fo-line: #ececec;
	--fo-line-soft: #f1f1f1;
	--fo-line-input: #e2e2e2;
	--fo-bg-soft: #f6f6f6;
	--fo-green: #2ECC71;
	--fo-green-dark: #1B9E55;
	--fo-red: #E74C3C;
	--fo-orange: #E67E22;
	--fo-amber: #F5A623;
	--fo-amber-dark: #B26A00;
	--fo-blue: #3B82F6;
	--fo-disabled: #c9c9c9;

	font-family: "Quicksand", -apple-system, "Segoe UI", Arial, sans-serif;
	color: var(--fo-ink);
	font-size: 13px;
	line-height: 1.45;
	-webkit-font-smoothing: antialiased;
}

.fo *, .fo *::before, .fo *::after { box-sizing: border-box; }
.fo [hidden] { display: none !important; }
.fo :where(a) { color: inherit; text-decoration: none; }
.fo :where(button, input, select) { font-family: inherit; font-size: inherit; color: inherit; }
.fo :where(button) { cursor: pointer; }
.fo img { max-width: 100%; height: auto; display: block; }
.fo img.emoji { display: inline !important; width: 1em !important; height: 1em !important; margin: 0 .07em !important; vertical-align: -0.1em !important; border: none !important; box-shadow: none !important; }
.fo ::placeholder { color: #9b9b9b; opacity: 1; }
.fo :focus-visible { outline: 2px solid var(--fo-ink); outline-offset: 2px; border-radius: 4px; }

/* Tryb cen: serwer renderuje obie wartości, atrybut pokazuje jedną. */
.fo[data-prices="net"] .fo-only-gross { display: none !important; }
.fo[data-prices="gross"] .fo-only-net { display: none !important; }

/* ---------------------------------------------------------------- rama „app" */

body.fo-app-body { margin: 0; background: #fff; }
/* Cudze widgety wypisywane w wp_footer (pływający koszyk YITH, bannery) nie mają tu stylów — chowamy je. Zostaje panel, pasek admina i Joinchat. */
body.fo-app-body:not(.fo-co-body):not(.fo-site-body) > :not(.fo-app):not(.fo-pd-lightbox):not(#wpadminbar):not(.joinchat):not(script):not(style):not(link):not(noscript) { display: none !important; }
/* Na checkoucie okna wtyczek (mapa InPost jBox, PayU, select2, blockUI) muszą zostać. */
/* Pasek admina: jego arkusz (dozwolony w ramie) daje html { margin-top: 32px } — własny padding dublował odstęp (23.08). */
body.fo-app-body.admin-bar .fo-app { padding-top: 0; }
#wpadminbar { z-index: 99999; }
.fo-app { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }
.fo-app .fo-main { flex: 1; }
.fo-topbar-in, .fo-header-in, .fo-acctnav-in, .fo-footer-in, .fo-app .fo-main, .fo-app .fo-cartbar-slot, .fo-app .fo-copy { max-width: 1600px; margin: 0 auto; width: 100%; }

.fo-topbar { background: var(--fo-ink); color: #fff; font-size: 11.5px; font-weight: 500; }
.fo-topbar-in { display: flex; justify-content: space-between; align-items: center; padding: 10px 28px; gap: 16px; }
.fo-topbar-contact { display: flex; gap: 22px; align-items: center; }
.fo-topbar-contact a, .fo-topbar-account a, .fo-topbar-company { display: inline-flex; gap: 7px; align-items: center; color: #fff; }
.fo-topbar-account { display: flex; gap: 18px; align-items: center; }
.fo-topbar-account a { font-weight: 600; }
.fo-topbar-sep { opacity: .3; }
.fo-topbar-company { font-weight: 700; gap: 8px; }
.fo-topbar-logout { opacity: .75; font-weight: 500 !important; }
.fo-topbar a:hover { text-decoration: underline; }

.fo-header-in { display: flex; align-items: center; gap: 24px; padding: 18px 28px; }
.fo-logo { display: inline-flex; align-items: center; gap: 11px; }
.fo-logo-word { font-family: "Caveat", cursive; font-size: 27px; font-weight: 700; line-height: 1; }
.fo .fo-logo-img { height: 60px; width: auto; display: block; }
.fo .fo-logo-foot .fo-logo-img { height: 64px; }
.fo-hurt { border: 1.5px solid var(--fo-ink); border-radius: 4px; padding: 2px 7px; font-size: 9px; font-weight: 800; letter-spacing: .14em; line-height: 1.3; }
.fo-hsearch { display: flex; align-items: center; gap: 10px; background: #f4f4f4; border-radius: 8px; height: 44px; padding: 0 16px; flex: 1; max-width: 430px; margin-left: auto; }
.fo-hsearch input { border: none; background: transparent; outline: none; font-size: 13px; flex: 1; min-width: 0; }
.fo-hspacer { flex: 1; }
.fo-hcart { display: inline-flex; align-items: center; gap: 14px; border: 1px solid var(--fo-line-input); border-radius: 8px; height: 44px; padding: 0 18px; }
.fo-hcart-sum { font-weight: 800; font-size: 13px; }
.fo-cart-ico { position: relative; display: inline-flex; }
.fo-cart-count { position: absolute; top: -7px; right: -9px; background: var(--fo-red); color: #fff; border-radius: 999px; font-size: 8.5px; font-weight: 800; min-width: 15px; height: 15px; padding: 0 3px; display: inline-flex; align-items: center; justify-content: center; }

.fo-acctnav { border-bottom: 1px solid #eee; }
.fo-acctnav-in { display: flex; align-items: center; gap: 4px; padding: 0 28px; }
.fo-acctnav-tab { padding: 14px 16px; font-weight: 600; font-size: 12.5px; color: #777; border-bottom: 3px solid transparent; }
.fo-acctnav-tab:hover { color: var(--fo-ink); }
.fo-acctnav-tab.is-active { font-weight: 800; color: var(--fo-ink); border-bottom-color: var(--fo-ink); }
.fo-acctnav-back { margin-left: auto; font-weight: 700; font-size: 12px; color: #555; }

/* pasek w układzie „theme" */
.fo-compact { display: flex; align-items: center; gap: 16px; padding: 10px 0 14px; font-size: 12px; font-weight: 600; flex-wrap: wrap; }
.fo-compact-company { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; }
.fo-compact a { text-decoration: underline; text-underline-offset: 3px; }
.fo-compact-cart { margin-left: auto; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; }

/* ---------------------------------------------------------------- przyciski */

.fo-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--fo-ink); background: var(--fo-ink); color: #fff; border-radius: 6px; padding: 12px 17px; font-weight: 800; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.fo-btn:hover { background: #2d2d2d; border-color: #2d2d2d; color: #fff; text-decoration: none; }
.fo-btn-ghost { background: #fff; color: var(--fo-ink); border-color: #d9d9d9; font-weight: 700; }
.fo-btn-ghost:hover { background: #fff; color: var(--fo-ink); border-color: var(--fo-ink); }
.fo-btn-outline { background: #fff; color: var(--fo-ink); border-color: var(--fo-ink); }
.fo-btn-outline:hover { background: var(--fo-ink); color: #fff; }
.fo-btn-pill { border-radius: 999px; padding: 13px 22px; font-size: 11px; letter-spacing: .09em; gap: 10px; }
.fo-btn-sm { padding: 11px 15px; font-size: 10px; }
.fo-btn-xs { padding: 9px 13px; font-size: 10px; letter-spacing: .06em; gap: 7px; }
.fo-btn-block { width: 100%; padding: 14px; font-size: 11px; letter-spacing: .09em; margin-top: 10px; }
.fo-btn-grow { flex: 1; }
.fo-btn.is-disabled, .fo-btn:disabled { background: var(--fo-disabled); border-color: var(--fo-disabled); color: #fff; cursor: not-allowed; }
.fo-linkbtn { border: none; background: none; padding: 0; font-weight: 800; font-size: 10.5px; text-decoration: underline; text-underline-offset: 2px; color: var(--fo-ink); white-space: nowrap; }
.fo-iconbtn { border: none; background: none; padding: 2px; display: inline-flex; }
.fo-inline-form { display: inline-flex; margin: 0; }
.fo-detail .fo-inline-form { display: flex; width: 100%; }

/* ---------------------------------------------------------------- komunikaty */

.fo-flash { margin: 14px 28px 0; padding: 11px 14px; border-radius: 8px; font-weight: 700; font-size: 12px; background: #fdecea; color: #b3261e; border: 1px solid #f6c9c4; }
.fo-flash.is-ok { background: #e9f9f0; color: var(--fo-green-dark); border-color: #bfe9cf; }
.fo-flash.is-info { background: #fff7e8; color: var(--fo-amber-dark); border-color: #f3ddb0; margin: 0 0 14px; }
.fo-dd-item.is-empty { display: none; }
.fo-dd-item.is-empty.is-selected { display: flex; opacity: .55; }

/* ---------------------------------------------------------------- katalog */

.fo-main { padding-bottom: 40px; }
.fo-tabs { display: flex; gap: 10px; padding: 14px 28px 0; flex-wrap: wrap; }
.fo-tab { padding: 10px 18px; border: 1px solid #dedede; border-radius: 6px; font-weight: 700; font-size: 10.5px; letter-spacing: .07em; background: #fff; color: var(--fo-text); white-space: nowrap; }
.fo-tab:hover { border-color: var(--fo-ink); }
.fo-tab.is-active { background: var(--fo-ink); border-color: var(--fo-ink); color: #fff; font-weight: 800; }
.fo-tabs-sm .fo-tab { padding: 9px 15px; font-size: 10px; letter-spacing: .06em; }

.fo-filters { display: flex; gap: 12px; padding: 16px 28px 0; margin: 0; flex-wrap: wrap; }
.fo-select { position: relative; width: 240px; flex: none; }
.fo-select select { width: 100%; height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--fo-line-input); border-radius: 8px; background: #fff; font-weight: 500; font-size: 13px; color: #444; appearance: none; -webkit-appearance: none; cursor: pointer; }
.fo-select > svg { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.fo-select.has-value select { color: var(--fo-ink); font-weight: 700; border-color: var(--fo-ink); }
/* rozwijane listy (JS) */
.fo-select.is-enhanced > select, .fo-select.is-enhanced > svg { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.fo-dd-btn { width: 100%; height: 44px; padding: 0 36px 0 14px; border: 1px solid var(--fo-line-input); border-radius: 8px; background: #fff; font-weight: 500; font-size: 13px; color: #444; text-align: left; position: relative; display: flex; align-items: center; }
.fo-dd-btn::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; border-right: 2.2px solid #777; border-bottom: 2.2px solid #777; transform: translateY(-70%) rotate(45deg); }
.fo-dd-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-select.has-value .fo-dd-btn { color: var(--fo-ink); font-weight: 700; border-color: var(--fo-ink); }
.fo-select.is-open .fo-dd-btn { border-color: var(--fo-ink); }
.fo-select.is-open .fo-dd-btn::after { transform: translateY(-20%) rotate(225deg); }
.fo-dd { display: none; position: absolute; top: calc(100% + 6px); left: 0; z-index: 50; width: 300px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--fo-line); border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .16); overflow: hidden; }
.fo-select.is-open .fo-dd { display: block; }
.fo-dd-head { padding: 12px 14px 8px; font-weight: 800; font-size: 12.5px; }
.fo-dd-search { display: block; padding: 0 10px 8px; }
.fo-dd-search input { width: 100%; height: 36px; border: 1px solid var(--fo-line-input); border-radius: 6px; padding: 0 10px; font-size: 12.5px; outline: none; }
.fo-dd-search input:focus { border-color: var(--fo-ink); }
.fo-dd-list { max-height: 360px; overflow-y: auto; padding: 4px 0 6px; }
.fo-dd-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; font-size: 12.5px; color: var(--fo-text); cursor: pointer; }
.fo-dd-item:hover { background: #f6f6f6; }
.fo-dd-item.is-selected { font-weight: 800; color: var(--fo-ink); }
.fo-dd-item.is-parent { font-weight: 700; color: var(--fo-ink); margin-top: 4px; }
.fo-dd-item.is-child { padding-left: 26px; font-size: 12px; }
.fo-dd-item.is-child.is-deep { padding-left: 40px; }
.fo-dd-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fo-dd-count { display: none; } /* liczniki zdjęte 22.08 (Michał) — dane zostają do chowania pustych opcji */
.fo-dd-logo { width: 34px; height: 22px; object-fit: contain; flex: none; }
.fo-dd-initial { width: 34px; height: 22px; border-radius: 4px; background: #f1f1f1; color: #555; font-weight: 800; font-size: 9.5px; letter-spacing: .04em; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fo-search { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 240px; height: 44px; border: 1px solid var(--fo-line-input); border-radius: 8px; padding: 0 14px; margin: 0; }
.fo-search input { border: none; background: transparent; outline: none; font-size: 13px; flex: 1; min-width: 0; }
.fo-search input[type="search"]::-webkit-search-decoration { display: none; }
.fo-search-go { border: none; background: none; font-weight: 800; font-size: 10.5px; letter-spacing: .08em; padding: 0; }
.fo-search-sm { height: 40px; width: 260px; flex: none; min-width: 0; font-size: 12.5px; }
.fo-filters-tools { display: flex; align-items: center; gap: 12px; flex: none; flex-wrap: nowrap; }
.fo-filters .fo-search { min-width: 200px; }
.fo-filters .fo-reset { font-size: 12px; white-space: nowrap; }
.fo-filters .fo-view-btn { width: 44px; height: 44px; border-radius: 8px; }
.fo-filters + .fo-carousel { margin-top: 16px; }

.fo-toolbar { display: flex; align-items: center; gap: 14px; padding: 16px 28px 6px; flex-wrap: wrap; }
.fo-reset { font-weight: 800; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.fo-toolbar-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.fo-toolbar-label { font-size: 11px; font-weight: 700; color: #777; }
.fo-seg { display: flex; border: 1px solid #dcdcdc; border-radius: 8px; overflow: hidden; }
.fo-seg-btn { padding: 10px 16px; font-weight: 800; font-size: 10.5px; letter-spacing: .08em; background: #fff; color: var(--fo-muted); }
.fo-seg-btn + .fo-seg-btn { border-left: 1px solid #dcdcdc; }
.fo-seg-btn.is-active { background: var(--fo-ink); color: #fff; }
.fo-views { display: flex; gap: 8px; }
.fo-view-btn { width: 38px; height: 38px; border: 1px solid #dcdcdc; border-radius: 7px; background: #fff; color: #555; display: inline-flex; align-items: center; justify-content: center; }
.fo-view-btn.is-active { background: var(--fo-ink); border-color: var(--fo-ink); color: #fff; }

.fo-carousel { background: var(--fo-bg-soft); padding: 18px 28px; display: flex; align-items: center; gap: 14px; margin-top: 12px; }
.fo-car-btn { width: 34px; height: 34px; border-radius: 50%; border: 1px solid #ddd; background: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fo-car-btn:hover { border-color: var(--fo-ink); }
.fo-car-track { display: flex; gap: 12px; flex: 1; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.fo-car-track::-webkit-scrollbar { display: none; }
.fo-tile { flex: 1 0 calc((100% - 7 * 12px) / 8); min-width: 128px; scroll-snap-align: start; background: #fff; border: 1px solid var(--fo-line); border-radius: 10px; display: flex; flex-direction: column; align-items: center; gap: 9px; padding: 14px 8px; text-align: center; }
.fo-tile:hover { border-color: var(--fo-ink); }
.fo-tile.is-active { border: 2px solid var(--fo-ink); padding: 13px 7px; }
.fo-tile.is-active span { font-weight: 800; }
.fo-tile img { width: 52px; height: 52px; object-fit: contain; mix-blend-mode: multiply; }
.fo-tile span { font-weight: 600; font-size: 11.5px; line-height: 1.25; }

.fo-strip { margin: 18px 28px 0; display: flex; align-items: center; gap: 16px; padding: 12px 18px; border: 1px dashed #d4d4d4; border-radius: 10px; flex-wrap: wrap; }
.fo-strip-text { font-size: 12.5px; color: #444; flex: 1; min-width: 240px; }
.fo-strip-actions { display: flex; gap: 8px; margin: 0; }

.fo-results-wrap { margin: 20px 28px 0; position: relative; }
.fo-results-wrap.is-loading > .fo-results { opacity: .35; pointer-events: none; }

/* ---- tabela (1a) */

.fo-table { border: 1px solid var(--fo-line); border-radius: 12px; overflow: hidden; }
.fo-thead, .fo-row { display: grid; grid-template-columns: 96px minmax(0, 1fr) 185px 180px 165px 265px; gap: 18px; align-items: center; padding: 14px 22px; }
.fo-thead { font-weight: 800; font-size: 10px; letter-spacing: .11em; color: #7c7c7c; }
.fo-th-product { grid-column: 1 / 3; }
.fo-row { padding: 16px 22px; border-top: 1px solid var(--fo-line-soft); margin: 0; }
.fo-row:hover { background: #fbfbfb; }
.fo-thumb { width: 84px; height: 84px; border-radius: 8px; border: 1px solid #f0f0f0; background: #fff; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.fo-thumb img { width: 100%; height: 100%; object-fit: contain; }
.fo-noimg { display: block; width: 100%; height: 100%; background: repeating-linear-gradient(45deg, #f7f7f7 0 8px, #efefef 8px 16px); }
.fo-brand { font-weight: 700; font-size: 9.5px; letter-spacing: .13em; color: var(--fo-dim); text-transform: uppercase; min-height: 1em; }
.fo-name { font-weight: 700; font-size: 14.5px; line-height: 1.3; margin-top: 2px; }
.fo-name a:hover { text-decoration: underline; }
.fo-sku { font-size: 10.5px; color: var(--fo-faint); margin-top: 3px; }
.fo-badges { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.fo-badge { background: var(--fo-ink); color: #fff; font-weight: 800; font-size: 8.5px; letter-spacing: .09em; padding: 3px 7px; border-radius: 3px; }
.fo-badge-excise { background: #fff; color: var(--fo-ink); border: 1px solid var(--fo-ink); padding: 2px 7px; }
.fo-card-badges .fo-badge-excise { background: #fff; }
.fo-pill { display: inline-block; padding: 5px 10px; border-radius: 5px; font-weight: 800; font-size: 9.5px; letter-spacing: .08em; color: #fff; white-space: nowrap; }
.fo-pill-lg { padding: 6px 11px; }
.fo-note { margin-top: 7px; font-weight: 700; font-size: 12px; }
.fo-price-main { font-weight: 800; font-size: 16px; }
.fo-price-suf { font-size: 10.5px; color: var(--fo-dim); }
.fo-price-alt { font-size: 10.5px; color: var(--fo-dim); margin-top: 3px; }
.fo-price-disc { font-size: 10.5px; color: var(--fo-dim); margin-top: 2px; }
.fo-price-disc b { color: var(--fo-green-dark); }

.fo-stepper-wrap { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fo-stepper { display: flex; border: 1px solid var(--fo-line-input); border-radius: 6px; overflow: hidden; height: 38px; background: #fff; }
.fo-step { width: 34px; border: none; background: #fff; font-size: 16px; color: var(--fo-text); line-height: 1; }
.fo-step:hover { background: #f2f2f2; }
.fo-qty-input { width: 46px; border: none; border-left: 1px solid #eee; border-right: 1px solid #eee; text-align: center; font-weight: 800; font-size: 13px; background: #fff; -moz-appearance: textfield; appearance: textfield; }
.fo-qty-input::-webkit-outer-spin-button, .fo-qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.fo-qty-input:disabled { background: #fafafa; color: #bbb; }
.fo-stepper.is-over { border: 1.5px solid var(--fo-red); box-shadow: 0 0 0 3px rgba(231, 76, 60, .12); }
.fo-stepper.is-over .fo-qty-input { color: var(--fo-red); border-color: #f4d5d2; }
.fo-carton { font: 600 9.5px ui-monospace, Menlo, monospace; color: var(--fo-faint); }
.fo-over { font-weight: 800; font-size: 10.5px; color: var(--fo-red); display: flex; gap: 8px; flex-wrap: wrap; align-items: baseline; }

.fo-actions { display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.fo-variants { display: flex; flex-direction: column; gap: 6px; }
.fo-var-label { font-size: 10px; font-weight: 700; color: #777; }
.fo-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.fo-chip { position: relative; display: inline-flex; }
.fo-chip input { position: absolute; opacity: 0; width: 0; height: 0; }
.fo-chip span { height: 27px; padding: 0 11px; border-radius: 5px; font-weight: 800; font-size: 10.5px; background: #fff; color: #555; border: 1px solid #d7d7d7; display: inline-flex; align-items: center; cursor: pointer; }
.fo-chip:hover span { border-color: var(--fo-ink); }
.fo-chip input:checked + span { background: var(--fo-ink); color: #fff; border-color: var(--fo-ink); }
.fo-chip input:focus-visible + span { outline: 2px solid var(--fo-ink); outline-offset: 2px; }
.fo-chip.is-out span { text-decoration: line-through; opacity: .6; }
.fo-btn-add { width: 100%; padding: 13px 10px; font-size: 10.5px; letter-spacing: .09em; }
.fo-btn-add:hover { opacity: .88; }
.fo-btn-add.is-busy { opacity: .6; pointer-events: none; }
.fo-btn-add.is-done { background: var(--fo-green-dark); border-color: var(--fo-green-dark); }
.fo-incart { display: flex; align-items: center; justify-content: space-between; font-weight: 800; font-size: 11.5px; }
.fo-remove { border: none; background: none; padding: 2px; display: inline-flex; }
.fo-row-msg { grid-column: 1 / -1; font-weight: 800; font-size: 11px; color: var(--fo-red); }

/* ---- siatka (1b) */

.fo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fo-card { position: relative; border: 1px solid var(--fo-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; margin: 0; background: #fff; }
.fo-card:hover { box-shadow: 0 8px 24px rgba(0, 0, 0, .08); }
.fo-card-badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 2; }
.fo-card-badges .fo-badge { padding: 4px 8px; }
.fo-card-img { height: 230px; background: #fff; border-bottom: 1px solid var(--fo-line-soft); display: flex; align-items: center; justify-content: center; padding: 18px; }
.fo-card-img img { max-height: 100%; object-fit: contain; }
.fo-card-img .fo-noimg { height: 100%; }
.fo-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; gap: 0; }
.fo-card-body .fo-name { font-size: 14px; min-height: 37px; margin-top: 3px; }
.fo-card-stock { display: flex; align-items: center; gap: 9px; margin-top: 9px; flex-wrap: wrap; }
.fo-card-stock .fo-pill { padding: 4px 9px; font-size: 9px; }
.fo-card-stock .fo-note { margin: 0; font-size: 11px; }
.fo-card-price { margin-top: 9px; }
.fo-card-price .fo-price-main { font-size: 15.5px; }
.fo-card .fo-variants { margin-top: 9px; }
.fo-card .fo-var-label { display: none; }
.fo-card .fo-chip span { height: 25px; padding: 0 10px; font-size: 10px; }
.fo-card-spacer { flex: 1; }
.fo-card .fo-stepper-wrap { margin-top: 12px; align-items: stretch; }
.fo-card .fo-stepper { height: 36px; }
.fo-card .fo-step { width: 44px; }
.fo-card .fo-qty-input { flex: 1; width: auto; }
.fo-card .fo-btn-add { margin-top: 8px; }
.fo-card .fo-incart { margin-top: 9px; font-size: 11px; }

/* ---- stany (1g) */

.fo-empty { padding: 40px 34px; display: flex; flex-direction: column; align-items: center; text-align: center; border: 1px solid var(--fo-line); border-radius: 12px; }
.fo-empty-sm { padding: 34px 24px; }
.fo-empty-icon { width: 58px; height: 58px; border-radius: 50%; background: #f4f4f4; display: flex; align-items: center; justify-content: center; }
.fo-empty-title { font-weight: 800; font-size: 15px; margin-top: 16px; }
.fo-empty-text { font-size: 12px; color: #777; line-height: 1.7; margin-top: 6px; max-width: 320px; text-wrap: pretty; }
.fo-empty-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; justify-content: center; }

@keyframes fo-shimmer { 0% { background-position: -420px 0; } 100% { background-position: 420px 0; } }
.fo-skeleton { border: 1px solid var(--fo-line); border-radius: 12px; padding: 10px 18px 18px; }
.fo-skel-row { display: flex; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid #f4f4f4; }
.fo-skel { border-radius: 6px; background: linear-gradient(90deg, #f1f1f1 25%, #e6e6e6 37%, #f1f1f1 63%); background-size: 420px 100%; animation: fo-shimmer 1.3s linear infinite; height: 12px; }
.fo-skel-img { width: 64px; height: 64px; border-radius: 8px; flex: none; }
.fo-skel-lines { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.fo-skel-lines .fo-skel:last-child { height: 10px; }
.fo-skel-btn { width: 92px; height: 34px; flex: none; }
.fo-skel-note { font-size: 10.5px; color: var(--fo-dim); text-align: center; padding-top: 12px; }

.fo-onboard { margin: 18px 28px 0; border: 1px solid var(--fo-line); border-radius: 12px; padding: 24px 26px 26px; max-width: 620px; }
.fo-onboard-title { font-weight: 800; font-size: 17px; }
.fo-onboard-lead { font-size: 12.5px; color: var(--fo-muted); line-height: 1.65; margin-top: 6px; text-wrap: pretty; }
.fo-onboard-steps { list-style: none; margin: 17px 0 0; padding: 0; display: flex; flex-direction: column; gap: 13px; }
.fo-onboard-steps li { display: flex; gap: 13px; }
.fo-onboard-steps b { font-weight: 800; font-size: 13px; display: block; }
.fo-onboard-steps p { font-size: 11.5px; color: #777; margin: 2px 0 0; line-height: 1.6; }
.fo-onboard-num { width: 26px; height: 26px; border-radius: 50%; background: var(--fo-ink); color: #fff; font-weight: 800; font-size: 12px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fo-onboard-manager { background: var(--fo-bg-soft); border-radius: 8px; padding: 12px 14px; display: flex; gap: 11px; align-items: center; margin-top: 17px; }
.fo-onboard-manager b { font-weight: 800; font-size: 12px; display: block; }
.fo-onboard-manager small { font-size: 11px; color: #777; }
.fo-avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--fo-ink); color: #fff; font-weight: 800; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.fo-onboard-actions { display: flex; gap: 10px; margin: 17px 0 0; }

.fo-wall { margin: 40px 28px; padding: 40px 34px; border: 1px solid var(--fo-line); border-radius: 12px; max-width: 560px; }
.fo-wall-title { font-weight: 800; font-size: 17px; }
.fo-wall-text { font-size: 12.5px; color: var(--fo-muted); line-height: 1.65; margin-top: 8px; }
.fo-wall-actions { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

.fo-pager { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 14px; flex-wrap: wrap; }
.fo-pager-info { font-size: 11.5px; color: var(--fo-dim); }
.fo-pager-links { display: flex; gap: 6px; flex-wrap: wrap; }
.fo-page { display: inline-flex; align-items: center; gap: 6px; min-width: 34px; height: 34px; padding: 0 11px; border: 1px solid #dcdcdc; border-radius: 6px; font-weight: 700; font-size: 11px; justify-content: center; }
.fo-page:hover { border-color: var(--fo-ink); }
.fo-page.is-active { background: var(--fo-ink); border-color: var(--fo-ink); color: #fff; }

/* ---- pasek koszyka (1a / 1g) */

.fo-cartbar-slot { position: sticky; bottom: 0; z-index: 20; padding: 0 28px 20px; pointer-events: none; }
.fo-cartbar { margin-left: auto; max-width: 620px; display: flex; background: #fff; border: 1px solid var(--fo-line); border-radius: 10px; box-shadow: 0 18px 50px rgba(0, 0, 0, .18); overflow: hidden; pointer-events: auto; }
.fo-cartbar-main { flex: 1; padding: 10px 18px; min-width: 0; }
.fo-cartbar-line { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.fo-cartbar-pos { font-weight: 700; font-size: 12.5px; color: #555; }
.fo-cartbar-net { font-weight: 800; font-size: 15px; }
.fo-cartbar-net small { font-weight: 600; font-size: 11px; color: var(--fo-dim); }
.fo-cartbar-gross { font-weight: 600; font-size: 12px; color: var(--fo-faint); }
.fo-min { margin-top: 11px; }
.fo-min-bar { height: 6px; border-radius: 99px; background: #efefef; overflow: hidden; }
.fo-min-fill { height: 100%; border-radius: 99px; transition: width .3s; }
.fo-min-msg { margin-top: 5px; font-weight: 700; font-size: 10.5px; }
.fo-cartbar-cta { border: none; padding: 0 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #fff; background: var(--fo-ink); text-align: center; }
.fo-cartbar-cta b { font-weight: 800; font-size: 11px; letter-spacing: .09em; }
.fo-cartbar-cta small { font-weight: 600; font-size: 9.5px; opacity: .75; }
.fo-cartbar-cta:hover { background: #2d2d2d; }
.fo-cartbar-cta.is-disabled { background: var(--fo-disabled); cursor: not-allowed; }
.fo-cartbar.is-empty .fo-cartbar-gross { display: none; }

/* ---------------------------------------------------------------- zamówienia (1e) */

.fo-main-orders { padding: 26px 28px 44px; }
.fo-h1 { font-weight: 800; font-size: 22px; margin: 0; line-height: 1.2; }
.fo-orders-head { display: flex; align-items: baseline; gap: 16px; flex-wrap: wrap; }
.fo-orders-sum { font-size: 12.5px; color: var(--fo-faint); }
.fo-orders-bar { display: flex; align-items: center; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.fo-orders-bar .fo-tabs { padding: 0; gap: 8px; }
.fo-orders-bar .fo-search-sm { margin-left: auto; }
.fo-otable { border: 1px solid var(--fo-line); border-radius: 12px; overflow: hidden; margin-top: 16px; }
.fo-othead, .fo-orow { display: grid; grid-template-columns: 150px 130px 100px 150px 150px 190px minmax(320px, 1fr); gap: 16px; align-items: center; padding: 13px 22px; }
.fo-othead { font-weight: 800; font-size: 10px; letter-spacing: .11em; color: #7c7c7c; }
.fo-orow { padding: 15px 22px; border-top: 1px solid var(--fo-line-soft); }
.fo-orow:hover { background: #fbfbfb; }
.fo-onr { font-weight: 800; font-size: 13px; }
.fo-onr-link { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #c8c8c8; }
.fo-onr-link:hover { text-decoration-color: var(--fo-ink); }
.fo-odate, .fo-opos { font-size: 12.5px; color: #555; }
.fo-onet { font-weight: 800; font-size: 13px; }
.fo-ogross { font-size: 12.5px; color: var(--fo-faint); }
.fo-ostatus .fo-pill { font-size: 9px; }
.fo-track { margin-top: 6px; display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--fo-blue); }
.fo-track a { color: var(--fo-blue); text-decoration: underline; text-underline-offset: 2px; }
.fo-oactions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }

/* ---------------------------------------------------------------- szczegół (1f) */

.fo-detail { max-width: 1240px; }
.fo-backlink { font-weight: 700; font-size: 12px; color: #555; display: inline-flex; align-items: center; gap: 8px; }
.fo-detail-head { display: flex; align-items: center; gap: 14px; margin-top: 12px; flex-wrap: wrap; }
.fo-detail-head .fo-h1 { font-size: 23px; }
.fo-detail-meta { font-size: 12.5px; color: var(--fo-faint); }
.fo-timeline { list-style: none; margin: 26px 0 0; padding: 0; display: flex; max-width: 860px; }
.fo-tl { flex: 1; display: flex; flex-direction: column; align-items: center; position: relative; text-align: center; }
.fo-tl + .fo-tl::before { content: ""; position: absolute; top: 12px; left: -50%; width: 100%; height: 3px; background: #e5e5e5; }
.fo-tl.is-done + .fo-tl::before, .fo-tl.is-done + .fo-tl.is-done::before { background: var(--fo-green); }
.fo-tl.is-done + .fo-tl.is-current::before { background: var(--fo-green); }
.fo-tl-dot { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #dcdcdc; display: flex; align-items: center; justify-content: center; z-index: 1; }
.fo-tl.is-done .fo-tl-dot, .fo-tl.is-current .fo-tl-dot { background: var(--fo-green); border-color: var(--fo-green); }
.fo-tl.is-current.is-shipped .fo-tl-dot { background: var(--fo-blue); border-color: var(--fo-blue); }
.fo-tl b { font-weight: 800; font-size: 11.5px; margin-top: 8px; }
.fo-tl small { font-size: 10px; color: var(--fo-dim); margin-top: 2px; }
.fo-tl.is-todo b { color: var(--fo-dim); }
.fo-tl.is-todo small { color: #c2c2c2; }
.fo-detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 22px; margin-top: 30px; }
.fo-ditems { border: 1px solid var(--fo-line); border-radius: 12px; overflow: hidden; }
.fo-dihead, .fo-dirow { display: grid; grid-template-columns: minmax(0, 1fr) 60px 120px 120px; gap: 14px; padding: 13px 18px; align-items: center; }
.fo-dihead { font-weight: 800; font-size: 10px; letter-spacing: .11em; color: #7c7c7c; }
.fo-dirow { border-top: 1px solid var(--fo-line-soft); font-size: 12.5px; }
.fo-dirow b { font-weight: 700; font-size: 13px; display: block; }
.fo-dirow small { font-size: 10px; color: var(--fo-dim); display: block; margin-top: 2px; }
.fo-diq { font-weight: 800; }
.ta-r { text-align: right; }
.fo-dtotals { display: flex; justify-content: flex-end; padding: 16px 18px; border-top: 1px solid var(--fo-line); background: #fbfbfb; }
.fo-dtotals-box { width: 260px; display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; }
.fo-dtotals-box > div { display: flex; justify-content: space-between; }
.fo-dtotals-box span { color: var(--fo-muted); }
.fo-dtotals-gross { font-size: 14px; border-top: 1px solid #e5e5e5; padding-top: 8px; margin-top: 2px; }
.fo-dtotals-gross span { font-weight: 700; color: var(--fo-ink) !important; }
.fo-dtotals-gross b { font-weight: 800; }
.fo-card.fo-card { /* karta informacyjna (nie produkt) */ }
.fo-detail .fo-card, .fo-card-title { border: none; }
.fo-detail .fo-card { border: 1px solid var(--fo-line); border-radius: 12px; padding: 18px 20px; margin-top: 18px; display: block; overflow: visible; }
.fo-detail .fo-card:hover { box-shadow: none; }
.fo-detail > div > div > .fo-card:first-child { margin-top: 0; }
.fo-card-title { font-weight: 800; font-size: 13.5px; }
.fo-card-note { font-size: 11.5px; color: var(--fo-dim); margin-top: 10px; line-height: 1.6; }
.fo-kv { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; margin-top: 11px; gap: 12px; }
.fo-kv > span:first-child { color: var(--fo-muted); }
.fo-track-nr { display: inline-flex; align-items: center; gap: 8px; }
.fo-track-nr b { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.fo-detail .fo-btn-outline { margin-top: 14px; font-size: 10px; letter-spacing: .08em; padding: 11px; }
.fo-addr { border-top: 1px solid #f0f0f0; margin-top: 16px; padding-top: 14px; font-size: 12px; line-height: 1.7; }
.fo-eyebrow { font-weight: 800; font-size: 9.5px; letter-spacing: .12em; color: var(--fo-dim); margin-bottom: 7px; }
.fo-doc { display: flex; align-items: center; gap: 12px; padding: 11px 0 0; margin-top: 11px; border-top: 1px solid #f4f4f4; }
.fo-doc > div { flex: 1; }
.fo-doc b { font-weight: 700; font-size: 12.5px; display: block; }
.fo-doc small { font-size: 10.5px; color: var(--fo-dim); }

/* ---------------------------------------------------------------- modal (1d) */

.fo-modal { position: fixed; inset: 0; z-index: 1000; background: rgba(17, 17, 17, .55); display: flex; align-items: center; justify-content: center; padding: 20px; }
.fo-modal-box { position: relative; width: 100%; max-width: 430px; background: #fff; border-radius: 12px; padding: 22px 24px; box-shadow: 0 30px 80px rgba(0, 0, 0, .4); }
.fo-modal-x { position: absolute; top: 12px; right: 12px; width: 28px; height: 28px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; }
.fo-modal-x:hover { background: #f2f2f2; }
.fo-modal-title { font-weight: 800; font-size: 15.5px; padding-right: 28px; }
.fo-modal-lead { font-size: 12px; color: var(--fo-muted); margin-top: 5px; line-height: 1.6; }
.fo-issue { border: 1px solid #f0f0f0; border-radius: 8px; padding: 12px 14px; margin-top: 10px; display: flex; gap: 10px; align-items: flex-start; }
.fo-issue:first-of-type { margin-top: 15px; }
.fo-issue > div { flex: 1; }
.fo-issue b { font-weight: 700; font-size: 12.5px; display: block; }
.fo-issue small { font-size: 11px; font-weight: 700; display: block; margin-top: 2px; }
.fo-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 5px; }
.fo-modal-actions { display: flex; gap: 10px; margin-top: 18px; }
.fo-modal-actions .fo-btn { padding: 13px 18px; }

/* ---------------------------------------------------------------- stopka */

.fo-footer { background: var(--fo-bg-soft); margin-top: 30px; }
.fo-footer-in { padding: 44px 48px; display: grid; grid-template-columns: 1.3fr 1fr .8fr .9fr; gap: 40px; }
.fo-logo-foot .fo-logo-word { font-size: 28px; }
.fo-footer-lines { font-size: 11.5px; color: #555; line-height: 1.95; margin-top: 12px; }
.fo-footer-h { font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.fo-footer-h2 { margin: 18px 0 10px; }
.fo-footer-p { font-size: 12px; color: var(--fo-muted); line-height: 1.85; margin: 0; text-wrap: pretty; }
.fo-footer-links { display: flex; flex-direction: column; gap: 7px; font-size: 12px; color: #444; }
.fo-footer-links a:hover { text-decoration: underline; }
.fo-trust { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; }
.fo-trust-star { width: 14px; height: 14px; background: #00B67A; color: #fff; font-size: 9px; display: inline-flex; align-items: center; justify-content: center; }
.fo-trust b { font-weight: 800; }
.fo-trust-stars { color: #00B67A; font-size: 10px; letter-spacing: 1.5px; }
.fo-social { display: flex; gap: 8px; margin-top: 12px; }
.fo-social a { width: 26px; height: 26px; border-radius: 50%; background: var(--fo-ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 8.5px; font-weight: 800; }
.fo-copy { padding: 16px; text-align: center; font-size: 11px; color: #555; border-top: 1px solid #e8e8e8; }

/* ---------------------------------------------------------------- w motywie */

.fo-in-theme .fo-tabs, .fo-in-theme .fo-filters, .fo-in-theme .fo-toolbar, .fo-in-theme .fo-flash, .fo-in-theme .fo-strip, .fo-in-theme .fo-onboard, .fo-in-theme .fo-results-wrap, .fo-in-theme .fo-wall { margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
.fo-in-theme .fo-carousel { padding-left: 14px; padding-right: 14px; border-radius: 10px; }
.fo-in-theme .fo-cartbar-slot { padding-left: 0; padding-right: 0; }
.fo-in-theme .fo-main-orders { padding-left: 0; padding-right: 0; }
.fo-in-theme .fo-acctnav-in { padding: 0; }

/* ---------------------------------------------------------------- responsywność */

@media (max-width: 1280px) {
	.fo-thead, .fo-row { grid-template-columns: 80px minmax(0, 1fr) 150px 150px 150px 230px; gap: 14px; }
	.fo-grid { grid-template-columns: repeat(3, 1fr); }
	.fo-othead, .fo-orow { grid-template-columns: 120px 100px 80px 120px 120px 160px minmax(260px, 1fr); }
	.fo-tile { flex-basis: calc((100% - 5 * 12px) / 6); }
}

@media (max-width: 1024px) {
	.fo-thead { display: none; }
	.fo-row { grid-template-columns: 72px minmax(0, 1fr) 150px 210px; grid-template-areas: "thumb info stock qty" "thumb info price actions"; row-gap: 10px; }
	.fo-row .fo-thumb { grid-area: thumb; width: 72px; height: 72px; }
	.fo-row .fo-info { grid-area: info; }
	.fo-row .fo-stock { grid-area: stock; }
	.fo-row .fo-price { grid-area: price; }
	.fo-row .fo-qty { grid-area: qty; }
	.fo-row .fo-actions { grid-area: actions; }
	.fo-grid { grid-template-columns: repeat(2, 1fr); }
	.fo-footer-in { grid-template-columns: 1fr 1fr; gap: 28px; padding: 36px 28px; }
	.fo-othead { display: none; }
	.fo-orow { grid-template-columns: 1fr 1fr 1fr; grid-template-areas: "nr date status" "net gross status" "actions actions actions"; }
	.fo-onr { grid-area: nr; } .fo-odate { grid-area: date; } .fo-opos { display: none; } .fo-onet { grid-area: net; } .fo-ogross { grid-area: gross; } .fo-ostatus { grid-area: status; justify-self: end; text-align: right; } .fo-oactions { grid-area: actions; justify-content: flex-start; }
	.fo-detail-grid { grid-template-columns: 1fr; }
	.fo-tile { flex-basis: calc((100% - 3 * 12px) / 4); }
}

@media (max-width: 760px) {
	.fo { font-size: 12.5px; }
	.fo-topbar-in { padding: 9px 16px; font-size: 10px; }
	.fo-topbar-contact a:nth-child(2), .fo-topbar-account a:not(.fo-topbar-logout), .fo-topbar-sep { display: none; }
	.fo-topbar-company { font-weight: 600; }
	.fo-header-in { padding: 13px 16px; gap: 10px; }
	.fo-logo-word { font-size: 21px; }
	.fo-logo svg { width: 30px; height: 30px; }
	.fo .fo-logo-img { height: 42px; }
	.fo-header-in .fo-btn-pill { display: none; }
	.fo-hsearch { height: 40px; padding: 0 12px; }
	.fo-hcart { padding: 0 12px; height: 40px; gap: 10px; }
	.fo-hcart-sum { display: none; }
	.fo-acctnav-in { padding: 0 16px; overflow-x: auto; }
	.fo-acctnav-back { white-space: nowrap; }
	.fo-tabs { padding: 13px 16px 4px; gap: 7px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
	.fo-tabs::-webkit-scrollbar { display: none; }
	.fo-tab { padding: 8px 13px; font-size: 9.5px; letter-spacing: .06em; flex: none; }
	.fo-filters { padding: 8px 16px 0; gap: 8px; }
	.fo-select { width: calc(50% - 4px); }
	.fo-select select, .fo-dd-btn { height: 40px; font-size: 12px; }
	.fo-dd { width: calc(100vw - 32px); }
	.fo-search { height: 40px; min-width: 100%; background: #f4f4f4; border-color: transparent; }
	.fo-toolbar { padding: 12px 16px 4px; }
	.fo-toolbar-right { gap: 8px; }
	.fo-seg-btn { padding: 9px 12px; }
	.fo-views { display: none; }
	.fo-carousel { padding: 12px 16px; gap: 8px; }
	.fo-car-btn { display: none; }
	.fo-tile { flex: 0 0 104px; min-width: 104px; padding: 10px 6px; }
	.fo-tile img { width: 32px; height: 32px; }
	.fo-tile span { font-size: 10.5px; }
	.fo-strip, .fo-onboard, .fo-flash { margin: 12px 16px 0; }
	.fo-results-wrap { margin: 12px 0 0; }
	.fo-table { border-left: none; border-right: none; border-radius: 0; }
	.fo-row { display: flex; flex-wrap: wrap; gap: 8px 12px; padding: 13px 16px; align-items: center; }
	.fo-row .fo-thumb { order: 1; width: 56px; height: 56px; flex: none; align-self: flex-start; }
	.fo-row .fo-info { order: 2; flex: 1; min-width: 0; align-self: flex-start; }
	.fo-row .fo-name { font-size: 12.5px; }
	.fo-row .fo-sku { font-size: 9.5px; }
	.fo-row .fo-brand { display: none; }
	.fo-row .fo-badges { margin-top: 5px; }
	.fo-row .fo-stock, .fo-row .fo-price, .fo-row .fo-variants, .fo-row .fo-incart { width: 100%; padding-left: 68px; }
	.fo-row .fo-stock { order: 3; display: flex; align-items: center; gap: 7px; margin-top: -2px; }
	.fo-row .fo-stock .fo-pill { padding: 3px 7px; font-size: 8px; }
	.fo-row .fo-stock .fo-note { margin: 0; font-size: 10px; }
	.fo-row .fo-price { order: 4; }
	.fo-row .fo-price-main { font-size: 13.5px; }
	.fo-row .fo-price-alt { display: none; }
	.fo-row .fo-actions { display: contents; }
	.fo-row .fo-variants { order: 5; }
	.fo-row .fo-var-label { display: none; }
	.fo-row .fo-chip span { height: 23px; padding: 0 8px; font-size: 9px; }
	.fo-row .fo-qty { order: 6; width: auto; flex: none; padding-left: 68px; }
	.fo-row .fo-stepper-wrap { gap: 4px; }
	.fo-row .fo-stepper { height: 34px; }
	.fo-row .fo-step { width: 30px; font-size: 14px; }
	.fo-row .fo-qty-input { width: 36px; font-size: 12px; }
	.fo-row .fo-btn-add { order: 7; flex: 1; width: auto; height: 34px; padding: 0 8px; font-size: 9px; letter-spacing: .07em; align-self: flex-start; }
	.fo-row .fo-incart { order: 8; font-size: 10.5px; }
	.fo-row .fo-over { width: 100%; font-size: 10px; }
	.fo-row .fo-carton { font-size: 9px; }
	.fo-grid { grid-template-columns: 1fr 1fr; gap: 10px; padding: 0 16px; }
	.fo-card-img { height: 150px; padding: 10px; }
	.fo-card-body { padding: 12px 12px 14px; }
	.fo-pager { padding: 0 16px; }
	.fo-cartbar-slot { padding: 0; }
	.fo-cartbar { max-width: none; border-radius: 0; border-left: none; border-right: none; border-bottom: none; flex-direction: column; box-shadow: 0 -10px 30px rgba(0, 0, 0, .12); }
	.fo-cartbar-main { padding: 12px 16px; }
	.fo-cartbar-line { gap: 10px; }
	.fo-cartbar-net { font-size: 14px; }
	.fo-cartbar-gross { display: none; }
	.fo-min { margin-top: 8px; }
	.fo-cartbar-cta { padding: 14px 18px; flex-direction: row; gap: 10px; }
	.fo-cartbar-cta small { display: none; }
	.fo-main-orders { padding: 20px 16px 40px; }
	.fo-orders-bar .fo-tabs { flex-wrap: nowrap; overflow-x: auto; padding: 0; }
	.fo-orders-bar .fo-search-sm { width: 100%; margin-left: 0; }
	.fo-otable { border-left: none; border-right: none; border-radius: 0; margin-left: -16px; margin-right: -16px; }
	.fo-orow { grid-template-columns: 1fr 1fr; grid-template-areas: "nr status" "date status" "net gross" "actions actions"; padding: 13px 16px; row-gap: 6px; }
	.fo-timeline { flex-wrap: wrap; row-gap: 14px; }
	.fo-tl { flex: 1 0 50%; }
	.fo-tl + .fo-tl::before { display: none; }
	.fo-dihead { display: none; }
	.fo-dirow { grid-template-columns: 1fr auto; grid-template-areas: "name total" "meta meta"; }
	.fo-dirow > div:first-child { grid-area: name; }
	.fo-dirow .fo-diq { grid-area: meta; }
	.fo-dirow .fo-diq::after { content: ""; }
	.fo-dirow > div:nth-child(3) { grid-area: meta; padding-left: 40px; font-size: 11px; color: var(--fo-faint); }
	.fo-dirow > div:last-child { grid-area: total; }
	.fo-dtotals-box { width: 100%; }
	.fo-footer-in { grid-template-columns: 1fr; gap: 22px; padding: 28px 16px; }
	.fo-modal-actions { flex-direction: column; }
}

/* ======================================================================
   FlowProduct — karta produktu w skórce panelu
   ====================================================================== */
.fo-app .fo-pd { padding: 18px 28px 40px; }
/* Rama ma 1600 px (nagłówek/stopka); treść karty trzymamy w 1220 px jak checkout — galeria nie urasta do pół ekranu. */
.fo-pd-crumbs, .fo-pd-top, .fo-pd-sections, .fo-pd-related { max-width: 1220px; margin-left: auto; margin-right: auto; }
.fo-pd-crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 12px; color: #555; margin-bottom: 22px; }
.fo-pd-crumbs a { font-weight: 600; }
.fo-pd-crumbs a:hover { text-decoration: underline; }
.fo-pd-sep { color: var(--fo-dim); }
.fo-pd-crumb-current { color: var(--fo-dim); max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.fo-pd-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.fo-pd-gallery { position: sticky; top: 16px; }
.fo-pd-main { position: relative; border: 1px solid var(--fo-line); border-radius: 12px; background: #fff; aspect-ratio: 1 / 1; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.fo-pd-zoom { border: 0; background: none; padding: 24px; width: 100%; height: 100%; cursor: zoom-in; display: flex; align-items: center; justify-content: center; }
.fo-pd-zoom img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fo-pd-main .fo-noimg { width: 60%; height: 60%; }
.fo-pd-badges { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.fo-pd-badges .fo-badge { padding: 4px 8px; }
.fo-pd-thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.fo-pd-thumb { width: 64px; height: 64px; border: 1px solid var(--fo-line); border-radius: 8px; background: #fff; padding: 5px; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.fo-pd-thumb img { max-width: 100%; max-height: 100%; object-fit: contain; }
.fo-pd-thumb.is-active { border-color: var(--fo-ink); box-shadow: inset 0 0 0 1px var(--fo-ink); }

.fo-pd-brand { font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--fo-muted); }
.fo-pd-title { font-weight: 800; font-size: 26px; line-height: 1.2; margin: 6px 0 10px; }
.fo-pd-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12px; color: var(--fo-muted); }
.fo-pd-meta b { font-weight: 700; color: var(--fo-text); }
.fo-pd-meta a { font-weight: 700; color: var(--fo-ink); }
.fo-pd-meta a:hover { text-decoration: underline; }
.fo-pd-badges-inline { margin-top: 12px; }
.fo-pd-short { font-size: 13px; line-height: 1.65; color: var(--fo-text); margin-top: 14px; }
.fo-pd-specs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; margin: 16px 0 0; padding: 14px 0; border-top: 1px solid var(--fo-line); border-bottom: 1px solid var(--fo-line); }
.fo-pd-specs div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fo-pd-specs dt { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--fo-dim); }
.fo-pd-specs dd { margin: 0; font-size: 12.5px; font-weight: 600; overflow-wrap: anywhere; }

/* blok kupna = formularz wiersza listy, pionowo */
.fo-buy { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--fo-line); border-radius: 12px; background: var(--fo-bg-soft); display: flex; flex-direction: column; gap: 12px; }
.fo-buy .fo-price-main { font-size: 24px; font-weight: 800; }
.fo-buy .fo-price-suf { font-size: 12px; color: var(--fo-muted); }
.fo-buy .fo-price-alt { font-size: 12px; color: var(--fo-muted); margin-top: 2px; }
.fo-buy .fo-price-disc { font-size: 12px; margin-top: 2px; }
.fo-buy-stock { display: flex; align-items: center; gap: 10px; font-size: 12px; }
.fo-buy .fo-variants { margin-top: 2px; }
.fo-buy-row { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; }
.fo-buy .fo-stepper-wrap { gap: 4px; }
.fo-buy .fo-btn-add { padding: 15px 14px; font-size: 11px; }
.fo-buy .fo-incart { padding-top: 4px; }
.fo-buy.is-out .fo-buy-row { grid-template-columns: 1fr; }

/* gość / konto w akceptacji */
.fo-pd-wall { margin-top: 18px; padding: 20px 22px; border: 1px solid var(--fo-line); border-radius: 12px; background: var(--fo-bg-soft); }
.fo-pd-wall-title { font-weight: 800; font-size: 16px; }
.fo-pd-wall-text { font-size: 12.5px; color: var(--fo-muted); line-height: 1.65; margin-top: 6px; }
.fo-pd-wall-login { font-size: 12.5px; margin-top: 10px; font-weight: 600; }
.fo-pd-wall-login a { text-decoration: underline; }
.fo-pd-register { margin-top: 16px; }
.fo-pd-register .flowreg { margin: 0; max-width: none; }
.fo-pd-wall .fo-wall-actions { margin-top: 14px; }

/* sekcje pod spodem */
.fo-pd-sections { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 40px; margin-top: 44px; align-items: start; }
.fo-pd-sections.is-single { grid-template-columns: minmax(0, 860px); }
.fo-pd-section-specs { position: sticky; top: 16px; }
.fo-pd-h2 { font-weight: 800; font-size: 17px; margin: 0 0 12px; }
.fo-pd-desc { font-size: 13.5px; line-height: 1.75; color: var(--fo-text); overflow-wrap: anywhere; }
.fo-pd-desc p { margin: 0 0 12px; }
.fo-pd-desc h2, .fo-pd-desc h3, .fo-pd-desc h4 { font-size: 14.5px; font-weight: 800; margin: 20px 0 8px; line-height: 1.3; }
.fo-pd-desc ul, .fo-pd-desc ol { margin: 0 0 12px 20px; padding: 0; }
.fo-pd-desc li { margin: 0 0 4px; }
.fo-pd-desc img { max-width: 100%; height: auto; border-radius: 8px; }
.fo-pd-desc table { width: 100%; border-collapse: collapse; font-size: 12.5px; display: block; overflow-x: auto; }
.fo-pd-desc td, .fo-pd-desc th { border: 1px solid var(--fo-line); padding: 6px 8px; text-align: left; }
.fo-pd-desc a { text-decoration: underline; }
.fo-pd-attrs { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.fo-pd-attrs th { text-align: left; font-weight: 700; color: var(--fo-muted); padding: 9px 10px 9px 0; border-bottom: 1px solid var(--fo-line); width: 42%; vertical-align: top; }
.fo-pd-attrs td { padding: 9px 0; border-bottom: 1px solid var(--fo-line); font-weight: 600; overflow-wrap: anywhere; }

/* z tej samej kategorii */
.fo-pd-related { margin-top: 48px; }
.fo-pd-related-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.fo-pd-related-head .fo-pd-h2 { margin: 0; }
.fo-pd-related-all { font-weight: 800; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.fo-pd-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.fo-pd-tile { border: 1px solid var(--fo-line); border-radius: 12px; background: #fff; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.fo-pd-tile:hover { border-color: var(--fo-ink); }
.fo-pd-tile-img { height: 150px; display: flex; align-items: center; justify-content: center; }
.fo-pd-tile-img img { max-height: 100%; max-width: 100%; object-fit: contain; }
.fo-pd-tile-name { font-weight: 700; font-size: 13px; line-height: 1.3; }

/* lightbox */
.fo-pd-lightbox { position: fixed; inset: 0; z-index: 10000; background: rgba(17,17,17,.92); display: flex; align-items: center; justify-content: center; padding: 40px; cursor: zoom-out; }
.fo-pd-lightbox[hidden] { display: none; }
.fo-pd-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; background: #fff; border-radius: 8px; }
.fo-pd-lightbox-close { position: absolute; top: 16px; right: 20px; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #fff; color: #111; font-size: 24px; line-height: 1; cursor: pointer; font-family: inherit; }

@media (max-width: 1024px) {
	.fo-pd-top { gap: 28px; }
	.fo-pd-sections { grid-template-columns: 1fr; gap: 28px; }
	.fo-pd-section-specs { position: static; }
	.fo-pd-tiles { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 760px) {
	.fo-pd { padding: 12px 14px 32px; }
	.fo-pd-top { grid-template-columns: 1fr; gap: 20px; }
	.fo-pd-gallery { position: static; }
	.fo-pd-title { font-size: 21px; }
	.fo-pd-specs { grid-template-columns: 1fr; }
	.fo-buy-row { grid-template-columns: 1fr; }
	.fo-pd-tiles { grid-template-columns: repeat(2, 1fr); gap: 10px; }
	.fo-pd-tile-img { height: 110px; }
	.fo-pd-crumb-current { max-width: 200px; }
	.fo-pd-lightbox { padding: 16px; }
}
/* Opisy z edytora niosą własne fonty/rozmiary w atrybutach style — karta ma jedną typografię. */
.fo-pd-desc *, .fo-pd-short * { font-family: inherit !important; font-size: inherit !important; line-height: inherit !important; color: inherit !important; background: transparent !important; }
.fo-buy-sku { margin-top: -6px; }
.fo-buy-sku:empty { display: none; }

/* ---- oszczędność progu (Michał 23.08: klient ma widzieć, że plan mu się opłaca) */
.fo-tier-save { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; margin-top: 3px; font-size: 10.5px; line-height: 1.2; }
.fo-tier-save s { color: var(--fo-faint); font-weight: 600; }
.fo-tier-save b { background: #e9f9f0; color: var(--fo-green-dark); border-radius: 5px; padding: 2px 7px; font-weight: 800; letter-spacing: .03em; white-space: nowrap; }
.fo-cartbar-save { color: var(--fo-green-dark); font-weight: 700; font-size: 11.5px; white-space: nowrap; }
