/* FrontyPAX – wygląd sklepu (0.9)
   Ładowany po style.css i frontypax-brand.css. Kolory z logo: czerń, dąb, len. */

:root {
  --fx-ink: #1b1a17;
  --fx-ink-2: #55524b;
  --fx-mute: #8a857a;
  --fx-line: #ddd6c8;
  --fx-paper: #ffffff;
  --fx-linen: #f5f2ec;
  --fx-oak: #e6d2a2;
  --fx-oak-deep: #9c7a3c;
  --fx-radius: 14px;
}

/* ---------- Typografia ---------- */
body, button, input, select, textarea, .button {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif !important;
  font-feature-settings: 'cv11', 'ss01';
}
body { background: var(--fx-linen) !important; color: var(--fx-ink); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
html, .site, .site-content, .content-area, #primary, .site-main, .woocommerce, .woocommerce-page { background: transparent !important; }
h1, h2, h3, h4, .entry-title, .product_title, .woocommerce-loop-product__title { color: var(--fx-ink) !important; font-weight: 650 !important; letter-spacing: -0.02em !important; }
h1, .entry-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.08; }
h2 { font-size: clamp(24px, 2.6vw, 34px); line-height: 1.15; }
h3 { font-size: 20px; line-height: 1.25; }
p { color: var(--fx-ink-2); }
a { color: var(--fx-ink); text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--fx-ink); outline-offset: 2px; }

/* ---------- Wspólna szerokość: nagłówek, treść i stopka w jednej linii ---------- */
.col-full { max-width: 1240px !important; padding-left: 28px !important; padding-right: 28px !important; box-sizing: border-box !important; margin-left: auto !important; margin-right: auto !important; }
@media (max-width: 767px) { .col-full { padding-left: 18px !important; padding-right: 18px !important; } }

/* ---------- Pasek informacyjny ---------- */
.fpx-topbar { background: var(--fx-ink); color: #eae4d6; font-size: 13px; }
.fpx-topbar .col-full { display: flex; justify-content: center; gap: 28px; flex-wrap: wrap; padding-top: 8px; padding-bottom: 8px; }
.fpx-topbar span { white-space: nowrap; }

/* ---------- Nagłówek (siatka: logo | menu | telefon | koszyk) ---------- */
.site-header { position: relative; z-index: 500; transition: box-shadow .25s ease; background: var(--fx-paper) !important; border-bottom: 1px solid var(--fx-line) !important; padding: 0 !important; margin-bottom: 0 !important; }
.site-header > .col-full::before, .site-header > .col-full::after { content: none !important; display: none !important; }
.site-header > .col-full { display: grid !important; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; column-gap: 28px; min-height: 100px; transition: min-height .25s ease; }
.site-header .skip-link { position: absolute !important; }
.site-header .site-branding { grid-column: 1; grid-row: 1; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; }
.site-header .custom-logo-link { display: block; line-height: 0; }
.site-header .site-branding img, .site-header .custom-logo { display: block; height: 58px !important; transition: height .25s ease; width: auto !important; max-width: none !important; max-height: none !important; }
.site-header .site-title a { font-weight: 700; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.site-header .main-navigation { grid-column: 2; grid-row: 1; justify-self: center; float: none !important; width: auto !important; margin: 0 !important; clear: none !important; }
.site-header .main-navigation ul.menu > li > a { font-size: 15px; font-weight: 550 !important; color: var(--fx-ink) !important; padding: 39px 14px 37px !important; transition: padding .25s ease; }
.site-header .main-navigation .primary-navigation ul.menu { display: flex !important; flex-wrap: nowrap; white-space: nowrap; margin: 0 !important; }
.site-header .main-navigation ul.menu > li.current-menu-item > a { box-shadow: inset 0 -2px 0 var(--fx-oak-deep); }
.fpx-header-phone { grid-column: 3; grid-row: 1; display: flex; flex-direction: column; text-align: right; font-weight: 700; font-size: 16px; color: var(--fx-ink) !important; text-decoration: none !important; line-height: 1.2; white-space: nowrap; }
.fpx-header-phone span { font-size: 12px; font-weight: 400; color: var(--fx-ink-2); }
.site-header .site-header-cart { grid-column: 4; grid-row: 1; position: relative; float: none !important; width: auto !important; margin: 0 !important; padding: 0 !important; list-style: none !important; }
.site-header .site-header-cart > li { margin: 0 !important; list-style: none !important; }
.site-header .site-header-cart .cart-contents { display: inline-flex !important; align-items: center; gap: 8px; padding: 10px 16px !important; border: 1px solid var(--fx-line); border-radius: 999px; font-size: 14px; font-weight: 650; color: var(--fx-ink) !important; white-space: nowrap; }
.site-header .site-header-cart .cart-contents::after { order: -1; float: none !important; margin: 0 !important; position: static !important; line-height: 1 !important; }
.site-header .site-header-cart .cart-contents .count { opacity: 1 !important; color: var(--fx-ink-2); font-weight: 400; font-size: 13px; }

@media (max-width: 1240px) and (min-width: 768px) {
  .site-header > .col-full { column-gap: 18px; }
  .site-header .site-branding img, .site-header .custom-logo { height: 46px !important; }
  .site-header .main-navigation ul.menu > li > a { padding-left: 10px !important; padding-right: 10px !important; font-size: 14.5px; }
}
@media (max-width: 1080px) and (min-width: 768px) {
  .fpx-header-phone { display: none; }
  .site-header > .col-full { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-header .site-header-cart { grid-column: 3; }
  .site-header .site-header-cart .cart-contents .amount { display: none; }
}

/* Przyklejony nagłówek, który zmniejsza się przy przewijaniu (komputer) */
html, body, #page, .site { overflow-x: clip !important; }
@media (prefers-reduced-motion: reduce) { .site-header, .site-header * { transition: none !important; } }
@media (min-width: 768px) {
  .site-header { position: sticky !important; top: 0; }
  .admin-bar .site-header { top: 32px; }
  body.fpx-scrolled .site-header { box-shadow: 0 6px 20px rgba(27,26,23,.08); }
  body.fpx-scrolled .site-header > .col-full { min-height: 64px; }
  body.fpx-scrolled .site-header .custom-logo, body.fpx-scrolled .site-header .site-branding img { height: 38px !important; }
  body.fpx-scrolled .site-header .main-navigation ul.menu > li > a { padding-top: 21px !important; padding-bottom: 19px !important; }
}

/* Rozwijany mini-koszyk */
.site-header .site-header-cart .widget_shopping_cart {
  position: absolute !important; top: calc(100% + 10px) !important; left: auto !important; right: -999em !important; width: 380px !important; max-width: calc(100vw - 32px);
  background: var(--fx-paper) !important; border: 1px solid var(--fx-line) !important; border-radius: 14px !important; box-shadow: 0 18px 40px rgba(27,26,23,.14) !important;
  padding: 6px 18px 18px !important; z-index: 999 !important; font-size: 14px;
}
.site-header .site-header-cart:hover .widget_shopping_cart, .site-header .site-header-cart.focus .widget_shopping_cart { right: 0 !important; }
.site-header .site-header-cart::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 12px; } /* mostek, żeby okno nie znikało przy zjeżdżaniu myszą */
.widget_shopping_cart .woocommerce-mini-cart { max-height: 50vh; overflow: auto; margin: 0 !important; }
.widget_shopping_cart .mini_cart_item { position: relative; display: block; min-height: 64px; padding: 14px 28px 14px 70px !important; border-bottom: 1px solid var(--fx-line); background: transparent !important; line-height: 1.4; }
.widget_shopping_cart .mini_cart_item .fpxc-cart-thumb, .widget_shopping_cart .mini_cart_item img { position: absolute !important; left: 0; top: 14px; width: 56px !important; height: 56px !important; max-width: none !important; margin: 0 !important; border-radius: 8px; object-fit: cover; float: none !important; }
.widget_shopping_cart .mini_cart_item a { text-decoration: none !important; color: var(--fx-ink) !important; font-weight: 650; }
.widget_shopping_cart .mini_cart_item a.remove { position: absolute !important; right: 0; left: auto !important; top: 14px; width: 22px; height: 22px; line-height: 20px; text-align: center; border-radius: 50%; color: var(--fx-mute) !important; font-weight: 400; }
.widget_shopping_cart .mini_cart_item a.remove:hover { background: #f3efe7; color: var(--fx-ink) !important; }
.widget_shopping_cart .mini_cart_item .fpxc-cfg-line { display: block; font-size: 12.5px; color: var(--fx-ink-2); font-weight: 400; margin: 2px 0; }
.widget_shopping_cart .mini_cart_item .quantity { display: block; font-size: 13px; color: var(--fx-ink-2); margin-top: 2px; }
.widget_shopping_cart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; padding: 14px 0 !important; margin: 0 !important; border: 0 !important; font-size: 15px; }
.widget_shopping_cart .woocommerce-mini-cart__buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 !important; padding: 0 !important; }
.widget_shopping_cart .woocommerce-mini-cart__buttons a.button { margin: 0 !important; min-height: 46px; display: flex !important; align-items: center; justify-content: center; font-size: 14px !important; padding: 0 10px !important; }
.widget_shopping_cart .woocommerce-mini-cart__buttons a.button:not(.checkout) { background: #fff !important; color: var(--fx-ink) !important; border: 1px solid var(--fx-line) !important; }
.widget_shopping_cart .woocommerce-mini-cart__buttons a.button::after { display: none !important; }
.widget_shopping_cart .woocommerce-mini-cart__empty-message { padding: 16px 0 4px; margin: 0; }

/* ---------- Okruszki ---------- */
.storefront-breadcrumb { margin: 0 0 24px !important; padding: 16px 0 !important; background: transparent !important; }
.woocommerce-breadcrumb { font-size: 13px !important; color: var(--fx-mute) !important; }
.woocommerce-breadcrumb a { color: var(--fx-ink-2) !important; text-decoration: none !important; }
.woocommerce-breadcrumb a:hover { text-decoration: underline !important; }
.home .storefront-breadcrumb { display: none; }

/* ---------- Przyciski (poza konfiguratorem) ---------- */
.button, button.button, a.button, .woocommerce a.button, .woocommerce button.button, .wc-block-components-button, input[type="submit"] {
  border-radius: 12px !important; font-weight: 650 !important; letter-spacing: 0 !important;
}
.woocommerce a.button.alt, .woocommerce button.button.alt, #place_order, .checkout-button { min-height: 54px; font-size: 17px !important; }

/* ---------- Listy produktów ---------- */
.woocommerce-products-header { margin-bottom: 20px; }
.woocommerce-products-header__title { margin-bottom: 8px !important; }
.fpx-term-intro { max-width: 760px; }
.fpx-term-intro p { font-size: 16.5px; margin-bottom: 6px; }
.fpx-term-hint { font-size: 14px !important; color: var(--fx-oak-deep) !important; }
.woocommerce ul.products li.product {
  background: var(--fx-paper) !important; border: 1px solid var(--fx-line) !important; border-radius: var(--fx-radius) !important;
  box-shadow: none !important; padding: 0 0 18px !important; overflow: hidden; text-align: left !important; display: flex; flex-direction: column;
}
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { display: block; padding: 10px 10px 0; text-decoration: none !important; }
.woocommerce ul.products li.product a img { margin: 0 0 16px !important; border-radius: 10px !important; aspect-ratio: 4 / 5; object-fit: cover; width: 100%; background: #f3f1ec; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 16px !important; line-height: 1.3; padding: 0 6px !important; min-height: 0; }
.woocommerce ul.products li.product .fpxc-loop-title { font-size: 20px !important; margin: 0 0 2px !important; }
.woocommerce ul.products li.product .fpxc-loop-type, .woocommerce ul.products li.product .fpxc-loop-size, .woocommerce ul.products li.product .fpxc-loop-lead { padding: 0 6px; }
.woocommerce ul.products li.product .price { padding: 0 6px; margin-bottom: 14px !important; color: var(--fx-ink) !important; font-weight: 700; font-size: 18px !important; }
.woocommerce ul.products li.product .button { margin: auto 16px 0 !important; width: calc(100% - 32px) !important; text-align: center; }
.woocommerce ul.products li.product:hover { border-color: var(--fx-ink-2) !important; }
.woocommerce-result-count, .woocommerce-ordering { font-size: 14px; }

/* ---------- Strona główna ---------- */
.fph { padding-bottom: 20px; }
.fph-hero { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 40px; align-items: center; margin: 24px 0 72px; }
.fph-hero h1 { font-size: clamp(36px, 4.6vw, 60px); line-height: 1.02; letter-spacing: -0.035em !important; margin: 0 0 20px; }
.fph-lead { font-size: 18px; line-height: 1.6; max-width: 34em; margin: 0 0 28px; }
.fph-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.fph-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 24px; border-radius: 12px; font-weight: 650; font-size: 16px; text-decoration: none !important; transition: background .15s ease; }
.fph-btn-primary { background: var(--fx-ink); color: #fff !important; }
.fph-btn-primary:hover { background: #000; opacity: 1; }
.fph-btn-ghost { border: 1px solid var(--fx-ink); color: var(--fx-ink) !important; }
.fph-btn-light { background: #fff; color: var(--fx-ink) !important; }
.fph-btn-outline { border: 1px solid rgba(255,255,255,.5); color: #fff !important; }
.fph-facts { list-style: none; margin: 0; padding: 20px 0 0; display: flex; gap: 32px; border-top: 1px solid var(--fx-line); }
.fph-facts li { margin: 0; }
.fph-facts strong { display: block; font-size: 20px; letter-spacing: -0.01em; }
.fph-facts span { font-size: 13px; color: var(--fx-ink-2); }
.fph-hero-media { margin: 0; }
.fph-hero-media img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 18px; }

.fph-section { margin: 0 0 80px; }
.fph-head { max-width: 640px; margin-bottom: 28px; }
.fph-head h2 { margin: 0 0 8px; }
.fph-head p { margin: 0; font-size: 16.5px; }

.fph-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.fph-cat { display: flex; flex-direction: column; background: var(--fx-paper); border: 1px solid var(--fx-line); border-radius: var(--fx-radius); overflow: hidden; text-decoration: none !important; color: var(--fx-ink) !important; transition: border-color .15s ease; }
.fph-cat:hover { border-color: var(--fx-ink); opacity: 1; }
.fph-cat-img { display: block; aspect-ratio: 1 / 1; background: #fff; overflow: hidden; }
.fph-cat-img { background: #fff !important; padding: 12px 12px 0; }
.fph-cat-img img { width: 100%; height: 100%; object-fit: contain; display: block; mix-blend-mode: multiply; transition: transform .3s ease; }
.fph-cat:hover .fph-cat-img img { transform: scale(1.03); }
.fph-cat-body { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 18px; flex: 1; }
.fph-cat-name { font-weight: 650; font-size: 18px; letter-spacing: -0.01em; }
.fph-cat-desc { font-size: 14px; color: var(--fx-ink-2); line-height: 1.45; }
.fph-cat-price { margin-top: auto; padding-top: 8px; font-weight: 700; font-size: 15px; }

.fph-size { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); gap: 48px; align-items: center; background: var(--fx-paper); border: 1px solid var(--fx-line); border-radius: 18px; padding: 40px; }
.fph-size h2 { margin-top: 0; }
.fph-table { width: 100%; max-width: 520px; border-collapse: collapse; margin-top: 18px; font-size: 15.5px; }
.fph-table th, .fph-table td { padding: 10px 0; border-bottom: 1px solid var(--fx-line); text-align: left; background: transparent !important; }
.fph-table th { font-weight: 600; color: var(--fx-ink-2); font-size: 13.5px; }
.fph-table td:last-child { font-weight: 650; }
.fph-size-drawing { margin: 0; }
.fph-size-drawing svg { display: block; width: 100%; max-width: 280px; margin: 0 auto; height: auto; font-family: inherit; }

.fph-steps { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.fph-steps li { counter-increment: s; margin: 0; padding-top: 18px; border-top: 2px solid var(--fx-ink); }
.fph-steps li::before { content: counter(s); display: block; font-size: 14px; font-weight: 700; color: var(--fx-oak-deep); margin-bottom: 8px; }
.fph-steps strong { display: block; font-size: 18px; margin-bottom: 6px; letter-spacing: -0.01em; }
.fph-steps span { color: var(--fx-ink-2); font-size: 15px; line-height: 1.55; }

.fph-faq-list { max-width: 820px; border-top: 1px solid var(--fx-line); }
.fph-faq details { border-bottom: 1px solid var(--fx-line); }
.fph-faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 600; font-size: 17px; position: relative; }
.fph-faq summary::-webkit-details-marker { display: none; }
.fph-faq summary::after { content: "+"; position: absolute; right: 6px; top: 14px; font-size: 24px; font-weight: 400; color: var(--fx-ink-2); }
.fph-faq details[open] summary::after { content: "−"; }
.fph-faq details p { margin: 0 0 20px; max-width: 700px; }

.fph-contact { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; background: var(--fx-ink); color: #fff; border-radius: 18px; padding: 36px 40px; margin-bottom: 40px; }
.fph-contact h2 { color: #fff !important; margin: 0 0 6px; }
.fph-contact p { color: #d9d3c6; margin: 0; }
.fph-contact-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- Stopka ---------- */
.fp-site-footer { background: var(--fx-ink) !important; color: #d9d3c6 !important; padding: 56px 0 24px !important; margin-top: 64px; }
.fp-site-footer .fp-footer-inner { max-width: 1240px; margin: 0 auto; padding: 0 28px; box-sizing: border-box; display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.fp-site-footer h3 { color: #fff !important; font-size: 15px !important; margin: 0 0 12px; }
.fp-site-footer p, .fp-site-footer li { color: #d9d3c6 !important; font-size: 14.5px; line-height: 1.7; }
.fp-site-footer a { color: #fff !important; }
.fp-footer-brand { margin-bottom: 14px; }
.fp-footer-brand img { display: block; height: 52px; width: auto; }
.fp-footer-phone { font-size: 20px; font-weight: 700; text-decoration: none !important; }
.fp-footer-company { font-size: 13px !important; color: #a9a293 !important; }
.fp-site-footer .fp-footer-links { list-style: none; margin: 0; padding: 0; }
.fp-footer-bottom { max-width: 1184px; width: calc(100% - 56px); margin: 40px auto 0; padding: 20px 0 0; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; color: #a9a293; }

/* ---------- Tablet / telefon ---------- */
@media (max-width: 1000px) {
  .fph-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fp-site-footer .fp-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .fph-hero { grid-template-columns: 1fr; gap: 24px; margin-bottom: 56px; }
  .fph-hero-media { order: -1; }
  .fph-size { grid-template-columns: 1fr; padding: 28px 22px; gap: 24px; }
  .fph-steps { grid-template-columns: 1fr; gap: 20px; }
  .fpx-header-phone { display: none; }
  .site-header > .col-full { grid-template-columns: auto minmax(0, 1fr) auto; }
  .site-header .main-navigation ul.menu > li > a { padding-left: 10px !important; padding-right: 10px !important; }
}
@media (max-width: 767px) {
  .fpx-topbar .col-full { gap: 6px 16px; font-size: 12px; }
  .fpx-topbar span:first-child { display: none; }
  .fph-hero h1 { font-size: 34px; }
  .fph-lead { font-size: 16.5px; }
  .fph-facts { gap: 20px; }
  .fph-facts strong { font-size: 17px; }
  .fph-section { margin-bottom: 56px; }
  .fph-cat-name { font-size: 16px; }
  .fph-cat-desc { display: none; }
  .fph-contact { padding: 28px 22px; }
  .fp-site-footer .fp-footer-inner { grid-template-columns: 1fr; }
}
/* ---------- Nagłówek na telefonie: logo | koszyk | menu ---------- */
@media (max-width: 767px) {
  .site-header > .col-full { grid-template-columns: auto minmax(0, 1fr) auto auto; column-gap: 10px; min-height: 64px; }
  .site-header .site-branding img, .site-header .custom-logo { height: 34px !important; }
  .site-header .site-header-cart { display: block !important; grid-column: 3; justify-self: end; }
  .site-header .site-header-cart .cart-contents { padding: 8px 12px !important; font-size: 13px; }
  .site-header .site-header-cart .cart-contents .amount { display: none; }
  .site-header .site-header-cart .widget_shopping_cart { display: none !important; }
  .site-header .main-navigation { grid-column: 4; justify-self: end; position: static; }
  .site-header .menu-toggle {
    display: inline-flex !important; align-items: center; gap: 8px; margin: 0 !important; float: none !important;
    background: #fff !important; color: var(--fx-ink) !important; border: 1px solid var(--fx-line) !important; border-radius: 10px !important;
    padding: 9px 12px 9px 36px !important; font-size: 14px !important; font-weight: 650 !important; box-shadow: none !important; transform: none !important; min-height: 0 !important;
  }
  .site-header .main-navigation .handheld-navigation, .site-header .main-navigation > div.menu { display: none; }
  .site-header .main-navigation.toggled .handheld-navigation, .site-header .main-navigation.toggled > div.menu {
    display: block !important; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--fx-line); box-shadow: 0 16px 30px rgba(27,26,23,.10); padding: 6px 20px 14px; max-height: none !important; z-index: 60;
  }
  .site-header .main-navigation.toggled .handheld-navigation ul, .site-header .main-navigation.toggled > div.menu ul { margin: 0; padding: 0; list-style: none; }
  .site-header .main-navigation.toggled .handheld-navigation a, .site-header .main-navigation.toggled > div.menu a { display: block; padding: 14px 4px !important; border-bottom: 1px solid #efebe3; font-size: 16px; font-weight: 600; color: var(--fx-ink) !important; }
  .site-header .main-navigation .primary-navigation { display: none !important; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
.fph-cat-img img { filter: brightness(1.04) contrast(1.03); }
