:root {
  --primary: #F05A28;
  --accent: #FF7F50;
  --dark-red: #C04000;
  --text: #1F1F1F;
  --muted: #666;
  --bg: #FFF;
  --alt: #F4F4F4;
  --sobre: #F5F3F1;
  --menu-h: 78px; /* altura mais equilibrada */
}

/* BASE */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  overflow-x: hidden;
}
body.has-fixed-menu { padding-top: var(--menu-h); }
img { max-width: 100%; height: auto; }

/* HERO (1ª seção) */
#hero {
  background:#0E0D0D;
  padding:18px 16px;
  margin-bottom: 6px; /* folga visual para o menu */
}
.hero-inner {
  max-width:1200px;
  margin:0 auto;
  display:flex;
  align-items:center;
  gap:32px;
}
.logo { width:130px; }
.ticker-box {
  border:3px solid gold;
  border-radius:12px;
  padding:8px 10px;
  overflow:hidden;
  width:100%;
  max-width:700px;
  box-shadow:0 0 14px rgba(255,215,0,0.04);
}
.ticker { height: 18px; position:relative; }
.ticker span {
  display:inline-block;
  white-space:nowrap;
  animation:scroll 18s linear infinite;
  color:#fff;
  font-size:0.95rem;
  font-weight:700;
}
@keyframes scroll { 0% { transform: translate(100%, 0); } 100% { transform: translate(-100%, 0); } }

/* MENU (2ª seção) */
#menu {
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,0.06);
  position: relative;
  width: 100%;
  height: var(--menu-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  box-sizing: border-box;
  z-index: 120;
}
#menu.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--menu-h);
}

/* GRID E ITENS */
.menu-grid {
  display:flex;
  justify-content:center;
  align-items:center;
  list-style:none;
  padding:0;
  margin:0 auto;
  max-width:1200px;
}
.menu-item { margin:0 8px; }
.menu-item a {
  display:flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration:none;
  color:var(--text);
  font-size:0.95rem;
  font-weight:700;
  padding:16px 18px;
  border-radius:10px;
  transition:all 0.3s;
  text-align: center;
}
.menu-item a img { width:22px; height:22px; object-fit:contain; }
.menu-item a:hover {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  color:#fff;
  transform:translateY(-2px);
  box-shadow: 0 4px 8px rgba(240,90,40,0.35);
}
.menu-item a:hover img { filter:brightness(0) invert(1); }

/* BOTÃO MENU MOBILE */
#menu-toggle {
  display: none;
  background: none;
  border: none;
  padding: 10px;
  cursor: pointer;
  z-index: 140;
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}
.icon-bar {
  display: block;
  width: 25px;
  height: 3px;
  margin: 4px 0;
  background-color: var(--primary);
  transition: all 0.3s ease-in-out;
  border-radius: 2px;
}
#menu-toggle.active .icon-bar:nth-child(2) { opacity: 0; }
#menu-toggle.active .icon-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
#menu-toggle.active .icon-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* BANNER */
.banner-section {
  position: relative;
  max-width: 1200px;
  margin: 40px auto 50px;
  padding: 0 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}
.banner-container {
  position: relative;
  width: 100%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.banner-wrap {
  width: 90%;
  height: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}
.banner {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: #fff;
  position: absolute;
  opacity: 0;
  transition: opacity .6s ease-in-out;
  z-index: 0;
  pointer-events: none;
}
.banner.active { opacity: 1; }
.banner-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 10;
  padding: 8px;
  pointer-events: auto;
}
.banner-arrow.left  { left: 0; }
.banner-arrow.right { right: 0; }
.banner-arrow img {
  width: 48px;
  height: 48px;
  object-fit: contain;
  pointer-events: none;
}

/* PRODUTOS */
#produtos {
  max-width:1200px;
  margin:24px auto 60px;
  padding:0 16px;
}
main section {
  width:100%;
  margin:0;
  padding:50px 20px;
  position:static;
  left:auto;
  right:auto;
  margin-left:auto;
  margin-right:auto;
}
h2 {
  font-size:2.5rem;
  font-weight:900;
  color:var(--primary);
  text-align:center;
  margin:40px 0 20px;
  text-shadow:2px 2px 4px rgba(0,0,0,0.05);
}
.section-light { background:var(--bg); }
.section-alt { background:var(--alt); }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 40px 20px;
  margin-top: 20px;
  margin-bottom: 40px;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  justify-items: center;
  align-items: stretch;
}
.card {
  background:#fff;
  border-radius:16px;
  box-shadow:0 4px 10px rgba(0,0,0,0.05);
  padding:10px;
  text-align:center;
  position:relative;
  overflow:hidden;
  transition:transform 0.3s, box-shadow 0.3s;
  display:flex;
  flex-direction:column;
  height:100%;
  margin-bottom:8px;
}
.card:hover {
  transform: translateY(-8px);
  box-shadow:
    0 10px 25px rgba(255, 0, 0, 0.45),
    0 0 15px rgba(255, 80, 80, 0.4),
    0 0 25px rgba(255, 40, 40, 0.3);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.card .badge {
  position:absolute;
  top:12px;
  left:0;
  background:var(--dark-red);
  color:#fff;
  padding:4px 8px;
  font-size:0.8rem;
  font-weight:700;
  border-radius:0 8px 8px 0;
  box-shadow:2px 2px 4px rgba(0,0,0,0.2);
  z-index:2;
}
.card .product-img {
  width:100%;
  height:180px;
  border-radius:8px;
  margin-bottom:8px;
  object-fit:contain;
  object-position:center;
}
.card h3 {
  margin:10px 6px 0;
  font-size:.95rem;
  line-height:1.3;
  color:#333;
  font-weight:800;
  min-height: 3.9em;
  max-height: 3.9em;
  overflow:hidden;
  display:-webkit-box;
  -webkit-line-clamp:3;
  -webkit-box-orient:vertical;
}
.card .old-price {
  color:var(--muted);
  font-size:0.8rem;
  text-decoration:line-through;
  margin-top:8px;
  min-height: 1.2em;
  display:block;
}
.card .price {
  font-size:1.4rem;
  font-weight:900;
  color:var(--dark-red);
  margin:6px 0 10px;
  line-height:1.2;
  min-height: 1.9em;
}
.card .discount {
  font-size:0.9rem;
  font-weight:700;
  color:var(--primary);
  margin-left:5px;
}
.buy-link {
  display:block;
  background:var(--primary);
  color:#fff;
  text-decoration:none;
  padding:10px;
  border-radius:8px;
  font-weight:700;
  margin-top:auto;
  transition:background 0.3s;
}
.buy-link:hover { background:var(--accent); }
.seller {
  font-size:0.75rem;
  color:var(--muted);
  margin-top:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  min-height: 28px;
}
.seller-wrap { display:inline-flex; align-items:center; justify-content:center; height:20px; border-radius:4px; padding:2px 4px; }
.seller img { width:75px; height:auto; object-fit:contain; }

/* INSTITUCIONAL */
#institucional { background:var(--sobre); padding:40px 16px; margin-top:40px; }
.inst-container { max-width:1200px; margin:0 auto; }
#institucional .inst-text { text-align: left; max-width: 900px; margin: 0 auto 40px; position: relative; padding-left: 18px; border-left: 6px solid var(--primary); }
#institucional .inst-text h3 { color: var(--text); margin-top: 0; font-size: 2rem; font-weight: 900; margin-bottom: 12px; }
#institucional .inst-text p { text-align: left; margin-top: 10px; line-height: 1.8; color: var(--muted); font-size: 1rem; }
.inst-columns { display:flex; justify-content:space-around; gap:30px; flex-wrap:wrap; }
.inst-card { background:#fff; border-radius:12px; padding:20px; flex:1; min-width:280px; box-shadow:0 2px 8px rgba(0,0,0,0.05); text-align:center; }
.inst-card h4 { color:var(--primary); margin-top:0; font-size:1.3rem; }
.inst-card .contact-icons { display:flex; align-items:center; justify-content:center; gap:24px; margin-top:12px; flex-wrap:wrap; }
.inst-card .contact-icons a { display:flex; flex-direction:column; align-items:center; text-decoration:none; color:#111; font-weight:600; transition: transform 0.2s ease, filter 0.3s ease, box-shadow 0.3s ease; }
.inst-card .contact-icons a:hover { transform: translateY(-4px) scale(1.05); filter: brightness(1.15); }
.inst-card .contact-icons a:hover img { filter: drop-shadow(0 0 6px rgba(240,90,40,0.6)); }
.inst-card .contact-icons a:hover span { color: var(--primary); text-shadow: 0 0 6px rgba(255,200,100,0.5); }
.inst-card .contact-icons img { width:40px; height:40px; object-fit:contain; margin-bottom:6px; }

/* FOOTER */
footer { background:#141414; color:#fff; padding:18px 0 10px; text-align:center; }
footer a{ color:#fff; text-decoration:underline; }

/* RESPONSIVO */
@media (max-width: 1280px) {
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  :root { --menu-h: 70px; }

  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 16px; }
  .banner-container { height: 240px; }
  .hero-inner { gap:16px; justify-content: space-between; }
  .logo { width:100px; }

  #menu { height: var(--menu-h); padding: 0 14px; }

  #menu-toggle {
    display:block;
    top: 50%;
    transform: translateY(-50%);
  }

  .menu-grid {
    display:none;
    position: fixed;
    top: var(--menu-h) !important;
    left:0;
    width:100%;
    background:#fff;
    box-shadow:0 4px 6px rgba(0,0,0,0.06);
    z-index:130;
    flex-direction:column;
    padding:10px 0;
    margin-top:0 !important;
  }
  .menu-grid.active { display:flex; }

  .menu-item { width:100%; margin:0; }
  .menu-item a {
    flex-direction:row;
    justify-content:flex-start;
    gap:12px;
    border-radius:0;
    width:100%;
    box-sizing:border-box;
    padding:12px 20px;
  }
  .menu-item a:hover { background: var(--primary); transform:none; box-shadow:none; }
}

@media (max-width: 600px) {
  html, body { overflow-x: hidden !important; }
  #produtos, main section, .cards { margin: 0 auto !important; padding: 0 !important; max-width: 100% !important; display: flex !important; flex-direction: column !important; justify-content: center !important; align-items: center !important; }
  .cards { grid-template-columns: 1fr; gap: 28px; width: 100%; box-sizing: border-box; }
  .card { width: 90% !important; max-width: 340px !important; margin: 0 auto !important; }
  .banner-container { height: 180px; }
  .banner-wrap { width: 92%; }
  .banner-arrow img { width: 36px; height: 36px; }
  .seller img { width:90px !important; height:auto !important; }
  h2 { font-size:2rem; }
  .card h3 { font-size:0.9rem; word-break:break-word; color:#333; }
  .inst-columns { flex-direction: column; align-items: center; }
  .inst-card { width: 90%; }
}
