:root {
  --cor-fundo: #1a1a1a;
  --cor-texto: #e0e0e0;
  --cor-dourado: #d4af37;
  --cinza-chumbo: #2d2d2d;
  --cinza-escuro: #1f1f1f;
  --cinza-claro: #3a3a3a;
}

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

body {
  background: var(--cor-fundo);
  color: var(--cor-texto);
  font-family: 'Inter', sans-serif;
}

/* HEADER */
header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(26,26,26,0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--cinza-claro);
  padding: 1rem 4%;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  z-index: 1000;
}

.logo {
  font-family: 'Playfair Display', serif;
  color: var(--cor-dourado);
  font-size: 1.6rem;
  font-weight: 700;
}

.nav-categories {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.nav-categories button {
  background: transparent;
  border: 1px solid var(--cor-dourado);
  color: var(--cor-dourado);
  padding: 0.4rem 0.9rem;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.85rem;
}

.nav-categories button.active,
.nav-categories button:hover {
  background: var(--cor-dourado);
  color: #111;
}

.cart-btn {
  margin-left: auto;
  background: transparent;
  border: 1px solid var(--cor-dourado);
  color: var(--cor-dourado);
  padding: 0.5rem 1.2rem;
  border-radius: 30px;
  cursor: pointer;
}

.cart-count {
  background: var(--cor-dourado);
  color: #000;
  font-size: 0.7rem;
  padding: 3px 7px;
  border-radius: 50%;
  margin-left: 6px;
  font-weight: bold;
}

/* MAIN */
main {
  padding-top: 130px;
}

.hero {
  text-align: center;
  padding: 4rem 5%;
}

.hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--cor-dourado);
  font-size: 3rem;
}

/* PRODUTOS */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 2rem;
  padding: 2rem 5% 4rem;
}

.product-card {
  background: var(--cinza-chumbo);
  border-radius: 12px;
  border: 1px solid #3a3a3a;
  text-align: center;
  transition: 0.3s;
  
  .card-buttons {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

.btn-remove-card {
  background: transparent;
  border: 1px solid #aa4444;
  color: #ff6b6b;
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
}

.btn-remove-card:hover {
  background: #aa4444;
  color: #fff;
}
  /* ──────── Principais mudanças aqui ──────── */
  display: flex;
  flex-direction: column;
  min-height: 480px;          /* ajuste esse valor conforme seu gosto */
  height: 100%;               /* força todos terem a mesma altura na linha */
  overflow: hidden;
}

.cart-buttons {
  margin-top: 8px;
  display: flex;
  gap: 6px;
}

.cart-btn-add {
  background: transparent;
  border: 1px solid var(--cor-dourado);
  color: var(--cor-dourado);
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}
.cart-btn-remove{
  background: transparent;
  border: 1px solid #aa4444;
  color: #ff6b6b;
  padding: 4px 10px;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.9rem;
}

.cart-btn-add:hover {
  background: var(--cor-dourado);
  color: #111;
}

.cart-btn-remove:hover {
  background: #aa4444;
  color: #fff;
}


/* MOBILE */
@media (max-width: 768px) {
  .cart-buttons {
    gap: 4px;
  }

  .cart-buttons button {
    padding: 4px 8px;
    font-size: 0.8rem;
  }
}


.product-card:hover {
  transform: translateY(-8px);
  border-color: var(--cor-dourado);
}
@media (max-width: 768px) {

  .card-buttons {
    flex-direction: column;
    gap: 6px;
  }

  .card-buttons button {
    width: 100%;
    padding: 0.55rem;
    font-size: 0.8rem;
  }

}
.product-img {
  width: 100%;
  height: 280px;
  object-fit: contain;
  padding: 10px;
  cursor: pointer;
  flex-shrink: 0;            /* a imagem não encolhe */
}
.Logo {
  display: flex;
  align-items: center;
}

.LogoImg {
  width: 15vh;   /* controla o tamanho aqui */
  height: auto;  /* mantém proporção */
}

.product-info {
  padding: 1.2rem;
  flex-grow: 1;              /* ocupa todo o espaço disponível */
  display: flex;
  flex-direction: column;
  justify-content: space-between;   /* empurra preço + botão pro final */
}

.price {
  color: var(--cor-dourado);
  font-size: 1.2rem;
}

.btn-add {
  background: transparent;
  border: 1px solid var(--cor-dourado);
  color: var(--cor-dourado);
  padding: 0.6rem 1.4rem;
  border-radius: 30px;
  cursor: pointer;
}
.btn-add:hover{
  background: var(--cor-dourado);
  color: #111;
}

/* MODAL CARRINHO */
#cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.cart-content {
  background: var(--cinza-chumbo);
  border-radius: 16px;
  padding: 2rem;
  max-width: 450px;
  width: 95%;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #444;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
  font-size: 0.9rem;
}

.cart-item-sub {
  color: var(--cor-dourado);
  margin-top: 0.3rem;
}

.cart-total {
  margin: 1rem 0;
  font-size: 1.1rem;
}

#checkoutForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#checkoutForm input,
#checkoutForm select {
  background: var(--cinza-escuro);
  border: 1px solid var(--cinza-claro);
  color: var(--cor-texto);
  padding: 0.8rem;
  border-radius: 8px;
}

.btn-checkout {
  background: var(--cor-dourado);
  color: #111;
  border: none;
  padding: 0.9rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}

/* MODAL PRODUTO */
.product-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 3000;
}

.product-modal-content {
  background: var(--cinza-chumbo);
  padding: 2rem;
  border-radius: 16px;
  text-align: center;
  width: 95%;
  max-width: 500px;
  position: relative;
}

.product-modal-content img {
  width: 100%;
  max-height: 380px;
  object-fit: contain;
  margin-bottom: 1rem;
}

.product-price{
  color: #f5d76e; /* dourado mais claro */
  font-size: 1.25rem;
  font-weight: 600;
  padding-bottom: 10px;
}
.product-info h3 {
  font-family: 'Playfair Display', serif; /* mantém identidade elegante */
  font-size: 1.2rem;
  font-weight: 600;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: 0.5px;
}
.admin-desc {
  font-size: 0.85rem;
  color: #b5b5b5;
  line-height: 1.5;
  margin-bottom: 0.8rem;
}


#modalName {
  font-size: 1.4rem;
}

#modalPrice {
  color: var(--cor-dourado);
  font-size: 1.3rem;
  font-weight: 600;
}

.close-product {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--cor-dourado);
  color: #111;
  border: none;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  font-size: 1.2rem;
  cursor: pointer;
}

.close-cart {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 1.6rem;
  height: 1.6rem;
  background-color: var(--cor-dourado);
  color: var(--cinza-escuro);
  border: none;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: bold;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

  .products-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.8rem;
    padding: 1rem 3% 4rem;
  }

  .product-img {
    height: 160px;
  }

  .product-info {
    padding: 0.8rem;
  }

  .price {
    font-size: 1rem;
  }

  .btn-add {
    width: 100%;
    padding: 0.5rem;
    font-size: 0.85rem;
  }

  .cart-content {
    width: 96%;
    padding: 1.5rem;
    max-height: 95vh;
  }
}
/* =========================
   MENU MOBILE
========================= */

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--cor-dourado);
  color: var(--cor-dourado);
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 1.2rem;
  cursor: pointer;
}

/* MOBILE */
@media (max-width: 768px) {

  header {
    flex-wrap: wrap;
  }

  .menu-toggle {
    display: block;
  }

  .nav-categories {
    width: 100%;
    display: none;
    flex-direction: column;
    margin-top: 10px;
    background: var(--cinza-chumbo);
    padding: 10px;
    border-radius: 10px;
  }

  .nav-categories.open {
    display: flex;
  }

  .nav-categories button {
    width: 100%;
    text-align: left;
  }
}
/* =========================
   FOOTER
========================= */

.site-footer {
  background: var(--cinza-escuro);
  padding: 4rem 5% 2rem;
  margin-top: 4rem;
  border-top: 1px solid var(--cinza-claro);
}

.footer-content {
  max-width: 900px;
  margin: auto;
}

.site-footer h3 {
  font-family: 'Playfair Display', serif;
  color: var(--cor-dourado);
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
}

.site-footer ul {
  list-style: none;
  padding-left: 0;
  margin-bottom: 2rem;
}

.site-footer li {
  margin-bottom: 0.7rem;
  line-height: 1.6;
  color: #cfcfcf;
  position: relative;
  padding-left: 1.2rem;
}

.site-footer li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: var(--cor-dourado);
}

.footer-warning {
  margin-top: 1.5rem;
  padding: 1rem;
  background: rgba(212, 175, 55, 0.1);
  border-left: 4px solid var(--cor-dourado);
  font-weight: 500;
}

.footer-copy {
  margin-top: 2.5rem;
  font-size: 0.85rem;
  text-align: center;
  color: #888;
}
.welcome{
  padding-top: 2vh;
  text-align: center;
  letter-spacing: 0.5px;
}
/* =========================
   MODAL CARRINHO FIXO CORRETO
========================= */

#cart-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.cart-content {
  background: var(--cinza-chumbo);
  border-radius: 16px;
  width: 95%;
  max-width: 450px;
  max-height: 90vh;
  padding: 1.5rem;
  position: relative;

  display: flex;
  flex-direction: column;
}

.cart-header {
  margin-bottom: 0.5rem;
}

/* 🔥 AQUI ESTÁ A CORREÇÃO REAL */
.cart-items-container {
  flex: 1;
  min-height: 0;          /* impede expansão */
  overflow-y: auto;
  margin: 1rem 0;
  padding-right: 5px;
}

/* Scroll bonito */
.cart-items-container::-webkit-scrollbar {
  width: 6px;
}

.cart-items-container::-webkit-scrollbar-thumb {
  background: var(--cor-dourado);
  border-radius: 10px;
}

/* ITENS */
.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem 0;
  border-bottom: 1px solid #444;
}

.cart-item img {
  width: 60px;
  height: 60px;
  object-fit: contain;
  background: #111;
  border-radius: 8px;
}

.cart-item-info {
  flex: 1;
  font-size: 0.9rem;
}

.cart-item-sub {
  color: var(--cor-dourado);
  margin-top: 0.3rem;
}

/* FOOTER FIXO */
.cart-footer {
  border-top: 1px solid #444;
  padding-top: 1rem;
}

.cart-total {
  margin-bottom: 1rem;
  font-size: 1.1rem;
}

#checkoutForm {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#checkoutForm input,
#checkoutForm select {
  background: var(--cinza-escuro);
  border: 1px solid var(--cinza-claro);
  color: var(--cor-texto);
  padding: 0.8rem;
  border-radius: 8px;
}

.btn-checkout {
  background: var(--cor-dourado);
  color: #111;
  border: none;
  padding: 0.9rem;
  border-radius: 30px;
  font-weight: 600;
  cursor: pointer;
}
@media (max-width: 768px) {

  /* GRID DE PRODUTOS MAIS COMPACTO */
  .products-grid {
    grid-template-columns: repeat(2, 1fr); /* 2 colunas */
    gap: 0.5rem;                           /* menos espaço entre os cards */
    padding: 1rem 3% 2rem;                 /* padding menor */
  }

  /* CARD MAIS QUADRADO */
  .product-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    min-height: 0;          /* remove qualquer altura grande */
    height: auto;           /* altura automática */
    overflow: hidden;
  }

  /* IMAGEM DO CARD - altura proporcional */
  .product-img {
    width: 100%;
    height: 45vw;     /* reduz bastante a altura */
    object-fit: contain;
  }

  /* INFORMAÇÕES DO CARD - ocupa o restante */
  .product-info {
    padding: 0.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  /* BOTÕES EM COLUNA E MENOR */
  .card-buttons {
    flex-direction: column;
    gap: 4px;
  }

  .btn-add,
  .card-buttons button,
  .cart-buttons button {
    padding: 0.3rem 0.5rem;
    font-size: 0.75rem;
  }

  /* PREÇO MENOR */
  .price {
    font-size: 0.9rem;
  }
}
