@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;600;700&display=sans-serif');

/* Configurações Gerais */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: #f8fafc;
    color: #1e293b;
}

/* ==========================================================================
   1. CABEÇALHO PRINCIPAL (IGUAL AO STYLE_INDEX.CSS)
   ========================================================================== */
.cabecalho-principal {
  background-color: #ffffff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
}

.container-cabecalho {
  max-width: 1200px;
  margin: 0 auto;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}

.logo img {
  max-height: 60px;
  width: auto;
  display: block;
}

/* Barra de Pesquisa */
.barra-pesquisa {
  flex: 1;
  max-width: 500px;
  margin: 0;
  display: flex;
  align-items: center;
  border: 2px solid #e2e8f0;
  border-radius: 25px;
  overflow: hidden;
  transition: border-color 0.3s ease;
}

.barra-pesquisa:focus-within {
  border-color: #0056b3;
}

.barra-pesquisa input {
  width: 100%;
  padding: 10px 20px;
  border: none;
  outline: none;
  font-size: 0.95rem;
  font-family: 'Josefin Sans', sans-serif;
}

.barra-pesquisa button {
  background: transparent;
  border: none;
  padding: 10px 20px;
  color: #0056b3;
  cursor: pointer;
  font-size: 1rem;
  transition: color 0.3s ease;
  border-radius: 0;
}

.barra-pesquisa button:hover {
  background: transparent;
  color: #003d80;
}

/* Ações do Usuário */
.acoes-usuario {
  display: flex;
  align-items: center;
  gap: 20px;
}

.icone-login-visual, 
.carrinho-topo {
  font-size: 1.2rem;
  color: #0056b3;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 8px;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.icone-login-visual:hover, 
.carrinho-topo:hover {
  background-color: #f8f9fa;
  color: #0056b3;
  transform: none;
}

.icone-login-visual i,
.carrinho-topo i {
  color: #0056b3;
  font-size: 1.2rem;
}

.qtd-itens {
  font-weight: bold;
  color: #00a8cc;
}

/* Menu Superior Horizontal */
.barra-menu-superior {
  background-color: #0056b3;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  width: 100%;
}

.container-menu {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: center;
  gap: 30px;
  padding: 12px 20px;
}

.container-menu a {
  color: #ffffff;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 0.95rem;
  padding: 0;
  background-color: transparent;
  text-decoration: none;
  transition: color 0.3s ease;
}

.container-menu a:hover {
  color: #00a8cc;
  background-color: transparent;
}

.campo-form input {
    padding: 8px;
    margin-top: 4px;
    border: 1px solid #cbd5e1;
    border-radius: 4px;
}

.btn-solicitar-orcamento {
    width: 100%;
    padding: 10px;
    background-color: #059669;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

/* Barra de Menu Superior (Abaixo do cabeçalho principal) */
.barra-menu-superior {
    background-color:#0056b3; /* Cor de fundo da barra do menu */
    width: 100%;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.container-menu {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.container-menu a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 12px 16px;
    display: inline-block;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container-menu a:hover {
    background-color: #1e3a8a;
    color: #ffffff;
}

/* 2. LAYOUT PRINCIPAL COM MENU LATERAL */
.layout-principal {
    display: flex;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    align-items: flex-start;
}

.conteudo-principal {
    flex: 1;
    min-width: 0;
}

/* Estilização da Sidebar Lateral */
.sidebar-lateral {
    width: 260px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 20px 15px;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);

    position: sticky;
    top: 20px;
    height: fit-content;
    max-height: calc(100vh - 40px);
    overflow-y: auto;

    scrollbar-width: none;
    -ms-overflow-style: none;
}

.sidebar-lateral::-webkit-scrollbar {
    display: none;
}

.sidebar-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #f1f5f9;
}

.sidebar-logo {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.user-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 10px;
    font-weight: 600;
    color: #1e293b;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Estilos dos Menus / Caixas de Seleção (Sanfona) */
.sidebar-menu {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.filter-group {
    border-bottom: 1px solid #f1f5f9;
    padding-bottom: 8px;
}

.filter-title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: #1e3a8a;
    cursor: pointer;
    padding: 6px 0;
    outline: none;
    user-select: none;
}

.filter-options {
    list-style: none;
    padding-left: 12px;
    margin-top: 6px;
}

.filter-options li {
    margin-bottom: 6px;
}

.filter-options li a {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    color: #64748b;
    text-decoration: none;
    transition: color 0.2s ease;
    display: block;
}

.filter-options li a:hover {
    color: #059669;
    font-weight: 600;
}

.sidebar-footer {
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #e2e8f0;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 11px;
    color: #64748b;
    text-align: center;
}

.sidebar-footer a {
    color: #1e3a8a;
    text-decoration: none;
    font-weight: 600;
}

.sidebar-footer a:hover {
    text-decoration: underline;
}

/* 3. Banner Slider */
.banner-slider {
    position: relative;
    width: 100%;
    margin-bottom: 30px;
    overflow: hidden;
    border-radius: 8px;
}

.slider-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 40%; 
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}

.slide.active {
    opacity: 1;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.slider-dots {
    position: absolute;
    bottom: 12px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
}

.dot {
    width: 8px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active {
    background-color: #ffffff;
}

.prev-btn,
.next-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(15, 23, 42, 0.5);
    color: #ffffff;
    border: none;
    font-size: 20px;
    padding: 12px 16px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s ease;
    z-index: 10;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.prev-btn:hover,
.next-btn:hover {
    background-color: rgba(15, 23, 42, 0.85);
}

/* 4. Vitrine e Produtos */
.container {
    margin: 20px 0;
}

.container h2 {
    color: #1e3a8a;
    margin-bottom: 15px;
}

.vitrine {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.cartao-produto {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    padding: 15px;
    width: 100%;
    text-align: center;
}

.cartao-produto img {
    max-width: 100%;
    border-radius: 4px;
}

.categoria-tag {
    font-size: 12px;
    color: #64748b;
    margin: 5px 0;
}

.preco {
    color: #1e3a8a;
    font-size: 18px;
    font-weight: bold;
    margin: 10px 0;
}

.cartao-produto button {
    background-color: #059669;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    width: 100%;
    font-weight: bold;
}

.cartao-produto button:hover {
    background-color: #047857;
}

/* 5. Seção Sobre Nós */
.secao-sobre-nos {
    background-color: #ffffff;
    padding: 40px 20px;
    margin-top: 40px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

.container-sobre {
    display: flex;
    align-items: center;
    gap: 30px;
}

.texto-sobre {
    flex: 1;
}

.texto-sobre h2 {
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 15px;
}

.texto-sobre p {
    font-size: 15px;
    line-height: 1.6;
    color: #334155;
    margin-bottom: 15px;
}

.imagem-fundadores {
    flex: 1;
    text-align: center;
}

.imagem-fundadores img {
    width: 100%;
    max-width: 400px;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 6. Seção de Depoimentos */
.secao-depoimentos {
    padding: 40px 0;
    text-align: center;
}

.secao-depoimentos h2 {
    font-size: 28px;
    color: #1e3a8a;
    margin-bottom: 25px;
}

.grid-depoimentos {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.cartao-depoimento {
    background: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    max-width: 400px;
    text-align: left;
    border-left: 4px solid #059669;
}

.texto-depoimento {
    font-size: 14px;
    font-style: italic;
    color: #475569;
    margin-bottom: 12px;
}

.autor-depoimento {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1e3a8a;
    letter-spacing: 0.5px;
}

/* 7. Rodapé (Footer) */
.rodape-principal {
    background-color: #0f172a;
    color: #f8fafc;
    padding-top: 40px;
    margin-top: 40px;
}

.container-rodape {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 30px 20px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.coluna-rodape {
    flex: 1;
    min-width: 250px;
}

.logo-rodape {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 32px;
    color: #38bdf8;
    margin-bottom: 10px;
}

.coluna-rodape h4 {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #ffffff;
    margin-bottom: 15px;
    letter-spacing: 0.5px;
}

.coluna-rodape p {
    font-size: 14px;
    margin-bottom: 8px;
    color: #cbd5e1;
}

.coluna-rodape i {
    color: #38bdf8;
    margin-right: 8px;
    width: 16px;
}

.direitos-autorais {
    background-color: #020617;
    text-align: center;
    padding: 15px 0;
    font-size: 13px;
    color: #94a3b8;
}

/* 8. Layout da área de catálogo de produtos */
.container-produtos {
    max-width: 1200px;
    margin: 20px auto;
    padding: 0;
}

.categoria-section {
    margin-bottom: 50px;
    scroll-margin-top: 20px;
}

.categoria-section h3 {
    font-size: 1.5rem;
    color: #1e3a8a;
    border-bottom: 2px solid #e2e8f0;
    padding-bottom: 8px;
    margin-bottom: 24px;
}

.grid-produtos {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
    width: 100%;
}

.product-card {
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 16px;
    width: 100%;
    max-width: 100%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s, box-shadow 0.2s;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.product-image {
    width: 100%;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.product-image img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.product-name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 1.2rem;
    color: #1e293b;
    margin: 0 0 6px 0;
    line-height: 1.2;
}

.add-to-cart-btn {
    margin-top: auto;
    width: 100%;
    background-color: #059669;
    color: #ffffff;
    border: none;
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 0.95rem;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s;
}

.add-to-cart-btn:hover {
    background-color: #047857;
}

/* RESPONSIVIDADE PARA TELAS MENORES */
@media (max-width: 900px) {
    .grid-produtos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 600px) {
    .layout-principal {
        flex-direction: column;
    }
    .sidebar-lateral {
        width: 100%;
        position: static;
        max-height: none;
    }
    .grid-produtos {
        grid-template-columns: 1fr;
    }
}

/* Overlay Escuro de Fundo */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.modal-overlay.active {
  display: flex;
}

/* Container do Modal / Mini Player */
.modal-content {
  background: #ffffff;
  border-radius: 12px;
  max-width: 550px;
  width: 90%;
  position: relative;
  padding: 24px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
  animation: modalFadeIn 0.3s ease;
}

@keyframes modalFadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Botão Fechar */
.modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: #64748b;
}

/* Layout Interno */
.modal-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-image-container img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  border-radius: 8px;
}

.modal-details h2 {
  margin: 8px 0;
  font-size: 1.4rem;
  color: #1e293b;
}

.modal-descricao {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.4;
  margin-bottom: 16px;
}

/* Botões de Ação */
.modal-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 15px;
}

.btn-ficha-tecnica {
  display: inline-block;
  text-align: center;
  padding: 10px 15px;
  background-color: #f1f5f9;
  color: #1e293b;
  text-decoration: none;
  border-radius: 6px;
  font-weight: bold;
  transition: background 0.2s;
}

.btn-ficha-tecnica:hover {
  background-color: #e2e8f0;
}

/* ESTILOS DO MODAL DE DETALHES DO PRODUTO */
.modal-produto-container {
  max-width: 800px !important;
  width: 90%;
  padding: 25px;
  border-radius: 12px;
}

.modal-produto-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
}

@media (max-width: 650px) {
  .modal-produto-grid {
    grid-template-columns: 1fr;
  }
}

.modal-produto-imagem img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
  border-radius: 8px;
  background-color: #f8fafc;
  padding: 10px;
}

.badge-categoria {
  display: inline-block;
  background-color: #e2e8f0;
  color: #475569;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.modal-produto-info h2 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #1e293b;
}

.descricao-texto {
  font-size: 14px;
  color: #64748b;
  line-height: 1.5;
  margin-bottom: 15px;
}

/* Botão PDF */
.container-pdf {
  margin-bottom: 15px;
}

.btn-ficha-tecnica {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #dc2626;
  color: #ffffff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  transition: background-color 0.2s;
}

.btn-ficha-tecnica:hover {
  background-color: #b91c1c;
}

/* Opções e Seletor */
.container-opcoes {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.campo-opcao {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.select-opcao {
  padding: 8px;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  font-size: 14px;
  outline: none;
}

/* Ações de Compra */
.acoes-compra {
  display: flex;
  gap: 15px;
  align-items: center;
}

.controle-quantidade {
  display: flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  overflow: hidden;
}

.controle-quantidade button {
  background-color: #f1f5f9;
  border: none;
  padding: 8px 14px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
  color: #1e293b;
}

.controle-quantidade button:hover {
  background-color: #e2e8f0;
}

.controle-quantidade input {
  width: 40px;
  text-align: center;
  border: none;
  font-weight: bold;
  font-size: 14px;
  color: #1e293b;
}

.btn-ver-detalhes {
  flex: 1;
  background-color: #1e3a8a;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background-color 0.2s;
}

.btn-ver-detalhes:hover {
  background-color: #0f172a;
}
/* ==========================================================================
   ESTILOS DO MODAL DE DETALHES DO PRODUTO E NOTIFICAÇÃO TOAST (modal.js)
   ========================================================================== */

/* Overlay do Modal */
.modal-detalhes-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  justify-content: center;
  align-items: center;
  padding: 15px;
  backdrop-filter: blur(3px);
}

.modal-detalhes-overlay.exibir {
  display: flex;
}

/* Conteúdo/Caixa Principal */
.modal-detalhes-conteudo {
  background: #ffffff;
  width: 100%;
  max-width: 800px;
  border-radius: 12px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  overflow: hidden;
  animation: modalSurgir 0.3s ease-out;
}

@keyframes modalSurgir {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

.fechar-modal-detalhes {
  position: absolute;
  top: 15px;
  right: 20px;
  font-size: 28px;
  color: #666;
  cursor: pointer;
  z-index: 10;
  transition: color 0.2s;
}

.fechar-modal-detalhes:hover {
  color: #e74c3c;
}

/* Layout em Grid do Modal */
.modal-detalhes-corpo {
  padding: 30px;
}

.modal-detalhes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 25px;
  align-items: center;
}

@media (max-width: 650px) {
  .modal-detalhes-grid {
    grid-template-columns: 1fr;
  }
}

.modal-detalhes-imagem-box {
  text-align: center;
  background: #f8f9fa;
  padding: 15px;
  border-radius: 8px;
}

.modal-detalhes-imagem-box img {
  max-width: 100%;
  max-height: 280px;
  object-fit: contain;
}

.modal-detalhes-info .categoria-tag {
  display: inline-block;
  background: #e3f2fd;
  color: #0d47a1;
  font-size: 12px;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 15px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.modal-detalhes-info h2 {
  font-size: 22px;
  color: #222;
  margin-bottom: 12px;
}

.descricao-detalhada {
  color: #555;
  font-size: 14px;
  line-height: 1.5;
  margin-bottom: 15px;
}

.atributos-especificos {
  background: #f1f3f5;
  padding: 10px 15px;
  border-radius: 6px;
  margin-bottom: 15px;
  font-size: 13px;
}

.info-atributo {
  margin-bottom: 5px;
  color: #333;
}

.info-atributo:last-child {
  margin-bottom: 0;
}

/* Botão Ficha Técnica PDF */
.btn-ficha-tecnica {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #e74c3c;
  color: #fff;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-size: 13px;
  font-weight: bold;
  border: none;
  margin-bottom: 20px;
  transition: background 0.2s;
}

.btn-ficha-tecnica:hover:not(.desabilitado) {
  background-color: #c0392b;
}

.btn-ficha-tecnica.desabilitado {
  background-color: #cccccc;
  cursor: not-allowed;
  opacity: 0.7;
}

/* Ações de Carrinho e Contador */
.acoes-carrinho-modal {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contador-quantidade {
  display: flex;
  align-items: center;
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.contador-quantidade button {
  background: #eee;
  border: none;
  width: 32px;
  height: 36px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}

.contador-quantidade button:hover {
  background: #ddd;
}

.contador-quantidade input {
  width: 40px;
  height: 36px;
  border: none;
  text-align: center;
  font-size: 14px;
  font-weight: bold;
}

.btn-adicionar-carrinho-modal {
  flex: 1;
  background: #27ae60;
  color: white;
  border: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
}

.btn-adicionar-carrinho-modal:hover {
  background: #219150;
}

/* ==========================================================================
   POP-UP / TOAST SUPERIOR CENTRAL ("Adicionado ao carrinho!")
   ========================================================================== */
.toast-sucesso {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background-color: #27ae60;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 30px;
  font-size: 15px;
  font-weight: bold;
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  z-index: 10000;
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.toast-sucesso.exibir {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}
/* Container dos botões de volume */
.botoes-tamanho-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 10px;
    margin-bottom: 15px;
}

/* Estilo padrão do botão de volume */
.btn-tamanho-opcao {
    padding: 8px 16px;
    border: 2px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #333;
    transition: all 0.2s ease;
}

/* Efeito ao passar o rato */
.btn-tamanho-opcao:hover {
    border-color: #28a745;
    color: #28a745;
}

/* Estilo quando o botão está selecionado (ativo) */
.btn-tamanho-opcao.ativo {
    background-color: #28a745; /* Usa o verde do seu botão de carrinho */
    border-color: #28a745;
    color: white;
}
/* Container de Botões Gerais (Volumes e Tamanhos) */
.botoes-atributo-container {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.btn-atributo-opcao {
    padding: 8px 14px;
    border: 2px solid #ddd;
    background-color: #fff;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    transition: all 0.2s ease;
}

.btn-atributo-opcao:hover { border-color: #28a745; color: #28a745; }
.btn-atributo-opcao.ativo { background-color: #28a745 !important; border-color: #28a745 !important; color: white !important; }

/* Container das Bolinhas de Cor */
.botoes-cor-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 8px;
}

.btn-cor-opcao {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid #ddd;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.2s, border 0.2s;
    position: relative;
}

.btn-cor-opcao:hover { transform: scale(1.1); }

/* Efeito de seleção na bolinha (Borda azul escuro ou preta em volta) */
.btn-cor-opcao.ativo {
    border: 3px solid #333 !important;
    transform: scale(1.15);
    box-shadow: 0 0 0 2px #fff inset; /* Cria um anel interno branco para destacar */
}

/* Menu Select de Fragrância Bonito */
.select-wrapper {
    position: relative;
    margin-top: 8px;
    width: 100%;
    max-width: 300px;
}

.select-bonito {
    width: 100%;
    padding: 10px 15px;
    font-size: 14px;
    color: #333;
    background-color: #fff;
    border: 2px solid #ddd;
    border-radius: 6px;
    appearance: none; /* Remove a seta padrão feia do navegador */
    -webkit-appearance: none;
    -moz-appearance: none;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.select-bonito:focus { border-color: #28a745; }

.seta-select {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none; /* Para não atrapalhar o clique no select */
    color: #888;
}
/* 1. Limita a altura do modal e ativa a rolagem interna */
.modal-detalhes-conteudo {
    max-height: 90vh; /* Ocupa no máximo 90% da altura do ecrã */
    overflow-y: auto; /* Ativa o scroll vertical apenas se o conteúdo for maior que 90vh */
    overflow-x: hidden; /* Evita rolagem horizontal acidental */
}

/* 2. Estilização da Barra de Rolagem (Scrollbar) para navegadores WebKit (Chrome, Safari, Edge) */

/* Largura da barra */
.modal-detalhes-conteudo::-webkit-scrollbar {
    width: 8px;
}

/* Fundo da barra (trilha) */
.modal-detalhes-conteudo::-webkit-scrollbar-track {
    background: #f5f5f5;
    border-radius: 8px;
    margin: 10px 0; /* Dá um pequeno respiro nas pontas */
}

/* O "polegar" da barra (a parte que se move) */
.modal-detalhes-conteudo::-webkit-scrollbar-thumb {
    background-color: #cccccc;
    border-radius: 8px;
    border: 2px solid #f5f5f5; /* Cria um efeito de preenchimento (padding) interno */
}

/* Efeito ao passar o rato no polegar da barra */
.modal-detalhes-conteudo::-webkit-scrollbar-thumb:hover {
    background-color: #a0a0a0;
}

/* 3. Estilização para o Firefox (que usa regras diferentes para scrollbar) */
.modal-detalhes-conteudo {
    scrollbar-width: thin; /* Deixa a barra fina */
    scrollbar-color: #cccccc #f5f5f5; /* Cor do polegar e cor da trilha */
}
/* =========================================================
   GAVETA LATERAL DO CARRINHO DE COTAÇÃO (AZUL E VERDE)
   ========================================================= */

/* Overlay escuro de fundo */
.carrinho-drawer-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.carrinho-drawer-overlay.ativo {
    opacity: 1;
    visibility: visible;
}

/* Painel Lateral Sliding */
.carrinho-drawer {
    position: fixed;
    top: 0;
    right: -400px;
    width: 100%;
    max-width: 380px;
    height: 100%;
    background-color: #f8fafc;
    box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    transition: right 0.3s ease-in-out;
    z-index: 100000;
}

.carrinho-drawer-overlay.ativo .carrinho-drawer {
    right: 0;
}

/* Cabeçalho da Aba (Azul) */
.drawer-header {
    background-color: #0056b3; /* Azul Principal */
    color: #ffffff;
    padding: 16px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.drawer-header h3 {
    margin: 0;
    font-size: 1.2rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-fechar-drawer {
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 1.5rem;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s;
}

.btn-fechar-drawer:hover {
    color: #28a745; /* Destaque Verde ao passar o mouse */
}

/* Corpo com Lista de Itens */
.drawer-body {
    flex: 1;
    overflow-y: auto;
    padding: 15px;
}

.carrinho-vazio-msg {
    text-align: center;
    color: #6c757d;
    margin-top: 40px;
    font-size: 0.95rem;
}

/* Card do Produto no Carrinho */
.item-cotacao-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 12px;
    margin-bottom: 12px;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.03);
}

.btn-remover-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: #dc3545;
    font-size: 1rem;
    cursor: pointer;
}

.item-cotacao-conteudo {
    display: flex;
    gap: 12px;
    align-items: center;
    margin-bottom: 10px;
}

.item-cotacao-img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid #f0f0f0;
}

.item-cotacao-detalhes {
    padding-right: 20px;
}

.item-cotacao-detalhes h4 {
    margin: 0 0 4px 0;
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.2;
}

/* Controles de Quantidade */
.item-cotacao-controles {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.qtd-seletor {
    display: inline-flex;
    align-items: center;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    overflow: hidden;
    background: #f8fafc;
}

.qtd-seletor button {
    background: none;
    border: none;
    padding: 4px 10px;
    font-size: 1rem;
    color: #0056b3;
    cursor: pointer;
    font-weight: bold;
}

.qtd-seletor button:hover {
    background-color: #e2e8f0;
}

.qtd-seletor span {
    padding: 4px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #333;
}

/* Rodapé do Carrinho (Verde / Ações) */
.drawer-footer {
    padding: 15px 20px;
    background-color: #ffffff;
    border-top: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.resumo-cotacao-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.95rem;
    color: #475569;
    font-weight: 600;
    margin-bottom: 5px;
}

/* Botões Estilo Verde e Azul */
.btn-solicitar-cotacao {
    width: 100%;
    background-color: #28a745; /* Verde Principal */
    color: #ffffff;
    border: none;
    padding: 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.2s ease;
    text-align: center;
}

.btn-solicitar-cotacao:hover {
    background-color: #218838;
}

.btn-continuar-cotando {
    width: 100%;
    background-color: transparent;
    color: #0056b3; /* Azul */
    border: 1px solid #0056b3;
    padding: 10px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
    text-align: center;
}

.btn-continuar-cotando:hover {
    background-color: #f0f7ff;
}
/* =========================================================
   CARRINHO LATERAL (DRAWER DE COTAÇÃO) - AZUL E VERDE
   ========================================================= */

/* Overlay escuro de fundo */
.carrinho-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9998;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.carrinho-overlay.ativo {
  opacity: 1;
  visibility: visible;
}

/* Painel Lateral (Drawer) */
.carrinho-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: 100%;
  max-width: 380px;
  height: 100vh;
  background-color: #f8fafc;
  z-index: 9999;
  box-shadow: -4px 0 15px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  transition: right 0.3s ease-in-out;
  font-family: 'Josefin Sans', sans-serif;
}

.carrinho-drawer.ativo {
  right: 0;
}

/* Cabeçalho do Carrinho (Azul) */
.carrinho-cabecalho {
  background-color: #004b87; /* Azul Institucional */
  color: #ffffff;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}


/* Lista de Itens do Carrinho */
.carrinho-corpo {
  flex: 1;
  overflow-y: auto;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Cartão do Produto no Carrinho (Estilo Imagem Anexada) */
.card-item-carrinho {
  background-color: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  position: relative;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04);
}

.card-item-conteudo {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.card-item-img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid #f1f5f9;
  flex-shrink: 0;
}

.card-item-detalhes {
  flex: 1;
  padding-right: 20px;
}

.card-item-nome {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0 0 4px 0;
  line-height: 1.2;
}

.card-item-variacao {
  font-size: 0.8rem;
  color: #64748b;
  margin-bottom: 10px;
}

/* Botão Remover (X) */
.btn-remover-item {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  color: #ef4444;
  font-size: 1rem;
  cursor: pointer;
}

/* Controle de Quantidade (+ e -) */
.card-item-controle {
  display: inline-flex;
  align-items: center;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  overflow: hidden;
  background-color: #ffffff;
}

.btn-qtd-cart {
  background: none;
  border: none;
  width: 32px;
  height: 32px;
  font-size: 1.1rem;
  color: #004b87;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.15s;
}

.btn-qtd-cart:hover {
  background-color: #f1f5f9;
}

.input-qtd-cart {
  width: 36px;
  text-align: center;
  border: none;
  font-weight: 700;
  color: #0f172a;
  font-size: 0.95rem;
}

/* Mensagem de Carrinho Vazio */
.carrinho-vazio-msg {
  text-align: center;
  color: #64748b;
  margin-top: 40px;
  font-size: 0.95rem;
}

/* Rodapé do Carrinho (Verde Cotação) */
.carrinho-rodape {
  padding: 16px 20px;
  background-color: #ffffff;
  border-top: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-solicitar-cotacao {
  width: 100%;
  background-color: #2e7d32; /* Verde Destaque */
  color: #ffffff;
  border: none;
  padding: 14px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 0.2s, transform 0.1s;
}

.btn-solicitar-cotacao:hover {
  background-color: #1b5e20;
}

.btn-continuar-comprando {
  width: 100%;
  background-color: transparent;
  color: #004b87;
  border: 1px solid #004b87;
  padding: 12px;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
}

.btn-continuar-comprando:hover {
  background-color: #e0f2fe;
}
/* ==========================================================================
   CORREÇÃO DO ÍCONE DE FECHAR (X) DO CARRINHO DE COTAÇÃO
   ========================================================================== */

/* Cabeçalho do carrinho lateral */
.carrinho-cabecalho {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 16px 20px !important;
}

/* Botão X de fechar o painel lateral */
.btn-fechar-carrinho {
    position: static !important;
    background: transparent !important;
    border: none !important;
    color: #ffffff !important;
    font-size: 1.5rem !important;
    line-height: 1 !important;
    cursor: pointer !important;
    padding: 4px 8px !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: transform 0.2s ease, color 0.2s ease !important;
}

.btn-fechar-carrinho:hover {
    color: #00a8cc !important;
    transform: scale(1.15) !important;
}

/* Botão X de remover um produto individual dentro da lista */
.btn-remover-item {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important;
    background: transparent !important;
    border: none !important;
    color: #ef4444 !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    padding: 4px !important;
    line-height: 1 !important;
}

.btn-remover-item:hover {
    color: #b91c1c !important;
}