/* ============================================================
   Boto Rosa Pesca — Estilos Personalizados
   Cores: Rosa (#E91E8C), Preto (#1a1a1a), Branco (#ffffff)
   ============================================================ */

:root {
  --rosa:       #E91E8C;
  --rosa-dark:  #C2185B;
  --rosa-light: #FCE4EC;
  --rosa-soft:  #f8bbd9;
  --preto:      #1a1a1a;
  --cinza-bg:   #f5f5f5;
  --cinza-card: #ffffff;
  --borda:      #e0e0e0;
  --texto:      #333333;
  --texto-muted:#777777;
}

/* ─── Reset / Base ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }

body {
  font-family: 'Segoe UI', system-ui, sans-serif;
  background: var(--cinza-bg);
  color: var(--texto);
  margin: 0;
  padding-top: 70px; /* offset navbar fixa */
}

/* ─── Navbar ────────────────────────────────────────────────── */
.navbar-boto {
  background: var(--preto);
  border-bottom: 3px solid var(--rosa);
  height: 70px;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  padding: 0 1.5rem;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.navbar-boto .brand {
  display: flex;
  align-items: center;
  gap: .6rem;
  text-decoration: none;
}

.brand {
  display: flex;
  align-items: center;
  transition: opacity .2s;
}

.brand:hover {
  opacity: .88;
}

.navbar-logo {
  height: 46px;
  width: auto;
  display: block;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9))
          drop-shadow(0 0 3px rgba(255,255,255,.6));
  transition: filter .2s;
}

.brand:hover .navbar-logo {
  filter: drop-shadow(0 0 2px rgba(255,255,255,.9))
          drop-shadow(0 0 6px rgba(233,30,140,.6));
}

.navbar-boto .nav-center {
  flex: 1;
  display: flex;
  justify-content: center;
  padding: 0 1rem;
}

.search-bar {
  max-width: 480px;
  width: 100%;
  display: flex;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
  transition: border-color .2s;
}

.search-bar:focus-within {
  border-color: var(--rosa);
}

.search-bar input {
  flex: 1;
  border: none;
  padding: .45rem .9rem;
  font-size: .9rem;
  background: #2c2c2c;
  color: #fff;
  outline: none;
}

.search-bar input::placeholder { color: #999; }

.search-bar button {
  background: var(--rosa);
  border: none;
  padding: 0 1rem;
  color: #fff;
  font-size: 1rem;
  cursor: pointer;
  transition: background .2s;
}

.search-bar button:hover { background: var(--rosa-dark); }

.btn-admin {
  background: var(--rosa);
  color: #fff;
  border: none;
  padding: .45rem 1.1rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: .85rem;
  text-decoration: none;
  white-space: nowrap;
  transition: background .2s, transform .1s;
  display: flex;
  align-items: center;
  gap: .4rem;
}

.btn-admin:hover {
  background: var(--rosa-dark);
  color: #fff;
  transform: translateY(-1px);
}

/* ─── Hero Banner ───────────────────────────────────────────── */
.hero-banner {
  background: linear-gradient(135deg, var(--preto) 0%, #2d0020 60%, #4a0030 100%);
  padding: 3rem 1.5rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(
    45deg,
    transparent,
    transparent 20px,
    rgba(233,30,140,.04) 20px,
    rgba(233,30,140,.04) 40px
  );
}

.hero-banner .badge-promo {
  display: inline-block;
  background: var(--rosa);
  color: #fff;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: .3rem .8rem;
  border-radius: 20px;
  margin-bottom: .8rem;
}

.hero-banner h1 {
  font-size: clamp(1.6rem, 4vw, 2.8rem);
  font-weight: 900;
  color: #fff;
  margin-bottom: .5rem;
  position: relative;
}

.hero-banner h1 span { color: var(--rosa); }

.hero-banner p {
  color: #ccc;
  font-size: 1.05rem;
  max-width: 500px;
  margin: 0 auto 1.2rem;
  position: relative;
}

.hero-banner .btn-hero {
  background: var(--rosa);
  color: #fff;
  border: none;
  padding: .7rem 2rem;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  position: relative;
  transition: background .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(233,30,140,.4);
}

.hero-banner .btn-hero:hover {
  background: var(--rosa-dark);
  color: #fff;
  box-shadow: 0 6px 26px rgba(233,30,140,.55);
}

/* ─── Categorias rápidas ─────────────────────────────────────── */
.cat-strip {
  background: #fff;
  border-bottom: 1px solid var(--borda);
  padding: .75rem 0;
  overflow-x: auto;
  white-space: nowrap;
}

.cat-strip::-webkit-scrollbar { height: 3px; }
.cat-strip::-webkit-scrollbar-thumb { background: var(--rosa-soft); }

.cat-btn {
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  gap: .4rem;
  background: transparent;
  border: 1.5px solid var(--borda);
  color: var(--texto);
  padding: .35rem .85rem;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  margin: 0 .3rem;
  transition: all .2s;
  text-decoration: none;
}

.cat-btn:hover,
.cat-btn.active {
  background: var(--rosa);
  border-color: var(--rosa);
  color: #fff;
}

/* ─── Layout principal ──────────────────────────────────────── */
.main-layout {
  display: flex;
  gap: 0;
  max-width: 1400px;
  margin: 1.5rem auto;
  padding: 0 1rem;
  align-items: flex-start;
}

/* ─── Sidebar ────────────────────────────────────────────────── */
.sidebar {
  width: 240px;
  flex-shrink: 0;
  position: sticky;
  top: 80px;
}

.filter-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--borda);
  overflow: hidden;
  margin-bottom: 1rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.06);
}

.filter-card .filter-header {
  background: var(--preto);
  color: #fff;
  padding: .7rem 1rem;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: .05em;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  gap: .5rem;
}

.filter-card .filter-header .rosa { color: var(--rosa); }

.filter-body { padding: .75rem 1rem; }

.filter-body label {
  display: flex;
  align-items: center;
  gap: .5rem;
  font-size: .88rem;
  cursor: pointer;
  padding: .25rem 0;
  color: var(--texto);
  transition: color .15s;
}

.filter-body label:hover { color: var(--rosa); }

.filter-body input[type="checkbox"] {
  accent-color: var(--rosa);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.filter-body input[type="radio"] {
  accent-color: var(--rosa);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

.filter-body .count-badge {
  margin-left: auto;
  background: var(--cinza-bg);
  color: var(--texto-muted);
  font-size: .72rem;
  padding: .1rem .4rem;
  border-radius: 10px;
}

.price-inputs {
  display: flex;
  gap: .4rem;
  align-items: center;
}

.price-inputs input {
  flex: 1;
  border: 1.5px solid var(--borda);
  border-radius: 6px;
  padding: .35rem .5rem;
  font-size: .83rem;
  outline: none;
  transition: border-color .2s;
  background: #fafafa;
}

.price-inputs input:focus { border-color: var(--rosa); }
.price-inputs span { color: var(--texto-muted); font-size: .8rem; }

.btn-filtrar {
  background: var(--rosa);
  color: #fff;
  border: none;
  width: 100%;
  padding: .55rem;
  border-radius: 8px;
  font-weight: 700;
  font-size: .88rem;
  cursor: pointer;
  margin-top: .6rem;
  transition: background .2s;
}

.btn-filtrar:hover { background: var(--rosa-dark); }

.btn-limpar {
  background: transparent;
  color: var(--texto-muted);
  border: 1.5px solid var(--borda);
  width: 100%;
  padding: .45rem;
  border-radius: 8px;
  font-size: .82rem;
  cursor: pointer;
  margin-top: .4rem;
  transition: all .2s;
}

.btn-limpar:hover {
  border-color: var(--rosa);
  color: var(--rosa);
}

/* ─── Área de produtos ───────────────────────────────────────── */
.produtos-area {
  flex: 1;
  min-width: 0;
  margin-left: 1.2rem;
}

.produtos-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: .8rem;
  flex-wrap: wrap;
}

.produtos-toolbar .resultado-count {
  font-size: .88rem;
  color: var(--texto-muted);
}

.produtos-toolbar .resultado-count strong { color: var(--rosa); }

.sort-select {
  border: 1.5px solid var(--borda);
  border-radius: 8px;
  padding: .38rem .7rem;
  font-size: .85rem;
  outline: none;
  cursor: pointer;
  background: #fff;
  transition: border-color .2s;
}

.sort-select:focus { border-color: var(--rosa); }

/* ─── Grid de produtos ────────────────────────────────────────── */
#grid-produtos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
}

/* ─── Card de produto ─────────────────────────────────────────── */
.card-produto {
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--borda);
  overflow: hidden;
  transition: box-shadow .2s, transform .2s;
  display: flex;
  flex-direction: column;
  position: relative;
}

.card-produto:hover {
  box-shadow: 0 8px 28px rgba(233,30,140,.18);
  transform: translateY(-3px);
}

.card-produto .badge-destaque {
  position: absolute;
  top: .6rem;
  left: .6rem;
  background: var(--rosa);
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .06em;
  z-index: 2;
}

.card-produto .badge-promo-card {
  position: absolute;
  top: .6rem;
  right: .6rem;
  background: #ff5252;
  color: #fff;
  font-size: .68rem;
  font-weight: 700;
  padding: .2rem .55rem;
  border-radius: 20px;
  z-index: 2;
}

.card-produto .img-wrap {
  width: 100%;
  height: 160px;
  background: var(--cinza-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-produto .img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}

.card-produto:hover .img-wrap img { transform: scale(1.04); }

.card-produto .img-placeholder {
  font-size: 3rem;
  color: var(--rosa-soft);
}

.card-produto .card-body {
  padding: .8rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-produto .cat-label {
  font-size: .7rem;
  color: var(--rosa);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: .25rem;
}

.card-produto .nome {
  font-size: .9rem;
  font-weight: 700;
  color: var(--texto);
  margin-bottom: .5rem;
  line-height: 1.3;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-produto .precos {
  display: flex;
  align-items: center;
  gap: .5rem;
  flex-wrap: wrap;
}

.card-produto .preco-atual {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--rosa);
}

.card-produto .preco-original {
  font-size: .8rem;
  color: var(--texto-muted);
  text-decoration: line-through;
}

.card-produto .card-footer-btn {
  padding: .6rem .8rem;
  background: transparent;
  border-top: 1px solid var(--cinza-bg);
  display: flex;
  gap: .4rem;
}

.btn-ver {
  flex: 1;
  background: var(--preto);
  color: #fff;
  border: none;
  padding: .45rem;
  border-radius: 7px;
  font-size: .8rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s;
}

.btn-ver:hover { background: #333; }

.btn-whatsapp {
  background: #25D366;
  color: #fff;
  border: none;
  padding: .45rem .65rem;
  border-radius: 7px;
  cursor: pointer;
  font-size: .88rem;
  transition: background .2s;
}

.btn-whatsapp:hover { background: #128C7E; }

/* ─── Loader ─────────────────────────────────────────────────── */
#loader {
  display: none;
  text-align: center;
  padding: 3rem;
  color: var(--rosa);
}

#loader .spinner-border {
  width: 2.5rem;
  height: 2.5rem;
  border-color: var(--rosa);
  border-right-color: transparent;
}

.sem-resultados {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--texto-muted);
}

.sem-resultados i {
  font-size: 3rem;
  color: var(--rosa-soft);
  margin-bottom: 1rem;
}

/* ─── Paginação ──────────────────────────────────────────────── */
#paginacao {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}

.pg-btn {
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--borda);
  background: #fff;
  border-radius: 8px;
  font-size: .85rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .2s;
  color: var(--texto);
}

.pg-btn:hover,
.pg-btn.active {
  background: var(--rosa);
  border-color: var(--rosa);
  color: #fff;
}

/* ─── Footer ─────────────────────────────────────────────────── */
.footer {
  background: var(--preto);
  color: #ccc;
  margin-top: 4rem;
  border-top: 3px solid var(--rosa);
}

.footer-top {
  padding: 2.5rem 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 2rem;
}

.footer-col h5 {
  color: var(--rosa);
  font-size: .85rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin-bottom: 1rem;
  padding-bottom: .4rem;
  border-bottom: 1px solid #333;
}

.footer-col p,
.footer-col a {
  font-size: .85rem;
  color: #aaa;
  text-decoration: none;
  display: block;
  margin-bottom: .35rem;
  transition: color .2s;
}

.footer-col a:hover { color: var(--rosa); }

.footer-col .brand-big {
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  margin-bottom: .4rem;
}

.footer-col .brand-big span { color: var(--rosa); }

.footer-logo {
  height: 60px;
  width: auto;
  display: block;
  margin: 0 auto .8rem;
  filter: drop-shadow(0 0 1px rgba(255,255,255,.9))
          drop-shadow(0 0 3px rgba(255,255,255,.6));
}

.social-links {
  display: flex;
  gap: .6rem;
  margin-top: .8rem;
}

.social-links a {
  width: 34px;
  height: 34px;
  background: #2c2c2c;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #aaa;
  font-size: .95rem;
  transition: all .2s;
}

.social-links a:hover {
  background: var(--rosa);
  color: #fff;
}

.footer-bottom {
  background: #111;
  text-align: center;
  padding: 1rem;
  font-size: .78rem;
  color: #666;
  border-top: 1px solid #222;
}

.footer-bottom span { color: var(--rosa); }

/* ─── Modal de produto ───────────────────────────────────────── */
.modal-produto .modal-header {
  background: var(--preto);
  color: #fff;
  border-bottom: 2px solid var(--rosa);
}

.modal-produto .modal-header .btn-close {
  filter: invert(1);
}

.preco-grande {
  font-size: 2rem;
  font-weight: 900;
  color: var(--rosa);
}

.preco-riscado {
  font-size: 1rem;
  color: var(--texto-muted);
  text-decoration: line-through;
}

.badge-estoque {
  background: var(--rosa-light);
  color: var(--rosa-dark);
  font-weight: 700;
  font-size: .8rem;
  padding: .3rem .7rem;
  border-radius: 6px;
}

.btn-wpp-grande {
  background: #25D366;
  color: #fff;
  border: none;
  padding: .7rem 1.5rem;
  border-radius: 10px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  transition: background .2s;
  text-decoration: none;
}

.btn-wpp-grande:hover { background: #128C7E; color: #fff; }

/* ─── Responsivo ─────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-layout {
    flex-direction: column;
  }

  .sidebar {
    width: 100%;
    position: static;
  }

  .produtos-area {
    margin-left: 0;
  }

  .sidebar-toggle {
    display: flex !important;
  }

  .sidebar-body {
    display: none;
  }

  .sidebar-body.open {
    display: block;
  }
}

@media (max-width: 600px) {
  .navbar-boto .nav-center {
    display: none;
  }

  .navbar-boto {
    justify-content: space-between;
  }

  .btn-admin {
    margin-left: auto;
  }

  #grid-produtos {
    grid-template-columns: repeat(2, 1fr);
  }
}

.sidebar-toggle {
  display: none;
  align-items: center;
  gap: .5rem;
  background: var(--preto);
  color: #fff;
  border: none;
  padding: .6rem 1rem;
  border-radius: 8px;
  font-size: .88rem;
  font-weight: 600;
  cursor: pointer;
  width: 100%;
  margin-bottom: .5rem;
}

/* ─── Destaques rápidos (pills no topo) ──────────────────────── */
.offer-badge {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  background: rgba(233,30,140,.12);
  color: var(--rosa);
  border: 1px solid rgba(233,30,140,.25);
  padding: .2rem .65rem;
  border-radius: 20px;
  font-size: .78rem;
  font-weight: 600;
  margin: .1rem .2rem;
}
