/* ===========================
   RESET & BASE
=========================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, Helvetica, sans-serif;
  color: #333;
  background: #fff;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  text-decoration: none;
  color: inherit;
}

ul {
  list-style: none;
}

/* ===========================
   LAYOUT
=========================== */
.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
}

/* ===========================
   HEADER
=========================== */
.site-header {
  background-image: url(images/bg_header1.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: auto;
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: flex-end;
}

/* caixa branca do logo */
.logo {
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 18px;
  flex-shrink: 0;
}

.logo img {
  height: 110px;
  width: auto;
  object-fit: contain;
}

/* barra de navegação verde */
.main-nav {
  background: #2e7d4f;
  flex: 1;
}

.main-nav ul {
  display: flex;
  align-items: center;
}

.main-nav ul li a {
  display: block;
  padding: 16px 20px;
  color: #fff;
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.5px;
  transition: background 0.2s;
  white-space: nowrap;
}

.main-nav ul li a:hover {
  background: rgba(0,0,0,0.15);
}

/* ===========================
   MAIN CONTENT
=========================== */
.main-content {
  padding: 30px 0;
}

.main-content .container {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}

/* ===========================
   SIDEBAR BOTÕES
=========================== */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 220px;
  flex-shrink: 0;
}

.sidebar-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 3px;
  color: #fff;
  transition: opacity 0.2s;
  cursor: pointer;
}

.sidebar-btn:hover {
  opacity: 0.88;
}

.sidebar-btn .btn-icon img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.sidebar-btn .btn-text {
  display: flex;
  flex-direction: column;
  font-size: 13px;
  line-height: 1.4;
}

.sidebar-btn .btn-text strong {
  font-size: 14px;
}

.btn-green    { background: #2e7d4f; }
.btn-orange   { background: #e67e22; }
.btn-blue     { background: #2980b9; }
.btn-darkgreen { background: #1a5c38; }

/* ===========================
   BANNER PRODUTO
=========================== */
.banner-produto {
  flex: 1;
  border: 1px solid #e0e0e0;
  border-radius: 4px;
  overflow: hidden;
  align-self: flex-start;
}

.banner-produto img {
  width: 100%;
  height: auto;
  display: block;
}

/* ===========================
   BANNER FARMACÊUTICOS
=========================== */
.banner-farmaceuticos {
  width: 100%;
  max-width: 600px;
  margin: 0 auto 40px;
  padding: 0 20px;
}

.banner-farmaceuticos img {
  width: 100%;
  height: auto;
  border-radius: 3px;
}

/* ===========================
   SEÇÃO LOJAS
=========================== */
.lojas {
  padding: 10px 0 50px;
}

.lojas .container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.loja-item h2 {
  font-size: 20px;
  font-weight: normal;
  color: #777;
  margin-bottom: 12px;
}

.loja-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 3px;
}

.loja-item address {
  font-style: normal;
  font-size: 13px;
  color: #666;
  margin-top: 10px;
  line-height: 1.6;
}

/* ===========================
   FOOTER
=========================== */
.site-footer {
  background: #3a3a3a;
  color: #ccc;
  padding: 22px 20px;
}

.footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 6px;
}

.footer-nav a {
  color: #ccc;
  font-size: 13px;
  transition: color 0.2s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-nav a + a::before {
  content: ' | ';
  margin-right: 6px;
  color: #666;
}

.footer-copy {
  font-size: 13px;
}

/* ===========================
   PÁGINA A INVITA
=========================== */
.page-layout {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  padding-top: 30px;
  padding-bottom: 50px;
}

.page-text {
  flex: 1;
}

.page-text h1 {
  font-size: 17px;
  font-weight: bold;
  color: #555;
  line-height: 1.5;
  margin-bottom: 20px;
}

.page-text p {
  font-size: 14px;
  color: #555;
  line-height: 1.7;
  margin-bottom: 14px;
}

.main-nav ul li a.active {
  background: rgba(0,0,0,0.2);
}

/* ===========================
   PÁGINA LOCALIZAÇÃO
=========================== */
.localizacao-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.unidade h2 {
  font-size: 20px;
  font-weight: normal;
  color: #777;
  margin-bottom: 4px;
}

.unidade address {
  font-style: normal;
  font-size: 13px;
  color: #888;
  margin-bottom: 12px;
}

.mapa {
  width: 100%;
  height: 280px;
  border-radius: 4px;
  overflow: hidden;
  border: 1px solid #e0e0e0;
}

.mapa iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

/* ===========================
   PLACEHOLDERS (imagens ausentes)
=========================== */
.banner-produto img {
  background: #f9f9f9;
}

.banner-farmaceuticos img {
  background: linear-gradient(135deg, #2e7d4f, #4caf7a);
  min-height: 130px;
}

.loja-item img {
  background: #e0e0e0;
}

/* ===========================
   RESPONSIVO
=========================== */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .logo {
    justify-content: center;
  }

  .main-nav ul {
    flex-wrap: wrap;
    justify-content: center;
  }

  .main-nav ul li a {
    padding: 10px 12px;
    font-size: 12px;
  }

  .main-content .container {
    flex-direction: column;
  }

  .sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    min-width: unset;
    width: 100%;
  }

  .sidebar-btn {
    flex: 1 1 calc(50% - 6px);
  }

  .lojas .container {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
  }
}
