:root {
  /* Premium Dark Mode Colors */
  --bg-dark: #0a0a0c;
  --bg-card: #141417;
  --bg-card-hover: #1c1c21;
  
  --text-primary: #ededed;
  --text-secondary: #a1a1aa;
  
  /* Industrial / Tech Accents */
  --accent-cyan: #00f0ff;
  --accent-orange: #ff5500;
  
  --border-subtle: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(20, 20, 23, 0.6);
  --glass-border: rgba(255, 255, 255, 0.1);
  --shadow-glow: 0 0 20px rgba(0, 240, 255, 0.15);
  
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: var(--font-main);
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: var(--bg-dark);
}

::-webkit-scrollbar-thumb {
  background: #33333b;
  border-radius: 8px;
  border: 2px solid var(--bg-dark);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Header & Navigation */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  padding: 1rem 5%;
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--glass-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 1000;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-primary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.logo img {
  height: 32px;
  width: auto;
  border-radius: 4px;
}

.logo span {
  color: var(--accent-orange);
}

.nav-links {
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 8px;
}

.nav-links a:hover {
  color: var(--accent-cyan);
  background: rgba(0, 255, 170, 0.05);
  transform: translateY(-2px);
}

.nav-links a.active {
  color: var(--accent-cyan);
  background: rgba(0, 255, 170, 0.05);
}

.bottom-nav .nav-item {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.75rem;
  font-weight: 600;
  transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  padding: 0.5rem;
  border-radius: 8px;
}

.bottom-nav .nav-item:hover, .bottom-nav .nav-item.active {
  color: var(--accent-cyan);
  background: rgba(0, 255, 170, 0.05);
  transform: translateY(-3px);
}

/* Hero Section */
.hero {
  margin-top: 80px;
  padding: 4rem 5% 2rem;
  text-align: center;
}

.hero h1 {
  font-size: 2.5rem;
  font-weight: 800;
  background: linear-gradient(135deg, #fff 0%, #a1a1aa 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  margin-bottom: 1rem;
}

.hero p {
  color: var(--text-secondary);
  max-width: 600px;
  margin: 0 auto;
  font-size: 1.1rem;
}

/* Category Filters */
.category-section {
  padding: 0 5%;
  max-width: 1200px;
  margin: 0 auto 1.5rem;
}

.category-filters {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  scrollbar-width: thin;
}

.category-filters::-webkit-scrollbar {
  height: 6px;
}
.category-filters::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 4px;
}

.filter-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 0.6rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
  font-family: inherit;
  font-size: 0.9rem;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
}

/* Catalog Grid */
.catalog-container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5% 5rem;
  flex: 1;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 2rem;
  justify-content: center;
}

@media (max-width: 768px) {
  .product-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* List View Layout Support */
.product-grid.list-view {
  grid-template-columns: 1fr;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.product-grid.list-view .product-card {
  flex-direction: row;
  height: 180px;
  align-items: center;
}

.product-grid.list-view .card-image-wrapper {
  width: 180px;
  height: 180px;
  padding-top: 0;
  flex-shrink: 0;
}

.product-grid.list-view .card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex-grow: 1;
  text-align: left;
}

.product-grid.list-view .product-title {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
}

.product-grid.list-view .product-desc {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 1rem;
}

.product-grid.list-view .card-footer {
  margin-top: 0;
}

@media (max-width: 600px) {
  .product-grid.list-view .product-card {
    height: auto;
    flex-direction: column;
  }
  .product-grid.list-view .card-image-wrapper {
    width: 100%;
    height: auto;
    padding-top: 100%;
  }
}

/* Product Card - Sleek Design */
.product-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--accent-cyan);
  box-shadow: var(--shadow-glow);
  background-color: var(--bg-card-hover);
}

.card-image-wrapper {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 Aspect Ratio */
  overflow: hidden;
  background: #111;
}

.card-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.product-card:hover .card-image-wrapper img {
  transform: scale(1.08);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: var(--glass-bg);
  backdrop-filter: blur(8px);
  color: var(--text-primary);
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  letter-spacing: 0.5px;
  z-index: 10;
}

.badge.new {
  border-color: var(--accent-orange);
  color: var(--accent-orange);
}

.card-content {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
  color: var(--text-primary);
}

.product-desc {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

/* Ensure no price on the main page */
.product-price-hidden {
  display: none;
}

.action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  width: 100%;
  gap: 0.5rem;
}

.product-card:hover .action-btn {
  background: var(--text-primary);
  color: var(--bg-dark);
  border-color: var(--text-primary);
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  width: 60px;
  height: 60px;
  background-color: #25d366;
  color: #fff;
  border-radius: 50px;
  text-align: center;
  font-size: 30px;
  box-shadow: 0 5px 20px rgba(37, 211, 102, 0.4);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.whatsapp-float:hover {
  transform: scale(1.1);
  box-shadow: 0 8px 25px rgba(37, 211, 102, 0.6);
}

.whatsapp-float svg {
  width: 32px;
  height: 32px;
}

/* Footer */
.footer {
  background: var(--glass-bg);
  border-top: 1px solid var(--glass-border);
  padding: 3rem 5% 1.5rem;
  margin-top: 4rem;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
}

.footer-brand img {
  height: 32px;
  border-radius: 4px;
}

.footer-brand h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-primary);
}

.footer-contact {
  margin: 1.5rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: var(--text-secondary);
}

.footer-contact strong,
.footer-contact span {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  justify-content: center;
}

.copyright {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 2rem;
  border-top: 1px solid var(--border-subtle);
  padding-top: 1.5rem;
  width: 100%;
}

/* Product Variations (Colors & Shapes) */
.variations-container {
  margin-bottom: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.variation-group h4 {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin-bottom: 0.8rem;
  font-weight: 600;
}

.variation-options {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.var-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s;
}

.var-btn:hover {
  border-color: var(--accent-cyan);
}

.var-btn.selected {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
  font-weight: 600;
}

.color-dot {
  display: inline-block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  margin-right: 6px;
  vertical-align: middle;
}

/* Related Products Section */
.related-section {
  margin-top: 6rem;
  padding-top: 3rem;
  border-top: 1px solid var(--glass-border);
}

.related-section h2 {
  font-size: 1.8rem;
  margin-bottom: 2rem;
  font-weight: 800;
}

/* Footer / Bottom Nav for Mobile */
@media (max-width: 768px) {
  .header {
    justify-content: center;
  }

  .nav-links {
    display: none;
  }
  
  .whatsapp-float {
    bottom: 5.5rem; /* Elevar cima do menu inferior */
    right: 1.5rem;
    width: 50px;
    height: 50px;
    z-index: 1001; /* Ficar acima de qualquer overlay */
  }

  .whatsapp-float svg {
    width: 26px;
    height: 26px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .catalog-container {
    padding-bottom: 6rem; /* Space for bottom nav */
  }

  .bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-top: 1px solid var(--glass-border);
    display: flex;
    justify-content: space-around;
    padding: 1rem 0;
    z-index: 1000;
  }

  .nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.75rem;
    gap: 0.3rem;
  }
  
  .nav-item.active {
    color: var(--accent-cyan);
  }

  .nav-item svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
  }
}

/* Hide bottom nav on PC */
@media (min-width: 769px) {
  .bottom-nav {
    display: none;
  }
}

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulseSoft {
  0% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0.4); }
  70% { box-shadow: 0 0 0 10px rgba(0, 240, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 240, 255, 0); }
}

.fade-in {
  animation: fadeIn 0.6s ease forwards;
}

.pulse-hover:hover {
  animation: pulseSoft 1.5s infinite;
}

/* Advanced UX/UI Elements */
.title-icon {
  display: inline-block;
  vertical-align: middle;
  margin-right: 0.6rem;
  color: var(--accent-orange);
}

.greeting-bar {
  background: rgba(0, 240, 255, 0.05);
  border: 1px solid rgba(0, 240, 255, 0.1);
  color: var(--accent-cyan);
  padding: 0.5rem 1rem;
  border-radius: 30px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

/* App-Like Clean Pricing Cards */
.price-showcase {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-dark));
  border: 1px solid var(--border-subtle);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  position: relative;
  overflow: hidden;
}

.price-showcase::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00b894, var(--accent-cyan));
}

.price-main {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  margin-bottom: 0.2rem;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.price-main .currency {
  font-size: 1.2rem;
  color: var(--text-secondary);
  font-weight: 600;
}

.price-pix-badge {
  background: rgba(0, 184, 148, 0.15);
  color: #00b894;
  padding: 0.2rem 0.6rem;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 700;
  vertical-align: middle;
  border: 1px solid rgba(0, 184, 148, 0.3);
}

.price-card-info {
  font-size: 0.9rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.app-shipping-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.02);
  padding: 1.2rem;
  border-radius: 12px;
  border: 1px solid var(--border-subtle);
  margin-bottom: 2rem;
}

.app-shipping-card svg {
  color: var(--text-primary);
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  opacity: 0.8;
}

.app-shipping-content p {
  margin: 0 0 0.3rem 0;
  font-size: 0.9rem;
  color: var(--text-primary);
  font-weight: 600;
}

.app-shipping-content span {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
}

/* --- E-Commerce Advanced Features --- */

.favorite-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}
.favorite-btn svg {
  color: #fff;
  transition: all 0.3s ease;
}
.favorite-btn:hover {
  transform: scale(1.15);
  background: rgba(0,0,0,0.8);
}
.favorite-btn.favorited svg {
  fill: #ff4757;
  color: #ff4757;
  stroke: #ff4757;
}

/* View Toggles */
.view-toggles {
  display: flex;
  gap: 0.5rem;
}
.view-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  border-radius: 8px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}
.view-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255,255,255,0.3);
}
.view-btn.active {
  background: rgba(0,255,170,0.1);
  color: var(--accent-cyan);
  border-color: rgba(0,255,170,0.3);
}

/* List View Layout */
.product-grid.list-view {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
.product-grid.list-view .product-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  height: auto;
}
.product-grid.list-view .card-image-wrapper {
  width: 250px;
  height: 250px;
  flex-shrink: 0;
  border-right: 1px solid var(--border-subtle);
}
.product-grid.list-view .card-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem;
}
@media (max-width: 650px) {
  .product-grid.list-view .product-card {
    flex-direction: row;
    height: 140px;
  }
  .product-grid.list-view .card-image-wrapper {
    width: 140px;
    height: 100%;
    border-right: 1px solid var(--border-subtle);
    border-bottom: none;
  }
  .product-grid.list-view .card-content {
    padding: 0.8rem;
  }
  .product-grid.list-view .product-title {
    font-size: 1rem;
    margin-bottom: 0.2rem;
  }
  .product-grid.list-view .product-desc {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
  .product-grid.list-view .action-btn {
    font-size: 0.75rem;
    padding: 0.4rem;
  }
}

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 3rem;
}
.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
  min-width: 40px;
  height: 40px;
  padding: 0 0.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover:not(:disabled) {
  background: rgba(255,255,255,0.1);
  border-color: rgba(255,255,255,0.3);
}
.page-btn.active {
  background: var(--accent-cyan);
  color: #000;
  border-color: var(--accent-cyan);
}
.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.product-price {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-top: 0.5rem;
  margin-bottom: 1rem;
}
