/* RESET */
*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{
  font-family:'DM Sans',-apple-system,BlinkMacSystemFont,sans-serif;
  font-size:16px;
  color:#1a1a1a;
  background:#fff;
  position:relative;
  min-height:100vh;
  padding-bottom:90px;
}
body::before{
  content:"";
  position:fixed;
  inset:0;
  background:url('../assets/seiko-com-fundo-e-logo.jpg') center/cover no-repeat;
  opacity:.08;
  pointer-events:none;
  z-index:-1;
}

h1,h2,h3,h4,.title{font-family:'Sora',sans-serif;font-weight:700;color:#1a1a1a}

button{font-family:inherit;cursor:pointer;border:none;background:none}
input{font-family:inherit;font-size:16px}

/* STICKY WRAPPER — header + status + categories together */
.sticky-header{
  position:sticky;
  top:0;
  z-index:100;
  background:#fff;
}

/* HEADER */
.header{
  background:#C41E1E;
  padding:14px 16px;
  text-align:center;
  box-shadow:0 2px 8px rgba(0,0,0,.15);
}
.logo{
  height:54px;
  max-width:80%;
  object-fit:contain;
}

/* STATUS BANNER */
.status-banner{
  background:#fff;
  border-bottom:1px solid #eee;
  padding:8px 16px;
  display:flex;
  flex-wrap:nowrap;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}
.status-info{font-size:13px;color:#555}
.status-info strong{color:#1a1a1a;font-family:'Sora',sans-serif}
.status-badge{
  font-size:13px;
  font-weight:600;
  padding:6px 12px;
  border-radius:999px;
  white-space:nowrap;
}
.status-badge.open{background:#e6f7ec;color:#1d8a3a}
.status-badge.closed{background:#fde8e8;color:#C41E1E}

/* SCREENS */
.screen{display:none;padding:0}
.screen.active{display:block}

.screen-header{
  display:flex;
  align-items:center;
  gap:12px;
  padding:16px;
  background:#fff;
  border-bottom:1px solid #eee;
  position:sticky;
  top:0;
  z-index:35;
}
.screen-header h2{font-size:20px}
.btn-back{
  width:40px;
  height:40px;
  border-radius:50%;
  background:#f3f3f3;
  font-size:20px;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#1a1a1a;
}

/* CATEGORIAS */
.categories{
  background:#fff;
  border-bottom:1px solid #eee;
  padding:10px 24px 10px 12px;
  display:flex;
  flex-wrap:nowrap;
  gap:8px;
  overflow-x:auto;
  overflow-y:hidden;
  -webkit-overflow-scrolling:touch;
  scroll-behavior:smooth;
  scrollbar-width:none;
  -ms-overflow-style:none;
}
.categories::-webkit-scrollbar{display:none;width:0;height:0}
.cat-tab{
  flex:0 0 auto;
  flex-shrink:0;
  padding:8px 16px;
  border-radius:999px;
  background:#f3f3f3;
  color:#555;
  font-size:14px;
  font-weight:600;
  white-space:nowrap;
  transition:all .2s;
}
.cat-tab.active{background:#C41E1E;color:#fff}

/* MENU */
.menu-content{padding:16px 12px 16px}
.cat-section{margin-bottom:28px;scroll-margin-top:200px}
.cat-section h3{
  font-size:18px;
  margin-bottom:12px;
  padding-left:4px;
  color:#1a1a1a;
}
.items-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
}

.item-card{
  background:#fff;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 2px 10px rgba(0,0,0,.06);
  display:flex;
  flex-direction:column;
}
.item-img{
  width:100%;
  aspect-ratio:2/1;
  object-fit:cover;
  background:#f3f3f3;
}
.item-body{
  padding:12px 14px 14px;
  display:flex;
  flex-direction:column;
  gap:6px;
}
.item-name{font-family:'Sora',sans-serif;font-weight:700;font-size:15px;color:#1a1a1a}
.item-desc{font-size:13px;color:#555;line-height:1.35}
.item-foot{
  display:flex;
  align-items:center;
  justify-content:space-between;
  margin-top:8px;
  gap:8px;
}
.item-price{color:#C41E1E;font-weight:700;font-size:17px;font-family:'Sora',sans-serif}
.btn-add{
  background:#C41E1E;
  color:#fff;
  width:38px;
  height:38px;
  border-radius:50%;
  font-size:22px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  box-shadow:0 2px 8px rgba(196,30,30,.3);
}
.btn-add:disabled{background:#ccc;box-shadow:none;cursor:not-allowed}

.qty-control{
  display:flex;
  align-items:center;
  gap:8px;
  background:#fff;
  border:2px solid #C41E1E;
  border-radius:999px;
  padding:2px;
}
.qty-btn{
  width:32px;
  height:32px;
  border-radius:50%;
  background:#C41E1E;
  color:#fff;
  font-weight:700;
  font-size:16px;
  display:flex;
  align-items:center;
  justify-content:center;
}
.qty-num{min-width:22px;text-align:center;font-weight:700;color:#1a1a1a}

/* GRID DESKTOP */
@media (min-width:640px){
  .items-grid{grid-template-columns:repeat(2,1fr)}
}
@media (min-width:769px){
  .categories{padding-right:32px;overflow-x:auto}
  .cat-tab{font-size:12px;padding:6px 11px}
}
@media (min-width:960px){
  .items-grid{grid-template-columns:repeat(3,1fr)}
  body{max-width:1100px;margin:0 auto;box-shadow:0 0 30px rgba(0,0,0,.05)}
}

/* CARRINHO FLUTUANTE */
.floating-cart{
  position:fixed;
  left:50%;
  bottom:16px;
  transform:translateX(-50%) translateY(120%);
  background:#1a1a1a;
  color:#fff;
  padding:14px 22px;
  border-radius:999px;
  display:flex;
  align-items:center;
  gap:14px;
  font-weight:600;
  font-size:15px;
  box-shadow:0 6px 20px rgba(0,0,0,.25);
  z-index:60;
  cursor:pointer;
  transition:transform .3s ease;
  width:calc(100% - 32px);
  max-width:420px;
  justify-content:space-between;
}
.floating-cart.visible{transform:translateX(-50%) translateY(0)}
.floating-cart strong{color:#fff;font-family:'Sora',sans-serif}

/* CARRINHO TELA 2 */
.cart-items{padding:16px 12px}
.cart-line{
  display:flex;
  gap:12px;
  background:#fff;
  border-radius:12px;
  padding:10px;
  margin-bottom:10px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
  align-items:center;
}
.cart-line img{
  width:64px;
  height:64px;
  border-radius:10px;
  object-fit:cover;
  flex-shrink:0;
  background:#f3f3f3;
}
.cart-line-info{flex:1;min-width:0}
.cart-line-info .nm{font-weight:700;font-size:14px;color:#1a1a1a;font-family:'Sora',sans-serif}
.cart-line-info .pr{color:#555;font-size:12px;margin-top:2px}
.cart-line-info .sub{color:#C41E1E;font-weight:700;margin-top:4px;font-size:14px}
.cart-line-actions{display:flex;flex-direction:column;align-items:flex-end;gap:6px}
.btn-remove{
  background:transparent;
  color:#999;
  font-size:20px;
  line-height:1;
  width:24px;
  height:24px;
}
.btn-remove:hover{color:#C41E1E}

.cart-summary{
  margin:12px;
  background:#fff;
  border-radius:12px;
  padding:16px;
  box-shadow:0 2px 8px rgba(0,0,0,.05);
}
.cart-summary .total-line{
  display:flex;
  justify-content:space-between;
  font-family:'Sora',sans-serif;
  font-weight:700;
  font-size:18px;
  color:#1a1a1a;
}
.cart-summary .warn{
  margin-top:10px;
  padding:10px;
  background:#fff8e6;
  border-left:3px solid #f5b400;
  font-size:13px;
  color:#7a5b00;
  border-radius:6px;
}

.cart-actions{
  padding:16px 12px;
  display:flex;
  flex-direction:column;
  gap:10px;
}
@media (min-width:560px){
  .cart-actions{flex-direction:row}
  .cart-actions .btn{flex:1}
}

.empty-cart{padding:40px 20px;text-align:center;color:#777}

/* BOTÕES */
.btn{
  padding:14px 18px;
  border-radius:12px;
  font-weight:700;
  font-size:15px;
  font-family:'Sora',sans-serif;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  transition:all .2s;
}
.btn-primary{background:#C41E1E;color:#fff;box-shadow:0 4px 12px rgba(196,30,30,.3)}
.btn-primary:disabled{background:#ccc;box-shadow:none;cursor:not-allowed}
.btn-secondary{background:#f3f3f3;color:#1a1a1a}
.btn-whatsapp{
  background:#25D366;
  color:#fff;
  width:calc(100% - 24px);
  margin:8px 12px 24px;
  padding:16px;
  font-size:16px;
  box-shadow:0 4px 14px rgba(37,211,102,.35);
}
.btn-whatsapp:disabled{background:#a8d9b9;box-shadow:none;cursor:not-allowed}

/* CHECKOUT */
.form-section{padding:14px 16px;background:#fff;margin:10px 12px;border-radius:12px;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.form-label{display:block;font-weight:600;font-size:14px;color:#1a1a1a;margin-bottom:8px;font-family:'Sora',sans-serif}
input[type=text]{
  width:100%;
  padding:12px 14px;
  border:1.5px solid #e0e0e0;
  border-radius:10px;
  outline:none;
  transition:border-color .2s;
  margin-bottom:10px;
}
input[type=text]:focus{border-color:#C41E1E}

.order-type,.payment-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}
.order-btn,.pay-btn{
  padding:14px 10px;
  border:2px solid #e0e0e0;
  border-radius:12px;
  background:#fff;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:6px;
  font-weight:600;
  font-size:14px;
  color:#1a1a1a;
  transition:all .2s;
  text-align:center;
}
.pay-btn{flex-direction:row;justify-content:center;padding:13px}
.order-btn.active,.pay-btn.active{
  border-color:#C41E1E;
  background:#fff5f5;
  color:#C41E1E;
}
.big-icon{font-size:28px}

.info-box{
  background:#f8f8f8;
  padding:14px;
  border-radius:10px;
  font-size:14px;
  line-height:1.5;
  color:#1a1a1a;
}
.cep-status{font-size:13px;margin-top:-4px;margin-bottom:8px;min-height:18px}
.cep-status.loading{color:#888}
.cep-status.error{color:#C41E1E}
.cep-status.ok{color:#1d8a3a}

.fee-box{
  margin:6px 0 10px;
  padding:10px 12px;
  border-radius:10px;
  font-size:14px;
  font-weight:600;
  line-height:1.4;
}
.fee-box.loading{background:#f3f3f3;color:#555}
.fee-box.ok{background:#e6f7ec;color:#1d8a3a;border-left:3px solid #1d8a3a}
.fee-box.error{background:#fde8e8;color:#C41E1E;border-left:3px solid #C41E1E}
.fee-box.warn{background:#fff3e0;color:#a35400;border-left:3px solid #f5b400}

.order-summary{background:#f8f8f8;border-radius:10px;padding:12px}
.order-summary summary{cursor:pointer;font-weight:600;font-family:'Sora',sans-serif}
.order-summary summary::-webkit-details-marker{color:#C41E1E}
.summary-line{
  display:flex;
  justify-content:space-between;
  padding:6px 0;
  border-bottom:1px dashed #ddd;
  font-size:14px;
}
.summary-line:last-child{border-bottom:none}
.summary-total{
  display:flex;
  justify-content:space-between;
  padding-top:10px;
  margin-top:6px;
  border-top:2px solid #1a1a1a;
  font-weight:700;
  font-family:'Sora',sans-serif;
  color:#C41E1E;
  font-size:16px;
}
