body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #111;
  color: #fff;
  transition: background 0.3s, color 0.3s;
}

body.light {
  background: #f5f5f5;
  color: #333;
}

header {
  background: #000;
  color: #fff;
  padding: 15px;
}

body.light header {
 background-color: #e6f0f3;  
   color: #fff;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: center;
}

.nav a {
  background: #333;
  color: #fff;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-size: 18px;
  box-shadow: 0 4px 0 #000;
  transition: transform 0.2s, box-shadow 0.2s;
}

body.light .nav a {
background-color: #599cda; 
  box-shadow: 0 4px 0 #333;
}

.nav a:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 #222;
}

.cart-link {
  font-size: 22px;
  background: none;
  box-shadow: none;
}

main {
  padding: 20px;
}

.controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin-bottom: 25px;
}

.controls input,
.controls select {
  flex: 1;
  min-width: 200px;
  padding: 12px;
  font-size: 18px;
}

.controls button {
  padding: 12px;
  font-size: 18px;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product {
  background: #000;
  color: #fff;
  padding: 18px;
  border-radius: 10px;
  box-shadow: 0 4px 0 #444;
  text-align: center;
  transition: transform 0.2s, box-shadow 0.2s;
  cursor: pointer;
}

body.light .product {
  background: #fff;
  color: #333;
  box-shadow: 0 4px 0 #999;
}

.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 0 #222;
}

button {
  background: #1f1f1f;

  color: #fff;
  border: none;
  padding: 12px 18px;
  margin-top: 12px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 16px;
  transition: transform 0.2s, box-shadow 0.2s;
}

button:hover {
  transform: scale(1.07);
  box-shadow: 0 0 8px rgba(255,255,255,0.3);
}

main > button {
  margin-top: 30px;
}

/* 🔥 Автокомплит */
.autocomplete-box {
  position: absolute;
  background: #fff;
  color: #000;
  border: 1px solid #ccc;
  border-radius: 6px;
  max-height: 200px;
  overflow-y: auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  z-index: 1000;
  display: none;
}

body.light .autocomplete-box {
  background: #fff;
  color: #000;
}

body:not(.light) .autocomplete-box {
  background: #222;
  color: #fff;
  border: 1px solid #555;
}

.autocomplete-item {
  padding: 10px;
  cursor: pointer;
}

.autocomplete-item:hover {
  background: #f0f0f0;
}

body:not(.light) .autocomplete-item:hover {
  background: #333;
}

/* 🔥 Логотип уменьшенный */
.logo {
  height: 35px;
  width: auto;
  display: block;
}
/* Убираем тень у ссылки "Главная" */
.nav a[href="index.php"] {
  box-shadow: none !important;
}
