:root {
  /* Colors (3 main + neutrals) */
  --brand-1: #723609; /* primary - warm brown */
  --brand-2: #FDEEF8; /* accent soft pink */
  --brand-3: #EAF2FF; /* accent soft blue */
  --neutral-900: #2e2a2c;
  --neutral-500: #8b7f88;
  --card: #ffffff;
  --bg: #FFF9FB;

  /* Spacing scale (multiples of 8px) */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 40px;

  /* Typography */
  --font-sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --base-font-size: 16px;

  /* Misc */
  --radius: 14px;
  --shadow: 0 6px 18px rgba(125, 110, 125, 0.08);
}

.btn {
  background: linear-gradient(135deg, #ff6b9d, #c44569);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}
}

/* Animações flutuantes */
.floating-elements {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.floating-item {
  position: absolute;
  font-size: 24px;
  opacity: 0.6;
  animation: float 6s ease-in-out infinite;
}

.floating-item:nth-child(odd) {
  animation-direction: reverse;
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  25% { transform: translateY(-20px) rotate(5deg); }
  50% { transform: translateY(-40px) rotate(0deg); }
  75% { transform: translateY(-20px) rotate(-5deg); }
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: var(--space-3);
  position: relative;
  z-index: 10;
  width: 100%;
  box-sizing: border-box;
}

.site-header {
  background: linear-gradient(90deg, var(--brand-2), var(--brand-3));
  padding: calc(var(--space-3) + 8px) 0;
  border-bottom-left-radius: calc(var(--radius) + 6px);
  border-bottom-right-radius: calc(var(--radius) + 6px);
  position: relative;
  z-index: 10;
}

.brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
}

.brand {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 28px;
  font-weight: 700;
  color: var(--neutral-900);
  flex: 1;
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
}

.cart-toggle {
  position: relative;
  background: var(--card);
  border: none;
  padding: 12px 16px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
}

.cart-toggle:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(125, 110, 125, 0.12);
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff6b9d;
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

/* Produtos */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: all 0.3s ease;
  position: relative;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(125, 110, 125, 0.15);
}

.card-header {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
}

.favorite-btn {
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 16px;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.favorite-btn:hover {
  transform: scale(1.1);
}

.favorite-btn.active {
  background: #ff6b9d;
  color: white;
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
  background: var(--card);
  border-radius: var(--radius) var(--radius) 0 0;
}

.meta {
  padding: 16px;
}

.meta h3 {
  margin: 0 0 8px 0;
  font-size: 18px;
  font-weight: 600;
  color: #2e2a2c;
}

.price {
  font-size: 20px;
  font-weight: 700;
  color: #723609;
}

.actions {
  padding: 0 var(--space-2) var(--space-2) var(--space-2);
}

.btn {
  background: #723609;
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 54, 9, 0.3);
}

.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

.btn.small {
  padding: 6px 12px;
  font-size: 14px;
  width: auto;
}

/* Utility & Component updates */
.btn--primary { background: linear-gradient(135deg, var(--brand-2), var(--brand-3)); color: var(--neutral-900); }
.btn--accent { background: var(--brand-1); color: #fff; }
.full-width { width: 100% !important; }

/* Add-to-cart specific */
.btn.add {
  background: linear-gradient(135deg, var(--brand-1), var(--brand-1));
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(114, 54, 9, 0.18);
}
.btn.add:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(114, 54, 9, 0.24);
}

/* Price styling aligned with brand */
.price {
  font-size: 20px;
  font-weight: 700;
  color: var(--brand-1);
}

/* Inputs */
.input, input, textarea, select {
  padding: var(--space-2);
  border-radius: 6px;
  border: 1px solid #ddd;
  font-size: 14px;
  outline: none;
}
.input:focus, input:focus, textarea:focus, select:focus { box-shadow: 0 4px 12px rgba(114,54,9,0.08); border-color: var(--brand-1); }

/* Cart-specific small utilities */
#cartShippingLine { display: none; margin-top: 6px; color: var(--neutral-900); }
#mpQuickBtn { display: none; }
#calcCartFreteBtn { min-width: 120px; }
#cartCepInput { flex:1; }

/* Floating items positions and animation delays (moved from inline) */
.floating-item.pos-10 { left: 10%; }
.floating-item.pos-20 { left: 20%; }
.floating-item.pos-30 { left: 30%; }
.floating-item.pos-40 { left: 40%; }
.floating-item.pos-50 { left: 50%; }
.floating-item.pos-60 { left: 60%; }
.floating-item.pos-70 { left: 70%; }
.floating-item.pos-80 { left: 80%; }
.floating-item.pos-90 { left: 90%; }
.floating-item.delay-0 { animation-delay: 0s; }
.floating-item.delay-1 { animation-delay: 1s; }
.floating-item.delay-2 { animation-delay: 2s; }
.floating-item.delay-3 { animation-delay: 3s; }
.floating-item.delay-4 { animation-delay: 4s; }
.floating-item.delay-5 { animation-delay: 5s; }

/* Botão 'Adicionar ao carrinho' personalizado */
.btn.add {
  background: linear-gradient(135deg, #723609, #723609);
  color: #ffffff;
  box-shadow: 0 6px 20px rgba(114, 54, 9, 0.18);
}

.btn.add:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(114, 54, 9, 0.24);
}


/* Carrinho */
.cart-panel {
  position: fixed;
  top: 0;
  right: 0;
  width: 400px;
  height: 100vh;
  background: var(--card);
  box-shadow: -4px 0 24px rgba(0, 0, 0, 0.1);
  transform: translateX(100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  padding: 24px;
  overflow-y: auto;
}

.cart-panel[aria-hidden="false"] {
.cart-panel.active {
  transform: translateX(0);
}
  transform: translateX(0);
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--accent);
}

.cart-title {
  font-size: 24px;
  font-weight: 700;
  color: #2e2a2c;
}

.close-cart {
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.close-cart:hover {
  background: var(--accent);
  color: #2e2a2c;
}

.cart-items {
  flex: 1;
  margin-bottom: 24px;
}

.cart-item {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--accent);
}

/* Cart item thumbnail and controls styling */
.cart-item img {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--card);
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.06);
}

.cart-item-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.cart-item-info h4 {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: #2e2a2c;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.qty-btn {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: none;
  background: #f3f3f4;
  color: #2e2a2c;
  font-weight: 700;
  cursor: pointer;
}

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

.cart-item-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  min-width: 92px;
  font-weight: 700;
}

.remove-btn {
  background: transparent;
  border: none;
  color: #c44569;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.actions-compact {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cart-footer {
  border-top: 1px solid var(--accent);
  padding-top: 16px;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: #2e2a2c;
  margin-bottom: 16px;
}

/* Overlay */
.overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 999;
}

.overlay:not([hidden]) {
  opacity: 1;
  visibility: visible;
}

/* Footer complexo */
.site-footer {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  margin-top: 80px;
  padding: 60px 0 20px 0;
  width: 100%;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 40px;
  margin-bottom: 40px;
  max-width: 1100px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 28px;
  box-sizing: border-box;
}

.footer-brand {
  text-align: left;
}

.footer-brand h3 {
  font-size: 24px;
  font-weight: 700;
  color: #2e2a2c;
  margin-bottom: 8px;
}

.footer-brand p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.nav-section h4 {
  font-size: 16px;
  font-weight: 600;
  color: #2e2a2c;
  margin-bottom: 16px;
}

.nav-section ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.nav-section li {
  margin-bottom: 8px;
}

.nav-section a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  transition: color 0.2s ease;
}

.nav-section a:hover {
  color: #ff6b9d;
}

.footer-bottom {
  border-top: 1px solid rgba(139, 127, 136, 0.2);
  padding-top: 20px;
  max-width: 1100px;
  margin: 0 auto;
  padding-left: 28px;
  padding-right: 28px;
  box-sizing: border-box;
}

.footer-bottom p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0;
  text-align: center;
}

/* Responsividade adicional */
@media (max-width: 768px) {
  .footer-content {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .footer-nav {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 40px 0 16px 0;
  }

  .footer-content {
    gap: 24px;
  }
}

/* Responsividade */
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }

  .site-header {
    padding: 24px 0;
  }

  .brand {
    font-size: 24px;
  }

  .products {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 16px;
  }

  .cart-panel {
    width: 100%;
  }

  .floating-item {
    display: none;
  }
}

@media (max-width: 480px) {
  .brand-row {
    flex-direction: column;
    gap: 16px;
  }

  .products {
    grid-template-columns: 1fr;
  }

  .cart-item {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .actions-compact {
    flex-direction: row;
    justify-content: center;
  }
}

/* Conteúdo Principal */
.main-content {
  padding: 40px 0;
  min-height: calc(100vh - 200px);
}

/* Seções */
.products-section {
  margin-bottom: 60px;
}

.section-title {
  text-align: center;
  font-size: 32px;
  font-weight: 700;
  color: #2e2a2c;
  margin-bottom: 40px;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #ff6b9d, #c44569);
  margin: 16px auto 0;
  border-radius: 2px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 30px;
}

/* Seção de Contato */
.contact-section {
  margin-top: 60px;
}

.contact-card {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  box-shadow: 0 8px 32px rgba(125, 110, 125, 0.15);
  max-width: 600px;
  margin: 0 auto;
}

.contact-card h3 {
  font-size: 24px;
  font-weight: 600;
  color: #2e2a2c;
  margin-bottom: 16px;
}

.contact-card p {
  font-size: 16px;
  color: var(--muted);
  margin-bottom: 24px;
  line-height: 1.6;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #25D366, #128C7E);
  color: white;
  padding: 16px 32px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 18px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.3);
}

.whatsapp-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.4);
}

/* Mercado Pago styled button to match site aesthetic */
.btn-mercado-pago {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #009EE3, #006BB3);
  color: #fff;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  border: none;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 158, 227, 0.16);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.btn-mercado-pago:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 14px 36px rgba(0, 107, 179, 0.22);
}

.btn-mercado-pago:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Ensure Mercado Pago button in cart footer spans full width when used there */
.cart-footer .btn-mercado-pago {
  width: 100%;
  justify-content: center;
}

/* Carrinho */
.empty-cart {
  text-align: center;
  color: var(--muted);
  font-style: italic;
  padding: 40px 20px;
}

.btn-primary {
  background: #723609;
  color: white;
  border: none;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

.btn-primary:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(114, 54, 9, 0.3);
}

.btn-primary:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
}

/* Tagline */
.tagline {
  text-align: center;
  color: var(--muted);
  font-size: 18px;
  font-weight: 300;
  margin: 20px 0 0 0;
  font-style: italic;
}

/* Responsividade adicional */
@media (max-width: 768px) {
  .main-content {
    padding: 20px 0;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
  }

  .contact-card {
    padding: 30px 20px;
    margin: 0 20px;
  }

  .contact-card h3 {
    font-size: 20px;
  }

  .whatsapp-button {
    padding: 14px 24px;
    font-size: 16px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 24px;
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    padding: 24px 16px;
    margin: 0 16px;
  }

  .tagline {
    font-size: 16px;
    margin: 16px 16px 0 0;
  }
}
