:root {
  --bg: #0b0c0d;
  --panel: #141516;
  --txt: #f4f4f5;
  --sub: #a7a9ad;
  --brand: #036b52;
  --brand-hover: #025a43;
  --error: #ff4757;
  --success: #2ed573;
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter Tight', system-ui;
  -webkit-font-smoothing: antialiased;
}
.container {
  padding: 24px;
}
header {
  background: var(--panel);
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--brand);
}
.grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  grid-template-areas: "sidebar products";
  gap: 24px;
}
@media (max-width: 900px) {
  .grid {
    grid-template-columns: 1fr;
    grid-template-areas: "products" "sidebar";
    gap: 16px;
  }
}
.grid > aside {
  grid-area: sidebar;
}
.grid > section {
  grid-area: products;
}
.panel {
  background: var(--panel);
  border-radius: 16px;
  padding: 16px;
  border: 1px solid #2a2a2a;
}
input,
select,
textarea {
  width: 100%;
  background: #0f1012;
  border: 1px solid #2a2a2a;
  color: #fff;
  padding: 12px;
  border-radius: 8px;
  font-size: 16px;
  font-family: inherit;
  transition: border-color 0.2s ease;
}
input:focus,
select:focus,
textarea:focus,
button:focus {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}
input.error,
select.error,
textarea.error {
  border-color: var(--error);
  animation: shake 0.3s ease;
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}
.catalog {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 14px;
}
@media (max-width: 600px) {
  .catalog {
    grid-template-columns: 1fr;
  }
}
.card {
  background: #121213;
  border-radius: 14px;
  overflow: hidden;
  transition: transform 0.2s ease;
  border: 1px solid #1a1b1c;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
}
.thumb {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
  cursor: pointer;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.thumb:hover img {
  transform: scale(1.05);
}
.body {
  padding: 12px;
  display: grid;
  gap: 10px;
}
.body p {
  color: var(--sub);
  font-size: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.skeleton {
  background: linear-gradient(90deg, #141516 25%, #1a1b1c 50%, #141516 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}
@keyframes loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.btn {
  background: var(--brand);
  border: none;
  color: #fff;
  padding: 12px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.2s ease;
  font-size: 16px;
  font-family: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
}
.btn:hover {
  background: var(--brand-hover);
  transform: translateY(-1px);
}
.btn:active {
  transform: scale(0.98);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.btn-visualizar {
  background: transparent;
  color: #d6f5ec;
  border: 1px solid rgba(3, 107, 82, 0.6);
  padding: 12px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 500;
  width: 100%;
  transition: all 0.2s ease;
  font-family: inherit;
  min-height: 48px;
}
.btn-visualizar:hover {
  background: rgba(3, 107, 82, 0.1);
  border-color: var(--brand);
}
.btn-visualizar::before {
  content: "👁 ";
}
.fab-wa {
  position: fixed;
  right: 16px;
  bottom: 16px;
  background: #25D366;
  color: #fff;
  border: none;
  padding: 16px 20px;
  border-radius: 999px;
  font-weight: 700;
  z-index: 50;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
  font-family: inherit;
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}
.fab-wa:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}
.card-arrows {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.thumb:hover .card-arrows {
  opacity: 1;
}
.card-arrows button {
  pointer-events: auto;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
  transition: background 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.card-arrows button:hover {
  background: rgba(0, 0, 0, 0.9);
}
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  backdrop-filter: blur(3px);
  padding: 16px;
}
.modal-overlay.open {
  display: flex;
  animation: fadeIn 0.3s ease;
}
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
.modal {
  background: var(--panel);
  width: min(1100px, 100%);
  max-height: 90vh;
  border-radius: 16px;
  padding: 24px;
  overflow: auto;
  animation: modalAppear 0.3s ease;
  border: 1px solid #2a2a2a;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4);
}
@keyframes modalAppear {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.modal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 760px) {
  .modal-grid {
    grid-template-columns: 1fr;
  }
}
.modal-img img {
  width: 100%;
  border-radius: 12px;
  cursor: zoom-in;
  transition: transform 0.25s ease;
}
.modal-img img.zoom {
  transform: scale(2);
  cursor: zoom-out;
}
body.modal-open {
  overflow: hidden;
}
.hero-header {
  background: linear-gradient(180deg, #141516, #0b0c0d);
}
.hero {
  padding: 40px 24px;
  text-align: center;
}
.hero h2 {
  margin: 0;
  font-size: 28px;
}
.hero p {
  color: #a7a9ad;
  max-width: 640px;
  margin: 12px auto 0;
  line-height: 1.6;
}
.pm-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--brand) var(--panel);
}
.pm-thumbs::-webkit-scrollbar {
  height: 6px;
}
.pm-thumbs::-webkit-scrollbar-track {
  background: var(--panel);
  border-radius: 3px;
}
.pm-thumbs::-webkit-scrollbar-thumb {
  background: var(--brand);
  border-radius: 3px;
}
.pm-thumbs img {
  width: 70px;
  height: 54px;
  object-fit: cover;
  border-radius: 8px;
  cursor: pointer;
  opacity: 0.6;
  border: 2px solid transparent;
  transition: 0.2s;
  flex-shrink: 0;
}
.pm-thumbs img:hover {
  opacity: 1;
}
.pm-thumbs img.active {
  opacity: 1;
  border-color: var(--brand);
}
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 30px;
  padding: 20px 0;
}
.page-btn {
  background: var(--panel);
  border: none;
  color: var(--txt);
  width: 40px;
  height: 40px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover {
  background: #1a1b1c;
}
.page-btn.active {
  background: var(--brand);
  color: white;
}
.page-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.product-info {
  display: grid;
  gap: 16px;
}
.product-features {
  color: var(--sub);
  font-size: 14px;
  display: grid;
  gap: 8px;
  padding-left: 16px;
}
.product-features li {
  position: relative;
  list-style: none;
}
.product-features li::before {
  content: "✓";
  color: var(--brand);
  position: absolute;
  left: -16px;
}
.product-price {
  font-size: 24px;
  font-weight: 600;
  color: var(--brand);
  margin: 10px 0;
}
.notification {
  position: fixed;
  top: 20px;
  right: 20px;
  background: var(--brand);
  color: white;
  padding: 12px 20px;
  border-radius: 8px;
  z-index: 1001;
  transform: translateX(150%);
  transition: transform 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 400px;
}
.notification.show {
  transform: translateX(0);
}
.notification.error {
  background: var(--error);
}
.notification.success {
  background: var(--success);
}
footer {
  background: var(--panel);
  padding: 40px 24px;
  margin-top: 60px;
  border-top: 1px solid #2a2a2a;
}
footer a {
  color: var(--sub);
  text-decoration: none;
  transition: color 0.2s ease;
}
footer a:hover {
  color: var(--brand);
}
input[type="checkbox"] {
  width: 18px;
  height: 18px;
  accent-color: var(--brand);
  cursor: pointer;
  margin-right: 8px;
  flex-shrink: 0;
}
.terms-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--sub);
  font-size: 14px;
  margin: 10px 0;
  cursor: pointer;
}
.terms-label a {
  color: var(--brand);
  text-decoration: underline;
}
.category-tag {
  display: inline-block;
  background: rgba(3, 107, 82, 0.1);
  color: var(--brand);
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  margin-bottom: 8px;
}
.filter-reset {
  background: transparent;
  color: var(--sub);
  border: none;
  text-decoration: underline;
  cursor: pointer;
  font-size: 14px;
  margin-top: 8px;
  font-family: inherit;
  padding: 4px 8px;
  border-radius: 4px;
  transition: all 0.2s ease;
}
.filter-reset:hover {
  color: var(--brand);
  background: rgba(3, 107, 82, 0.1);
}
.date-field {
  position: relative;
}
.date-field input {
  padding-right: 40px;
}
.date-field::after {
  content: "📅";
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--brand);
  pointer-events: none;
  font-size: 18px;
}
.btn-filter-mobile {
  background: var(--brand);
  border: none;
  color: white;
  padding: 14px 20px;
  border-radius: 10px;
  font-weight: 600;
  margin: 16px 0;
  width: 100%;
  display: none;
  justify-content: center;
  align-items: center;
  gap: 8px;
  font-family: inherit;
  cursor: pointer;
  transition: all 0.2s ease;
  order: 1;
}
.btn-filter-mobile:hover {
  background: var(--brand-hover);
}
.skeleton-card {
  background: #121213;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #1a1b1c;
}
.skeleton-thumb {
  aspect-ratio: 4/3;
  background: #141516;
}
.skeleton-body {
  padding: 12px;
  display: grid;
  gap: 10px;
}
.skeleton-line {
  height: 12px;
  background: #141516;
  border-radius: 4px;
}
.skeleton-line:nth-child(1) {
  width: 40%;
}
.skeleton-line:nth-child(2) {
  width: 90%;
}
.skeleton-line:nth-child(3) {
  width: 70%;
}
.skeleton-line:nth-child(4) {
  width: 60%;
  height: 36px;
  margin-top: 8px;
}
@media (max-width: 768px) {
  .container {
    padding: 16px;
  }
  .topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .logo {
    width: 70px;
    height: 70px;
  }
  .topbar > div:first-child {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
  }
  .topbar h1 {
    font-size: 18px;
  }
  .topbar p {
    font-size: 12px;
  }
  #whatsappHeader {
    width: 100%;
    justify-content: center;
    margin-top: 8px;
  }
  .hero {
    padding: 24px 16px;
  }
  .hero h2 {
    font-size: 20px;
    line-height: 1.3;
  }
  .hero p {
    font-size: 14px;
    line-height: 1.5;
  }
  .grid {
    gap: 20px;
  }
  .btn-filter-mobile {
    display: flex;
  }
  .grid > aside {
    display: none;
    order: 3;
  }
  .grid > aside.show {
    display: block;
    animation: slideDown 0.3s ease;
  }
  @keyframes slideDown {
    from {
      opacity: 0;
      transform: translateY(-10px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
  .modal {
    padding: 16px;
    max-height: 95vh;
    margin: 16px;
    border-radius: 12px;
  }
  .modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .catalog {
    grid-template-columns: 1fr;
  }
  footer {
    padding: 24px 16px;
    margin-top: 40px;
  }
  .fab-wa {
    padding: 14px 18px;
    font-size: 14px;
    right: 12px;
    bottom: 12px;
  }
  .card {
    border-radius: 12px;
  }
  .body strong {
    font-size: 15px;
  }
  .body p {
    -webkit-line-clamp: 3;
    line-height: 1.4;
  }
  .page-btn {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
  input,
  select,
  textarea {
    font-size: 15px;
    padding: 10px;
  }
  .pm-thumbs img {
    width: 60px;
    height: 45px;
  }
  footer .container > div {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}
@media (max-width: 480px) {
  .hero h2 {
    font-size: 18px;
  }
  .hero p {
    font-size: 13px;
  }
  .btn,
  .btn-visualizar {
    min-height: 48px;
    font-size: 15px;
  }
  .modal {
    margin: 8px;
    padding: 14px;
  }
  .panel {
    padding: 14px;
  }
  .panel h3 {
    font-size: 16px;
    margin-bottom: 8px;
  }
  .notification {
    max-width: calc(100vw - 40px);
    right: 10px;
    left: 10px;
  }
}
@media (max-width: 360px) {
  .container {
    padding: 12px;
  }
  .hero {
    padding: 20px 12px;
  }
  .hero h2 {
    font-size: 16px;
  }
  .hero p {
    font-size: 12px;
  }
  .page-btn {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  .pm-thumbs img {
    width: 50px;
    height: 40px;
  }
}
/* ================= MENU DE CATEGORIAS ================= */
.category-nav {
  background: rgba(20, 21, 22, 0.95);
  border-top: 1px solid #2a2a2a;
  border-bottom: 1px solid #2a2a2a;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 99;
  backdrop-filter: blur(8px);
}
.category-nav ul {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.category-nav li {
  margin: 0;
}
.category-nav a {
  display: inline-block;
  padding: 8px 16px;
  color: var(--sub);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  border-radius: 30px;
  transition: all 0.2s ease;
}
.category-nav a:hover,
.category-nav a.active {
  background: var(--brand);
  color: white;
}
.category-nav a:active {
  transform: scale(0.96);
}
@media (max-width: 768px) {
  .category-nav ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: thin;
  }
  .category-nav li {
    flex-shrink: 0;
  }
  .category-nav a {
    white-space: nowrap;
  }
}
/* ================= BOTÃO VOLTAR AO TOPO ================= */
.back-to-top {
  position: fixed;
  bottom: 80px;
  right: 20px;
  width: 50px;
  height: 50px;
  background: var(--brand);
  color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 24px;
  font-weight: bold;
  z-index: 99;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.back-to-top:hover {
  background: var(--brand-hover);
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .back-to-top {
    bottom: 70px;
    width: 45px;
    height: 45px;
    font-size: 20px;
  }
}