/* CSS da Página de Produtos - Edição Premium */

:root {
  /* Palette adjusted for eye comfort (Warmer, softer ivory) */
  --color-ivory: #FAF7F0; /* Slightly darker/warmer than #FDFBF7 */
  --color-ivory-dark: #EBE7DE;
  --color-pool-blue: #4FB3C6;
  --color-pool-blue-dim: #3a8a9a;
  --color-grass-green: #5D9B58;
  --color-terracotta: #E07A5F;
  --color-sand: #E6E2D3;
  --color-charcoal: #2C3333;
  
  /* Text colors softened to avoid harsh contrast */
  --color-text-dark: #2D2A26; /* Warm dark gray instead of harsh #1A1A1A */
  --color-text-light: #6B665E; /* Warmer gray */
  
  --font-primary: "Poppins", sans-serif;
  --font-display: "Playfair Display", serif;
  --transition-standard: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

body {
  background-color: var(--color-ivory);
  font-family: var(--font-primary);
  color: var(--color-text-dark);
  overflow-x: hidden;
}

/* Eye Comfort Ideas: Custom Scrollbar & Selection */
::-webkit-scrollbar {
  width: 10px;
}

::-webkit-scrollbar-track {
  background: var(--color-ivory);
}

::-webkit-scrollbar-thumb {
  background: #Dbd7cc; /* Soft beige for scrollbar */
  border-radius: 5px;
  border: 2px solid var(--color-ivory);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--color-terracotta); /* Interactive hint */
}

::selection {
  background: rgba(224, 122, 95, 0.2); /* Soft Terracotta selection */
  color: var(--color-text-dark);
}

/* Animations */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(40px); }
  to { opacity: 1; transform: translateY(0); }
}

.fade-up {
  opacity: 0;
  animation: fadeInUp 0.8s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }

/* Container Utility */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
}

/* Header & Hero Integration */
.site-header-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  transition: background-color 0.3s ease;
}

/* Overriding global header styles for this specific page */
.site-header {
  position: sticky !important;
  top: 0 !important;
  background-color: transparent !important;
  border-bottom: none !important;
  box-shadow: none !important;
  padding: 20px 60px !important; /* Slightly more compact */
}

.site-header.header-scrolled {
  background-color: rgba(250, 247, 240, 0.7) !important; /* Ivory with blur */
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(0,0,0,0.05) !important;
}

/* Page Hero reaches the top */
.page-hero {
  position: relative;
  width: 100%;
  min-height: 600px;
  padding: 240px 0 140px; /* More spacing for elegance */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  /* Stronger gradient for ultimate text contrast */
  background-image: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)), url('hero.jpeg');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  color: #FFFFFF;
  margin-top: 0;
}

/* Smart Filter Bar adjustment for Top-0 Header */
.filter-sticky-wrapper {
  position: sticky;
  top: 80px; /* Height of the compact header */
  z-index: 900;
  padding: 24px 0;
  margin-bottom: 60px;
  backdrop-filter: blur(12px);
  background: rgba(250, 247, 240, 0.9);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

/* Hero Content Styles Restored & Adapted */
.hero-content {
  position: relative;
  z-index: 2;
}

.hero-card {
  background: transparent;
  max-width: 1000px;
  margin: 0 auto;
}

.subtitle-decoration {
  display: inline-block;
  font-size: 14px;
  letter-spacing: 0.4em;
  text-transform: uppercase;
  color: #FFFFFF;
  margin-bottom: 24px;
  font-weight: 600;
  padding: 8px 24px;
  background: rgba(79, 179, 198, 0.3); /* Glass pool blue */
  backdrop-filter: blur(10px);
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,0.2);
}

.highlight-text {
  color: #fff;
  font-style: italic;
  filter: brightness(1.2);
}

.hero-divider {
  width: 100px;
  height: 3px;
  background: var(--color-terracotta);
  margin: 32px auto;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.page-hero p {
  font-family: var(--font-display);
  font-size: 20px;
  color: #FFFFFF; /* Absolute white for contrast */
  max-width: 750px;
  margin: 0 auto;
  line-height: 1.8;
  font-weight: 300;
  text-shadow: 0 2px 25px rgba(0,0,0,0.6); /* Even stronger shadow */
  opacity: 1;
}

.page-hero h1 {
  font-family: var(--font-primary);
  font-size: 48px;
  font-weight: 600;
  line-height: 1.2;
}

/* NEW: Hero Transition Divider */
.hero-transition-divider {
  height: 120px;
  background: var(--color-ivory);
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.divider-line {
  width: 150px;
  height: 1px;
  background: var(--color-terracotta);
  opacity: 0.4;
  position: relative;
}

.divider-line::before {
  content: '✻';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--color-ivory);
  padding: 0 15px;
  color: var(--color-terracotta);
  font-size: 14px;
}

/* Card Content Standardized (Minimalist) */
.card-content {
  padding: 24px 10px 15px;
  text-align: center;
}

.card-content .category-tag {
  display: block;
  margin-bottom: 8px;
  font-size: 11px;
}

.card-content h3 {
  font-size: 20px;
  letter-spacing: 0.02em;
}

/* Smart Filter Bar */
.filter-sticky-wrapper {
  position: sticky;
  top: 90px;
  z-index: 90;
  padding: 24px 0;
  margin-bottom: 60px;
  backdrop-filter: blur(12px);
  background: rgba(250, 247, 240, 0.9);
  transition: all 0.3s ease;
  border-bottom: 1px solid rgba(0,0,0,0.03);
}

.filter-bar {
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.filter-btn {
  background: transparent;
  border: 1px solid rgba(107, 102, 94, 0.15);
  padding: 10px 24px;
  font-family: var(--font-primary);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-text-light);
  cursor: pointer;
  border-radius: 50px;
  transition: var(--transition-standard);
  font-weight: 600;
}

.filter-btn:hover {
  color: var(--color-terracotta);
  border-color: var(--color-terracotta);
  background: rgba(224, 122, 95, 0.05);
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--color-text-dark);
  color: #FFFFFF;
  border-color: var(--color-text-dark);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Products Grid & Divider Layout */
.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px 32px;
  margin-bottom: 60px;
  align-items: start;
}

/* Info Divider Section */
.info-divider {
  grid-column: 1 / -1;
  background-color: var(--color-charcoal);
  color: #FFFFFF;
  padding: 80px;
  border-radius: 8px;
  text-align: center;
  margin: 60px 0;
  position: relative;
  overflow: hidden;
}

.info-divider h3 {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 16px;
  color: #FDFBF7;
}

.info-divider p {
  opacity: 0.8;
  max-width: 600px;
  margin: 0 auto 32px;
  font-size: 16px;
  line-height: 1.8;
}

.info-features {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
}

.info-feature-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.feature-icon {
  font-size: 24px;
  color: var(--color-terracotta);
}

.feature-text {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 500;
}

/* Product Card Premium */
.product-card {
  position: relative;
  cursor: pointer;
  background: #FFFFFF;
  border-radius: 4px;
  transition: var(--transition-standard);
  /* Enforcing uniform height feel by letting content flow but kept tidy */
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-8px);
}

.card-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background-color: #FFFFFF;
  padding: 6px 12px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
  z-index: 10;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  color: var(--color-text-dark);
}

.card-badge.sale {
  background-color: var(--color-terracotta);
  color: #FFFFFF;
}

.featured-card {
  grid-column: span 2;
}

/* STRICT UNIFORM IMAGE SIZING */
.card-image {
  width: 100%;
  height: 300px; /* Fixed height for ULTIMATE uniformity */
  position: relative;
  background-color: #ffffff;
  border-radius: 4px;
  overflow: hidden;
}

.featured-card .card-image {
  height: 300px; /* Matching normal cards to keep grid lines clean */
}

/* If you want the featured card to be taller, we'd adjust here, 
   but user wants them to have the SAME size */

.product-card:hover .card-image img {
  transform: scale(1.1);
}

.card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain; /* Changed from cover to contain to show full image */
  transition: transform 1.2s cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* Dividers Footer Container */
.dividers-footer {
  padding-top: 80px;
  padding-bottom: 80px;
  display: flex;
  flex-direction: column;
  gap: 60px;
}

/* NEW: Parallax Brand Divider - Simplified */
.parallax-content h2 {
  font-family: var(--font-display);
  font-size: 48px;
  margin-bottom: 16px;
  letter-spacing: 2px;
  color: #FFFFFF;
}

.parallax-content p {
  font-size: 18px;
  letter-spacing: 4px;
  text-transform: uppercase;
  opacity: 0.9;
  color: #FFFFFF;
}

.parallax-divider {
  grid-column: 1 / -1; /* Critical for grid placement */
  width: 100%;
  height: 400px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(rgba(0,0,0,0.4), rgba(0,0,0,0.4)), url('final.png');
  background-attachment: fixed;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  margin: 40px 0; /* Add some breathing room */
}

/* Material showcase divider - Simplified */
.material-showcase {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.material-item {
  background: #fff;
  padding: 40px 20px;
  text-align: center;
  border: 1px solid var(--color-ivory-dark);
  transition: var(--transition-standard);
}

.material-item:hover {
  border-color: var(--color-terracotta);
  background: var(--color-ivory-dark);
}

.material-item i, .material-item .icon {
  font-size: 24px;
  color: var(--color-terracotta);
  margin-bottom: 15px;
  display: block;
}

.material-item h4 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}

.material-item p {
  font-size: 13px;
  color: var(--color-text-light);
  line-height: 1.4;
}

.overlay-trigger {
  position: absolute;
  bottom: 16px;
  right: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.product-card:hover .overlay-trigger {
  opacity: 1;
  transform: translateY(0);
}


.btn-icon {
  background: #FFFFFF;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-dark);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.btn-icon:hover {
  background: var(--color-pool-blue);
  color: #FFFFFF;
}

.card-content {
  padding: 24px 8px 8px;
}

.content-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}

.category-tag {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--color-terracotta);
  letter-spacing: 0.05em;
  font-weight: 600;
}

.card-content h3 {
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--color-text-dark);
  font-weight: 500;
  margin: 0;
  transition: color 0.3s ease;
}

.product-card:hover .card-content h3 {
  color: var(--color-pool-blue-dim);
}

.card-description {
  font-size: 14px;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  line-clamp: 2;
  overflow: hidden;
  opacity: 0.8;
}

.card-details {
  font-size: 12px;
  color: #888;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: flex;
  gap: 12px;
  align-items: center;
}

.card-details span.highlight {
  color: var(--color-grass-green);
}

/* Promo Sections */
.promo-banner {
  grid-column: 1 / -1; /* Full width inside grid */
  background-color: var(--color-sand);
  border-radius: 4px;
  padding: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 40px 0;
  position: relative;
  overflow: hidden;
}

.promo-content {
  max-width: 50%;
  z-index: 2;
}

.promo-content h2 {
  font-family: var(--font-display);
  font-size: 36px;
  margin-bottom: 16px;
  color: var(--color-text-dark);
}

.promo-content p {
  color: var(--color-text-light);
  margin-bottom: 24px;
  font-size: 16px;
}

.promo-decoration {
  position: absolute;
  right: -50px;
  top: -50px;
  width: 300px;
  height: 300px;
  background: var(--color-terracotta);
  border-radius: 50%;
  opacity: 0.1;
}

.btn-secondary {
  display: inline-block;
  padding: 12px 32px;
  border: 1px solid var(--color-text-dark);
  color: var(--color-text-dark);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 13px;
  text-decoration: none;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: var(--color-text-dark);
  color: #FFFFFF;
}

/* Modal Styling */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(26, 26, 26, 0.6); /* Darker overlay */
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
  overflow-y: auto; /* Allow overlay to scroll */
  padding: 40px 24px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-content {
  background: #FFFFFF;
  width: 100%;
  max-width: 850px; /* Reduced from 1100px */
  height: auto;
  max-height: 85vh; /* Added max-height to fit screen */
  border-radius: 8px;
  position: relative;
  box-shadow: 0 40px 80px rgba(0,0,0,0.2);
  margin: auto;
  transform: scale(0.9) translateY(20px);
  transition: all 0.5s cubic-bezier(0.19, 1, 0.22, 1);
}

.modal-overlay.active .modal-content {
  transform: scale(1) translateY(0);
}

.modal-close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 40px;
  height: 40px;
  background: #F5F5F5;
  border-radius: 50%;
  border: none;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #333;
  cursor: pointer;
  z-index: 10;
  transition: 0.3s;
}

.modal-close:hover {
  background: var(--color-terracotta);
  color: #FFFFFF;
}

.modal-layout {
  display: flex;
  flex-direction: row;
}

.modal-image {
  flex: 1.5;
  background: #fff;
  min-height: 350px; /* Reduced from 500px */
  max-height: 450px; /* Added max-height */
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain; /* Changed to contain for better fit */
}

.modal-details {
  flex: 1;
  padding: 40px; /* Reduced from 60px */
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.modal-subtitle {
  color: var(--color-terracotta);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 700;
  margin-bottom: 16px;
}

.modal-details h2 {
  font-family: var(--font-primary);
  font-size: 42px;
  margin-bottom: 24px;
  color: var(--color-text-dark);
  font-weight: 400;
  line-height: 1.1;
}

.modal-divider {
  width: 60px;
  height: 3px;
  background: var(--color-pool-blue);
  margin-bottom: 32px;
}

.modal-details p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 40px;
}

.modal-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 48px;
  border-top: 1px solid #eee;
  padding-top: 32px;
}

.spec-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.spec-item .label {
  font-size: 11px;
  text-transform: uppercase;
  color: #999;
  letter-spacing: 0.1em;
}

.spec-item .value {
  color: var(--color-text-dark);
  font-weight: 600;
  font-size: 14px;
}

.modal-cta {
  background-color: var(--color-text-dark);
  color: #FFFFFF;
  text-decoration: none;
  padding: 20px 40px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 13px;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  border-radius: 4px;
}

.modal-cta:hover {
  background-color: var(--color-terracotta);
  box-shadow: 0 15px 30px rgba(224, 122, 95, 0.25);
}

/* Responsive */
/* Responsive */
@media (max-width: 1024px) {
  .container {
    padding: 0 24px;
  }

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
  
  .material-showcase {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .page-hero {
    background-attachment: scroll;
    min-height: 400px;
    height: 100vh;
    padding: 180px 24px 80px;
  }

  .page-hero h1 {
    font-size: 36px;
  }
  
  .products-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  
  .featured-card {
    grid-column: span 1;
  }
  
  .promo-banner {
    flex-direction: column;
    text-align: center;
    padding: 40px 24px;
  }
  
  .promo-content {
    max-width: 100%;
    margin-bottom: 24px;
  }

  .modal-overlay {
    align-items: flex-start;
  }

  .modal-content {
    max-height: none;
    margin: 40px auto;
  }

  .modal-layout {
    flex-direction: column;
  }

  .modal-image {
    min-height: 250px;
  }

  .modal-details {
    padding: 32px 24px;
  }
  
  .modal-specs {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .material-showcase {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

/* Pagination Styles */
.pagination-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  margin: 60px 0 40px;
  padding: 24px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  background: var(--color-text-dark);
  color: #FFFFFF;
  border: none;
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: var(--transition-standard);
}

.pagination-btn:hover:not(:disabled) {
  background: var(--color-pool-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.pagination-btn:disabled {
  background: #E0E0E0;
  color: #999;
  cursor: not-allowed;
  opacity: 0.5;
}

.pagination-btn svg {
  width: 20px;
  height: 20px;
}

.pagination-info {
  font-family: var(--font-primary);
  font-size: 15px;
  color: var(--color-text-dark);
  padding: 0 16px;
}

.pagination-info strong {
  color: var(--color-terracotta);
  font-weight: 600;
}

@media (max-width: 768px) {
  .pagination-container {
    flex-direction: column;
    gap: 16px;
  }
  
  .pagination-btn {
    width: 100%;
    justify-content: center;
  }
}




