* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: #f5f6f8;
  color: #1a1a1a;
}
.container { max-width: 640px; margin: 0 auto; padding: 16px; }

.topbar {
  background: #001f4d;
  color: #fff;
  padding: 16px 32px;
}
.topbar h1 { margin: 0; font-size: 1.1rem; }
.back-link { color: #fff; text-decoration: none; font-size: 0.95rem; }

.topbar-inner { display: flex; align-items: center; gap: 16px; }
.topbar-logo { height: 32px; width: auto; }
.topbar-nav-item {
  color: #fff;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  opacity: 0.8;
}
.topbar-nav-item.is-active { opacity: 1; border-bottom-color: #f5a623; }
.topbar-contact-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}

.mock-banner {
  margin-top: 8px;
  background: #ffcc00;
  color: #1a1a1a;
  font-size: 0.75rem;
  padding: 6px 8px;
  border-radius: 4px;
}

.filter-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1a1a1a;
  cursor: pointer;
}
.filter-toggle-btn.is-open { border-color: #0f4c81; color: #0f4c81; }

.filter-panel { display: none; }
.filter-panel.is-open { display: block; margin: 4px 0 12px; padding: 12px; background: #fff; border: 1px solid #eee; border-radius: 10px; }

.quick-filters { margin-bottom: 14px; display: flex; flex-direction: column; gap: 7px; }
.quick-filter-label { display: block; font-size: 0.68rem; font-weight: 600; text-transform: uppercase; color: #666; margin-bottom: 4px; }
.chip-group { display: flex; flex-wrap: wrap; gap: 4px; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid #ccc;
  border-radius: 999px;
  background: #fff;
  font-size: 0.68rem;
  color: #333;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.chip input { margin: 0; width: 12px; height: 12px; accent-color: #0f4c81; }
.chip:hover { border-color: #0f4c81; }
.chip.is-checked { background: #0f4c81; border-color: #0f4c81; color: #fff; }

.quick-filter-subgroup { margin-top: 5px; }
.quick-filter-sublabel { display: block; font-size: 0.64rem; color: #888; margin-bottom: 3px; }

.filters { margin-bottom: 12px; }
.filters input, .filters select {
  width: 100%;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 0.95rem;
  background: #fff;
}
.filter-row { display: flex; gap: 8px; }
.filter-row select { flex: 1; }

.search-box {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}
.search-icon { flex-shrink: 0; margin-top: 3px; }
.search-box-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.search-box-text input {
  border: none;
  outline: none;
  padding: 0;
  margin: 0;
  width: 100%;
  font-size: 0.95rem;
  background: transparent;
}
.search-example { font-size: 0.7rem; color: #999; }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 10px;
}
.product-count { font-size: 1.05rem; font-weight: 700; color: #1a1a1a; }
.results-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sort-select-wrap { display: flex; align-items: center; gap: 6px; font-size: 0.82rem; color: #555; }
.sort-select-wrap select {
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 6px 8px;
  font-size: 0.82rem;
  background: #fff;
}

.product-list { display: flex; flex-direction: column; gap: 14px; }
.product-card {
  display: flex;
  align-items: flex-start;
  gap: 0;
  background: #fff;
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 1px 4px rgba(0,0,0,0.1);
}
.product-thumb-wrap { position: relative; width: 170px; flex-shrink: 0; }
.product-thumb {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  background: #e8eaed;
}
.product-thumb-empty { height: 120px; background: linear-gradient(135deg, #e8eaed, #dfe3e8); }
.duration-badge {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.65);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 4px;
}
.product-card-body { min-width: 0; flex: 1; display: flex; flex-direction: column; padding: 14px; }
.product-card-top { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 6px; }
.product-card .brand-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  background: #e8f0fe;
  color: #0f4c81;
  padding: 2px 6px;
  border-radius: 4px;
}
.product-card h3 { margin: 0 0 8px; font-size: 1rem; line-height: 1.3; }
.meta-row-icons { display: flex; flex-wrap: wrap; gap: 10px; font-size: 0.78rem; color: #555; margin-bottom: 8px; }
.meta-row-icons span { display: inline-flex; align-items: center; gap: 3px; }
.product-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; }
.price-block { display: flex; flex-direction: column; }
.price-label { font-size: 0.7rem; color: #888; }
.product-card .price { font-weight: 700; color: #0f4c81; font-size: 1.05rem; }
.detail-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: #fff;
  color: #0f4c81;
  border: 1px solid #0f4c81;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}
.product-card:hover .detail-btn { background: #0f4c81; color: #fff; }

.loading, .empty { color: #666; font-size: 0.9rem; }
.error-box { background: #fdecea; color: #a12622; padding: 12px; border-radius: 6px; }

.product-hero {
  width: 100%;
  height: auto;
  border-radius: 8px;
  margin-top: 12px;
  background: #e8eaed;
}

.brand-badge {
  display: inline-block;
  font-size: 0.75rem;
  text-transform: uppercase;
  background: #e8f0fe;
  color: #0f4c81;
  padding: 3px 8px;
  border-radius: 4px;
  margin-top: 12px;
}
.product-title { font-size: 1.2rem; margin: 8px 0; }
.meta-row { display: flex; gap: 10px; flex-wrap: wrap; font-size: 0.85rem; color: #555; margin-bottom: 10px; }
.price-box { background: #0f4c81; color: #fff; padding: 12px; border-radius: 8px; margin-bottom: 14px; }

.card { background: #fff; border-radius: 8px; padding: 14px; margin-bottom: 12px; box-shadow: 0 1px 3px rgba(0,0,0,0.08); }
.card h2 { font-size: 1rem; margin: 0 0 8px; }
.card ul { margin: 0; padding-left: 18px; font-size: 0.9rem; }

.download-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.btn {
  display: inline-block;
  background: #0f4c81;
  color: #fff;
  text-decoration: none;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.btn-secondary { background: #6c757d; }

.modal-overlay[hidden] { display: none; }
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 1000;
}
.modal-box {
  background: #fff;
  border-radius: 10px;
  width: 100%;
  max-width: 480px;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 14px;
  border-bottom: 1px solid #eee;
}
.modal-filename { font-size: 0.85rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.modal-close {
  border: none;
  background: none;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  color: #666;
  padding: 0 4px;
}
.modal-preview {
  flex: 1;
  min-height: 200px;
  max-height: 60vh;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f5f6f8;
  padding: 10px;
}
.modal-preview-img { max-width: 100%; max-height: 55vh; object-fit: contain; }
.modal-preview-file {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 30px 16px;
}
.modal-preview-file-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 64px;
  background: #c62828;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: 4px;
}
.modal-preview-file-name { font-size: 0.85rem; text-align: center; color: #333; word-break: break-word; }
.modal-preview-file-size { font-size: 0.75rem; color: #888; }
.modal-actions { display: flex; gap: 8px; padding: 12px 14px; border-top: 1px solid #eee; }
.modal-actions .btn { text-align: center; }
#modal-save { flex: 2; }
#modal-send { flex: 1; }

.seat-table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
.seat-table th, .seat-table td { text-align: left; padding: 8px 4px; border-bottom: 1px solid #eee; }

.status-badge { padding: 3px 8px; border-radius: 12px; font-size: 0.75rem; color: #fff; white-space: nowrap; }
.status-available { background: #2e7d32; }
.status-limited { background: #ed6c02; }
.status-sold_out { background: #c62828; }
.status-not_confirmed { background: #757575; }

.promo-note { color: #c62828; }
.commission-row td { background: #f5fbf6; color: #2e7d32; font-size: 0.78rem; padding: 4px; border-bottom: 1px solid #eee; }

.site-footer {
  background: #001f4d;
  color: #fff;
  padding: 24px 16px 90px;
  margin-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
}
.footer-col { flex: 1; min-width: 220px; }
.footer-copyright { margin: 0 0 8px; font-size: 0.85rem; color: #dce6f0; }
.footer-links { display: flex; gap: 14px; }
.footer-links a { color: #fff; text-decoration: none; font-size: 0.85rem; opacity: 0.85; }
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-social-label { margin: 0 0 10px; font-size: 0.85rem; font-weight: 600; }
.footer-social { display: flex; gap: 10px; }
.social-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
}
.social-instagram { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.social-whatsapp { background: #25d366; }
.icon-whatsapp { width: 16px; height: 16px; object-fit: contain; }
.social-whatsapp .icon-whatsapp { width: 18px; height: 18px; }
.icon-linktree { width: 20px; height: 20px; border-radius: 4px; object-fit: cover; }

.floating-btn {
  position: fixed;
  right: 16px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,0.3);
  z-index: 900;
}
.floating-linktree { background: #43e660; color: #0a2e1a; bottom: 16px; }

@media (max-width: 480px) {
  .product-card { flex-direction: column; }
  .product-thumb-wrap { width: 100%; }
  .product-card-bottom { flex-wrap: wrap; }
  .topbar-inner { flex-wrap: wrap; }
}
