
/**
 * Estilos específicos da página de produto (Product Page)
 *
 * Este arquivo contém apenas os estilos específicos da página de produto.
 * Os estilos comuns (header, footer, variáveis CSS) estão em peticoes_custom_theme.css
 */

 .navbar-main {
    margin-top: 60px;
}

.breadcrumb-custom {
    margin-top: 1rem;
    margin-bottom: 1rem;

}

/* ========================================
   PRODUCT PAGE - CAPA DA PETIÇÃO
   ======================================== */

/* Capa da Petição - Vertical A4 */
.peticao-cover {
    background: var(--white);
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 3px solid var(--light-green);
    position: sticky;
    top: 100px;
}

.cover-image-wrapper {
    aspect-ratio: 210/297; /* A4 proporção */
    width: 100%;
    background: linear-gradient(180deg, #f5f9f5 0%, #ffffff 100%);
    border: 2px solid var(--light-green);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(45, 95, 46, 0.1);
    position: relative;
}

.cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Placeholder quando não há capa */
.cover-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 30px;
    background: linear-gradient(135deg, #f5f9f5 0%, #e8f5e8 100%);
}

.cover-placeholder-icon {
    font-size: 8rem;
    background: linear-gradient(135deg, var(--secondary-green), var(--light-green));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 20px;
}

.cover-placeholder-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    text-align: center;
    line-height: 1.3;
    margin-bottom: 10px;
}

.cover-placeholder-type {
    color: var(--secondary-green);
    font-weight: 600;
    font-size: 1.1rem;
}

.cover-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--gold-accent);
    color: var(--dark-green);
    padding: 8px 20px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 0.85rem;
    box-shadow: 0 3px 10px rgba(212, 175, 55, 0.4);
    z-index: 1;
}

.format-badges {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
    flex-wrap: wrap;
}

.format-badge {
    background: var(--secondary-green);
    color: var(--white);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 0.85rem;
}


.peticao-sobre,
.peticao-preview {
    background: var(--white);
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    margin-bottom: 30px;
}

.preview-header {
    border-bottom: 3px solid var(--light-green);
    padding-bottom: 20px;
    margin-bottom: 30px;
}

.preview-category {
    display: inline-block;
    background: var(--light-green);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 25px;
    font-weight: 600;
    font-size: 0.9rem;
    margin-bottom: 15px;
}

.preview-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--primary-green);
    margin-bottom: 15px;
    line-height: 1.2;
}

.preview-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.stars {
    color: var(--gold-accent);
    font-size: 1.3rem;
}

/* Trecho da Petição */
.peticao-excerpt {
    background: #f8fdf8;
    border-left: 5px solid var(--secondary-green);
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    font-family: 'Georgia', serif;
}

.peticao-excerpt-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.peticao-text {
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--dark-gray);
    text-align: justify;
}

.peticao-text p {
    margin-bottom: 0px !important;
    line-height: 1;
}

.peticao-text div p {
    padding-left: 40% !important;
}

.peticao-text strong {
    color: var(--primary-green);
    font-weight: 700;
}

.peticao-signature {
    text-align: center;
    margin-top: 30px;
    padding-top: 30px;
    border-top: 2px solid var(--light-green);
    font-style: italic;
    color: var(--gray);
}


.peticao-excerpt .notification-box {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-left: 28px;
    max-width: fit-content;
}

.peticao-excerpt .checkmark {
    width: 18px;
    height: 18px;
    background-color: #3e704a;
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 14px;
    flex-shrink: 0;
}

.peticao-excerpt .message-text {
    color: #155724;
    font-size: 14px;
    letter-spacing: 0.5px;
    margin: 0;
}

/* ========================================
   VERSÃO HÍBRIDA COM EXPAND/COLLAPSE
   ======================================== */

.peticao-content-preview {
    position: relative;
    overflow: hidden;
    transition: max-height 0.5s ease;
}

.peticao-content-preview.expanded {
    max-height: none !important;
    overflow: visible;
}

/* Gradient Fade Overlay */
.peticao-content-fade-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 180px;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.7) 40%,
        rgba(255,255,255,0.95) 70%,
        rgba(255,255,255,1) 100%
    );
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.peticao-content-preview.expanded .peticao-content-fade-overlay {
    opacity: 0;
    display: none;
}

/* Botões Compartilhados */
.peticao-toggle-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    padding: 1.125rem;
    border: none;
    background: linear-gradient(135deg, #2d5016 0%, #1e3810 100%);
    color: white;
    font-size: 1.0625rem;
    font-weight: 700;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(45, 80, 22, 0.3);
    margin-top: 0;
}

.peticao-toggle-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.4);
    background: linear-gradient(135deg, #1e3810 0%, #0f1f08 100%);
}

.peticao-toggle-button:active {
    transform: translateY(0);
}

.peticao-toggle-button i {
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

/* Ícone "para baixo" quando expandir */
.show-more-button:hover i {
    transform: translateY(3px);
}

/* Ícone "para cima" quando recolher */
.show-less-button:hover i {
    transform: translateY(-3px);
}

.peticao-toggle-button.hidden {
    display: none !important;
}

/* Separador visual entre conteúdo e botão */
.peticao-content-separator {
    height: 1px;
    background: linear-gradient(
        to right,
        transparent 0%,
        #e0e0e0 20%,
        #e0e0e0 80%,
        transparent 100%
    );
    margin: 2rem 0 0 0;
}

/* Text indicator (...) */
.peticao-ellipsis-indicator {
    text-align: center;
    font-size: 1.5rem;
    color: #999;
    padding: 1rem 0 0 0;
    letter-spacing: 0.5rem;
}

/* Compatibilidade com código antigo */
.peticao-text-wrapper {
    transition: max-height 0.5s ease;
}

.peticao-read-more-wrapper {
    margin-top: 20px;
    margin-bottom: 10px;
}

.btn-read-more {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    padding: 7px 25px;
    border-radius: 25px;
    transition: all 0.3s ease;
    color: #3e704a;
}

.btn-read-more:hover {
    background: var(--secondary-green);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(74, 143, 77, 0.3);
}

.btn-read-more i {
    font-size: 26px;
    margin-right: 5px;
    transition: transform 0.3s ease;
}

.btn-read-more:hover i {
    transform: translateY(2px);
}

.tab-pane .lead {
    font-size: 1rem;
}

.urgency-counter {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
    padding: 0.75rem;
    border-radius: 8px;
    margin-bottom: 1.5rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: #92400e;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

/* Author Expert Section */
.author-expert-section {
    background: linear-gradient(135deg, #f8fdf8 0%, #ffffff 100%);
    border-radius: 12px;
    padding: 0px;
    margin: 30px 0;
    box-shadow: 0 4px 15px rgba(45, 95, 46, 0.08);
    border: 1px solid #e8f5e9;
}

.author-expert-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--light-green);
}

.author-expert-title {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.author-expert-title i {
    font-size: 1.5rem;
}

.author-expert-subtitle {
    font-size: 0.95rem;
    color: var(--gray);
    margin-top: 8px;
}

.author-expert-content {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.author-photo-wrapper {
    flex-shrink: 0;
}

.author-photo-large {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid var(--secondary-green);
    box-shadow: 0 4px 15px rgba(45, 95, 46, 0.2);
    background: #f5f5f5;
}

.author-details {
    flex: 1;
}

.author-name-large {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-green);
    margin: 0 0 5px 0;
    line-height: 1.2;
}

.author-name-large a {
    color: var(--primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.author-name-large a:hover {
    color: var(--secondary-green);
}

.author-specialty {
    font-size: 1rem;
    color: #555;
    font-style: italic;
    margin-bottom: 15px;
}

.author-bio {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.6;
    margin-bottom: 20px;
}

.author-credentials {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 15px;
}

.credential-badge {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 7px;
    background: #ffffff;
    border: 1px solid var(--light-green);
    border-radius: 20px;
    font-size: 0.70rem;
    color: var(--primary-green);
    font-weight: 600;
}

.credential-badge i {
    font-size: 1rem;
    color: var(--secondary-green);
}

.author-cta {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #e0e0e0;
}

.author-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: var(--secondary-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.author-link:hover {
    color: var(--light-green);
}

.author-link i {
    font-size: 1.1rem;
}

/* Price Box */
.price-box {
    background: linear-gradient(135deg, var(--white) 0%, #f0f9f0 100%);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border: 3px solid var(--light-green);
    position: sticky;
    top: 100px;
}

.price-amount {
    font-size: 3rem;
    font-weight: 800;
    color: var(--secondary-green);
    text-align: center;
}

/* Formas de Pagamento */
.payment-methods {
    background: rgba(45, 95, 46, 0.03);
    border-radius: 12px;
    padding: 15px;
    border: 1px solid rgba(45, 95, 46, 0.1);
}

.payment-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.payment-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 12px;
    background: var(--white);
    border-radius: 8px;
    font-size: 0.85rem;
    color: var(--dark-gray);
    transition: all 0.3s ease;
}

.payment-item:hover {
    background: rgba(45, 95, 46, 0.05);
    transform: translateX(3px);
}

.payment-item i {
    font-size: 1.2rem;
    color: var(--secondary-green);
    flex-shrink: 0;
}

.payment-item span {
    font-weight: 500;
}

.btn-buy-primary {
    background: #203A24;
    color: var(--white);
    border: none;
    padding: 18px 30px;
    font-size: 1rem;
    font-weight: 700;
    border-radius: 50px;
    width: 100%;
    margin-bottom: 15px;
    transition: all 0.3s ease;
    box-shadow: 0 5px 20px rgba(74, 143, 77, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

.btn-buy-primary span {
    flex: 1;
    text-align: center;
}

.btn-buy-primary i.bi-arrow-right-short {
    position: absolute;
    right: 20px;
    line-height: 0;
}

.btn-buy-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(74, 143, 77, 0.8);
    background: #20c997;
}

/* Free download button alignment */
.btn-success.w-100.btn-lg {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    padding-left: 30px;
    padding-right: 30px;
}

.btn-success.w-100.btn-lg > span {
    flex: 1;
    text-align: center;
}

.btn-success.w-100.btn-lg > i.bi-arrow-right-short {
    position: absolute;
    right: 20px;
    line-height: 0;
}

.btn-success.w-100.btn-lg i:not(.bi-arrow-right-short) {
    line-height: 0;
}

/* Features */
.features-list {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

.features-list li {
    padding: 15px 0;
    border-bottom: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
    gap: 15px;
}

.feature-icon {
    color: var(--secondary-green);
    font-size: 1.5rem;
}

/* Specifications */
.spec-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 30px 0;
}

.spec-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 15px;
    background: var(--light-gray);
    border-radius: 10px;
}

.spec-icon {
    color: var(--secondary-green);
    font-size: 1.5rem;
}

/* accordion relacionadas */
.accordion-header {
    font-size: 16px;
    font-weight: bold;
    color:#203a24;
}

.accordion-button::after {
    display: none;
}
.accordion-button {
    border: none;
}
.accordion-button,
.accordion-button:not(.collapsed) {
    color:#007bff !important;
    width: fit-content;
    display: block !important;
}
.toggle-text {
    /*margin-left: calc(calc(100% / 2) - 107.25px);*/
    font-weight: normal;
}

.accordion-body h4,
.accordion-body h5 {
    font-size: 14px;
}

/* Peças Relacionadas - Remover marcadores da lista */
.accordion-body ul {
    list-style: none;
    padding-left: 0;
}

.accordion-body ul li {
    padding-left: 0;
}

.accordion-body ul li::marker {
    display: none;
}

/* ========================================
   RESPONSIVE - MOBILE (Product-Specific)
   ======================================== */

@media (max-width: 768px) {
    .container.my-5 {
        margin-top: 130px !important;
    }
    
    /* Product Page Content - Mobile */
    .peticao-cover,
    .price-box {
        position: static;
        margin-bottom: 30px;
    }

    .spec-grid {
        grid-template-columns: 1fr;
    }

    .preview-title {
        font-size: 1.8rem;
    }

    /* Ajustes de padding e margens para mobile */
    .peticao-preview {
        padding: 20px;
        margin-bottom: 20px;
    }

    .peticao-cover {
        padding: 15px;
    }

    .price-box {
        padding: 20px;
    }

    /* Ajuste do título */
    .preview-title {
        font-size: 1.5rem;
        line-height: 1.3;
    }

    /* Ajuste de botões */
    .btn-buy-primary {
        padding: 14px;
        font-size: 1rem;
    }

    /* Ajuste do trecho da petição */
    .peticao-excerpt {
        padding: 15px;
        margin: 20px 0;
    }

    .peticao-text {
        font-size: 1rem;
        line-height: 1.6;
    }

    .peticao-text p {
        text-indent: 1em;
    }

    .peticao-text div p {
        padding-left: 30px !important;
    }

    /* Ajuste do placeholder da capa */
    .cover-placeholder {
        padding: 15px;
    }

    .cover-placeholder-icon {
        font-size: 4rem;
    }

    .cover-placeholder-title {
        font-size: 1.1rem;
    }

    .cover-placeholder-type {
        font-size: 0.95rem;
    }

    /* Ajuste do preço */
    .price-amount {
        font-size: 2rem;
    }

    /* Ajuste de features */
    .features-list li {
        padding: 10px 0;
        font-size: 0.95rem;
    }

    .feature-icon {
        font-size: 1.2rem;
    }

    /* Ajuste de especificações */
    .spec-item {
        padding: 12px;
        font-size: 0.9rem;
    }

    .spec-icon {
        font-size: 1.2rem;
    }

    /* Botão Ler mais em mobile */
    .btn-read-more {
        font-size: 0.9rem;
        padding: 10px 25px;
    }

    /* Novos botões toggle em mobile */
    .peticao-toggle-button {
        font-size: 1rem;
        padding: 1rem;
    }

    .peticao-text {
        font-size: 0.875rem;
        padding: 1rem;
    }
}

/* Ajustes específicos para o template node-m2 em mobile */
@media (max-width: 768px) {
    /* Container principal */
    #product-content.content {
        padding: 10px;
        overflow-x: hidden;
    }

    /* Wrapper de informações */
    .main.info.wrapper {
        padding: 15px !important;
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Forçar conteúdo do CKEditor a se ajustar */
    .petition-excerpt .collapsible,
    .petition-sinopse .collapsible,
    .jurisprudences .collapsible {
        max-width: 100%;
        overflow-x: hidden;
    }

    /* Forçar todos os elementos dentro do trecho da petição a respeitarem a largura */
    .petition-excerpt .collapsible *,
    .petition-sinopse .collapsible *,
    .jurisprudences .collapsible * {
        max-width: 100% !important;
        word-wrap: break-word;
        overflow-wrap: break-word;
    }

    /* Tabelas do CKEditor */
    .petition-excerpt table,
    .petition-sinopse table,
    .jurisprudences table {
        width: 100% !important;
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .petition-excerpt table td,
    .petition-excerpt table th,
    .petition-sinopse table td,
    .petition-sinopse table th,
    .jurisprudences table td,
    .jurisprudences table th {
        width: auto !important;
        min-width: 0 !important;
        white-space: normal !important;
    }

    /* Imagens do CKEditor */
    .petition-excerpt img,
    .petition-sinopse img,
    .jurisprudences img {
        max-width: 100% !important;
        height: auto !important;
        width: auto !important;
    }

    /* Divs com largura fixa do CKEditor */
    .petition-excerpt div[style*="width"],
    .petition-sinopse div[style*="width"],
    .jurisprudences div[style*="width"] {
        width: auto !important;
        max-width: 100% !important;
    }

    /* Parágrafos e spans com largura fixa */
    .petition-excerpt p[style*="width"],
    .petition-excerpt span[style*="width"],
    .petition-sinopse p[style*="width"],
    .petition-sinopse span[style*="width"],
    .jurisprudences p[style*="width"],
    .jurisprudences span[style*="width"] {
        width: auto !important;
        max-width: 100% !important;
    }

    /* Botões VEJA TRECHO e CONFIRA EM PDF */
    .btn-trecho,
    .btn-preview {
        width: 100% !important;
        max-width: 322px;
        margin: 0 auto 15px !important;
    }

    .w-100.d-flex.justify-content-around {
        flex-direction: column;
        align-items: center;
    }

    /* Título de seção */
    .info-title {
        font-size: 1.3rem !important;
    }

    /* Author Expert Section - Mobile */
    .author-expert-section {
        padding: 20px;
        margin: 20px 0;
    }

    .author-expert-header {
        margin-bottom: 20px;
        padding-bottom: 15px;
    }

    .author-expert-title {
        font-size: 1.1rem;
        flex-direction: column;
        gap: 5px;
    }

    .author-expert-title i {
        font-size: 1.3rem;
    }

    .author-expert-subtitle {
        font-size: 0.85rem;
    }

    .author-expert-content {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 20px;
    }

    .author-photo-large {
        width: 100px;
        height: 100px;
        border-width: 3px;
    }

    .author-name-large {
        font-size: 1.3rem;
    }

    .author-specialty {
        font-size: 0.9rem;
    }

    .author-bio {
        font-size: 0.9rem;
    }

    .author-credentials {
        justify-content: center;
        gap: 8px;
    }

    .credential-badge {
        font-size: 0.8rem;
        padding: 6px 12px;
    }

    .author-cta {
        text-align: center;
    }

    /* Área de características */
    .about.change-about {
        padding: 10px;
    }

    .resume p {
        font-size: 16px;
        margin-bottom: 15px;
    }

    .resume p b {
        font-size: 16px !important;
        display: block;
        margin-bottom: 5px;
    }

    /* Área de preço e ações */
    .icon.change-icon {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-top: 20px;
    }

    .icon.change-icon .about {
        width: 100%;
        max-width: 400px;
    }

    .icon.change-icon .offer {
        text-align: center;
        margin-bottom: 15px;
    }

    /* Botões de ação */
    .actions.actions-to-buy {
        width: 100%;
    }

    .actions.actions-to-buy form,
    .actions.actions-to-buy .form-item,
    .actions.actions-to-buy .form-actions {
        width: 100% !important;
    }

    /* Seções expansíveis (accordion) */
    .petition-excerpt,
    .petition-sinopse,
    .jurisprudences,
    .important-info,
    .comments {
        margin: 15px 0;
    }

    .button.accordion {
        font-size: 1.1rem;
        padding: 15px;
    }

    .collapsible {
        padding: 15px;
    }

    /* Histórico de atualizações */
    .updates {
        margin: 15px 0;
    }

    .updates-title {
        font-size: 1rem;
    }

    #history_id ul {
        padding-left: 20px;
    }

    #history_id li {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    /* Área de petições relacionadas */
    #peticoes-relacionadas {
        padding: 15px !important;
    }

    #peticoes-relacionadas h3 {
        font-size: 20px !important;
    }

    /* Área de busca avançada */
    .p-3.mt-5 {
        padding: 15px !important;
    }

    .btn-search-advanced {
        font-size: 0.9rem;
        padding: 10px 15px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 5px;
    }

    .btn-search-advanced i {
        font-size: 18px;
    }

    /* Rating box */
    div[style*="display: inline-flex"] {
        flex-direction: column !important;
        align-items: center;
    }

    /* Imagens */
    img[src*="download-automatico-robot.png"] {
        width: 50px !important;
        margin: 10px 0;
    }

    img[src*="busca-site-po.gif"] {
        width: 60px !important;
    }

    /* Ajuste de ícones nos botões */
    .position-relative i.bi-arrow-right-short {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        display: inline-block;
        margin-left: 5px;
    }

    /* Form de comentários */
    .block[style*="width: 30%"] {
        width: 100% !important;
    }
}

/* Ajustes para telas muito pequenas (smartphones em portrait) */
@media (max-width: 480px) {
    .preview-title {
        font-size: 1.3rem;
    }

    .price-amount {
        font-size: 1.8rem;
    }

    .btn-trecho,
    .btn-preview {
        font-size: 14px;
        height: auto !important;
        padding: 12px 10px !important;
        line-height: 1.4 !important;
    }

    .btn-trecho img,
    .btn-preview img {
        position: static !important;
        display: block;
        margin: 0 auto 5px;
    }

    .info-title {
        font-size: 1.1rem !important;
    }

    .resume p {
        font-size: 14px;
    }

    .resume p b {
        font-size: 14px !important;
    }

    .button.accordion {
        font-size: 1rem;
        padding: 12px;
    }

    .peticao-text {
        font-size: 0.95rem;
    }

    .btn-search-advanced {
        font-size: 0.85rem;
        padding: 8px 12px;
    }

    /* ===== NOVO HEADER - MOBILE ===== */
    .header-top {
        padding: 0.8rem 0;
    }

    .header-top-content {
        flex-wrap: wrap;
        gap: 0.8rem;
    }

    .navbar-brand {
        order: 1;
    }

    .logo-img {
        height: 32px !important;
    }

    /* Busca Mobile - Full Width */
    .header-search {
        order: 4;
        flex: 1 1 100%;
        max-width: 100%;
    }

    .search-input {
        font-size: 0.9rem;
        padding: 0.6rem 1rem 0.6rem 2.5rem;
    }

    /* Header Actions Mobile */
    .header-actions {
        order: 2;
        gap: 0.4rem;
    }

    .btn-auth span {
        display: none;
    }

    .btn-auth {
        padding: 0.6rem;
        min-width: 40px;
        justify-content: center;
    }

    .btn-auth i {
        margin: 0;
        font-size: 1.2rem;
    }

    .btn-register,
    .btn-login {
        border-radius: 8px;
    }

    .btn-cart {
        width: 40px;
        height: 40px;
    }

    /* Menu Toggle */
    .navbar-toggler {
        order: 3;
        padding: 0.4rem 0.6rem;
        display: block !important;
    }

    /* Menu Principal Mobile */
    .navbar-main .navbar-collapse {
        background: var(--white);
        padding: 1rem 0;
    }

    .navbar-main .navbar-nav {
        gap: 0;
        padding: 0;
    }

    .navbar-main .nav-link {
        padding: 1rem !important;
        justify-content: flex-start;
        border-radius: 8px;
        border-bottom: none !important;
        font-size: 1rem;
    }

    .navbar-main .nav-link:hover {
        background: rgba(45, 95, 46, 0.05);
    }

    .navbar-main .nav-link.active {
        background: rgba(45, 95, 46, 0.1);
        color: var(--secondary-green) !important;
    }

    .navbar-main .nav-link i {
        font-size: 1.2rem;
    }
}

/* ========================================
   ADMIN TABS (MENU ADMINISTRATIVO)
   ======================================== */

/* Estilos para o menu administrativo */
.admin-tabs-wrapper {
    margin: 15px 0 20px 0;
    padding: 12px 0;
    border-top: 1px solid #e9ecef;
    border-bottom: 1px solid #e9ecef;
}

.admin-tabs-wrapper .tabs {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
}

.admin-tabs-wrapper .tabs li {
    margin: 0;
    padding: 0;
}

.admin-tabs-wrapper .tabs a {
    display: inline-block;
    padding: 6px 14px;
    font-size: 13px;
    font-weight: 500;
    color: #6c757d;
    background: #f8f9fa;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.2s ease;
}

.admin-tabs-wrapper .tabs a:hover {
    color: #495057;
    background: #e9ecef;
    border-color: #adb5bd;
}

.admin-tabs-wrapper .tabs .active a,
.admin-tabs-wrapper .tabs li.active a {
    color: #fff;
    background: #0d6efd;
    border-color: #0d6efd;
}

/* Ícones para cada aba */
.admin-tabs-wrapper .tabs a::before {
    margin-right: 6px;
    font-family: 'bootstrap-icons';
    font-size: 14px;
}

.admin-tabs-wrapper .tabs a[href*="view"]::before {
    content: "\F341"; /* bi-eye */
}

.admin-tabs-wrapper .tabs a[href*="edit"]:not([href*="product"])::before {
    content: "\F4CA"; /* bi-pencil */
}

.admin-tabs-wrapper .tabs a[href*="revisions"]::before {
    content: "\F4A1"; /* bi-clock-history */
}

.admin-tabs-wrapper .tabs a[href*="devel"]::before {
    content: "\F123"; /* bi-code-slash */
}

.admin-tabs-wrapper .tabs a[href*="product"]::before {
    content: "\F1D1"; /* bi-box */
}

.admin-tabs-wrapper .tabs a[href*="keyword"]::before,
.admin-tabs-wrapper .tabs a[href*="palavras"]::before {
    content: "\F4EE"; /* bi-tags */
}

/* Responsivo */
@media (max-width: 768px) {
    .admin-tabs-wrapper {
        margin: 10px 0 15px 0;
    }

    .admin-tabs-wrapper .tabs {
        gap: 3px;
    }

    .admin-tabs-wrapper .tabs a {
        padding: 5px 10px;
        font-size: 12px;
    }
}

/* ========================================
   TOAST NOTIFICATIONS (SISTEMA DE NOTIFICAÇÕES)
   ======================================== */

/* Estilos para o sistema de notificações */
.peticoes-toast {
    position: fixed;
    top: 80px;
    right: 20px;
    z-index: 10000;
    min-width: 300px;
    max-width: 400px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: translateX(450px);
    transition: transform 0.3s ease;
}

.peticoes-toast.show {
    transform: translateX(0);
}

.peticoes-toast-content {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
}

.peticoes-toast i {
    font-size: 24px;
    flex-shrink: 0;
}

.peticoes-toast-success {
    border-left: 4px solid #4a8f4d;
}

.peticoes-toast-success i {
    color: #4a8f4d;
}

.peticoes-toast-error {
    border-left: 4px solid #dc3545;
}

.peticoes-toast-error i {
    color: #dc3545;
}

.peticoes-toast-warning {
    border-left: 4px solid #ffc107;
}

.peticoes-toast-warning i {
    color: #ffc107;
}

.peticoes-toast span {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
    color: #343a40;
}

.peticoes-toast-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #6c757d;
    cursor: pointer;
    padding: 0;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.2s;
}

.peticoes-toast-close:hover {
    background: rgba(0, 0, 0, 0.05);
    color: #343a40;
}

/* Animação de pulso para o badge do carrinho */
@keyframes cart-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.3); }
}

.cart-pulse {
    animation: cart-pulse 0.6s ease;
}

/* Estilo temporário de sucesso no botão */
.btn-success-temp {
    background: linear-gradient(135deg, #28a745, #20c997) !important;
}

/* Spinner do Bootstrap */
.spinner-border-sm {
    width: 1rem;
    height: 1rem;
    border-width: 0.15em;
}

.spinner-border {
    display: inline-block;
    border: 0.25em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
}

@keyframes spinner-border {
    to { transform: rotate(360deg); }
}

/* Responsivo para notificações */
@media (max-width: 768px) {
    .peticoes-toast {
        top: 70px;
        right: 10px;
        left: 10px;
        min-width: auto;
        max-width: none;
    }
}

/* ========================================
   SISTEMA DE RATING/AVALIAÇÃO
   ======================================== */

.rating-container {
    padding: 2rem 1rem;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

/* Estrelas interativas */
.rating-stars-interactive {
    display: inline-flex;
    gap: 8px;
    padding: 10px;
    background: white;
    border-radius: 50px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.rating-star {
    font-size: 2rem;
    color: #ddd;
    cursor: pointer;
    transition: all 0.2s ease;
    transform-origin: center;
}

.rating-star:hover {
    transform: scale(1.2);
    color: var(--gold-accent);
}

.rating-star.bi-star-fill {
    color: var(--gold-accent);
}

/* Mensagem de feedback */
.rating-message {
    min-height: 24px;
    font-size: 0.95rem;
    font-weight: 500;
    margin-top: 1rem;
    padding: 8px 16px;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.rating-message.text-success {
    background: #d4edda;
    color: #155724;
}

.rating-message.text-danger {
    background: #f8d7da;
    color: #721c24;
}

.rating-message.text-info {
    background: #d1ecf1;
    color: #0c5460;
}

/* Resumo de avaliações */
.rating-summary {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
}

.rating-average-display {
    text-align: center;
}

.rating-number {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-green);
    line-height: 1;
    margin-bottom: 8px;
}

.rating-stars-small i {
    font-size: 1rem;
    color: var(--gold-accent);
    margin: 0 2px;
}

.rating-count {
    text-align: center;
    color: var(--gray);
    font-size: 0.95rem;
}

.rating-count strong {
    display: block;
    font-size: 1.5rem;
    color: var(--dark-gray);
    margin-bottom: 4px;
}

/* Preview rating no topo da página */
.preview-rating {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 1rem;
}

.preview-rating .stars {
    display: flex;
    gap: 3px;
}

.preview-rating .stars i {
    font-size: 1.1rem;
    color: var(--gold-accent);
}

.preview-rating .text-muted {
    font-size: 0.95rem;
}

/* Animações */
@keyframes star-pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.15);
    }
}

.rating-star:active {
    animation: star-pulse 0.3s ease;
}

/* Botão de Preview/Download para Kits */
.btn-kit-preview {
    width: 357px;
    height: 46px;
    color: #000000 !important;
    background-color: #ffc107 !important;
    border: 0.75px solid #000000 !important;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 4px 4px 4px #0000004d;
    text-decoration: none !important;
    transition: all 0.3s ease;
}

.btn-kit-preview:hover {
    background-color: #e0a800 !important;
    transform: translateY(-2px);
    box-shadow: 6px 6px 8px #0000004d;
}

/* Lista de Petições Inclusas no Kit */
.kit-petitions-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.kit-petition-item {
    display: flex;
    align-items: center;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--secondary-green);
    transition: all 0.3s ease;
}

.kit-petition-item:hover {
    background: #e9ecef;
    border-left-color: var(--primary-green);
    transform: translateX(5px);
}

.petition-number {
    flex-shrink: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--secondary-green);
    color: white;
    border-radius: 50%;
    font-weight: 700;
    font-size: 0.875rem;
    margin-right: 15px;
}

.petition-info {
    flex: 1;
}

.petition-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    display: block;
    line-height: 1.5;
}

.petition-link:hover {
    color: var(--primary-green);
    text-decoration: underline;
}

.petition-action {
    flex-shrink: 0;
    margin-left: 15px;
}

.btn-view-petition {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    background: transparent;
    color: var(--secondary-green);
    border: 2px solid var(--secondary-green);
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.3s ease;
}

.btn-view-petition:hover {
    background: var(--secondary-green);
    color: white;
    text-decoration: none;
}

/* Responsivo */
@media (max-width: 768px) {
    .btn-kit-preview {
        width: 100% !important;
        max-width: 100%;
        height: auto;
        min-height: 46px;
        padding: 12px 16px;
        font-size: 13px;
    }

    .kit-petition-item {
        flex-wrap: wrap;
        padding: 12px;
    }

    .petition-number {
        width: 30px;
        height: 30px;
        font-size: 0.75rem;
        margin-right: 10px;
    }

    .petition-action {
        width: 100%;
        margin-left: 0;
        margin-top: 10px;
    }

    .btn-view-petition {
        width: 100%;
        justify-content: center;
    }

    .rating-star {
        font-size: 1.75rem;
    }

    .rating-number {
        font-size: 2.5rem;
    }

    .rating-container {
        padding: 1.5rem 1rem;
    }

    .rating-summary {
        padding: 1rem;
    }
}

/* ========================================
   SPECS MODERN CARDS - Especificações Técnicas
   ======================================== */

.specs-modern .info-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(45, 80, 22, 0.15);
}

.specs-modern .info-card a:hover {
    text-decoration: underline;
}

/* Responsivo para os cards de especificações */
@media (max-width: 768px) {
    .specs-modern {
        padding: 20px !important;
    }

    .specs-modern .info-cards {
        grid-template-columns: 1fr 1fr !important;
    }

    .specs-modern .info-card {
        padding: 16px !important;
    }

    .specs-modern .info-card > div:first-child {
        width: 48px !important;
        height: 48px !important;
        font-size: 1.5rem !important;
    }
}

@media (max-width: 480px) {
    .specs-modern .info-cards {
        grid-template-columns: 1fr !important;
    }
}
