:root{
  --primary:#14b8a6;
  --secondary:#3b82f6;
  --accent:#8b5cf6;
}

*{
  box-sizing:border-box;
}

body{
  margin:0;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif;
  background:#f4f7fb;
}

/* HEADER */

.header{
  background:linear-gradient(135deg,var(--primary),var(--secondary),var(--accent));
  color:white;
  padding:12px;
}

.header-inner{
  max-width:1100px;
  margin:auto;
  display:flex;
  justify-content:space-between;
  align-items:center;
}

.brand{
  display:flex;
  align-items:center;
  gap:14px;
}

.logo-wrapper{
  width:65px;
  height:55px;
  border-radius:20px;
  overflow:hidden;
  background:rgba(255,255,255,.2);
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  transition:.3s;
}

.logo-wrapper:hover{
  transform:scale(1.55);
}

.logo-img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:none;
}

.logo-fallback{
  font-weight:bold;
  font-size:24px;
}

.headline{
  margin:4px 0 0;
  font-size:13px;
  opacity:.9;
}

.whatsapp-btn{
  background:#25d366;
  border:none;
  color:white;
  padding:8px 16px;
  border-radius:999px;
  cursor:pointer;
}

/* CONTAINER */

.container{
  max-width:1100px;
  margin:auto;
  padding:16px;

  margin-top:200px; /* ðŸ”¥ compensaÃ§Ã£o do topo */
}

/* BUSCA */

.search-box{
  padding:10px;
  background:transparent;
 /* background:#fff;*/
}

.search-box input{
  width:100%;
  padding:8px 12px;
  border-radius:999px;
  border:2px solid var(--secondary);
  font-size:13px;
}

/* CATEGORIAS */

.categories{
  display:flex;
  gap:8px;
  overflow-x:auto;
  padding:6px 12px 8px;

  max-width:1100px;
  margin:0 auto;

  /*justify-content:center;*/ /* ðŸ”¥ CENTRALIZA */
  justify-content: flex-start;

  scrollbar-width:none;
}

.categories::-webkit-scrollbar{
  display:none;
}

.category-btn{
  padding:6px 12px;
  border-radius:999px;
  border:none;
  background:#e5e7eb;
  font-size:15px; /* ðŸ”¥ ajuste fino */
  cursor:pointer;
  white-space:nowrap;
  transition:.2s;
}

.category-btn:hover{
  background:#d1d5db;
}

.category-btn.active{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;
}

/* PRODUTOS */

.products{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:14px;
}

@media(min-width:900px){
  .products{grid-template-columns:repeat(4,1fr);}
}

.product{
  background:white;
  border-radius:16px;
  padding:12px;
  text-align:center;
  box-shadow:0 6px 20px rgba(0,0,0,.08);
}

.product img{
  width:100%;
  max-height:160px;
  object-fit:contain;
  cursor:zoom-in;
}

.product h2{
  font-size:13px;
  margin:6px 0;
  line-height:1.3;
  max-height:2.6em;
  overflow:hidden;
}

.desc{
  font-size:13px;
  color:#555;
  line-height:1.45;
  overflow:hidden;
  max-height:2.9em;
}

.price{
  font-weight:bold;
  color:#0f766e;
  margin:6px 0;
}

.button{
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;
  border:none;
  width:100%;
  padding:8px;
  border-radius:999px;
  cursor:pointer;
}

/* BOTï¾ƒã‚° CARRINHO */

.cart-btn{
  position:fixed;
  bottom:18px;
  right:18px;
  width:60px;
  height:60px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;
  border:none;
  font-size:22px;
  cursor:pointer;
  box-shadow:0 8px 25px rgba(0,0,0,.25);
  z-index:2000;
}

.cart-count{
  position:absolute;
  top:-6px;
  right:-6px;
  background:red;
  color:white;
  font-size:12px;
  padding:2px 6px;
  border-radius:50%;
}

/* ========================= */
/* MODAL CARRINHO */
/* ========================= */

.cart-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.6);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:10001; /* ðŸ”¥ maior que topo */
}

.cart-box{
  background:white;
  width:95%;
  max-width:420px;
  max-height:90vh;
  overflow-y:auto;
  border-radius:20px;
  padding:20px;
  box-shadow:0 15px 40px rgba(0,0,0,.3);
}

.cart-header{
  display:flex;
  justify-content:space-between;
  align-items:center;
  font-size:16px;
  margin-bottom:12px;
}

.cart-header span{
  cursor:pointer;
  font-size:18px;
}

.cart-items{
  margin-bottom:16px;
}

.cart-item{
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-bottom:10px;
}

.qty-controls{
  display:flex;
  align-items:center;
  gap:6px;
}

.qty-controls button{
  width:26px;
  height:26px;
  border:none;
  border-radius:6px;
  background:#e5e7eb;
  cursor:pointer;
}

.cart-summary{
  border-top:1px solid #ddd;
  padding-top:12px;
}

.cart-summary .row{
  display:flex;
  justify-content:space-between;
  margin-bottom:6px;
  font-size:14px;
}

.checkout-btn{
  margin-top:12px;
  width:100%;
  padding:10px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;
  font-weight:bold;
  cursor:pointer;
}

/* MODAL IMAGEM */

.img-modal{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,.85);
  display:none;
  justify-content:center;
  align-items:center;
  z-index:4000;
}

.img-modal img{
  max-width:90%;
  max-height:90%;
  border-radius:16px;
}
/* ========================= */
/* CUPOM */
/* ========================= */

.coupon-area{
  margin-top:10px;
}

.coupon-input{
  display:flex;
  gap:8px;
  margin-bottom:4px;
}

.coupon-input input{
  flex:1;
  padding:8px 10px;
  border-radius:10px;
  border:1px solid #ddd;
  font-size:13px;
}

.coupon-input input:focus{
  outline:none;
  border-color:var(--secondary);
}

.coupon-input button{
  padding:8px 14px;
  border:none;
  border-radius:999px;
  background:linear-gradient(135deg,var(--primary),var(--secondary));
  color:white;
  font-weight:600;
  cursor:pointer;
  transition:.2s;
}

.coupon-input button:hover{
  opacity:.9;
}

.coupon-message{
  font-size:12px;
  min-height:14px;
}

.modal-sucesso{
  position:fixed;
  inset:0;
  background:rgba(0,0,0,0.6);
  display:flex;
  align-items:center;
  justify-content:center;
  z-index:9999;
  opacity:0;
  pointer-events:none;
  transition:0.3s;
}

.modal-sucesso.ativo{
  opacity:1;
  pointer-events:all;
}

.modal-box{
  background:#111827;
  padding:40px;
  border-radius:20px;
  text-align:center;
  width:320px;
  color:#fff;
  box-shadow:0 20px 60px rgba(0,0,0,0.5);
  animation:pop 0.3s ease;
}

.modal-box h2{
  margin:15px 0 10px;
  font-size:20px;
}

.modal-box p{
  font-size:14px;
  color:#9CA3AF;
}

.modal-box button{
  margin-top:20px;
  padding:10px 20px;
  border:none;
  border-radius:8px;
  background:linear-gradient(90deg,#00FFD1,#2563EB);
  color:#000;
  font-weight:600;
  cursor:pointer;
}

.check{
  font-size:40px;
  color:#00FFD1;
}

@keyframes pop{
  from{transform:scale(0.8);opacity:0;}
  to{transform:scale(1);opacity:1;}
}

/* ========================= */
/* TOAST PREMIUM CARRINHO */
/* ========================= */

.cart-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background: linear-gradient(135deg, #00FFD1, #00B8FF);
  color: #000;
  padding: 16px 22px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  box-shadow: 0 10px 30px rgba(0,255,209,0.3);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: all .4s ease;
  z-index: 9999;
  font-family: Arial, sans-serif;
}

.cart-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast-icon {
  font-size: 22px;
}

.toast-content strong {
  display: block;
  font-size: 14px;
}

.toast-content small {
  font-size: 12px;
  opacity: .8;
}

/* ========================= */
/* PREMIUM ALERT */
/* ========================= */

.premium-alert {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 10000;
}

.premium-alert.show {
  display: flex;
}

.premium-alert-box {
  background: linear-gradient(145deg,#0f172a,#111827);
  padding: 50px;
  border-radius: 24px;
  width: 90%;
  max-width: 420px;
  text-align: center;
  color: #E6EDF3;
  box-shadow: 0 30px 80px rgba(0,0,0,.6);
  animation: scaleUp .35s ease;
}

.alert-btn {
  margin-top: 25px;
  padding: 14px 24px;
  border-radius: 14px;
  border: none;
  font-weight: 600;
  background: linear-gradient(90deg,#00FFD1,#00B8FF);
  cursor: pointer;
  font-size: 15px;
}

.alert-success-icon {
  margin-bottom: 25px;
}

.checkmark-circle {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg,#00FFD1,#00B8FF);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  animation: pop .4s ease;
}

.checkmark {
  width: 25px;
  height: 50px;
  border-right: 6px solid #000;
  border-bottom: 6px solid #000;
  transform: rotate(45deg);
}

@keyframes scaleUp {
  from { transform: scale(.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes pop {
  from { transform: scale(.5); }
  to { transform: scale(1); }
}

/* ========================= */
/* TOPO FIXO */
/* ========================= */

.topo-fixo{
  position:fixed;
  top:0;
  left:0;
  width:100%;
  z-index:9999;
  background:#f4f7fb;
}

.search-box{
  padding:10px 16px 14px;
  background:#fff;
  max-width:1100px;
  margin:0 auto;
}

.categories{
  margin-bottom:6px;
}

/* ========================= */
/* VITRINE DESKTOP FIX */
/* ========================= */

.vitrine-mode .container{
  max-width:1100px;
  margin:0 auto;
}

.vitrine-mode .search-box,
.vitrine-mode .categories{
  max-width:1100px;
  margin:0 auto;
}

/* ========================= */
/* VITRINE - BASE VISUAL */
/* ========================= */

.vitrine-mode .container{
  max-width:1100px;
  margin:0 auto;
  padding:16px;

  background:rgba(255,255,255,0.6); /* 🔥 leve fundo */
  border-radius:20px;

  backdrop-filter:blur(6px); /* 🔥 efeito premium */
}

.desc{
  font-size:13px;
  color:#555;
  line-height:1.45;

  overflow:hidden;
  max-height:2.9em;
}

.desc.expanded{
  max-height:1000px;
}

.ver-mais{
  display:block;
  font-size:12px;
  color:var(--secondary);
  cursor:pointer;
  margin-top:4px;
  font-weight:500;
}
