/* ═══════════════════════════════════════════════════════════════
   Dragons Lab — custom-card.css
   Específico da página custom-card.php
   Depende de global.css
   ═══════════════════════════════════════════════════════════════ */

/* ─── PRODUCT SECTION ────────────────────────────────────────── */
.product-section { padding: 56px 0 80px; position: relative; z-index: 1; }

.product-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}

/* ─── GALERIA ─────────────────────────────────────────────────── */
.product-gallery {
  position: sticky;
  top: 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.gallery-main {
  position: relative;
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  padding: 32px;
  min-height: 400px;
}
.gallery-main-img img {
  width: 100%; max-width: 280px; height: auto;
  aspect-ratio: 5/7; object-fit: cover;
  border-radius: 10px; display: block; margin: 0 auto;
  box-shadow: 0 24px 80px rgba(0,0,0,.7), 0 0 40px var(--gold-glow);
  transition: opacity .18s ease;
}
.gallery-badge {
  position: absolute; top: 16px; left: 16px;
  display: flex; align-items: center; gap: 6px;
  padding: 6px 12px;
  background: rgba(196,160,82,.12);
  border: 1px solid var(--border-gold);
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold-light);
}
.gallery-badge i { font-size: 11px; }

/* Thumbnails */
.gallery-thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb-btn {
  flex: 0 0 calc(12.5% - 7px);
  aspect-ratio: 5/7; overflow: hidden;
  background: var(--bg-3); border: 1px solid var(--border);
  padding: 0; cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.thumb-btn img { width: 100%; height: 100%; object-fit: cover; display: block; transition: opacity .2s; }
.thumb-btn:not(.active) img { opacity: .55; }
.thumb-btn:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.thumb-btn:hover img { opacity: .85; }
.thumb-btn.active { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.thumb-btn.active img { opacity: 1; }

/* Trust badges */
.trust-badges { display: flex; gap: 0; border: 1px solid var(--border); }
.trust-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; gap: 6px;
  padding: 14px 8px;
  border-right: 1px solid var(--border); text-align: center;
}
.trust-item:last-child { border-right: none; }
.trust-item i { color: var(--gold); font-size: 16px; }
.trust-item span {
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); line-height: 1.3;
}

/* ─── PRODUTO: cabeçalho ─────────────────────────────────────── */
.product-form-col { display: flex; flex-direction: column; gap: 0; }
.product-header { margin-bottom: 28px; }

.product-title {
  font-family: var(--ff-display);
  font-size: clamp(28px, 3.5vw, 44px);
  font-weight: 700; line-height: 1.05;
  background: linear-gradient(135deg, #e8c97a 0%, #c4a052 40%, #f0d896 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  margin-bottom: 14px;
}
.product-desc { font-size: 15px; color: var(--text-muted); line-height: 1.75; margin-bottom: 24px; max-width: 480px; }

/* Acabamento */
.finish-label {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--text-faint); margin-bottom: 10px;
}
.finish-options { display: flex; gap: 10px; }
.finish-btn {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  padding: 14px 12px;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text-muted);
  font-family: var(--ff-display); font-size: 13px; font-weight: 500;
  letter-spacing: .06em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.finish-btn i { font-size: 16px; margin-bottom: 2px; }
.finish-desc {
  font-family: var(--ff-mono); font-size: 9px;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--text-faint); font-weight: 400;
}
.finish-btn:hover { background: var(--surface-2); border-color: var(--border-gold); color: var(--text); }
.finish-btn.active { background: var(--gold-glow); border-color: var(--gold); color: var(--gold-light); }
.finish-btn.active .finish-desc { color: var(--gold); }

/* Divider dourado */
.form-divider {
  height: 1px;
  background: linear-gradient(to right, var(--border-gold), transparent);
  margin: 4px 0 28px;
}

/* ─── FORM FIELDS ────────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-bottom: 24px; }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field--full { grid-column: span 2; }

.field-label {
  display: flex; align-items: center; gap: 7px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--text-muted);
}
.field-label i { color: var(--gold); font-size: 11px; }
.field-required { color: var(--red-light); font-size: 12px; }
.field-optional { font-size: 9px; color: var(--text-faint); letter-spacing: .1em; font-style: italic; text-transform: lowercase; }

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); font-family: var(--ff-body); font-size: 15px;
  padding: 12px 16px; outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
  appearance: none; -webkit-appearance: none;
}
.field-input::placeholder,
.field-textarea::placeholder { color: var(--text-faint); font-size: 14px; }
.field-input:focus,
.field-select:focus,
.field-textarea:focus { border-color: var(--gold); background: var(--surface-2); box-shadow: 0 0 0 3px rgba(196,160,82,.1); }
.field-textarea { resize: vertical; min-height: 100px; }
.field-hint { font-family: var(--ff-mono); font-size: 10px; color: var(--text-faint); letter-spacing: .08em; }

/* Select customizado */
.select-wrap { position: relative; }
.select-wrap .field-select { padding-right: 36px; cursor: pointer; }
.select-arrow { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); color: var(--gold); font-size: 10px; pointer-events: none; }

/* ─── UPLOAD ZONE ────────────────────────────────────────────── */
.upload-zone {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px;
  padding: 28px 20px;
  background: var(--surface);
  border: 1px dashed rgba(196,160,82,.35);
  cursor: pointer;
  transition: background .2s, border-color .2s; text-align: center;
}
.upload-zone:hover,
.upload-zone.dragover { background: var(--surface-2); border-color: var(--gold); }
.upload-icon { font-size: 28px; color: var(--gold); opacity: .7; }
.upload-text { font-family: var(--ff-body); font-size: 14px; color: var(--text-muted); }
.upload-hint { font-family: var(--ff-mono); font-size: 10px; letter-spacing: .1em; color: var(--text-faint); }

.upload-preview {
  position: relative; display: flex; align-items: flex-start; gap: 12px;
  padding: 12px; background: var(--surface); border: 1px solid var(--border-gold);
}
.upload-preview img { max-width: 100px; border-radius: 4px; object-fit: cover; }
.preview-remove {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(220,38,38,.2); border: 1px solid rgba(220,38,38,.4);
  color: var(--red-light); font-size: 12px; cursor: pointer; transition: background .2s;
}
.preview-remove:hover { background: rgba(220,38,38,.4); }

/* ─── SUBMIT ─────────────────────────────────────────────────── */
.btn-submit {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 32px;
  background: linear-gradient(135deg, var(--gold-dark), var(--gold), var(--gold-light));
  background-size: 200% 200%;
  color: var(--bg); font-family: var(--ff-display); font-size: 14px;
  font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  border: none;
  clip-path: polygon(10px 0%, 100% 0%, calc(100% - 10px) 100%, 0% 100%);
  cursor: pointer;
  transition: background-position .4s, opacity .2s, transform .2s;
  margin-bottom: 12px;
}
.btn-submit:hover:not(:disabled) { background-position: right center; transform: translateY(-1px); }
.btn-submit:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-submit i { font-size: 15px; }

.form-note {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: .1em; color: var(--text-faint); justify-content: center;
}
.form-note i { color: var(--gold); font-size: 11px; }

/* ─── FAQ ─────────────────────────────────────────────────────── */
.faq-section {
  padding: 80px 0 96px; background: var(--bg-2);
  border-top: 1px solid var(--border); position: relative; z-index: 1;
}
.faq-header { text-align: center; margin-bottom: 56px; }
.faq-grid { display: grid; grid-template-columns: 1fr 320px; gap: 48px; align-items: start; }
.faq-list { display: flex; flex-direction: column; gap: 2px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); }
.faq-item.open { border-color: var(--border-gold); }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; background: none; border: none;
  color: var(--text); font-family: var(--ff-display); font-size: 15px;
  font-weight: 500; letter-spacing: .03em; text-align: left; cursor: pointer; transition: color .2s;
}
.faq-q:hover { color: var(--gold-light); }
.faq-item.open .faq-q { color: var(--gold-light); }
.faq-icon { flex-shrink: 0; font-size: 11px; color: var(--gold); transition: transform .3s var(--ease-out); }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { padding: 0 20px 18px; font-size: 15px; color: var(--text-muted); line-height: 1.75; }
.faq-a p { margin: 0; }
.faq-a a { color: var(--gold); text-decoration: underline; text-underline-offset: 3px; }
.faq-a strong { color: var(--text); }
.faq-a[hidden] { display: none; }

/* Card de contato */
.faq-contact-card {
  position: sticky; top: 96px;
  background: var(--surface); border: 1px solid var(--border-gold);
  padding: 32px 28px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
}
.faq-contact-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(37,211,102,.1); border: 1px solid rgba(37,211,102,.25);
  border-radius: 50%; color: #25d366; font-size: 24px;
}
.faq-contact-title { font-family: var(--ff-display); font-size: 18px; font-weight: 600; color: var(--gold-light); }
.faq-contact-desc { font-size: 14px; color: var(--text-muted); line-height: 1.65; }
.faq-contact-card .btn-whatsapp { width: 100%; justify-content: center; }
.faq-contact-divider { width: 100%; height: 1px; background: var(--border); margin: 4px 0; }
.faq-contact-email { font-size: 13px; color: var(--text-faint); line-height: 1.6; }
.faq-contact-email a { color: var(--gold); transition: color .2s; }
.faq-contact-email a:hover { color: var(--gold-light); }

/* ─── RESPONSIVE ─────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .product-grid { grid-template-columns: 1fr; gap: 40px; }
  .product-gallery { position: static; }
  .gallery-main { min-height: 320px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-contact-card { position: static; }
}
@media (max-width: 768px) {
  .product-section { padding: 32px 0 56px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field--full { grid-column: span 1; }
  .finish-options { flex-direction: column; }
  .trust-badges { flex-direction: column; }
  .trust-item { border-right: none; border-bottom: 1px solid var(--border); flex-direction: row; justify-content: center; }
  .trust-item:last-child { border-bottom: none; }
  .thumb-btn { flex: 0 0 calc(25% - 6px); }
}
@media (max-width: 480px) {
  .gallery-main { padding: 20px; }
  .thumb-btn { flex: 0 0 calc(33.33% - 6px); }
}
