/* public_html/assets/css/app.css */
/* Light, modern, responsive ecommerce UI */

:root{
  --bg: #f6f7fb;
  --text: #0f172a;
  --muted: #475569;

  --card: #ffffff;
  --border: rgba(15, 23, 42, .10);
  --border-2: rgba(15, 23, 42, .14);

  --primary: #635bff;
  --primary-2: #8b5cf6;

  --success: #16a34a;
  --warn: #d97706;
  --danger: #dc2626;

  --shadow: 0 10px 30px rgba(2, 6, 23, .08);
  --shadow-soft: 0 6px 18px rgba(2, 6, 23, .06);

  --radius: 18px;
  --radius-sm: 14px;
  --radius-xs: 12px;

  --container: 1100px;
}

*{ box-sizing:border-box; }
html,body{ height:100%; }
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, "Noto Sans", "Apple Color Emoji","Segoe UI Emoji";
  color: var(--text);
  background:
    radial-gradient(900px 500px at 10% 0%, rgba(99,91,255,.10), transparent 60%),
    radial-gradient(900px 520px at 90% 0%, rgba(139,92,246,.10), transparent 60%),
    radial-gradient(1000px 700px at 50% 120%, rgba(16,185,129,.08), transparent 60%),
    var(--bg);
  line-height: 1.45;
}

a{ color: inherit; text-decoration:none; }
a:hover{ text-decoration:none; }

.container{
  width: min(var(--container), calc(100% - 32px));
  margin: 0 auto;
}

.h1{
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.p{
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 70ch;
}
.small{ font-size: 13px; color: var(--muted); }

/* NAV */
.nav{
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(246,247,251,.75);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav .container{
  padding: 14px 0;
}
.brand{
  font-weight: 950;
  letter-spacing: -0.02em;
  font-size: 16px;
  display:flex;
  align-items:center;
  gap:10px;
}
.nav a{
  color: rgba(15,23,42,.86);
}
.nav a:hover{
  color: rgba(15,23,42,1);
}

/* MAIN spacing */
main.container{
  padding: 22px 0 0;
  min-height: calc(100vh - 170px);
}

/* cards */
.card{
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-soft);
}
.card:hover{
  border-color: var(--border-2);
  box-shadow: var(--shadow);
}

/* grid */
.grid{
  display:grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 980px){
  .grid{ grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 620px){
  .grid{ grid-template-columns: 1fr; }
  .h1{ font-size: 28px; }
}

/* buttons */
.btn{
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.92);
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  font-weight: 800;
  cursor: pointer;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  width: auto;              /* << evita botão “esticado” */
  max-width: 100%;
  transition: transform .08s ease, background .2s ease, border-color .2s ease;
}
.btn:hover{
  background: rgba(15,23,42,.06);
  border-color: rgba(15,23,42,.18);
  transform: translateY(-1px);
}
.btn:active{ transform: translateY(0px); }

.btn-primary{
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  border: 1px solid rgba(99,91,255,.18);
  color: #ffffff;
}
.btn-primary:hover{
  filter: brightness(1.02);
}

/* utility: when you WANT full width */
.btn-block{
  width: 100%;
}

/* inputs */
.input{
  width: 100%;
  padding: 12px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid rgba(15,23,42,.14);
  background: #ffffff;
  color: rgba(15,23,42,.92);
  outline:none;
}
.input::placeholder{ color: rgba(15,23,42,.40); }
.input:focus{
  border-color: rgba(99,91,255,.45);
  box-shadow: 0 0 0 4px rgba(99,91,255,.14);
}
textarea.input{ resize: vertical; }

/* form row */
.row{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
}
.row > div{
  flex: 1 1 260px;
  min-width: 0;
}

/* actions row for form buttons (login/cadastro) */
.actions{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:center;
  justify-content:flex-end;
}
.actions .btn{
  flex: 0 0 auto;          /* << não deixa esticar */
}

/* price */
.price{
  font-weight: 950;
  font-size: 18px;
  letter-spacing: -0.01em;
}

/* badges */
.badge{
  display:inline-flex;
  align-items:center;
  padding: 6px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
  border: 1px solid rgba(15,23,42,.12);
  background: rgba(15,23,42,.04);
  color: rgba(15,23,42,.86);
}
.badge-paid{
  background: rgba(22,163,74,.10);
  border-color: rgba(22,163,74,.20);
  color: rgba(22,163,74,1);
}
.badge-pending{
  background: rgba(217,119,6,.10);
  border-color: rgba(217,119,6,.20);
  color: rgba(217,119,6,1);
}

/* flash messages */
.flash{
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(15,23,42,.12);
  background: #ffffff;
  margin-bottom: 14px;
  box-shadow: var(--shadow-soft);
}
.flash.ok{
  border-color: rgba(22,163,74,.22);
  background: rgba(22,163,74,.08);
}
.flash.err{
  border-color: rgba(220,38,38,.22);
  background: rgba(220,38,38,.08);
}

/* footer */
footer.container{
  margin-top: 28px;
  border-top: 1px solid var(--border);
  padding: 26px 0 44px;
  color: rgba(15,23,42,.62);
}

/* WhatsApp floating button */
.wa-float{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 99999;
  background: #22c55e;
  color: #052012;
  font-weight: 950;
  padding: 12px 14px;
  border-radius: 999px;
  box-shadow: 0 12px 35px rgba(2,6,23,.14);
  display:flex;
  align-items:center;
  gap:10px;
  border: 1px solid rgba(2,6,23,.08);
}
.wa-float:hover{ filter: brightness(1.02); transform: translateY(-1px); }
/* Página do produto: layout melhor no mobile */
.product-layout{
  display: grid;
  grid-template-columns: 1.35fr .65fr;
  gap: 14px;
  align-items: start;
}

/* buy box: fica “grudado” no topo no desktop (bem e-commerce) */
.buy-box{
  position: sticky;
  top: 86px; /* altura do header */
}

@media (max-width: 860px){
  .product-layout{
    grid-template-columns: 1fr;
  }
  .buy-box{
    position: static;
  }
}

/* FOOTER SIMPLES COM BANNER */

.footer-simple{
  padding-top: 30px;
  padding-bottom: 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  text-align: center;
  border-top: 1px solid rgba(15,23,42,.10);
}

.footer-payment img{
  max-width: 260px;      /* tamanho elegante */
  width: 100%;
  height: auto;
  opacity: .95;
}

/* desktop: texto e banner lado a lado */
@media (min-width: 720px){
  .footer-simple{
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}

.footer-payment img{
  width: 100%;
  height: auto;
  max-width: 260px; /* mobile */
  object-fit: contain;
}

@media (min-width: 720px){
  .footer-payment img{
    max-width: 340px; /* desktop */
  }
}

/* Chips de categoria (com destaque) */
.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.88);
}

.chip:hover{
  background: rgba(15,23,42,.05);
  border-color: rgba(15,23,42,.18);
}

.chip.active{
  background: rgba(99,91,255,.14);
  border-color: rgba(99,91,255,.35);
}

.chip{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding: 8px 12px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 13px;
  border: 1px solid rgba(15,23,42,.14);
  background: rgba(15,23,42,.03);
  color: rgba(15,23,42,.88);
}
.chip.active{
  background: rgba(99,91,255,.14);
  border-color: rgba(99,91,255,.35);
}

@media (max-width: 620px){
  .input[placeholder="Buscar produto..."]{
    min-width: 100% !important;
  }
}

/* Mobile: em qualquer .row, os cards ficam empilhados (evita ficar comprimido) */
@media (max-width: 720px){
  .row{
    flex-direction: column;
  }
  .row > *{
    width: 100% !important;
    flex: 1 1 auto !important;
  }
}

.menu-bell{
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.menu-bell .bell-dot{
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(220,38,38,.45);
}
