/* CarWoods v4 — Inquiry list, related products, empty states, sticky toolbar */

body.modal-open { overflow: hidden; }
body.has-inquiry-bar { padding-bottom: 72px; }
body.has-inquiry-bar .whatsapp-float { bottom: 88px; }
body.has-inquiry-bar .back-to-top { bottom: 88px; }

/* Sticky catalog — moved to v5 (pure CSS, no JS toggle) */

/* Empty catalog state */
.catalog-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-alt);
  border: 2px dashed var(--border);
  border-radius: 20px;
}
.catalog-empty-icon {
  font-size: 3rem;
  margin-bottom: 16px;
  opacity: 0.5;
}
.catalog-empty h3 {
  font-size: 1.25rem;
  margin-bottom: 8px;
}
.catalog-empty p {
  color: var(--text-muted);
  margin-bottom: 20px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}

/* Quote button on product card */
.product-card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.product-card-actions .btn-quote {
  grid-column: 1 / -1;
}
.btn-quote {
  background: var(--bg-alt);
  color: var(--text);
  border: 1px solid var(--border);
  font-size: 0.8125rem;
}
.btn-quote:hover { border-color: var(--accent); color: var(--accent); }
.btn-quote.in-list {
  background: var(--accent-light);
  border-color: var(--accent);
  color: var(--accent-hover);
}

/* Modal related products */
.modal { max-width: 880px; }
.modal-related {
  padding: 24px 32px 32px;
  border-top: 1px solid var(--border);
  background: var(--bg-alt);
}
.modal-related h3 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 16px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.related-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: border-color var(--transition), box-shadow var(--transition);
  text-align: left;
}
.related-item:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 16px rgba(232, 119, 34, 0.12);
}
.related-item img {
  width: 56px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.related-item-info strong {
  display: block;
  font-size: 0.8125rem;
  line-height: 1.35;
  margin-bottom: 2px;
}
.related-item-info span {
  font-size: 0.75rem;
  color: var(--accent);
  font-weight: 600;
}

.modal-actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.modal-actions-row .btn { flex: 1; min-width: 140px; justify-content: center; }

.modal-overlay.open .modal {
  animation: modalIn 0.28s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(0.96) translateY(12px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Inquiry quote bar */
.inquiry-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 1500;
  background: var(--primary);
  color: #fff;
  padding: 12px 0;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 -8px 32px rgba(12, 35, 64, 0.2);
}
.inquiry-bar.visible { transform: translateY(0); }
.inquiry-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.inquiry-bar-info {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
}
.inquiry-bar-count {
  background: var(--accent);
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.875rem;
}
.inquiry-bar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.inquiry-bar-actions .btn-outline-light {
  background: transparent;
  border: 1px solid rgba(255,255,255,0.35);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.875rem;
  cursor: pointer;
  transition: background var(--transition);
}
.inquiry-bar-actions .btn-outline-light:hover {
  background: rgba(255,255,255,0.1);
}

/* Homepage FAQ compact */
.faq-compact {
  max-width: 720px;
  margin: 0 auto;
}
.faq-compact .faq-item {
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
.faq-compact .faq-question {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  background: none;
  border: none;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.faq-compact .faq-question::after {
  content: '+';
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
  transition: transform 0.2s;
}
.faq-compact .faq-item.open .faq-question::after { transform: rotate(45deg); }
.faq-compact .faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}
.faq-compact .faq-item.open .faq-answer { max-height: 200px; }
.faq-compact .faq-answer p {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 0.9375rem;
  line-height: 1.7;
}

/* Trust strip on homepage */
.trust-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
  padding: 28px 0;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-muted);
}
.trust-item strong { color: var(--text); }

@media (max-width: 768px) {
  .related-grid { grid-template-columns: 1fr; }
  .modal-content { grid-template-columns: 1fr; }
  .inquiry-bar-inner { flex-direction: column; align-items: stretch; text-align: center; }
  .inquiry-bar-actions { justify-content: center; }
}
