
:root {
    --font-body-family: 'Helvetica', 'Arial', sans-serif;
    --color-base-text: #333;
    --color-base-background: #fff;
    --page-width: 1200px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body-family);
    color: var(--color-base-text);
    background-color: var(--color-base-background);
    font-size: 16px;
    line-height: 1.5;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

.page-width {
    max-width: var(--page-width);
    margin: 0 auto;
    padding: 0 2rem;
}

.section-title {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 2rem;
    margin-top: 3rem;
}


.header {
   padding: 5px 0 !important; 
 min-height: 0 !important;
    background-color: #fff;
    border-bottom: 1px solid #f0f0f0;
    top: 0;
    z-index: 10;
}

.header__wrapper {

    display: grid;
    grid-template-columns: 1fr auto 1fr; 
    align-items: center;
    gap: 1.5rem;
}


.header__left {
    grid-column: 1;
    justify-self: start; 
}


.header__logo {
    grid-column: 2;
    justify-self: center; 
}


.header__icons {
    grid-column: 3;
    justify-self: end; 
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.header__icon-link svg {
    width: 24px;
    height: 24px;
}

.header__nav {
    display: none;
}

.header__menu-toggle {
    display: block;
    background: none;
    border: none;
    cursor: pointer;
}

@media (min-width: 990px) {
    .header__menu-toggle {
        display: none;
    }

    .header__nav {
        display: block;
    }

    .header__nav .list-menu {
        display: flex;
        gap: 2rem;
    }

    .header__nav a {
        font-weight: 500;
    }
}
.slideshow-wrapper {
    position: relative;
    width: 100%;
}

.slideshow__slide {
    width: 100%;
    position: relative;
}

.slideshow__media {
    display: block;
    width: 100%;
}

.slideshow__media img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.collection-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2.5rem;
}

.collection-card {
    display: block;
    background-color: var(--color-base-background);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.collection-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
}

.collection-card__image {
    overflow: hidden;
}

.collection-card__image img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.collection-card:hover .collection-card__image img {
    transform: scale(1.05);
}

.collection-card__title-box {
    padding: 1.25rem 1rem;
    text-align: center;
    border-top: 1px solid #f0f0f0;
}

.collection-card__title-box h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--color-base-text);
}

/* --- Featured Collection / Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.card__media img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card__content {
    padding: 1rem;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card__heading {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.card__price {
    margin-top: auto;
    margin-bottom: 1rem;
}

.price-item--regular {
    font-weight: bold;
    font-size: 1.2rem;
}

.price-item--sale {
    text-decoration: line-through;
    color: #888;
    margin-left: 0.5rem;
}

.button {
    cursor: pointer;
    border: 1px solid transparent;
    border-radius: 4px;
    padding: 0.75rem 1.5rem;
    font-size: 1rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.2s ease;
}

.button--primary {
    background-color: #28a745;
    color: white;
}

.button--primary:hover {
    background-color: #218838;
}

/* --- Footer --- */
.footer {
    background-color: #f5f5f5;
    padding: 3rem 0 1rem;
    margin-top: 4rem;
}

.footer__content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-block__heading {
    font-size: 1.1rem;
    margin-bottom: 1rem;
}

.footer-block__list li {
    margin-bottom: 0.5rem;
}

.footer__bottom {
    text-align: center;
    border-top: 1px solid #e0e0e0;
    padding-top: 1rem;
    font-size: 0.9rem;
    color: #777;
}
/* --- Featured Collection / Product Grid --- */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.card {
    background-color: #fff;
    border: 1px solid #e0e0e0; /* Borda sutil como na referência */
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
    transition: box-shadow 0.3s ease;
}

.card:hover {
    box-shadow: 0 6px 15px rgba(0,0,0,0.1); /* Efeito de sombra ao passar o mouse */
}

.card__media {
    position: relative; /* Necessário para o posicionamento do badge */
}

.card__media img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.card__badge { /* Estilo para o badge de desconto */
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #dc3545; /* Vermelho */
    color: white;
    padding: 4px 8px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 4px;
}

.card__content {
    padding: 1rem;
    text-align: left; /* Alinhamento à esquerda - MUDANÇA PRINCIPAL */
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card__heading {
    font-size: 1rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: #333;
    line-height: 1.4;
    height: 2.8em; /* Força o título a ter no máximo 2 linhas */
    overflow: hidden;
}

.card__rating { /* Estilo para as estrelas */
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 0.75rem;
}

.card__rating span {
    color: #ffc107; /* Cor amarela para as estrelas */
}

.card__price {
    margin-bottom: 0.25rem;
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    flex-wrap: wrap; /* Permite que os preços quebrem a linha se necessário */
}

.price-item--regular {
    font-weight: bold;
    font-size: 1.5rem; /* Preço principal destacado */
    color: #000;
}

.price-item--sale {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
}

.card__installments { /* Estilo para as prestações */
    font-size: 0.85rem;
    color: #666;
    margin-bottom: 1rem;
}

.product-form__submit.button {
    margin-top: auto; /* Empurra o botão para o final do card */
    width: 100%; /* Botão com largura total */
}

/* --- ESTILOS RESPONSIVOS PARA SEÇÃO DE PRODUTOS --- */

/* Aplica estas regras em telas com 767px de largura ou menos (celulares) */
@media (max-width: 767px) {

    .product-grid {
        /* MUDANÇA PRINCIPAL: Força a grade a ter 2 colunas */
        grid-template-columns: repeat(2, 1fr);
        
        /* Diminui o espaçamento entre os cards no mobile */
        gap: 1rem;
    }

    /* Ajustes finos de texto e preenchimento para caber melhor */
    .card__content {
        padding: 0.75rem; /* Diminui o padding interno do card */
    }

    .card__heading {
        font-size: 0.85rem; /* Diminui a fonte do título */
        height: 2.6em; /* Garante 2 linhas de título */
    }

    .card__rating {
        font-size: 0.8rem;
        margin-bottom: 0.5rem;
    }

    .price-item--regular {
        font-size: 1.15rem; /* Diminui a fonte do preço */
    }

    .price-item--sale {
        font-size: 0.8rem;
    }

    .card__installments {
        font-size: 0.75rem; /* Diminui a fonte das parcelas */
    }

    .product-form__submit.button {
        /* Botão de compra um pouco menor */
        padding: 0.6rem 1rem;
        font-size: 0.9rem;
    }

    .card__badge {
        font-size: 0.7rem;
        padding: 3px 6px;
    }
}

/* --- ESTILOS DO CARRINHO LATERAL RÁPIDO (MODAL) --- */

.quick-cart-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.quick-cart-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.quick-cart-modal {
    position: fixed;
    top: 0;
    right: -100%; /* Começa fora da tela */
    width: 90%;
    max-width: 480px;
    height: 100%;
    background-color: #f7f7f7; /* Um fundo levemente cinza */
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    z-index: 1001;
    transition: right 0.4s ease-out;
    display: flex;
    flex-direction: column;
}

.quick-cart-modal.visible {
    right: 0; /* Desliza para dentro */
}

.quick-cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background-color: #fff;
    border-bottom: 1px solid #e0e0e0;
}

.quick-cart-title {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 0;
}

.quick-cart-close-button {
    background: none;
    border: none;
    font-size: 2.5rem;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}

.quick-cart-close-button:hover {
    color: #333;
}

.quick-cart-content {
    flex-grow: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.quick-cart-product {
    display: flex;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
}

.quick-cart-product-image {
    width: 100px;
    flex-shrink: 0;
}

.quick-cart-product-image img {
    width: 100%;
    height: auto;
    border: 1px solid #eee;
    border-radius: 4px;
}

.quick-cart-product-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.quick-cart-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.quick-cart-tags .tag {
    font-size: 0.7rem;
    font-weight: bold;
    padding: 3px 6px;
    border-radius: 3px;
    color: #fff;
}
.tag-vendido { background-color: #777; }
.tag-exclusivo { background-color: #ffc107; color: #333; }
.tag-mais-vendido { background-color: #333; }

#quick-cart-product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    line-height: 1.3;
}

.quick-cart-price {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.quick-cart-price .price-item--regular {
    font-weight: bold;
    font-size: 1.5rem;
    color: #000;
}
.quick-cart-price .price-item--sale {
    text-decoration: line-through;
    color: #888;
    font-size: 0.9rem;
}
.quick-cart-price .discount-badge {
    background-color: #dc3545;
    color: white;
    font-size: 0.8rem;
    font-weight: bold;
    padding: 4px 6px;
    border-radius: 4px;
}

.quick-cart-pix-promo {
    display: flex;
    gap: 10px;
    font-size: 0.8rem;
    color: #28a745;
    font-weight: 500;
}

.quick-cart-stock {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.quick-cart-stock p {
    margin: 0 0 10px 0;
    font-weight: 500;
}
.quick-cart-stock p strong {
    color: #dc3545;
}
.stock-bar {
    width: 100%;
    height: 8px;
    background-color: #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}
.stock-bar-fill {
    height: 100%;
    background-color: #dc3545;
    border-radius: 4px;
}

.quick-cart-personalize {
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.personalize-field {
    display: flex;
    flex-direction: column;
    gap: 5px;
}
.personalize-field label {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}
.personalize-field input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 1rem;
}

.quick-cart-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
}

.quantity-selector-modal {
    display: flex;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
}
.quantity-modal-button {
    background-color: #f5f5f5;
    border: none;
    width: 45px;
    height: 45px;
    font-size: 1.5rem;
    color: #555;
    cursor: pointer;
    line-height: 1;
    transition: background-color 0.2s ease;
}
.quantity-modal-button:hover { background-color: #e0e0e0; }
.quantity-modal-button:active { background-color: #d0d0d0; }

#modal-quantity-input {
    width: 60px;
    height: 45px;
    text-align: center;
    border: none;
    border-left: 1px solid #ccc;
    border-right: 1px solid #ccc;
    font-size: 1.1rem;
    font-weight: 500;
    -moz-appearance: textfield;
    appearance: textfield;
}
#modal-quantity-input::-webkit-outer-spin-button,
#modal-quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.modal-add-button {
    width: 100%;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 600;
}

.quick-cart-info-boxes {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.quick-cart-info-box {
    display: flex;
    align-items: flex-start;
    gap: 15px;
    background-color: #fff;
    padding: 15px;
    border-radius: 8px;
    font-size: 0.9rem;
}
.quick-cart-info-box .info-icon {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 50%;
}
.quick-cart-info-box strong {
    font-size: 1rem;
    color: #333;
}
.quick-cart-info-box p {
    margin: 5px 0 0 0;
    color: #666;
    line-height: 1.4;
}

/* Novo estilo para os ícones SVG */
.info-icon-svg {
    width: 40px; /* Tamanho do container do ícone */
    height: 40px;
    flex-shrink: 0; /* Impede que o ícone encolha */
    display: flex;
    align-items: center;
    justify-content: center;
}

.info-icon-svg svg {
    width: 32px; /* Tamanho do ícone SVG em si */
    height: 32px;
}

/* Cores dos ícones baseadas na imagem de referência */
.icon-personalizacao svg {
    color: #28a745; /* Verde */
}

.icon-frete svg {
    /* As cores (azul e amarelo) já estão definidas dentro do HTML do SVG */
    width: 36px; /* Ajuste de tamanho específico para o caminhão */
    height: 36px;
}

.icon-devolucao svg {
    color: #28a745; /* Verde */
}

/* --- Barra Superior (Pix) --- */
.top-bar {
    background-color: #01366E; /* Azul escuro */
    color: white;
    text-align: center;
    padding: 8px 0;
    font-size: 14px;
    font-weight: bold;
}

/* --- BARRA DE ROLAGEM (MARQUEE) --- */

/* Define a animação de rolagem */
@keyframes scroll-marquee {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.marquee-section {
    width: 100%;
    background-color:#01366E; /* Mesmo azul da barra do topo */
    padding: 10px 0; /* Espaçamento vertical */
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee-bar {
    width: 100%;
    overflow: hidden; /* Esconde o conteúdo que sai da tela */
    display: flex;
    white-space: nowrap; /* Impede a quebra de linha */
}

.marquee-content {
    display: flex;
    align-items: center;
    /* Animação: 20 segundos de duração, linear, infinita */
    animation: scroll-marquee 20s linear infinite;
}

.marquee-content span,
.marquee-content strong {
    color: white;
    font-size: 13px; 
    text-transform: uppercase; /* Tudo em maiúsculas */
    padding: 0 20px; /* Espaçamento entre os itens */
    letter-spacing: 0.5px;
}

.marquee-content strong {
    font-weight: 700; /* "BLACK FRIDAY" em negrito */
}

.marquee-content span {
    font-weight: 400; /* "FRETE GRÁTIS" normal */
    opacity: 0.9; /* Um pouco mais suave */
}

/* Opcional: Pausa a animação ao passar o mouse */
.marquee-bar:hover .marquee-content {
    animation-play-state: paused;
}

/* --- SEÇÃO DESTAQUE SCANIA (Layout Atualizado) --- */

.scania-feature-section {
    background-color: #fff; /* Fundo branco */
    padding: 4rem 0; /* Espaçamento vertical */
    border-top: 1px solid #f0f0f0; /* Linha de separação */
}

.feature-container {
    display: grid;
    grid-template-columns: 1fr; /* Coluna única em todos os tamanhos */
    gap: 2rem; /* Espaço entre a imagem e o conteúdo */
    justify-items: center; /* Centraliza os blocos */
}

.feature-image {
    width: 100%;
    max-width: 600px; /* Define uma largura máxima para a imagem */
}

.feature-image img {
    width: 100%;
    height: auto;
    border-radius: 8px; /* Bordas arredondadas */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); /* Sombra suave */
}

.feature-content {
    display: flex;
    flex-direction: column;
    align-items: center; /* Centraliza o conteúdo (título, texto, botão) */
    text-align: center; /* Centraliza o texto */
    max-width: 600px; /* Mesma largura máxima da imagem */
}

.feature-content h2 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #333;
}

.feature-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #555;
    margin-bottom: 2rem;
}

.feature-buy-button {
    font-size: 1.1rem;
    font-weight: 600;
    padding: 15px 30px;
    width: auto; /* O botão se ajusta ao texto */
    text-decoration: none;
}

/* --- FEATURES (Pré-Rodapé) --- */
.footer-features {
    background-color: #fff;
    padding: 3rem 0;
    border-top: 1px solid #f0f0f0;
    border-bottom: 1px solid #f0f0f0;
}

.features-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    text-align: center;
}

.feature-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.feature-icon {
    width: 36px;
    height: 36px;
    color: #333;
    margin-bottom: 0.5rem;
}

.feature-item h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}

.feature-item p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* --- Footer --- */
.footer {
    background-color: #fff;
    padding: 3rem 0 0; /* Remove o padding inferior */
}

.footer-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2.5rem; /* Espaçamento entre as colunas */
    margin-bottom: 3rem;
}

.footer-block {
    font-size: 0.9rem;
}

.footer-block__heading {
    font-size: 0.8rem; /* Título menor e em maiúsculas */
    font-weight: 600;
    color: #555;
    margin-bottom: 1rem;
    text-transform: uppercase; /* Como na imagem */
    letter-spacing: 0.5px;
}

.footer-contact-list,
.footer-links-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem; /* Espaço entre os links */
}

.footer-contact-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #333;
}
.footer-contact-list svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #555;
}

.footer-links-list a {
    color: #333;
    text-decoration: none;
}
.footer-links-list a:hover {
    text-decoration: underline;
    color: #000;
}

.payment-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.payment-icon-svg {
    height: 30px; /* Altura do ícone do PIX */
    width: auto;
    fill: #333; /* Cor do ícone */
}

.security-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.security-badge {
    height: 35px; /* Altura dos selos */
    width: auto;
    object-fit: contain;
    border: 1px solid #eee;
    border-radius: 4px;
}

/* --- Barra de Copyright --- */
.footer__bottom {
    text-align: left; /* Alinhado à esquerda como na imagem */
    border-top: 1px solid #f0f0f0;
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
    font-size: 0.85rem;
    color: #777;
}

/* Responsividade: Centraliza o texto no mobile */
@media (max-width: 749px) {
    .features-container,
    .footer-container {
        text-align: left; /* Alinha o texto à esquerda no mobile */
        grid-template-columns: 1fr; /* Coluna única */
    }
    
    .feature-item {
        align-items: flex-start; /* Alinha ícones à esquerda */
    }

    .footer__bottom {
        text-align: center;
    }
}

/* --- NOVA SEÇÃO DE AVALIAÇÕES --- */

.reviews-section {
    background-color: #fff; /* Fundo branco, como na imagem */
    padding: 4rem 0;
    border-top: 1px solid #f0f0f0;
}

.reviews-header {
    display: grid;
    grid-template-columns: auto 1fr auto; /* Colunas para sumário, barras, ações */
    gap: 2rem;
    align-items: center;
    margin-bottom: 3rem;
}

/* --- Bloco 1: Sumário (Nota 4.8) --- */
.reviews-summary {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-right: 2rem;
    border-right: 1px solid #eee;
}
.reviews-summary-score {
    font-size: 3rem;
    font-weight: 700;
    color: #333;
    line-height: 1;
}
.reviews-summary-stars {
    font-size: 1.2rem;
    color: #ffc107;
    margin-top: 0.5rem;
}
.reviews-summary-count {
    font-size: 0.9rem;
    color: #666;
    margin-top: 0.5rem;
}

/* --- Bloco 2: Gráfico de Barras --- */
.reviews-breakdown ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column-reverse; /* Inverte a ordem para 5 ficar no topo */
    gap: 8px;
}
.reviews-breakdown li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}
.star-label {
    font-weight: 500;
}
.star-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.rating-bar {
    flex-grow: 1;
    height: 8px;
    background-color: #eee;
    border-radius: 4px;
    overflow: hidden;
}
.rating-bar-fill {
    height: 100%;
    background-color: #ffc107;
    border-radius: 4px;
}
.rating-count {
    font-size: 0.85rem;
    color: #888;
    min-width: 25px; /* Alinha os números */
    text-align: right;
}

/* --- Bloco 3: Ações (Botão e Filtro) --- */
.reviews-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
}
.write-review-btn {
    background-color: #222;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 12px 20px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.write-review-btn:hover {
    background-color: #444;
}
.review-filter {
    background-color: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    padding: 10px 15px;
    font-size: 0.9rem;
    font-weight: 500;
    width: 100%;
    cursor: pointer;
}

/* --- Grade de Cards de Depoimentos --- */
.reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); /* Colunas responsivas */
    gap: 1.5rem;
}

.review-card {
    background-color: #fff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    gap: 0.5rem; /* Espaço entre os elementos do card */
}

.review-author {
    font-size: 0.95rem;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 5px;
}
.verified-badge {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.review-rating {
    font-size: 1rem;
    color: #ffc107;
    line-height: 1;
}
.review-text {
    font-size: 0.9rem;
    color: #555;
    line-height: 1.6;
    margin: 0.5rem 0 0 0;
}
.review-card-footer, .review-date, .review-live {
    display: none; /* Removemos o rodapé antigo para ficar igual à imagem nova */
}

/* --- Responsividade para o Header das Avaliações --- */
@media (max-width: 990px) {
    .reviews-header {
        /* Empilha os blocos em telas menores */
        grid-template-columns: 1fr; 
        gap: 2rem;
    }
    .reviews-summary {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #eee;
        padding-bottom: 2rem;
        flex-direction: row; /* Coloca os itens lado a lado no mobile */
        justify-content: space-around;
        flex-wrap: wrap;
    }
    .reviews-actions {
        flex-direction: row; /* Coloca botão e filtro lado a lado */
        width: 100%;
    }
    .reviews-actions .write-review-btn {
        flex-grow: 1;
    }
    .reviews-actions .review-filter {
        flex-grow: 1;
        max-width: 150px;
    }
}

/* --- MODAL DE ESCREVER AVALIAÇÃO --- */

.review-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Mais escuro, como na imagem */
    z-index: 1002; /* Acima do overlay do carrinho */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.review-modal-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.review-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.95); /* Começa um pouco menor */
    width: 90%;
    max-width: 450px; /* Largura do modal */
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    z-index: 1003; /* Acima de tudo */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, transform 0.3s ease, visibility 0.3s ease;
}

.review-modal.visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -50%) scale(1); /* Cresce para o tamanho normal */
}

.review-modal-header {
    display: flex;
    justify-content: center; /* Centraliza o título */
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #eee;
    position: relative;
}

.review-modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #333;
}

.review-modal-close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 2.5rem;
    font-weight: 300;
    color: #888;
    cursor: pointer;
    line-height: 1;
    padding: 0;
}
.review-modal-close-btn:hover {
    color: #000;
}

.review-modal-content {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1rem; /* Espaço entre os campos */
}

.star-rating-input {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    color: #e0e0e0; /* Cor das estrelas vazias */
}

.star-rating-input svg {
    width: 32px;
    height: 32px;
    cursor: pointer;
    transition: transform 0.1s ease, color 0.1s ease;
}

.star-rating-input svg:hover {
    transform: scale(1.15);
}

/* Estilos para estrelas preenchidas (via JS) */
.star-rating-input svg.filled {
    color: #ffc107; /* Cor da estrela (dourado) */
}

.review-form-group input,
.review-form-group textarea {
    width: 100%;
    padding: 12px 15px;
    font-size: 1rem;
    font-family: inherit;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #f9f9f9;
}
.review-form-group input:focus,
.review-form-group textarea:focus {
    outline: none;
    border-color: #0c1a3e; /* Cor escura do seu site */
    background-color: #fff;
}

.review-form-group textarea {
    min-height: 120px;
    resize: vertical;
}

.review-upload-box {
    border: 2px dashed #ddd;
    border-radius: 6px;
    padding: 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    background-color: #fdfdfd;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}
.review-upload-box:hover {
    border-color: #aaa;
    background-color: #f9f9f9;
}
.review-upload-box .plus {
    font-size: 2.5rem;
    font-weight: 300;
    color: #aaa;
    line-height: 1;
}
.review-upload-box span {
    font-size: 0.9rem;
    color: #aaa;
}

.review-submit-button {
    background-color: #acacac; /* Cinza, desabilitado por padrão */
    color: white;
    border: none;
    border-radius: 6px;
    padding: 15px;
    font-size: 1rem;
    font-weight: 600;
    cursor: not-allowed; /* Cursor de "não permitido" */
    transition: background-color 0.2s ease;
}

/* Estilo do botão quando estiver "ativo" (o JS vai adicionar essa classe) */
.review-submit-button.active {
    background-color: #28a745; /* Verde */
    cursor: pointer;
}
.review-submit-button.active:hover {
    background-color: #218838;
}
