/* KOMIN - krokowy konfigurator na stronie produktu.
   Kazdy krok ma zdjecie po lewej i opcje do wyboru po prawej. */

/* Strona produktu nie uzywa domyslnej galerii WooCommerce po lewej -
   zdjecie kazdego kroku pelni te role. Summary zajmuje pelna szerokosc.
   important konieczne, bo .woocommerce div.product ma wyzsza specyficznosc. */
.woocommerce div.product.kkf-product { display: block !important; }
.kkf-product .woocommerce-product-gallery { display: none; }
.kkf-product .summary { width: 100%; }

/* Nazwa produktu (np. "...montaż standardowy") już mówi, jaki to rodzaj
   montażu — ukrywamy zduplikowaną linię "Kategoria:" z domyślnej stopki
   meta WooCommerce (SKU/znaczniki zostają widoczne). */
.kkf-product .product_meta .posted_in { display: none; }

.kkf-wrap { position: relative; }

.kkf-step {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
  padding: 2rem 0; border-bottom: 1px solid var(--border); align-items: start;
}
.kkf-step:first-child { padding-top: 0; }
.kkf-step:last-child { border-bottom: none; }

@media (max-width: 760px) {
  .kkf-step { grid-template-columns: 1fr; gap: 1rem; }
}

.kkf-step-media {
  position: sticky; top: 6.5rem;
  border-radius: 12px; overflow: hidden; background: var(--alt);
  aspect-ratio: 4/3;
}
.kkf-step-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 760px) { .kkf-step-media { position: static; } }

.kkf-diameter-badge {
  position: absolute; top: 0.9rem; left: 0.9rem; z-index: 2;
  background: var(--dark); color: var(--white); font-weight: 800; font-size: 0.95rem;
  padding: 0.4rem 0.8rem; border-radius: 8px; letter-spacing: 0.02em;
}

.kkf-step-label {
  display: inline-block; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--yellow); margin-bottom: 0.4rem;
}
.kkf-step h3 { font-size: 1.15rem; margin: 0 0 0.5rem; color: var(--ink); }
.kkf-step-hint { font-size: 0.86rem; color: var(--ink-muted); line-height: 1.5; margin: 0 0 0.9rem; }

.kkf-pills { display: flex; flex-direction: column; gap: 0.5rem; }
.kkf-pills-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; }

.kkf-pill {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  width: 100%; text-align: left; font: inherit; font-weight: 600; font-size: 0.88rem;
  padding: 0.7rem 1rem; border-radius: 10px; border: 1.5px solid var(--border);
  background: var(--white); color: var(--ink); cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
}
.kkf-pill:hover { border-color: var(--yellow); }
.kkf-pill.is-active { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.kkf-pill-delta { font-size: 0.78rem; font-weight: 700; opacity: 0.75; white-space: nowrap; }
.kkf-pill.is-active .kkf-pill-delta { opacity: 0.9; }

.kkf-step-summary .kkf-parts-list {
  list-style: none; margin: 0 0 1.1rem; padding: 0; display: flex; flex-direction: column; gap: 0.5rem;
}
.kkf-parts-list li {
  display: flex; justify-content: space-between; gap: 1rem; font-size: 0.88rem;
  padding-bottom: 0.5rem; border-bottom: 1px dashed var(--border); color: var(--ink);
}
.kkf-parts-list li span:last-child { font-weight: 700; white-space: nowrap; }
.kkf-parts-list li.kkf-parts-info { color: var(--ink-muted); font-style: italic; border-bottom: none; }

.kkf-total {
  display: flex; align-items: baseline; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-top: 2px solid var(--ink); margin-bottom: 0.3rem;
}
.kkf-total span { font-size: 0.92rem; color: var(--ink-muted); }
.kkf-total strong { font-size: 1.6rem; color: var(--ink); }
.kkf-vat-note { font-size: 0.78rem; color: var(--ink-muted); margin: 0 0 1.2rem; }

.kkf-submit { width: 100%; justify-content: center; font-size: 1rem; padding: 0.9rem 1rem; }

/* Dolny pasek - dostawa/kontakt po lewej, cena calkowita po prawej. */
.kkf-stickybar {
  position: sticky; bottom: 0; z-index: 20; margin-top: 1.5rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; flex-wrap: wrap;
  background: var(--white); border-top: 1px solid var(--border);
  padding: 0.9rem 1.5rem; box-shadow: 0 -8px 24px rgba(0,0,0,0.06);
}
.kkf-stickybar-info { display: flex; align-items: center; gap: 1.5rem; flex-wrap: wrap; }
.kkf-stickybar-item { display: flex; align-items: center; gap: 0.5rem; font-size: 0.8rem; color: var(--ink-muted); white-space: nowrap; }
.kkf-stickybar-item svg { width: 18px; height: 18px; color: var(--yellow); flex-shrink: 0; }
.kkf-stickybar-item strong { color: var(--ink); font-weight: 700; }
.kkf-stickybar-price { display: flex; align-items: center; gap: 1rem; margin-left: auto; }
.kkf-stickybar-price-text { text-align: right; }
.kkf-stickybar-price-label { font-size: 0.72rem; color: var(--ink-muted); display: block; }
.kkf-stickybar-price-value { font-size: 1.3rem; font-weight: 800; color: var(--ink); }

@media (max-width: 900px) {
  .kkf-stickybar { padding: 0.75rem 1rem; }
  .kkf-stickybar-info { display: none; }
  .kkf-stickybar-price { margin-left: 0; }
}
