/* CSS Reset & Variable Definitions */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg-dark: #0a0a0a;
  --text-white: #ffffff;
  --brand-green: #9DFF88; /* Exact vibrant green color from reference */
  --font-family: 'Outfit', sans-serif;
  --announcement-height: 80px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-dark);
  color: var(--text-white);
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* 1. Announcement Bar (Marquee) */
.announcement-bar {
  background-color: #1b1b1b;
  height: var(--announcement-height);
  width: 100%;
  position: relative;
  z-index: 10;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.marquee {
  display: flex;
  width: 100%;
}

.marquee-content {
  display: flex;
  white-space: nowrap;
  animation: marquee-scroll 45s linear infinite;
  transform: translate3d(50vw, 0, 0); /* Starts with the text in the center */
}

.marquee-content span {
  font-size: clamp(14px, 1.25vw, 24px);
  font-weight: 300;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  align-items: center;
}

@keyframes marquee-scroll {
  0% {
    transform: translate3d(50vw, 0, 0); /* Centered initially */
  }
  100% {
    transform: translate3d(calc(50vw - 50%), 0, 0); /* Seamless loop after one full cycle */
  }
}

/* 2. Video Background Container */
.video-background-container {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  z-index: 1;
  overflow: hidden;
}

/* We use object-fit: cover and scale the video up to crop out the watermark in the bottom-right corner */
.video-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15); /* Slightly scaled up to hide watermark */
  transform-origin: center center;
  pointer-events: none;
  filter: brightness(0.9); /* Adds a subtle dark tint for better contrast */
}

/* 3. Navigation Header */
.main-header {
  position: absolute;
  top: var(--announcement-height);
  left: 0;
  width: 100%;
  z-index: 10;
  padding: 14px 5%;
}

.navbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  width: 100%;
}

/* Left Nav */
.nav-left {
  display: flex;
  gap: 20px;
}

.nav-link {
  color: var(--text-white);
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  white-space: nowrap;
  transition: opacity 0.3s ease;
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--text-white);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

/* Center Logo */
.nav-center {
  display: flex;
  justify-content: center;
}

.logo-link {
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo-img {
  height: 38px;
  width: auto;
  transition: transform 0.3s ease;
}

.logo-link:hover .logo-img {
  transform: scale(1.05);
}

/* Right Nav / Icons */
.nav-right {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
}

.icon-link {
  color: var(--text-white);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.icon-link:hover {
  transform: scale(1.1);
  opacity: 0.85;
}

.menu-icon {
  stroke: var(--text-white);
}

/* 4. Hero Content Layer */
.hero-section {
  position: relative;
  z-index: 5;
  height: calc(100vh - var(--announcement-height));
  margin-top: 0; /* Sem gap entre o hero e a seção seguinte */
  display: flex;
  align-items: flex-end;
  padding: 0 5% 90px 5%; /* Respiro maior na base do hero */
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  width: 100%;
}

/* Bottom Left Title styling */
.hero-header-container {
  max-width: 60%;
}

.hero-title {
  display: flex;
  flex-direction: column;
  color: var(--text-white);
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  font-weight: 800;
  line-height: 0.95;
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.hero-title span {
  display: block;
}

/* Bottom Right Button styling */
.hero-action-container {
  margin-bottom: 10px; /* Slight optical adjustment */
}

.btn-buy {
  display: inline-block;
  background-color: var(--brand-green);
  color: #000000;
  text-decoration: none;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 14px 34px;
  text-transform: uppercase;
  transition: background-color 0.3s ease, transform 0.3s ease;
  border: none;
}

.btn-buy:hover {
  background-color: #b2ff9d;
  transform: translateY(-2px);
}

.btn-buy:active {
  transform: translateY(0);
}

/* 5. Section 2: Gender Columns (Para Eles / Para Elas) */
.gender-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  height: clamp(320px, 31.9vw, 613px); /* 613px em 1920 (GUI 2 do Figma) */
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  background-color: #000000;
}

.gender-col {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  padding: 40px;
  overflow: hidden;
  text-align: center;
}

/* Background image handling using pseudo-elements for clean zoom effect on hover */
.gender-col::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
  transition: transform 0.8s cubic-bezier(0.25, 1, 0.5, 1);
}

/* Clean background images without baked-in text (Frame 21 & 22) */
.gender-col.male::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.4), rgba(0, 0, 0, 0.4)), url('assets/bg_section_1.png');
}

.gender-col.female::before {
  background-image: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('assets/bg_section_2.png');
}

.gender-col:hover::before {
  transform: scale(1.05); /* Zoom in on hover */
}

/* Column Content Container */
.gender-content {
  position: relative;
  z-index: 2; /* Above the background image layer */
  max-width: 500px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 15px;
  
  /* Initial state for smooth scroll trigger fade-in reveal */
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 1.2s cubic-bezier(0.25, 1, 0.5, 1), transform 1.2s cubic-bezier(0.25, 1, 0.5, 1);
}

.gender-content.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Column Title */
.gender-title {
  font-size: clamp(2.5rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #ffffff;
  line-height: 1.1;
  text-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Column Description */
.gender-description {
  font-size: clamp(0.95rem, 1.2vw, 1.1rem);
  font-weight: 400;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.9);
  max-width: 85%;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
}

/* Outline Button */
.btn-outline {
  display: inline-block;
  background: transparent;
  color: #ffffff;
  border: 1px solid #ffffff;
  padding: 14px 40px;
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
  margin-top: 15px;
}

.btn-outline:hover {
  background-color: #ffffff;
  color: #000000;
  transform: translateY(-2px);
}

.btn-outline:active {
  transform: translateY(0);
}

/* 6. Section 3: Banner Section */
.banner-section {
  width: 100%;
  aspect-ratio: 16 / 9; /* 1920x1080 no Figma (GUI 10 / GUI 7) */
  position: relative;
  overflow: hidden;
  background-color: #000000;
}

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

/* 7. Section 4: Best Sellers Grid */
.products-section {
  background-color: #ffffff;
  color: #000000;
  padding: 80px 5%;
  width: 100vw;
  min-height: 100vh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.products-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.products-section-title {
  font-size: clamp(1.6rem, 3.5vw, 2.5rem);
  font-weight: 800;
  color: #000000;
  letter-spacing: -0.01em;
}

.btn-view-more {
  display: inline-block;
  border: 1px solid #000000;
  background-color: transparent;
  color: #000000;
  padding: 12px 28px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-view-more:hover {
  background-color: #000000;
  color: #ffffff;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
  width: 100%;
}

.product-card {
  background-color: #f7f7f7;
  padding: 25px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1), 1, 0.5, 1);
  cursor: pointer;
}

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

.product-image-container {
  width: 100%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-bottom: 20px;
}

.product-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.4s ease;
}

.product-card:hover .product-img {
  transform: scale(1.04);
}

.product-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.product-discount {
  font-size: 11px;
  font-weight: 700;
  color: #a3a3a3;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.product-name {
  font-size: 14px;
  font-weight: 800;
  color: #000000;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-top: 2px;
}

.product-price-pix {
  font-size: 18px;
  font-weight: 900;
  color: #000000;
  margin-top: 4px;
}

.product-installments {
  font-size: 11px;
  font-weight: 500;
  color: #737373;
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .main-header {
    z-index: 27;
  }

  .hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 30px;
  }
  
  .hero-header-container {
    max-width: 100%;
  }
  
  .hero-title {
    font-size: clamp(2.5rem, 8vw, 4rem);
  }
  
  .hero-action-container {
    width: 100%;
  }
  
  .btn-buy {
    width: 100%;
    text-align: center;
  }

  .gender-section {
    grid-template-columns: 1fr;
    height: auto;
  }

  .gender-col {
    height: 60vh;
  }

  .banner-section {
    height: 60vh; /* Adjust for mobile viewports */
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }
  
  .products-section {
    padding: 60px 4%;
  }
}

@media (max-width: 500px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  
  .products-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }
  
  .btn-view-more {
    width: 100%;
    text-align: center;
  }
}

/* ============================================
   Home v2 — seções adicionais (Figma HOME 46:144)
   Usa também classes compartilhadas de taon.css
   ============================================ */

/* Fileiras de produtos (GUI 4 / 5 / 6 / 8) */
.home-row {
  background-color: #ffffff;
  color: #000000;
  padding: 72px 5.2% 100px;
}

.home-row.bordered {
  border-bottom: 3px solid rgba(116, 116, 116, 0.3);
}

.row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
  flex-wrap: wrap;
}

.row-title {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: clamp(1.8rem, 2.46vw, 47px);
  color: #000000;
}

.btn-row-more {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0.8px solid #000000;
  background: transparent;
  font-family: 'Inter', sans-serif;
  font-weight: 300;
  font-size: 16px;
  color: #000000;
  width: 182px;
  height: 59px;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.btn-row-more:hover {
  background-color: #000000;
  color: #ffffff;
}

/* Mosaico de coleções (GUI 3) */
.collections-section {
  background-color: #ffffff;
  padding: 59px 5.2% 60px;
  display: grid;
  grid-template-columns: 705fr 995fr;
  gap: 20px;
}

.collections-right {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 29px;
}

.collection-tile {
  position: relative;
  overflow: hidden;
  background-color: #d9d9d9;
  display: block;
}

.collection-tile.tall {
  aspect-ratio: 705 / 591;
}

.collection-tile.wide {
  aspect-ratio: 995 / 281;
}

.collection-tile img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.collection-tile:hover img {
  transform: scale(1.04);
}

.collection-tile::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.2);
}

.collection-tile .collection-label {
  position: absolute;
  left: 35px;
  bottom: 25px;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: clamp(1.2rem, 1.82vw, 35px);
  color: #ffffff;
  z-index: 2;
}

@media (max-width: 900px) {
  .collections-section {
    grid-template-columns: 1fr;
  }

  .collections-right {
    grid-template-rows: none;
  }

  .collection-tile.tall,
  .collection-tile.wide {
    aspect-ratio: auto;
    height: 280px;
  }

  .home-row {
    padding: 48px 4% 64px;
  }

  .row-header {
    margin-bottom: 32px;
  }
}
