/**
 * ════════════════════════════════════════════════════════════════
 * ZDROWOTKA.PL - STRONA PRODUKTU (single-product.php)
 * ════════════════════════════════════════════════════════════════
 * 
 * Plik ładowany TYLKO na stronie produktu (is_product())
 * Wymaga: zdrowotka-main.css (zmienne CSS, base styles)
 *
 * SEKCJE:
 *   1. Sekcja doradztwa (benefits pod ceną)
 *   2. Layout strony produktu (hero, galeria, info)
 *   3. Opinie - design
 *   4. Podobne produkty - slider
 *   5. Pasek zaufania (trust bar - karta produktu)
 *   6. Sticky CTA
 *   7. Responsywność
 * ════════════════════════════════════════════════════════════════
 */


/* ========================================
   1. SEKCJA DORADZTWA POD CENĄ
   ======================================== */

/* ========================================
   SEKCJA DORADZTWA POD CENĄ
   ======================================== */

.zd-product-benefits {
    margin-top: 10px;
    margin-bottom: 10px;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
}

.zd-benefit-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid #f0f0f0;
}

.zd-benefit-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.zd-benefit-item:first-child {
    padding-top: 0;
}

.zd-benefit-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #4CAF50 0%, #43a047 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 3px 10px rgba(76, 175, 80, 0.25);
}

.zd-benefit-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
}

.zd-benefit-text {
    flex: 1;
}

.zd-benefit-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--zd-text-dark);
    margin: 0 0 2px 0;
}

.zd-benefit-desc {
    font-size: 13px;
    color: #666;
    margin: 0;
}

.zd-benefit-phone {
    font-weight: 700;
    color: #2E7D32;
    text-decoration: none;
}

.zd-benefit-phone:hover {
    text-decoration: underline;
}

/* TEKST POD PRZYCISKIEM */
.zd-cta-help {
    text-align: center;
    margin-top: 15px;
    padding: 12px;
    background: #fff;
    border-radius: 10px;
    border: 1px dashed #c8e6c9;
}

.zd-cta-help-text {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.zd-cta-help-text a {
    color: #2E7D32;
    font-weight: 700;
    text-decoration: none;
}

.zd-cta-help-text a:hover {
    text-decoration: underline;
}

/* RESPONSYWNOŚĆ */
@media (max-width: 768px) {
    .zd-product-benefits {
        padding: 8px 10px;
        margin-top: 8px;
        margin-bottom: 8px;
    }
    
    .zd-benefit-item {
        padding: 6px 0;
        gap: 10px;
    }
    
    .zd-benefit-icon {
        width: 32px;
        height: 32px;
    }
    
    .zd-benefit-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .zd-benefit-title {
        font-size: 13px;
    }
    
    .zd-benefit-desc {
        font-size: 11px;
    }
    
    .zd-cta-help {
        padding: 10px;
    }
    
    .zd-cta-help-text {
        font-size: 13px;
    }
}


/* ========================================
   2. LAYOUT STRONY PRODUKTU
   ======================================== */

/* STRONA PRODUKTU - PREMIUM (UNIFIED FONT SYSTEM) */
/* Inter = body, opisy | Nunito = cena, przycisk | Playfair = tytuł */

.zd-product-page { background: #fff; padding-bottom: 60px; font-family: "Inter", -apple-system, sans-serif; }
.zd-product-page * { box-sizing: border-box; }
.zd-product-container { max-width: 1300px; margin: 0 auto; padding: 0 30px; }

/* HERO - 2 KOLUMNY */
.zd-product-hero { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; padding: 30px 0 40px; align-items: start; }

/* GALERIA */
.zd-product-gallery { position: sticky; top: 100px; }
.zd-gallery-main { position: relative; background: transparent; border-radius: 0; padding: 10px; margin-bottom: 10px; overflow: hidden; }
.zd-gallery-main img { width: 100%; height: 450px; object-fit: contain; display: block; transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1); }
.zd-gallery-main:hover img { transform: scale(1.02); }
.zd-gallery-badge { position: absolute; top: 20px; left: 20px; padding: 10px 18px; font-size: 12px; font-weight: 700; text-transform: uppercase; border-radius: 10px; color: #fff; font-family: "Nunito", sans-serif; }
.zd-gallery-badge.sale { background: linear-gradient(135deg, #e53935 0%, #c62828 100%); }
.zd-gallery-thumbs { display: flex; gap: 12px; flex-wrap: wrap; }
.zd-gallery-thumb { width: 80px; height: 80px; border: 2px solid #e5e5e5; border-radius: 8px; overflow: hidden; cursor: pointer; transition: all 0.3s ease; background: #fff; }
.zd-gallery-thumb:hover, .zd-gallery-thumb.active { border-color: #2E7D32; }
.zd-gallery-thumb img { width: 100%; height: 100%; object-fit: contain; padding: 6px; }

/* INFO */
.zd-product-info { padding-top: 0; }
.zd-breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #767676; margin-bottom: 8px; flex-wrap: wrap; font-family: "Inter", sans-serif; }
.zd-breadcrumb a { color: #666; text-decoration: none; transition: color 0.3s ease; }
.zd-breadcrumb a:hover { color: #2E7D32; }
.zd-breadcrumb svg { stroke: #999; flex-shrink: 0; }

/* TYTUŁ PRODUKTU H1 */
.zd-product-title { font-family: "Inter", -apple-system, sans-serif; font-size: 24px; font-weight: 700; color: #1a1a1a; line-height: 1.25; margin-bottom: 6px; }

/* RATING */
.zd-product-rating { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid #f0f0f0; flex-wrap: wrap; }
.zd-rating-stars { display: flex; gap: 3px; }
.zd-rating-stars svg { width: 20px; height: 20px; }
.zd-rating-stars svg.filled { fill: #FFB800; stroke: #FFB800; }
.zd-rating-stars svg.empty { fill: none; stroke: #ddd; }
.zd-rating-count { font-size: 15px; color: #666; font-family: "Inter", sans-serif; }
.zd-rating-count a { color: #2E7D32; text-decoration: none; }
.zd-rating-count a:hover { text-decoration: underline; }

/* OPIS */
.zd-product-short-desc { font-size: 15px; line-height: 1.5; color: #555; margin-bottom: 10px; font-family: "Inter", sans-serif; }
.zd-product-short-desc p { margin: 0 0 6px 0; }

/* CENA */
.zd-product-price-box { background: transparent; border: none; border-radius: 0; padding: 0; margin-bottom: 4px; }
.zd-price-label { font-size: 13px; color: #767676; margin-bottom: 2px; font-family: "Inter", sans-serif; }
.zd-product-price { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.zd-price-current { font-size: 26px; font-weight: 700; color: #1a1a1a; font-family: "Inter", sans-serif; letter-spacing: -0.5px; }
.zd-price-old { font-size: 16px; color: #767676; text-decoration: line-through; font-family: "Inter", sans-serif; }
.zd-price-save { font-size: 12px; font-weight: 700; color: #e53935; background: #ffebee; padding: 3px 8px; border-radius: 50px; }
.zd-price-unit { font-size: 12px; color: #767676; font-family: "Inter", sans-serif; margin-top: 2px; }

/* ILOŚĆ */
.zd-product-actions { margin-bottom: 10px; }
.zd-quantity-wrapper { display: flex; align-items: center; gap: 20px; margin-bottom: 12px; flex-wrap: wrap; }
.zd-quantity-label { font-size: 14px; font-weight: 500; color: #333; font-family: "Inter", sans-serif; }
.zd-quantity-selector { display: flex; align-items: center; border: 2px solid #e5e5e5; border-radius: 12px; overflow: hidden; }
.zd-qty-btn { width: 48px; height: 48px; border: none; background: #fff; font-size: 20px; color: #333; cursor: pointer; transition: all 0.3s ease; display: flex; align-items: center; justify-content: center; font-family: "Inter", sans-serif; }
.zd-qty-btn:hover { background: #f5f5f5; color: #2E7D32; }
.zd-qty-input { width: 60px; height: 48px; border: none; border-left: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5; text-align: center; font-size: 16px; font-weight: 600; color: #333; font-family: "Inter", sans-serif; }
.zd-qty-input:focus { outline: none; }

/* PRZYCISK CTA */
.zd-add-to-cart-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 18px 32px; background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%); color: #fff; font-size: 16px; font-weight: 700; font-family: "Inter", sans-serif; border: none; border-radius: 12px; cursor: pointer; transition: all 0.3s ease; box-shadow: 0 4px 16px rgba(76, 175, 80, 0.35); letter-spacing: 0.3px; min-height: 56px; }
.zd-add-to-cart-btn:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(76, 175, 80, 0.45); }
.zd-add-to-cart-btn.disabled { background: #ccc; cursor: not-allowed; box-shadow: none; }

/* QTY + ATC w jednym rzędzie */
.zd-qty-atc-row { display: flex; align-items: stretch; gap: 10px; }
.zd-qty-selector { display: flex; align-items: center; border: 2px solid #e5e5e5; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.zd-qty-selector .zd-qty-btn { width: 44px; height: 52px; border: none; background: #fff; font-size: 20px; color: #333; cursor: pointer; transition: all 0.2s; display: flex; align-items: center; justify-content: center; }
.zd-qty-selector .zd-qty-btn:hover { background: #f0faf0; color: #2E7D32; }
.zd-qty-selector .zd-qty-btn:active { background: #e8f5e9; }
.zd-qty-selector .zd-qty-input { width: 44px; height: 52px; border: none; border-left: 1px solid #e5e5e5; border-right: 1px solid #e5e5e5; text-align: center; font-size: 16px; font-weight: 700; color: #1a1a1a; font-family: "Inter", sans-serif; -moz-appearance: textfield; }
.zd-qty-selector .zd-qty-input::-webkit-inner-spin-button,
.zd-qty-selector .zd-qty-input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.zd-qty-atc-row .zd-add-to-cart-btn { flex: 1; border-radius: 12px; padding: 16px 20px; font-size: 15px; min-height: 52px; }

/* SKU / kod produktu */
.zd-product-meta-info { margin-top: 8px; }
.zd-product-sku { font-size: 12px; color: #767676; font-family: "Inter", sans-serif; }
.zd-product-sku strong { color: #767676; font-weight: 500; }

/* ═══ BLOK ZAKUPOWY — jedna karta decyzyjna ═══ */
.zd-purchase-block { background: #fff; border: 1px solid #e5e5e5; border-radius: 12px; padding: 16px 18px; margin-bottom: 12px; }
.zd-purchase-block .zd-product-price-box { margin-bottom: 2px; padding: 0; background: transparent !important; border: none !important; border-radius: 0 !important; }
.zd-purchase-block .zd-product-price { gap: 8px; }
.zd-purchase-block .zd-price-current { font-size: 26px; font-weight: 700; letter-spacing: -0.5px; color: #1a1a1a; }
.zd-purchase-block .zd-low-stock { margin-top: 4px; margin-bottom: 8px; }
.zd-purchase-block .zd-product-actions { margin-bottom: 0; margin-top: 10px; }
.zd-purchase-block .zd-add-to-cart-btn { box-shadow: none; border-radius: 10px; }
.zd-purchase-meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: #616161; font-family: "Inter", sans-serif; margin: 4px 0 0; }
.zd-purchase-meta-item { display: flex; align-items: center; gap: 4px; }
.zd-purchase-meta-item svg { flex-shrink: 0; }
.zd-purchase-meta-sep { color: #ddd; }
.zd-purchase-phone { display: flex; align-items: center; gap: 6px; font-size: 12px; color: #767676; font-family: "Inter", sans-serif; text-decoration: none; padding-top: 10px; border-top: 1px solid #f0f0f0; margin-top: 10px; }
.zd-purchase-phone strong { color: #333; font-weight: 600; }
.zd-purchase-phone svg { stroke: #999; flex-shrink: 0; }

/* Low stock urgency */
.zd-low-stock { font-size: 14px; color: #d32f2f; font-weight: 700; margin-top: 8px; padding: 8px 14px; background: #ffebee; border-radius: 8px; display: inline-flex; align-items: center; gap: 6px; font-family: "Inter", sans-serif; }

/* Linki akcji pod USP */
.zd-product-links { display: flex; gap: 0; border-top: 1px solid #eee; margin-top: 20px; }
.zd-product-link { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 12px; font-size: 13px; font-weight: 600; color: #555; text-decoration: none; font-family: "Inter", sans-serif; transition: all 0.2s; text-transform: uppercase; letter-spacing: 0.3px; }
.zd-product-link:first-child { border-right: 1px solid #eee; }
.zd-product-link:hover { color: #2E7D32; background: #f8fdf8; }
.zd-product-link svg { flex-shrink: 0; stroke: currentColor; }

/* ═══ POPUP: Zapytaj o produkt ═══ */
.zd-ask-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.5); z-index: 99998; opacity: 0; transition: opacity 0.3s ease; }
.zd-ask-overlay.active { display: block; opacity: 1; }
.zd-ask-popup { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 99999; background: #fff; border-radius: 20px 20px 0 0; max-height: 90vh; overflow-y: auto; transform: translateY(100%); transition: transform 0.3s ease; padding: 24px 20px 32px; box-shadow: 0 -10px 40px rgba(0,0,0,0.15); }
.zd-ask-popup.active { display: block; transform: translateY(0); }
.zd-ask-close { position: absolute; top: 12px; right: 16px; background: none; border: none; font-size: 28px; color: #767676; cursor: pointer; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border-radius: 50%; }
.zd-ask-close:hover { background: #f5f5f5; color: #333; }
.zd-ask-header { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid #eee; }
.zd-ask-product-info { display: flex; align-items: center; gap: 12px; }
.zd-ask-thumb { width: 56px; height: 56px; border-radius: 10px; object-fit: cover; border: 1px solid #eee; flex-shrink: 0; }
.zd-ask-product-name { display: block; font-size: 14px; color: #1a1a1a; line-height: 1.3; font-family: "Nunito", sans-serif; }
.zd-ask-product-sku { font-size: 12px; color: #767676; }
.zd-ask-field { margin-bottom: 14px; }
.zd-ask-field label { display: block; font-size: 13px; font-weight: 600; color: #333; margin-bottom: 5px; font-family: "Inter", sans-serif; }
.zd-ask-field .required { color: #e53935; }
.zd-ask-field input[type="text"],
.zd-ask-field input[type="email"],
.zd-ask-field textarea { width: 100%; padding: 12px 14px; border: 2px solid #e5e5e5; border-radius: 12px; font-size: 15px; font-family: "Inter", sans-serif; color: #1a1a1a; transition: border-color 0.2s; box-sizing: border-box; }
.zd-ask-field input:focus, .zd-ask-field textarea:focus { border-color: #2E7D32; outline: none; }
.zd-ask-field textarea { resize: vertical; min-height: 100px; }
.zd-ask-consent label { display: flex; align-items: flex-start; gap: 8px; font-size: 12px; color: #666; line-height: 1.4; cursor: pointer; }
.zd-ask-consent input[type="checkbox"] { margin-top: 2px; flex-shrink: 0; width: 18px; height: 18px; accent-color: #2E7D32; }
.zd-ask-consent a { color: #2E7D32; }
.zd-ask-status { margin-bottom: 10px; }
.zd-ask-error { color: #e53935; font-size: 13px; font-weight: 600; }
.zd-ask-submit { width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 24px; background: linear-gradient(135deg, #4CAF50 0%, #43a047 100%); color: #fff; font-size: 16px; font-weight: 600; font-family: "Nunito", sans-serif; border: none; border-radius: 14px; cursor: pointer; transition: all 0.3s; box-shadow: 0 6px 20px rgba(76,175,80,0.3); }
.zd-ask-submit:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(76,175,80,0.4); }
.zd-ask-submit:disabled { opacity: 0.7; cursor: not-allowed; transform: none; }
.zd-ask-success { text-align: center; padding: 30px 10px; }
.zd-ask-success svg { margin-bottom: 12px; }
.zd-ask-success strong { display: block; font-size: 18px; color: #1a1a1a; margin-bottom: 8px; }
.zd-ask-success p { font-size: 14px; color: #666; }

/* MIKRO USP */
.zd-micro-usp { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; padding: 20px 0; border-top: 1px solid #eee; }
.zd-micro-usp-item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 12px 6px; }
.zd-micro-usp-icon { width: 48px; height: 48px; background: #f0faf0; border: 1px solid #e8f5e9; border-radius: 14px; display: flex; align-items: center; justify-content: center; }
.zd-micro-usp-text { font-size: 12px; color: #616161; line-height: 1.3; font-family: "Inter", sans-serif; }
.zd-micro-usp-text strong { display: block; color: #1a1a1a; font-size: 13px; font-weight: 600; margin-bottom: 2px; }
.zd-micro-usp-text span { display: block; }

/* SEKCJE OPISU */
.zd-product-sections { max-width: 900px; margin: 0 auto; padding: 0 30px; }
.zd-section { margin-bottom: 40px; }
.zd-section-title { font-family: "Inter", -apple-system, sans-serif; font-size: 22px; font-weight: 700; color: #1a1a1a; margin-bottom: 16px; padding-bottom: 10px; border-bottom: 2px solid #f0f0f0; position: relative; letter-spacing: -0.3px; }
.zd-section-title::after { content: ''; position: absolute; bottom: -2px; left: 0; width: 40px; height: 2px; background: #4CAF50; }
.zd-section-content { font-size: 15px; line-height: 1.65; color: #444; font-family: "Inter", sans-serif; }
.zd-section-content p { margin: 0 0 12px 0; }
.zd-section-content ul { margin: 0 0 14px 0; padding-left: 20px; }
.zd-section-content li { margin-bottom: 6px; }
/* Ograniczenie nagłówków w opisie — brak gigantycznych H1/H2 z WooCommerce */
.zd-section-content h1,
.zd-section-content h2 { font-size: 22px !important; font-weight: 700 !important; color: #1a1a1a !important; margin: 30px 0 15px !important; line-height: 1.3 !important; font-family: "Inter", sans-serif !important; }
.zd-section-content h3 { font-size: 19px !important; font-weight: 700 !important; color: #1a1a1a !important; margin: 25px 0 12px !important; line-height: 1.3 !important; }
.zd-section-content h4,
.zd-section-content h5,
.zd-section-content h6 { font-size: 17px !important; font-weight: 700 !important; color: #1a1a1a !important; margin: 20px 0 10px !important; line-height: 1.3 !important; }
/* Krótki opis przeniesiony do sekcji "Dlaczego warto" */
.zd-product-short-desc-section { font-size: 16px; line-height: 1.7; color: #555; margin-bottom: 24px; padding-bottom: 20px; border-bottom: 1px solid #eee; }

/* W SKRÓCIE */
.zd-summary-box { background: linear-gradient(135deg, #f8fdf8 0%, #e8f5e9 100%); border-radius: 20px; padding: 35px 40px; margin-bottom: 60px; }
.zd-summary-box h2 { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 600; color: #1a1a1a; margin-bottom: 25px; display: flex; align-items: center; gap: 12px; }
.zd-summary-list { display: flex; flex-direction: column; gap: 18px; }
.zd-summary-item { display: flex; align-items: flex-start; gap: 15px; font-size: 17px; color: #333; line-height: 1.6; }
.zd-summary-item svg { flex-shrink: 0; margin-top: 2px; }

/* BEZPIECZEŃSTWO */
.zd-safety-box { background: #fffbf0; border: 1px solid #ffe0b2; border-radius: 16px; padding: 25px 30px; display: flex; align-items: flex-start; gap: 20px; }
.zd-safety-icon { width: 50px; height: 50px; background: #fff3e0; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.zd-safety-content h3 { font-size: 18px; font-weight: 600; color: #333; margin: 0 0 10px 0; }
.zd-safety-content p { font-size: 15px; line-height: 1.6; color: #666; margin: 0; }

/* ════════════════════════════════════════════════════════════════
   OPINIE O SKLEPIE — HERO TRUST BLOCK
   ════════════════════════════════════════════════════════════════ */
.zd-shop-trust {
    background: linear-gradient(135deg, #f0fdf4 0%, #e8f5e9 50%, #f0fdf4 100%);
    border: 1px solid #c8e6c9;
    border-radius: 16px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.zd-shop-trust::before {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(76,175,80,0.08) 0%, transparent 70%);
    border-radius: 50%;
}

.zd-shop-trust-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #c8e6c9;
    border-radius: 50px;
    padding: 6px 14px;
    font-size: 11px;
    font-weight: 700;
    color: #2E7D32;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.zd-shop-trust-badge svg { flex-shrink: 0; }

.zd-shop-trust-score {
    font-family: "Nunito", sans-serif;
    font-size: 52px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 8px;
}
.zd-shop-trust-score span {
    font-size: 28px;
    color: #6b7280;
    font-weight: 600;
}

.zd-shop-trust-stars {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 12px;
}
.zd-shop-trust-stars .zd-star {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    fill: #FFB800;
    flex-shrink: 0;
}

.zd-shop-trust-text {
    font-size: 15px;
    color: #374151;
    font-weight: 600;
}
.zd-shop-trust-text strong { color: #1a1a1a; }

.zd-shop-trust-sub {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
}

/* ════════════════════════════════════════════════════════════════
   OPINIE O PRODUKCIE — SEKCJA
   ════════════════════════════════════════════════════════════════ */
.zd-opinions-section {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
}

.zd-opinions-title {
    font-family: "Nunito", sans-serif;
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    margin-bottom: 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8f5e9;
    position: relative;
}
.zd-opinions-title::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 50px;
    height: 2px;
    background: #4CAF50;
}

.zd-opinions-score {
    text-align: center;
    padding: 20px 16px 24px;
    margin-bottom: 20px;
}

.zd-opinions-score-number {
    font-family: "Nunito", sans-serif;
    font-size: 44px;
    font-weight: 800;
    color: #1a1a1a;
    line-height: 1;
    margin-bottom: 10px;
    letter-spacing: -1px;
}

.zd-opinions-score-stars {
    display: flex;
    justify-content: center;
    gap: 5px;
    margin-bottom: 10px;
}
.zd-opinions-score-stars .zd-star {
    width: 28px;
    height: 28px;
    max-width: 28px;
    max-height: 28px;
    flex-shrink: 0;
}
.zd-opinions-score-stars .zd-star.filled { fill: #FFB800; stroke: none; }
.zd-opinions-score-stars .zd-star.empty { fill: #e0e0e0; stroke: none; }

.zd-opinions-score-meta {
    font-size: 14px;
    color: #6b7280;
}
.zd-opinions-score-meta strong {
    color: #374151;
    font-weight: 700;
}

.zd-opinions-cta-card {
    background: #fff;
    border: 1px solid #e8f5e9;
    border-radius: 14px;
    padding: 28px 24px;
    text-align: center;
    margin-bottom: 24px;
}

.zd-opinions-cta-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.zd-opinions-cta-heading {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 8px;
    line-height: 1.35;
}

.zd-opinions-cta-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 20px;
    line-height: 1.5;
}

.zd-opinions-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, #4CAF50 0%, #43a047 100%);
    color: #fff;
    font-family: "Nunito", sans-serif;
    font-size: 15px;
    font-weight: 700;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
}
.zd-opinions-cta-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.zd-opinions-list { margin-bottom: 4px; }

.zd-opinions-form-wrapper {
    display: none;
    margin-top: 20px;
    margin-bottom: 24px;
}
.zd-opinions-form-wrapper.active {
    display: block;
    animation: zdFadeInUp 0.3s ease;
}

@keyframes zdFadeInUp {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.zd-opinions-form-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 24px;
}

.zd-opinions-form-title {
    font-family: "Nunito", sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin-bottom: 20px;
}

/* Ukryj domyślne WooCommerce elementy opinii wewnątrz nowej sekcji */
.zd-opinions-form-card .woocommerce-Reviews-title,
.zd-opinions-form-card .woocommerce-noreviews,
.zd-opinions-form-card #comments > .commentlist,
.zd-opinions-section > .woocommerce-Reviews {
    display: none;
}

.zd-review-item { 
    background: #fff; 
    border-radius: 16px; 
    padding: 25px 30px; 
    margin-bottom: 15px; 
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    border: 1px solid #f0f0f0;
}

.zd-review-item:last-child {
    margin-bottom: 0;
}

.zd-review-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: flex-start; 
    margin-bottom: 15px; 
    flex-wrap: wrap; 
    gap: 10px; 
}

.zd-review-author { 
    display: flex; 
    align-items: center; 
    gap: 15px; 
}

.zd-review-avatar { 
    width: 50px; 
    height: 50px; 
    background: linear-gradient(135deg, #4CAF50 0%, #81C784 100%); 
    border-radius: 50%; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    color: #fff; 
    font-size: 20px; 
    font-weight: 700; 
    font-family: "Nunito", sans-serif;
}

.zd-review-name { 
    font-size: 16px; 
    font-weight: 700; 
    color: #1a1a1a; 
    font-family: "Nunito", sans-serif;
}

.zd-review-date { 
    font-size: 13px; 
    color: #666; 
    font-family: "Inter", sans-serif;
}

.zd-review-stars { 
    color: #FFB800; 
    font-size: 18px; 
    letter-spacing: 2px; 
}

.zd-review-content { 
    font-size: 15px; 
    line-height: 1.7; 
    color: #555; 
    font-family: "Inter", sans-serif;
}

.zd-review-verified { 
    display: inline-flex; 
    align-items: center; 
    gap: 6px; 
    font-size: 13px; 
    color: #2E7D32; 
    margin-top: 12px; 
    font-weight: 500;
    font-family: "Inter", sans-serif;
}

/* ════════════════════════════════════════════════════════════════
   ACCORDION — BEZPIECZEŃSTWO
   ════════════════════════════════════════════════════════════════ */
.zd-accordion-toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    padding: 16px 20px;
    background: #fffbeb;
    border: 1px solid #fcd34d;
    border-radius: 12px;
    cursor: pointer;
    font-family: "Nunito", sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #92400e;
    text-align: left;
    transition: all 0.2s ease;
    -webkit-appearance: none;
    appearance: none;
}
.zd-accordion-toggle:hover { background: #fef3c7; }
.zd-accordion-icon { flex-shrink: 0; display: flex; align-items: center; }
.zd-accordion-label { flex: 1; }
.zd-accordion-arrow {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    color: #92400e;
    transition: transform 0.3s ease;
}
.zd-accordion-toggle.active .zd-accordion-arrow { transform: rotate(180deg); }
.zd-accordion-toggle.active { border-radius: 12px 12px 0 0; border-bottom: none; }
.zd-accordion-panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}
.zd-accordion-panel .zd-safety-box {
    border-radius: 0 0 12px 12px;
    border-top: none;
    padding: 16px 20px;
    margin: 0;
}
.zd-accordion-panel .zd-safety-content p {
    font-size: 14px;
    line-height: 1.6;
    color: #92400e;
    margin: 0;
}

/* BRAK OPINII */
.zd-no-reviews {
    text-align: center;
    padding: 40px 20px;
}

.zd-no-reviews-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 32px;
}

.zd-no-reviews-text {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    font-family: "Nunito", sans-serif;
}

.zd-no-reviews-subtext {
    font-size: 14px;
    color: #666;
    margin: 0;
    font-family: "Inter", sans-serif;
}

/* ════════════════════════════════════════════════════════════════
   FORMULARZ OPINII — KOMPLETNA STYLIZACJA
   Obejmuje WSZYSTKIE elementy generowane przez WooCommerce
   comments_template() + review-form.php
   ════════════════════════════════════════════════════════════════ */

/* --- Wrapper formularza --- */
#review_form_wrapper {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

/* Wrapper wewnątrz nowej karty opinii — reset marginesów */
.zd-opinions-form-card #review_form_wrapper {
    margin: 0;
    padding: 0;
    border: none;
}

/* --- Ukryj duplikaty tytułów WooCommerce --- */
.woocommerce-Reviews-title,
#review_form_wrapper .comment-reply-title small,
.zd-opinions-form-card .woocommerce-Reviews-title,
.zd-opinions-form-card .woocommerce-noreviews,
.zd-opinions-form-card #comments > .commentlist {
    display: none;
}

/* Ukryj tytuł WooCommerce formularza (mamy własny .zd-opinions-form-title) */
.zd-opinions-form-card #review_form .comment-reply-title {
    display: none;
}

/* Ukryj wrapper #comments gdy jest wewnątrz naszej karty */
.zd-opinions-form-card #comments {
    margin: 0;
    padding: 0;
}

/* --- Tytuł formularza --- */
#review_form .comment-reply-title {
    font-family: "Nunito", -apple-system, sans-serif;
    font-size: 20px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0 0 24px 0;
    line-height: 1.3;
}

/* --- Ogólny reset formularza --- */
#review_form .comment-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

/* --- Wspólne style pól (author, email, comment) --- */
#review_form .comment-form p {
    margin: 0;
}

#review_form .comment-form label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    display: block;
    margin-bottom: 8px;
    font-family: "Inter", sans-serif;
}

#review_form .comment-form label .required {
    color: #e53935;
    margin-left: 2px;
}

/* --- Pola input (imię, email) --- */
#review_form .comment-form input[type="text"],
#review_form .comment-form input[type="email"],
#review_form .comment-form input[type="url"] {
    width: 100%;
    padding: 14px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: "Inter", sans-serif;
    color: #1f2937;
    background: #fff;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

#review_form .comment-form input[type="text"]:focus,
#review_form .comment-form input[type="email"]:focus,
#review_form .comment-form input[type="url"]:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

#review_form .comment-form input[type="text"]::placeholder,
#review_form .comment-form input[type="email"]::placeholder {
    color: #9ca3af;
}

/* --- Rating (gwiazdki) --- */
#review_form .comment-form-rating {
    margin-bottom: 4px;
}

#review_form .comment-form-rating label {
    font-size: 15px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 10px;
}

/* Ukryj domyślny select gwiazdek */
#review_form .comment-form-rating select {
    display: none;
}

/* Gwiazdki klikalne (WooCommerce .stars) */
#review_form .stars {
    display: inline-flex;
    gap: 4px;
    margin-bottom: 4px;
}

#review_form .stars a {
    color: #d4d4d4;
    font-size: 30px;
    text-decoration: none;
    transition: color 0.15s ease, transform 0.15s ease;
    line-height: 1;
    cursor: pointer;
}

#review_form .stars a:hover {
    transform: scale(1.15);
}

#review_form .stars a:hover,
#review_form .stars a.active,
#review_form .stars.selected a {
    color: #FFB800;
}

#review_form .stars.selected a.active ~ a {
    color: #d4d4d4;
}

/* --- Textarea (treść opinii) --- */
#review_form .comment-form-comment textarea {
    width: 100%;
    min-height: 130px;
    padding: 16px 18px;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    font-family: "Inter", sans-serif;
    line-height: 1.6;
    color: #1f2937;
    background: #fff;
    resize: vertical;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
    -webkit-appearance: none;
    appearance: none;
}

#review_form .comment-form-comment textarea:focus {
    outline: none;
    border-color: #2E7D32;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.1);
}

#review_form .comment-form-comment textarea::placeholder {
    color: #9ca3af;
}

/* --- Checkbox: cookies / zapamiętaj mnie --- */
#review_form .comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

#review_form .comment-form-cookies-consent input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    flex-shrink: 0;
    accent-color: #2E7D32;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    cursor: pointer;
}

#review_form .comment-form-cookies-consent label {
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin-bottom: 0;
    cursor: pointer;
    line-height: 1.5;
}

/* --- Przycisk "Wyślij" --- */
#review_form .form-submit {
    margin-top: 6px;
}

#review_form .form-submit input[type="submit"] {
    width: 100%;
    padding: 16px 40px;
    background: linear-gradient(135deg, #4CAF50 0%, #43a047 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    font-family: "Nunito", sans-serif;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    -webkit-appearance: none;
    appearance: none;
}

#review_form .form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

#review_form .form-submit input[type="submit"]:active {
    transform: translateY(0);
    box-shadow: 0 2px 10px rgba(76, 175, 80, 0.3);
}

/* --- Tekst "Zaloguj się" / notki pod formularzem --- */
#review_form .comment-notes,
#review_form .logged-in-as {
    font-size: 13px;
    color: #6b7280;
    font-family: "Inter", sans-serif;
    margin: 0 0 8px 0;
    line-height: 1.5;
}

#review_form .logged-in-as a {
    color: #2E7D32;
    font-weight: 600;
    text-decoration: none;
}

#review_form .logged-in-as a:hover {
    text-decoration: underline;
}

/* --- Ukryj pole URL (strona WWW) — zbędne dla opinii --- */
#review_form .comment-form-url {
    display: none;
}

/* --- Layout: imię i email obok siebie na desktop --- */
@media (min-width: 600px) {
    #review_form .comment-form {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 18px;
    }

    /* Pola, które zajmują pełną szerokość */
    #review_form .comment-form-rating,
    #review_form .comment-form-comment,
    #review_form .comment-form-cookies-consent,
    #review_form .form-submit,
    #review_form .comment-notes,
    #review_form .logged-in-as {
        grid-column: 1 / -1;
    }

    /* Imię i email — po jednym w kolumnie */
    #review_form .comment-form-author,
    #review_form .comment-form-email {
        grid-column: span 1;
    }

    /* Przycisk — nie na pełną szerokość na desktop */
    #review_form .form-submit input[type="submit"] {
        width: auto;
        min-width: 220px;
    }
}

/* ========================================
   PODOBNE PRODUKTY - SLIDER (mobile-first)
   ======================================== */
.zd-related-section {
    padding: 24px 0 32px;
    margin-top: 24px;
    border-top: 1px solid #eee;
}

.zd-related-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    margin-bottom: 16px;
}

.zd-related-title {
    font-family: "Inter", -apple-system, sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    letter-spacing: -0.02em;
}

.zd-related-see-all {
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #2E7D32;
    text-decoration: none;
    white-space: nowrap;
}
.zd-related-see-all:hover {
    color: #388E3C;
}

/* SLIDER */
.zd-related-slider-wrap {
    position: relative;
    padding: 0 20px; /* miejsce na strzałki */
    margin: 0 -20px;
}

.zd-related-slider {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 0 16px 8px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.zd-related-slider::-webkit-scrollbar {
    display: none;
}

/* Strzałki nawigacji */
.zd-related-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-60%);
    z-index: 10;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #333;
    padding: 0;
    transition: box-shadow 0.2s, background 0.2s;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.zd-related-arrow:active {
    background: #f5f5f5;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}
.zd-related-arrow--left {
    left: 0;
    display: none;
}
.zd-related-arrow--right {
    right: 0;
}

/* KARTA */
.zd-related-card {
    flex: 0 0 150px;
    scroll-snap-align: start;
    background: #fff;
    border-radius: 14px;
    border: 1px solid #eee;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s ease;
}
.zd-related-card:active {
    box-shadow: 0 2px 12px rgba(0,0,0,0.1);
}

.zd-related-card-link {
    display: flex;
    flex-direction: column;
    flex: 1;
    text-decoration: none;
    color: inherit;
}

/* Obrazek */
.zd-related-card-img {
    position: relative;
    aspect-ratio: 1 / 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8px;
    background: #fff;
    overflow: hidden;
}
.zd-related-card-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

/* Badge promocja */
.zd-related-badge-sale {
    position: absolute;
    top: 6px;
    left: 6px;
    background: #e53935;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    z-index: 2;
}

/* Info */
.zd-related-card-info {
    padding: 8px 10px 6px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.zd-related-card-name {
    font-family: "Inter", sans-serif;
    font-size: 13.5px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin: 0 0 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: calc(13.5px * 1.35 * 2); /* 2 linie - mniej pustki, karty sie nie rozciagaja */
}

.zd-related-card-price {
    font-family: "Inter", sans-serif;
    font-size: 16px;
    font-weight: 800;
    color: #2E7D32;
    margin-top: auto;
    text-align: center;
}
.zd-related-card-price del {
    font-size: 12px;
    color: #777;
    font-weight: 500;
}
.zd-related-card-price ins {
    text-decoration: none;
    color: #2E7D32;
}

/* Przycisk */
.zd-related-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(100% - 16px);
    margin: 4px 8px 8px;
    padding: 9px 8px;
    background: linear-gradient(135deg, #4CAF50 0%, #388E3C 100%);
    color: #fff;
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    text-decoration: none;
    text-align: center;
    transition: background 0.2s;
    min-height: 42px;
}
.zd-related-card-btn:active {
    background: #388E3C;
}
.zd-related-card-btn--more {
    background: #fff;
    color: #2E7D32;
    border: 1.5px solid #4CAF50;
}
.zd-related-card-btn--more:active {
    background: #f0faf0;
}

/* Fix "rozjechane": rowna wysokosc kart + kompaktowy omnibus (bez przesadnego rozciagania).
   Karta jest flex-kolumna, .link ma flex:1, .price ma margin-top:auto, przycisk na dole -
   wiec przy rownej wysokosci ceny i guziki laduja w jednej linii niezaleznie od rating/omnibus. */
.zd-related-slider { align-items: stretch; }
.zd-related-card-price p,
.zd-related-card-price small,
.zd-related-card-price .wc-price-history,
.zd-related-card-price [class*="omnibus"],
.zd-related-card-price [class*="lowest"],
.zd-related-card-price [class*="history"] {
    display: block;
    font-size: 9.5px;
    font-weight: 500;
    color: #8a8a85;
    line-height: 1.25;
    margin: 2px 0 0;
    text-align: center;
}

/* DESKTOP - grid 4 kolumny */
@media (min-width: 769px) {
    .zd-related-section {
        padding: 40px 0 50px;
        margin-top: 40px;
    }
    .zd-related-header {
        padding: 0 20px;
        margin-bottom: 24px;
        max-width: 1200px;
        margin-left: auto;
        margin-right: auto;
    }
    .zd-related-title {
        font-size: 24px;
    }
    .zd-related-slider {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 20px;
        overflow-x: visible;
        padding: 0 20px;
        max-width: 1200px;
        margin: 0 auto;
    }
    .zd-related-card {
        flex: none;
        width: 100%;
    }
    .zd-related-card:hover {
        box-shadow: 0 8px 24px rgba(0,0,0,0.1);
        transform: translateY(-3px);
    }
    .zd-related-card-img {
        background: #fff;
    }
    .zd-related-card-img img {
        width: 100%;
        height: 100%;
    }
    .zd-related-card-name {
        font-size: 14px;
        height: calc(14px * 1.35 * 2);
    }
    .zd-related-arrow {
        display: none !important;
    }
    .zd-related-card-price {
        font-size: 17px;
    }
    .zd-related-card-btn {
        min-height: 44px;
        font-size: 13px;
    }
}

/* ========================================
   PASEK ZAUFANIA - TRUST BAR (karta produktu)
   ======================================== */
.zd-product-page .zd-trust-bar {
    padding: 20px 0 24px;
    background: #f8faf8;
    border-top: 1px solid #e8f0e8;
    border-bottom: none;
    margin-bottom: -60px; /* wchłania padding-bottom z .zd-product-page */
}

.zd-product-page .zd-trust-bar-inner {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    padding: 0 16px;
}

.zd-product-page .zd-trust-bar .zd-trust-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e5ede5;
    border-radius: 10px;
    padding: 12px 12px;
    font-size: inherit;
    color: inherit;
}

.zd-product-page .zd-trust-bar .zd-trust-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.zd-product-page .zd-trust-bar .zd-trust-icon svg {
    width: 24px;
    height: 24px;
    stroke: #4CAF50;
}

.zd-trust-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.zd-trust-label {
    font-family: "Inter", sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.25;
}

.zd-trust-desc {
    font-family: "Inter", sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #6b7280;
    line-height: 1.25;
}

/* DESKTOP - trust bar grid */
@media (min-width: 769px) {
    .zd-product-page .zd-trust-bar {
        padding: 30px 20px;
    }
    .zd-product-page .zd-trust-bar-inner {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 16px;
        overflow-x: visible;
        max-width: 1200px;
        margin: 0 auto;
        padding: 0;
    }
    .zd-product-page .zd-trust-bar .zd-trust-item {
        min-width: auto;
        padding: 16px 18px;
    }
    .zd-trust-label {
        font-size: 14px;
    }
    .zd-trust-desc {
        font-size: 12px;
    }
}

/* ========================================
   STICKY CTA - SMART (pokazuje przy scroll up)
   ======================================== */
.zd-sticky-cta { 
    display: none;
    position: fixed; 
    bottom: 60px; 
    left: 0; 
    right: 0; 
    background: #fff; 
    padding: 8px 15px; 
    box-shadow: 0 -2px 10px rgba(0,0,0,0.08); 
    z-index: 999; 
    border-top: 1px solid #eee;
    transform: translateY(100%);
    transition: transform 0.3s ease;
}

.zd-sticky-cta.visible {
    transform: translateY(0);
}

.zd-sticky-cta-inner { 
    display: flex; 
    align-items: center; 
    justify-content: space-between;
    gap: 15px;
    max-width: 500px; 
    margin: 0 auto; 
}

.zd-sticky-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.zd-sticky-name {
    font-size: 12px;
    color: #666;
    font-family: "Inter", sans-serif;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 150px;
}

.zd-sticky-price {
    font-size: 20px;
    font-weight: 800;
    color: #1a1a1a;
    font-family: "Nunito", sans-serif;
}

.zd-sticky-btn { 
    flex: 1;
    max-width: 180px;
    display: flex; 
    align-items: center; 
    justify-content: center; 
    gap: 8px; 
    padding: 14px 20px; 
    background: linear-gradient(135deg, #4CAF50 0%, #43a047 100%); 
    color: #fff; 
    font-size: 14px; 
    font-weight: 700; 
    font-family: "Nunito", sans-serif;
    border: none; 
    border-radius: 10px; 
    cursor: pointer; 
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    transition: all 0.3s ease;
    text-decoration: none;
}

.zd-sticky-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

/* RESPONSYWNOŚĆ */
@media (max-width: 1100px) {
    .zd-product-hero { gap: 30px; }
    .zd-product-title { font-size: 22px; }
    .zd-price-current { font-size: 26px; }
}

@media (max-width: 992px) {
    .zd-product-hero { grid-template-columns: 1fr; gap: 20px; padding: 15px 0 30px; }
    .zd-product-gallery { position: static; }
    .zd-gallery-main img { height: 380px; }
    .zd-product-container, .zd-product-sections { padding: 0 20px; }
    .zd-sticky-cta { display: block; }
    .zd-product-page { padding-bottom: 100px; }
}

@media (max-width: 768px) {
    .zd-product-hero { padding: 0 0 10px; }
    .zd-breadcrumb { display: none; }
    .zd-gallery-main { padding: 0; border-radius: 0; margin-bottom: 8px; }
    .zd-gallery-main img { height: 350px; }
    .zd-gallery-thumb { width: 50px; height: 50px; }
    .zd-product-title { font-size: 20px; font-weight: 700; margin-bottom: 4px; line-height: 1.25; }
    .zd-product-short-desc { font-size: 14px; margin-bottom: 8px; line-height: 1.5; }
    .zd-product-rating { margin-bottom: 6px; padding-bottom: 6px; }
    .zd-product-rating.zd-no-reviews { margin-bottom: 4px; padding-bottom: 4px; }
    .zd-product-price-box { margin-bottom: 2px; padding: 0; background: none; border: none; }
    .zd-price-current { font-size: 24px; }
    .zd-price-label { margin-bottom: 0; font-size: 12px; }
    .zd-product-actions { margin-bottom: 0; }
    .zd-qty-atc-row { gap: 8px; }
    .zd-qty-selector .zd-qty-btn { width: 40px; height: 48px; font-size: 18px; }
    .zd-qty-selector .zd-qty-input { width: 40px; height: 48px; font-size: 15px; }
    .zd-qty-atc-row .zd-add-to-cart-btn { padding: 14px 16px; font-size: 14px; gap: 8px; min-height: 48px; }
    .zd-product-benefits { margin-top: 6px; margin-bottom: 6px; }
    .zd-benefit-item { padding: 5px 0; gap: 8px; }
    .zd-benefit-icon { width: 30px; height: 30px; }
    .zd-benefit-icon svg { width: 14px; height: 14px; }
    .zd-benefit-title { font-size: 13px; }
    .zd-benefit-desc { font-size: 11px; }
    .zd-micro-usp { gap: 8px; padding: 16px 0; }
    .zd-micro-usp-item { padding: 10px 4px; }
    .zd-micro-usp-icon { width: 46px; height: 46px; }
    .zd-micro-usp-text { font-size: 11px; }
    .zd-micro-usp-text strong { font-size: 12px; }
    .zd-section { margin-bottom: 30px; }
    .zd-section-title { font-size: 18px; margin-bottom: 12px; padding-bottom: 8px; }
    .zd-section-content { font-size: 14px; line-height: 1.6; }
    .zd-purchase-block { padding: 12px 14px; border-radius: 12px; margin-bottom: 10px; }
    .zd-purchase-meta { font-size: 14px; gap: 8px; margin-bottom: 10px; color: #555; font-weight: 500; }
    .zd-purchase-meta-item svg { width: 18px; height: 18px; }
    .zd-purchase-meta-sep { font-size: 14px; }
    .zd-purchase-phone { font-size: 12px; }
    .zd-summary-box { padding: 25px; }
    .zd-reviews-section { padding: 25px; }
    .zd-reviews-average { font-size: 40px; }
    .zd-review-item { padding: 20px; }
    
    /* Nowe opinie — mobile */
    .zd-shop-trust { padding: 22px 18px; }
    .zd-shop-trust-score { font-size: 44px; }
    .zd-shop-trust-score span { font-size: 24px; }
    .zd-opinions-section { padding: 18px 16px; }
    .zd-opinions-score { padding: 16px 12px 20px; }
    .zd-opinions-score-number { font-size: 38px; }
    .zd-opinions-cta-card { padding: 22px 18px; }
    .zd-opinions-cta-heading { font-size: 16px; }
    .zd-opinions-form-card { padding: 18px 16px; }
    .zd-safety-box { flex-direction: column; text-align: center; align-items: center; }
    
    #review_form .comment-form-comment textarea {
        min-height: 100px;
        padding: 14px 14px;
        font-size: 16px;
    }
    
    #review_form .comment-form input[type="text"],
    #review_form .comment-form input[type="email"] {
        padding: 12px 14px;
        font-size: 16px;
    }
    
    #review_form .stars a {
        font-size: 34px;
    }
    
    #review_form .form-submit input[type="submit"] {
        padding: 18px 30px;
        font-size: 16px;
    }
    
    /* Trust bar — wchłania padding-bottom kontenera na mobile */
    .zd-product-page .zd-trust-bar {
        margin-bottom: -100px;
        padding-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .zd-product-container, .zd-product-sections { padding: 0 15px; }
    .zd-product-title { font-size: 22px; margin-bottom: 8px; }
    .zd-breadcrumb { font-size: 13px; }
    .zd-gallery-main img { height: 280px; }
    .zd-qty-btn { width: 44px; height: 44px; }
    .zd-qty-input { width: 60px; height: 44px; }
    .zd-product-price-box { padding: 0; margin-bottom: 2px; border-radius: 0; background: none; border: none; }
    .zd-price-current { font-size: 26px; }
    .zd-product-rating { margin-bottom: 8px; padding-bottom: 8px; }
    .zd-product-rating.zd-no-reviews { margin-bottom: 6px; padding-bottom: 6px; }
    
    .zd-sticky-cta-inner { 
        gap: 12px; 
    }
    .zd-sticky-name {
        max-width: 120px;
    }
    .zd-sticky-price { 
        font-size: 18px; 
    }
    .zd-sticky-btn { 
        padding: 12px 16px;
        font-size: 13px;
    }

    /* Trust bar — kompaktowe na małych ekranach */
    .zd-product-page .zd-trust-bar-inner {
        gap: 6px;
        padding: 0 12px;
    }
    .zd-product-page .zd-trust-bar .zd-trust-item {
        padding: 10px 10px;
        gap: 8px;
    }
    .zd-product-page .zd-trust-bar .zd-trust-label {
        font-size: 11.5px;
    }
    .zd-product-page .zd-trust-bar .zd-trust-desc {
        font-size: 10px;
    }
}


/* Desktop: popup wycentrowany */
@media (min-width: 769px) {
    .zd-ask-popup { bottom: auto; top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%) scale(0.9); border-radius: 20px; max-width: 500px; width: 90%; opacity: 0; }
    .zd-ask-popup.active { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* ════════════════════════════════════════
   LIGHTBOX — FULLSCREEN ZDJĘCIA PRODUKTU
   ════════════════════════════════════════ */

.zd-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

.zd-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.zd-lightbox-img-wrap {
    max-width: 90vw;
    max-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.zd-lightbox-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 4px;
    user-select: none;
    -webkit-user-select: none;
}

.zd-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    color: #fff;
    font-size: 36px;
    cursor: pointer;
    z-index: 10;
    line-height: 1;
    padding: 8px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.zd-lightbox-close:hover {
    opacity: 1;
}

.zd-lightbox-prev,
.zd-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    line-height: 1;
}

.zd-lightbox-prev { left: 12px; }
.zd-lightbox-next { right: 12px; }

.zd-lightbox-prev:hover,
.zd-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.zd-lightbox-counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    font-weight: 500;
}

@media (max-width: 768px) {
    .zd-lightbox-prev,
    .zd-lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 32px;
    }
    .zd-lightbox-prev { left: 6px; }
    .zd-lightbox-next { right: 6px; }
    .zd-lightbox-close { top: 10px; right: 12px; font-size: 30px; }
}

/* ═══ Podobne produkty — gwiazdki ocen (tylko gdy są opinie) 2026-07 ═══ */
.zd-related-card-rating { display: flex; align-items: center; gap: 5px; margin: 0 0 6px; }
.zd-stars { position: relative; display: inline-block; color: #dcdcdc; font-size: 13px; letter-spacing: 1px; line-height: 1; white-space: nowrap; }
.zd-stars-fill { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #f5a623; }
.zd-related-rcount { font-size: 11px; color: #888; font-weight: 600; }
