/* public/assets/css/food.css */

:root{
  --red:#ff0000;
  --orange:#ff6a00;
  --text:#111;
  --muted:#666;
  --line:#e9e9e9;
  --white:#fff;
}

*{ box-sizing:border-box; }
html,body{ margin:0; padding:0; }

.food-page{
  background: var(--white);
  padding: 16px 0 22px;
}

.food-shell{
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 14px;
}

/* Top like Cart */
.food-top{
  padding: 14px 0 16px;
  border-bottom: 1px solid var(--line);
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.food-titlewrap .food-top-title{
  font-size: 18px;
  font-weight: 700; /* not too bold */
  line-height: 1.2;
  color: var(--text);
}
.food-titlewrap .food-top-sub{
  margin-top: 4px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 400;
}

/* Back button red (right) */
.food-back-btn{
  display:inline-flex;
  align-items:center;
  gap:8px;
  text-decoration:none;
  background: var(--red);
  color:#fff;
  font-weight: 600;
  font-size: 13px;
  padding: 10px 14px;
  border-radius: 12px;
  white-space: nowrap;
  flex: 0 0 auto;
}
.food-back-btn:hover{ opacity:.92; }

/* Hero layout */
.food-hero{
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow:hidden;
  background: #fff;

  display:grid;
  grid-template-columns: 1.05fr .95fr;
  align-items: stretch;
}

/* IMAGE */
.food-media{
  padding: 18px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-left: 1px solid var(--line);
}
.food-media img{
  width: 100%;
  height: 360px;
  object-fit: contain;
  display:block;
}

/* CONTENT */
.food-content{ padding: 20px; }

.food-chip{
  display:inline-block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--orange);
  background: rgba(255,106,0,.10);
  border: 1px solid rgba(255,106,0,.22);
  padding: 7px 10px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.food-title{
  margin: 0 0 10px;
  font-size: 32px;
  line-height: 1.1;
  color: var(--text);
  font-weight: 700;
}

.food-desc{
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 13.5px;
  font-weight: 400;
}

/* Stats */
.food-stats{
  display:flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 10px 0 18px;
}
.stat{
  display:flex;
  align-items:center;
  gap:10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  min-width: 240px;
}
.stat-icon{
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display:flex;
  align-items:center;
  justify-content:center;
  background: rgba(255,106,0,.10);
  border: 1px solid rgba(255,106,0,.20);
  color: var(--orange);
}
.stat-top{
  font-weight: 600;
  font-size: 13px;
  color: var(--text);
}
.stat-bottom{
  font-size: 12.5px;
  color: var(--muted);
  margin-top: 2px;
  font-weight: 400;
}

/* Buy */
.food-buy{
  border-top: 1px solid var(--line);
  padding-top: 16px;
}

.food-price{
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 12px;
}

.food-form{
  display:flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items:flex-end;
}

/* Qty */
.qty{
  display:flex;
  flex-direction:column;
  gap:6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.qty input{
  width: 120px;
  padding: 11px 12px;
  border: 1px solid #dcdcdc;
  border-radius: 12px;
  outline:none;
  font-size: 14px;
  background:#fff;
}
.qty input:focus{ border-color: rgba(255,106,0,.55); }
.qty input:disabled{ opacity: .65; }

/* Buttons */
.btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  text-decoration:none;
  cursor:pointer;
  border: 1px solid transparent;
  user-select:none;
}

.btn-primary{
  background: var(--red);
  color:#fff;
}
.btn-primary:hover{ opacity:.92; }

.btn-primary[disabled],
.btn-primary[aria-disabled="true"]{
  opacity: .55;
  cursor: not-allowed;
}

.btn-outline{
  background:#fff;
  color: var(--text);
  border: 1px solid var(--line);
}
.btn-outline:hover{
  border-color: rgba(255,106,0,.45);
  color: var(--orange);
}
.btn-outline.strong{
  border-color: rgba(255,106,0,.35);
}

.food-note{
  margin-top: 10px;
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
  font-weight: 400;
}

/* Toast */
.toast{
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: green;
  color:#fff;
  padding: 12px 14px;
  border-radius: 12px;
  font-weight: 600;
  opacity: 0;
  pointer-events:none;
  transition: .22s;
  z-index: 9999;
  max-width: 92vw;
}
.toast.show{
  opacity: 1;
  bottom: 28px;
}

/* Responsive: Image first on mobile */
@media (max-width: 950px){
  .food-hero{ grid-template-columns: 1fr; }
  .food-media{
    border-left: 0;
    border-bottom: 1px solid var(--line);
  }
  .food-media img{ height: 320px; }
}

/* Smaller mobile sizing */
@media (max-width: 640px){
  .food-top{
    flex-direction: column;
    align-items: flex-start;
  }
  .food-back-btn{
    align-self: flex-end;
    padding: 9px 12px;
    font-size: 12.5px;
  }

  .food-titlewrap .food-top-title{ font-size: 16px; }
  .food-titlewrap .food-top-sub{ font-size: 12px; }

  .food-title{ font-size: 26px; }
}

@media (max-width: 520px){
  .stat{ min-width: 100%; }
  .qty input{ width: 100%; }
  .btn{ width: 100%; }
}