body {
  font-family: Arial, sans-serif;
  background-color: #fef5ed;
  margin: 0;
  padding: 0;
  text-align: center;
}

header {
  background-color: #fde4d0;
  padding: 20px;
}

.logo {
  max-width: 80px;
}

button {
  background-color: #d87b6e;
  color: white;
  border: none;
  padding: 10px 20px;
  margin-top: 10px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 8px;
}

button:hover {
  background-color: #c36b5f;
}

.category-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.category-grid button {
  width: 120px;
  height: 120px; /* однаковий розмір для всіх категорій */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.category-grid button img {
  width: 80px;
  height: 80px;
  object-fit: cover; /* картинка заповнює блок без спотворення */
  margin-bottom: 5px;
  border-radius: 8px;
}

.products {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 15px;
  margin: 20px 0;
}

.card {
  background: white;
  border-radius: 10px;
  padding: 10px;
  width: 200px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;      /* фіксована висота для всіх карток */
  object-fit: cover;   /* обрізає зайве, зберігаючи пропорції */
  border-radius: 10px;
}

.advantages ul {
  list-style: none;
  padding: 0;
}

.advantages li {
  font-size: 18px;
  margin: 10px 0;
}

.price-list {
  margin: 40px auto;
  width: 90%;
  max-width: 800px;
}

.price-list table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  background: white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.price-list th,
.price-list td {
  border: 1px solid #ddd;
  padding: 12px;
  text-align: center;
}

.price-list th {
  background-color: #fde4d0;
  font-weight: bold;
}

.price-list tr:hover {
  background-color: #f8f8f8;
}

footer {
  background-color: #fde4d0;
  padding: 10px;
  margin-top: 30px;
}

.order-form {
  display: flex;
  flex-direction: column;
  max-width: 400px;
  margin: 30px auto;
  gap: 15px;
}

.order-form input,
.order-form select,
.order-form textarea {
  padding: 10px;
  font-size: 16px;
  border: 1px solid #a06e6e;
  border-radius: 8px;
  width: 100%;
}

@media (max-width: 600px) {
  .card {
    width: 90%;
  }
  .category-grid button {
    width: 45%;
    height: 120px; /* адаптивна висота */
  }
  .price-list table {
    font-size: 14px;
  }
}
/* ===== БОКОВИЙ КОШИК ===== */
#cartSidebar {
  position: fixed;
  top: 0;
  right: -320px; /* спочатку за межами екрану */
  width: 300px;
  height: 100%;
  background: #fffaf6;
  box-shadow: -4px 0 12px rgba(0,0,0,0.2);
  padding: 20px;
  transition: right 0.3s ease;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

#cartSidebar.open {
  right: 0;
}

#cartSidebar h2 {
  margin-top: 0;
  text-align: center;
  color: #d87b6e;
}

#cartSidebar .closeSidebar {
  align-self: flex-end;
  background: none;
  border: none;
  font-size: 22px;
  cursor: pointer;
  color: #c36b5f;
}

#cartItems {
  list-style: none;
  padding: 0;
  margin: 10px 0;
  flex: 1;
  overflow-y: auto;
}

#cartItems li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px solid #eee;
  font-size: 16px;
}

#cartItems li .remove {
  background: none;
  border: none;
  color: #c36b5f;
  font-weight: bold;
  cursor: pointer;
}

#totalPrice {
  font-weight: bold;
  margin-top: 10px;
  text-align: right;
}

#checkoutBtn {
  background-color: #d87b6e;
  color: white;
  width: 100%;
  margin-top: 15px;
  border-radius: 10px;
  padding: 10px;
  font-size: 16px;
  cursor: pointer;
  border: none;
}

#checkoutBtn:hover {
  background-color: #c36b5f;
}

/* Адаптивність для мобільних */
@media (max-width: 600px) {
  #cartSidebar {
    width: 80%;
    padding: 15px;
  }

  #cartItems li {
    font-size: 14px;
  }

  #checkoutBtn {
    font-size: 14px;
    padding: 8px;
  }
}
