body {
  font-family: 'Open Sans', sans-serif;
  font-size: 14px;
  color: #666;
  background-color: #ffffff;
  line-height: 1.6;
  margin: 0;
  padding: 0;
}

h1, h2, h3, h4, h5, h6 {
  color: #444;
  margin-bottom: 1rem;
}

h1 { font-size: 2rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

legend {
  font-size: 1.125rem;
  padding: 0.5rem 0;
}

label {
  font-size: 0.875rem;
  font-weight: 400;
}

a {
  color: #23a1d1;
  text-decoration: none;
}

a:hover {
  color: #1a7fa1;
  text-decoration: none;
}

/* --------------------------------------------------
   Top Bar
-------------------------------------------------- */
#top {
  background-color: #258425;
  color: #fff;
  padding: 4px 0;
  font-size: 0.75rem;
  line-height: 1.2;
  border-bottom: 1px solid #ccc;
}

#top .top-message {
  font-weight: 500;
}

#top .nav-link {
  color: #fff;
  padding: 0 0.5rem;
  font-size: 0,75rem;
}

#top .nav-link:hover,
#top .dropdown:hover > .nav-link {
  color: #eddd4c !important;
}

#top .dropdown-menu {
  background-color: #fff;
  border: 1px solid #ddd;
  font-size: 0,75rem;
}

#top .dropdown-menu a {
  color: #333;
  padding: 0.4rem 1rem;
}

#top .dropdown-menu a:hover {
  background-color: #258425;
  color: #fff;
}

@media (max-width: 767.98px) {
  #top .nav {
    flex-direction: column;
    align-items: center;
    gap: 5px;
    padding-top: 5px;
  }

  #top .top-message {
    text-align: center;
    margin-bottom: 5px;
  }
}

/* --------------------------------------------------
   Header
-------------------------------------------------- */
header {
  background-color: #ffffff;
  padding: 20px 0;
  border-bottom: 1px solid #ccc;
}

#logo img {
  max-width: 100%;
  height: auto;
}

/* --------------------------------------------------
   Search
-------------------------------------------------- */
#search input[type="text"] {
  border-radius: 20px 0 0 20px;
  border: 1px solid #ccc;
  height: 38px;
  padding: 0 15px;
}

#search button {
  border-radius: 0 20px 20px 0;
  background-color: #258425;
  border: none;
  color: #fff;
  height: 38px;
  padding: 0 15px;
}

/* --------------------------------------------------
   Navigation Menu
-------------------------------------------------- */
/* Fundo do menu */
#menu {
  background-color: #258425;
  border-top: 1px solid #ccc;
  border-bottom: 1px solid #ccc;
  padding: 0;
}

/* Itens normais */
#menu .nav-link {
  color: #fff;
  padding: 12px 15px;
  font-weight: 500;
  transition: all 0.3s ease;
}

/* Hover / ativo */
#menu .nav-link:hover,
#menu .nav-item.active .nav-link,
#menu .nav-item.show .nav-link {
  background-color: #1f6e1f;
  color: #eddd4c;
}

/* Dropdown */
#menu .dropdown-menu {
  border: 1px solid #ccc;
  background-color: #fff;
  font-size: 0.9rem;
}


#menu .dropdown-item {
  padding: 0.5rem 1rem;
}

#menu .dropdown-item:hover {
  background-color: #eddd4c;
  color: #000;
}

/* --------------------------------------------------
   Footer
-------------------------------------------------- */
footer {
  background-color: #258425;
  color: #fff;
  padding: 30px 15px;
}

footer a {
  color: #fff;
  transition: color 0.3s ease;
}

footer a:hover {
  color: #eddd4c;
}

footer h5 {
  Color: #000;
  font-size: 1.11rem;
  font-weight: bold;
  margin-bottom: 1rem;
}

/* --------------------------------------------------
   Responsive Adjustments
-------------------------------------------------- */
@media (max-width: 767.98px) {
  #top .nav {
    flex-direction: column;
    align-items: center;
    gap: 5px;
  }

  header .row {
    text-align: center;
  }

  #search,
  #header-cart {
    margin-top: 15px;
  }
}

/* --------------------------------------------------
   Utility Classes
-------------------------------------------------- */
.text-green {
  color: #258425;
}

.bg-green {
  background-color: #258425;
}

.btn-green {
  background-color: #258425;
  border-color: #258425;
  color: #fff;
}

.btn-green:hover {
  background-color: #1f6e1f;
  border-color: #1f6e1f;
  color: #fff;
}

.category-card {
  background-color: #f8f9fa;
  transition: all 0.3s ease;
  color: #222;
  border: 1px solid #eee;
}

.category-card:hover {
  background-color: #eddd4c;
  color: #000 !important;
  transform: translateY(-4px);
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.category-card i {
  transition: transform 0.3s ease;
}

.category-card:hover i {
  transform: scale(1.2);
}

.link-hover:hover {
  color: #eddd4c !important;
  text-decoration: none;
}

.product-thumb-wrapper {
  position: relative;
  overflow: hidden;
}

.product-thumb-wrapper:hover .hover-icons {
  display: flex !important;
}

.btn-outline-green {
  border: 2px solid #28a745;
  background-color: #fff;
  color: #28a745;
  font-weight: 600;
  padding: 6px 16px;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-outline-green:hover {
  background-color: #28a745;
  color: #fff;
}



.glightbox-clean .gslide-description {
  background: rgba(40, 167, 69, 0.85);
  color: #fff;
}

.glightbox-clean .gslide-title {
  font-size: 1.1rem;
  font-weight: bold;
}


/* Botão Comprar */
.btn-success {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
}

/* Botões de comparação e favoritos */
.btn-outline-secondary:hover {
  background-color: #28a745;
  color: white;
  border-color: #28a745;
}

/* Imagens mais elegantes */
.img-thumbnail {
  transition: transform 0.2s ease-in-out;
}


.custom-buy-btn {
  background-color: #28a745;
  border-color: #28a745;
  color: #fff;
  font-weight: 600;
  transition: all 0.3s ease-in-out;
}

.custom-buy-btn:hover {
  color: #eddd4c !important;
    background-color: #28a745;
  border-color: #28a745;
}


/* Aplica hover visual às miniaturas */
.product-gallery .img-thumbnail {
  transition: all 0.3s ease;
  border: 2px solid #dee2e6;
}

.product-gallery .img-thumbnail:hover {
  border-color: #28a745;
  box-shadow: 0 0 10px rgba(40, 167, 69, 0.4);
  transform: scale(1.03);
  z-index: 2;
}

/* LAYOUT PRINCIPAL */
.account-layout {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  margin-right: 30px;
  margin-bottom: 30px;
}

/* QUADRADOS (ESQUERDA) */
.account-blocks {
  flex: 1;
  min-width: 300px;
}

.block-group {
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  margin-bottom: 25px;
}

.group-content {
  display: flex;
  flex-wrap: wrap;
  margin: -7.5px;
}

.account-block {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 15px 10px;
  transition: all 0.3s;
  min-height: 120px;
  align-items:center;
  display: flex;
  justify-content: center;
  position: relative;
  width: calc(33.33% - 15px);
  margin: 7.5px;
}

/* LINHA DIVISÓRIA PARA TODOS OS BLOCOS */
.account-block::after {
  content: "";
  position: absolute;
  bottom: 40%;
  left: 50%;
  transform: translateX(-50%);
  width: 40px;
  height: 2px;
  background: #28a745;
  transition: all 0.3s;
}

.account-block a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  text-align:center;
}

.account-block i {
  color: #28a745;
  font-size: 24px;
  margin-bottom: 25px;
}

.account-block span {
  color: #333;
  font-size: 14px;
  font-weight: 600;
  display: block;
  margin-top: 10px;
  line-height: 1.3;
}

.account-block:hover {
  background: #28a745;
  transform: translateY(-3px);
}

.account-block:hover i,
.account-block:hover span {
  color: white;
}

.account-block:hover .divider-line {
  background: white;
}

/* MENU DIREITA */
.account-menu {
  padding-left: 30px;
}

.menu-section {
  background: white;
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.menu-section h3 {
  color: #28a745;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
  margin-bottom: 15px;
  font-size: 20px;
}

.menu-section h3 i {
  margin-right: 10px;
}

.menu-section ul {
  list-style: none;
  padding: 0;
}

.menu-section li {
  padding: 12px 0;
  border-bottom: 1px solid #f5f5f5;
}

.menu-section li:last-child {
  border-bottom: none;
}

.menu-section a {
  color: #555;
  text-decoration: none;
  font-size: 16px;
  transition: all 0.2s;
  display: block;
}

.menu-section a:hover {
  color: #28a745;
  padding-left: 5px;
}

/* BOTÃO SAIR */
.menu-section li.logout {
  margin-top: 15px;
  padding-top: 15px;
  border-top: 1px solid #eee;
}

.menu-section li.logout a {
  color: #dc3545;
  font-weight: bold;
}

/* RESPONSIVO */
@media (max-width: 768px) {
  .account-layout {
    flex-direction: column;
  }
  .account-blocks {
    width: 100%;
  }
  .account-menu {
    padding-left: 0;
    margin-top: 30px;
  }
  .account-block {
    width: 100%;
  }
}






/* Estilo para os produtos em destaque */
.featured-product-card {
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    height: 100%;
}

.featured-product-card:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px);
}

.featured-product-image {
    padding: 15px;
    text-align: center;
    position: relative;
    background: #f9f9f9;
}

.featured-product-image img {
    max-height: 180px;
    width: auto;
    object-fit: contain;
}

.featured-product-actions {
    position: absolute;
    bottom: 10px;
    left: 0;
    right: 0;
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    justify-content: center;
    gap: 10px;
}

.featured-product-card:hover .featured-product-actions {
    opacity: 1;
}

.featured-product-actions button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    color: #333;
    transition: all 0.3s ease;
}

.featured-product-actions button:hover {
    background: #258425;
    color: #fff;
}

.featured-product-info {
    padding: 15px;
    text-align: center;
}

.featured-product-title {
    font-size: 14px;
    margin-bottom: 10px;
    height: 40px;
    overflow: hidden;
}

.featured-product-price {
    color: #258425; /* Verde */
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 15px;
}

.featured-product-btn {
    background: #258425;
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 4px;
    font-weight: bold;
    width: 100%;
    transition: all 0.3s ease;
}

.featured-product-btn:hover {
    background: #1e6e1e;
}

/* Menu Lateral de Categorias */
.list-group-item {
    border-color: #e0e0e0;
    transition: all 0.3s ease;
}

.list-group-item.active {
    background-color: #258425;
    border-color: #258425;
    color: white;
}

.list-group-item:not(.active):hover {
    background-color: #f8f9fa;
    color: #258425;
}

/* Cabeçalho do menu */
.panel-heading {
    background-color: #258425 !important;
    color: white !important;
    border-color: #1e6e1e !important;
}

/* Ícones e elementos interativos */
.list-group-item.active .badge {
    background-color: #eddd4c;
    color: #333;
}

/* Subcategorias */
.list-group .list-group {
    margin-left: 15px;
}

.list-group .list-group-item {
    border-left: 3px solid #eddd4c;
}

/* Responsividade */
@media (max-width: 767px) {
    #column-left {
        margin-bottom: 30px;
    }
}

/* Garante que todos os botões "Continuar" tenham o mesmo estilo */
a.btn-primary, input.btn-primary {
    background-color: #258425 !important;
    border-color: #258425 !important;
}

a.btn-primary:hover, input.btn-primary:hover {
    background-color: #1e6e1e !important;
    color: #eddd4c !important;
    border-color: #1e6e1e !important;
}

/* Estilo para a logo do livro */
.footer-livro-reclamacoes img {
  transition: transform 0.3s ease;
  max-width: 180px; /* Ajuste conforme necessário */
}

.footer-livro-reclamacoes a:hover img {
  transform: scale(1.05);
  opacity: 0.9;
}

.btn-ver-mais {
  background-color: #258425;
  color: white !important;
  padding: 12px 25px;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
  font-weight: bold;
  transition: all 0.3s ease;
}
.btn-ver-mais:hover {
  background-color: #1a6a1a;
  transform: translateY(-2px);
}

/* Aumenta o tamanho geral do dropdown */
#cart .dropdown-menu {
  min-width: 480px; /* Aumentado para 480px */
  padding: 20px;
}

/* Ajusta a coluna do produto */
.cart-item-details td:first-child {
  width: 45%; /* Aumenta a largura da coluna Produto */
  max-width: 220px; /* Limite máximo para o nome */
}

/* Mostra o valor da quantidade */
.quantity-input {
  width: 40px !important;
  text-align: center;
  font-size: 0.9rem;
  padding: 5px;
}

/* Melhora a exibição do nome do produto */
.cart-item-name {
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: normal !important;
  word-break: break-word;
  text-align: center;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Limita a 3 linhas */
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Espaçamento entre colunas */
.unit-price {
  padding-right: 15px !important;
}

.product-subtotal {
  padding-left: 15px !important;
}

/* Aumenta a largura da coluna de produto */
.cart-items-table th:first-child,
.cart-items-table td:first-child {
  width: 50%;
}

/* Melhora a legibilidade do nome */
.product-name {
  font-size: 0.95rem;
  line-height: 1.4;
  white-space: normal;
  word-break: break-word;
}

/* Espaçamento entre colunas */
.cart-items-table td {
  padding: 12px 8px;
}

/* Mantém o dropdown grande */
#cart .dropdown-menu {
  min-width: 500px;
  max-width: 100%;
}

.total-container {
  display: flex;
  align-items: baseline;
  gap: 5px;
}

.total-label {
  font-weight: bold;
  white-space: nowrap;
}

.total-value {
  font-weight: bold;
  margin-left: 0;
}

.cart-total {
  text-align: right !important;
  padding-right: 15px;
}

.cart-total .fwbold {
  display: inline-block;
  min-width: 150px; /* Ajuste conforme necessário */
   padding: 10px 15px;
}

.total-display {
  display: inline-block;
  min-width: 150px;
  text-align: right;
}

#dynamic-total {
  font-weight: bold;
  margin-left: 3px;
}

/* --- Estilo mobile para o dropdown do carrinho --- */
@media (max-width: 768px) {
  /* Esconde cabeçalho da tabela */
  .cart-items-table thead {
    display: none;
  }

  /* Cada produto vira "card" */
  .cart-items-table tbody tr {
    display: block;
    margin-bottom: 1rem;
    border-bottom: 1px solid #ddd;
    padding-bottom: 0.8rem;
  }

  /* Colunas dentro do card */
  .cart-items-table tbody tr td {
    display: block;
    text-align: left !important;
    width: 100% !important;
    border: none;
    padding: 0.25rem 0;
  }

  /* Produto: imagem + nome */
  .cart-items-table tbody tr td[data-label="produto"] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
  }

  .cart-items-table tbody tr td[data-label="produto"] img {
    width: 60px;
    height: auto;
    flex-shrink: 0;
  }

  .cart-items-table tbody tr td[data-label="produto"] .product-name {
    flex-grow: 1;
    white-space: normal;
    font-size: 0.95rem;
    font-weight: 500;
  }

  /* Qtd, Preço, Total, Remover aparecem em linhas abaixo */
  .cart-items-table tbody tr td[data-label="Qtd"]::before,
  .cart-items-table tbody tr td[data-label="Preço Un."]::before,
  .cart-items-table tbody tr td[data-label="Total"]::before {
    content: attr(data-label) ": ";
    font-weight: 600;
    margin-right: 5px;
  }

  /* Botão remover alinhado à esquerda */
  .cart-items-table tbody tr td[data-label="Remover"] {
    text-align: left !important;
  }
}

#header-cart .dropdown-menu {
  left: auto !important;
  right: 0 !important;
  min-width: 750px; /* largura mínima maior que o default */
  word-wrap: break-word; /* permite quebrar o texto se necessário */
  white-space: normal; /* permite várias linhas */
  padding: 15px;
}

