
/* ===========================
   CADEIA PRODUTIVA - LAYOUT
   =========================== */

.cadeia-timeline {
    margin-top: 30px;
    border-left: 3px solid #dcdcdc;
    padding-left: 25px;
}

.cadeia-card {
    display: flex;
    margin-bottom: 40px;
    position: relative;
}

.cadeia-step {
    position: absolute;
    left: -42px;
    top: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.cadeia-step-icon {
    width: 38px;
    height: 38px;
    background: #09A9A2;
    color: white;
    border-radius: 50%;
    font-weight: bold;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.cadeia-line {
    width: 3px;
    flex-grow: 1;
    background: #c5c5c5;
    margin-top: 5px;
}

.cadeia-content {
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 25px;
    border: 1px solid #e8e8e8;
    width: 100%;
    box-shadow: 0 3px 8px rgba(0,0,0,0.06);
}

.cadeia-tipo {
    font-weight: 700;
    font-size: 13px;
    margin-bottom: 8px;
    display: inline-block;
    padding: 3px 8px;
    border-radius: 6px;
    color: #fff;
}

/* Cores por tipo */
.tipo-produtor { background:#E67E22; }
.tipo-fornecedor { background:#27AE60; }
.tipo-distribuidor { background:#2980B9; }
.tipo-varejo        { background:#8E44AD; } /* corrigido */

.cadeia-nome {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.cadeia-detalhe {
    margin-bottom: 4px;
    color: #444;
}

@media (max-width: 768px) {
    .cadeia-timeline {
        border-left: none;
        padding-left: 0;
    }

    .cadeia-step {
        position: relative;
        left: 0;
        margin-bottom: 10px;
        flex-direction: row;
    }

    .cadeia-line {
        display: none;
    }
}
.cadeia-social {
    margin-top: 10px;
    display: flex;
    gap: 12px;
}

.social-link {
    font-size: 25px;
    transition: .25s ease-in-out;
}

.social-link:hover {
    transform: translateY(-3px);
}

/* Cores das redes */
.social-link.insta { color: #E1306C; }
.social-link.face  { color: #1877F2; }
.social-link.whats { color: #25D366; }
.produtor-card-detalhe {
    background: #fff;
    border-radius: 18px;
    padding: 20px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.08);
}

/* ======================================================
   CARD PRODUTOR — ESTILO PROFISSIONAL
   ====================================================== */

.produtor-card-detalhe {
    background: #ffffff;
    border-radius: 14px;
    padding: 28px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.06);
    max-width: 1100px;
    margin: 0 auto;
}

/* ======================================================
   TOPO — LOGO + NOME
   ====================================================== */

.produtor-topo {
    display: flex;
    align-items: center;
    gap: 28px;
    flex-wrap: wrap;
}

/* Logo */
.produtor-logo-bloco {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.produtor-logo-grande {
    width: 130px;
    height: 130px;
    object-fit: contain;
    background: #f8f9fa;
    border-radius: 16px;
    padding: 12px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Redes sociais */
.produtor-redes {
    display: flex;
    gap: 12px;
}

.produtor-redes a {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f1f3f5;
    border-radius: 50%;
    color: #2c3e50;
    font-size: 1.2rem;
    transition: all 0.25s ease;
}

.produtor-redes a:hover {
    background: #27a99a;
    color: #ffffff;
    transform: translateY(-3px);
}

/* Nome */
.produtor-nome-bloco {
    flex: 1;
}

.produtor-titulo {
    font-size: 2rem;
    font-weight: 700;
    color: #1f2d3d;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    position: relative;
    padding-bottom: 10px;
}

/* Linha decorativa */
.produtor-titulo::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 70px;
    height: 4px;
    background: linear-gradient(90deg, #27a99a, #1f7f73);
    border-radius: 3px;
}

/* ======================================================
   DESCRIÇÃO
   ====================================================== */

.produtor-descricao {
    margin-top: 22px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: #3e4a59;
    text-align: justify;
    text-justify: inter-word;
    max-width: 900px;
    letter-spacing: 0.3px;
    word-spacing: 1px;

    background: #f9fbfc;
    padding: 22px 26px;
    border-left: 5px solid #27a99a;
    border-radius: 10px;
}

/* ======================================================
   GALERIA (SWIPER)
   ====================================================== */

.produtor-swiper {
    margin-top: 30px;
}

.produtor-swiper img {
    width: 100%;
    height: 280px;
    object-fit: cover;
    border-radius: 14px;
    transition: transform 0.35s ease;
}

.produtor-swiper img:hover {
    transform: scale(1.05);
}

/* Botões Swiper */
.produtor-swiper .swiper-button-next,
.produtor-swiper .swiper-button-prev {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.55);
    width: 44px;
    height: 44px;
    border-radius: 50%;
}

.produtor-swiper .swiper-button-next::after,
.produtor-swiper .swiper-button-prev::after {
    font-size: 16px;
}

/* Paginação */
.produtor-swiper .swiper-pagination-bullet {
    background: #27a99a;
    opacity: 0.4;
}

.produtor-swiper .swiper-pagination-bullet-active {
    opacity: 1;
}

/* ======================================================
   VÍDEOS
   ====================================================== */

.produtor-videos {
    margin-top: 36px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.produtor-videos iframe {
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

/* ======================================================
   RESPONSIVO
   ====================================================== */

@media (max-width: 768px) {

    .produtor-card-detalhe {
        padding: 20px;
    }

    .produtor-topo {
        flex-direction: column;
        text-align: center;
    }

    .produtor-titulo {
        font-size: 1.6rem;
    }

    .produtor-titulo::after {
        left: 50%;
        transform: translateX(-50%);
    }

    .produtor-descricao {
        padding: 18px;
        text-align: left;
    }

    .produtor-swiper img {
        height: 220px;
    }
}
/* Remove margens SOMENTE da aba Produtor */
#tab-produtor {
    padding-left: 0 !important;
    padding-right: 0 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    margin-top: 0 !important;
    margin-bottom: 0 !important;
    padding-top: 0 !important;
    padding-right: 0 !important;
}
