* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  line-height: 1.5;
  color: #333;
}

a {
  text-decoration: none;
  color: #2e7d32;
}

ul {
  padding: 0;
  margin: 0;
  list-style: none;
}

h1,
h2,
h3,
h4,
p {
  margin: 0;
}

input {
  font-family: inherit;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.section {
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: #fff;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  max-width: 300px;
  margin: 15px;
}

.is-active {
  font-weight: bold;
  text-decoration: underline;
}

.vl {
  width: 2px;
  height: 25px;
  background-color: rgba(0, 0, 0, 0.1);
}

.shop-btn,
.add-btn,
.submit-btn,
.clear-cart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  cursor: pointer;
  border: none;
  border-radius: 6px;
  background-color: #9cc8a6;
  color: #2c3e50;
  font-weight: 500;
  transition:
    background-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.clear-cart-btn {
  background-color: #f19b0f;
}
.shop-btn:not(:disabled):hover,
.add-btn:not(:disabled):not(.is-selected):hover,
.submit-btn:not(:disabled):hover {
  background-color: #8bb996;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.clear-cart-btn:hover {
  background-color: #d68606;
  transform: translateY(-2px) scale(1.05);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.shop-btn:not(:disabled):active,
.add-btn:not(:disabled):not(.is-selected):active,
.submit-btn:not(:disabled):active {
  transform: translateY(0) scale(0.98);
}

.add-btn:disabled,
.add-btn.is-selected {
  width: 120px;
  background-color: #e0e0e0;
  color: #9e9e9e;
  cursor: not-allowed;
  pointer-events: none;
  transform: none;
  box-shadow: none;
}

.main-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  margin-top: 20px;
  align-items: start;
}

.section-shops {
  position: sticky;
  top: 20px;
  height: calc(100vh - 60px);
  padding: 24px;
  overflow-y: auto;
  text-align: center;
  background-color: #fdfdfd;
}

.list-shops > li:not(:last-child) {
  margin-bottom: 12px;
}

.shop-btn {
  width: 100%;
  min-height: 48px;
}

.section-menu {
  height: calc(100vh - 60px);
  padding: 24px;
  overflow-y: auto;
}

.list-menu {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.card {
  display: flex;
  flex-direction: column;
  padding: 16px;
  border: 1px solid #e8f5e9;
  border-radius: 12px;
  background-color: #fff;
  transition: box-shadow 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.image-card {
  width: 100%;
  height: 180px;
  margin-bottom: 12px;
  object-fit: cover;
  border-radius: 8px;
}

.card-title {
  margin-bottom: 8px;
  font-size: 18px;
}

.add-btn {
  width: 120px;
  margin-top: auto;
  margin-left: auto;
}

.form-order {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 30px;
  margin-top: 24px;
  height: calc(100vh - 120px);
}

.form-customer-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
  padding: 30px;
  background-color: #fafafa;
}

.form-customer-info label {
  font-weight: 500;
  font-size: 14px;
  color: #666;
}

.form-customer-info input {
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 6px;
  transition: border-color 0.2s;
}

.form-customer-info input:focus {
  outline: none;
  border-color: #9cc8a6;
}

.form-orders {
  display: flex;
  flex-direction: column;
  background-color: #fff;
  border: 1px solid #eee;
  border-radius: 12px;
  overflow: hidden;
}

.form-orders-list-wrapper {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

.cart-item {
  position: relative;
  display: flex;
  gap: 20px;
  padding: 16px;
  margin-bottom: 16px;
  border: 1px solid #f0f0f0;
  border-radius: 10px;
  background: #fff;
}

.cart-item__img {
  width: 140px;
  height: 100px;
  object-fit: cover;
  border-radius: 6px;
}

.cart-item__info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.cart-item__input {
  width: 70px;
  padding: 6px;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.cart-item__remove {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.form-orders-submit {
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 32px;
  padding: 24px;
  background: #fdfdfd;
  border-top: 1px solid #eee;
}

.total-price {
  font-size: 22px;
  font-weight: bold;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-thumb {
  background: #9cc8a6;
  border-radius: 10px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}
