* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

.header {
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #eee;
}

.nav-links {
  display: flex;
  gap: 2rem;
}

.nav-links a {
  text-decoration: none;
  color: #333;
  font-weight: 500;
}

.order-btn {
  background-color: #ff5c4c;
  color: white;
  padding: 0.5rem 1.5rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.order-btn:hover {
  background-color: #ffb6af;
  color: #ff5c4c;
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.cart-icon {
  position: relative;
  margin-right: 1rem;
}

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

.main-content {
  padding: 2rem;
}

.page-title {
  color: #ff5c4c;
  text-align: center;
  margin-bottom: 1rem;
}

.breadcrumb {
  text-align: center;
  color: #666;
  margin-bottom: 2rem;
}

.description {
  text-align: center;
  color: #666;
  margin-bottom: 3rem;
}

.breadcrumb-text {
  color: #ff5c4c;
}

.menu-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  max-width: 1000px;
  margin: 0 auto;
}

.menu-item {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  position: relative;
}

.new-tag {
    position: absolute;
    top: 1rem;
    left: -1rem;
    background: #ff5c4c;
    color: white;
    padding: 0.25rem 1rem;
    transform: rotate(-45deg);
    border-radius: 0.5rem;
    white-space: nowrap;
}


.menu-item img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.item-content {
  padding: 1rem;
}

.item-title {
  font-size: 1.2rem;
  margin-bottom: 0.5rem;
}

.item-price {
  color: #666;
  margin-bottom: 1rem;
}

.item-description {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.action-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.add-btn {
  background-color: #ff5c4c;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

.customize-btn {
  background-color: white;
  color: #ff5c4c;
  padding: 0.75rem;
  border: 1px solid #ff5c4c;
  border-radius: 4px;
  cursor: pointer;
}

.added-btn {
  background-color: #666;
  color: white;
  padding: 0.75rem;
  border: none;
  border-radius: 4px;
  cursor: not-allowed;
}


.cart-sidebar {
  position: fixed;
  top: 0;
  right: -400px;
  width: 400px;
  height: 100vh;
  background: #ff5c4c;
  transition: right 0.3s ease;
  z-index: 1000;
}

.cart-sidebar.active {
  right: 0;
}

.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  color: #ff5c4c;
  background-color: white;
}

.cart-header span {
  font-size: 1.2rem;
  display: inline-block;
  margin: 0;
  padding: 0;
}

.inside-cart-icon {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: #ff5c4c;
}

.close-cart {
  background: none;
  border: 1px solid #ff5c4c;
  border-radius: 5px;
  color: #ff5c4c;
  font-size: 0.8rem;
  cursor: pointer;
  padding: 5px;
  transition: all 0.3s ease;
}

.close-cart:hover {
  color: #ffffff;
  background-color: #ff5c4c;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.cart-item {
  background: none;
  border: 2px solid #ffffff;
  color: white;
  margin: 1rem;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  display: flex;
  position: relative;
}

.cart-item-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.cart-item-image {
  width: 60px;
  height: 100px;
  border-radius: 4px;
  margin-right: 5px;
  object-fit: cover;
}

.remove-item {
  position: absolute;
  top: -12px;
  right: -12px;
  border: none;
  padding: 8px;
  cursor: pointer;
  background-color: #ffffff;
  color: #ff5c4c;
  border-radius: 25%;
  font-size: 0.8rem;
  transition: all 0.3s ease;
}

.remove-item:hover {
  background-color: #ff5c4c;
  color: #ffffff;
  transform: scale(1.1);
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

/* .cart-item-details {
  flex-grow: 1;
  padding: 0 1rem;
} */

.item-name {
  color: #ffffff;
}

.cart-item-price {
  font-size: 0.8rem;
  color: #ffffff;
  padding: 5px;
}

.item-subtotal {
  position: absolute;
  top: 80px;
  right: 12px;
  font-weight: bold;
  color: #ffffff;
  padding: 5px;
}

/* .quantity-controls {
  display: flex;
  margin-left: 10px;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.quantity-controls button {
  width: 28px;
  height: 28px;
  border: 1px solid #ddd;
  background: white;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  margin: -10px;
}

.quantity-controls span {
  min-width: 30px;
  text-align: center;
  background-color: white;
  color: black;
  padding-block: 5px;
  padding-right: 10px;
  padding-left: 10px;
} */

.quantity-controls {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
  width: fit-content;
}

.quantity-controls button {
  width: 30px;
  height: 50px;
  border: 1px solid #ddd;
  background: #f5f5f5;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #333;
  font-size: 20px;
  margin: 0;
  padding: 0;
}

.decrease-quantity {
  border-radius: 5px 0 0 5px;
  border-right: none;
}

.increase-quantity {
  border-radius: 0 5px 5px 0;
  border-left: none;
}

.quantity-controls span {
  min-width: 40px;
  text-align: center;
  background-color: white;
  color: black;
  padding: 10px 15px;
  border-top: 1px solid #ddd;
  border-bottom: 1px solid #ddd;
  font-size: 16px;
}

.quantity-controls button:hover {
  background: #e9e9e9;
}

.quantity-controls button:active {
  background: #ddd;
}

.cart-total {
  position: fixed;
  bottom: 0;
  width: 400px;
  padding: 1rem;
  color: #ff5c4c;
  background: white;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
}

.cart-total:hover {
  color: #ffffff;
  background-color: #ff5c4c;
  box-shadow: 0 2px 5px rgba(0,0,0,0.2);
  cursor: pointer;
  transform: scale(1.05);
}

#total-price {
  margin-left: 10px;
  margin-right: 5px;
  font-weight: bold;
}

#cart-items {
  height: calc(100vh - 140px);
  overflow-y: auto;
  padding-bottom: 80px;
}

.spinner-button {
  width: 24px;
  height: 24px;
  border: none;
  background: #f0f0f0;
  border-radius: 4px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  color: #333;
}


button:disabled {
  background-color: #aaa;
}
