/* === VARIÁVEIS GLOBAIS === */
:root {
  --cor-primaria: #8B4513;
  --cor-secundaria: #D2691E;
  --cor-hover: #A0522D;
  --cor-texto: #3b2416;
  --cor-clara: #fff3e6;
  --sombra-suave: 0 4px 12px rgba(0,0,0,0.08);
  --transicao-padrao: all 0.3s ease;
  
  /* Variáveis para mobile */
  --navbar-height: 70px;
  --touch-target-min: 44px;
  --spacing-mobile: 16px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: rgba(139, 69, 19, 0.1);
}

body {
  font-family: 'Montserrat', sans-serif;
  color: var(--cor-texto);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
}

/* === NAVBAR OTIMIZADO PARA MOBILE === */
.custom-navbar {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.06);
  padding: 0.8rem 0;
  transition: var(--transicao-padrao);
  min-height: var(--navbar-height);
}

.custom-brand {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--cor-primaria) !important;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  letter-spacing: 0.5px;
}

.custom-nav .nav-link {
  color: var(--cor-texto);
  font-weight: 500;
  padding: 0.75rem 1rem;
  transition: all 0.3s ease;
  position: relative;
  font-size: 1rem;
  letter-spacing: 0.3px;
  min-height: var(--touch-target-min);
  display: flex;
  align-items: center;
}

.custom-nav .nav-link:hover {
  color: var(--cor-primaria);
}

.custom-nav .nav-link.active {
  color: var(--cor-primaria);
  font-weight: 600;
}

.custom-nav .nav-link.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 3px;
  background: var(--cor-primaria);
  border-radius: 2px;
}

.btn-icon {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  cursor: pointer;
  transition: all 0.3s ease;
  padding: 0.6rem;
  min-width: var(--touch-target-min);
  min-height: var(--touch-target-min);
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  transform: scale(1.05);
  color: var(--cor-primaria);
}

.btn-icon:active {
  transform: scale(0.95);
}

.cart-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--cor-primaria);
  color: white;
  font-size: 0.65rem;
  padding: 3px 6px;
  border-radius: 10px;
  font-weight: 600;
  min-width: 18px;
  text-align: center;
}

.btn-outline-custom {
  border: 2px solid var(--cor-primaria);
  color: var(--cor-primaria);
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  letter-spacing: 0.3px;
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-outline-custom:hover {
  background: var(--cor-primaria);
  color: white;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.25);
}

.btn-outline-custom:active {
  transform: scale(0.98);
}

.btn-primary-custom {
  background: var(--cor-primaria);
  color: white;
  border: none;
  font-weight: 600;
  padding: 0.75rem 1.5rem;
  transition: all 0.3s ease;
  border-radius: 8px;
  letter-spacing: 0.3px;
  min-height: var(--touch-target-min);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-primary-custom:hover {
  background: var(--cor-hover);
  box-shadow: 0 6px 16px rgba(139, 69, 19, 0.35);
}

.btn-primary-custom:active {
  transform: scale(0.98);
}

/* === HERO SECTION MELHORADA E MODERNA === */

/* Animações de entrada */
@keyframes fadeInDown {
  from {
    opacity: 0;
    transform: translateY(-30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(50px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes float {
  0%, 100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-10px);
  }
}

/* Efeito de ripple no botão */
@keyframes ripple {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7);
  }
  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

/* Container principal do hero */
.menu-hero {
  position: relative;
  background: linear-gradient(135deg, rgba(139, 69, 19, 0.3) 0%, rgba(210, 105, 30, 0.2) 100%),
              url('https://images.unsplash.com/photo-1563729784474-d77dbb933a9e?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1287&q=80' ) center/cover no-repeat fixed;
  height: 70vh;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: white;
  overflow: hidden;
}

/* Efeito de parallax no background */
.menu-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(180deg, 
    rgba(0, 0, 0, 0.1) 0%, 
    rgba(139, 69, 19, 0.25) 50%, 
    rgba(0, 0, 0, 0.2) 100%);
  z-index: 1;
  pointer-events: none;
}

/* Overlay com efeito de vignette */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at center, transparent 0%, rgba(0, 0, 0, 0.15) 100%);
  z-index: 1;
}

/* Container do conteúdo */
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

/* Decoração superior */
.hero-content::before {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  margin: 0 auto 2rem;
  animation: slideInLeft 0.8s ease-out 0.4s both;
}

/* Título principal */
.menu-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 8vw, 3.5rem);
  font-weight: 700;
  margin-bottom: 1.5rem;
  line-height: 1.2;
  letter-spacing: 0.5px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  animation: fadeInDown 0.8s ease-out 0.3s both;
  word-spacing: 0.1em;
}

/* Efeito de destaque no título */
.menu-title strong {
  background: linear-gradient(135deg, #FFD700, #FFA500);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 700;
}

/* Subtítulo */
.menu-subtitle {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1rem, 3vw, 1.3rem);
  margin-bottom: 2.5rem;
  font-weight: 300;
  line-height: 1.8;
  opacity: 0.95;
  max-width: 550px;
  margin-left: auto;
  margin-right: auto;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  animation: fadeInUp 0.8s ease-out 0.5s both;
  letter-spacing: 0.4px;
}

/* Container dos botões CTA */
.hero-cta {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
  animation: fadeInUp 0.8s ease-out 0.7s both;
}

/* Botão principal do hero */
.hero-cta .btn {
  padding: 1.1rem 3rem;
  font-size: 1.05rem;
  font-weight: 600;
  border-radius: 50px;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  min-height: 50px;
  letter-spacing: 0.6px;
  border: 2px solid white;
  background: white;
  color: #8B4513;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  text-transform: uppercase;
  font-size: 0.95rem;
}

/* Efeito de ripple no botão */
.hero-cta .btn::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transform: translate(-50%, -50%);
  transition: width 0.6s, height 0.6s;
}

.hero-cta .btn:hover::before {
  width: 300px;
  height: 300px;
}

/* Hover do botão */
.hero-cta .btn:hover {
  background: transparent;
  color: white;
  transform: translateY(-4px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
  border-color: white;
}

.hero-cta .btn:active {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
}

/* Botão secundário (opcional) */
.hero-cta .btn-secondary {
  background: transparent;
  border: 2px solid white;
  color: white;
}

.hero-cta .btn-secondary:hover {
  background: white;
  color: #8B4513;
}

/* Decoração inferior */
.hero-content::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.8), transparent);
  margin: 2rem auto 0;
  animation: slideInRight 0.8s ease-out 0.6s both;
}

/* Indicador de scroll (opcional) */
.scroll-indicator {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  animation: float 3s ease-in-out infinite;
}

.scroll-indicator span {
  display: block;
  width: 30px;
  height: 50px;
  border: 2px solid white;
  border-radius: 15px;
  position: relative;
  opacity: 0.7;
}

.scroll-indicator span::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 12px;
  background: white;
  border-radius: 1px;
  animation: float 2s ease-in-out infinite;
}

/* === RESPONSIVIDADE NAVBAR PARA MOBILE === */
@media (max-width: 992px) {
  .custom-navbar {
    padding: 0.6rem 0;
  }

  .custom-brand {
    font-size: 1.3rem;
    flex-shrink: 0;
  }

  .navbar-toggler {
    margin-left: auto;
    order: 2;
  }

  .navbar-collapse {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.99);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(139, 69, 19, 0.1);
    padding: 1rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  }

  .custom-nav {
    flex-direction: column;
    gap: 0;
  }

  .custom-nav .nav-link {
    padding: 0.8rem 1.5rem;
    border-bottom: 1px solid rgba(139, 69, 19, 0.05);
    font-size: 0.95rem;
  }

  .custom-nav .nav-link.active::after {
    display: none;
  }

  .custom-nav .nav-link.active {
    background: rgba(139, 69, 19, 0.05);
    border-left: 4px solid var(--cor-primaria);
    padding-left: calc(1.5rem - 4px);
  }

  .custom-actions {
    padding: 1rem 1.5rem;
    border-top: 1px solid rgba(139, 69, 19, 0.1);
    flex-wrap: wrap;
    gap: 1rem;
  }

  #auth-buttons {
    width: 100%;
    flex-direction: column !important;
    gap: 0.8rem !important;
  }

  #auth-buttons .btn {
    width: 100%;
    padding: 0.8rem 1rem !important;
  }

  .vr {
    display: none !important;
  }
}

@media (max-width: 576px) {
  .custom-navbar {
    padding: 0.5rem 0;
    min-height: 60px;
  }

  .custom-brand {
    font-size: 1.1rem;
    white-space: nowrap;
  }

  .container {
    padding-left: 12px;
    padding-right: 12px;
  }

  .navbar-toggler {
    padding: 0.4rem 0.5rem;
  }

  .navbar-toggler-icon {
    width: 1.3rem;
    height: 1.3rem;
  }

  .custom-actions {
    padding: 0.8rem 1rem;
    gap: 0.8rem;
  }

  .btn-icon {
    font-size: 1.2rem;
    padding: 0.4rem;
    min-width: 40px;
    min-height: 40px;
  }

  .cart-badge {
    font-size: 0.6rem;
    padding: 2px 4px;
    min-width: 16px;
  }
}

/* Responsividade para tablets */
@media (max-width: 768px) {
  .menu-hero {
    height: 60vh;
    min-height: 450px;
  }

  .menu-title {
    font-size: 2rem;
    margin-bottom: 1.2rem;
  }

  .menu-subtitle {
    font-size: 1rem;
    margin-bottom: 2rem;
  }

  .hero-cta {
    gap: 1rem;
  }

  .hero-cta .btn {
    padding: 0.95rem 2.5rem;
    font-size: 0.9rem;
  }

  .scroll-indicator {
    bottom: 20px;
  }
}

/* Responsividade para mobile */
@media (max-width: 480px) {
  .menu-hero {
    height: 55vh;
    min-height: 400px;
  }

  .hero-content {
    padding: 1.5rem;
  }

  .menu-title {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }

  .menu-subtitle {
    font-size: 0.95rem;
    margin-bottom: 1.8rem;
  }

  .hero-content::before,
  .hero-content::after {
    width: 40px;
    margin: 1rem auto;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.8rem;
  }

  .hero-cta .btn {
    width: 100%;
    padding: 0.9rem 2rem;
    font-size: 0.85rem;
  }

  .scroll-indicator {
    display: none;
  }
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
  .menu-hero {
    background-blend-mode: darken;
  }
}

/* Suporte a movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  .menu-hero,
  .menu-title,
  .menu-subtitle,
  .hero-cta,
  .scroll-indicator {
    animation: none !important;
  }

  .hero-cta .btn,
  .scroll-indicator span {
    transition: none !important;
  }
}

/* === CATEGORIAS === */
.categories-section {
  background: #fff;
  padding: 3rem 0;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.5rem;
  font-weight: 600;
  color: var(--cor-primaria);
  margin-bottom: 1rem;
}

.section-subtitle {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
}

.category-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  transition: all 0.35s ease;
  box-shadow: var(--sombra-suave);
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

.category-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 28px rgba(0,0,0,0.12);
}

.category-img {
  background-size: cover;
  background-position: center;
  height: 180px;
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

.category-card:hover .category-img {
  transform: scale(1.05);
}

.category-content {
  padding: 1.25rem;
  text-align: center;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.category-content h3 {
  font-size: 1.3rem;
  margin-bottom: 0.5rem;
  color: var(--cor-primaria);
  font-weight: 700;
}

.category-content p {
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.75rem;
  flex-grow: 1;
  line-height: 1.5;
}

.category-link {
  color: var(--cor-primaria);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
  display: inline-block;
  padding: 0.5rem;
}

.category-link:hover {
  color: var(--cor-hover);
  transform: translateX(5px);
}

/* === PRODUTOS === */
.products-section {
  padding: 3rem 0;
}

.product-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--sombra-suave);
  transition: all 0.35s ease;
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  margin-bottom: 1rem;
}

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

.product-card:active {
  transform: scale(0.98);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.product-badge {
  position: absolute;
  background: var(--cor-primaria);
  color: #fff;
  font-size: 0.75rem;
  padding: 6px 12px;
  border-radius: 0 0 12px 0;
  font-weight: 600;
  z-index: 2;
  letter-spacing: 0.3px;
}

.product-img {
  background-size: cover;
  background-position: center;
  height: 200px;
  transition: transform 0.5s ease;
  flex-shrink: 0;
}

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

.product-content {
  padding: 1.25rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-content h3 {
  color: var(--cor-primaria);
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.product-content p {
  font-size: 0.85rem;
  color: #666;
  margin: 0.5rem 0;
  line-height: 1.5;
  flex-grow: 1;
}

.rating {
  margin-bottom: 0.5rem;
}

.rating .stars {
  color: #ffb400;
  font-size: 0.95rem;
}

.rating-count {
  color: #999;
  font-size: 0.8rem;
  margin-left: 0.5rem;
}

.product-price {
  margin: 0.75rem 0;
}

.product-price .price {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--cor-primaria);
  font-family: 'Cormorant Garamond', serif;
}

.product-price .price-note {
  display: block;
  font-size: 0.8rem;
  color: #999;
  margin-top: 0.25rem;
}

.product-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.product-actions .btn {
  flex: 1;
  padding: 0.75rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  transition: all 0.3s ease;
  min-height: var(--touch-target-min);
  border-radius: 8px;
}

.product-actions .btn:active {
  transform: scale(0.98);
}

/* === FOOTER === */
footer {
  background: #3b2416;
  color: #fff;
  padding: 3rem 0 2rem;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  justify-content: center;
  margin-bottom: 1.5rem;
}

.footer-brand h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: 0.5px;
}

.footer-title {
  font-weight: 700;
  margin-bottom: 1rem;
  color: #fff3e6;
  font-size: 1rem;
  letter-spacing: 0.3px;
}

.list-unstyled a {
  text-decoration: none;
  transition: all 0.3s ease;
}

.list-unstyled a:hover {
  color: var(--cor-secundaria) !important;
}
