/* ═══════════════════════════════════════════
   SPICE PEPTIDES — PRODUCTS STYLESHEET
   style-produtos.css (produtos + outros-produtos)
═══════════════════════════════════════════ */

:root {
  --primary:        #2563eb;
  --primary-light:  #3b82f6;
  --primary-soft:   rgba(37,99,235,0.08);
  --primary-border: rgba(37,99,235,0.22);

  --bg:       #ffffff;
  --surface:  #f8fafc;
  --surface-2:#f1f5f9;

  --text:      #0c1628;
  --text-muted:#5a6a85;
  --text-sub:  #94a3b8;

  --border:    rgba(148,163,184,0.18);
  --shadow-sm: 0 8px 24px rgba(15,23,42,0.06);
  --shadow-md: 0 20px 48px rgba(15,23,42,0.10);

  --nav-h: 80px;
  --radius: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
img { display: block; max-width: 100%; }
a { -webkit-tap-highlight-color: transparent; }

body {
  font-family: 'Sora', sans-serif;
  background: linear-gradient(180deg, #f8fbff 0%, #ffffff 140px);
  color: var(--text);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  padding-top: var(--nav-h);
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255,255,255,0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  z-index: 900;
  transition: box-shadow 0.3s ease;
}
nav.scrolled { box-shadow: 0 4px 32px rgba(15,23,42,0.08); }

.nav-logo {
  height: 68px;
  transition: transform 0.3s ease, filter 0.3s ease;
  filter: drop-shadow(0 3px 10px rgba(37,99,235,0.2));
}
.nav-logo:hover {
  transform: scale(1.08);
  filter: drop-shadow(0 6px 18px rgba(37,99,235,0.38));
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link {
  padding: 9px 14px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  text-decoration: none;
  border-radius: 8px;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover { color: var(--primary); background: var(--primary-soft); }

.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(37,99,235,0.24);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.nav-cta:hover {
  background: var(--primary-light);
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(37,99,235,0.32);
}

/* ─── PAGE HEADER ─── */
.header {
  padding: 56px 40px 32px;
  text-align: center;
  max-width: 780px;
  margin: 0 auto;
}

.header-eyebrow {
  display: inline-block;
  margin-bottom: 14px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: 'DM Mono', monospace;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  padding: 5px 14px;
  border-radius: 999px;
}

.header h1 {
  font-size: clamp(28px, 4vw, 46px);
  font-weight: 800;
  letter-spacing: -0.04em;
  margin-bottom: 14px;
  line-height: 1.1;
}

.header p {
  font-size: 16px;
  line-height: 1.78;
  color: var(--text-muted);
}

/* ─── GRID ─── */
.grid-section {
  max-width: 1260px;
  margin: 0 auto;
  padding: 16px 32px 60px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

/* ─── CARD ─── */
.card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-border);
}
.card:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}

.card-image {
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 20px 20px;
  background: linear-gradient(160deg, #fff 0%, #f0f6ff 100%);
}
.card-image img {
  max-height: 450px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(15,23,42,0.09));
  transition: transform 0.3s ease;
}
.card:hover .card-image img { transform: scale(1.05) translateY(-4px); }

/* Glass body overlay */
.card-body {
  position: absolute;
  left: 10px; right: 10px; bottom: 10px;
  z-index: 2;
  padding: 14px 14px 12px;
  text-align: center;
  background: rgba(10,18,35,0.48);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.10);
  border-radius: 14px;
}

.card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 3px;
  color: #fff;
}
.card p {
  font-size: 12px;
  line-height: 1.5;
  color: rgba(255,255,255,0.75);
  margin-bottom: 8px;
}
.card-saiba {
  font-size: 11px;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.04em;
  transition: letter-spacing 0.2s;
}
.card:hover .card-saiba { letter-spacing: 0.08em; }

/* ─── UNAVAILABLE CARD ─── */
.card.unavailable { cursor: default; }
.card.unavailable:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--border);
}
.card.unavailable .card-image img { filter: grayscale(0.55) drop-shadow(0 8px 18px rgba(15,23,42,0.06)); opacity: 0.7; }
.card.unavailable .card-image img:hover { transform: none; }

.badge-indisponivel {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 3;
  padding: 5px 11px;
  border-radius: 999px;
  background: rgba(15,23,42,0.72);
  backdrop-filter: blur(8px);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #f87171;
  border: 1px solid rgba(248,113,113,0.28);
}

/* ─── CAROUSEL CONTROLS ─── */
.carousel-controls {
  display: none;
  position: absolute;
  top: 50%;
  left: 0; right: 0;
  transform: translateY(-50%);
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
  z-index: 10;
}
.carousel-btn {
  pointer-events: all;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(10,18,35,0.55);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.14);
  color: #fff;
  font-size: 17px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.carousel-btn:hover { background: var(--primary); }

/* ─── FOOTER CTA ─── */
.footer-cta {
  max-width: 1260px;
  margin: 0 auto 60px;
  padding: 0 32px;
}

.footer-cta-box {
  background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 36px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: var(--shadow-sm);
}

.footer-cta-box h2 {
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.footer-cta-box p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 14px;
  max-width: 580px;
}

/* ─── MODAL ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(10,18,35,0.58);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }

.modal {
  position: relative;
  background: #fff;
  border-radius: 28px;
  width: 100%;
  max-width: 860px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 40px 90px rgba(10,18,35,0.24);
  transform: translateY(28px) scale(0.97);
  transition: transform 0.38s cubic-bezier(0.34,1.56,0.64,1);
}
.modal-overlay.active .modal { transform: translateY(0) scale(1); }

.modal-close {
  position: sticky;
  top: 14px;
  float: right;
  margin: 14px 14px 0 0;
  width: 34px; height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 10;
}
.modal-close:hover { background: #fee2e2; color: #dc2626; border-color: #fca5a5; }

.modal-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  clear: both;
}

.modal-image-col {
  padding: 36px 24px 36px 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(155deg, #f8fbff 0%, #eef5ff 100%);
  border-radius: 0 0 0 28px;
  border-right: 1px solid var(--border);
}

.modal-img-wrap {
  width: 100%;
  max-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal-img-wrap img {
  max-height: 8000px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 18px 36px rgba(15,23,42,0.10));
}

.modal-info-col { padding: 38px 36px 36px 32px; }

.modal-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
  font-family: 'DM Mono', monospace;
  margin-bottom: 10px;
  background: var(--primary-soft);
  border: 1px solid var(--primary-border);
  padding: 4px 12px;
  border-radius: 999px;
}

.modal-title {
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.15;
  margin-bottom: 14px;
  color: var(--text);
}

.modal-desc {
  font-size: 14px;
  line-height: 1.78;
  color: var(--text-muted);
  margin-bottom: 18px;
}

.modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 22px;
}
.modal-tag {
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  border: 1px solid var(--primary-border);
  font-family: 'DM Mono', monospace;
}

.modal-section { margin-bottom: 18px; }
.modal-section h4 {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-sub);
  margin-bottom: 8px;
  font-family: 'DM Mono', monospace;
}
.modal-section p {
  font-size: 14px;
  line-height: 1.76;
  color: var(--text-muted);
}

.modal-section ul {
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.modal-section ul li {
  font-size: 14px;
  color: var(--text-muted);
  padding-left: 20px;
  position: relative;
  line-height: 1.55;
}
.modal-section ul li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

.modal-cta {
  display: inline-flex;
  align-items: center;
  margin-top: 26px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  text-decoration: none;
  box-shadow: 0 10px 26px rgba(37,99,235,0.24);
  transition: transform 0.2s, background 0.2s, box-shadow 0.2s;
}
.modal-cta:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(37,99,235,0.30);
}

/* ─── FADE-IN ─── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}
.fade-in.show { opacity: 1; transform: translateY(0); }

/* ─── RESPONSIVE ─── */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  :root { --nav-h: 70px; }

  nav { padding: 0 20px; }
  .nav-logo { height: 56px; }
  .nav-link { display: none; }
  .nav-link.home { display: inline-flex; }

  .header { padding: 40px 24px 24px; }

  .grid-section { padding: 12px 20px 50px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }

  .footer-cta { padding: 0 20px; }
  .footer-cta-box { flex-direction: column; align-items: flex-start; padding: 28px; }

  .modal-inner { grid-template-columns: 1fr; }
  .modal-image-col {
    border-radius: 0;
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 28px 24px 18px;
    min-height: 240px;
  }

  .modal-img-wrap {
    max-width: 260px;
    width: 100%;
    margin: 0 auto;
  }

  .modal-img-wrap img {
    width: 100%;
    max-height: 260px;
    height: auto;
    object-fit: contain;
    display: block;
  }

  .modal-info-col { padding: 24px; }
}

@media (max-width: 640px) {
  .header { padding: 28px 16px 20px; }
  .header p { font-size: 14px; }

  /* carousel */
  .grid-section { position: relative; overflow: hidden; padding: 12px 0 50px; }
  .grid {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    transition: transform 0.4s ease;
    will-change: transform;
  }
  .card {
    flex: 0 0 100%;
    width: 100%;
    border-radius: 0;
    border-left: none;
    border-right: none;
  }
  .card-image { min-height: 500px; }
  .carousel-controls { display: flex; }

  .footer-cta { padding: 0 16px; margin-bottom: 56px; }
  .footer-cta-box { padding: 22px; }

  .modal { border-radius: 22px; max-height: 9500vh; }
  .modal-title { font-size: 21px; }

  .fade-in { opacity: 1; transform: none; }
}
