/* 
 * TEMA NATALINO - SENHOR NATAL
 * Transformação visual para o período natalino
 */

:root {
  /* Cores principais do tema natalino */
  --text-color: #4A4A4A;
  --text-color-rgb: 74, 74, 74;
  --heading-color: #C62828;
  --border-color: #FFCDD2;
  --border-color-rgb: 255, 205, 210;
  --form-border-color: #FFCDD2;
  --accent-color: #C62828;
  --accent-color-rgb: 198, 40, 40;
  --link-color: #C62828;
  --link-color-hover: #B71C1C;
  --background: #F5F5F5;
  --secondary-background: #FFFFFF;
  --secondary-background-rgb: 255, 255, 255;
  --accent-background: rgba(198, 40, 40, 0.08);
  --corstars: #FFD700;
  --cordabarra: #C62828;
  --cordotexto: #FFFFFF;

  --error-color: #D32F2F;
  --error-background: rgba(211, 47, 47, 0.07);
  --success-color: #2E7D32;
  --success-background: rgba(46, 125, 50, 0.11);

  --primary-button-background: #C62828;
  --primary-button-background-rgb: 198, 40, 40;
  --primary-button-text-color: #FFFFFF;
  --secondary-button-background: #D32F2F;
  --secondary-button-background-rgb: 211, 47, 47;
  --secondary-button-text-color: #FFFFFF;

  --footer-background: #B71C1C;
  --footer-text-color: #FFEBEE;

  --header-background: #C62828;
  --header-text-color: #FFFFFF;
  --header-light-text-color: #FFCDD2;
  --header-border-color: rgba(255, 255, 255, 0.3);
  --header-accent-color: #FFFFFF;

  --flickity-arrow-color: #C62828;
  --product-on-sale-accent: #C62828;
  --product-on-sale-accent-rgb: 198, 40, 40;
  --product-on-sale-color: #FFFFFF;
  --product-cor-do-preco: #2E7D32;
  --product-cor-do-preco-riscado: #9E9E9E;
  --product-cor-dos-titles: #C62828;
  --product-in-stock-color: #2E7D32;
  --product-low-stock-color: #D32F2F;
  --product-sold-out-color: #BDBDBD;
  --product-custom-label-1-background: #C62828;
  --product-custom-label-1-color: #FFFFFF;
  --product-custom-label-2-background: #B71C1C;
  --product-custom-label-2-color: #FFFFFF;
  --product-review-star-color: #FFD700;
}

/* Linha colorida do topo com cores natalinas */
.color-line {
  background: linear-gradient(to right, 
    #C62828 0%, 
    #D32F2F 20%, 
    #FFFFFF 40%, 
    #2E7D32 60%, 
    #D32F2F 80%, 
    #C62828 100%
  ) !important;
  background-image: linear-gradient(to right, 
    #C62828 0%, 
    #D32F2F 15%, 
    #FFFFFF 30%, 
    #FFD700 45%, 
    #2E7D32 60%, 
    #FFFFFF 75%, 
    #C62828 90%, 
    #B71C1C 100%
  ) !important;
}

/* Efeitos de neve (opcional - adiciona flocos de neve sutis) */
body::before {
  content: '❄';
  position: fixed;
  top: -10px;
  left: 10%;
  font-size: 20px;
  color: rgba(255, 255, 255, 0.7);
  animation: snow-fall 10s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

body::after {
  content: '❄';
  position: fixed;
  top: -10px;
  left: 80%;
  font-size: 25px;
  color: rgba(255, 255, 255, 0.6);
  animation: snow-fall 12s linear infinite;
  animation-delay: 2s;
  pointer-events: none;
  z-index: 9999;
}

@keyframes snow-fall {
  0% {
    top: -10px;
    opacity: 1;
  }
  100% {
    top: 100vh;
    opacity: 0;
  }
}

/* Adiciona sombras vermelhas nos botões para efeito natalino */
.btn,
button,
.button,
[type="submit"] {
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.2) !important;
  transition: all 0.3s ease !important;
}

.btn:hover,
button:hover,
.button:hover,
[type="submit"]:hover {
  box-shadow: 0 4px 12px rgba(198, 40, 40, 0.4) !important;
  transform: translateY(-2px);
}

/* Destaque natalino para cards e produtos */
.product-item,
.card {
  border: 1px solid #FFCDD2 !important;
  transition: all 0.3s ease;
}

.product-item:hover,
.card:hover {
  border-color: #C62828 !important;
  box-shadow: 0 4px 16px rgba(198, 40, 40, 0.15) !important;
}

/* Efeito de neve no header */
.css-17zspo6-WelcomeHeader,
.css-5milez,
header {
  position: relative;
  overflow: visible;
}

/* Guirlanda decorativa no topo */
.css-17zspo6-WelcomeHeader::before {
  content: '🎄 ❄️ ⭐ 🎅 ❄️ 🎄';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  text-align: center;
  font-size: 14px;
  padding: 5px 0;
  background: linear-gradient(to right, #C62828, #D32F2F, #C62828);
  color: white;
  z-index: 1000;
  letter-spacing: 20px;
  animation: twinkle 2s ease-in-out infinite;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.7; }
}

/* Adiciona decoração de Natal nos títulos de categoria */
.css-17dn4tl h1,
.css-17dn4tl h2,
h1, h2 {
  position: relative;
}

/* Badges de desconto com tema natalino */
.product-item__label-list,
.product-item__label {
  background: linear-gradient(135deg, #C62828, #D32F2F) !important;
  color: white !important;
  font-weight: bold;
  border-radius: 8px;
  padding: 4px 12px;
}

/* Botão de adicionar ao carrinho natalino */
.product-item__action-button,
[class*="button"],
[class*="btn"] {
  background: linear-gradient(135deg, #C62828, #D32F2F) !important;
  border: none !important;
  color: white !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  position: relative;
  overflow: hidden;
}

.product-item__action-button::before,
[class*="button"]::before,
[class*="btn"]::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.product-item__action-button:hover::before,
[class*="button"]:hover::before,
[class*="btn"]:hover::before {
  width: 300px;
  height: 300px;
}

/* Estrelinhas decorativas nos preços */
.product-item__price-list,
.price {
  position: relative;
  color: #2E7D32 !important;
  font-weight: bold;
}

/* Footer natalino */
footer,
.css-1hhfv33-Footer {
  background: linear-gradient(to bottom, #B71C1C, #C62828) !important;
  border-top: 3px solid #FFD700;
}

/* Carrinho com tema natalino */
.cart-icon,
[class*="cart"],
.carrinho-popup {
  position: relative;
}

.cart-icon::after {
  content: '🎁';
  position: absolute;
  top: -5px;
  right: -5px;
  font-size: 12px;
}

/* Animação de presente para itens em promoção */
@keyframes present-shake {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-5deg); }
  75% { transform: rotate(5deg); }
}

.product-item__label--on-sale {
  animation: present-shake 1s ease-in-out infinite;
}

/* Decoração de flocos de neve caindo (mais sutis) */
@keyframes snowfall-left {
  0% { top: -10px; left: 10%; opacity: 0.8; }
  100% { top: 100vh; left: 15%; opacity: 0; }
}

@keyframes snowfall-right {
  0% { top: -10px; left: 80%; opacity: 0.8; }
  100% { top: 100vh; left: 75%; opacity: 0; }
}

@keyframes snowfall-center {
  0% { top: -10px; left: 45%; opacity: 0.8; }
  100% { top: 100vh; left: 50%; opacity: 0; }
}

/* Adiciona mais flocos de neve */
.css-17dn4tl::before {
  content: '❄';
  position: fixed;
  font-size: 18px;
  color: rgba(198, 40, 40, 0.3);
  animation: snowfall-center 15s linear infinite;
  pointer-events: none;
  z-index: 9999;
}

/* Menu de navegação natalino */
nav,
.navigation,
[class*="nav"] {
  background: linear-gradient(to right, #C62828, #D32F2F) !important;
}

/* Links com efeito de presente */
a {
  transition: all 0.3s ease;
}

a:hover {
  color: #C62828 !important;
  text-decoration: none;
}

/* Mensagens de sucesso com tema natalino */
.alert-success,
.success-message {
  background: linear-gradient(135deg, #2E7D32, #43A047) !important;
  border-left: 4px solid #FFD700 !important;
  color: white !important;
}

/* Inputs com borda natalina */
input[type="text"],
input[type="email"],
input[type="tel"],
textarea,
select {
  border: 2px solid #FFCDD2 !important;
  border-radius: 8px;
  transition: all 0.3s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="tel"]:focus,
textarea:focus,
select:focus {
  border-color: #C62828 !important;
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.1) !important;
  outline: none;
}

/* ========================================
   RESPONSIVIDADE MOBILE
   ======================================== */

@media (max-width: 768px) {
  /* Ajusta guirlanda no mobile */
  .css-17zspo6-WelcomeHeader::before {
    font-size: 10px;
    letter-spacing: 10px;
    padding: 3px 0;
  }
  
  /* Reduz tamanho dos flocos de neve */
  body::before,
  body::after,
  .css-17dn4tl::before {
    font-size: 14px !important;
  }
  
  /* Ajusta botões no mobile */
  .product-item__action-button,
  [class*="button"],
  [class*="btn"] {
    font-size: 12px !important;
    padding: 8px 16px !important;
  }
  
  /* Logo menor no mobile */
  .css-h438xy-CustomImage {
    max-width: 100px !important;
    height: auto !important;
  }
  
  /* Cards de produtos mais compactos */
  .product-item {
    margin-bottom: 15px;
  }
  
  /* Footer mais compacto */
  footer,
  .css-1hhfv33-Footer {
    padding: 20px 10px !important;
    font-size: 14px;
  }
}

@media (max-width: 480px) {
  /* Guirlanda ainda menor em telas muito pequenas */
  .css-17zspo6-WelcomeHeader::before {
    font-size: 8px;
    letter-spacing: 5px;
  }
  
  /* Esconde flocos decorativos em telas pequenas para performance */
  body::before,
  body::after {
    display: none;
  }
  
  /* Ajusta padding geral */
  .container {
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
}

/* ========================================
   MELHORIAS DE ACESSIBILIDADE
   ======================================== */

/* Alto contraste para melhor legibilidade */
.product-item__title,
.product-item__vendor,
h1, h2, h3, h4, h5, h6 {
  color: #4A4A4A !important;
  text-shadow: none;
}

/* Garante que textos brancos tenham bom contraste */
.css-17zspo6-WelcomeHeader,
footer,
[class*="Footer"] {
  color: #FFFFFF !important;
}

/* Links com melhor contraste */
a:focus {
  outline: 2px solid #C62828;
  outline-offset: 2px;
}

/* ========================================
   EFEITOS ESPECIAIS DE NATAL
   ======================================== */

/* Efeito de brilho nos botões principais */
@keyframes shine {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}

.product-item__action-button:hover,
[type="submit"]:hover {
  background: linear-gradient(
    90deg,
    #C62828 0%,
    #D32F2F 45%,
    #FF6B6B 50%,
    #D32F2F 55%,
    #C62828 100%
  ) !important;
  background-size: 200% auto !important;
  animation: shine 2s linear infinite;
}

/* Cursor de Natal personalizado para botões */
.product-item__action-button,
button,
[type="submit"],
a {
  cursor: pointer;
}

/* Sombra natalina para destacar produtos */
.product-item {
  position: relative;
}

.product-item::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(45deg, #C62828, #FFD700, #2E7D32, #C62828);
  border-radius: 8px;
  opacity: 0;
  z-index: -1;
  transition: opacity 0.3s ease;
  background-size: 400% 400%;
  animation: gradient-shift 3s ease infinite;
}

.product-item:hover::before {
  opacity: 0.3;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* Mensagem de boas-festas no carrinho vazio */
.cart-empty::after {
  content: '🎅 Adicione presentes ao seu carrinho! 🎁';
  display: block;
  margin-top: 10px;
  color: #C62828;
  font-weight: bold;
}

/* Print styles - remove decorações ao imprimir */
@media print {
  .css-17zspo6-WelcomeHeader::before,
  body::before,
  body::after,
  .css-17dn4tl::before,
  .cart-icon::after {
    display: none !important;
  }
  
  * {
    background: white !important;
    color: black !important;
  }
}

