/* Nagłówek, mega menu, lista Blog, wyszukiwarka, szuflada mobilna, stopka, toast. */

/* Pasek USP nad nagłówkiem (tylko karta produktu). */
.fm-usp { background: #1e1e1c; color: #fff; font-family: var(--mono); font-size: 12px; letter-spacing: 0.04em; padding: 9px var(--gut); display: flex; flex-wrap: wrap; gap: 8px 28px; justify-content: center; text-transform: uppercase; line-height: 1.5; }
.fm-usp__sep { opacity: 0.45; }

/* ---------------------------------------------------------------- Nagłówek */
.fm-header { position: sticky; top: 0; z-index: 40; background: rgba(244, 243, 238, 0.86); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); border-bottom: 1px solid rgba(20, 20, 18, 0.08); }
.admin-bar .fm-header { top: 32px; }
.fm-header__in { max-width: var(--max); margin: 0 auto; padding: 16px var(--gut); display: flex; align-items: center; gap: 32px; row-gap: 12px; position: relative; flex-wrap: wrap; }

.fm-logo { flex: none; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.fm-theme a.fm-logo:hover { color: var(--ink); }
.fm-logo__mark { width: 40px; height: 40px; display: block; object-fit: contain; }
.fm-logo__txt { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; line-height: normal; }

.fm-header__m { display: none; }

.fm-nav { display: flex; flex-wrap: nowrap; gap: 4px 24px; flex: 1 1 auto; min-width: 0; align-items: center; white-space: nowrap; }
.fm-nav__a { padding: 6px 0; font-size: 14px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; line-height: normal; transition: color 200ms ease; }
.fm-theme .fm-nav__a.is-hot { color: var(--red); }
.fm-theme .fm-nav__a:hover, .fm-theme .fm-nav__mega.is-open, .fm-theme .fm-nav__ddt.is-open { color: var(--red); }
.fm-nav__sign { font-family: var(--mono); font-size: 10px; font-weight: 400; }
.fm-nav__dd { position: relative; display: flex; align-items: center; }
.fm-dd { position: absolute; top: 100%; left: -16px; margin-top: 10px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 40px rgba(20, 20, 18, 0.14); padding: 8px; min-width: 240px; display: flex; flex-direction: column; gap: 2px; z-index: 46; }
.fm-dd::before { content: ""; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }
.fm-dd__a { border-radius: 10px; padding: 11px 14px; font-size: 14px; font-weight: 700; color: var(--ink); white-space: nowrap; line-height: normal; }
.fm-theme .fm-dd__a:hover { background: var(--paper); color: var(--ink); }

/* Mega menu */
.fm-mega { position: absolute; left: 0; right: 0; top: 100%; margin-top: -1px; background: var(--ink); color: #fff; box-shadow: 0 30px 60px rgba(20, 20, 18, 0.28); z-index: 45; white-space: normal; }
.fm-mega__in { max-width: var(--max); margin: 0 auto; padding: 28px var(--gut) 32px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 300px); gap: 32px; align-items: stretch; }
.fm-mega__cats { display: flex; flex-direction: column; gap: 14px; }
.fm-mega__label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-2); }
.fm-mega__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.fm-mtile { background: var(--tile-dark); border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 1 / 1; display: block; }
.fm-mtile.is-hot { background: var(--red); }
.fm-mtile:hover { outline: 2px solid var(--sage); }
.fm-mtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-mtile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 18, 0) 40%, rgba(20, 20, 18, 0.85) 100%); }
.fm-mtile__name { position: absolute; left: 12px; right: 12px; bottom: 12px; font-size: 14px; font-weight: 700; line-height: 1.2; color: #fff; text-wrap: pretty; }
.fm-mega__start { background: var(--sage); color: var(--ink); border-radius: 16px; padding: 22px; display: flex; flex-direction: column; gap: 10px; }
.fm-mega__sk { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--sage-ink); }
.fm-mega__st { font-size: 17px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.15; }
.fm-mega__sp { font-family: var(--mono); font-size: 14px; font-weight: 700; }
.fm-mega__start img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; display: block; margin-top: 4px; }
.fm-mega__sb { margin-top: auto; background: var(--ink); color: #fff; border-radius: 100px; padding: 12px 18px; font-size: 13px; font-weight: 700; width: fit-content; line-height: normal; }
.fm-theme .fm-mega__sb, .fm-theme .fm-mega__sb:hover { color: #fff; }

/* Narzędzia: wyszukiwarka, konto, ulubione, koszyk */
.fm-tools { display: flex; align-items: center; gap: 10px; flex: 1 1 560px; min-width: 0; position: relative; margin-left: auto; justify-content: flex-end; }
.fm-search { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; height: 44px; flex: 0 1 340px; min-width: 220px; margin: 0; }
.fm-search.is-open { border-color: var(--ink); }
.fm-search__cat { border: none; border-right: 1px solid var(--line); background: var(--paper); padding: 0 12px; font-size: 13px; font-weight: 700; color: var(--ink); outline: none; cursor: pointer; max-width: 120px; flex: none; border-radius: 0; height: auto; appearance: auto; }
.fm-search__f { display: flex; align-items: center; gap: 8px; padding: 0 14px; flex: 1 1 auto; min-width: 0; margin: 0; }
.fm-search__ico { width: 12px; height: 12px; border: 2px solid var(--muted-2); border-radius: 50%; flex: none; }
.fm-search__f input { border: none; background: transparent; outline: none; font-size: 14px; width: 100%; min-width: 0; color: var(--ink); padding: 0; height: auto; box-shadow: none; }
.fm-search__f input::-webkit-search-cancel-button { display: none; }

.fm-hpill { flex: none; display: flex; align-items: center; border-radius: 100px; height: 44px; line-height: normal; transition: border-color 200ms ease, background 200ms ease; }
.fm-hpill--acc { border: 1px solid var(--line); background: #fff; padding: 0 16px; font-size: 13px; font-weight: 700; gap: 8px; color: var(--ink); }
.fm-hpill--acc:hover { border-color: var(--ink); }
.fm-theme .fm-hpill--acc:hover { color: var(--ink); }
.fm-hpill__av { width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 10px; }
.fm-hpill__lbl { white-space: nowrap; }
.fm-hpill--fav { border: 1px solid var(--line); background: #fff; padding: 0 16px; font-family: var(--mono); font-size: 13px; font-weight: 700; gap: 10px; color: var(--ink); }
.fm-hpill--fav:hover { border-color: var(--ink); }
.fm-theme .fm-hpill--fav:hover { color: var(--ink); }
.fm-hpill--fav.is-on { border-color: var(--red); }
.fm-hpill__heart { font-family: var(--font); font-size: 18px; line-height: 1; color: var(--muted-2); }
.fm-hpill--fav.is-on .fm-hpill__heart { color: var(--red); }
.fm-hpill--cart { border: none; background: var(--ink); color: #fff; padding: 0 20px; font-size: 14px; font-weight: 700; gap: 10px; }
.fm-theme .fm-hpill--cart, .fm-theme .fm-hpill--cart:hover { color: #fff; }
.fm-hpill--cart:hover { background: var(--red); }
.fm-hpill__n { background: var(--sage); color: var(--ink); border-radius: 100px; min-width: 20px; height: 20px; padding: 0 5px; display: inline-flex; align-items: center; justify-content: center; font-family: var(--mono); font-size: 11px; font-weight: 700; }

/* Podpowiedzi wyszukiwarki */
.fm-sdrop { position: absolute; top: 54px; right: 0; width: 400px; max-width: 82vw; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 50px rgba(20, 20, 18, 0.18); padding: 10px; z-index: 50; display: flex; flex-direction: column; gap: 2px; }
.fm-sdrop__label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; color: var(--muted-2); padding: 8px 10px 6px; }
.fm-sdrop__hints { display: flex; gap: 6px; flex-wrap: wrap; padding: 2px 10px 8px; }
.fm-sdrop__hint { cursor: pointer; border: 1px solid var(--line); background: var(--paper); border-radius: 100px; padding: 7px 12px; font-size: 12px; font-weight: 700; line-height: normal; }
.fm-sdrop__hint:hover { border-color: var(--ink); }
.fm-sdrop__list { display: flex; flex-direction: column; gap: 2px; }
.fm-sres { border-radius: 10px; padding: 9px 10px; display: flex; gap: 12px; align-items: center; color: var(--ink); }
.fm-theme .fm-sres:hover { background: var(--paper); color: var(--ink); }
.fm-sres img { width: 42px; height: 42px; object-fit: contain; flex: none; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.fm-sres__c { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1 1 auto; }
.fm-sres__n { font-size: 14px; font-weight: 700; line-height: 1.25; }
.fm-sres__k { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.fm-sres__p { font-family: var(--mono); font-size: 13px; font-weight: 700; flex: none; }
.fm-sdrop__all { font-size: 13px; font-weight: 700; padding: 10px; text-decoration: underline; }
.fm-sdrop__close { cursor: pointer; margin-top: 6px; border: none; border-top: 1px solid var(--line); background: transparent; padding: 12px 10px 8px; font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-align: left; color: var(--muted); }

/* ---------------------------------------------------------------- Szuflada mobilna */
.fm-drawer { position: fixed; inset: 0; z-index: 60; background: var(--paper); display: flex; flex-direction: column; overflow: auto; }
.fm-drawer__top { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper); z-index: 1; }
.fm-drawer__top .fm-logo__mark { width: 36px; height: 36px; }
.fm-drawer__x { cursor: pointer; border: 1px solid var(--line); background: #fff; border-radius: 100px; width: 44px; height: 44px; font-size: 18px; flex: none; }
.fm-drawer__body { padding: 16px 20px; display: flex; flex-direction: column; gap: 6px; }
.fm-drawer__search { display: flex; align-items: stretch; background: #fff; border: 1px solid var(--line); border-radius: 100px; overflow: hidden; height: 46px; margin: 0 0 10px; }
.fm-drawer__search input { flex: 1 1 auto; min-width: 0; border: none; outline: none; padding: 0 18px; font-size: 15px; background: transparent; }
.fm-drawer__row { cursor: pointer; border: none; background: transparent; padding: 14px 0; display: flex; justify-content: space-between; align-items: center; text-align: left; font-family: var(--font); font-size: 20px; font-weight: 700; color: var(--ink); border-bottom: 1px solid var(--line); width: 100%; line-height: normal; }
.fm-theme .fm-drawer__row.is-hot { color: var(--red); }
.fm-drawer__sign { font-family: var(--mono); font-size: 14px; }
.fm-drawer__arr { font-family: var(--mono); font-size: 14px; color: var(--muted-2); }
.fm-drawer__tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 8px 0 14px; }
.fm-dtile { background: var(--tile-dark); border-radius: 12px; overflow: hidden; position: relative; aspect-ratio: 3 / 2; display: block; }
.fm-dtile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.fm-dtile__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(20, 20, 18, 0) 35%, rgba(20, 20, 18, 0.85) 100%); }
.fm-dtile__name { position: absolute; left: 12px; right: 12px; bottom: 10px; font-size: 14px; font-weight: 700; line-height: 1.2; color: #fff; }
.fm-drawer__sub { display: flex; flex-direction: column; padding: 4px 0 10px 16px; }
.fm-drawer__sub a { padding: 11px 0; font-size: 16px; font-weight: 500; color: var(--body); }
.fm-drawer__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 20px; }
.fm-drawer__btn { border: 1px solid var(--ink); background: #fff; border-radius: 100px; height: 50px; font-size: 15px; font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); }
.fm-drawer__heart { color: var(--muted-2); }
.fm-drawer__heart.is-on { color: var(--red); }
body.fm-drawer-open { overflow: hidden; }

/* ---------------------------------------------------------------- Stopka */
.fm-footer { margin-top: 96px; background: var(--ink); color: #fff; overflow: hidden; }
.fm-footer__cols { max-width: var(--max); margin: 0 auto; padding: 64px var(--gut) 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, max(180px, (100% - 96px) / 4)), 1fr)); gap: 32px; }
.fm-footer__brand { display: flex; flex-direction: column; gap: 12px; }
.fm-logo--foot { width: fit-content; }
.fm-logo--foot .fm-logo__mark { width: 44px; height: 44px; }
.fm-logo--foot .fm-logo__txt { font-size: 22px; color: #fff; }
.fm-footer__desc { font-size: 13px; line-height: 1.6; color: var(--muted-2); max-width: 28ch; }
.fm-footer__social { display: flex; gap: 8px; padding-top: 4px; }
.fm-footer__social a { color: #fff; border: 1px solid rgba(255, 255, 255, 0.25); border-radius: 50%; width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; transition: background 200ms ease, color 200ms ease; }
.fm-theme .fm-footer__social a:hover { background: #fff; color: var(--ink); }
.fm-footer__col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.fm-footer__h { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; color: var(--muted-2); }
.fm-footer__col a { color: #fff; font-size: 14px; line-height: normal; }
.fm-theme .fm-footer__col a:hover { color: var(--sage); }
.fm-footer__bar { max-width: var(--max); margin: 40px auto 0; padding: 40px var(--gut) 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.12); }
.fm-footer__bl, .fm-footer__br { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.fm-footer__word { font-size: 28px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; color: #fff; }
.fm-footer__copy, .fm-footer__made { font-family: var(--mono); font-size: 11px; color: var(--muted-2); letter-spacing: 0.06em; }
.fm-footer__kpo { background: #fff; border-radius: 8px; padding: 6px 10px; display: block; }
.fm-footer__kpo:hover { outline: 2px solid var(--sage); }
.fm-footer__kpo img { display: block; width: 260px; max-width: 100%; height: auto; }
.fm-footer__made a { color: #fff; border-bottom: 1px solid rgba(255, 255, 255, 0.4); }
.fm-theme .fm-footer__made a:hover { color: var(--sage); }

/* ---------------------------------------------------------------- Toast */
.fm-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 20px; font-size: 14px; font-weight: 700; box-shadow: 0 20px 40px rgba(20, 20, 18, 0.25); max-width: calc(100vw - 32px); }
.fm-pdp-page .fm-toast { bottom: 100px; }
