/* ============================= */
/* IMPORTAÇÕES (mantidas)        */
/* ============================= */
@import url('./header.css');
@import url('./components/Footer.css');
@import url('./components/pages/Home.css');
@import url('./components/pages/Clothing.css');
@import url('./components/pages/Single_product.css');
@import url('./components/pages/Cart.css');
@import url('./components/pages/Wishlist.css');
@import url('./components/dashboard/simulador-preco.css');
@import url('./components/dashboard/estoque.css');

/* ============================= */
/* VARIÁVEIS – PALETA NEUTRA LUXO */
/* ============================= */
:root {
  --font-assinatura: 'Allura', cursive;
  --font-logo: 'Hugh is Life Personal Use', sans-serif;
  --font-logo1: 'Mollani', sans-serif;
  --font-titulo: 'Playfair Display', serif;
  --font-texto: 'Inter', sans-serif;

  /* Nova paleta – luxo neutro */
  --bg-luxo: #f9f9f9;              /* off-white */
  --text-luxo: #222;                /* cinza chumbo */
  --accent-luxo: #b76e8a;            /* rosa queimado (uso pontual) */
  --border-luxo: #e0e0e0;
  --surface: #ffffff;
  --muted: rgba(0,0,0,0.55);
  --hover-bg: rgba(0,0,0,0.04);
  --shadow-strong: 0 12px 30px rgba(15,23,42,0.12);
  --border-strong: rgba(0,0,0,0.08);
}

/* ============================= */
/* TIPOGRAFIA EDITORIAL DE LUXO  */
/* ============================= */
h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.section-title,
.category-title,
.footer-heading {
  text-transform: uppercase !important;
  letter-spacing: 1.5px !important;
  font-weight: 300 !important;
}

/* Exceções – textos em caixa normal */
.avaliacao-nome,
.avaliacao-msg,
.product-card-custom h6,
.footer-links a,
.footer-about,
.newsletter-subtitle,
p,
.card-body,
.nav-link,
.dropdown-item {
  text-transform: none !important;
  letter-spacing: normal !important;
  font-weight: 400 !important;
}

body {
  background: var(--bg-luxo) !important;
  color: var(--text-luxo) !important;
  font-family: var(--font-texto);
}

/* ============================= */
/* NEUTRALIZAÇÃO DOS TEMAS       */
/* ============================= */
.theme-marrom-luxo,
.theme-azul-bebe,
.theme-teal-pearlescent {
  background: var(--bg-luxo) !important;
  color: var(--text-luxo) !important;
  --accent: var(--accent-luxo);
  --accent-strong: var(--accent-luxo);
  --text-color: var(--text-luxo);
  --bg-page: var(--bg-luxo);
  --mega-bg: #ffffff;
}

/* ============================= */
/* BOTÕES DE LUXO – ROUNDED-0    */
/* ============================= */
.btn {
  border-radius: 0 !important;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  font-weight: 400;
  padding: 0.75rem 2rem;
  transition: all 0.3s ease;
}

/* Ghost button (borda fina preta) */
.btn-outline-luxo,
.btn-outline-light,
.btn-outline-secondary,
.btn-mood,
.btn-size-guide,
.subscribe-btn {
  background: transparent !important;
  border: 1px solid var(--text-luxo) !important;
  color: var(--text-luxo) !important;
}
.btn-outline-luxo:hover,
.btn-outline-light:hover,
.btn-outline-secondary:hover,
.btn-mood:hover,
.btn-size-guide:hover,
.subscribe-btn:hover {
  background: var(--text-luxo) !important;
  color: #fff !important;
}

/* Sólido preto */
.btn-solid-luxo,
.btn-newsletter {
  background: var(--text-luxo) !important;
  border: none !important;
  color: #fff !important;
}
.btn-solid-luxo:hover,
.btn-newsletter:hover {
  background: #000 !important;
}

/* Botão com acento rosa (uso raro) */
.btn-accent-luxo {
  background: var(--accent-luxo) !important;
  border: none !important;
  color: #fff !important;
}
.btn-accent-luxo:hover {
  background: #9e5c7a !important;
}

/* ============================= */
/* CARDS DE CATEGORIA – EDITORIAL */
/* ============================= */
.category-grid-section .img-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3 / 4;          /* proporção 3:4 */
  width: 100%;
  height: auto;
}

.category-grid-section .img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}

.category-grid-section .img-wrapper:hover img {
  transform: scale(1.05);
}

/* Overlay com gradiente suave (sem caixa sólida) */
.category-grid-section .overlay-box {
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 70%);
  padding: 2rem 1rem 1rem;
  margin: 0;
  display: block;
  width: 100%;
  text-align: left;
  backdrop-filter: none;
  position: absolute;
  bottom: 0;
  left: 0;
}

.category-grid-section .category-title {
  color: #fff;
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.3);
}

/* Link "shop now" discreto */
.category-grid-section .shop-link {
  color: rgba(255,255,255,0.7);
  font-size: 0.8rem;
  text-decoration: none;
  border-bottom: 1px solid rgba(255,255,255,0.3);
  padding-bottom: 2px;
  transition: color 0.3s, border-color 0.3s;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-weight: 300;
  display: inline-block;
  margin-top: 0.25rem;
}
.category-grid-section .shop-link:hover {
  color: #fff;
  border-bottom-color: #fff;
}

/* ============================= */
/* ESPAÇAMENTO – DOBRO DE PADDING */
/* ============================= */
section,
.container-fluid.py-5,
.best-sellers-section,
#lancamentos-section,
.benefits-section,
.newsletter-section,
.section-avaliacoes,
.category-grid-section,
.size-guide-section {
  padding-top: 6rem !important;
  padding-bottom: 6rem !important;
}

/* Remove duplicações internas */
.container-fluid.py-5 .container-fluid.py-5 {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* ============================= */
/* DEMAIS ESTILOS ORIGINAIS      */
/* ============================= */

/* --- Cards de produto (geral) --- */
.product-card .card-img-top {
  width: 100%;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 8px 8px 0 0;
}

.card.product {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.card .img-wrap {
  width: 100%;
  flex: 0 0 auto;
  border-radius: 8px 8px 0 0;
  overflow: hidden;
}

.product-img {
  width: 100%;
  display: block;
  aspect-ratio: 4 / 5;
  height: auto;
  object-fit: cover;
  object-position: center center;
  border-radius: 0;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.card .card-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: .75rem;
}

.card .card-title {
  font-size: 1rem;
  margin-bottom: .375rem;
  color: var(--text-luxo);
}

.card .card-body p {
  margin-bottom: .25rem;
  font-weight: 600;
}

/* Fallback para aspect-ratio */
@supports not (aspect-ratio: 1/1) {
  .product-img { height: 360px; }
  @media (max-width: 991.98px) { .product-img { height: 300px; } }
  @media (max-width: 767.98px) { .product-img { height: 220px; } }
}

.row.g-3 > .col-6 > .card.product {
  display: flex;
  flex-direction: column;
}

.img-wrap {
  border-radius: 8px;
}

.card.product .img-wrap .product-img {
  transition: transform .35s ease;
}

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

/* --- Seções específicas da Home --- */
/* Best Sellers */
.bg-dark-gradient {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
}

.product-card-custom img {
  aspect-ratio: 3/4;
  object-fit: cover;
}

.best-sellers-section h2 {
  letter-spacing: 1px;
}

/* Lançamentos */
.lanc-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #e91e63;
  color: #fff;
  padding: 6px 8px;
  font-size: .75rem;
  font-weight: 700;
  border-radius: 2px;
  z-index: 2;
}

/* Efeito hover com troca de imagem */
.product-image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 3/4;
}

.product-image-wrapper img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: opacity 0.3s ease;
}

.product-image-wrapper .img-front {
  opacity: 1;
  z-index: 2;
}

.product-image-wrapper .img-back {
  opacity: 0;
  z-index: 1;
}

.product-image-wrapper:hover .img-front {
  opacity: 0;
}

.product-image-wrapper:hover .img-back {
  opacity: 1;
}

/* --- Seção de diferenciais (benefits) --- */
.benefits-section {
  background-color: var(--text-luxo);
  color: #fff;
  font-family: 'Inter', sans-serif;
}

.benefits-section .bi {
  font-size: 2.5rem;
  line-height: 1.2;
  color: #fff;
}

.benefits-section .benefit-title {
  font-weight: 300;
  font-size: 1.1rem;
  letter-spacing: 1.5px;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.benefits-section .benefit-subtitle {
  font-size: 0.9rem;
  font-weight: 300;
  opacity: 0.95;
  max-width: 250px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .benefits-section .benefit-subtitle {
    max-width: 280px;
  }
}

/* --- Newsletter Section --- */
.newsletter-section {
  background: var(--bg-luxo);
}

.newsletter-card {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
  border-radius: 0;
  box-shadow: 0 15px 30px rgba(0,0,0,0.1);
  padding: 2rem;
}

.newsletter-title {
  color: var(--text-luxo);
  font-family: var(--font-titulo);
  font-weight: 300;
  font-size: 2.2rem;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}

.newsletter-subtitle {
  color: var(--text-luxo);
  font-size: 1.1rem;
  line-height: 1.5;
}

.newsletter-input {
  border: 1px solid var(--border-luxo);
  background: white;
  padding: 0.75rem 1rem 0.75rem 3rem;
  border-radius: 0;
  width: 100%;
}

.newsletter-input:focus {
  border-color: var(--text-luxo);
  box-shadow: 0 0 0 0.2rem rgba(34, 34, 34, 0.25);
  outline: none;
}

.newsletter-image {
  border-radius: 0;
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
  max-height: 450px;
  object-fit: cover;
  width: 100%;
}

.image-caption {
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  border-radius: 0;
  padding: 1rem;
  color: white;
  font-style: italic;
}

.newsletter-legal a {
  color: var(--accent-luxo);
  text-decoration: underline;
}
.newsletter-legal a:hover {
  color: #9e5c7a;
}

/* --- Depoimentos (avaliações) --- */
.avaliacao-card {
  background: #fff;
  border-radius: 0;
  padding: 1.5rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  height: 100%;
}

.avaliacao-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

.avatar {
  width: 48px;
  height: 48px;
  border-radius: 0;
  background: var(--accent-luxo);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.2rem;
}

.avaliacao-info {
  flex: 1;
}

.avaliacao-nome {
  font-weight: 600;
  display: block;
}

.avaliacao-data {
  font-size: 0.8rem;
  color: #666;
  margin: 0;
}

.avaliacao-msg {
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.avaliacao-rating {
  color: #ffc107;
  font-size: 1.1rem;
}

/* Mobile carousel (Swiper) */
.avaliacoes-swiper .swiper {
  padding-bottom: 2rem;
}

.swiper-controls {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
}

.reviews-prev,
.reviews-next {
  cursor: pointer;
  font-size: 1.5rem;
  line-height: 1;
  user-select: none;
}

/* --- Mood cards (Shop by mood) --- */
.mood-card {
  position: relative;
  height: 400px;
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.mood-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 30px rgba(0,0,0,0.2);
}
.mood-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.mood-card:hover img {
  transform: scale(1.05);
}
.mood-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: white;
  padding: 2rem 1rem 1rem;
  text-align: center;
}
.mood-overlay h3 {
  font-family: var(--font-titulo);
  font-size: 2rem;
  font-weight: 300;
  margin-bottom: 0.25rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.mood-overlay p {
  font-family: var(--font-texto);
  font-size: 1rem;
  opacity: 0.9;
  margin-bottom: 0.5rem;
}

/* --- Guia de medidas --- */
.size-guide-section {
  background-color: var(--bg-luxo);
  padding: 3rem 0;
  border-radius: 0;
  margin: 2rem 0;
}
.size-guide-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.size-guide-icon {
  font-size: 4rem;
  color: var(--text-luxo);
  background: rgba(255,255,255,0.5);
  width: 100px;
  height: 100px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.size-guide-text {
  flex: 1;
  min-width: 250px;
}
.size-guide-text h2 {
  font-family: var(--font-titulo);
  font-size: 2.2rem;
  font-weight: 300;
  color: var(--text-luxo);
  margin-bottom: 0.5rem;
}
.size-guide-text p {
  font-size: 1.1rem;
  color: var(--text-luxo);
  opacity: 0.8;
}

/* --- Instagram section (mock) --- */
.instagram-section {
  background: var(--bg-luxo);
  padding: 3rem 0;
}
.insta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 15px;
  margin-top: 2rem;
}
.insta-item {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.insta-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.insta-item:hover img {
  transform: scale(1.1);
}
.insta-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
  color: white;
}
.insta-item:hover .insta-overlay {
  opacity: 1;
}
.insta-overlay i {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}
.insta-overlay span {
  background: white;
  color: var(--text-luxo);
  padding: 0.4rem 1rem;
  border-radius: 0;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s;
}
.insta-overlay span:hover {
  background: var(--accent-luxo);
  color: white;
}
@media (max-width: 768px) {
  .insta-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ============================= */
/* UTILITÁRIOS DIVERSOS          */
/* ============================= */
hr {
  opacity: 0.2;
  margin: 2rem 0;
}

/* ===== RESPONSIVIDADE ===== */
@media (max-width: 768px) {
  .carousel-item img {
    max-height: 300px;
    object-fit: cover;
    width: 100%;
  }
  .carousel-control-prev-icon,
  .carousel-control-next-icon {
    width: 30px;
    height: 30px;
  }
  .carousel-indicators {
    position: relative;
    bottom: auto;
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .carousel {
    padding-bottom: 10px;
  }
}

/* ============================================ */
/* BOTÃO WHATSAPP FLUTUANTE                      */
/* ============================================ */

.whatsapp-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 1040;
  background-color: #25D366;
  color: #fff;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

/* Efeito de pulso suave */
.whatsapp-float::before {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #25D366;
  border-radius: 50%;
  opacity: 0.7;
  animation: pulse 1.8s infinite;
  z-index: -1;
}

@keyframes pulse {
  0% {
    transform: scale(1);
    opacity: 0.7;
  }
  70% {
    transform: scale(1.2);
    opacity: 0;
  }
  100% {
    transform: scale(1.2);
    opacity: 0;
  }
}

/* Hover: sobe levemente */
.whatsapp-float:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}

/* Ajuste para mobile: mais espaço inferior */
@media (max-width: 768px) {
  .whatsapp-float {
    bottom: 16px;
    right: 16px;
    width: 48px;
    height: 48px;
    font-size: 24px;
  }
}

main {
  padding-top: 140px; /* fallback aproximado – será sobrescrito pelo JS */
}

/* ============================================ */
/* MOBILE: menu principal inline abaixo da busca */
/* ============================================ */
@media (max-width: 991.98px) {
  /* Garante que o menu principal seja flexível em linha */
  .navbar-nav.main-menu {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    gap: 1.5rem !important;
    flex-wrap: wrap !important;
    margin-top: 1rem !important;
    padding: 0.5rem 0 !important;
  }

  .navbar-nav.main-menu .nav-link {
    font-size: 0.9rem;
    padding: 0.25rem 0;
    color: #fff !important; /* mantém a cor branca do navbar rosa */
  }

  /* Ajusta o espaçamento dos utilitários para não ficar colado */
  .utils-menu {
    margin-top: 1rem;
    margin-bottom: 0.5rem;
  }

  /* ===== CORREÇÃO: Remove padding-top do main e torna header relativo no mobile ===== */
  main {
    padding-top: 0 !important;
  }
  header {
    position: relative;
  }
}