﻿:root{
  --g:#063d2b;
  --g2:#0b6948;
  --l:#b8ec38;
  --bg:#f6f6f0;
  --line:#e2e7e2;
  --muted:#69766f;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  background:var(--bg);
  color:#16231d;
  font-family:Inter,system-ui,-apple-system,Segoe UI,sans-serif;
}

button,
input,
textarea,
select{
  font:inherit;
}

button{
  cursor:pointer;
}

.hidden{
  display:none!important;
}

/* TOPO */
.top{
  height:140px;
  background:var(--g);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:0 32px;
  position:sticky;
  top:0;
  z-index:20;
}

.top a{
  width:430px;
  height:140px;
  display:flex;
  align-items:center;
  justify-content:flex-start;
}

.top img{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
  display:block;
}
.cart{
  border:0;
  border-radius:13px;
  padding:11px 15px;
  background:var(--l);
  font-weight:800;
  color:#17301f;
}

.cart b{
  background:#fff;
  border-radius:99px;
  padding:2px 7px;
}

/* HERO */
.hero{
  max-width:1180px;
  margin:24px auto;
  padding:50px 42px;
  border-radius:28px;
  color:#fff;
  background:linear-gradient(110deg,var(--g),var(--g2));
  position:relative;
  overflow:hidden;
}

.hero:after{
  content: '\1F6D2';
  position:absolute;
  right:8%;
  bottom:-30px;
  font-size:150px;
  opacity:.12;
}

.hero small{
  color:var(--l);
  letter-spacing:2px;
  font-weight:800;
}

.hero h1{
  font-size:clamp(36px,6vw,62px);
  line-height:.98;
  margin:12px 0;
}

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

.hero p{
  max-width:540px;
  color:#d8e8df;
}

/* BUSCA E CATEGORIAS */
.toolbar{
  max-width:1180px;
  margin:0 auto 20px;
  padding:0 14px;
  display:flex;
  gap:12px;
  flex-wrap:wrap;
}

.search{
  background:#fff;
  border:1px solid var(--line);
  border-radius:14px;
  padding:12px 15px;
  display:flex;
  gap:8px;
  flex:1;
  min-width:270px;
}

.search input{
  border:0;
  outline:0;
  width:100%;
}

.cat{
  border:1px solid var(--line);
  background:#fff;
  border-radius:99px;
  padding:10px 13px;
}

.cat.on{
  background:var(--g);
  color:#fff;
}

/* PRODUTOS */
.grid{
  max-width:1180px;
  margin:auto;
  padding:0 14px 50px;
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(205px,1fr));
  gap:16px;
}

.card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:20px;
  padding:12px;
  min-height:320px;
  display:flex;
  flex-direction:column;
}

.pic{
  height:165px;
  background:#eff2ed;
  border-radius:14px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:52px;
  overflow:hidden;
  cursor:pointer;
}

.pic img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.card small{
  margin-top:11px;
  color:var(--muted);
}

.card h3{
  font-size:17px;
  margin:5px 0;
}

.card p{
  font-size:13px;
  color:var(--muted);
  min-height:35px;
}

.card footer{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:auto;
}

.card footer b{
  font-size:20px;
}

.card footer button,
.primary{
  border:0;
  background:var(--g);
  color:#fff;
  border-radius:11px;
  padding:10px 12px;
  font-weight:800;
}

/* DESTAQUES */
.showcase-section{
  max-width:1180px;
  margin:32px auto;
  padding:0 14px;
}

.showcase-track{
  display:flex;
  flex-wrap:nowrap;
  gap:18px;
  width:100%;
  overflow-x:auto;
  overflow-y:hidden;
  padding:8px 4px 18px;
  scroll-behavior:smooth;
  scroll-snap-type:x mandatory;
}

.showcase-track .card{
  flex:0 0 250px;
  width:250px;
  min-width:250px;
  max-width:250px;
  scroll-snap-align:start;
}

.showcase-track::-webkit-scrollbar{
  height:8px;
}

.showcase-track::-webkit-scrollbar-thumb{
  border-radius:10px;
  background:#ccc;
}

.showcase-track::-webkit-scrollbar-track{
  background:#f1f1f1;
}

.featured-card{
  border:2px solid #e5b94b;
  box-shadow:0 8px 20px rgba(0,0,0,.08);
}

/* SEÃ‡ÃƒO NORMAL DE PRODUTOS */
.products-section{
  max-width:1180px;
  margin:0 auto 30px;
  padding:0 14px;
}

.products-section .grid{
  max-width:none;
  padding-left:0;
  padding-right:0;
}

/* CARRINHO */
.overlay{
  position:fixed;
  inset:0;
  background:#0008;
  z-index:50;
  display:flex;
  justify-content:flex-end;
  overflow:hidden;
}

.drawer{
  background:#fff;
  width:min(480px,100%);
  height:100%;
  overflow-y:auto;
  overflow-x:hidden;
  padding:20px;
}

.drawerHead{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.drawerHead button,
.x{
  border:0;
  border-radius:50%;
  width:38px;
  height:38px;
  font-size:24px;
}

.row{
  display:grid;
  grid-template-columns:55px 1fr auto;
  gap:10px;
  align-items:center;
  padding:12px 0;
  border-bottom:1px solid var(--line);
}

.thumb{
  width:55px;
  height:55px;
  background:#eff2ed;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
}

.thumb img{
  max-width:100%;
  max-height:100%;
}

.q{
  display:flex;
  gap:7px;
  align-items:center;
}

.q button{
  width:27px;
  height:27px;
  border:1px solid var(--line);
  background:#fff;
  border-radius:7px;
}

.drawer input,
.drawer textarea,
.box input,
.box textarea,
.box select,
.login input{
  width:100%;
  border:1px solid var(--line);
  border-radius:10px;
  padding:11px;
  margin:5px 0 10px;
}

.total{
  display:flex;
  justify-content:space-between;
  margin:15px 0;
  font-size:18px;
}

.full{
  width:100%;
}

.empty{
  text-align:center;
  padding:50px;
  color:var(--muted);
  grid-column:1/-1;
}

/* PIX */
.pixQr{
  display:block;
  width:220px;
  max-width:100%;
  height:auto;
  margin:15px auto;
  object-fit:contain;
}

.pixBox{
  width:100%;
  overflow:hidden;
}

/* TRAVA A PÃGINA QUANDO O CARRINHO ABRE */
body.cart-open{
  overflow:hidden;
}

/* MODAL */
.modal{
  background:#fff;
  width:min(430px,92vw);
  border-radius:20px;
  padding:20px;
  margin:auto;
  position:relative;
}

.modal .x{
  position:absolute;
  right:10px;
  top:10px;
}

.modal img{
  width:100%;
  height:230px;
  object-fit:contain;
  background:#eff2ed;
  border-radius:14px;
}

.modal strong{
  display:block;
  font-size:25px;
  margin:14px 0;
}

/* ADMIN */
.admin{
  background:#f2f5f1;
}

.login{
  max-width:380px;
  margin:8vh auto;
  background:#fff;
  padding:25px;
  border-radius:20px;
}

.login img{
  width:100%;
  height:85px;
}

.login h2{
  text-align:center;
}

.login p{
  color:#b42318;
}

.adminTop{
  height:70px;
  background:var(--g);
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:8px 22px;
}

.adminTop img{
  height:54px;
  width:230px;
}.adminTop button{
  background:transparent;
  color:#fff;
  border:1px solid #fff6;
  padding:8px 12px;
  border-radius:9px;
}

.adminMain{
  max-width:1180px;
  margin:auto;
  padding:22px;
}

.adminMain nav{
  display:flex;
  gap:8px;
  margin-bottom:20px;
}

.adminMain nav button{
  border:0;
  background:#fff;
  padding:11px 15px;
  border-radius:10px;
}

.adminMain nav .on{
  background:var(--g);
  color:#fff;
}

.head{
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.box{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:16px;
  margin:10px 0;
}

.prod{
  display:grid;
  grid-template-columns:58px 1fr auto auto;
  gap:10px;
  align-items:center;
  background:#fff;
  border:1px solid var(--line);
  border-radius:13px;
  padding:9px;
  margin:7px 0;
}

.prod button,
.box>button{
  border:1px solid var(--line);
  background:#fff;
  padding:8px;
  border-radius:8px;
}

.prod .thumb img{
  width:100%;
  height:100%;
  object-fit:contain;
}

.chip{
  display:inline-block;
  background:#fff;
  border:1px solid var(--line);
  border-radius:99px;
  padding:8px 11px;
  margin:3px;
}

.formgrid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.formgrid label,
.box label{
  font-weight:700;
}

.wide{
  grid-column:1/-1;
}

.order{
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  padding:15px;
  margin:10px 0;
}

.orderHead{
  display:flex;
  justify-content:space-between;
  gap:10px;
}

.order select{
  padding:8px;
  border:1px solid var(--line);
  border-radius:9px;
}

@media(max-width:650px){
.top{
  height:84px;
  padding:0 8px;
  gap:8px;
}

.top a{
  flex:1 1 auto;
  width:auto;
  height:auto;
  min-width:0;
}

.top img{
  display:block;
  width:100%;
  height:auto;
  max-height:76px;
  object-fit:contain;
  object-position:left center;
}

.cart{
  flex:0 0 auto;
  padding:8px 10px;
  font-size:14px;
}

 .hero{
  margin:14px;
  padding:34px 23px;
}
  .grid{
    grid-template-columns:repeat(2,minmax(0,1fr));
    gap:9px;
  }

  .pic{
    height:125px;
  }

  .card{
    min-height:295px;
  }

  .formgrid{
    grid-template-columns:1fr;
  }

  .wide{
    grid-column:auto;
  }

  .prod{
    grid-template-columns:50px 1fr;
  }

  .prod button{
    grid-column:auto;
  }

  .adminMain{
    padding:13px;
  }
}

@media(max-width:600px){
  .showcase-track{
    gap:12px;
  }

  .showcase-track .card{
    flex:0 0 78%;
    width:78%;
    min-width:78%;
    max-width:78%;
  }
}
/* CONTROLE DE QUANTIDADE DOS PRODUTOS */
.product-qty{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  flex-shrink:0;
}

.product-qty button{
  width:34px;
  height:34px;
  padding:0 !important;
  border:0;
  border-radius:9px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  font-weight:800;
  line-height:1;
}

.product-qty span{
  min-width:18px;
  text-align:center;
  font-size:16px;
}

/* AJUSTE PARA CELULAR */
@media(max-width:650px){
  .card footer{
    gap:6px;
  }

  .card footer b{
    font-size:18px;
  }

  .product-qty{
    gap:3px;
  }

  .product-qty button{
    width:30px;
    height:30px;
    border-radius:8px;
    font-size:18px;
  }

  .product-qty span{
    min-width:14px;
    font-size:15px;
  }
}




/* Evita zoom acidental ao tocar nos botÃµes no celular */
button,
a,
input[type="button"],
input[type="submit"],
.add-to-cart,
.btn {
  touch-action: manipulation;
}
/* Suporte no topo */
.top-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.support-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  text-decoration: none;
  font-weight: 600;
  line-height: 1.05;
}

.support-icon {
  font-size: 18px;
  line-height: 1;
}

.support-text {
  font-size: 13px;
}

.support-text small {
  font-size: 11px;
  font-weight: 400;
  opacity: 0.9;
}

/* No celular deixa mais compacto */
@media (max-width: 600px) {
  .top-actions {
    gap: 9px;
  }

  .support-icon {
    font-size: 17px;
  }

  .support-text {
    font-size: 11px;
  }

  .support-text small {
    display: none;
  }
}
/* Ajuste final do suporte ao lado do carrinho */
.top-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.support-link {
  width: auto !important;
  height: auto !important;
  flex: 0 0 auto !important;
}

.support-icon {
  font-size: 15px;
}

.support-text {
  font-size: 12px;
}

.support-text small {
  font-size: 10px;
}
/* Ãcone branco do suporte */
.support-icon {
  width: 16px;
  height: 16px;
  display: flex;
  flex: 0 0 16px;
}

.support-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: #fff;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.support-text small {
  font-size: 11px;
}
.top-actions {
  gap: 18px;
}
/* Mostrar telefone do suporte no celular */
@media (max-width: 600px) {
  .support-text small {
    display: inline !important;
  }
}

/* Manter numero do suporte branco no celular */
.support-text small,
.support-text small a {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  text-decoration: none !important;
}

/* Ajuste do cabecalho no celular: logo + suporte + carrinho */
@media (max-width: 650px) {
  .top {
    padding: 0 6px;
    gap: 5px;
  }
  .top > a {
    flex: 0 1 34%;
    max-width: 34%;
    min-width: 0;
  }
  .top img {
    width: 100%;
    height: auto;
    object-fit: contain;
  }
  .top-actions {
    flex: 1 0 auto;
    gap: 5px;
    min-width: 0;
  }
  .support-link {
    gap: 3px;
  }
  .support-icon {
    width: 13px;
    height: 13px;
    flex-basis: 13px;
  }
  .support-text {
    font-size: 10px;
    white-space: nowrap;
  }
  .support-text small {
    font-size: 9px;
    white-space: nowrap;
  }
  .cart {
    padding: 7px 7px;
    font-size: 12px;
    white-space: nowrap;
  }
}


/* Carrinho decorativo do banner no celular */
@media (max-width: 650px) {
  .hero:after {
    display: block !important;
    right: 4% !important;
    bottom: -12px !important;
    font-size: 105px !important;
    opacity: .10 !important;
  }
}
.section-title{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}

#fallingProduct{
  position:fixed;
  right:18px;
  bottom:18px;
  width:120px;
  height:170px;
  flex:none;
  z-index:20;
  pointer-events:none;
  overflow:visible;
}
#fallingProduct img{
  position:absolute;
  width:42px;
  max-height:50px;
  object-fit:contain;
  left:24px;
  top:-8px;
  opacity:0;
}

#fallingProduct .falling-cart{
  position:absolute;
  bottom:0;
  left:8px;
  font-size:54px;
  line-height:1;
}

#fallingProduct.play img{
  animation:produtoCaindo 2.2s ease-in forwards;
}

@keyframes produtoCaindo{
  0%{
    transform:translateY(10px) rotate(-8deg);
    opacity:0;
  }

  10%{
    opacity:1;
  }

  85%{
    transform:translateY(85px) rotate(8deg);
    opacity:1;
  }

  100%{
    transform:translateY(100px) scale(.35) rotate(12deg);
    opacity:0;
  }
}
@media(max-width:650px){
  .section-title{
    align-items:flex-start;
  }

 #fallingProduct{
  position:relative;
  right:auto;
  bottom:auto;
  width:72px;
  height:72px;
  flex:0 0 72px;
  z-index:1;
}
  #fallingProduct img{
    width:34px;
    max-height:40px;
    left:19px;
  }

  #fallingProduct .falling-cart{
    font-size:44px;
    left:6px;
  }
#fallingProduct.play img{
  animation:produtoCaindoMobile 2.2s ease-in forwards;
}

@keyframes produtoCaindoMobile{
  0%{
    transform:translateY(-10px) rotate(-8deg);
    opacity:0;
  }

  15%{
    opacity:1;
  }

  80%{
    transform:translateY(28px) rotate(8deg);
    opacity:1;
  }

  100%{
    transform:translateY(34px) scale(.35) rotate(12deg);
    opacity:0;
  }
}
}
.payment-option{
  display:flex;
  align-items:center;
  gap:12px;
  padding:12px 4px;
  cursor:pointer;
}

.payment-option input[type="radio"]{
  margin:0;
  width:18px;
  height:18px;
  flex:0 0 auto;
}

.payment-icon{
  width:28px;
  text-align:center;
  font-size:22px;
  line-height:1;
}

.payment-option span:last-child{
  font-size:16px;
}
