:root {
  --main-color-400: #367ff4;
  --main-color-500: #226add;
  --main-color-600: #134fb0;
  --green-color-500: #228e39;
  --orange-color-500: #cf811b;
  --gray-color-500: #2d3139;
  --gray-color-600: #1b1d23;
  --border-color-500: #969595;
  --border-color-600: #3b3d45;
  --border-color-700: #282a31;

  --text: #ebeff3;
  --label: #979ba0;
  --background: #0b0e15;
  --input-bg: #080808;
  --card-bg: #1d1f25;
  --item-hover: #ffffff10;
}

* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  padding: 0 20px;
  background: var(--background);
  color: var(--text);
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
}

body *::-webkit-scrollbar {
  width: 12px;
}

body *::-webkit-scrollbar-track {
  background: var(--border-color-700);
  border-radius: 4px;
}

body *::-webkit-scrollbar-thumb {
  background-color: var(--border-color-500);
  border-radius: 20px;
  border: 3px solid var(--border-color-700);
}

h1 {
  height: 10%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Button */
button {
  cursor: pointer;
  padding: 0.65rem 1.5rem 0.65rem;
  border: none;
  border-radius: 1rem;
  color: white;
  font-size: 0.9rem;
  font-weight: 500;
  transition: all 0.1s;
  background: var(--main-color-500);
  box-shadow: 0 4px 0 var(--main-color-600);
}

button:hover {
  filter: brightness(1.1);
}

button:active {
  box-shadow: none;
  transform: translateY(5px);
}

button.cancel {
  background: var(--gray-color-500);
  box-shadow: 0 5px 0 var(--gray-color-600);
}

button.mini-button {
  padding: 0;
  width: 36px;
  height: 32px;
  font-size: 1rem;
  box-shadow: 0 4px 0 var(--main-color-600);
  margin-bottom: 2px;
}

/* Input */
input {
  background: var(--input-bg);
  border-radius: 1rem;
  font-size: 1rem;
  width: 100%;
  color: var(--text);
  overflow: hidden;
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color-500);
}

input::placeholder {
  color: var(--label);
}

input::selection {
  background-color: var(--main-color-500);
  color: var(--text);
}

input::-moz-selection {
  background-color: var(--main-color-500);
  color: var(--text);
}

input:focus-visible {
  outline: none;
  border-color: var(--main-color-500);
}

input.small {
  font-size: 0.9rem;
}

/* Number Input */
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

input[type="number"] {
  -moz-appearance: textfield;
  min-width: 64px;
}

/* Checkbox Input */
input[type="checkbox" i] {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid var(--main-color-500);
  border-radius: 4px;
  background-color: var(--input-bg);
  cursor: pointer;
  position: relative;
  display: inline-block;
  padding: 0;
  min-width: auto;
}

input[type="checkbox" i]:checked {
  background-color: var(--main-color-500);
  border-color: var(--main-color-500);
}

input[type="checkbox" i]:checked::after {
  content: '';
  position: absolute;
  top: 40%;
  left: 50%;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: translate(-50%, -50%) rotate(45deg);
}

input[type="checkbox" i]:checked:hover {
  background-color: var(--main-color-400);
  border-color: var(--main-color-400);
}

input[type="checkbox" i]:hover {
  border-color: var(--main-color-400);
}

/* Select */
select {
  appearance: none;
  background: var(--input-bg);
  border-radius: 1rem;
  font-size: 1rem;
  width: 100%;
  color: var(--text);
  padding: 0.75rem 1rem;
  border: 2px solid var(--border-color-500);
}

select::placeholder {
  color: var(--label);
}

select::-moz-selection {
  background-color: var(--main-color-500);
  color: var(--text);
}

select:focus-visible {
  outline: none;
  border-color: var(--main-color-500);
}

select option {
  display: block;
  padding: 0.5rem 0;
}

.select {
  display: flex;
  position: relative;
  width: 100%;
}

.main-content {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  gap: 2rem;
  height: 85%;
  width: 100%;
}

.scrolling-container {
  overflow-y: auto;
  padding-right: 4px;
}

.card {
  padding: 1rem;
  background: var(--card-bg);
  border: 1px solid var(--border-color-600);
  border-radius: 0.5rem;
}

.price {
  font-weight: bold;
}

.label {
  color: var(--label);
}

.input-label {
  display: inline-block;
  color: var(--label);
  width: 100%;
  text-align: left;
  padding: 0.5rem;
  font-size: 0.85rem;
}

.title-container {
  display: flex;
  align-items: center;
}

.category {
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
}

.items-container {
  width: 100%;
  height: 180px;
  margin-top: 1rem;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  padding-top: 0.5rem;
  border-bottom: 1px solid var(--border-color-500);
}

.item:first-child {
  border-top: 1px solid var(--border-color-500);
}

.item:hover {
  background: var(--item-hover);
}

.item-controls {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.item-controls input {
  width: 50px;
  text-align: center;
  margin: 0 5px;
}

.cart {
  height: 100%;
}

.cart .bottom-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.cart-items {
  width: 100%;
  height: 628px;
  margin-top: 1rem;
}

.cart-items .no-items {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75rem 1rem;
  padding-top: 0.5rem;
  border-bottom: 1px solid var(--border-color-500);
}

.cart-item:first-child {
  border-top: 1px solid var(--border-color-500);
}

.cart-item:hover {
  background: var(--item-hover);
}

.cart-item .details-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item .resume-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.cart-item .total-amount {
  font-size: 0.9rem;
}

.quantity-controls {
  display: flex;
  align-items: center;
}

.quantity-controls input {
  width: 50px;
  text-align: center;
  margin: 0 5px;
}

.total {
  font-size: 0.9rem;
  display: flex;
  flex-direction: column;
  padding-top: 2rem;
}

.total .total-amount {
  margin-top: 4px;
  font-size: 1.75rem;
  font-weight: bold;
}

.order-summary {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 2rem;
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid var(--border-color-500);
}

.order-summary h3 {
  width: 100%;
  text-align: left;
  margin-bottom: 0.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-color-500);
}

.order-summary .order-summary-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  height: 120px;
}

.order-summary .order-summary-item {
  font-size: 0.9rem;
}

.delivery-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  margin-bottom: 0.5rem;
}

.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
}

.modal-control {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.modal-content {
  background: var(--background);
  margin: 15% auto;
  padding: 20px;
  border: 1px solid var(--border-color-700);
  width: 500px;
  max-width: 80%;
  max-height: 80%;
  text-align: center;
  border-radius: 8px;
}

.modal-content h2 {
  margin-bottom: 20px;
}

.modal-buttons {
  width: 100%;
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
}

.toast {
  z-index: 99;
  visibility: hidden;
  width: 468px;
  color: white;
  text-align: center;
  border-radius: 0.5rem;
  padding: 16px;
  position: fixed;
  z-index: 1000;
  left: 50%;
  bottom: 30px;
  font-size: 17px;
  opacity: 0;
  transform: translateX(-50%);
  transition: opacity 0.5s, visibility 0.5s;
}

.toast.success {
  background: var(--green-color-500);
}

.toast.warning {
  background: var(--orange-color-500);
}

.toast.error {
  background: var(--main-color-500);
}

.toast.show {
  visibility: visible;
  opacity: 1;
}