/* ==========================================================================
   Meu Evento Perfeito — Supplier Detail Page
   ========================================================================== */

.supplier-detail-hero {
  position: relative;
  z-index: 2;
  min-height: 320px;
  display: flex;
  align-items: flex-end;
  padding: 100px 60px 0;
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green-mid) 60%, var(--green-light) 100%);
  overflow: visible;
}
/* Background image layer */
.supplier-detail-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
  z-index: 0;
}
.supplier-detail-hero .hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg,
    rgba(13,74,67,0.88) 0%,
    rgba(26,107,94,0.82) 40%,
    rgba(45,139,122,0.78) 100%);
  z-index: 1;
}
.supplier-detail-hero::before {
  content: '';
  position: absolute;
  top: -80px; right: -80px;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(200,149,107,0.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
  clip-path: inset(0);
}

.supplier-profile-card {
  position: relative;
  z-index: 3;
  display: flex;
  gap: 32px;
  align-items: flex-end;
  max-width: 1200px;
  margin: 0 auto;
  transform: translateY(50px);
  width: 100%;
}

.supplier-profile-logo {
  width: 160px;
  height: 160px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: white;
  box-shadow: var(--shadow-lg);
  flex-shrink: 0;
  border: 4px solid white;
}
.supplier-profile-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.supplier-profile-logo .no-logo {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
  color: var(--border);
  background: var(--off-white);
}

.supplier-profile-info {
  padding-bottom: 20px;
}
.supplier-profile-info h1 {
  font-family: 'Playfair Display', serif;
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 700;
  color: white;
  margin-bottom: 8px;
  line-height: 1.2;
}
.supplier-profile-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.supplier-profile-badge {
  display: inline-block;
  padding: 4px 14px;
  background: var(--green-dark, #0d4a43);
  color: white;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.3px;
}
.supplier-profile-location {
  font-size: 14px;
  color: var(--green-dark, #0d4a43);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,0.9);
  padding: 4px 14px;
  border-radius: 20px;
  backdrop-filter: blur(4px);
  font-weight: 500;
}
.supplier-profile-location i { color: var(--accent); }

/* ── Content area ─────────────────────────────────────────────────────── */
.supplier-detail-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 100px 60px 40px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
}

.supplier-detail-main h2 {
  font-family: 'Playfair Display', serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 16px;
}
.supplier-detail-desc {
  font-size: 16px;
  color: var(--text-mid);
  line-height: 1.8;
  white-space: pre-line;
  margin-bottom: 32px;
}

/* Contact sidebar — WhatsApp card */
.supplier-contact-card.whatsapp-card {
  background: white;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 28px 28px;
  position: sticky;
  top: 112px;
  height: fit-content;
  text-align: center;
  border: 2px solid rgba(37,211,102,0.15);
}
.wa-card-icon {
  width: 64px; height: 64px;
  border-radius: 50%;
  background: linear-gradient(135deg, #25d366 0%, #128c7e 100%);
  color: white;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
  margin: 0 auto 18px;
  box-shadow: 0 8px 24px rgba(37,211,102,0.25);
}
.supplier-contact-card.whatsapp-card h3 {
  font-family: 'Playfair Display', serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--green-dark);
  margin-bottom: 10px;
}
.wa-card-desc {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
  margin-bottom: 22px;
}
.wa-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 16px;
  border-radius: var(--radius-sm);
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  background: #25d366;
  color: white;
  transition: var(--transition);
  font-family: 'DM Sans', sans-serif;
}
.wa-card-btn:hover {
  background: #1fba59;
  box-shadow: 0 8px 24px rgba(37,211,102,0.35);
  transform: translateY(-2px);
}
.wa-card-btn i { font-size: 20px; }
.wa-card-number {
  display: block;
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-light);
  letter-spacing: 0.3px;
}

/* ── Photo Gallery ────────────────────────────────────────────────────── */
.supplier-gallery {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--off-white);
}
.gallery-track {
  display: flex;
  transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.gallery-slide {
  min-width: 100%;
  aspect-ratio: 16/10;
  cursor: pointer;
}
.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.gallery-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.92);
  color: var(--green-dark);
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 2px 12px rgba(0,0,0,0.12);
  transition: var(--transition);
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.gallery-btn:hover { background: white; box-shadow: 0 4px 20px rgba(0,0,0,0.18); }
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.gallery-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 2;
}
.gallery-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid white;
  background: transparent;
  cursor: pointer;
  transition: var(--transition);
  padding: 0;
  box-shadow: 0 1px 4px rgba(0,0,0,0.2);
}
.gallery-dot.active { background: white; }

/* Lightbox */
.gallery-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
}
.gallery-lightbox.open { display: flex; }
.lightbox-close {
  position: absolute;
  top: 20px; right: 20px;
  width: 48px; height: 48px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px; height: 52px;
  border-radius: 50%;
  border: none;
  background: rgba(255,255,255,0.12);
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex; align-items: center; justify-content: center;
  z-index: 2;
}
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.25); }
.lightbox-img-wrap {
  max-width: 90vw;
  max-height: 85vh;
  text-align: center;
}
.lightbox-img-wrap img {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 8px;
  object-fit: contain;
}
.lightbox-caption {
  color: rgba(255,255,255,0.75);
  font-size: 14px;
  margin-top: 12px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .supplier-detail-hero { padding: 100px 30px 0; }
  .supplier-detail-content { padding: 100px 30px 40px; gap: 32px; }
}

@media (max-width: 768px) {
  .supplier-detail-hero { padding: 100px 20px 0; min-height: 260px; }
  .supplier-profile-card { flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  .supplier-profile-logo { width: 120px; height: 120px; }
  .supplier-profile-info { padding-bottom: 10px; }
  .supplier-profile-badges { justify-content: center; }
  .supplier-profile-location { justify-content: center; }
  .supplier-detail-content {
    padding: 120px 20px 40px;
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .supplier-contact-card { position: static; }
  .supplier-contact-card.whatsapp-card { position: static; }
  .gallery-btn { width: 38px; height: 38px; font-size: 14px; }
  .gallery-prev { left: 8px; }
  .gallery-next { right: 8px; }
  .lightbox-prev, .lightbox-next { width: 44px; height: 44px; }
  .lightbox-prev { left: 10px; }
  .lightbox-next { right: 10px; }
}
