/* ===================================================================
   KP COMPONENTS — PDP komponenty poza modułem opinii
   =================================================================== */

/* LICZNIK ZAKUPÓW */
.cart-add-count {
    margin: 20px 0 12px;
    padding: 10px 16px;
    background: linear-gradient(135deg, #584280 0%, #4a3670 100%);
    border-radius: 20px;
    display: block; width: 100%; box-sizing: border-box; clear: both;
    box-shadow: 0 8px 20px rgba(88,66,128,.30);
    border: 2px solid rgba(255,255,255,.22);
}
.cart-count-text {
    margin: 0; font-size: 15px; color: #fff; text-align: center; font-weight: 700;
    text-shadow: 0 1px 2px rgba(0,0,0,0.25);
}

/* OPCJA EXPRESS */
.express-delivery-option {
    margin: 22px 0; padding: 16px;
    background: linear-gradient(135deg, #2f3d59 0%, #394a6a 100%);
    border: 2px solid #6a57a0; border-radius: 12px;
    box-shadow: 0 10px 24px rgba(47, 61, 89, 0.28);
}
.express-delivery-option label {
    color:#fff; font-weight:700; margin-bottom:6px; display:block; font-size:16px;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.express-delivery-option .description { color:#cbd5e0; font-size:14px; margin-top:6px; font-weight:500; }

/* NAJNIŻSZA CENA */
.lowest-price-badge { display:block; margin:14px 0 20px; position:relative; z-index:5; }
.lowest-price-badge-inner {
    background: linear-gradient(135deg, #584280 0%, #8fbc8f 100%);
    color: #fff; padding: 12px 16px; border-radius: 12px;
    box-shadow: 0 10px 24px rgba(88,66,128,.25);
    display:inline-block; border:2px solid rgba(255,255,255,.25);
    animation: price-pulse 3s infinite;
}
.price-info-heading { font-size:13px; margin-bottom:6px; text-transform:uppercase; letter-spacing:.8px; font-weight:600; }
.previous-price    { font-size:18px; font-weight:900; margin-bottom:4px; }
.discount-percentage {
    font-size:16px; font-weight:900; color:#ffeb3b; display:inline-block; padding:4px 10px;
    background: rgba(0,0,0,0.25); border-radius:16px; box-shadow: inset 0 2px 4px rgba(0,0,0,0.15);
}
.lowest-price-badge-loop {
    display:block; margin:10px 0; padding:6px 10px;
    background: linear-gradient(135deg, #584280 0%, #8fbc8f 100%);
    color:#fff; border-radius:8px; text-align:center; font-size:13px;
    box-shadow: 0 6px 16px rgba(88,66,128,.25); font-weight:600;
}
.price-info-label { font-weight:600; }
.previous-price-loop { font-weight:900; }
.discount-badge {
    display:inline-block; background:#ffeb3b; color:#333; font-weight:900;
    padding:2px 7px; border-radius:10px; margin-left:6px; box-shadow:0 2px 8px rgba(255,235,59,.35);
}

@keyframes price-pulse {
    0% { transform: scale(1); box-shadow: 0 8px 22px rgba(88,66,128,.25); }
    50% { transform: scale(1.04); box-shadow: 0 12px 32px rgba(88,66,128,.40); }
    100% { transform: scale(1); box-shadow: 0 8px 22px rgba(88,66,128,.25); }
}

/* POWIĄZANE PRODUKTY — miniatury */
.related-products-thumbnails-container {
    margin: 24px 0;
    background: linear-gradient(135deg, #f6f6fb 0%, #ffffff 100%);
    border: 2px solid #6a57a0; border-radius: 12px; padding: 20px;
    box-shadow: 0 8px 20px rgba(88,66,128,.15);
}
.related-products-thumbnails-container h3 {
    color:#584280; font-size:20px; font-weight:800; text-align:center;
    margin-bottom:16px; text-transform:uppercase; letter-spacing:.8px;
}
.related-products-list {
    display:grid; grid-template-columns:repeat(auto-fit, minmax(110px, 1fr));
    gap:12px; list-style:none; padding:0; margin:0; justify-items:center;
}
.related-product-item {
    border: 2px solid transparent; border-radius: 10px;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    background:#fff; padding:6px; box-shadow:0 4px 14px rgba(0,0,0,0.08);
    width:100%; max-width:150px;
}
.related-product-item:hover {
    border-color:#6a57a0; transform: translateY(-4px);
    box-shadow:0 10px 22px rgba(88,66,128,.22);
}
.related-product-item img {
    display:block; border-radius:8px; width:100%; height:auto; transition: transform .25s ease;
}
.related-product-item:hover img { transform: scale(1.04); }

/* RWD */
@media (max-width: 768px) {
    .related-products-list { grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap:10px; }
    .related-products-thumbnails-container { padding:16px; }
    .related-products-thumbnails-container h3 { font-size:18px; }
}

/* Podsumowanie FPF – karta pod formularzem */
#kp-fpf-summary { margin-top: 12px; }

.kp-fpf-summary-card {
  background: #ffffff;
  border: 1px solid #e6e7ee;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
}

.kp-fpf-summary-head {
  padding: 12px 16px;
  background: linear-gradient(135deg, #584280 0%, #4a3670 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: 13px;
}

.kp-fpf-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #f1f2f6;
}
.kp-fpf-row:first-child { border-top: 0; }

.kp-fpf-title { color: #2d3748; font-weight: 600; }
.kp-fpf-value { color: #374151; }
.kp-fpf-price {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f6f6fb;
  border: 1px solid #e6e7ee;
  font-weight: 700;
  font-size: 12px;
  color: #4a3670;
}

@media (max-width: 600px){
  .kp-fpf-row { grid-template-columns: 1fr; }
}

/* Podsumowanie FPF – karta pod formularzem */
#kp-fpf-summary { margin-top: 12px; }

.kp-fpf-summary-card {
  background: #ffffff;
  border: 1px solid #e6e7ee;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  overflow: hidden;
}

.kp-fpf-summary-head {
  padding: 12px 16px;
  background: linear-gradient(135deg, #584280 0%, #4a3670 100%);
  color: #fff;
  font-weight: 700;
  letter-spacing: .3px;
  text-transform: uppercase;
  font-size: 13px;
}

.kp-fpf-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 12px 16px;
  border-top: 1px solid #f1f2f6;
}
.kp-fpf-row:first-child { border-top: 0; }

.kp-fpf-title { color: #2d3748; font-weight: 600; }
.kp-fpf-value { color: #374151; }
.kp-fpf-price {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 9999px;
  background: #f6f6fb;
  border: 1px solid #e6e7ee;
  font-weight: 700;
  font-size: 12px;
  color: #4a3670;
}

@media (max-width: 600px){
  .kp-fpf-row { grid-template-columns: 1fr; }
}

/* Podpisy pod miniaturami „Inne wzory” */
.related-products-list .related-product-link {
  display: grid;
  gap: 8px;
  text-align: center;
  text-decoration: none;
}

.related-product-caption {
  display: block;
  font-size: 13px;
  line-height: 1.35;
  color: #3b2f5a;          /* fiolet KP, czytelny */
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 4px;
}

/* Zadbaj o oddech dla krótkich kafelków */
.related-product-item {
  padding-bottom: 10px;
}

/* Na hover – subtelne wzmocnienie */
.related-product-item:hover .related-product-caption {
  color: #2d2644;
}
