/* ===========================
    RESET E VARIÁVEIS MODERNAS
   =========================== */
:root {
  --cream: #fefaf6;
  --off-white: #f8f5f2;
  --beige: #f0eae3;
  --taupe: #e8dfd6;
  --terracotta: #d4b8a4;
  --clay: #c49a7a;
  --brown: #a78a72;
  --dark-brown: #8a725c;

  --text-dark: #5a4a3a;
  --text-medium: #7a6a5a;
  --text-light: #9a8a7a;

  --gradient-cream: linear-gradient(135deg, #fefaf6 0%, #f0eae3 100%);
  --gradient-warm: linear-gradient(135deg, #f8f5f2 0%, #e8dfd6 100%);
  --gradient-terracotta: linear-gradient(135deg, #d4b8a4 0%, #c49a7a 100%);

  --shadow-soft: 0 8px 32px rgba(90, 74, 58, 0.08);
  --shadow-medium: 0 12px 40px rgba(90, 74, 58, 0.12);
  --shadow-strong: 0 20px 60px rgba(90, 74, 58, 0.15);
}

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

html,
body {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: 'Inter', sans-serif;
  color: var(--text-dark);
  background: var(--gradient-cream);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3,
h4 {
  font-family: 'Playfair Display', serif;
  color: var(--text-dark);
  font-weight: 600;
  line-height: 1.2;
}

/* ===========================
   HEADER
   =========================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  background: rgba(254, 250, 246, 0.85);
  border-bottom: 1px solid rgba(212, 184, 164, 0.2);
  height: 120px;
  display: flex;
  align-items: center;
  transition: all 0.3s ease;
}

.site-header.scrolled {
  background: rgba(254, 250, 246, 0.95);
  box-shadow: var(--shadow-soft);
}

.header-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
}

.logo-img {
  width: auto;
  height: 320px;
  object-fit: contain;
  transform: translateY(5px);
  margin-left: -12px;
}

.menu-right {
  display: flex;
  gap: 24px;
  list-style: none;
}

.nav a {
  color: var(--text-medium);
  text-decoration: none;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 12px;
  transition: all 0.3s ease;
}

.nav a:hover {
  color: var(--text-dark);
  background: rgba(212, 184, 164, 0.12);
  transform: translateY(-2px);
}

/* ===========================
   SEÇÕES GERAIS
   =========================== */

.section {
  padding: 100px 0;
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s cubic-bezier(0.2, 0.9, 0.2, 1);
}

.section.in-view {
  opacity: 1;
  transform: translateY(0);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h3 {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-medium);
  font-size: 1.1rem;
}

/* ===========================
   HERO
   =========================== */

.hero {
  background: var(--gradient-warm);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  position: relative;
  z-index: 2;
}

.hero-content {
  max-width: 800px;
}

.hero h2 {
  font-size: 3.5rem;
  margin-bottom: 24px;
  line-height: 1.1;
}

.brand-highlight {
  background: linear-gradient(135deg, var(--text-dark) 0%, var(--clay) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ===========================
   COLEÇÃO
   =========================== */

.collection {
  background: var(--off-white);
}

.collection-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.collection-card {
  background: var(--cream);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 184, 164, 0.2);
}

.collection-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--shadow-strong);
}

.product-image {
  width: 100%;
  height: 350px;
  object-fit: cover;
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
  transition: transform 0.4s ease;
}

.collection-card:hover .product-image {
  transform: scale(1.05);
}

.card-content {
  padding: 24px;
}

.product-description {
  color: var(--text-medium);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  color: var(--clay);
  font-weight: 700;
  margin-bottom: 20px;
}

.btn-buy {
  display: inline-block;
  width: 100%;
  text-align: center;
  padding: 14px 25px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration: none;
  background: var(--terracotta);
  color: var(--cream);
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: none;
}

.btn-buy:hover {
  background: var(--clay);
  color: white;
  transform: translateY(-3px);
  box-shadow: var(--shadow-medium);
}

/* feedback leve quando adiciona ao carrinho */
.btn-add-cart.added-feedback {
  transform: scale(0.97);
  opacity: 0.9;
}

/* ===========================
   INSTAGRAM
   =========================== */

.instagram {
  background: var(--gradient-cream);
}

.insta-wrapper {
  display: flex;
  align-items: center;
  gap: 16px;
  position: relative;
  margin-bottom: 30px;
}

.insta-nav {
  display: grid;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.9);
  width: 48px;
  height: 48px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
}

.insta-nav.left {
  position: absolute;
  left: -20px;
}

.insta-nav.right {
  position: absolute;
  right: -20px;
}

.insta-nav i {
  font-size: 1.1rem;
  color: var(--text-medium);
}

.insta-nav:hover {
  transform: translateY(-2px);
  background: var(--clay);
}

.insta-nav:hover i {
  color: #fff;
}

.insta-scroll {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 20px 10px;
  scroll-behavior: smooth;
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
  flex: 1;
}

.insta-scroll::-webkit-scrollbar {
  display: none;
}

/* WebKit (Chrome, Safari, Edge) */
.insta-scroll::-webkit-scrollbar {
  display: none;
}

.insta-versality-off {
  background-image: url('./img/versality-off.jpg');
}

.insta-celine-vermelho {
  background-image: url('./img/celine-vermelho.jpg');
}

.insta-celine-preto {
  background-image: url('./img/celine-preto.jpg');
}

.insta-celine-mocca {
  background-image: url('./img/celine-mocca.jpg');
}

.insta-scroll::-webkit-scrollbar {
  display: none;
}

.insta-item {
  min-width: 280px;
  height: 280px;
  border-radius: 20px;
  overflow: hidden;
  position: relative;
  background: var(--beige);
  flex: 0 0 auto;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-soft);
}

.insta-item:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: var(--shadow-strong);
}

.insta-image {
  width: 100%;
  height: 100%;
  background-size: 100%;
  background-position: top;
  background-repeat: no-repeat;
}

.insta-overlay {
  position: absolute;
  inset: 0;
  background: rgba(90, 74, 58, 0.7);
  display: grid;
  place-items: center;
  opacity: 0;
  transition: all 0.3s ease;
}

.insta-item:hover .insta-overlay {
  opacity: 1;
}

.insta-overlay i {
  color: white;
  font-size: 2rem;
  transform: scale(0.8);
  transition: all 0.3s ease;
}

.insta-item:hover .insta-overlay i {
  transform: scale(1);
}

.insta-cta {
  text-align: center;
  margin-top: 12px;
}

.insta-cta p {
  display: inline-flex;
  gap: 8px;
  align-items: baseline;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(212, 184, 164, 0.18);
  color: var(--text-dark);
}

.insta-cta a {
  color: var(--clay);
  font-weight: 700;
  text-decoration: none;
}

.insta-cta a:hover {
  text-decoration: underline;
}

/* ===========================
   CADASTRO NEWSLETTER
   =========================== */

.cadastro {
  background: var(--off-white);
}

.cadastro-card {
  background: var(--cream);
  border-radius: 24px;
  padding: 50px;
  text-align: center;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(212, 184, 164, 0.2);
  max-width: 640px;
  margin: 0 auto;
}

.card-header h4 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.card-header p {
  color: var(--text-medium);
  font-size: 1.05rem;
  margin-bottom: 26px;
}

.newsletter-form {
  margin-bottom: 22px;
}

.input-group {
  display: flex;
  gap: 12px;
  max-width: 420px;
  margin: 0 auto;
}

.input-group input {
  flex: 1;
  padding: 16px 20px;
  border: 1px solid rgba(212, 184, 164, 0.3);
  border-radius: 50px;
  background: #fff;
  color: var(--text-dark);
  font-size: 1rem;
  transition: all .2s ease;
}

.input-group input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 3px rgba(212, 184, 164, 0.15);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: .2s;
}

.btn-submit {
  background: var(--gradient-terracotta);
  color: #fff;
}

.btn-submit:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

.form-msg {
  margin-top: 12px;
  min-height: 20px;
  font-size: .96rem;
}

.benefits {
  display: flex;
  justify-content: center;
  gap: 26px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.benefit {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(212, 184, 164, .12);
  border-radius: 999px;
  color: var(--text-medium);
}

.benefit i {
  color: var(--clay);
}

/* ===========================
   FOOTER
   =========================== */

.site-footer {
  background: var(--text-dark);
  color: var(--cream);
  padding: 60px 0 30px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 50px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 2rem;
  margin-bottom: 8px;
  color: var(--cream);
}

.footer-brand p {
  color: var(--terracotta);
  font-style: italic;
}

.footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.contact-info h4,
.social-links h4 {
  color: var(--cream);
  margin-bottom: 18px;
  font-size: 1.1rem;
}

.contact-link {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--terracotta);
  text-decoration: none;
  margin-bottom: 10px;
  transition: color .2s;
}

.contact-link:hover {
  color: var(--cream);
}

.contact-link i {
  width: 16px;
}

.social-icons {
  display: flex;
  gap: 15px;
}

.footer-ig {
  font-size: 30px;
  color: var(--clay);
  transition: .3s;
}

.footer-ig:hover {
  color: #fff;
  transform: translateY(-3px);
}

.ig-svg {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(212, 184, 164, 0.14);
  text-decoration: none;
  transition: all .2s;
}

.ig-svg:hover {
  background: var(--gradient-terracotta);
  transform: translateY(-2px);
}

/* ===========================
   POPUP BASE (OVERLAY + CARD)
   =========================== */

.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s ease, visibility .35s ease;
  -webkit-backdrop-filter: blur(8px);
  /* ✅ PRIMEIRO: Safari/iOS */
  backdrop-filter: blur(8px);
  /* ✅ DEPOIS: outros navegadores */
}

.popup-overlay.active {
  opacity: 1;
  visibility: visible;
}

.popup-card {
  background: #fff;
  padding: 40px 45px;
  width: 90%;
  max-width: 420px;
  border-radius: 20px;
  text-align: center;
  box-shadow: var(--shadow-medium);
  animation: fadeIn .3s ease;
}

.popup-logo {
  width: 399px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}

.btn-colecao {
  background: rgba(212, 184, 164, 0.18);
  padding: 12px 26px;
  border-radius: 999px;
  color: var(--text-dark);
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-soft);
  transition: all 0.3s ease;
  border: 1px solid rgba(212, 184, 164, 0.25);
}

.btn-colecao:hover {
  background: rgba(212, 184, 164, 0.3);
  transform: translateY(-2px);
}

.btn-popup {
  width: 100%;
  background: var(--gradient-terracotta);
  border-radius: 30px;
  padding: 14px;
  border: none;
  color: white;
  cursor: pointer;
  font-size: 1rem;
  transition: .2s;
}

.btn-popup:hover {
  transform: scale(1.03);
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(.96);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.mobile-menu-btn {
  display: none;
  background: var(--gradient-terracotta);
  border: none;
  color: #fff;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  cursor: pointer;
  transition: .3s;
}

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

@media (max-width: 1024px) {
  .container {
    padding: 0 20px;
  }
}

@media (max-width: 768px) {
  .mobile-menu-btn {
    display: grid;
    place-items: center;
    position: absolute;
    right: 24px;
    top: 50%;
    transform: translateY(-50%);
  }

  .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--cream);
    border-top: 1px solid rgba(212, 184, 164, .2);
    box-shadow: var(--shadow-medium);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all .3s;
  }

  .nav.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .logo-img {
    height: 220px;
    transform: none;
    margin-left: 0;
  }

  .site-header {
    height: 140px;
  }

  .menu-right {
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    flex-direction: column;
    padding: 20px;
  }

  .nav a {
    display: block;
    padding: 12px 20px;
    border-radius: 8px;
  }

  .section-header h3 {
    font-size: 2rem;
  }

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

  .input-group {
    flex-direction: column;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .footer-links {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .section {
    padding: 60px 0;
  }

  .hero h2 {
    font-size: 2rem;
  }

  .cadastro-card {
    padding: 30px 20px;
  }

  .benefits {
    gap: 16px;
  }
}

.logo-img {
  margin-left: 20px;
}

@media (max-width: 1024px) and (min-width: 769px) {
  .logo-img {
    margin-left: 20px;
  }
}

@media (max-width: 768px) {
  .logo-img {
    margin-left: 20px;
    height: 220px;
    transform: none;
  }
}

@media (max-width: 480px) {
  .logo-img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block;
    height: 180px;
    transform: none;
  }
}

/* ============================================================
   SETAS ELEGANTES DO CARROSSEL
   ============================================================ */
.insta-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 64px;
  height: 64px;
  background: rgba(255, 255, 255, 0.98);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-radius: 50%;
  border: 1px solid rgba(212, 184, 164, 0.15);
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 100;
  box-shadow: 0 12px 36px rgba(90, 74, 58, 0.12);
  transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.insta-nav i {
  color: var(--dark-brown);
  font-size: 24px;
  transition: all 0.3s ease;
}

.insta-nav:hover {
  background: var(--clay);
  border-color: var(--clay);
  transform: translateY(-50%) scale(1.12);
  box-shadow: 0 16px 48px rgba(196, 154, 122, 0.25);
}

.insta-nav:hover i {
  color: #fff;
  transform: scale(1.1);
}

/* Posicionamento elegante e bem espaçado */
.insta-nav.left {
  left: -80px;
}

.insta-nav.right {
  right: -80px;
}

/* Container com margem para acomodar as setas */
.insta-wrapper {
  position: relative;
  margin: 0 90px 40px 90px;
  padding: 0 10px;
}

/* Gradiente sutil nas bordas (opcional mas muito bonito) */
.insta-wrapper::before,
.insta-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 60px;
  pointer-events: none;
  z-index: 50;
  opacity: 0.8;
}

.insta-wrapper::before {
  left: 0;
  background: linear-gradient(to right, var(--cream), transparent);
}

.insta-wrapper::after {
  right: 0;
  background: linear-gradient(to left, var(--cream), transparent);
}

/* Ajustes responsivos */
@media (max-width: 1200px) {
  .insta-wrapper {
    margin: 0 70px 40px 70px;
  }

  .insta-nav.left {
    left: -60px;
  }

  .insta-nav.right {
    right: -60px;
  }
}

@media (max-width: 992px) {
  .insta-wrapper {
    margin: 0 50px 40px 50px;
  }

  .insta-nav {
    width: 56px;
    height: 56px;
  }

  .insta-nav.left {
    left: -45px;
  }

  .insta-nav.right {
    right: -45px;
  }
}

@media (max-width: 768px) {
  .insta-nav {
    display: none;
  }

  .insta-wrapper {
    margin: 0 20px 30px 20px;
  }

  .insta-wrapper::before,
  .insta-wrapper::after {
    display: none;
  }
}

/* ============================================================
   AUTH POPUP – Login / Signup / Reset
   ============================================================ */

.auth-popup {
  width: 100%;
  max-width: 600px;
  border-radius: 26px;
  padding: 50px 45px;
  position: relative;
  background: var(--cream);
  box-shadow: var(--shadow-strong);
  animation: fadeInUp .45s cubic-bezier(.25, .8, .25, 1);
  border: 1px solid rgba(212, 184, 164, .3);
  text-align: left;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(.96);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.auth-popup h2 {
  font-size: 1.9rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text-dark);
}

.auth-popup-subtitle {
  font-size: 1rem;
  color: var(--text-medium);
  margin-bottom: 22px;
  line-height: 1.5;
}

.auth-panel {
  display: none;
}

.auth-panel-active {
  display: block;
}

/* inputs */
.auth-field-group {
  margin-bottom: 18px;
  text-align: left;
}

.auth-field-group label {
  font-size: .92rem;
  color: var(--text-medium);
  display: block;
  margin-bottom: 6px;
}

.auth-field-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 184, 164, .4);
  background: #fff;
  color: var(--text-dark);
  transition: .2s;
}

.auth-field-group input:focus {
  outline: none;
  border-color: var(--terracotta);
  box-shadow: 0 0 0 2px rgba(212, 184, 164, .25);
}

/* inline para senha */
.auth-inline {
  display: flex;
  gap: 12px;
}

/* checkbox */
.auth-checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: .88rem;
  color: var(--text-medium);
  line-height: 1.4;
  margin-top: 6px;
}

.auth-checkbox input {
  transform: translateY(3px);
}

/* botões */
.btn-auth-primary {
  background: var(--gradient-terracotta);
  border-radius: 16px;
  padding: 14px;
  font-weight: 700;
  margin-top: 16px;
  color: #fff;
  transition: .25s;
}

.btn-auth-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-medium);
}

/* texto alternativo */
.auth-alt-text {
  font-size: .9rem;
  color: var(--text-medium);
  margin-top: 18px;
}

.auth-alt-link {
  background: none;
  border: none;
  color: var(--clay);
  cursor: pointer;
  font-weight: 600;
  padding: 0;
  font-size: .9rem;
}

.auth-alt-link:hover {
  text-decoration: underline;
}

/* esqueci a senha */
.auth-link-forgot {
  font-size: .88rem;
  background: none;
  border: none;
  color: var(--text-medium);
  cursor: pointer;
  transition: .2s;
  padding: 0;
}

.auth-link-forgot:hover {
  color: var(--clay);
}

/* helper */
.auth-helper-text {
  font-size: .9rem;
  color: var(--text-light);
  margin-bottom: 20px;
  text-align: left;
  line-height: 1.4;
}

/* fechar popup */
.auth-popup .popup-close {
  position: absolute;
  top: 14px;
  right: 14px;
  background: rgba(212, 184, 164, .16);
  border-radius: 50%;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  font-size: 1.25rem;
  color: var(--text-medium);
  border: none;
  margin-top: 0;
}

.auth-popup .popup-close:hover {
  background: rgba(212, 184, 164, .32);
}

/* ============================================================
   CARRINHO (SIDEBAR)
   ============================================================ */

.cart-sidebar {
  position: fixed;
  top: 0;
  right: -420px;
  width: 420px;
  height: 100vh;
  background: var(--cream);
  box-shadow: var(--shadow-strong);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transition: right .45s cubic-bezier(.25, .8, .25, 1);
  border-left: 1px solid rgba(212, 184, 164, .25);
  overflow-y: auto;
}

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

.cart-header {
  padding: 26px;
  border-bottom: 1px solid rgba(212, 184, 164, .25);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--off-white);
}

.cart-header h3 {
  font-size: 1.5rem;
  font-weight: 600;
}

.cart-close {
  font-size: 1.8rem;
  background: none;
  border: none;
  color: var(--text-medium);
  cursor: pointer;
  transition: .25s;
}

.cart-close:hover {
  color: var(--clay);
}

.cart-body {
  flex: 1;
  padding: 24px;
}

/* estado vazio */
.cart-empty-state {
  text-align: center;
  color: var(--text-medium);
}

.cart-empty-state span {
  display: block;
  margin-top: 8px;
  font-size: .92rem;
  color: var(--text-light);
}

.cart-empty-state.hidden {
  display: none;
}

/* lista de itens */
.cart-items {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  background: var(--off-white);
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(212, 184, 164, .25);
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.cart-item-meta {
  font-size: .86rem;
  color: var(--text-light);
}

.cart-item-actions {
  text-align: right;
}

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

.cart-item-remove {
  background: none;
  border: none;
  margin-top: 4px;
  cursor: pointer;
  font-size: .82rem;
  color: var(--text-medium);
  transition: .25s;
}

.cart-item-remove:hover {
  color: var(--terracotta);
}

/* Footer carrinho */
.cart-footer {
  padding: 24px;
  border-top: 1px solid rgba(212, 184, 164, .25);
  background: var(--off-white);
}

.cart-summary {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 26px;
}

.cart-row {
  display: flex;
  justify-content: space-between;
  font-size: 1rem;
}

.cart-discount span:first-child {
  color: var(--terracotta);
}

.cart-total {
  font-weight: 700;
  color: var(--clay);
  font-size: 1.2rem;
}

/* Métodos de pagamento */
.cart-payment-methods h4 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  color: var(--text-dark);
}

.cart-payment-methods ul {
  list-style: none;
  font-size: .95rem;
  color: var(--text-medium);
  margin-bottom: 22px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Botão finalizar compra */
.btn-cart-checkout {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--terracotta);
  border: none;
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: .25s;
}

.btn-cart-checkout:hover {
  background: var(--clay);
  box-shadow: var(--shadow-medium);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .cart-sidebar {
    width: 100%;
  }
}

/* ============================================================
   PERFIL DO USUÁRIO (SIDEBAR)
   ============================================================ */

.profile-sidebar {
  position: fixed;
  top: 0;
  right: -380px;
  width: 380px;
  height: 100vh;
  background: var(--cream);
  border-left: 1px solid rgba(212, 184, 164, .25);
  box-shadow: var(--shadow-strong);
  z-index: 99999;
  display: flex;
  flex-direction: column;
  transition: right .45s cubic-bezier(.25, .8, .25, 1);
  padding-bottom: 40px;
}

.profile-sidebar.active {
  right: 0;
}

.profile-header {
  padding: 26px;
  border-bottom: 1px solid rgba(212, 184, 164, .25);
  background: var(--off-white);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.profile-header h3 {
  font-size: 1.3rem;
  font-weight: 600;
}

.profile-close {
  font-size: 1.6rem;
  background: none;
  border: none;
  color: var(--text-medium);
  cursor: pointer;
  transition: .25s;
}

.profile-close:hover {
  color: var(--clay);
}

.profile-body {
  padding: 26px;
  overflow-y: auto;
}

.profile-avatar-wrapper {
  text-align: center;
  margin-bottom: 26px;
}

.profile-avatar {
  width: 110px;
  height: 110px;
  background: var(--gradient-terracotta);
  border-radius: 50%;
  margin: 0 auto 16px;
  display: grid;
  place-items: center;
  font-size: 1.6rem;
  color: #fff;
  font-weight: 600;
  border: 3px solid rgba(212, 184, 164, .4);
  box-shadow: var(--shadow-medium);
  background-size: cover;
  background-position: center;
}

.btn-change-avatar {
  display: inline-block;
  padding: 8px 16px;
  background: var(--terracotta);
  color: #fff;
  border-radius: 20px;
  font-size: .9rem;
  cursor: pointer;
  transition: .25s;
  border: none;
}

.btn-change-avatar:hover {
  background: var(--clay);
}

.profile-fields {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 26px;
}

.profile-field label {
  font-size: .9rem;
  color: var(--text-medium);
  display: block;
  margin-bottom: 6px;
}

.profile-field input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid rgba(212, 184, 164, .35);
  background: #fff;
  color: var(--text-dark);
  transition: .25s;
}

.profile-field input:focus {
  border-color: var(--clay);
  box-shadow: 0 0 0 2px rgba(212, 184, 164, .25);
  outline: none;
}

.btn-save-profile {
  width: 100%;
  padding: 14px;
  border-radius: 14px;
  background: var(--terracotta);
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: 700;
  transition: .25s;
}

.btn-save-profile:hover {
  background: var(--clay);
  transform: translateY(-2px);
}

@media (max-width: 480px) {
  .profile-sidebar {
    width: 100%;
  }
}

/* ============================================================
   HEADER ICONS (SACOLA + PERFIL)
   ============================================================ */

.header-icon {
  display: flex;
  align-items: center;
}

.icon-button {
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  position: relative;
  color: var(--text-medium);
  transition: .25s;
  font-size: 1.3rem;
}

.icon-button:hover {
  color: var(--text-dark);
  transform: translateY(-2px);
}

.header-bag i {
  font-size: 1.4rem;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--terracotta);
  color: #fff;
  padding: 2px 6px;
  font-size: .72rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
}

/* mini perfil no header */
.profile-thumb {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(212, 184, 164, .25);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(212, 184, 164, .35);
  box-shadow: var(--shadow-soft);
  transition: .25s;
  font-size: .9rem;
}

.profile-thumb i {
  color: var(--text-dark);
  font-size: .96rem;
}

.profile-thumb span {
  font-weight: 600;
  color: var(--text-dark);
}

.profile-thumb:hover {
  background: rgba(212, 184, 164, .4);
}

/* ============================================================
   OVERLAY PARA SIDEBARS (SACOLA E PERFIL)
   ============================================================ */

.sidebar-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  -webkit-backdrop-filter: blur(3px);
  backdrop-filter: blur(3px);
}

.sidebar-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* ============================================================
   AJUSTE Z-INDEX PARA MOBILE (OPCIONAL)
   ============================================================ */

@media (max-width: 768px) {

  .cart-sidebar,
  .profile-sidebar {
    z-index: 1000;
  }

  .sidebar-overlay {
    z-index: 999;
  }
}

/* ============================================================
   BADGE DA SACOLA - CENTRALIZADO
   ============================================================ */

.cart-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: var(--terracotta);
  color: #fff;
  padding: 3px 8px;
  min-width: 20px;
  height: 20px;
  font-size: 0.7rem;
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================================
   SCROLLBARS DAS SIDE BARS - COMPATÍVEL TODOS NAVEGADORES
   ============================================================ */

/* 1. PRIMEIRO: Webkit (Chrome, Safari, Edge moderno) */
.cart-sidebar::-webkit-scrollbar,
.profile-sidebar::-webkit-scrollbar {
  width: 8px;
}

.cart-sidebar::-webkit-scrollbar-thumb,
.profile-sidebar::-webkit-scrollbar-thumb {
  background: rgba(212, 184, 164, 0.4);
  border-radius: 5px;
  transition: background 0.3s ease;
}

.cart-sidebar::-webkit-scrollbar-thumb:hover {
  background: rgba(212, 184, 164, 0.6);
}

.cart-sidebar::-webkit-scrollbar-track,
.profile-sidebar::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 5px;
}

/* 2. SEGUNDO: Firefox (dentro de @supports para evitar avisos) */
@supports (scrollbar-width: thin) {

  .cart-sidebar,
  .profile-sidebar {
    scrollbar-width: thin;
    scrollbar-color: rgba(212, 184, 164, 0.4) rgba(255, 255, 255, 0.4);
  }

  /* Também para quando estiver ativa */
  .cart-sidebar.active,
  .profile-sidebar.active {
    scrollbar-width: thin;
  }
}

/* 3. TERCEIRO: IE/Edge antigos */
.cart-sidebar,
.profile-sidebar {
  -ms-overflow-style: none;
  /* Esconde scrollbar no IE/Edge antigo */
}

/* ============================================================
   EFEITO LEVE ADD TO CART
   ============================================================ */

.btn-add-cart:active {
  transform: scale(.97);
  opacity: .85;
}
