:root {
  --primary: #27ae60;
  --primary-dark: #229954;
  --secondary: #e74c3c;
  --text: #2c3e50;
  --text-light: #7f8c8d;
  --bg: #ecf0f1;
  --white: #ffffff;
  --border: #bdc3c7;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.15);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

body.menu-open {
  overflow: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

/* ==================== HEADER ==================== */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--white);
  box-shadow: var(--shadow);
}

.header-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.2rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
}

.logo-icon {
  font-size: 1.8rem;
}

.logo-text {
  color: var(--primary);
}

.nav-menu {
  display: flex;
  gap: 2rem;
  align-items: center;
}

.nav-menu a {
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-menu a:hover {
  color: var(--primary);
}

.hamburger {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
  gap: 6px;
}

.hamburger span {
  width: 25px;
  height: 3px;
  background-color: var(--text);
  border-radius: 2px;
  transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
  transform: rotate(45deg) translate(8px, 8px);
}

.hamburger.active span:nth-child(2) {
  opacity: 0;
}

.hamburger.active span:nth-child(3) {
  transform: rotate(-45deg) translate(7px, -7px);
}

/* ==================== MAIN CONTENT ==================== */
.main-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}

/* ==================== PRODUCT SECTION ==================== */
.product-section {
  margin-bottom: 4rem;
}

.product-card {
  background-color: var(--white);
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  padding: 2rem;
  animation: fadeInUp 0.6s ease-out;
}

.product-carousel {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  overflow: visible;
}

.carousel-container {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 400px;
  position: relative;
}

.product-image {
  width: 100%;
  height: auto;
  max-width: 300px;
  object-fit: contain;
  transition: opacity 0.3s ease;
}

.carousel-btn {
  background-color: rgba(39, 174, 96, 0.9);
  color: white;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  font-size: 1.5rem;
  cursor: pointer;
  transition: all 0.3s ease;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-btn:hover {
  background-color: var(--primary-dark);
  transform: scale(1.1);
}

.carousel-btn:active {
  transform: scale(0.95);
}

.carousel-indicators {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background-color: var(--primary);
  width: 30px;
  border-radius: 5px;
}

.indicator:hover {
  background-color: rgba(255, 255, 255, 0.9);
}

.product-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.2rem;
}

.product-title {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.price-section {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 1rem 0;
}

.price-label {
  font-size: 1.2rem;
  color: var(--text-light);
}

.price-amount {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--secondary);
}

.price-condition {
  font-size: 0.95rem;
  color: var(--text-light);
  margin-left: 0.5rem;
}

.badge-unique {
  display: inline-block;
  background-color: var(--secondary);
  color: var(--white);
  padding: 0.5rem 1rem;
  border-radius: 4px;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 1px;
  width: fit-content;
  box-shadow: 0 2px 8px rgba(231, 76, 60, 0.3);
}

.btn-whatsapp {
  background-color: var(--primary);
  color: var(--white);
  border: none;
  padding: 1rem 1.5rem;
  border-radius: 6px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(39, 174, 96, 0.3);
  text-align: center;
  line-height: 1.4;
}

.btn-whatsapp:hover {
  background-color: var(--primary-dark);
  box-shadow: 0 6px 18px rgba(39, 174, 96, 0.4);
  transform: translateY(-2px);
}

.btn-whatsapp:active {
  transform: translateY(0);
}

.product-warning {
  font-size: 0.85rem;
  color: var(--text-light);
  font-style: italic;
}

.product-footer {
  font-size: 0.9rem;
  color: var(--text-light);
  padding-top: 1rem;
  border-top: 1px solid #ecf0f1;
}

/* ==================== CATÁLOGO ==================== */
.catalog-section { margin: 1rem 0 4rem; padding: 3rem 0; border-top: 2px solid var(--border); }
.catalog-heading { display: flex; justify-content: space-between; gap: 2rem; align-items: end; margin-bottom: 2rem; }
.catalog-heading h2 { font-size: 2.2rem; line-height: 1.2; margin-bottom: .55rem; }
.catalog-heading p:not(.eyebrow) { color: var(--text-light); }
.eyebrow { color: var(--primary); font-size: .76rem; font-weight: 800; letter-spacing: .1em; margin-bottom: .5rem; }
.catalog-contact, .admin-save { background: var(--primary); color: #fff; border: 0; border-radius: 999px; padding: .9rem 1.3rem; font-size: .95rem; font-weight: 700; cursor: pointer; box-shadow: 0 4px 12px rgba(39,174,96,.25); }
.category-tabs { display: flex; flex-wrap: wrap; gap: .7rem; margin-bottom: 1.7rem; }
.category-tab { border: 1px solid #dce4df; color: var(--text); background: #fff; border-radius: 999px; padding: .7rem 1.15rem; font-weight: 700; cursor: pointer; }
.category-tab.active, .category-tab:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.catalog-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; }
.catalog-card { background: #fff; border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); display: grid; grid-template-columns: 42% 58%; transition: transform .2s, box-shadow .2s; }
.catalog-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.catalog-photo { background: #f8f9fa; min-height: 250px; display: grid; place-items: center; padding: 1.2rem; }
.catalog-photo img { width: 100%; max-height: 220px; object-fit: contain; }
.catalog-info { padding: 1.3rem 1.2rem; display: flex; flex-direction: column; align-items: flex-start; gap: .7rem; }
.category-label { color: var(--primary); font-size: .73rem; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.catalog-info h3 { font-size: 1.08rem; line-height: 1.35; }
.catalog-price { color: var(--secondary); font-size: 1.65rem; font-weight: 800; line-height: 1.1; }
.catalog-price span { color: var(--text-light); font-size: .8rem; }
.catalog-price small { display: block; color: var(--text-light); font-size: .72rem; font-weight: 500; margin-top: .2rem; }
.catalog-status { color: var(--text-light); font-size: .82rem; display: flex; align-items: center; gap: .45rem; }
.catalog-status i { width: .55rem; height: .55rem; background: #f0a020; border-radius: 50%; }
.catalog-status.available { color: #257543; }.catalog-status.available i { background: var(--primary); }
.catalog-info .btn-whatsapp { width: 100%; margin-top: auto; padding: .75rem; font-size: .88rem; }


/* ==================== INFO SECTIONS ==================== */
.info-section {
  margin: 4rem 0;
  padding: 3rem 0;
  border-top: 2px solid var(--border);
}

.info-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.info-card {
  background-color: var(--white);
  padding: 3rem;
  border-radius: 12px;
  box-shadow: var(--shadow-lg);
  animation: fadeInUp 0.6s ease-out;
}

.info-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 1.5rem;
}

.info-text {
  font-size: 1rem;
  line-height: 1.8;
  color: var(--text);
  margin-bottom: 1.5rem;
}

.info-text strong {
  color: var(--primary);
  font-weight: 700;
}

.info-list {
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.info-list li {
  font-size: 1rem;
  color: var(--text);
  padding: 0.8rem 0;
  padding-left: 2rem;
  position: relative;
}

.info-list li:before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
  font-size: 1.2rem;
}

.steps-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
  margin-top: 2rem;
}

.step {
  text-align: center;
  padding: 2rem 1.5rem;
  background-color: #f8f9fa;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.step:hover {
  background-color: rgba(39, 174, 96, 0.1);
  transform: translateY(-4px);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  background-color: var(--primary);
  color: white;
  border-radius: 50%;
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step h4 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}

.step p {
  font-size: 0.9rem;
  color: var(--text-light);
  line-height: 1.6;
}

/* ==================== TESTIMONIALS SECTION ==================== */
.testimonials-section {
  margin-top: 5rem;
  padding-top: 3rem;
  border-top: 2px solid var(--border);
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  color: var(--text);
  margin-bottom: 3rem;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
}

.testimonial-card {
  background-color: var(--white);
  padding: 2rem;
  border-radius: 8px;
  box-shadow: var(--shadow);
  text-align: center;
  transition: all 0.3s ease;
  animation: fadeInUp 0.6s ease-out;
}

.testimonial-card:nth-child(1) {
  animation-delay: 0.1s;
}

.testimonial-card:nth-child(2) {
  animation-delay: 0.2s;
}

.testimonial-card:nth-child(3) {
  animation-delay: 0.3s;
}

.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.stars {
  font-size: 1.5rem;
  color: #f39c12;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.testimonial-text {
  font-size: 1rem;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 1rem;
  line-height: 1.6;
}

.testimonial-author {
  font-size: 0.9rem;
  color: var(--text-light);
  font-weight: 600;
}

/* ==================== FOOTER ==================== */
.footer {
  background-color: var(--text);
  color: var(--white);
  padding: 2rem;
  text-align: center;
  margin-top: 5rem;
  font-size: 0.9rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content p {
  margin: 0.5rem 0;
}

.footer-content a {
  color: var(--primary);
  transition: color 0.3s ease;
}

.footer-content a:hover {
  color: #f39c12;
}

/* ==================== ANIMATIONS ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ==================== RESPONSIVENESS ==================== */
@media (max-width: 768px) {
  .header-container {
    flex-direction: row;
    gap: 1.5rem;
    padding: 1rem 1.5rem;
    justify-content: space-between;
    position: relative;
  }

  .logo {
    flex: 1;
  }

  .hamburger {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    left: 0;
    top: 0;
    width: 250px;
    height: 100vh;
    flex-direction: column;
    background-color: var(--white);
    padding: 6rem 2rem 2rem;
    gap: 1rem;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    box-shadow: 2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 998;
    align-items: flex-start;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-menu a {
    display: block;
    width: 100%;
    padding: 1.2rem 0;
    font-size: 1.1rem;
    color: var(--text);
    border-bottom: 1px solid #ecf0f1;
    transition: all 0.3s ease;
  }

  .nav-menu a:hover {
    padding-left: 1rem;
    background-color: rgba(39, 174, 96, 0.1);
  }

  .main-content {
    padding: 2rem 1rem;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 1.5rem;
  }

  .catalog-heading { align-items: flex-start; flex-direction: column; }
  .catalog-grid { grid-template-columns: 1fr; }

  .carousel-container {
    min-height: 300px;
  }

  .product-title {
    font-size: 1.5rem;
  }

  .price-amount {
    font-size: 2rem;
  }

  .section-title {
    font-size: 1.5rem;
  }

  .btn-whatsapp {
    font-size: 0.95rem;
    padding: 0.85rem 1.2rem;
    width: 100%;
  }

  .testimonials-grid {
    gap: 1.5rem;
  }

  .info-card {
    padding: 2rem 1.5rem;
  }

  .info-title {
    font-size: 1.8rem;
  }

  .steps-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 0.9rem;
  }

  .nav-menu {
    width: 200px;
    padding: 5rem 1.5rem 2rem;
  }

  .product-title {
    font-size: 1.3rem;
  }

  .price-amount {
    font-size: 1.8rem;
  }

  .product-card {
    padding: 1rem;
  }

  .catalog-card { grid-template-columns: 1fr; }.catalog-photo { min-height: 200px; }.catalog-info { padding: 1.15rem; }
  .catalog-heading h2 { font-size: 1.75rem; }.category-tab { padding: .6rem .85rem; font-size: .85rem; }

  .section-title {
    font-size: 1.3rem;
  }

  .btn-whatsapp {
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    width: 100%;
  }

  .carousel-container {
    min-height: 250px;
  }

  .carousel-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .info-card {
    padding: 1.5rem 1rem;
  }

  .info-title {
    font-size: 1.5rem;
  }

  .info-text {
    font-size: 0.9rem;
  }

  .info-list li {
    padding-left: 1.8rem;
    font-size: 0.9rem;
  }

  .step {
    padding: 1.5rem 1rem;
  }

  .step h4 {
    font-size: 1rem;
  }

  .step p {
    font-size: 0.85rem;
  }
}

/* ==================== CORREÇÕES DO CATÁLOGO: MOBILE FIRST ==================== */
/* Regras finais e explícitas para impedir que temas do navegador tratem CTAs como links. */
#catalogo button,
#catalogo .category-tab,
#catalogo .catalog-contact,
#catalogo .btn-whatsapp {
  appearance: none;
  -webkit-appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

#catalogo .category-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .65rem;
  width: 100%;
  margin: 0 0 1.5rem;
}

#catalogo .category-tab {
  min-width: 0;
  min-height: 46px;
  padding: .68rem .55rem;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: .84rem;
  line-height: 1.15;
  box-shadow: 0 3px 9px rgba(39, 174, 96, .22);
  transition: transform .2s ease, background-color .2s ease, box-shadow .2s ease;
}

#catalogo .category-tab:hover,
#catalogo .category-tab:focus-visible,
#catalogo .category-tab.active {
  background: var(--primary-dark);
  color: #fff;
  border-color: var(--primary-dark);
  box-shadow: 0 5px 14px rgba(39, 174, 96, .32);
}

#catalogo .category-tab:active { transform: translateY(1px); }

#catalogo .catalog-contact,
#catalogo .catalog-info .btn-whatsapp {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--primary);
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  padding: .8rem 1rem;
  line-height: 1.2;
  box-shadow: 0 5px 14px rgba(39, 174, 96, .28);
}

#catalogo .catalog-contact:hover,
#catalogo .catalog-contact:focus-visible,
#catalogo .catalog-info .btn-whatsapp:hover,
#catalogo .catalog-info .btn-whatsapp:focus-visible {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  color: #fff;
  transform: translateY(-1px);
}

#catalogo .catalog-section,
.catalog-section { overflow: hidden; }

.catalog-heading { align-items: stretch; }
.catalog-heading > * { min-width: 0; }
.catalog-grid { grid-template-columns: 1fr; width: 100%; }
.catalog-card { grid-template-columns: 1fr; min-width: 0; width: 100%; }
.catalog-photo { min-height: 210px; padding: 1rem; }
.catalog-info { min-width: 0; padding: 1.15rem; }
.catalog-info h3 { overflow-wrap: anywhere; }

@media (min-width: 640px) {
  #catalogo .category-tabs { display: flex; flex-wrap: wrap; }
  #catalogo .category-tab { flex: 1 1 145px; padding-inline: 1rem; }
  .catalog-heading { flex-direction: row; align-items: end; }
  #catalogo .catalog-contact { width: auto; flex: 0 0 auto; }
  .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .catalog-card { grid-template-columns: minmax(150px, 42%) minmax(0, 58%); }
}

@media (max-width: 480px) {
  .main-content { padding: 1.25rem .85rem; }
  .product-card { min-width: 0; overflow: hidden; }
  .product-carousel, .product-info { min-width: 0; }
  .carousel-container { min-width: 0; }
  .product-image { max-width: 100%; }
  .catalog-section { padding: 2.25rem 0; margin-bottom: 2rem; }
  .catalog-heading h2 { font-size: 1.65rem; }
}

/* Sobrescrita final: categorias sempre compactas, inclusive em telas grandes. */
#catalogo .category-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem;
  width: auto;
  margin: 0 0 1.5rem;
}

#catalogo .category-tab {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding: .55rem .9rem;
  border-radius: 999px;
  font-size: .84rem;
  line-height: 1;
  white-space: nowrap;
}

@media (max-width: 480px) {
  #catalogo .category-tabs { gap: .45rem; }
  #catalogo .category-tab { padding: .52rem .72rem; font-size: .78rem; }
}
