/* ========================================
   RESET E VARIÁVEIS
======================================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta de Cores Feminina */
  --primary-color: #e91e63;
  --secondary-color: #f8bbd0;
  --accent-color: #9c27b0;
  --light-pink: #fce4ec;
  --nude: #f5e6d3;
  --lilac: #e1bee7;
  --dark-text: #333;
  --light-text: #666;
  --white: #ffffff;
  --shadow: rgba(0, 0, 0, 0.1);
  --shadow-hover: rgba(233, 30, 99, 0.3);

  /* Tipografia */
  --font-main: "Poppins", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;

  /* Espaçamentos */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 2rem;
  --spacing-lg: 3rem;
  --spacing-xl: 4rem;

  /* Transições */
  --transition-fast: 0.3s ease;
  --transition-medium: 0.5s ease;
}

body {
  font-family: var(--font-main);
  color: var(--dark-text);
  line-height: 1.6;
  background-color: var(--white);
  overflow-x: hidden;
}

/* Cursor de pincel APENAS para botões de carrinho e checkout */
.btn-add-to-cart,
.btn-checkout,
.cart-icon,
#cart-icon {
  cursor:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ctext y='24' font-size='24'%3E🖌️%3C/text%3E%3C/svg%3E"),
    pointer !important;
}

/* ========================================
   UTILITÁRIOS
======================================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

/* ========================================
   HEADER
======================================== */
.header {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--white);
  padding: var(--spacing-sm) 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 10px var(--shadow);
}

.header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  display: flex;
  align-items: center;
}

.logo-img {
  height: 50px;
  width: 50px;
  margin-right: 12px;
  border-radius: 8px;
  object-fit: cover;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  filter: contrast(1.1) brightness(1.05);
}

.logo h1 {
  font-size: 1.8rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.nav {
  display: flex;
  gap: var(--spacing-md);
}

.nav-link {
  color: var(--white);
  text-decoration: none;
  font-weight: 500;
  transition:
    transform var(--transition-fast),
    opacity var(--transition-fast);
  position: relative;
}

.nav-link::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: width var(--transition-fast);
}

.nav-link:hover {
  opacity: 0.8;
}

.nav-link:hover::after {
  width: 100%;
}

/* Menu Mobile */
.menu-toggle {
  display: none;
  flex-direction: column;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-xs);
}

.menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--white);
  margin: 3px 0;
  transition: var(--transition-fast);
  border-radius: 2px;
}

/* ========================================
   BANNER PRINCIPAL (HERO)
======================================== */
.hero {
  background:
    linear-gradient(rgba(233, 30, 99, 0.75), rgba(156, 39, 176, 0.75)),
    url("https://images.unsplash.com/photo-1596462502278-27bfdc403348?w=1600&h=900&fit=crop&q=80")
      center/cover no-repeat;
  padding: var(--spacing-xl) var(--spacing-sm);
  text-align: center;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background-attachment: fixed;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
    circle at center,
    transparent 0%,
    rgba(0, 0, 0, 0.2) 100%
  );
  pointer-events: none;
}

.hero-content {
  max-width: 700px;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 3rem;
  font-weight: 700;
  color: var(--white);
  margin-bottom: var(--spacing-sm);
  line-height: 1.2;
  text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--white);
  margin-bottom: var(--spacing-md);
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3);
}

/* ========================================
   BOTÕES
======================================== */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 600;
  transition: all var(--transition-fast);
  border: none;
  cursor: pointer;
  font-size: 1rem;
}

.btn-primary {
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: var(--white);
  box-shadow: 0 4px 15px var(--shadow);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-buy {
  background-color: var(--primary-color);
  color: var(--white);
  width: 100%;
  margin-top: var(--spacing-sm);
}

.btn-buy:hover {
  background-color: var(--accent-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px var(--shadow-hover);
}

.btn-whatsapp {
  background-color: #25d366;
  color: var(--white);
  margin-top: var(--spacing-sm);
}

.btn-whatsapp:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
}

/* ========================================
   SEÇÕES DE PRODUTOS
======================================== */
.products-section {
  padding: var(--spacing-xl) 0;
  background-color: var(--white);
}

.products-section-alt {
  background-color: var(--light-pink);
}

.section-title {
  font-size: 2.5rem;
  text-align: center;
  color: var(--primary-color);
  margin-bottom: var(--spacing-sm);
  font-weight: 700;
}

.section-subtitle {
  text-align: center;
  color: var(--light-text);
  font-size: 1.2rem;
  margin-bottom: var(--spacing-lg);
}

/* ========================================
   GRID DE PRODUTOS
======================================== */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-md);
  margin-top: var(--spacing-md);
}

/* ========================================
   CARD DE PRODUTO
======================================== */
.product-card {
  background-color: var(--white);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px var(--shadow);
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 25px var(--shadow-hover);
}

.product-image {
  width: 100%;
  height: 300px;
  overflow: hidden;
  background-color: var(--nude);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-image img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Mudado de cover para contain - mostra imagem completa */
  object-position: center;
  transition: transform var(--transition-medium);
  display: block;
}

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

.product-info {
  padding: var(--spacing-sm);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-name {
  font-size: 1.3rem;
  color: var(--dark-text);
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.product-price {
  font-size: 1.5rem;
  color: var(--primary-color);
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
  flex-grow: 1;
}

/* ========================================
   FOOTER
======================================== */
.footer {
  background: linear-gradient(135deg, var(--dark-text), #555);
  color: var(--white);
  padding: var(--spacing-lg) 0 var(--spacing-sm);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-md);
}

.footer-section h3,
.footer-section h4 {
  margin-bottom: var(--spacing-sm);
  color: var(--secondary-color);
}

.footer-section p {
  margin-bottom: var(--spacing-xs);
  line-height: 1.8;
}

.footer-bottom {
  text-align: center;
  padding-top: var(--spacing-md);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* ========================================
   RESPONSIVIDADE
======================================== */

/* Tablets */
@media (max-width: 768px) {
  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .section-title {
    font-size: 2rem;
  }

  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-sm);
  }

  .nav {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  /* Menu Mobile Ativo */
  .nav.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: linear-gradient(
      135deg,
      var(--primary-color),
      var(--accent-color)
    );
    padding: var(--spacing-sm);
    gap: var(--spacing-sm);
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero {
    padding: var(--spacing-md) var(--spacing-sm);
    min-height: 400px;
  }

  .hero-title {
    font-size: 1.8rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .section-title {
    font-size: 1.8rem;
  }

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

  .logo h1 {
    font-size: 1.4rem;
  }

  .product-image {
    height: 250px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }
}

/* ========================================
   ANIMAÇÕES
======================================== */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.product-card {
  animation: fadeIn 0.6s ease-out;
}

/* ========================================
   SCROLL SUAVE
======================================== */
html {
  scroll-behavior: smooth;
}

/* ========================================
   LOADING STATES
======================================== */
img {
  background-color: var(--nude);
}

/* ========================================
   CARRINHO DE COMPRAS
======================================== */

/* Ícone do Carrinho */
.cart-icon {
  position: relative;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 50px;
  cursor: pointer;
  font-size: 1.5rem;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px var(--shadow);
  margin-left: 1rem;
}

.cart-icon:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px var(--shadow-hover);
}

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: #ff3d00;
  color: white;
  border-radius: 50%;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: bold;
  border: 2px solid white;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
}

/* Modal do Carrinho */
.cart-modal {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  visibility: hidden;
  opacity: 0;
  transition: all var(--transition-fast);
}

.cart-modal.active {
  visibility: visible;
  opacity: 1;
}

.cart-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.cart-sidebar {
  position: absolute;
  top: 0;
  right: -100%;
  width: 100%;
  max-width: 450px;
  height: 100%;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  transition: right var(--transition-fast);
  display: flex;
  flex-direction: column;
}

.cart-modal.active .cart-sidebar {
  right: 0;
}

/* Cabeçalho do Carrinho */
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
}

.cart-header h2 {
  font-size: 1.5rem;
  margin: 0;
}

.cart-close {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 1.8rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-close:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: rotate(90deg);
}

/* Corpo do Carrinho */
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.5rem;
}

.cart-empty {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--light-text);
}

.cart-empty p {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.cart-empty span {
  font-size: 0.95rem;
}

/* Itens do Carrinho */
.cart-items {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.cart-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  background: var(--light-pink);
  border-radius: 12px;
  animation: slideIn 0.3s ease;
}

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

.cart-item-image {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.cart-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.cart-item-name {
  font-weight: 600;
  color: var(--dark-text);
  font-size: 0.95rem;
}

.cart-item-price {
  color: var(--primary-color);
  font-weight: 700;
  font-size: 1.1rem;
}

.cart-item-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: auto;
}

.cart-item-qty-control {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: white;
  border-radius: 8px;
  padding: 0.3rem;
}

.cart-item-qty-btn {
  background: var(--primary-color);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.cart-item-qty-btn:hover {
  background: var(--accent-color);
  transform: scale(1.1);
}

.cart-item-qty-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: scale(1);
}

.cart-item-qty {
  font-weight: 600;
  color: var(--dark-text);
  min-width: 30px;
  text-align: center;
}

.cart-item-remove {
  background: #ff3d00;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: all var(--transition-fast);
  margin-left: auto;
}

.cart-item-remove:hover {
  background: #d32f2f;
  transform: scale(1.05);
}

/* Rodapé do Carrinho */
.cart-footer {
  border-top: 2px solid var(--light-pink);
  padding: 1.5rem;
  background: white;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding: 1rem;
  background: var(--light-pink);
  border-radius: 8px;
}

.cart-total span:first-child {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--dark-text);
}

.cart-total-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.btn-whatsapp-cart {
  width: 100%;
  background: linear-gradient(135deg, #25d366, #128c7e);
  color: white;
  border: none;
  padding: 1rem;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-bottom: 0.8rem;
}

.btn-whatsapp-cart:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

.btn-clear-cart {
  width: 100%;
  background: transparent;
  color: var(--light-text);
  border: 2px solid #ddd;
  padding: 0.8rem;
  border-radius: 12px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-clear-cart:hover {
  background: #f5f5f5;
  border-color: #bbb;
}

/* Botão Adicionar ao Carrinho */
.btn-add-to-cart {
  width: 100%;
  background: linear-gradient(
    135deg,
    var(--primary-color),
    var(--accent-color)
  );
  color: white;
  border: none;
  padding: 0.9rem 1.5rem;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
  box-shadow: 0 4px 12px var(--shadow);
}

.btn-add-to-cart:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px var(--shadow-hover);
}

.btn-add-to-cart:active {
  transform: scale(0.98);
}

/* Animação ao adicionar produto */
@keyframes addToCartAnimation {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

.btn-add-to-cart.adding {
  animation: addToCartAnimation 0.3s ease;
}

/* Responsivo */
@media (max-width: 768px) {
  .cart-icon {
    padding: 0.6rem 1rem;
    font-size: 1.3rem;
    margin-left: 0.5rem;
  }

  .cart-sidebar {
    max-width: 100%;
  }

  .cart-item {
    flex-direction: row;
  }

  .cart-item-image {
    width: 70px;
    height: 70px;
  }

  .cart-item-name {
    font-size: 0.9rem;
  }

  .cart-item-price {
    font-size: 1rem;
  }
}
