@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=Playfair+Display:ital,wght@0,600;1,600&display=swap');

:root {
  /* Core Colors */
  --bg-primary: #070a07;
  --bg-secondary: #0d120d;
  --bg-glass: rgba(13, 18, 13, 0.75);
  --text-primary: #f0f4f0;
  --text-secondary: #8a9a8a;

  /* Accents */
  --accent-neon: #00ff6a;
  --accent-secondary: #00b84d;
  --accent-gradient: linear-gradient(135deg, #00ff6a 0%, #00b84d 100%);
  --accent-hover: linear-gradient(135deg, #33ff88 0%, #00d45a 100%);

  /* UI Elements */
  --border-glass: rgba(0, 255, 106, 0.08);
  --card-bg: linear-gradient(180deg, rgba(15, 25, 15, 0.5) 0%, rgba(10, 14, 10, 0.8) 100%);
  --shadow-neon: 0 0 20px rgba(0, 255, 106, 0.2);
  --shadow-card: 0 8px 32px 0 rgba(0, 0, 0, 0.5);

  /* Layout */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;

  /* Transitions */
  --transition-fast: 0.15s ease-out;
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

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

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  line-height: 1.5;
  overflow-x: hidden;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  /* Subtle animated ambient background */
  background-image:
    radial-gradient(circle at 15% 50%, rgba(0, 255, 106, 0.07) 0%, transparent 50%),
    radial-gradient(circle at 85% 30%, rgba(0, 184, 77, 0.07) 0%, transparent 50%);
  background-attachment: fixed;
}

/* Typography Utilities */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.heading-display {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 8vw, 5.5rem);
  font-weight: 600;
  font-style: italic;
  letter-spacing: -0.01em;
  background: var(--accent-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  color: transparent;
  display: inline-block;
  line-height: 1.1;
  padding-bottom: 0.1em;
  /* fixes clipping */
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Base Elements */
a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

button {
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

/* Layout Utilities */
.container {
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 5%;
}

main {
  flex: 1;
}

.glass-panel {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.5px;
  transition: var(--transition-normal);
  text-transform: uppercase;
}

#checkout-btn:disabled,
.btn:disabled {
  opacity: 0.5 !important;
  filter: grayscale(0.8) !important;
  background: rgba(255, 255, 255, 0.05) !important;
  color: #666 !important;
  cursor: not-allowed !important;
  pointer-events: none !important;
  transform: none !important;
  box-shadow: none !important;
}

.btn-primary {
  background: var(--accent-gradient);
  color: #fff;
  box-shadow: 0 4px 15px rgba(0, 184, 77, 0.3);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: var(--accent-hover);
  z-index: -1;
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 255, 106, 0.4);
}

.btn-primary:hover::before {
  opacity: 1;
}

.btn-secondary {
  background: transparent;
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  backdrop-filter: blur(8px);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

/* Grid System */
.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
  justify-content: center;
  gap: 2rem;
  width: 100%;
}

/* Carousel System */
.carousel-wrapper {
  position: relative;
  width: 100%;
}

/* Design Tokens para o Carrossel */
:root {
  --carousel-mask-width: 80px;
  --carousel-mask-opacity: 0;
  /* 0 = some tudo (mobile), > 0 = efeito mais sutil */
}

@media (min-width: 1024px) {
  :root {
    --carousel-mask-width: 100px;
    --carousel-mask-opacity: 0.5;
    /* Menos radical no desktop */
  }
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  gap: 2rem;
  padding-bottom: 2rem;
  -ms-overflow-style: none;
  /* IE and Edge */
  scrollbar-width: none;
  /* Firefox */

  /* Mascara de transparência responsiva e sutil */
  mask-image: linear-gradient(to right,
      rgba(0, 0, 0, calc(var(--mask-left, 1) + (1 - var(--mask-left, 1)) * var(--carousel-mask-opacity))) 0%,
      black var(--carousel-mask-width),
      black calc(100% - var(--carousel-mask-width)),
      rgba(0, 0, 0, calc(var(--mask-right, 1) + (1 - var(--mask-right, 1)) * var(--carousel-mask-opacity))) 100%);
  -webkit-mask-image: linear-gradient(to right,
      rgba(0, 0, 0, calc(var(--mask-left, 1) + (1 - var(--mask-left, 1)) * var(--carousel-mask-opacity))) 0%,
      black var(--carousel-mask-width),
      black calc(100% - var(--carousel-mask-width)),
      rgba(0, 0, 0, calc(var(--mask-right, 1) + (1 - var(--mask-right, 1)) * var(--carousel-mask-opacity))) 100%);
}

.carousel-track::-webkit-scrollbar {
  display: none;
  /* Chrome, Safari and Opera */
}

.carousel-track .product-card {
  min-width: 280px;
  max-width: 320px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.carousel-controls {
  display: flex;
  gap: 0.5rem;
}

.carousel-btn {
  background: var(--bg-glass);
  border: 1px solid var(--border-glass);
  color: var(--text-primary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
}

.carousel-btn:hover {
  background: var(--accent-gradient);
  color: #fff;
  transform: scale(1.1);
}

.header-carousel-controls {
  position: absolute;
  top: -65px;
  right: 0;
}

@media (max-width: 768px) {
  .header-carousel-controls {
    position: static;
    margin-bottom: 1rem;
    justify-content: flex-end;
  }
}


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

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

::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* --- Layout Components --- */

/* Navbar */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  /* Garante que toque as duas bordas */
  width: 100%;
  height: 80px;
  z-index: 100;
  border-bottom: 1px solid var(--border-glass);
}

.navbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 100%;
}

.logo {
  font-size: 1.5rem;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.logo i {
  color: var(--accent-neon);
}


/* Cart pill button */
.cart-btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 1rem 0.45rem 0.75rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background: rgba(0, 255, 106, 0.06);
  color: var(--text-primary);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition-fast);
  cursor: pointer;
}

.cart-btn-pill:hover {
  background: rgba(0, 255, 106, 0.14);
  border-color: var(--accent-neon);
  color: var(--accent-neon);
}

.cart-btn-pill i {
  font-size: 1rem;
}

.cart-pill-count {
  background: var(--accent-gradient);
  color: #000;
  font-size: 0.72rem;
  font-weight: 700;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  text-align: center;
  position: relative;
}

.hero::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, rgba(0, 255, 106, 0.08) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

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

/* Products Section */
.products-section {
  padding: 2rem 0 6rem;
}

.category-section {
  position: relative;
  overflow: hidden;
  /* To contain the glow pseudo-element */
}

.category-section::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(0, 255, 106, 0.05) 0%, rgba(0, 0, 0, 0) 70%);
  z-index: -1;
  pointer-events: none;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 3rem;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.section-header h2 {
  font-size: 2.5rem;
}

.header-controls {
  display: flex;
  flex-direction: row;
  gap: 1rem;
  align-items: center;
}

.search-container {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  width: 44px;
  height: 44px;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  position: relative;
  order: 2;
}

.search-container:focus-within,
.search-container:has(input:not(:placeholder-shown)) {
  width: 300px;
  background: rgba(255, 255, 255, 0.08);
}

.search-container:focus-within {
  border-color: var(--accent-neon);
  box-shadow: 0 0 10px rgba(0, 255, 106, 0.1);
}

.search-container input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  outline: none;
  padding-left: 2.5rem;
  padding-right: 1rem;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  font-family: inherit;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.3s;
}

.search-container:focus-within input,
.search-container input:not(:placeholder-shown) {
  cursor: text;
  opacity: 1;
}

.search-container i {
  color: var(--text-secondary);
  position: absolute;
  left: 14px;
  font-size: 1.1rem;
  pointer-events: none;
}

.filters {
  display: flex;
  gap: 0.75rem;
  overflow-x: auto;
  align-items: center;
  order: 1;
}

.filter-btn {
  padding: 0.5rem 1.25rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-glass);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-secondary);
  font-size: 0.9rem;
  transition: var(--transition-fast);
  white-space: nowrap;
}

.filter-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.filter-btn.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  font-weight: 600;
}

/* Product Card */
.product-card {
  background: var(--card-bg);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}

.product-card:hover {
  transform: translateY(-8px);
  border-color: rgba(0, 255, 106, 0.3);
  box-shadow: var(--shadow-card), 0 10px 40px rgba(0, 255, 106, 0.1);
}

.product-image-container {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  position: relative;
  background: var(--bg-secondary);
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.product-card:hover .product-image {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border: 1px solid var(--border-glass);
}

.product-details {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-title {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
}

.product-description {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
}

.product-price {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--accent-neon);
}

.add-cart-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-glass);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-fast);
  color: var(--text-primary);
}

.add-cart-btn:hover:not(:disabled) {
  background: var(--accent-gradient);
  border-color: transparent;
  color: #fff;
  transform: scale(1.1);
}

.add-cart-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Modal Overlay */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  z-index: 1000;
  display: flex;
  justify-content: flex-end;
  opacity: 1;
  visibility: visible;
  transition: all var(--transition-normal);
}

.modal-overlay.hidden {
  opacity: 0;
  visibility: hidden;
}

.modal-content {
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: var(--bg-secondary);
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform var(--transition-normal);
  border-left: 1px solid var(--border-glass);
}

.modal-overlay.hidden .modal-content {
  transform: translateX(100%);
}

.modal-header {
  padding: 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.close-btn {
  font-size: 1.25rem;
  color: var(--text-secondary);
  transition: var(--transition-fast);
}

.close-btn:hover {
  color: #fff;
  transform: rotate(90deg);
}

.modal-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
  margin-bottom: 1rem;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  background: var(--bg-primary);
}

.cart-item-details {
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.cart-item-title {
  font-size: 1rem;
  margin-bottom: 0.25rem;
}

.cart-item-price {
  color: var(--accent-neon);
  font-weight: 600;
  margin-bottom: auto;
}

.cart-item-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
}

.qty-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 0.25rem;
  border-radius: var(--radius-full);
}

.qty-btn {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: var(--text-primary);
}

.qty-btn:hover {
  background: rgba(255, 255, 255, 0.1);
}

.remove-btn {
  color: #ff4757;
  font-size: 0.9rem;
}

.remove-btn:hover {
  text-decoration: underline;
}

.empty-cart-msg {
  color: var(--text-secondary);
  text-align: center;
  margin-top: 2rem;
}

.modal-footer {
  padding: 1.5rem;
  border-top: 1px solid var(--border-glass);
  background: var(--bg-primary);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

#checkout-btn {
  width: 100%;
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 2rem;
  left: 2rem;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  pointer-events: none;
}

.toast {
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-glass);
  padding: 1rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-card);
  display: flex;
  align-items: center;
  gap: 1rem;
  transform: translateX(-120%);
  animation: slideIn 0.3s forwards ease-out;
  pointer-events: auto;
}

.toast.removing {
  animation: slideOut 0.3s forwards ease-in;
}

.toast-success i {
  color: #00e676;
}

.toast-error i {
  color: #ff4757;
}

@keyframes slideIn {
  to {
    transform: translateX(0);
  }
}

@keyframes slideOut {
  to {
    transform: translateX(-120%);
    opacity: 0;
  }
}

/* Helpers */
.spinner-container {
  display: flex;
  justify-content: center;
  padding: 4rem 0;
}

.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255, 255, 255, 0.1);
  border-top-color: var(--accent-neon);
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.footer {
  padding: 4rem 0 2rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--border-glass);
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1.2fr;
  /* Coluna de pagamento com um pouco mais de espaço */
  gap: 2rem;
  margin-bottom: 3.5rem;
}

.hide-mobile {
  display: block;
}

.footer-col h4 {
  color: var(--text-primary);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  font-weight: 700;
}

.footer-col p {
  line-height: 1.6;
}

.footer-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-list li {
  margin-bottom: 0.8rem;
}

.footer-list a {
  color: var(--text-secondary);
  text-decoration: none;
  transition: var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.footer-list a:hover {
  color: var(--accent-neon);
  transform: translateX(5px);
}

.social-links {
  display: flex;
  gap: 1.25rem;
  margin-top: 1rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
  text-decoration: none;
  transition: var(--transition-fast);
  font-size: 1.1rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.social-btn:hover {
  background: var(--accent-neon);
  color: #000;
  transform: translateY(-3px);
  box-shadow: 0 5px 15px rgba(0, 255, 106, 0.3);
}

.payment-methods {
  display: flex;
  flex-wrap: nowrap;
  /* Garante que os ícones fiquem em uma única linha */
  gap: 1.2rem;
  font-size: 1.8rem;
  color: var(--text-secondary);
  opacity: 0.6;
  margin-top: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-copyright {
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}

@media (max-width: 768px) {
  .footer {
    padding: 1rem 0 0.5rem;
    /* Padding ultrarreduzido */
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    /* Apenas 2 colunas na linha */
    gap: 1rem;
    text-align: left;
    margin-bottom: 1rem;
  }

  .footer-col h4 {
    margin-bottom: 0.5rem;
    font-size: 0.8rem;
    text-transform: uppercase;
  }

  .footer-list a {
    font-size: 0.7rem;
  }

  /* Ocultar elementos desnecessários no mobile para salvar altura */
  .footer-col:first-child,
  /* Oculta Logo/Social no rodapé mobile */
  .payment-methods,
  .hide-mobile,
  .footer-meta,
  .footer-col:last-child {
    display: none !important;
  }

  .footer-bottom {
    display: block;
    text-align: center;
    padding-top: 1rem;
    font-size: 0.75rem;
  }

  .footer-copyright p {
    margin: 0;
  }
}

.policy-section {
  padding: 7rem 0 8rem 0;
  /* Ajustado para 7rem no top para compensar navbar */
  max-width: 800px;
  margin: 0 auto;
}

.policy-section h1,
.policy-section h2,
.policy-section p {
  margin-bottom: 1.7rem;
  line-height: 1.6;
}

.policy-section h2,
.policy-section p {
  margin-top: -1.0rem;
}

.policy-section p {
  margin-bottom: 2.0rem;
}

/* --- Responsividade (Mobile) --- */
@media (max-width: 770px) {
  .navbar {
    height: auto;
    min-height: 70px;
    padding: 12px 0;
  }

  .navbar-content {
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: space-between;
  }

  .hero {
    padding: 110px 0 40px;
  }

  .heading-display {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
    padding: 0 10px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin-bottom: 1.5rem;
  }

  .section-header h2 {
    font-size: 1.8rem;
  }

  .header-controls {
    align-items: center;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 10px;
    margin-top: 5px;
  }

  .filter-btn {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
  }

  /* Tighten spacing between sections */
  .products-section {
    padding-top: 1rem !important;
    padding-bottom: 1rem !important;
  }

  .section-header {
    margin-bottom: 1rem !important;
  }

  /* Flanking arrows for mobile: Hidden to rely completely on native touch swipe scrolling */
  .header-carousel-controls {
    display: none;
  }

  .search-container,
  .search-container:focus-within,
  .search-container:has(input:not(:placeholder-shown)) {
    width: 100%;
    max-width: 100%;
  }

  .filters {
    display: flex;
    overflow-x: auto;
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }

  .filters::-webkit-scrollbar {
    display: none;
  }

  /* Edge-to-edge carousels by negating the container padding */
  .carousel-track {
    margin-left: -5vw;
    margin-right: -5vw;
    padding-left: 5vw;
    padding-right: 5vw;
    gap: 1rem;
  }

  .product-card {
    min-width: 240px;
  }

  .footer-content {
    flex-direction: column;
    text-align: center;
    gap: 1.5rem;
  }

  .footer-copyright {
    text-align: center;
  }

  .footer-links {
    justify-content: center;
  }
}

/* --- Product Details Layout --- */
.product-details-container {
  display: grid;
  /* Proporções equilibradas com larguras mínimas de segurança */
  grid-template-columns: minmax(320px, 1fr) 2fr 320px;
  gap: 2rem;
  padding: 2.5rem;
  align-items: start;
}

@media (max-width: 1350px) {
  .product-details-container {
    padding: 2rem 1.5rem;
    gap: 1.5rem;
  }
}

.col-image {
  align-self: start;
}

.col-image img {
  width: 100%;
  display: block;
  margin: 0 auto;
  border-radius: var(--radius-md);
  object-fit: cover;
  background: var(--bg-secondary);
  box-shadow: var(--shadow-neon);
}

.col-info {
  display: flex;
  flex-direction: column;
}

.col-buy {
  background: var(--bg-glass);
  padding: 25px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-glass);
  align-self: start;
}

@media (max-width: 1250px) {
  .product-details-container {
    grid-template-columns: minmax(320px, 1fr) 1.8fr;
    gap: 2rem;
  }

  .col-image,
  .col-buy {
    position: static;
    width: 100%;
  }

  .col-buy {
    grid-column: 1 / -1;
    margin-top: 1rem;
  }
}

@media (max-width: 768px) {
  .product-page-main {
    padding-left: 0;
    padding-right: 0;
  }

  .product-details-container {
    grid-template-columns: 1fr;
    padding: 1.5rem 5%;
    /* Alinhado com o padding do container global */
    gap: 1.5rem;
    border-radius: 0;
    border-left: none;
    border-right: none;
    overflow-x: hidden;
    /* Prevent early overflow */
  }

  .col-image,
  .col-buy {
    position: static;
  }
}

/* Shipping Option in Cart */
.cart-shipping-opt {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: all 0.3s ease;
}

.cart-shipping-opt:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent-neon);
}

.cart-shipping-opt.selected {
  background: rgba(0, 255, 106, 0.1);
  border-color: var(--accent-neon);
}

.cart-shipping-opt input[type="radio"] {
  accent-color: var(--accent-neon);
  width: 18px;
  height: 18px;
  cursor: pointer;
}

.cart-shipping-opt span {
  flex: 1;
  font-size: 0.9rem;
}

.cart-shipping-opt .opt-price {
  font-weight: bold;
  color: var(--accent-neon);
}

#checkout-btn {
  margin-top: 25px;
  width: 100%;
}

.modal-footer {
  display: flex;
  flex-direction: column;
}

/* --- Dimensions Grid Style --- */
.dimensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.85rem;
  color: #aaa;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 350px) {
  .dimensions-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Shipping Calculator Responsive Fix --- */
.shipping-calculator .btn {
  white-space: nowrap;
  padding: 10px 15px;
  font-size: 0.9rem;
}

@media (max-width: 400px) {
  .shipping-calculator div[style*="flex"] {
    flex-direction: column;
    align-items: stretch;
  }

  .shipping-calculator button {
    width: 100%;
  }
}

.modal-footer {
  display: flex;
  flex-direction: column;
}

/* --- Dimensions Grid Style --- */
.dimensions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  font-size: 0.85rem;
  color: #aaa;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

@media (max-width: 350px) {
  .dimensions-grid {
    grid-template-columns: 1fr;
  }
}

/* --- Shipping Calculator Responsive Fix --- */
.shipping-calculator .btn {
  white-space: nowrap;
  padding: 10px 15px;
  font-size: 0.9rem;
}

@media (max-width: 400px) {
  .shipping-calculator div[style*="flex"] {
    flex-direction: column;
    align-items: stretch;
  }

  .shipping-calculator button {
    width: 100%;
  }
}

/* --- Product Gallery Refined (Swipe + Snap) --- */
.product-gallery {
  display: flex;
  flex-direction: column;
  gap: 15px;
  width: 100%;
}

.gallery-main {
  position: relative;
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.2);
  border: 1px solid var(--border-glass);
}

/* Container que permite o scroll horizontal suave */
.gallery-scroll-container {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

/* Esconder barra de scroll */
.gallery-scroll-container::-webkit-scrollbar {
  display: none;
}

.gallery-scroll-container {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.gallery-scroll-container img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: center;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  border: 1px solid var(--border-glass);
  color: #fff;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition-fast);
  z-index: 10;
  opacity: 0;
}

.gallery-main:hover .gallery-nav-btn {
  opacity: 1;
}

.gallery-nav-btn:hover {
  background: var(--accent-neon);
  color: #000;
  border-color: var(--accent-neon);
}

.btn-prev {
  left: 15px;
}

.btn-next {
  right: 15px;
}

/* Thumbs for Desktop, Dots for Mobile */
.gallery-thumbs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 5px 0;
}

.thumb-item {
  flex: 0 0 70px;
  aspect-ratio: 1/1;
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: var(--transition-fast);
  opacity: 0.6;
}

.thumb-item.active {
  opacity: 1;
  border-color: var(--accent-neon);
}

.thumb-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-dots {
  display: none;
  /* Only on mobile usually */
  justify-content: center;
  gap: 8px;
  margin-top: 10px;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  cursor: pointer;
  transition: var(--transition-fast);
}

.dot.active {
  background: var(--accent-neon);
  transform: scale(1.2);
}

@media (max-width: 768px) {
  .gallery-nav-btn {
    display: none;
  }

  /* On mobile we use swipe */
  .gallery-thumbs {
    display: none;
  }

  .gallery-dots {
    display: flex;
  }
}

/* --- Responsive Product Page Layout --- */
.product-page-main {
  padding: 140px 0 60px;
  min-height: 80vh;
  max-width: 1600px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 768px) {
  .product-page-main {
    padding: 85px 15px 25px;
    /* Bem mais compacto no mobile */
  }
}

/* WhatsApp Floating Button */
.whatsapp-float {
  position: fixed;
  width: 60px;
  height: 60px;
  bottom: 30px;
  right: 30px;
  background-color: #25d366;
  color: #FFF;
  border-radius: 50px;
  text-align: center;
  font-size: 35px;
  box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all 0.3s ease;
  text-decoration: none;
}

.whatsapp-float:hover {
  background-color: #128C7E;
  transform: scale(1.1);
  color: #fff;
}

@media (max-width: 768px) {
  .whatsapp-float {
    width: 50px;
    height: 50px;
    bottom: 20px;
    right: 20px;
    font-size: 28px;
  }
}