/* assets/css/style.css */
:root {
  /* Cores definidas no plano */
  --off-white: #FAF7F2;
  --rose: #C0607A;
  --rose-light: #e6aab8;
  --sand: #E8DFD0;
  --text-dark: #2C2522;
  --text-light: #706863;
  --border: #D8CEBE;
  
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 8px 30px rgba(44, 37, 34, 0.08);
  --shadow-sm: 0 2px 10px rgba(44, 37, 34, 0.05);
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'DM Sans', sans-serif;
  background-color: var(--off-white);
  color: var(--text-dark);
  line-height: 1.5;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6, .serif {
  font-family: 'DM Serif Display', serif;
  font-weight: 400;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: transparent;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

/* Container padrão */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header / Navbar */
.header {
  position: fixed;
  top: 0;
  width: 100%;
  background: rgba(250, 247, 242, 0.9);
  backdrop-filter: blur(10px);
  z-index: 100;
  border-bottom: 1px solid rgba(216, 206, 190, 0.5);
  padding: 16px 0;
}

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

.logo {
  font-size: 28px;
  color: var(--rose);
}

.cart-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 99px;
  background: var(--sand);
  transition: transform 0.2s;
}
.cart-btn:hover {
  transform: scale(1.05);
}
.cart-count {
  background: var(--rose);
  color: white;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Botões */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 99px;
  font-weight: 600;
  transition: all 0.3s ease;
  font-size: 16px;
}

.btn-primary {
  background: var(--rose);
  color: white;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: #a84b63;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-dark);
}

.btn-outline:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* Hero Section */
.hero {
  padding-top: 120px;
  padding-bottom: 60px;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.hero .container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 56px;
  line-height: 1.1;
  margin-bottom: 24px;
}

.hero-text p {
  font-size: 18px;
  color: var(--text-light);
  margin-bottom: 32px;
}

.hero-image-wrap {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  max-width: 450px;
  margin: 0 auto;
}

.hero-image-wrap img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-badge {
  position: absolute;
  bottom: 24px;
  left: -24px;
  background: white;
  padding: 16px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  gap: 12px;
  animation: float 3s ease-in-out infinite;
}

.stars {
  color: #F59E0B;
}

/* Carrossel e Destaques */
.section {
  padding: 80px 0;
}

.section-title {
  text-align: center;
  font-size: 40px;
  margin-bottom: 48px;
}

/* Product Card */
.product-card {
  background: white;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: transform 0.3s;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}

.product-img {
  width: 100%;
  aspect-ratio: 1/1;
  object-fit: cover;
  background: var(--sand);
}

.product-img.img-esgotado {
  opacity: 0.6;
  filter: grayscale(100%) blur(2px);
}

.product-info {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category {
  font-size: 12px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 4px;
}

.product-title {
  font-size: 18px;
  font-weight: 500;
  margin-bottom: 12px;
}

.product-price {
  font-size: 20px;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 16px;
  margin-top: auto;
}

.badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.badge-esgotado { background: var(--border); color: var(--text-dark); }
.badge-novo { background: var(--rose); color: white; }

/* Categorias */
.categories {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  padding-bottom: 24px;
  scrollbar-width: none;
}
.categories::-webkit-scrollbar { display: none; }
.category-btn {
  padding: 12px 24px;
  border-radius: 99px;
  background: white;
  border: 1px solid var(--border);
  white-space: nowrap;
  font-weight: 500;
  transition: 0.2s;
}
.category-btn.active, .category-btn:hover {
  background: var(--rose);
  color: white;
  border-color: var(--rose);
}

/* Grid de Produtos */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 32px;
}

/* Carrinho Lateral */
.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  max-width: 100vw;
  height: 100vh;
  background: white;
  z-index: 1000;
  box-shadow: -10px 0 30px rgba(0,0,0,0.1);
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.cart-sidebar.open {
  right: 0;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 999;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.cart-overlay.open {
  display: block;
  opacity: 1;
}

.cart-header {
  padding: 24px;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cart-body {
  flex-grow: 1;
  overflow-y: auto;
  padding: 24px;
}

.cart-item {
  display: flex;
  gap: 16px;
  margin-bottom: 24px;
}

.cart-item-img {
  width: 80px;
  height: 80px;
  border-radius: 8px;
  object-fit: cover;
  background: var(--sand);
}

.cart-item-info {
  flex-grow: 1;
}

.cart-item-title {
  font-weight: 500;
  margin-bottom: 4px;
}

.cart-item-price {
  color: var(--rose);
  font-weight: 700;
}

.cart-item-remove {
  color: var(--text-light);
  font-size: 12px;
  text-decoration: underline;
  margin-top: 8px;
  display: inline-block;
}

.cart-footer {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--off-white);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 24px;
}

.whatsapp-btn {
  background: #25D366;
  color: white;
  width: 100%;
}
.whatsapp-btn:hover {
  background: #128C7E;
}

/* PDP Modal */
.pdp-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: 1000;
  display: none;
  opacity: 0;
  transition: opacity 0.3s;
}

.pdp-overlay.open {
  display: block;
  opacity: 1;
}

.pdp-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.95);
  background: white;
  z-index: 1001;
  width: 90%;
  max-width: 900px;
  height: 80vh;
  max-height: 600px;
  border-radius: var(--radius);
  box-shadow: 0 20px 40px rgba(0,0,0,0.2);
  display: none;
  opacity: 0;
  transition: all 0.3s;
  overflow: hidden;
}

.pdp-modal.open {
  display: flex;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.pdp-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: white;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  color: var(--text-dark);
}

.pdp-close:hover {
  background: var(--off-white);
  transform: scale(1.05);
}

.pdp-layout {
  display: flex;
  width: 100%;
  height: 100%;
}

.pdp-left {
  width: 50%;
  height: 100%;
  background: var(--off-white);
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Slider com Scroll Snap */
.pdp-slider {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.pdp-slider::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.pdp-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  scroll-snap-align: start;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--off-white);
}
.pdp-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* Evita que as fotos sejam cortadas */
}

/* Paginação com Dots Fluidos (Bullets) */
.pdp-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
  background: rgba(255, 255, 255, 0.4);
  padding: 6px 12px;
  border-radius: 99px;
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255, 255, 255, 0.5);
  transition: opacity 0.3s;
}
.pdp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(44, 37, 34, 0.3);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
.pdp-dot:hover {
  background: rgba(44, 37, 34, 0.6);
}
.pdp-dot.active {
  background: var(--rose);
  transform: scale(1.15);
  width: 16px;
  border-radius: 4px;
}

/* Setas de Navegação Premium */
.pdp-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(250, 247, 242, 0.95);
  border: 1px solid var(--border);
  color: var(--text-dark);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  box-shadow: var(--shadow-sm);
  transition: all 0.2s ease;
  font-size: 14px;
}
.pdp-arrow:hover {
  background: white;
  color: var(--rose);
  transform: translateY(-50%) scale(1.05);
  box-shadow: var(--shadow);
}
.pdp-arrow-left {
  left: 12px;
}
.pdp-arrow-right {
  right: 12px;
}

.pdp-right {
  width: 50%;
  padding: 40px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}

.pdp-title {
  font-size: 32px;
  margin-bottom: 8px;
}

.pdp-category {
  font-size: 14px;
  color: var(--text-light);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 24px;
}

.pdp-price {
  font-size: 28px;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 24px;
}

.pdp-desc {
  font-size: 16px;
  color: var(--text-light);
  margin-bottom: 32px;
  line-height: 1.6;
}

/* Responsividade */
@media (max-width: 768px) {
  .hero .container {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero-text h1 {
    font-size: 42px;
  }
  .hero-badge {
    left: 24px;
    right: 24px;
    bottom: -24px;
    justify-content: center;
  }
  .pdp-layout {
    flex-direction: column;
  }
  .pdp-modal {
    height: 90vh;
    max-height: 90vh;
  }
  .pdp-left {
    width: 100%;
    height: 52%;
  }
  .pdp-right {
    width: 100%;
    height: 48%;
    padding: 20px 24px;
  }
  .pdp-thumbnails {
    display: none !important;
  }
  .pdp-arrow {
    display: none !important;
  }
}

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

/* Galeria de Fotos Adicionais no PDP */
.pdp-thumbnails {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: var(--off-white);
  border-top: 1px solid var(--border);
  width: 100%;
  box-sizing: border-box;
  scrollbar-width: none; /* Firefox */
}
.pdp-thumbnails::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}
.pdp-thumb {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-sm);
  object-fit: cover;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
  flex-shrink: 0;
  opacity: 0.6;
}
.pdp-thumb:hover {
  opacity: 0.9;
}
.pdp-thumb.active {
  border-color: var(--rose);
  opacity: 1;
  transform: scale(1.05);
}

/* Seção Como Funciona */
.como-funciona-section {
  background: var(--off-white);
  position: relative;
  overflow: hidden;
  border-top: 1px solid rgba(216, 206, 190, 0.4);
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  position: relative;
  margin-top: 40px;
}

/* Adiciona linhas tracejadas entre os passos no desktop */
@media (min-width: 769px) {
  .steps-grid::before {
    content: '';
    position: absolute;
    top: 55px;
    left: 15%;
    right: 15%;
    height: 2px;
    border-top: 2px dashed var(--border);
    z-index: 1;
  }
}

.step-card {
  background: white;
  padding: 32px 24px;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  text-align: center;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
  border: 1px solid transparent;
}

.step-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--rose-light);
}

.step-icon-wrap {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--off-white);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px auto;
  position: relative;
  box-shadow: inset 0 2px 5px rgba(0,0,0,0.03);
  transition: all 0.3s ease;
}

.step-card:hover .step-icon-wrap {
  background: var(--rose);
  color: white;
  transform: rotate(8deg) scale(1.05);
}

.step-number {
  position: absolute;
  top: -4px;
  right: -4px;
  background: var(--rose);
  color: white;
  font-size: 11px;
  font-weight: 700;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  transition: all 0.3s ease;
}

.step-card:hover .step-number {
  background: var(--text-dark);
}

.step-card h3 {
  font-size: 20px;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* Seção Instagram Clean */
.instagram-section-clean {
  background: white;
  border-top: 1px solid rgba(216, 206, 190, 0.4);
  padding: 80px 0;
}

.instagram-badge {
  background: rgba(192, 96, 122, 0.1);
  color: var(--rose);
  padding: 6px 16px;
  border-radius: 99px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
  display: inline-block;
}

.instagram-clean-container {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.instagram-username:hover {
  opacity: 0.8;
}

.instagram-clean-btn {
  border-color: var(--rose) !important;
  color: var(--rose) !important;
  transition: all 0.3s ease !important;
  font-weight: 600 !important;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.instagram-clean-btn:hover {
  background: var(--rose) !important;
  color: white !important;
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.footer-instagram-link:hover {
  color: var(--rose) !important;
}

/* Alinhamento dos botões do Hero */
.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
}

.hero-buttons .btn {
  flex: 1;
  min-width: 180px;
  max-width: 220px;
  text-align: center;
  white-space: nowrap;
}

/* Responsividade de novas seções */
@media (max-width: 768px) {
  .steps-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  
  .step-card {
    padding: 24px 20px;
  }
  
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    width: 100%;
  }

  .hero-buttons .btn {
    width: 100%;
    max-width: 100%;
    flex: none;
  }
}



