/* =========================================================
   MCELLE COLLECTION — design tokens
   Paleta: verde-floresta profundo + dourado antigo + marfim
   Display: Cormorant Garamond · Corpo: Jost
   ========================================================= */
:root {
  /* Paleta Mcelle Collection — roxo profundo + lilás claro, tons escuros e claros misturados */
  --bg-deep:      #241A38;
  --bg-panel:     #33244A;
  --bg-panel-2:   #3D2B58;
  --line:         rgba(201, 169, 232, 0.22);
  --line-soft:    rgba(243, 237, 250, 0.1);

  --gold:         #8B5FBF;
  --gold-bright:  #C9A9E8;
  --gold-dim:     rgba(201, 169, 232, 0.5);

  --ivory:        #F3EDFA;
  --ivory-dim:    rgba(243, 237, 250, 0.7);
  --muted:        #A48FC4;

  --lavender-panel: rgba(201, 169, 232, 0.18); /* selo de preço nos cards */
  --whatsapp:     #3FA772;

  --font-display: 'Cormorant Garamond', serif;
  --font-body:    'Jost', sans-serif;

  --radius:       3px;
  --ease:         cubic-bezier(.4, 0, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--ivory);
  font-family: var(--font-body);
  font-weight: 300;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }

::selection { background: var(--gold-dim); color: var(--bg-deep); }

:focus-visible {
  outline: 1.5px solid var(--gold-bright);
  outline-offset: 3px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 32px;
  font-family: var(--font-body);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: all 0.25s var(--ease);
  cursor: pointer;
}
.btn--gold {
  background: var(--gold);
  color: #F3EDFA;
  border-color: var(--gold);
}
.btn--gold:hover { background: var(--gold-bright); border-color: var(--gold-bright); }
.btn--ghost {
  background: transparent;
  color: var(--ivory);
  border-color: var(--line-soft);
}
.btn--ghost:hover { border-color: var(--gold-dim); color: var(--gold-bright); }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }

.section-eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 0 0 14px;
}
.section-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 3.2vw, 2.7rem);
  margin: 0 0 16px;
  color: var(--ivory);
}
.section-sub {
  color: var(--ivory-dim);
  max-width: 46ch;
  font-size: 0.98rem;
}

/* ===================== HEADER ===================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(36, 26, 56, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.header-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-right: auto;
}
.logo-mark { width: 30px; height: 30px; color: var(--gold); }
.logo-text {
  font-family: var(--font-display);
  font-size: 1.35rem;
  letter-spacing: 0.02em;
  color: var(--ivory);
}
.logo-text em {
  font-style: normal;
  font-weight: 400;
  color: var(--gold);
  margin-left: 4px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-link {
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ivory-dim);
  padding: 6px 0;
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover, .nav-link.active { color: var(--gold-bright); }
.nav-link.active { border-color: var(--gold); }
.nav-link--secondary { color: var(--muted); }

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
}
.menu-toggle span {
  width: 22px;
  height: 1px;
  background: var(--ivory);
}

.cart-toggle {
  position: relative;
  background: none;
  border: none;
  color: var(--ivory);
  width: 26px;
  height: 26px;
}
.cart-toggle:hover { color: var(--gold-bright); }
.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: var(--gold);
  color: #F3EDFA;
  font-size: 0.62rem;
  font-family: var(--font-body);
  font-weight: 600;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ===================== HERO ===================== */
.hero {
  position: relative;
  min-height: 88vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 40px;
  padding: 130px 6vw 60px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(139,95,191,0.16), transparent 60%),
    var(--bg-deep);
}
.hero-ornament {
  position: absolute;
  width: 640px;
  height: 640px;
  color: var(--gold);
  opacity: 0.14;
  top: 50%;
  left: 26%;
  transform: translate(-50%, -50%);
  animation: spin 90s linear infinite;
  pointer-events: none;
}
@keyframes spin { to { transform: translate(-50%, -50%) rotate(360deg); } }

.hero-content { position: relative; max-width: 560px; text-align: left; }
.hero-eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 22px;
}
.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.6rem, 5.4vw, 4.2rem);
  line-height: 1.06;
  margin: 0 0 22px;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-bright);
  font-weight: 400;
}
.hero-text {
  color: var(--ivory-dim);
  font-size: 1.02rem;
  max-width: 48ch;
  margin: 0 0 34px;
}
.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.hero-visual {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  aspect-ratio: 4 / 3;
  box-shadow: 0 30px 60px rgba(0,0,0,0.45);
}
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

.hero-scroll {
  position: absolute;
  bottom: 34px;
  left: 6vw;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  color: var(--muted);
}
.hero-scroll span {
  width: 1px;
  height: 34px;
  background: linear-gradient(var(--gold), transparent);
}
.hero-scroll p {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin: 0;
}

/* ===================== COLLECTION ===================== */
.collection {
  max-width: 1240px;
  margin: 0 auto;
  padding: 110px 28px 60px;
}
.section-head { max-width: 640px; margin-bottom: 46px; }

.filter-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 44px;
  border-bottom: 1px solid var(--line-soft);
  padding-bottom: 30px;
}
.filter-chip {
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ivory-dim);
  padding: 9px 20px;
  border-radius: 20px;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: all 0.2s var(--ease);
}
.filter-chip:hover { border-color: var(--gold-dim); color: var(--gold-bright); }
.filter-chip.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #F3EDFA;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: border-color 0.25s var(--ease), transform 0.25s var(--ease);
}
.product-card:hover {
  border-color: var(--gold-dim);
  transform: translateY(-4px);
}
.product-visual {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-panel-2);
  overflow: hidden;
  cursor: pointer;
}
.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--ease);
}
.product-card:hover .product-visual img { transform: scale(1.05); }

.product-info { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product-category {
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.product-name {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 500;
  color: var(--ivory);
  cursor: pointer;
}
.product-price {
  display: inline-block;
  align-self: flex-start;
  background: var(--lavender-panel);
  color: var(--gold);
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.82rem;
  padding: 4px 12px;
  border-radius: 20px;
  margin: 6px 0 14px;
}
.product-add {
  margin-top: auto;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ivory);
  padding: 11px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all 0.2s var(--ease);
}
.product-add:hover { background: var(--gold); border-color: var(--gold); color: #F3EDFA; }
.product-add.added { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }

/* ===================== ABOUT ===================== */
.about {
  max-width: 760px;
  margin: 0 auto;
  padding: 60px 28px 120px;
  text-align: center;
}
.about-content p {
  color: var(--ivory-dim);
  font-size: 0.98rem;
  max-width: 58ch;
  margin-left: auto;
  margin-right: auto;
}
.about-list {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.about-list li {
  padding-left: 20px;
  position: relative;
  font-size: 0.92rem;
  color: var(--ivory-dim);
}
.about-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 8px;
  height: 1px;
  background: var(--gold);
}

/* ===================== FOOTER ===================== */
.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-panel);
  padding: 60px 28px 24px;
}
.footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-brand p { color: var(--muted); font-size: 0.88rem; margin-top: 10px; }
.footer-contact { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.whatsapp-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--whatsapp);
  color: #fff;
  padding: 12px 22px;
  border-radius: 30px;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  transition: filter 0.2s;
}
.whatsapp-link:hover { filter: brightness(1.1); }
.footer-note { color: var(--muted); font-size: 0.8rem; max-width: 32ch; }
.footer-fine {
  max-width: 1240px;
  margin: 24px auto 0;
  color: var(--muted);
  font-size: 0.76rem;
  text-align: center;
}

.whatsapp-float {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--whatsapp);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  z-index: 45;
  transition: transform 0.2s var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); }

/* ===================== CART DRAWER ===================== */
.cart-overlay, .product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 12, 32, 0.62);
  backdrop-filter: blur(2px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease);
  z-index: 50;
}
.cart-overlay.open, .product-modal-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: min(420px, 92vw);
  background: var(--bg-panel);
  border-left: 1px solid var(--line);
  z-index: 55;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.35s var(--ease);
}
.cart-drawer.open { transform: translateX(0); }

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 26px;
  border-bottom: 1px solid var(--line-soft);
}
.cart-header h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.5rem;
  margin: 0;
}
.cart-close {
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.6rem;
  line-height: 1;
}
.cart-close:hover { color: var(--gold-bright); }

.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 10px 26px;
}
.cart-empty {
  color: var(--muted);
  text-align: center;
  padding: 60px 10px;
  font-size: 0.92rem;
}
.cart-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 18px 0;
  border-bottom: 1px solid var(--line-soft);
}
.cart-item-visual {
  width: 56px;
  height: 56px;
  background: var(--bg-panel-2);
  border-radius: var(--radius);
  overflow: hidden;
}
.cart-item-visual img { width: 100%; height: 100%; object-fit: cover; }
.cart-item-name { font-size: 0.92rem; color: var(--ivory); }
.cart-item-price { color: var(--gold-bright); font-size: 0.84rem; margin-top: 4px; }
.cart-item-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.qty-btn {
  width: 22px; height: 22px;
  background: transparent;
  border: 1px solid var(--line-soft);
  color: var(--ivory);
  border-radius: 50%;
  font-size: 0.9rem;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold-bright); }
.cart-item-remove {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  justify-self: end;
  align-self: start;
}
.cart-item-remove:hover { color: var(--gold-bright); }

.cart-footer {
  padding: 22px 26px 28px;
  border-top: 1px solid var(--line-soft);
}
.cart-subtotal {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  font-size: 0.95rem;
}
.cart-subtotal strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--gold-bright); }
.cart-hint { color: var(--muted); font-size: 0.78rem; margin: 0 0 16px; }

/* ===================== PRODUCT MODAL ===================== */
.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(680px, 92vw);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--bg-panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  z-index: 60;
  display: grid;
  grid-template-columns: 1fr 1fr;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
}
.product-modal.open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -50%);
}
.modal-close {
  position: absolute;
  top: 14px; right: 16px;
  background: none;
  border: none;
  color: var(--ivory);
  font-size: 1.8rem;
  z-index: 2;
}
.modal-close:hover { color: var(--gold-bright); }
.modal-visual {
  background: var(--bg-panel-2);
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.modal-visual img { width: 100%; height: 100%; object-fit: cover; }
.modal-info { padding: 40px 32px; display: flex; flex-direction: column; }
.modal-category {
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 8px;
}
.modal-info h3 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 1.9rem;
  margin: 0 0 10px;
}
.modal-price { color: var(--gold-bright); font-size: 1.15rem; margin: 0 0 18px; }
.modal-desc { color: var(--ivory-dim); font-size: 0.92rem; margin: 0 0 26px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .about { padding-top: 40px; }
  .product-modal { grid-template-columns: 1fr; }
  .modal-visual { aspect-ratio: 1/1; }
}

@media (max-width: 760px) {
  .menu-toggle { display: flex; }
  .main-nav {
    position: fixed;
    top: 0; left: 0; bottom: 0;
    width: min(300px, 80vw);
    background: var(--bg-panel);
    flex-direction: column;
    align-items: flex-start;
    padding: 100px 30px 40px;
    gap: 22px;
    overflow-y: auto;
    transform: translateX(-100%);
    transition: transform 0.3s var(--ease);
    z-index: 41;
    border-right: 1px solid var(--line);
  }
  .main-nav.open { transform: translateX(0); }
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 110px 24px 60px;
    text-align: center;
  }
  .hero-content { text-align: center; margin: 0 auto; }
  .hero-actions { justify-content: center; }
  .hero-visual { max-width: 440px; width: 100%; margin: 0 auto; }
  .hero-scroll { display: none; }
  .collection { padding-top: 70px; }
}
