@import url("https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Space+Grotesk:wght@300;400;500;600&display=swap");

:root {
  --bg: #0d0d0d;
  --bg-card: #161616;
  --bg-elevated: #1e1e1e;
  --text: #f0f0f0;
  --text-muted: #888;
  --text-dim: #ffffff;
  --border: rgba(255, 255, 255, 0.07);
  --border-strong: rgba(255, 255, 255, 0.16);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 8px;
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-body: "Space Grotesk", "Trebuchet MS", sans-serif;
  --watermark-image: url("/assets/img/Logo1.png");
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

[hidden] { display: none !important; }

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}

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

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

p {
  line-height: 1.7;
  color: var(--text-muted);
  margin: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  margin: 0;
  color: var(--text);
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.1; }
h2 { font-size: clamp(1.8rem, 3.2vw, 2.8rem); line-height: 1.15; }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.4rem); font-weight: 500; }

/* ─── Layout ─── */

.container {
  width: min(1200px, 92%);
  margin: 0 auto;
}

.section {
  padding: 100px 0;
}

/* ─── Buttons ─── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  background: var(--text);
  color: var(--bg);
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.04em;
  border: 1px solid var(--text);
  cursor: pointer;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  opacity: 0.85;
  transform: translateY(-2px);
}

.btn.ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.btn.ghost:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.3);
}

.btn.small {
  padding: 0.55rem 1.2rem;
  font-size: 0.8rem;
}

/* ─── Header ─── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(13, 13, 13, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 0;
  gap: 1rem;
}

.brand {
    width: 100px;
}

.brand svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.site-nav {
  display: flex;
  gap: 1.8rem;
  align-items: center;
}

.nav-link {
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  transition: color 0.2s;
  position: relative;
  white-space: nowrap;
}

.nav-link:hover { color: var(--text); }

.nav-link.is-active {
  color: var(--text);
}

.nav-link.is-active::after {
  content: "";
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 1px;
  background: var(--text);
}

.menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
  font-family: var(--font-body);
  cursor: pointer;
}

/* ─── Hero ─── */

.hero {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 5rem;
  align-items: center;
  padding: 100px 0 90px;
  min-height: 90vh;
}

.hero-text {
  text-align: right;
}

.hero-byline {
  display: block;
  font-size: 0.4em;
  font-weight: 400;
  color: var(--text-muted);
  text-align: right;
  margin-top: 0.4rem;
}

.hero-eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 1.8rem;
}

.hero-desc {
  margin-top: 1.6rem;
  max-width: 440px;
  font-size: 1rem;
}

.hero-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 2.5rem;
}

.hero-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  max-height: 75vh;
}

.hero-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13, 13, 13, 0.35) 0%, transparent 45%);
  pointer-events: none;
}

/* ─── Eyebrow / section labels ─── */

.eyebrow {
  display: block;
  font-size: 0.7rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 0.6rem;
}

/* Heading with trailing dash (matches reference design) */
.section-heading {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  white-space: nowrap;
}

.section-heading::after {
  content: "";
  display: block;
  width: 44px;
  height: 1px;
  background: var(--text-dim);
  flex-shrink: 0;
}

/* ─── Section head (title + CTA row) ─── */

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 3rem;
}

/* ─── Gallery / Cards ─── */

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.card-meta-top {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.9rem 1rem 0;
  font-size: 0.7rem;
  color: var(--text-dim);
  letter-spacing: 0.05em;
}

.card-meta-top span {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.card-meta-top svg {
  width: 11px;
  height: 11px;
  opacity: 0.5;
}

.preview {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  margin-top: 0.75rem;
}

.preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .preview img {
  transform: scale(1.05);
}

.preview.is-locked img {
  transform: scale(1.01);
}

.preview.is-locked::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background-image: var(--watermark-image), repeating-linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.05) 0 1px,
    transparent 1px 22px
  );
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  background-size: min(60%, 360px) auto, auto;
}

.preview.is-locked::after {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.65);
  font-family: var(--font-body);
  font-size: clamp(0.6rem, 1.8vw, 0.82rem);
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.9);
}

.badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 3;
  background: rgba(13, 13, 13, 0.82);
  color: var(--text-muted);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  font-size: 0.64rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border: 1px solid var(--border);
}

.card-body {
  padding: 1.2rem 1rem 1.4rem;
}

.card-body h3 {
  font-size: 1.08rem;
  margin-bottom: 0.5rem;
  color: var(--text);
}

.card-body p {
  font-size: 0.86rem;
  line-height: 1.55;
}

.card-meta {
  display: flex;
  gap: 1rem;
  font-size: 0.68rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 1rem;
}

/* ─── About section ─── */

.about-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 6rem;
  align-items: center;
}

.about-collage {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

.collage-img {
  border-radius: var(--radius-md);
  overflow: hidden;
}

.collage-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.collage-img:hover img { transform: scale(1.04); }

.collage-img.tall {
  grid-row: span 2;
  aspect-ratio: 3 / 5;
}

.collage-img.short {
  aspect-ratio: 4 / 3;
}

.about-text .divider {
  width: 36px;
  height: 1px;
  background: var(--text-dim);
  margin-bottom: 1.6rem;
}

.about-text h2 { margin-bottom: 1.4rem; }

.about-text p + p { margin-top: 1rem; }

.about-text .btn { margin-top: 2.5rem; }

/* ─── Steps ─── */

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
}

.step {
  padding: 1.8rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  color: var(--text-muted);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.2rem;
}

.step h3 { font-size: 1.05rem; margin-bottom: 0.6rem; }

/* ─── Banner ─── */

.banner {
  padding: 3rem;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

/* ─── Page hero ─── */

.page-hero {
  padding: 80px 0 50px;
  border-bottom: 1px solid var(--border);
}

.page-hero h1 { margin-top: 0.5rem; }
.page-hero > .container > p { margin-top: 1rem; max-width: 600px; }

/* ─── Chips ─── */

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.8rem;
}

.chip {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text-muted);
  border-radius: 999px;
  padding: 0.42rem 1rem;
  font-size: 0.8rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.chip:hover { color: var(--text); border-color: var(--border-strong); }

.chip.is-active {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ─── Tags ─── */

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.tag {
  padding: 0.35rem 0.9rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.78rem;
}

/* ─── Split layout ─── */

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

/* ─── Contact ─── */

.contact-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 2rem;
}

.contact-card, .contact-form {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

.contact-list {
  display: grid;
  gap: 0.9rem;
  margin-top: 1.5rem;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ─── Forms ─── */

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-bottom: 1.2rem;
}

.form-field label {
  font-size: 0.75rem;
  color: var(--text-dim);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

input, textarea, select {
  font-family: var(--font-body);
  font-size: 0.93rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text);
  transition: border-color 0.2s;
  appearance: none;
}

input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--border-strong);
}

textarea {
  min-height: 140px;
  resize: vertical;
}

/* ─── Shop / Product ─── */

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.4rem;
}

.price {
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--text);
}

.product-card {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  border-color: var(--border-strong);
}

.product-body { padding: 1.2rem; }

.notice {
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-top: 0.5rem;
}

/* ─── Login ─── */

.login-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 3rem;
  align-items: center;
}

.login-card {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 2.5rem;
  border: 1px solid var(--border);
}

/* ─── Client / Purchase ─── */

.purchase-list { display: grid; gap: 1rem; }

.purchase-card {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr auto;
  align-items: start;
  gap: 1rem;
  padding: 1.2rem 1.5rem;
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.status {
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.64rem;
  font-weight: 600;
  justify-self: start;
}

.status.paid {
  background: rgba(80, 200, 140, 0.1);
  color: #5dc98a;
  border: 1px solid rgba(80, 200, 140, 0.2);
}

.status.locked {
  background: rgba(255, 180, 80, 0.1);
  color: #e8a44a;
  border: 1px solid rgba(255, 180, 80, 0.2);
}

/* ─── FAQ / Details ─── */

details {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 1.2rem 1.5rem;
  border: 1px solid var(--border);
}

details + details { margin-top: 0.6rem; }

details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  font-size: 0.95rem;
  list-style: none;
}

details summary::-webkit-details-marker { display: none; }

details p { margin-top: 0.9rem; font-size: 0.9rem; }

/* ─── Footer ─── */

.site-footer {
  padding: 60px 0 70px;
  border-top: 1px solid var(--border);
  margin-top: 60px;
}

.footer-grid {
  display: grid;
  gap: 3rem;
  grid-template-columns: 1.4fr 0.8fr 1fr;
}

.footer-brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.6rem;
}

.footer-links {
  display: grid;
  gap: 0.65rem;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.footer-links a:hover { color: var(--text); }

/* ─── Dialog ─── */

.dialog {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0;
  width: min(500px, 90vw);
  background: var(--bg-elevated);
  color: var(--text);
  box-shadow: var(--shadow);
}

.dialog::backdrop { background: rgba(0, 0, 0, 0.75); }

.dialog-content {
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* ─── Reveal animation ─── */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive ─── */

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    min-height: auto;
    padding: 70px 0 60px;
    gap: 3rem;
  }

  .hero-image {
    aspect-ratio: 16 / 9;
    max-height: 55vh;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  /* Mostra texto antes da colagem em telas menores */
  .about-collage { order: 1; }
  .about-text { order: -1; }

  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .split, .contact-grid, .login-grid {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .section { padding: 80px 0; }
  .page-hero { padding: 64px 0 44px; }
}

@media (max-width: 768px) {
  .menu-toggle { display: inline-flex; }

  .site-nav {
    position: fixed;
    top: 62px;
    right: 0;
    width: min(300px, 85vw);
    height: calc(100vh - 62px);
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    padding: 1.5rem;
    gap: 0;
    transform: translateX(110%);
    visibility: hidden;
    transition: transform 0.3s ease, visibility 0.3s;
    border-left: 1px solid var(--border);
    overflow-y: auto;
    z-index: 99;
  }

  /* Área de toque maior nos links do nav mobile */
  .site-nav .nav-link,
  .site-nav span.nav-link {
    width: 100%;
    padding: 1rem 0;
    border-bottom: 1px solid var(--border);
    font-size: 1rem;
  }

  .site-nav .btn.small.ghost {
    width: 100%;
    border-radius: 0;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border);
    padding: 1rem 0;
    justify-content: flex-start;
    font-size: 1rem;
  }

  body.nav-open .site-nav { transform: translateX(0); visibility: visible; }

  /* Overlay escuro ao abrir nav — gerado via JS */
  .nav-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 98;
  }

  body.nav-open .nav-overlay { display: block; }

  .banner {
    flex-direction: column;
    align-items: flex-start;
    padding: 2rem;
  }

  .purchase-card {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .section { padding: 64px 0; }
  .page-hero { padding: 52px 0 36px; }

  /* Previne zoom automático do iOS ao focar inputs */
  input, textarea, select { font-size: 16px; }
}

@media (max-width: 540px) {
  h1 { font-size: clamp(1.9rem, 8vw, 4rem); }

  .hero { gap: 2rem; padding: 52px 0 44px; }
  .hero-image { max-height: 44vh; }
  .hero-actions { flex-direction: column; align-items: stretch; }

  .gallery { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .page-hero { padding: 44px 0 30px; }

  /* Colagem vertical muito alta — aplana para mobile */
  .collage-img.tall { aspect-ratio: 4 / 3; grid-row: span 1; }

  .banner { padding: 1.5rem; gap: 1rem; }

  .cart-btn { bottom: 1.5rem; right: 1.2rem; }
  .cart-toast { bottom: 4.8rem; right: 1.2rem; }
}

/* ─── Lightbox ─── */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.93);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  gap: 1rem;
}

.lightbox[hidden] { display: none; }

.lightbox-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  z-index: 1;
  font-family: var(--font-body);
}

.lightbox-close:hover { background: rgba(255, 255, 255, 0.1); }

.lightbox-inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  max-width: 100%;
}

.lightbox-img-wrap {
  max-width: min(860px, calc(100vw - 120px));
  max-height: 65vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox-img-wrap.is-watermarked {
  position: relative;
}

.lightbox-img-wrap.is-watermarked::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background-image: var(--watermark-image), repeating-linear-gradient(
    135deg,
    rgba(255,255,255,0.03) 0 1px,
    transparent 1px 22px
  );
  background-repeat: no-repeat, repeat;
  background-position: center, center;
  background-size: min(50%, 260px) auto, auto;
  pointer-events: none;
}

.lightbox-img-wrap.is-watermarked::after {
  content: "© Emerson Santucci Photography";
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.55);
  font-family: var(--font-body);
  font-size: clamp(0.55rem, 1.4vw, 0.78rem);
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  transform: rotate(-12deg);
  text-shadow: 0 2px 10px rgba(0,0,0,0.9);
  pointer-events: none;
}

.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 65vh;
  object-fit: contain;
  border-radius: var(--radius-md);
  display: block;
  user-select: none;
}

.lightbox-nav {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: var(--text);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
  font-family: var(--font-body);
}

.lightbox-nav:hover { background: rgba(255, 255, 255, 0.1); }
.lightbox-nav[hidden] { visibility: hidden; pointer-events: none; }

.lightbox-bottom {
  width: 100%;
  max-width: min(860px, calc(100vw - 120px));
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.lightbox-thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 2px;
}

.lightbox-thumbs::-webkit-scrollbar { display: none; }

.lightbox-thumb {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s, opacity 0.2s;
  background: transparent;
  padding: 0;
  opacity: 0.5;
}

.lightbox-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.lightbox-thumb.is-active { border-color: var(--text); opacity: 1; }
.lightbox-thumb:hover { opacity: 0.85; }

.lightbox-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.8rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.lightbox-footer-info h3 {
  font-size: clamp(1rem, 2vw, 1.3rem);
  color: var(--text);
}

.lightbox-footer-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
}

@media (max-width: 600px) {
  /* Botões de nav ficam sobrepostos à imagem para maximizar área */
  .lightbox-inner { position: relative; width: 100%; justify-content: center; }

  .lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.55);
    border-color: rgba(255, 255, 255, 0.25);
    width: 38px;
    height: 38px;
    font-size: 0.85rem;
    z-index: 2;
  }

  #lb-prev { left: 0.5rem; }
  #lb-next { right: 0.5rem; }

  .lightbox-img-wrap {
    max-width: calc(100vw - 24px);
    max-height: 56vh;
    width: 100%;
  }

  .lightbox-img-wrap img { max-height: 56vh; }
  .lightbox-bottom { max-width: calc(100vw - 24px); }

  .lightbox-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.8rem;
  }
}

@media print { body { display: none !important; } }

/* ─── Cart ─── */

.cart-btn {
  position: fixed;
  bottom: 2rem;
  right: 2rem;
  z-index: 500;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--text);
  color: var(--bg);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
  transition: transform 0.2s;
}

.cart-btn:hover { transform: scale(1.08); }

.cart-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  background: #e05b5b;
  color: #fff;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  font-family: var(--font-body);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

.cart-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1100;
}

.cart-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(400px, 100vw);
  height: 100vh;
  background: var(--bg-card);
  border-left: 1px solid var(--border);
  z-index: 1200;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.3s ease;
}

.cart-drawer.is-open { transform: translateX(0); }

.cart-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.4rem 1.5rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.cart-drawer-head h3 { font-size: 1.05rem; }

.cart-close {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  font-family: var(--font-body);
  transition: color 0.2s;
}

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

.cart-items {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.cart-empty {
  color: var(--text-muted);
  font-size: 0.9rem;
  text-align: center;
  padding: 3rem 0;
}

.cart-item {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  align-items: center;
  gap: 0.8rem;
  padding: 0.8rem;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.cart-item-img {
  width: 52px;
  height: 52px;
  border-radius: 6px;
  overflow: hidden;
  background: var(--bg-card);
  flex-shrink: 0;
}

.cart-item-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cart-item-info {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.cart-item-info strong {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-item-info span {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cart-item-remove {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 1.1rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  font-family: var(--font-body);
  transition: color 0.2s;
  flex-shrink: 0;
}

.cart-item-remove:hover { color: #e05b5b; }

.cart-footer {
  padding: 1.2rem 1.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-shrink: 0;
}

.cart-total-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.cart-total-row strong {
  font-size: 1.15rem;
  color: var(--text);
}

.cart-email-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.cart-email-label {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.cart-email-input {
  width: 100%;
  padding: 0.55rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 0.9rem;
  transition: border-color 0.2s;
  box-sizing: border-box;
}

.cart-email-input:focus {
  outline: none;
  border-color: var(--border-strong);
}

.cart-coupon-wrap {
  padding: 0.6rem 0;
  border-top: 1px solid var(--border);
}

.cart-coupon-row {
  display: flex;
  gap: 0.5rem;
}

.cart-coupon-input {
  flex: 1;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  font-size: 0.85rem;
  color: var(--text);
  font-family: var(--font-body);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.cart-coupon-input:focus { outline: none; border-color: rgba(255,255,255,0.3); }

.cart-coupon-applied {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(109, 191, 109, 0.1);
  border: 1px solid rgba(109, 191, 109, 0.3);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 500;
  color: #6dbf6d;
}

.cart-coupon-remove {
  background: none;
  border: none;
  color: rgba(109, 191, 109, 0.6);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  padding: 0;
}

.cart-coupon-remove:hover { color: #6dbf6d; }

.cart-coupon-error {
  font-size: 0.78rem;
  color: #e57373;
  margin-top: 0.35rem;
}

#cart-discount-value { color: #6dbf6d; }

.cart-secure-hint {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.76rem;
  color: var(--text-muted);
  margin: 0;
}

.cart-toast {
  position: fixed;
  bottom: 5.2rem;
  right: 2rem;
  z-index: 1300;
  background: var(--bg-elevated);
  border: 1px solid var(--border-strong);
  color: var(--text);
  padding: 0.7rem 1.1rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  font-family: var(--font-body);
  opacity: 0;
  transform: translateY(6px);
  transition: opacity 0.25s, transform 0.25s;
  pointer-events: none;
}

.cart-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Lightbox: preço + ações ─── */

.lightbox-footer-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

.lb-price {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

.thumb-check {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.75);
  background: rgba(0, 0, 0, 0.45);
  pointer-events: none;
  transition: background 0.15s, border-color 0.15s;
}

.lightbox-thumb.is-selected .thumb-check {
  background: #c9a96e;
  border-color: #c9a96e;
}

.lightbox-thumb.is-selected .thumb-check::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 10px;
  color: #fff;
  font-weight: 700;
  line-height: 1;
}

.lb-pkg {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

/* ─── Formas de pagamento no lightbox ─── */
.lb-payments {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.45rem 0.8rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.lb-payments-label {
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.lb-payments-icons {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.lb-pay-badge {
  height: 26px;
  min-width: 40px;
  padding: 0 8px;
  background: #fff;
  border-radius: 5px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.lb-pay-badge svg {
  display: block;
  height: 16px;
  width: auto;
}

.lb-pay-badge.is-pix svg { height: 18px; }
