:root {
  --dark: #3f5c40;
  --dark-deep: #2c422d;
  --sage: #6b8f5e;
  --sage-light: #a3c398;
  --promo: #b5502e;
  --bg: #eef3ea;
  --bg-soft: #f7faf5;
  --white: #ffffff;
  --text: #263426;
  --text-soft: #5b6b5b;
  --shadow: 0 10px 30px rgba(44, 66, 45, 0.12);
  --radius: 14px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: 'Poppins', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
}

.container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}

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

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

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg-soft);
  border-bottom: 1px solid rgba(63, 92, 64, 0.1);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 14px 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}

.brand-mark {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 10px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 2px;
  font-size: 19px;
  color: var(--dark);
}

.brand-sub {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--sage);
  margin-top: 2px;
}

.main-nav {
  display: flex;
  gap: 28px;
  font-size: 15px;
  letter-spacing: 0.3px;
  font-weight: 500;
}

.main-nav a:hover { color: var(--sage); }

.nav-cta { display: inline-flex; }

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.menu-toggle span {
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 14px;
  padding: 16px 24px 24px;
  background: var(--bg-soft);
  border-top: 1px solid rgba(63, 92, 64, 0.1);
}

.mobile-nav.open { display: flex; }

.mobile-nav a { font-size: 16px; font-weight: 500; }

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-family: 'Poppins', system-ui, sans-serif;
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.2px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover { transform: translateY(-1px); }

.btn-whatsapp {
  background: var(--sage);
  color: var(--white);
}

.btn-whatsapp:hover { background: #567a4b; }

.btn-outline {
  background: transparent;
  border-color: var(--dark);
  color: var(--dark);
}

.btn-outline:hover { background: var(--dark); color: var(--white); }

.btn-lg { padding: 14px 26px; font-size: 15px; }

.btn .icon { width: 18px; height: 18px; fill: currentColor; }

.btn-sm {
  padding: 8px 14px;
  font-size: 13px;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding: 90px 0 80px;
  overflow: hidden;
  background: var(--bg);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image:
    linear-gradient(135deg, transparent 48%, rgba(63,92,64,0.06) 49%, rgba(63,92,64,0.06) 51%, transparent 52%),
    linear-gradient(45deg, transparent 48%, rgba(63,92,64,0.06) 49%, rgba(63,92,64,0.06) 51%, transparent 52%);
  background-size: 90px 90px;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
  max-width: 1120px;
}

.hero-text {
  text-align: left;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
}

.hero-title {
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 800;
  color: var(--dark);
  margin: 0 0 18px;
  line-height: 1.1;
}

.hero-title .accent {
  display: block;
  color: var(--sage);
  margin-top: 4px;
}

.hero-desc {
  color: var(--text-soft);
  font-size: 17px;
  max-width: 440px;
  margin: 0 0 32px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  justify-content: flex-start;
  flex-wrap: wrap;
}

/* ---------- Hero photo collage ---------- */

.hero-gallery {
  position: relative;
  height: 420px;
}

.hero-gallery::before {
  content: '';
  position: absolute;
  inset: 8% 4%;
  background: radial-gradient(circle, var(--sage-light) 0%, transparent 70%);
  opacity: 0.4;
  filter: blur(10px);
  z-index: 0;
}

.hero-photo {
  position: absolute;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 16px 34px rgba(44, 66, 45, 0.22);
  border: 6px solid var(--bg-soft);
  background: linear-gradient(135deg, var(--dark) 0%, var(--sage) 100%);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-photo-1 {
  width: 58%;
  aspect-ratio: 3 / 4;
  top: 0;
  left: 6%;
  z-index: 3;
  transform: rotate(-3deg);
}

.hero-photo-2 {
  width: 42%;
  aspect-ratio: 3 / 4;
  bottom: 0;
  right: 2%;
  z-index: 2;
  transform: rotate(4deg);
}

.hero-photo-3 {
  width: 36%;
  aspect-ratio: 1 / 1;
  top: 4%;
  right: 6%;
  z-index: 1;
  transform: rotate(-6deg);
}

@media (max-width: 860px) {
  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text {
    text-align: center;
  }
  .hero-desc {
    margin-left: auto;
    margin-right: auto;
  }
  .hero-actions {
    justify-content: center;
  }
  .hero-gallery {
    height: 320px;
    order: -1;
  }
}

/* ---------- Section shared ---------- */

.section-title {
  font-size: clamp(28px, 4vw, 36px);
  font-weight: 700;
  color: var(--dark);
  text-align: center;
  margin: 0 0 8px;
}

.section-sub {
  text-align: center;
  color: var(--text-soft);
  margin: 0 0 40px;
  font-size: 14px;
}

/* ---------- Catalog ---------- */

.catalog {
  padding: 80px 0;
  background: var(--bg-soft);
}

.category-filters {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.filter-btn {
  background: var(--white);
  border: 1px solid rgba(63,92,64,0.15);
  color: var(--dark);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.filter-btn:hover { background: rgba(107,143,94,0.15); }

.filter-btn.active {
  background: var(--dark);
  color: var(--white);
  border-color: var(--dark);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 28px;
}

.catalog-empty,
.catalog-error {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-soft);
  padding: 40px 0;
}

.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s ease;
}

.card:hover { transform: translateY(-4px); }

.card-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, var(--dark) 0%, var(--sage) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.card-media .icon-dumbbell {
  width: 46%;
  height: 46%;
  opacity: 0.9;
}

.card-media .placeholder-tag {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(255,255,255,0.85);
  color: var(--dark);
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

/* ---------- Photo carousel (arrasta pro lado, várias fotos por peça) ---------- */

.media-carousel {
  position: absolute;
  inset: 0;
}

.media-track {
  width: 100%;
  height: 100%;
  display: flex;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  cursor: grab;
  touch-action: pan-x pan-y;
  user-select: none;
}

.media-track:active { cursor: grabbing; }

.media-track::-webkit-scrollbar { display: none; }

.media-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
}

/* Moldura: foto inteira (contain) sobre um fundo com a mesma imagem
   desfocada, sem cortar nem sobrar borda dura — tipo Instagram. */
.media-frame {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--dark);
}

.card-media > .media-frame,
.featured-media > .media-frame {
  position: absolute;
  inset: 0;
}

.media-backdrop {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
  filter: blur(22px) brightness(0.6);
  pointer-events: none;
}

.media-fill {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}

.media-dots {
  position: absolute;
  bottom: 10px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 6px;
}

.media-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.media-dot.active {
  background: var(--white);
  transform: scale(1.35);
}

.card-body {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.card-category {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sage-light);
  font-weight: 600;
}

.card-name {
  font-size: 17px;
  font-weight: 600;
  color: var(--dark);
  margin: 0;
}

.card-price {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin: 4px 0 12px;
}

.card-price-original {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: line-through;
  margin-right: 6px;
}

.card-price-promo {
  color: var(--promo);
}

.discount-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--promo);
  color: var(--white);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.3px;
}

.card-cta {
  margin-top: auto;
  width: 100%;
}

/* ---------- Featured promo ---------- */

.featured {
  padding: 44px 0 8px;
  background: var(--bg);
}

.featured-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 28px;
  align-items: center;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 2px solid var(--promo);
  padding: 24px;
}

.featured-media {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background: linear-gradient(135deg, var(--dark) 0%, var(--sage) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
}

.featured-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.featured-media .icon-dumbbell {
  width: 40%;
  height: 40%;
  opacity: 0.9;
}

.featured-badge {
  display: inline-block;
  background: var(--promo);
  color: var(--white);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.featured-category {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--sage-light);
  font-weight: 600;
}

.featured-name {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  color: var(--dark);
  margin: 4px 0 12px;
}

.featured-prices {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.featured-price-original {
  font-size: 18px;
  font-weight: 500;
  color: var(--text-soft);
  text-decoration: line-through;
}

.featured-price-promo {
  font-size: 30px;
  font-weight: 800;
  color: var(--promo);
}

.featured-discount {
  background: rgba(181, 80, 46, 0.12);
  color: var(--promo);
  font-size: 13px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

@media (max-width: 640px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
}

/* ---------- About ---------- */

.about {
  padding: 80px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 780px;
}

.about-mark svg {
  width: 110px;
  height: 110px;
  border-radius: 24px;
}

.about p {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
}

/* ---------- Contact ---------- */

.contact {
  background: var(--dark);
  color: var(--white);
  padding: 80px 0;
  text-align: center;
}

.contact-title { color: var(--white); }

.contact-sub {
  color: rgba(255,255,255,0.75);
  margin: 0 0 36px;
}

.contact-actions {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.contact .btn-outline {
  border-color: rgba(255,255,255,0.5);
  color: var(--white);
}

.contact .btn-outline:hover {
  background: var(--white);
  color: var(--dark);
}

/* ---------- Footer ---------- */

.site-footer {
  background: var(--dark-deep);
  color: rgba(255,255,255,0.6);
  padding: 20px 0;
  font-size: 13px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-admin-link {
  opacity: 0.5;
  font-size: 12px;
}

.footer-admin-link:hover { opacity: 0.9; }

/* ---------- Responsive ---------- */

@media (max-width: 760px) {
  .main-nav, .nav-cta { display: none; }
  .menu-toggle { display: flex; }
  .about-inner { grid-template-columns: 1fr; text-align: center; justify-items: center; }
  .hero { padding: 60px 0 50px; }
}
