/* ===== VARIÁVEIS ===== */
:root {
  --black: #0a0a0a;
  --black-soft: #131110;
  --black-card: #17140f;
  --gold: #d4af37;
  --gold-light: #f2d580;
  --gold-dark: #a5822a;
  --cream: #f5efe0;
  --text-muted: #b8b0a0;
  --border: rgba(212, 175, 55, 0.25);
  --shadow-gold: 0 0 24px rgba(212, 175, 55, 0.25);
  --font-heading: 'Playfair Display', serif;
  --font-body: 'Poppins', sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

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

ul { list-style: none; }

h1, h2, h3 { font-family: var(--font-heading); font-weight: 700; }

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BOTÕES ===== */
.btn[hidden] { display: none; }
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-gold {
  background: linear-gradient(135deg, var(--gold-light), var(--gold), var(--gold-dark));
  color: #1a1500;
  box-shadow: var(--shadow-gold);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: 0 6px 30px rgba(212, 175, 55, 0.45); }

.btn-outline {
  background: transparent;
  color: var(--gold-light);
  border: 1px solid var(--gold);
}
.btn-outline:hover { background: rgba(212, 175, 55, 0.1); }

.btn-lg { padding: 15px 34px; font-size: 1.05rem; }

.btn-mini {
  padding: 8px 18px;
  font-size: 0.82rem;
  background: transparent;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  width: 100%;
  justify-content: center;
  margin-top: 12px;
}
.btn-mini:hover { background: var(--gold); color: #1a1500; }

/* ===== HEADER ===== */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 10, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.header-top-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px 24px;
  gap: 28px;
}

.logo {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.logo-img { height: 64px; width: auto; display: block; }
.footer-col .logo-img { height: 76px; }

.main-nav ul { display: flex; gap: 26px; }
.main-nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--cream);
  position: relative;
  padding: 4px 0;
  transition: color 0.25s;
  white-space: nowrap;
}
.main-nav a:hover { color: var(--gold-light); }
.main-nav a::after {
  content: '';
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 1px;
  background: var(--gold);
  transition: width 0.3s;
}
.main-nav a:hover::after { width: 100%; }

/* ===== SEARCH ===== */
.search-form {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  max-width: 380px;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 4px 4px 18px;
  transition: border-color 0.25s;
}
.search-form:focus-within { border-color: var(--gold); }
.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
  padding: 8px 0;
}
.search-form input::placeholder { color: var(--text-muted); }
.search-form button {
  background: var(--gold);
  color: #1a1500;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.2s;
}
.search-form button:hover { transform: scale(1.06); }

/* ===== HEADER ICONS ===== */
.header-icons { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: transparent;
  border: 1px solid transparent;
  color: var(--cream);
  cursor: pointer;
  transition: all 0.25s;
}
.icon-btn:hover { border-color: var(--border); color: var(--gold-light); background: rgba(212, 175, 55, 0.08); }
.header-whats-icon:hover { color: #25d366; }
.cart-count, .fav-count {
  position: absolute;
  top: 2px;
  right: 2px;
  min-width: 16px;
  height: 16px;
  padding: 0 3px;
  background: var(--gold);
  color: #1a1500;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.account-wrap { position: relative; }
.account-panel {
  display: none;
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 220px;
  background: var(--black-card);
  border: 1px solid var(--gold);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.5);
  z-index: 60;
}
.account-panel.open { display: block; }
.account-panel .account-greeting {
  padding: 10px 12px 8px;
  color: var(--cream);
  font-size: 0.85rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}
.account-panel .account-greeting strong { color: var(--gold-light); }
.account-panel a, .account-panel button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 9px 12px;
  border-radius: 7px;
  color: var(--text-muted);
  font-size: 0.85rem;
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
}
.account-panel a:hover, .account-panel button:hover { background: rgba(212, 175, 55, 0.1); color: var(--gold-light); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  flex-shrink: 0;
}
.hamburger span { width: 26px; height: 2px; background: var(--gold); transition: all 0.3s; }

/* + Categorias: item do menu principal com painel dropdown */
.nav-cat-item { position: relative; }
.nav-cat-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: none;
  padding: 4px 0;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.25s;
}
.nav-cat-toggle:hover { color: var(--gold-light); }
.nav-cat-toggle .chevron { transition: transform 0.25s; color: var(--gold); }
.nav-cat-toggle[aria-expanded="true"] .chevron { transform: rotate(180deg); }

.mega-panel {
  display: grid;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 500;
  min-width: 620px;
  background: var(--black-card);
  border: 1px solid var(--gold);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.mega-panel.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}
.mega-panel a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  color: var(--cream);
  font-size: 0.86rem;
  transition: background 0.2s, color 0.2s;
}
.mega-panel a svg { width: 18px; height: 18px; color: var(--gold); flex-shrink: 0; }
.mega-panel a:hover { background: rgba(212, 175, 55, 0.1); color: var(--gold-light); }

/* ===== CARROSSEL DE BANNERS (hero) ===== */
.hero-carousel {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(212, 175, 55, 0.14), transparent 45%),
    radial-gradient(circle at 85% 60%, rgba(212, 175, 55, 0.1), transparent 45%),
    linear-gradient(180deg, #0a0a0a 0%, #120f08 100%);
  z-index: -1;
}

.carousel-viewport { overflow: hidden; }
.carousel-track {
  display: flex;
  transition: transform 0.6s cubic-bezier(.65,0,.35,1);
}
.carousel-slide {
  flex: 0 0 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 100px 24px 90px;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--border);
  color: var(--gold-light);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 5;
  transition: all 0.25s;
}
.carousel-arrow:hover { border-color: var(--gold); background: rgba(212, 175, 55, 0.12); }
.carousel-arrow.prev { left: 20px; }
.carousel-arrow.next { right: 20px; }

.carousel-dots {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 9px;
  z-index: 5;
}
.carousel-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: all 0.25s;
}
.carousel-dot.active { background: var(--gold); width: 22px; border-radius: 4px; }

.hero-inner { max-width: 780px; }
.hero-eyebrow {
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 18px;
}
.hero-inner h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  line-height: 1.15;
  color: var(--cream);
  margin-bottom: 22px;
}
.hero-inner h1 span { color: var(--gold); font-style: italic; }
.hero-sub {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 560px;
  margin: 0 auto 34px;
}
.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.hero-badges {
  display: flex;
  justify-content: center;
  gap: 48px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border);
  padding-top: 32px;
  margin-top: 40px;
}
.hero-badges div { display: flex; flex-direction: column; align-items: center; }
.hero-badges strong { font-family: var(--font-heading); font-size: 1.6rem; color: var(--gold); }
.hero-badges span { font-size: 0.82rem; color: var(--text-muted); margin-top: 4px; }

/* ===== SECTION HEAD ===== */
.section-head { max-width: 560px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-tag {
  display: inline-block;
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.section-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--cream); margin-bottom: 10px; }
.section-head p { color: var(--text-muted); }

/* ===== CATEGORY SECTIONS ===== */
.cat-section { display: none; padding: 80px 0; scroll-margin-top: 150px; }
.cat-section.section-active { display: block; }

.catalog-hint {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.95rem;
  padding: 50px 24px;
}
.cat-section.alt { background: var(--black-soft); }

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 26px;
}

.product-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}

.product-media {
  position: relative;
  height: 190px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.16), transparent 70%),
    linear-gradient(135deg, #1c1811, #0e0c08);
  border-bottom: 1px solid var(--border);
}
.product-icon { width: 76px; height: 76px; color: var(--gold); opacity: 0.9; }
.product-media.has-photo { padding: 0; overflow: hidden; }
.product-media.has-photo img { width: 100%; height: 100%; object-fit: contain; }

.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--gold);
  color: #1a1500;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.product-fav-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.55);
  border: 1px solid var(--border);
  color: var(--cream);
  cursor: pointer;
  transition: all 0.2s ease;
}
.product-fav-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.product-fav-btn.active { border-color: var(--gold); color: var(--gold); }
.product-fav-btn.active svg path { fill: currentColor; }

.product-info { padding: 20px; }
.product-info h3 { font-size: 1.05rem; color: var(--cream); margin-bottom: 6px; }
.product-desc { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 6px; }
.product-weight { display: block; font-size: 0.76rem; color: var(--gold-light); opacity: 0.85; margin-bottom: 12px; }
.product-weight[hidden] { display: none; }
.product-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.product-price .old { text-decoration: line-through; color: var(--text-muted); font-size: 0.85rem; }
.product-price .new { color: var(--gold-light); font-size: 1.3rem; font-weight: 800; font-family: var(--font-body); letter-spacing: 0.2px; }

.product-actions { display: flex; align-items: center; gap: 8px; }
.qty-stepper {
  display: flex;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}
.qty-stepper .qty-btn {
  width: 28px;
  height: 34px;
  border: none;
  border-radius: 0;
  background: var(--black-soft);
  color: var(--cream);
  cursor: pointer;
  font-size: 0.95rem;
}
.qty-stepper .qty-btn:hover { background: rgba(212, 175, 55, 0.15); color: var(--gold-light); }
.qty-input {
  width: 34px;
  height: 34px;
  border: none;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  background: transparent;
  color: var(--cream);
  text-align: center;
  font-family: var(--font-body);
  font-size: 0.88rem;
  -moz-appearance: textfield;
}
.qty-input::-webkit-outer-spin-button,
.qty-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.product-actions .add-to-cart-btn { flex: 1; margin-top: 0; }

/* ===== ABOUT ===== */
.about { padding: 90px 0; background: var(--black); }
.about-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.about-text h2 { font-size: clamp(1.8rem, 3.2vw, 2.4rem); color: var(--cream); margin: 10px 0 18px; }
.about-text h2 span { color: var(--gold); font-style: italic; }
.about-text p { color: var(--text-muted); margin-bottom: 22px; }
.about-list { margin-bottom: 30px; }
.about-list li { color: var(--cream); padding: 6px 0; font-size: 0.95rem; }

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.stat-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 28px 20px;
  text-align: center;
}
.stat-card strong { display: block; font-family: var(--font-heading); font-size: 2rem; color: var(--gold); margin-bottom: 6px; }
.stat-card span { font-size: 0.82rem; color: var(--text-muted); }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 90px 0; background: var(--black-soft); }
.testi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 26px;
}
.testi-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 30px;
}
.stars { color: var(--gold); letter-spacing: 2px; margin-bottom: 14px; }
.testi-card p { color: var(--text-muted); margin-bottom: 18px; font-style: italic; }
.testi-card strong { color: var(--gold-light); font-size: 0.9rem; }

/* ===== FOOTER ===== */
.footer { background: var(--black-soft); padding: 70px 0 0; }
.footer-inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 50px;
  border-bottom: 1px solid var(--border);
}
.footer-col p { color: var(--text-muted); font-size: 0.88rem; margin-top: 14px; }
.footer-col h4 { color: var(--gold-light); font-size: 0.95rem; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; font-size: 0.88rem; color: var(--text-muted); }
.footer-col ul a:hover { color: var(--gold-light); }

.footer-trust-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 0;
  border-top: 1px solid var(--border);
}
.footer-trust { display: flex; flex-wrap: wrap; gap: 22px; }
.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.8rem;
}
.trust-item svg { color: var(--gold); flex-shrink: 0; }

.footer-payments { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-icon {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.3px;
  color: var(--text-muted);
}

.footer-bottom {
  text-align: center;
  padding: 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ===== FLOATING BUTTONS ===== */
.back-to-top {
  position: fixed;
  bottom: 26px;
  right: 26px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--black-card);
  border: 1px solid var(--gold);
  color: var(--gold);
  font-size: 1.1rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 90;
}
.back-to-top.show { opacity: 1; visibility: visible; }
.back-to-top:hover { background: var(--gold); color: #1a1500; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
  .about-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  .header-top-inner { flex-wrap: wrap; gap: 12px 16px; }
  .main-nav { order: 3; flex-basis: 100%; display: none; }
  .search-form { order: 2; flex: 1 1 auto; max-width: none; }
  .header-icons { order: 1; margin-left: auto; }
  .hamburger { display: flex; order: 0; }

  .main-nav.open {
    display: flex;
    background: var(--black-soft);
    border-top: 1px solid var(--border);
    padding: 6px 0 4px;
    width: 100%;
  }
  .main-nav.open ul { flex-direction: column; gap: 14px; width: 100%; }

  .mega-panel { min-width: 0; width: min(90vw, 420px); grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .logo-img { height: 44px; }
  .footer-col .logo-img { height: 52px; }
  .carousel-slide { padding: 70px 20px 60px; }
  .hero-badges { gap: 28px; }
  .carousel-arrow { width: 36px; height: 36px; font-size: 1.15rem; }
  .carousel-arrow.prev { left: 8px; }
  .carousel-arrow.next { right: 8px; }
  .footer-inner { grid-template-columns: 1fr; }
  .back-to-top { right: 20px; bottom: 22px; width: 40px; height: 40px; }
  .mega-panel { grid-template-columns: 1fr 1fr; padding: 14px; }
}

/* ===== BUSCA: destaque de resultado ===== */
.product-card.search-hit {
  animation: hitPulse 1.4s ease;
  border-color: var(--gold);
}
@keyframes hitPulse {
  0%, 100% { box-shadow: none; }
  30% { box-shadow: 0 0 0 3px rgba(212, 175, 55, 0.5); }
}

.search-toast {
  position: fixed;
  top: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(-10px);
  background: var(--black-card);
  border: 1px solid var(--gold);
  color: var(--cream);
  padding: 12px 22px;
  border-radius: 999px;
  font-size: 0.85rem;
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: all 0.3s ease;
}
.search-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ============================================================
   CARRINHO (drawer lateral)
   ============================================================ */
.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.cart-overlay.open { opacity: 1; pointer-events: auto; }

.cart-drawer {
  position: fixed;
  top: 0;
  right: -420px;
  width: min(100%, 400px);
  height: 100%;
  background: var(--black-card);
  border-left: 1px solid var(--gold);
  z-index: 301;
  display: flex;
  flex-direction: column;
  transition: right 0.35s ease;
  box-shadow: -10px 0 40px rgba(0, 0, 0, 0.5);
}
.cart-drawer.open { right: 0; }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px;
  border-bottom: 1px solid var(--border);
}
.cart-drawer-head h3 { font-size: 1.2rem; color: var(--cream); }
.cart-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
}
.cart-close:hover { color: var(--gold-light); }

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 12px 24px;
}
.cart-empty { color: var(--text-muted); text-align: center; padding: 40px 0; }

.cart-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.cart-item-media {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 10px;
  background: linear-gradient(135deg, #1c1811, #0e0c08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.cart-item-media svg { width: 28px; height: 28px; color: var(--gold); }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 { font-size: 0.9rem; color: var(--cream); font-weight: 500; margin-bottom: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cart-item-price { font-size: 0.82rem; color: var(--gold-light); display: block; margin-bottom: 6px; }
.cart-item-qty { display: flex; align-items: center; gap: 10px; }
.qty-btn {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--cream);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
}
.qty-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.cart-item-qty span { font-size: 0.85rem; min-width: 14px; text-align: center; }
.cart-item-remove, .fav-item-remove {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.9rem;
  flex-shrink: 0;
  padding: 4px;
}
.cart-item-remove:hover, .fav-item-remove:hover { color: #e0554f; }
.fav-item-add-btn { margin-top: 4px; }

.cart-drawer-foot { padding: 20px 24px 26px; border-top: 1px solid var(--border); }
.cart-subtotal { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.cart-subtotal span { color: var(--text-muted); font-size: 0.9rem; }
.cart-subtotal strong { color: var(--gold-light); font-size: 1.3rem; font-weight: 800; font-family: var(--font-body); }
.cart-checkout-btn { display: flex; width: 100%; justify-content: center; }
.cart-checkout-btn.disabled { opacity: 0.5; pointer-events: none; }

/* ============================================================
   MODAL DE PRODUTO
   ============================================================ */
.product-card { cursor: pointer; }

.product-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 300;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.product-modal-overlay.open { opacity: 1; pointer-events: auto; }

.product-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -48%);
  width: min(92vw, 460px);
  max-height: 88vh;
  overflow-y: auto;
  background: var(--black-card);
  border: 1px solid var(--gold);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  z-index: 301;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.product-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, -50%);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.5);
  border: 1px solid var(--border);
  color: var(--cream);
  cursor: pointer;
  z-index: 2;
}
.modal-close:hover { border-color: var(--gold); color: var(--gold-light); }

.product-modal-media {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 50% 40%, rgba(212, 175, 55, 0.18), transparent 70%),
    linear-gradient(135deg, #1c1811, #0e0c08);
  border-bottom: 1px solid var(--border);
  border-radius: 18px 18px 0 0;
}
.product-modal-media svg { width: 100px; height: 100px; color: var(--gold); }
.product-modal-media.has-photo { padding: 0; overflow: hidden; }
.product-modal-media.has-photo img { width: 100%; height: 100%; object-fit: contain; }

.product-modal-info { padding: 24px 26px 28px; }
.product-modal-info .badge { position: static; display: inline-block; margin-bottom: 10px; }
.product-modal-info h3 { font-size: 1.3rem; color: var(--cream); margin-bottom: 8px; font-family: var(--font-heading); }
.product-modal-info .product-desc { font-size: 0.9rem; margin-bottom: 8px; }
.product-modal-info .product-weight { font-size: 0.8rem; margin-bottom: 16px; }
.product-modal-info .product-price { margin-bottom: 20px; }
.product-modal-info .product-price .new { font-size: 1.5rem; }
.product-modal-info .add-to-cart-btn { flex: none; width: auto; }

/* ============================================================
   PÁGINA DE CHECKOUT
   ============================================================ */
.checkout-body { background: var(--black); }

.checkout-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.checkout-back { font-size: 0.85rem; color: var(--text-muted); }
.checkout-back:hover { color: var(--gold-light); }

.checkout-page { padding: 48px 0 100px; }

.checkout-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 50px;
  align-items: start;
}

.checkout-block {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  margin-bottom: 22px;
}
.checkout-block h2 { font-size: 1.15rem; color: var(--cream); margin-bottom: 18px; font-family: var(--font-heading); }

.checkout-note { color: var(--text-muted); font-size: 0.85rem; margin-bottom: 16px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 0.8rem; color: var(--text-muted); margin-bottom: 6px; }
.field input {
  width: 100%;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 11px 14px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s;
}
.field input:focus { border-color: var(--gold); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.mp-warning {
  background: rgba(212, 175, 55, 0.1);
  border: 1px solid var(--gold);
  color: var(--gold-light);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.85rem;
  margin-bottom: 16px;
}
.mp-warning code { background: rgba(0,0,0,0.3); padding: 1px 6px; border-radius: 4px; }

.brick-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 20px 0;
}
.brick-loading .spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes spin { to { transform: rotate(360deg); } }

.payment-result {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.6;
  text-align: center;
}
.payment-result.success { background: rgba(60, 180, 100, 0.12); border: 1px solid #3cb464; color: #b6f2cd; }
.payment-result.pending { background: rgba(212, 175, 55, 0.12); border: 1px solid var(--gold); color: var(--gold-light); }
.payment-result.error { background: rgba(224, 85, 79, 0.12); border: 1px solid #e0554f; color: #ffb3af; }
.pix-qr { width: 200px; height: 200px; margin: 14px auto; border-radius: 8px; background: #fff; padding: 8px; }
.pix-copy {
  width: 100%;
  max-width: 380px;
  margin: 8px auto 0;
  display: block;
  background: var(--black-soft);
  border: 1px solid var(--border);
  color: var(--cream);
  border-radius: 8px;
  padding: 8px;
  font-size: 0.75rem;
  resize: none;
  height: 60px;
}

.checkout-empty { text-align: center; padding: 60px 20px; color: var(--text-muted); }
.checkout-empty p { margin-bottom: 20px; }

/* ===== COMPROVANTE (aparece após o pagamento aprovado) ===== */
.receipt-card { text-align: left; }
.receipt-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.receipt-head h3 { font-family: var(--font-heading); font-size: 1.1rem; color: #fff; }
.receipt-head p { font-size: 0.8rem; opacity: 0.85; margin-top: 2px; }
.receipt-badge {
  flex-shrink: 0;
  background: #3cb464;
  color: #06210f;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 999px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}
.receipt-meta { font-size: 0.82rem; opacity: 0.9; margin-bottom: 16px; }
.receipt-meta p { margin: 3px 0; }
.receipt-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.receipt-table th {
  text-align: left;
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  opacity: 0.7;
  padding: 6px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}
.receipt-table td { padding: 8px 4px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.receipt-table .receipt-qty { text-align: center; }
.receipt-table .receipt-num { text-align: right; white-space: nowrap; }
.receipt-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 12px;
  margin-top: 4px;
  font-size: 1.05rem;
}
.receipt-actions { text-align: center; margin-top: 18px; }

/* ============================================================
   PÁGINA DE LOGIN
   ============================================================ */
.auth-page {
  min-height: calc(100vh - 90px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 50px 20px;
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 34px 32px;
}

.auth-title {
  text-align: center;
  font-family: var(--font-heading);
  color: var(--cream);
  font-size: 1.4rem;
  margin-bottom: 26px;
}

.auth-tabs[hidden] { display: none; }
.auth-tabs {
  display: flex;
  gap: 6px;
  background: var(--black-soft);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 26px;
}
.auth-tab {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  transition: all 0.25s;
}
.auth-tab.active { background: var(--gold); color: #1a1500; }

.auth-form .field { margin-bottom: 16px; }
.field-hint { display: block; font-size: 0.72rem; color: var(--text-muted); margin-top: 5px; }
.auth-submit { width: 100%; justify-content: center; margin-top: 6px; }
.auth-link {
  display: block;
  text-align: center;
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--text-muted);
}
.auth-link:hover { color: var(--gold-light); }

.summary-box {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 26px 28px;
  position: sticky;
  top: 24px;
}
.summary-box h3 { font-size: 1.05rem; color: var(--cream); margin-bottom: 18px; font-family: var(--font-heading); }
.summary-items { display: flex; flex-direction: column; gap: 14px; margin-bottom: 20px; }

.summary-item { display: flex; align-items: center; gap: 12px; }
.summary-item-media {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, #1c1811, #0e0c08);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.summary-item-media svg { width: 24px; height: 24px; color: var(--gold); }
.summary-item-qty {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gold);
  color: #1a1500;
  font-size: 0.62rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.summary-item-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.summary-item-name { font-size: 0.85rem; color: var(--cream); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.summary-item-unit { font-size: 0.75rem; color: var(--text-muted); }
.summary-item-total { font-size: 0.85rem; color: var(--gold-light); font-weight: 600; flex-shrink: 0; }

.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.88rem;
}
.summary-row.total {
  color: var(--cream);
  font-size: 1.15rem;
  font-weight: 800;
  font-family: var(--font-body);
}
.summary-row.total span:last-child { color: var(--gold-light); }

@media (max-width: 860px) {
  .checkout-grid { grid-template-columns: 1fr; }
  .summary-box { position: static; }
}

/* ============================================================
   PAINEL ADMIN
   ============================================================ */
.admin-page { padding: 44px 0 100px; }

.admin-blocked {
  max-width: 420px;
  margin: 80px auto;
  text-align: center;
  color: var(--text-muted);
}
.admin-blocked p { margin-bottom: 20px; }

.admin-head { margin-bottom: 28px; }
.admin-head h1 { font-size: 1.8rem; color: var(--cream); font-family: var(--font-heading); margin-bottom: 6px; }
.admin-head p { color: var(--text-muted); font-size: 0.9rem; }

.admin-tabs { display: flex; gap: 10px; margin-bottom: 26px; border-bottom: 1px solid var(--border); }
.admin-tab {
  padding: 10px 18px;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}
.admin-tab.active { color: var(--gold-light); border-bottom-color: var(--gold); }

.admin-toolbar { margin-bottom: 20px; }

.admin-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px 26px;
  margin-bottom: 24px;
}
.admin-card h3 { font-size: 1.05rem; color: var(--cream); margin-bottom: 18px; font-family: var(--font-heading); }
.admin-card p { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.admin-form-actions { display: flex; gap: 12px; margin-top: 6px; }

.icon-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 8px; }
.icon-picker button {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--gold);
  cursor: pointer;
}
.icon-picker button svg { width: 22px; height: 22px; }
.icon-picker button.selected { border-color: var(--gold); background: rgba(212, 175, 55, 0.15); }

.image-upload { display: flex; flex-direction: column; gap: 10px; }
.image-preview {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--black-soft);
}
.image-upload-actions { display: flex; gap: 10px; flex-wrap: wrap; }
.image-upload-btn { cursor: pointer; }

.category-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
  align-items: start;
}
.category-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
}
.category-card.open { grid-column: 1 / -1; }
.category-card-head {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
}
.category-card-head svg { width: 24px; height: 24px; color: var(--gold); flex-shrink: 0; }
.category-card-head .cat-info { flex: 1; min-width: 0; }
.category-card-head h4 { color: var(--cream); font-size: 1rem; font-family: var(--font-heading); }
.category-card-head .cat-info span { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.category-card-head .chevron { transition: transform 0.2s; color: var(--text-muted); width: 16px; height: 16px; }
.category-card.open .chevron { transform: rotate(180deg); }
.category-card-actions { display: flex; gap: 6px; flex-shrink: 0; }
.category-card-actions button {
  width: 32px; height: 32px;
  border-radius: 8px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
}
.category-card-actions button:hover { border-color: var(--gold); color: var(--gold-light); }

.category-card-body { display: none; border-top: 1px solid var(--border); padding: 18px 22px 22px; }
.category-card.open .category-card-body { display: block; }

.permission-list { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.permission-item { display: flex; align-items: center; gap: 10px; font-size: 0.88rem; color: var(--text-muted); cursor: pointer; }
.permission-item input { width: 16px; height: 16px; accent-color: var(--gold); cursor: pointer; }

.employee-list { display: flex; flex-direction: column; gap: 16px; }
.employee-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px 22px;
}
.employee-card-head { display: flex; align-items: center; gap: 14px; }
.employee-card-head .cat-info { flex: 1; min-width: 0; }
.employee-card-head h4 { color: var(--cream); font-size: 1rem; font-family: var(--font-heading); }
.employee-card-head .cat-info span { display: block; color: var(--text-muted); font-size: 0.8rem; margin-top: 2px; }
.employee-perms { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.perm-badge {
  font-size: 0.72rem;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
}
.perm-badge.on { border-color: var(--gold); color: var(--gold-light); background: rgba(212, 175, 55, 0.12); }

.order-status-filter { display: flex; gap: 8px; flex-wrap: wrap; }
.status-filter-btn {
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-muted);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.status-filter-btn:hover { border-color: var(--gold); color: var(--gold-light); }
.status-filter-btn.active { background: var(--gold); border-color: var(--gold); color: #1a1500; }

.admin-note { color: var(--text-muted); font-size: 0.85rem; line-height: 1.6; margin-bottom: 20px; max-width: 640px; }

.account-role-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  border: 1px solid var(--gold);
  color: var(--gold-light);
  margin-left: 8px;
}
.reset-password-row { display: flex; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.reset-password-row[hidden] { display: none; }
.reset-password-row input {
  flex: 1;
  min-width: 180px;
  background: var(--black-soft);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 14px;
  color: var(--cream);
  font-family: var(--font-body);
  font-size: 0.88rem;
}

.product-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.product-table th {
  text-align: left;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--text-muted);
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.product-table td {
  padding: 10px;
  border-bottom: 1px solid var(--border);
  color: var(--cream);
  font-size: 0.85rem;
}
.product-table tr:last-child td { border-bottom: none; }
.product-table .old { text-decoration: line-through; color: var(--text-muted); font-size: 0.78rem; margin-right: 6px; }
.product-table .new { color: var(--gold-light); font-weight: 700; }
.product-table .badge { position: static; }
.product-table .row-actions { display: flex; gap: 6px; white-space: nowrap; }
.product-table .row-actions button {
  width: 28px; height: 28px;
  border-radius: 7px;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.8rem;
}
.product-table .row-actions button:hover { border-color: var(--gold); color: var(--gold-light); }

.admin-modal .product-modal-info { padding: 28px; }
.admin-modal .field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

.orders-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
  background: var(--black-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 22px;
}
.order-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; flex-wrap: wrap; gap: 8px; }
.order-card-head strong { color: var(--gold-light); font-size: 1.05rem; }
.order-status { font-size: 0.72rem; padding: 3px 10px; border-radius: 999px; text-transform: uppercase; font-weight: 700; }
.order-status.approved { background: rgba(60,180,100,0.15); color: #7be3a3; }
.order-status.pending, .order-status.in_process { background: rgba(212,175,55,0.15); color: var(--gold-light); }
.order-status.rejected { background: rgba(224,85,79,0.15); color: #ffb3af; }
.order-card p { color: var(--text-muted); font-size: 0.85rem; margin: 2px 0; }
.order-empty { text-align: center; color: var(--text-muted); padding: 60px 20px; }

.order-card.expandable { cursor: pointer; }
.order-card.expandable:hover { border-color: var(--gold); }
.order-card-body { display: none; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.order-card.open .order-card-body { display: block; }
.order-card-body .product-table { margin-bottom: 12px; }

@media (max-width: 700px) {
  .admin-modal .field-row { grid-template-columns: 1fr; }
  .product-table { display: block; overflow-x: auto; }
}
