/* ===== RESET BÁSICO ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

body {
  background-color: #fdf9f6;
  color: #5a463d;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* ===== CABEÇALHO ===== */
header {
  background: linear-gradient(90deg, #f9f2ee, #fdf9f6);
  color: #a26a5c;
  text-align: center;
  padding: 1.5rem;
  border-bottom: 2px solid #e4cdbb;
  box-shadow: 0px 2px 6px rgba(0,0,0,0.05);
}

header .logo {
  max-width: 140px;
  display: block;
  margin: 0 auto 10px auto;
  border-radius: 10px;
}

header h1 {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: #a26a5c;
  letter-spacing: 1px;
}

/* ===== CATÁLOGO ===== */
.catalog {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  padding: 1.5rem;
  gap: 1.5rem;
}

/* ===== PRODUTO ===== */
.product-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid #e8d8cb;
  box-shadow: 0px 4px 8px rgba(162,106,92,0.08);
  padding: 1rem;
  width: 250px;
  text-align: center;
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0px 6px 14px rgba(162,106,92,0.12);
}

.product-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  color: #a26a5c;
  margin-bottom: 0.4rem;
}

.product-card p {
  font-size: 0.9rem;
  color: #5a463d;
  margin: 0.3rem 0;
}

.product-card .price {
  font-weight: bold;
  color: #c49b7a;
  font-size: 1rem;
  margin-top: 0.5rem;
}

.add-btn {
  background: #a26a5c;
  color: #fff;
  border: none;
  padding: 0.6rem 1rem;
  margin-top: 0.5rem;
  cursor: pointer;
  border-radius: 20px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.add-btn:hover {
  background: #c49b7a;
  transform: scale(1.05);
}

/* ===== CARRINHO ===== */
.cart {
  position: fixed;
  right: 0;
  top: 0;
  width: 320px;
  height: 100%;
  background: #fffdfc;
  border-left: 2px solid #f0e2d6;
  box-shadow: -4px 0 12px rgba(0,0,0,0.05);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.cart h2 {
  color: #a26a5c;
  font-family: 'Playfair Display', serif;
  margin-bottom: 1rem;
}

.cart ul {
  flex: 1;
  list-style: none;
  overflow-y: auto;
  margin-bottom: 1rem;
}

.cart li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  border-bottom: 1px dashed #e8d8cb;
  padding: 6px 0;
}

.remove-btn {
  background: none;
  border: none;
  color: #d66a6a;
  font-size: 1rem;
  cursor: pointer;
}

.remove-btn:hover {
  color: #a30000;
}

#checkout-btn {
  background: #a26a5c;
  color: #fff;
  border: none;
  padding: 0.8rem;
  border-radius: 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

#checkout-btn:hover {
  background: #c49b7a;
}

/* ===== MODAL DE FINALIZAÇÃO ===== */
.modal {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background-color: rgba(0,0,0,0.6);
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.modal-content {
  background: #fffaf8;
  border-radius: 20px;
  padding: 25px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 15px rgba(162,106,92,0.2);
  animation: fadeIn 0.3s ease-in-out;
  position: relative;
}

#close-modal {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 22px;
  color: #a26a5c;
  cursor: pointer;
}

#close-modal:hover {
  color: #c49b7a;
}

.modal-content h2 {
  text-align: center;
  color: #a26a5c;
  font-family: 'Playfair Display', serif;
  margin-bottom: 10px;
}

.modal-content p {
  text-align: center;
  color: #5a463d;
  margin-bottom: 15px;
}

.modal-content label {
  display: block;
  font-weight: 600;
  color: #5a463d;
  margin-top: 10px;
  font-size: 0.9rem;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  margin-top: 6px;
  border-radius: 10px;
  border: 1px solid #e4cdbb;
  background: #fff;
  font-size: 1rem;
}

.modal-actions {
  display: flex;
  justify-content: space-between;
  margin-top: 20px;
}

.modal-actions button {
  flex: 1;
  margin: 0 5px;
  border: none;
  border-radius: 25px;
  padding: 10px 0;
  font-size: 1rem;
  cursor: pointer;
  transition: 0.3s ease;
}

#cancelar-btn {
  background: #e8d8cb;
  color: #5a463d;
}
#cancelar-btn:hover { background: #e0c8b5; }

#enviar-btn {
  background: #a26a5c;
  color: #fff;
}
#enviar-btn:hover {
  background: #c49b7a;
}

/* ===== RESPONSIVIDADE ===== */
@media(max-width: 768px){
  .catalog {
    flex-direction: column;
    align-items: center;
  }

  .cart {
    width: 100%;
    height: auto;
    position: relative;
    margin-top: 1rem;
  }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== IMAGEM DO PRODUTO ===== */
.product-image {
  width: 100%;
  height: 180px;
  overflow: hidden;
  border-radius: 12px;
  border: 1px solid #e8d8cb;
  margin-bottom: 10px;
  background-color: #fffaf8;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 12px;
}

.product-card:hover .product-image img {
  transform: scale(1.05);
}

.product-info {
  padding: 0.3rem 0.5rem;
}


.social-float {
  position: fixed;
  top: 50%;               /* centraliza verticalmente */
  left: 20px;             /* lateral esquerda */
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 900;
}

.social-float a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  background: #fff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
}

.social-float a:hover {
  transform: scale(1.1) translateY(-3px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

@media (max-width: 600px) {
  .social-float {
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
  }
  .social-float a {
    width: 44px;
    height: 44px;
  }
}
