/* =========================================================
   KK Design – poprawki wizualne i ścieżki zakupu
   Dołącz po storefront.css (patrz README, krok 5).
   ========================================================= */

/* 1. Jedna czcionka na całej stronie głównej
      (storefront.css miał .kk-home{font-family:Arial}) */
.kk-home { font-family: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif; }

/* 2. Pierwszy ekran: przyciski działania */
.kk-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
@media (max-width: 575px) { .kk-hero-cta .kk-btn { flex: 1 1 100%; } }
.kk-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 22px; border-radius: 10px;
  font-weight: 700; font-size: 16px; line-height: 1.2; text-decoration: none !important;
  border: 2px solid transparent; transition: filter .15s, background .15s;
}
.kk-btn--primary { background: #f39200; color: #fff !important; }
.kk-btn--primary:hover { filter: brightness(1.07); }
.kk-btn--ghost { background: #fff; color: #172f36 !important; border-color: #172f36; }
.kk-btn--ghost:hover { background: #f1f7f8; }
.kk-btn:focus-visible { outline: 3px solid #24b9d7; outline-offset: 2px; }

/* 3. Czytelniejsze drobne teksty */
.kk-service-copy p { font-size: 14px; color: #4a5f65; }
.kk-intro-strip { font-size: 14px; color: #4a5f65; }
.kk-intro-strip b { font-size: 16px; }
.kk-intro-strip span { padding-left: 30px; position: relative; }
.kk-intro-strip span::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 22px; height: 22px; border-radius: 50%;
  background: #e2f5f8; color: #087987; font-weight: 800; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
}
@media (max-width: 767px) {
  .kk-intro-strip { grid-template-columns: 1fr; font-size: 14px; }
}
.product-miniature .product-title a { color: #2f4146; }
.product-miniature .price-tax-excl { font-size: 13px; }

/* 4. Nagłówek sekcji produktów jak pozostałe (bez wersalików) */
.kk-home .products-section-title {
  text-transform: none !important; font-size: 34px; font-weight: 700;
  letter-spacing: -.035em; color: #172f36; text-align: left;
}
@media (max-width: 767px) { .kk-home .products-section-title { font-size: 28px; } }

/* 5. Karty produktów na stronie głównej jak w kategorii:
      cena za m², rabat od ilości i przycisk "Wpisz wymiar i wyceń" */
.kk-home .product-miniature .thumbnail-container:has(.kk-print-chips) { height: auto !important; min-height: 0; display: flex; flex-direction: column; }
.kk-home .product-miniature .product-description:has(.kk-print-chips) {
  position: static; width: auto; height: auto !important; flex: 1; display: flex; flex-direction: column;
  text-align: left; padding: 0 14px 16px; background: transparent; box-shadow: none;
}
.kk-home .product-description:has(.kk-print-chips) .product-price-and-shipping { text-align: left; }
@media (max-width: 767px) {
  .kk-home .product-miniature .product-description:has(.kk-print-chips) { padding: 0 10px 14px; }
  .kk-home .product-description:has(.kk-print-chips) .product-title a { font-size: 14px; }
  .kk-home .kk-print-chips li:nth-child(n+2) { display: none; } /* na wąskim ekranie tylko pierwsza cecha */
  .kk-home .product-description:has(.kk-print-chips) .price-tax-incl { font-size: 16px; }
}
.kk-home .product-description:has(.kk-print-chips) .product-title { margin: 14px 0 8px; text-align: left !important; }
.kk-home .product-description:has(.kk-print-chips) .product-title a { font-size: 16px; font-weight: 700; color: #172f36; }
.kk-print-chips { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 0 0 10px; padding: 0; }
.kk-print-chips li { font-size: 12px; line-height: 1.3; padding: 4px 9px; border-radius: 999px; background: #edf3ef; color: #17363d; font-weight: 600; }
.kk-home .product-description:has(.kk-print-chips) .price { display: flex; flex-direction: column; gap: 2px; align-items: flex-start; }
.kk-home .product-description:has(.kk-print-chips) .price-tax-incl { font-size: 18px; font-weight: 800; color: #172f36; }
.kk-home .product-description:has(.kk-print-chips) .price-tax-incl small { font-size: 13px; font-weight: 600; color: #576b71; }
.kk-print-from { font-size: 12px; color: #087987; font-weight: 600; }
.kk-print-button {
  margin-top: auto; padding-top: 12px; font-weight: 700; font-size: 14px; color: #087987 !important;
}

/* 6. Karta produktu: jeden kolor głównego przycisku (jak "ZAMÓW" i "Dalej – płatność") */
#product .product-add-to-cart .add-to-cart.btn-primary {
  background: #f39200; border-color: #f39200; color: #fff;
}
#product .product-add-to-cart .add-to-cart.btn-primary:hover { filter: brightness(1.07); }

/* 7. Telefon: niższe zdjęcie produktu, żeby kalkulator był bliżej */
@media (max-width: 767px) {
  #product .product-cover img { max-height: 230px; width: auto; margin: 0 auto; object-fit: contain; }
  #product .product-images, #product .js-qv-mask { display: none; }
}

/* Karta produktu: zakładki opisu (kk-product-tabs.js, 17.11) */
.tabs .nav-tabs li[hidden], .tabs .tab-pane[hidden] { display: none !important; }
.kk-tabs-toggle { display: none; }
@media (max-width: 767px) {
  .tabs.kk-tabs-mobile { padding: 0; background: transparent; box-shadow: none; }
  .tabs.kk-tabs-mobile .kk-tabs-toggle {
    display: flex; width: 100%; align-items: center; justify-content: space-between; gap: 12px;
    min-height: 54px; padding: 14px 18px; border: 1px solid #d9e3e3; border-radius: 12px;
    background: #fff; color: #172f36; font: 700 16px/1.3 Manrope, system-ui, sans-serif; cursor: pointer; text-align: left;
  }
  .tabs.kk-tabs-mobile .kk-tabs-toggle i { font-style: normal; color: #087987; font-size: 18px; transition: transform .2s; }
  .tabs.kk-tabs-mobile.kk-tabs-open .kk-tabs-toggle { border-radius: 12px 12px 0 0; }
  .tabs.kk-tabs-mobile.kk-tabs-open .kk-tabs-toggle i { transform: rotate(180deg); }
  .tabs.kk-tabs-mobile:not(.kk-tabs-open) .nav-tabs,
  .tabs.kk-tabs-mobile:not(.kk-tabs-open) .tab-content { display: none; }
  .tabs.kk-tabs-mobile.kk-tabs-single .nav-tabs { display: none; }
  .tabs.kk-tabs-mobile.kk-tabs-open .tab-content {
    background: #fff; border: 1px solid #d9e3e3; border-top: 0; border-radius: 0 0 12px 12px; padding: 16px 18px;
  }
  .kk-tabs-toggle:focus-visible { outline: 3px solid #24b9d7; outline-offset: 2px; }
}
@media (prefers-reduced-motion: reduce) { .kk-tabs-toggle i { transition: none; } }

/* Zamówienie: link "lub wybierz inny produkt" (kkquickorder, A3) */
.kkqo-more3 { display: block; font-size: 14px; font-weight: 500; margin-top: 4px; }

/* 8. Podświetlenie bloku wymiarów, gdy klient kliknie "Zamów" bez sprawdzenia wymiaru */
.kk-dim-check { animation: kkDimPulse 1.6s ease-out 1; box-shadow: 0 0 0 3px #f39200 !important; border-radius: 12px; padding: 10px 12px; }
@keyframes kkDimPulse { 0% { box-shadow: 0 0 0 0 rgba(243,146,0,.6); } 100% { box-shadow: 0 0 0 3px #f39200; } }
.kk-dim-hint {
  margin: 10px 0 0; padding: 10px 12px; border-radius: 8px; background: #fff4e0;
  color: #6b4100; font-size: 14px; font-weight: 600;
}
