/* Envanter Savunma — Modern içerik düzeni
   Ürün/firma sayfalarındaki .es-icerik bloğunun layout'u
   Hem masaüstü hem mobilde kusursuz görünür
*/

.es-icerik {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: #2a2a2a;
    line-height: 1.7;
    font-size: 1.02rem;
    max-width: 100%;
}
.es-icerik > * + * {
    margin-top: 1rem;
}

/* Info kartı (sayfanın üstünde — üretici, kategori, menşei, hizmete giriş) */
.es-info-kart {
    background: linear-gradient(135deg, #f8f9fb 0%, #eef1f5 100%);
    border: 1px solid #e2e6ed;
    border-left: 4px solid var(--es-accent, #B8252D);
    border-radius: 6px;
    padding: 1.1rem 1.3rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem 1.5rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.04);
}
.es-info-row {
    display: flex;
    flex-direction: column;
    gap: 0.18rem;
    min-width: 0;
}
.es-info-label {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6b7280;
    font-weight: 600;
}
.es-info-value {
    font-size: 1rem;
    color: #111827;
    word-break: break-word;
}
.es-info-value a {
    color: var(--es-accent, #B8252D);
    text-decoration: none;
    border-bottom: 1px dotted currentColor;
}
.es-info-value a:hover { border-bottom-style: solid; }

/* Section başlıkları */
.es-baslik {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 1.6rem 0 0.7rem;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--es-accent, #B8252D);
    display: inline-block;
    color: #111827;
}

/* Paragraflar */
.es-icerik p {
    margin: 0 0 0.9rem;
    color: #374151;
    text-align: justify;
}

/* Spec listesi (key-value bullet) */
.es-spec-liste {
    list-style: none;
    padding: 0;
    margin: 0.8rem 0 1.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.55rem 1rem;
}
.es-spec-liste li {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.6rem 0.85rem;
    font-size: 0.95rem;
    line-height: 1.45;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.es-spec-liste li:hover {
    border-color: var(--es-accent, #B8252D);
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}
.es-spec-liste strong {
    color: var(--es-accent, #B8252D);
    font-weight: 700;
    margin-right: 0.3rem;
}

/* Kaynak kutusu */
.es-kaynak-kutusu {
    margin-top: 1.5rem;
    padding: 0.9rem 1.1rem;
    background: #fff8e6;
    border: 1px solid #f0d68a;
    border-left: 4px solid #d4a634;
    border-radius: 4px;
    font-size: 0.9rem;
    color: #5a4a18;
    line-height: 1.55;
}
.es-kaynak-kutusu strong { color: #6b4d10; }

/* Firma sayfası özel */
.es-firma-kart {
    background: linear-gradient(135deg, #fef2f2 0%, #fff5f5 100%);
    border-left-color: var(--es-accent, #B8252D);
}

/* Single sayfa kapsayıcısı için ek düzen */
.envanter-single-wrap {
    background: #fff;
    border-radius: 8px;
}

/* Featured image yoksa hero placeholder (single-savunma_sistemi.php için) */
.envanter-kart:not(:has(.envanter-galeri)) .envanter-kart-header-galerili {
    padding-top: 1rem;
}

/* MOBILE */
@media (max-width: 768px) {
    .es-icerik { font-size: 0.96rem; line-height: 1.65; }
    .es-info-kart {
        grid-template-columns: 1fr;
        padding: 0.95rem 1rem;
        gap: 0.7rem;
    }
    .es-baslik {
        font-size: 1.2rem;
        margin: 1.2rem 0 0.6rem;
    }
    .es-spec-liste {
        grid-template-columns: 1fr;
        gap: 0.45rem;
    }
    .es-spec-liste li {
        padding: 0.55rem 0.75rem;
        font-size: 0.9rem;
    }
    .es-kaynak-kutusu {
        font-size: 0.83rem;
        padding: 0.75rem 0.9rem;
    }
    .es-icerik p { text-align: left; }
}

@media (max-width: 480px) {
    .es-info-label { font-size: 0.68rem; }
    .es-info-value { font-size: 0.95rem; }
    .es-baslik { font-size: 1.1rem; }
}

/* PRINT */
@media print {
    .es-info-kart, .es-spec-liste li, .es-kaynak-kutusu { box-shadow: none; }
}
