/*
Theme Name: KBF Blocksy Child
Theme URI: https://kbfmeble.pl/
Description: Warstwa wizualna KBF Meble oparta na Blocksy i audycie migracyjnym z 16.07.2026.
Author: KBF Meble
Template: blocksy
Version: 0.4.6
Text Domain: kbf-blocksy-child
Requires at least: 6.8
Requires PHP: 8.2
*/

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lato-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/lato-400-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lato-700-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Lato";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("assets/fonts/lato-700-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-400-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("assets/fonts/poppins-400-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/poppins-500-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("assets/fonts/poppins-500-latin.woff2") format("woff2");
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-600-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02FF, U+0304, U+0308, U+0329, U+1E00-1EFF, U+2020, U+20A0-20CF, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Poppins";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("assets/fonts/poppins-600-latin.woff2") format("woff2");
}

:root {
  --kbf-brand: #33cc33;
  --kbf-brand-dark: #237a2b;
  --kbf-brand-hover: #1b6423;
  --kbf-commerce: #b4232b;
  --kbf-commerce-hover: #8f1c22;
  --kbf-promo: #c81e1e;
  --kbf-text: #242424;
  --kbf-text-muted: #5f6368;
  --kbf-surface: #f7f7f5;
  --kbf-surface-product: #f3f3f3;
  --kbf-footer: #ededed;
  --kbf-border: #d8d8d8;
  --kbf-focus: rgba(35, 122, 43, 0.28);
  --kbf-container: 1280px;
  --kbf-wide: 1440px;
  --kbf-gutter: clamp(20px, 3vw, 32px);
  --kbf-radius-card: 8px;
  --kbf-radius-control: 10px;
  --kbf-radius-pill: 999px;
  --kbf-shadow-hover: 0 8px 24px rgba(36, 36, 36, 0.1);
  --fontFamily: "Lato", Arial, sans-serif;
  --fontFamily-heading: "Poppins", Arial, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  color: var(--kbf-text);
  font-family: "Lato", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.625;
}

h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.woocommerce-loop-product__title {
  color: var(--kbf-text);
  font-family: "Poppins", Arial, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
}

a {
  text-underline-offset: 0.18em;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--kbf-brand-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--kbf-focus);
}

button,
input,
select,
textarea,
.button,
.wp-element-button {
  min-height: 44px;
}

.kbf-container {
  width: min(100% - (2 * var(--kbf-gutter)), var(--kbf-container));
  margin-inline: auto;
}

.kbf-skip-link {
  position: fixed;
  z-index: 10000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  transform: translateY(-160%);
  border-radius: var(--kbf-radius-control);
  background: var(--kbf-text);
  color: #fff;
}

.kbf-skip-link:focus {
  transform: translateY(0);
}

.kbf-topbar {
  padding: 8px 0;
  background: var(--kbf-brand);
  color: #172117;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
}

.kbf-site-header {
  position: relative;
  z-index: 100;
  border-bottom: 1px solid var(--kbf-border);
  background: #fff;
}

.kbf-header-main {
  display: grid;
  grid-template-columns: 84px minmax(260px, 1fr) auto;
  gap: clamp(20px, 3vw, 48px);
  align-items: center;
  min-height: 104px;
}

.kbf-logo {
  display: inline-flex;
  align-items: center;
}

.kbf-logo img {
  display: block;
  width: 76px;
  height: auto;
}

.kbf-product-search .woocommerce-product-search {
  position: relative;
  display: flex;
}

.kbf-search-results {
  position: absolute;
  z-index: 1200;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  max-height: min(480px, 65vh);
  overflow-y: auto;
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-card);
  background: #fff;
  box-shadow: var(--kbf-shadow-hover);
}

.kbf-search-result {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  color: var(--kbf-text);
  text-decoration: none;
}

.kbf-search-result + .kbf-search-result {
  border-top: 1px solid var(--kbf-border);
}

.kbf-search-result:hover,
.kbf-search-result[aria-selected="true"] {
  background: var(--kbf-surface);
}

.kbf-search-result img {
  width: 56px;
  height: 56px;
  border-radius: 6px;
  background: var(--kbf-surface-product);
  object-fit: contain;
}

.kbf-search-result-copy {
  min-width: 0;
}

.kbf-search-result-copy strong,
.kbf-search-result-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.kbf-search-result-copy small {
  margin-top: 3px;
  color: var(--kbf-text-muted);
}

.kbf-product-search input[type="search"] {
  width: 100%;
  min-height: 50px;
  padding: 10px 118px 10px 18px;
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-pill);
  background: var(--kbf-surface);
  color: var(--kbf-text);
}

.kbf-product-search button {
  position: absolute;
  top: 4px;
  right: 4px;
  min-height: 42px;
  padding: 8px 20px;
  border: 0;
  border-radius: var(--kbf-radius-pill);
  background: var(--kbf-brand-dark);
  color: #fff;
  font-weight: 700;
}

.kbf-product-search button:hover {
  background: var(--kbf-brand-hover);
}

.kbf-header-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.kbf-header-action,
.kbf-menu-toggle {
  position: relative;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 10px;
  border: 0;
  border-radius: var(--kbf-radius-control);
  background: transparent;
  color: var(--kbf-text);
  font-weight: 700;
  text-decoration: none;
}

.kbf-header-action:hover,
.kbf-menu-toggle:hover {
  background: var(--kbf-surface);
  color: var(--kbf-brand-dark);
}

.kbf-header-action svg,
.kbf-menu-toggle svg {
  width: 24px;
  height: 24px;
}

.kbf-cart-count {
  position: absolute;
  top: 1px;
  right: 0;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--kbf-commerce);
  color: #fff;
  font-size: 11px;
  line-height: 1;
}

.kbf-menu-toggle {
  display: none;
  cursor: pointer;
}

.kbf-primary-nav {
  border-top: 1px solid #eee;
}

.kbf-primary-nav ul,
.kbf-mobile-menu ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kbf-primary-nav > .kbf-container > ul {
  display: flex;
  gap: clamp(20px, 3vw, 38px);
  align-items: center;
  min-height: 52px;
}

.kbf-primary-nav .menu > .menu-item {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 52px;
}

.kbf-primary-nav .sub-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% - 1px);
  left: -18px;
  display: grid;
  min-width: 270px;
  max-width: 360px;
  padding: 12px;
  visibility: hidden;
  transform: translateY(8px);
  border: 1px solid var(--kbf-border);
  border-radius: 0 0 var(--kbf-radius-card) var(--kbf-radius-card);
  background: #fff;
  box-shadow: var(--kbf-shadow-hover);
  opacity: 0;
  transition: opacity 160ms ease, transform 160ms ease, visibility 160ms ease;
}

.kbf-primary-nav .menu-item:hover > .sub-menu,
.kbf-primary-nav .menu-item:focus-within > .sub-menu {
  visibility: visible;
  transform: translateY(0);
  opacity: 1;
}

.kbf-primary-nav .sub-menu a {
  display: block;
  padding: 9px 10px;
  border-radius: 6px;
  font-weight: 700;
}

.kbf-primary-nav .sub-menu a:hover,
.kbf-primary-nav .sub-menu a:focus-visible {
  background: var(--kbf-surface);
}

.kbf-primary-nav a {
  color: var(--kbf-text);
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.kbf-primary-nav a:hover,
.kbf-primary-nav .current-menu-item > a {
  color: var(--kbf-brand-dark);
  text-decoration: underline;
}

.kbf-mobile-panel {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: none;
}

.kbf-mobile-panel[aria-hidden="false"] {
  display: block;
}

.kbf-mobile-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(36, 36, 36, 0.58);
}

.kbf-mobile-drawer {
  position: absolute;
  top: 0;
  right: 0;
  width: min(90vw, 380px);
  height: 100%;
  padding: 24px;
  overflow-y: auto;
  background: #fff;
}

.kbf-mobile-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
}

.kbf-mobile-close {
  min-width: 44px;
  border: 0;
  border-radius: var(--kbf-radius-control);
  background: var(--kbf-surface);
  font-size: 26px;
  cursor: pointer;
}

.kbf-mobile-search {
  margin-bottom: 24px;
}

.kbf-mobile-menu li + li {
  border-top: 1px solid var(--kbf-border);
}

.kbf-mobile-menu a {
  display: block;
  padding: 13px 2px;
  color: var(--kbf-text);
  font-weight: 700;
  text-decoration: none;
}

.kbf-mobile-menu .menu-item-has-children {
  position: relative;
}

.kbf-mobile-menu .sub-menu {
  padding: 0 0 10px 16px;
  border-left: 2px solid var(--kbf-brand);
}

.kbf-mobile-menu .sub-menu a {
  padding-block: 10px;
  font-size: 15px;
  font-weight: 400;
}

.kbf-submenu-toggle {
  position: absolute;
  top: 3px;
  right: 0;
  display: grid;
  width: 44px;
  min-height: 44px;
  place-items: center;
  border: 0;
  border-radius: var(--kbf-radius-control);
  background: var(--kbf-surface);
  color: var(--kbf-text);
  font-size: 22px;
  cursor: pointer;
}

.kbf-submenu-toggle[aria-expanded="true"] {
  color: var(--kbf-brand-dark);
}

.kbf-mobile-account {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--kbf-border);
}

.kbf-mobile-account a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--kbf-brand-dark);
  font-weight: 700;
}

body.kbf-menu-open {
  overflow: hidden;
}

.kbf-hero {
  padding: clamp(32px, 5vw, 72px) 0;
  background: linear-gradient(125deg, #f3f6ee 0%, #fff 65%);
}

.kbf-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}

.kbf-eyebrow {
  margin: 0 0 10px;
  color: var(--kbf-brand-dark);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.kbf-hero h1 {
  max-width: 13ch;
  margin: 0 0 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 1.08;
}

.kbf-hero-copy > p:not(.kbf-eyebrow) {
  max-width: 56ch;
  color: var(--kbf-text-muted);
  font-size: clamp(17px, 2vw, 20px);
}

.kbf-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.kbf-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 22px;
  border: 1px solid transparent;
  border-radius: var(--kbf-radius-pill);
  background: var(--kbf-brand-dark);
  color: #fff;
  font-weight: 700;
  text-decoration: none;
}

.kbf-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  background: var(--kbf-brand-hover);
  color: #fff;
}

.kbf-button--secondary {
  border-color: var(--kbf-text);
  background: #fff;
  color: var(--kbf-text);
}

.kbf-button--secondary:hover {
  border-color: var(--kbf-brand-dark);
  background: var(--kbf-surface);
  color: var(--kbf-brand-dark);
}

.kbf-hero-media {
  position: relative;
}

.kbf-hero-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 24px 8px 24px 8px;
}

.kbf-hero-badge {
  position: absolute;
  right: 18px;
  bottom: 18px;
  max-width: 250px;
  padding: 14px 18px;
  border-radius: var(--kbf-radius-card);
  background: #fff;
  box-shadow: var(--kbf-shadow-hover);
  font-weight: 700;
}

.kbf-section {
  padding: clamp(52px, 7vw, 96px) 0;
}

.kbf-section--surface {
  background: var(--kbf-surface);
}

.kbf-section-head {
  display: flex;
  gap: 24px;
  align-items: end;
  justify-content: space-between;
  margin-bottom: 28px;
}

.kbf-section-head h2 {
  margin: 0;
  font-size: clamp(1.625rem, 3vw, 2.25rem);
}

.kbf-section-head p {
  max-width: 58ch;
  margin: 8px 0 0;
  color: var(--kbf-text-muted);
}

.kbf-text-link {
  color: var(--kbf-brand-dark);
  font-weight: 700;
}

.kbf-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 28px);
}

.kbf-category-card {
  position: relative;
  min-height: 300px;
  overflow: hidden;
  border-radius: var(--kbf-radius-card);
  background: var(--kbf-text);
  color: #fff;
  text-decoration: none;
}

.kbf-category-card img {
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 220ms ease;
}

.kbf-category-card::after {
  position: absolute;
  inset: 40% 0 0;
  content: "";
  background: linear-gradient(transparent, rgba(20, 20, 20, 0.85));
}

.kbf-category-card span {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 18px;
  left: 20px;
  font-family: "Poppins", Arial, sans-serif;
  font-size: clamp(19px, 2vw, 25px);
  font-weight: 600;
}

.kbf-category-card:hover img {
  transform: scale(1.035);
}

.kbf-benefit-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.kbf-benefit {
  padding: 24px;
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-card);
  background: #fff;
}

.kbf-benefit img {
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
  object-fit: contain;
}

.kbf-benefit h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.kbf-benefit p {
  margin: 0;
  color: var(--kbf-text-muted);
  font-size: 15px;
}

.kbf-lead-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border-radius: 16px;
  background: var(--kbf-text);
  color: #fff;
}

.kbf-lead-grid img {
  width: 100%;
  height: 100%;
  min-height: 390px;
  object-fit: cover;
}

.kbf-lead-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: clamp(32px, 5vw, 72px);
}

.kbf-lead-copy h2,
.kbf-lead-copy p {
  color: #fff;
}

.kbf-lead-copy h2 {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
}

.kbf-shop-placeholder {
  padding: 32px;
  border: 1px dashed var(--kbf-border);
  border-radius: var(--kbf-radius-card);
  background: #fff;
  color: var(--kbf-text-muted);
  text-align: center;
}

.kbf-brand-strip {
  display: grid;
  grid-auto-columns: minmax(170px, 1fr);
  grid-auto-flow: column;
  gap: 14px;
  padding: 4px 2px 16px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: thin;
}

.kbf-brand-card {
  display: grid;
  min-height: 96px;
  padding: 16px;
  place-items: center;
  scroll-snap-align: start;
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-card);
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}

.kbf-brand-card:hover {
  border-color: var(--kbf-brand-dark);
  box-shadow: var(--kbf-shadow-hover);
}

.kbf-brand-card img {
  display: block;
  width: auto;
  max-width: 150px;
  height: 62px;
  object-fit: contain;
}

.kbf-guide-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.5vw, 32px);
}

.kbf-guide-card {
  overflow: hidden;
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-card);
  background: #fff;
}

.kbf-guide-image,
.kbf-guide-image-placeholder {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--kbf-surface-product);
}

.kbf-guide-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 180ms ease;
}

.kbf-guide-card:hover .kbf-guide-image img {
  transform: scale(1.025);
}

.kbf-guide-body {
  padding: 22px;
}

.kbf-guide-meta {
  margin-bottom: 8px;
  color: var(--kbf-brand-dark);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.kbf-guide-meta a {
  color: inherit;
  text-decoration: none;
}

.kbf-guide-card h2,
.kbf-guide-card h3 {
  margin: 0 0 10px;
  font-size: 19px;
  line-height: 1.35;
}

.kbf-guide-card h2 a,
.kbf-guide-card h3 a {
  color: var(--kbf-text);
  text-decoration: none;
}

.kbf-guide-card p {
  margin-bottom: 14px;
  color: var(--kbf-text-muted);
  font-size: 15px;
}

.kbf-guides-archive-head {
  margin-bottom: clamp(28px, 5vw, 52px);
}

.kbf-guides-archive-head p:last-child {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--kbf-text-muted);
}

.kbf-guides-archive .navigation.pagination {
  margin-top: 42px;
}

.kbf-guides-archive .nav-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.kbf-guides-archive .page-numbers {
  display: inline-grid;
  min-width: 42px;
  min-height: 42px;
  padding: 8px 12px;
  place-items: center;
  border: 1px solid var(--kbf-border);
  border-radius: 8px;
  text-decoration: none;
}

.kbf-guides-archive .page-numbers.current {
  border-color: var(--kbf-brand-dark);
  background: var(--kbf-brand-dark);
  color: #fff;
}

.woocommerce ul.products,
.wc-block-product-template {
  gap: clamp(16px, 2vw, 28px) !important;
}

.woocommerce ul.products li.product {
  margin-bottom: 16px;
}

.woocommerce ul.products li.product .ct-image-container,
.woocommerce ul.products li.product > a img,
.wc-block-components-product-image img {
  aspect-ratio: 1 / 1;
  border-radius: var(--kbf-radius-card);
  background: var(--kbf-surface-product);
  object-fit: contain;
}

.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-size: 16px;
  line-height: 1.4;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--kbf-text);
  font-weight: 700;
}

.woocommerce div.product form.cart .button,
.wc-block-cart__submit-button,
.wc-block-components-checkout-place-order-button {
  border-color: var(--kbf-commerce) !important;
  background: var(--kbf-commerce) !important;
  color: #fff !important;
}

.woocommerce div.product form.cart .button:hover,
.wc-block-cart__submit-button:hover,
.wc-block-components-checkout-place-order-button:hover {
  border-color: var(--kbf-commerce-hover) !important;
  background: var(--kbf-commerce-hover) !important;
}

.onsale,
.woocommerce span.onsale {
  background: var(--kbf-promo) !important;
  color: #fff !important;
}

.kbf-product-brand,
.kbf-delivery-label {
  display: block;
  color: var(--kbf-text-muted);
  font-size: 14px;
}

.kbf-delivery-label {
  margin-top: 6px;
  color: var(--kbf-brand-dark);
  font-weight: 700;
}

.kbf-product-brand--single {
  margin: 0 0 8px;
  color: var(--kbf-brand-dark);
  font-weight: 700;
}

.kbf-omnibus-note {
  margin: -4px 0 14px;
  color: var(--kbf-text-muted);
  font-size: 13px;
}

.kbf-shipping-progress {
  margin: 18px 0;
  padding: 14px;
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-card);
  background: var(--kbf-surface);
  font-size: 14px;
}

.kbf-shipping-progress p {
  margin: 0 0 8px;
  font-weight: 700;
}

.kbf-shipping-progress progress {
  width: 100%;
  height: 10px;
  accent-color: var(--kbf-brand-dark);
}

.kbf-shipping-progress a {
  display: inline-block;
  margin-top: 8px;
}

.kbf-site-footer {
  padding-top: 56px;
  background: var(--kbf-footer);
  color: var(--kbf-text);
}

.kbf-footer-grid {
  display: grid;
  grid-template-columns: 1.25fr repeat(3, 1fr);
  gap: clamp(28px, 5vw, 64px);
  padding-bottom: 48px;
}

.kbf-site-footer h2,
.kbf-site-footer h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.kbf-site-footer p {
  margin: 0 0 8px;
  color: #444;
}

.kbf-site-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.kbf-site-footer li + li {
  margin-top: 8px;
}

.kbf-site-footer a {
  color: var(--kbf-text);
}

.kbf-footer-bottom {
  padding: 18px 0;
  border-top: 1px solid #d0d0d0;
  font-size: 14px;
}

@media (min-width: 1025px) {
  .kbf-site-header {
    position: sticky;
    top: 0;
  }

  .woocommerce.archive ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .woocommerce.archive ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .kbf-header-main {
    grid-template-columns: 70px minmax(0, 1fr) auto;
    min-height: 82px;
  }

  .kbf-logo img {
    width: 62px;
  }

  .kbf-action-label,
  .kbf-primary-nav {
    display: none;
  }

  .kbf-menu-toggle {
    display: inline-flex;
  }

  .kbf-hero-grid {
    grid-template-columns: 1fr 1fr;
  }

  .kbf-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kbf-benefit-grid,
  .kbf-footer-grid,
  .kbf-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  :root {
    --kbf-gutter: 20px;
  }

  .woocommerce.archive ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .kbf-topbar {
    padding: 7px 12px;
    font-size: 13px;
  }

  .kbf-header-main {
    grid-template-columns: 58px 1fr auto;
    gap: 10px;
    min-height: 68px;
  }

  .kbf-logo img {
    width: 52px;
  }

  .kbf-product-search {
    grid-column: 1 / -1;
    grid-row: 2;
    padding-bottom: 12px;
  }

  .kbf-product-search input[type="search"] {
    min-height: 46px;
  }

  .kbf-product-search button {
    min-height: 38px;
    padding-inline: 15px;
  }

  .kbf-header-action--account {
    display: none;
  }

  .kbf-hero-grid,
  .kbf-lead-grid {
    grid-template-columns: 1fr;
  }

  .kbf-hero-copy {
    order: 2;
  }

  .kbf-hero-media {
    order: 1;
  }

  .kbf-hero-media img {
    aspect-ratio: 16 / 11;
  }

  .kbf-hero-badge {
    right: 10px;
    bottom: 10px;
    left: 10px;
    max-width: none;
  }

  .kbf-section-head {
    display: block;
  }

  .kbf-section-head .kbf-text-link {
    display: inline-block;
    margin-top: 12px;
  }

  .kbf-category-grid {
    gap: 12px;
  }

  .kbf-category-card {
    min-height: 0;
  }

  .kbf-category-card span {
    right: 12px;
    bottom: 10px;
    left: 12px;
    font-size: 16px;
  }

  .kbf-benefit-grid,
  .kbf-footer-grid,
  .kbf-guide-grid {
    grid-template-columns: 1fr;
  }

  .kbf-lead-grid img {
    min-height: 260px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}


/*
 * KBF product media v1.
 * Source product photography is landscape. Keep the complete product visible
 * instead of forcing Blocksy default portrait crop.
 */
.woocommerce ul.products li.product .ct-image-container,
.woocommerce ul.products li.product > a,
.wc-block-product-template .wc-block-components-product-image {
  overflow: hidden;
  border-radius: var(--kbf-radius-card);
  background: var(--kbf-surface-product);
}

.woocommerce ul.products li.product .ct-image-container img,
.woocommerce ul.products li.product > a img,
.wc-block-product-template .wc-block-components-product-image img,
.wc-block-grid__product-image img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  object-position: center;
  background: var(--kbf-surface-product);
}

.single-product .ct-product-gallery-container .flexy-container > .flexy-item > .ct-media-container {
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-radius: var(--kbf-radius-card);
  background: var(--kbf-surface-product);
}

.single-product .ct-product-gallery-container .flexy-container > .flexy-item > .ct-media-container > img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
  background: transparent;
}

.single-product .ct-product-gallery-container .flexy-pills .ct-media-container,
.single-product .ct-product-gallery-container .flexy-pills img {
  aspect-ratio: 1 / 1 !important;
}

.single-product .ct-product-gallery-container .flexy-pills img {
  object-fit: contain !important;
  object-position: center;
  background: var(--kbf-surface-product);
}

@media (max-width: 689px) {
  .woocommerce ul.products,
  .wc-block-product-template {
    gap: 20px 12px !important;
  }
}


/* Blocksy Flexy DOM compatibility — product media v1.1. */
.woocommerce ul.products li.product .ct-media-container {
  overflow: hidden;
  border-radius: var(--kbf-radius-card);
  background: var(--kbf-surface-product);
}

.woocommerce ul.products li.product .ct-media-container img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3 !important;
  object-fit: contain !important;
  object-position: center;
  background: var(--kbf-surface-product);
}

.single-product .ct-product-gallery-container .flexy-view .flexy-item > .ct-media-container {
  display: grid;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 4 / 3;
  place-items: center;
  border-radius: var(--kbf-radius-card);
  background: var(--kbf-surface-product);
}

.single-product .ct-product-gallery-container .flexy-view .flexy-item > .ct-media-container > img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  object-position: center;
  background: transparent;
}

/* Imported-product FPF accessibility and long-option controls. */
.single-product .fpf-fields {
  padding: clamp(16px, 2vw, 24px);
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-card);
  background: var(--kbf-surface);
}

.single-product .fpf-fields .fpf-heading h2,
.single-product .fpf-fields .fpf-heading h3,
.single-product .fpf-fields .fpf-heading h4 {
  margin-block: 0 8px;
}

.fpf-radio-images fieldset.form-row {
  min-width: 0;
  margin: 0 0 20px;
  padding: 0;
  border: 0;
}

.fpf-radio-images fieldset.form-row > legend {
  width: 100%;
  margin-bottom: 10px;
  padding: 0;
  color: var(--kbf-text);
  font-weight: 700;
}

.fpf-radio-images input[type="radio"].fpf-input-field {
  position: absolute !important;
  display: block !important;
  width: 1px !important;
  min-height: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  clip-path: inset(50%);
  opacity: 0;
}

.fpf-radio-images input[type="radio"] + label {
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: var(--kbf-radius-control);
  background: #fff;
}

.fpf-radio-images input[type="radio"] + label img {
  border: 0 !important;
}

.fpf-radio-images input[type="radio"] + label span {
  display: block;
  padding: 8px;
  color: var(--kbf-text);
  font-size: 14px;
  line-height: 1.35;
}

.fpf-radio-images input[type="radio"]:focus-visible + label {
  outline: 3px solid var(--kbf-brand-dark);
  outline-offset: 3px;
  box-shadow: 0 0 0 5px var(--kbf-focus);
}

.fpf-radio-images input[type="radio"]:checked + label {
  border-color: var(--kbf-brand-dark);
  box-shadow: 0 0 0 2px var(--kbf-focus);
}

:is(.wersal-fpf-large-select, .kbf-fpf-selectwoo, .linneo-fpf-selectwoo) .select2-container,
:is(.wersal-fpf-large-select, .kbf-fpf-selectwoo, .linneo-fpf-selectwoo) .select2-selection--single {
  width: 100% !important;
  min-height: 44px;
}

:is(.wersal-fpf-large-select, .kbf-fpf-selectwoo, .linneo-fpf-selectwoo) .select2-selection--single .select2-selection__rendered {
  line-height: 42px;
}

:is(.wersal-fpf-large-select, .kbf-fpf-selectwoo, .linneo-fpf-selectwoo) .select2-selection--single .select2-selection__arrow {
  height: 42px;
}

/* Visual upholstery chooser: fabric thumbnails remain visible instead of a text-only select. */
:is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) {
  min-width: 0;
}

:is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) .wersal-fpf-gallery-tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  margin: 0 0 12px;
}

:is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) .wersal-fpf-gallery-search {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-control);
  background: #fff;
}

:is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) .wersal-fpf-gallery-status {
  color: var(--kbf-text-muted);
  font-size: 13px;
  white-space: nowrap;
}

.fpf-radio-images :is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) .woocommerce-input-wrapper {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(96px, 1fr));
  gap: 12px;
  max-height: min(640px, 70vh);
  margin: 0;
  padding: 4px 10px 12px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
}

.fpf-radio-images :is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) input[type="radio"] + label {
  display: flex;
  width: auto !important;
  min-width: 0;
  height: 100%;
  margin: 0;
  flex-direction: column;
}

.fpf-radio-images :is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) input[type="radio"] + label img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

.fpf-radio-images :is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) input[type="radio"] + label span {
  margin-top: auto;
  overflow-wrap: anywhere;
}

:is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) [hidden] {
  display: none !important;
}

@media (max-width: 689px) {
  :is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) .wersal-fpf-gallery-tools {
    grid-template-columns: 1fr;
  }

  :is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) .wersal-fpf-gallery-status {
    white-space: normal;
  }

  .fpf-radio-images :is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) .woocommerce-input-wrapper {
    grid-template-columns: repeat(auto-fill, minmax(82px, 1fr));
    gap: 8px;
    max-height: min(560px, 65vh);
    padding-right: 6px;
  }

  .fpf-radio-images :is(.wersal-fpf-upholstery-gallery, .kbf-fpf-upholstery-gallery, .linneo-fpf-upholstery-gallery) input[type="radio"] + label span {
    padding: 6px;
    font-size: 12px;
  }
}

.kbf-fpf-variation-fields {
  min-height: 60px;
}

.kbf-single-variation-product form.variations_form table.variations,
.kbf-single-variation-product form.variations_form .reset_variations {
  display: none !important;
}

.kbf-fpf-variation-status {
  margin: 0 0 16px;
  padding: 12px 14px;
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-control);
  background: var(--kbf-surface);
  color: var(--kbf-text-muted);
}

.kbf-fpf-variation-error {
  border-color: #b42318;
  color: #b42318;
}

.single_add_to_cart_button.kbf-fpf-loading {
  cursor: wait;
  opacity: 0.65;
}

/* Hubertus FPF v2: the same image-backed radio menu used by existing products. */
.kbf-hubertus-v2-variable-product form.variations_form table.variations,
.kbf-hubertus-v2-variable-product form.variations_form .reset_variations {
  display: none !important;
}

.fpf-radio-images .hubertus-fpf-v2-field .woocommerce-input-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: stretch;
  margin: 0;
}

.fpf-radio-images .hubertus-fpf-v2-field input[type="radio"] + label {
  display: flex;
  width: 110px !important;
  min-width: 0;
  height: 100%;
  margin: 0;
  flex-direction: column;
}

.fpf-radio-images .hubertus-fpf-v2-field input[type="radio"] + label img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #fff;
}

.fpf-radio-images .hubertus-fpf-v2-field input[type="radio"] + label span {
  margin-top: auto;
  overflow-wrap: anywhere;
}

.hubertus-fpf-v2-fixed {
  margin: 0 0 16px;
  padding: 10px 12px;
  border-left: 3px solid var(--kbf-brand-dark);
  background: #fff;
  color: var(--kbf-text);
  font-weight: 700;
}

.hubertus-fpf-v2-status {
  margin: 4px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--kbf-border);
  border-radius: var(--kbf-radius-control);
  background: #fff;
  color: var(--kbf-text-muted);
}

.hubertus-fpf-v2-status.is-error {
  border-color: #b42318;
  color: #b42318;
}

.kbf-hubertus-v2-preview-form {
  margin: 22px 0 18px;
}

.kbf-hubertus-v2-preview-note {
  margin: 12px 0 0;
  color: var(--kbf-text-muted);
  font-size: 13px;
}

.kbf-hubertus-v2-preview-product form.variations_form :is(.quantity, .single_add_to_cart_button) {
  display: none !important;
}

.fpf-field[hidden],
.hubertus-fpf-v2-field[hidden] {
  display: none !important;
}

@media (max-width: 689px) {
  .fpf-radio-images .hubertus-fpf-v2-field .woocommerce-input-wrapper {
    gap: 8px;
  }

  .fpf-radio-images .hubertus-fpf-v2-field input[type="radio"] + label {
    width: calc(50% - 4px) !important;
    min-width: 96px;
  }
}
