/* =========================================================
   VENDAS.CSS — Design System Moderno
   Gesso Decorplaca 2025
========================================================= */

/* --- RESET & BASE --- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red:      #E02041;
  --red-d:    #b5192f;
  --red-glow: rgba(224,32,65,.35);
  --bg:       #08080E;
  --bg2:      #0F0F18;
  --card:     #13131E;
  --card2:    #191926;
  --border:   rgba(255,255,255,.07);
  --border2:  rgba(255,255,255,.13);
  --white:    #FFFFFF;
  --off:      #E8E8F0;
  --muted:    #7B7B9B;
  --radius:   16px;
  --shadow:   0 20px 60px rgba(0,0,0,.5);

  /* Badge colors */
  --placa:    #3B82F6;
  --perfil:   #8B5CF6;
  --montante: #F59E0B;
  --guia:     #10B981;
  --massa:    #EC4899;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  background: var(--bg);
  color: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* =========================================================
   HEADER
========================================================= */
.v-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(8,8,14,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.v-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.v-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}

.v-logo img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}

.v-logo-text { display: flex; flex-direction: column; }
.v-logo-name { font-size: 15px; font-weight: 800; line-height: 1.1; }
.v-logo-sub  { font-size: 11px; color: var(--muted); }

.v-search-wrap {
  flex: 1;
  position: relative;
  max-width: 480px;
  margin: 0 auto;
}

.v-search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  pointer-events: none;
}

.v-search {
  width: 100%;
  padding: 11px 44px 11px 42px;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  color: var(--white);
  font-size: 14px;
  font-family: inherit;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.v-search::placeholder { color: var(--muted); }

.v-search:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 3px rgba(224,32,65,.12);
}

.v-search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 22px; height: 22px;
  background: var(--border2);
  border: none;
  border-radius: 50%;
  color: var(--muted);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.v-search-clear:hover { background: var(--red); color: #fff; }

.v-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.v-btn-back {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: 100px;
  color: var(--off);
  font-size: 13px;
  font-weight: 600;
  transition: all .22s;
}

.v-btn-back:hover { border-color: var(--border2); color: #fff; background: var(--card); }

.v-btn-wa {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #25D366;
  border-radius: 100px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  transition: all .22s;
}

.v-btn-wa:hover { background: #1da855; transform: translateY(-2px); }

/* =========================================================
   HERO
========================================================= */
.v-hero {
  position: relative;
  height: 320px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.v-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/Drywall-parede-quanto-custa-e1657227325693.jpg');
  background-size: cover;
  background-position: center;
}

.v-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(8,8,14,.9) 0%, rgba(224,32,65,.2) 100%);
}

.v-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 24px;
}

.v-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 18px;
  background: rgba(224,32,65,.18);
  border: 1px solid rgba(224,32,65,.4);
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
  color: #ff8099;
  letter-spacing: 1px;
  margin-bottom: 16px;
  text-transform: uppercase;
}

.v-hero-title {
  font-size: clamp(30px, 5vw, 54px);
  font-weight: 900;
  letter-spacing: -1.5px;
  line-height: 1.1;
  margin-bottom: 12px;
}

.v-hero-title span { color: var(--red); }

.v-hero-sub {
  font-size: clamp(14px, 1.8vw, 17px);
  color: rgba(255,255,255,.6);
}

/* =========================================================
   FILTROS
========================================================= */
.v-filters-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 68px;
  z-index: 90;
}

.v-filters {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.v-filters::-webkit-scrollbar { display: none; }

.v-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 18px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: all .22s;
}

.v-filter:hover { border-color: var(--border2); color: var(--off); }

.v-filter.active {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  box-shadow: 0 4px 20px var(--red-glow);
}

.v-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  background: rgba(255,255,255,.1);
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
}

.v-filter.active .v-filter-count { background: rgba(255,255,255,.25); }

/* =========================================================
   BARRA DE RESULTADO
========================================================= */
.v-results-bar {
  max-width: 1280px;
  margin: 0 auto;
  padding: 18px 24px 6px;
}

.v-results-text {
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   GRID DE PRODUTOS
========================================================= */
.v-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px 80px;
}

.v-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

/* =========================================================
   CARD
========================================================= */
.v-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
}

.v-card:hover {
  transform: translateY(-8px);
  border-color: rgba(224,32,65,.4);
  box-shadow: 0 24px 60px rgba(0,0,0,.4);
}

.v-card-img-wrap {
  position: relative;
  overflow: hidden;
  height: 220px;
  background: var(--card2);
}

.v-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .45s ease;
}

.v-card:hover .v-card-img-wrap img {
  transform: scale(1.07);
}

.v-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .5px;
  text-transform: uppercase;
  backdrop-filter: blur(8px);
}

.v-badge.placa    { background: rgba(59,130,246,.85);  color: #fff; }
.v-badge.perfil   { background: rgba(139,92,246,.85);  color: #fff; }
.v-badge.montante { background: rgba(245,158,11,.85);  color: #fff; }
.v-badge.guia     { background: rgba(16,185,129,.85);  color: #fff; }
.v-badge.massa    { background: rgba(236,72,153,.85);  color: #fff; }

.v-card-body {
  padding: 22px 22px 26px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.v-card-title {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.v-card-title span { color: var(--red); }

.v-card-desc {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.75;
  flex: 1;
  margin-bottom: 20px;
}

.v-card-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 13px;
  background: var(--card2);
  border: 1px solid var(--border2);
  border-radius: var(--radius);
  color: var(--off);
  font-size: 14px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s;
}

.v-card-btn i { color: #25D366; font-size: 17px; }

.v-card-btn:hover {
  background: #25D366;
  border-color: #25D366;
  color: #fff;
}

.v-card-btn:hover i { color: #fff; }

/* =========================================================
   SEM RESULTADOS
========================================================= */
.v-empty {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 24px;
  gap: 16px;
  display: flex;
}

.v-empty-icon {
  width: 80px; height: 80px;
  background: var(--card2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: var(--muted);
  margin-bottom: 8px;
}

.v-empty h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}

.v-empty p {
  font-size: 15px;
  color: var(--muted);
  max-width: 360px;
}

.v-empty button {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 32px;
  background: #25D366;
  border: none;
  border-radius: 100px;
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  transition: all .25s;
  margin-top: 8px;
}

.v-empty button:hover { background: #1da855; transform: translateY(-3px); }

/* =========================================================
   CTA BANNER
========================================================= */
.v-cta {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 24px;
}

.v-cta-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.v-cta-text {
  display: flex;
  align-items: center;
  gap: 18px;
}

.v-cta-icon {
  width: 48px; height: 48px;
  background: rgba(224,32,65,.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--red);
  font-size: 20px;
  flex-shrink: 0;
}

.v-cta-text strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 3px;
}

.v-cta-text span {
  font-size: 13px;
  color: var(--muted);
}

.v-cta-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 28px;
  background: #25D366;
  border-radius: 100px;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  transition: all .25s;
  box-shadow: 0 6px 20px rgba(37,211,102,.3);
  flex-shrink: 0;
}

.v-cta-btn:hover {
  background: #1da855;
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(37,211,102,.45);
}

/* =========================================================
   FOOTER
========================================================= */
.v-footer {
  background: #06060B;
  border-top: 1px solid var(--border);
  padding: 36px 24px;
}

.v-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.v-footer-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.v-footer-logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  object-fit: cover;
}

.v-footer-logo span {
  font-size: 15px;
  font-weight: 700;
}

.v-footer-copy {
  font-size: 13px;
  color: var(--muted);
}

/* =========================================================
   BOTÃO FLUTUANTE WHATSAPP
========================================================= */
.v-float-wa {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 200;
  width: 56px; height: 56px;
  background: #25D366;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 26px;
  box-shadow: 0 6px 24px rgba(37,211,102,.5);
  transition: all .25s;
  animation: v-wa-pulse 3s ease-in-out infinite;
}

.v-float-wa:hover {
  transform: scale(1.12);
  background: #1da855;
  box-shadow: 0 10px 35px rgba(37,211,102,.6);
}

@keyframes v-wa-pulse {
  0%,100% { box-shadow: 0 6px 24px rgba(37,211,102,.5); }
  50%      { box-shadow: 0 6px 36px rgba(37,211,102,.8); }
}

/* =========================================================
   RESPONSIVE
========================================================= */
@media (max-width: 768px) {
  .v-header-inner { gap: 12px; }
  .v-logo-text    { display: none; }
  .v-search-wrap  { max-width: none; }
  .v-btn-back span, .v-btn-wa span { display: none; }
  .v-btn-back, .v-btn-wa { padding: 9px 13px; }
  .v-hero { height: 240px; }
  .v-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
  .v-cta-inner { flex-direction: column; text-align: center; }
  .v-cta-text  { flex-direction: column; text-align: center; }
  .v-footer-inner { flex-direction: column; text-align: center; }
  .v-main { padding: 12px 16px 60px; }
}

@media (max-width: 480px) {
  .v-grid { grid-template-columns: 1fr; }
  .v-filters { gap: 6px; }
  .v-filter { padding: 8px 14px; font-size: 12px; }
}
