/* BODY */
body{
  margin:0;
  font-family:'Arial',sans-serif;
  background:#f8f8f8;
}

/* HEADER */
.menu-header{
  width:100%;
  height:250px;
  background:url('./image/flat-lay-traditional-japanese-sushi-with-copy-space.jpg') center/cover no-repeat;
  display:flex;
  align-items:center;
  justify-content:center;
  color:white;
  font-size: 42px;
  font-weight:bold;
  position: relative;
  letter-spacing: 2px;
}

.menu-header::after{
  content:'';
  position:absolute;
  inset:0;
  background: rgba(0,0,0,0.35);
}

/* CATEGORY SCROLL */
.category-scroll{
  display:flex;
  overflow-x:auto;
  gap:10px;
  padding:10px 20px;
  background:white;
  position:sticky;
  top:0;
  z-index:1000;
  box-shadow:0 2px 6px rgba(0,0,0,0.1);
}
.category-scroll button{
  flex:0 0 auto;
  padding:10px 20px;
  border:none;
  border-radius:25px;
  background:#ff4500;
  color:white;
  font-weight:bold;
  cursor:pointer;
  transition:0.2s;
}
.category-scroll button.active{
  font-weight:bold;
  text-decoration:underline;
}
.category-scroll button:hover{
  background:#e03e00;
}

/* MENU CONTAINER */
.menu-container{
  max-width:1200px;
  margin:20px auto;
  padding:0 20px;
}
.category{
  margin:40px 0 20px;
  font-size: 26px;
  font-weight:bold;
  color:#222;
  position: relative;
}

.category::after{
  content:'';
  width:40px;
  height:4px;
  background:#ff4500;
  position:absolute;
  bottom:-8px;
  left:0;
  border-radius:4px;
}


.dishes {
  display: grid;
  gap: 20px;
}

.dish{
  background:white;
  border-radius:18px;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  display:flex;
  flex-direction:column;
  overflow:hidden;
  transition:0.25s;
  min-height: 240px;
}

.dish:hover{
  transform:translateY(-6px) scale(1.01);
  box-shadow:0 12px 28px rgba(0,0,0,0.15);
}

.dish img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.sets .dish img {
  height: 140px;
}

.dish-info{
  padding: 8px 10px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
}
.dish-name{
  font-size:16px;
  font-weight:bold;
  margin-bottom:5px;
}
.dish-price{
  font-weight:700;
  font-size:15px;
  color:#ff4500;
  margin-bottom:10px;
}

/* КНОПКИ + - */
.dish-controls{
  display:flex;
  align-items:center;
  gap:10px;
}
.dish-controls button{
  border:none;
  border-radius:50%;
  background:#ff4500;
  color:white;
  cursor:pointer;
  font-size:18px;
  font-weight:bold;
  width:34px;
  height:34px;
  transition:0.2s;
  box-shadow:0 4px 10px rgba(255,69,0,0.35);
}


.dish-controls button:hover{
  background:#e03e00;
}
.dish-count{
  min-width:20px;
  text-align:center;
}

.dish-desc{
  font-size: 12px;
  color:#888;
  line-height: 1.3;
  margin-bottom: 6px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.dish-desc.expanded{
  -webkit-line-clamp: unset;
  overflow: visible;
}

/* CART ICON */
.cart-icon{
  background: linear-gradient(135deg,#ff4500,#ff7a00);
  position:fixed;
  right:20px;
  bottom:20px;
  width:68px;
  height:68px;
  border-radius:50%;
  background:#ff4500;
  display:flex;
  align-items:center;
  justify-content:center;
  cursor:pointer;
  z-index:1001;
  box-shadow:0 10px 25px rgba(255,69,0,0.4);
  display:none;
  bottom: calc(env(safe-area-inset-bottom) + 20px);
}
.cart-icon img{
  width:30px;
  height:30px;
}
.cart-badge{
  position:absolute;
  top:-5px;
  right:-5px;
  background:#fff;
  color:#ff4500;
  font-weight:bold;
  width:20px;
  height:20px;
  font-size:13px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
}

/* CART MODAL */
.cart-modal {
  display: none;
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 400px;
  max-height: 80%;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.3);
  padding: 20px 20px 40px 20px;
  overflow-y: auto;
  z-index: 2000;
  font-family: 'Arial', sans-serif;
}
.cart-modal h3 {
  margin-top: 0;
  color: #ff4500;
  font-size: 20px;
  text-align: center;
  border-bottom: 1px solid #eee;
  padding-bottom: 10px;
}
.close-cart {
  position: absolute;
  top: 15px;
  right: 15px;
  background: #ff4500;
  color: white;
  border: none;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  font-weight: bold;
  cursor: pointer;
  font-size: 18px;
  line-height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
.close-cart:hover {
  background: #e03e00;
}

/* CART ITEMS */
.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  padding: 10px;
  border-radius: 12px;
  background: #f9f9f9;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
  font-size: 16px;
}


/* CART TOTAL */
.cart-total {
  font-weight: bold;
  margin-top: 15px;
  text-align: right;
  color: #ff4500;
  font-size: 18px;
}


/* Сеты — компактные, но 1 в ряд */

.sets .dish img {
  height: 140px;
}


/* GRID ЛОГИКА КАТЕГОРИЙ */

/* Сеты */
.dishes.sets {
  grid-template-columns: 1fr;
}

/* Роллы и напитки */
.dishes.rolls,
.dishes.drinks {
  grid-template-columns: repeat(2, 1fr);
}

/* ПК версия */
@media (min-width: 1024px) {
  .dishes.sets {
    grid-template-columns: repeat(2, 1fr);
  }

  .dishes.rolls,
  .dishes.drinks {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Супы — 2 в ряд */
.dishes.soups {
  grid-template-columns: repeat(2, 1fr);
}

/* Пицца — 2 в ряд */
.dishes.pizza {
  grid-template-columns: repeat(2, 1fr);
}



@media (max-width: 768px) {
  .menu-container {
    padding-bottom: 120px;
  }
}




/* ====== Компактные карточки как в Яндекс Еде ====== */

.dish-name {
  font-size: 14px;
  line-height: 1.2;
}

.dish-price {
  font-size: 13px;
  margin-bottom: 6px;
}

/* кнопка + внизу справа */
.dish-controls {
  justify-content: flex-end;
}

.cart-service {
  margin-top: 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}


/* ====== ШРИФТ ====== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600;700&display=swap');

body{
  font-family: 'Inter', sans-serif;
  background: linear-gradient(180deg,#fff,#f3f3f3);
}
