* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Inter, Arial, sans-serif; background: #111; color: #eee; }
#app { max-width: 960px; margin: 0 auto; padding: 12px; }
header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h1 { font-size: 20px; margin: 8px 0; }
#breadcrumbs { color: #aaa; font-size: 13px; }
#breadcrumbs .link { color: #61dafb; cursor: pointer; }

/* Красивая панель поиска */
.search-panel {
  background: linear-gradient(135deg, #1b1b1b 0%, #2a2a2a 100%);
  border: 1px solid #3a3a3a;
  border-radius: 16px;
  padding: 16px;
  margin: 16px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.search-input-wrapper {
  margin-bottom: 12px;
}

.search-input-wrapper input[type="text"] {
  width: 100%;
  background: #141414;
  color: #eee;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 14px 16px;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper input[type="text"]:focus {
  outline: none;
  border-color: #2481cc;
  box-shadow: 0 0 0 3px rgba(36, 129, 204, 0.1);
}

.filters-wrapper {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.price-filters {
  display: flex;
  gap: 8px;
}

.price-filters input[type="number"] {
  flex: 1;
  background: #141414;
  color: #eee;
  border: 2px solid #333;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 14px;
  transition: all 0.3s ease;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.price-filters input[type="number"]:focus {
  outline: none;
  border-color: #2481cc;
  box-shadow: 0 0 0 3px rgba(36, 129, 204, 0.1);
}

.apply-button {
  background: linear-gradient(135deg, #2481cc 0%, #1a6bb3 100%);
  color: white;
  border: 0;
  border-radius: 12px;
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(36, 129, 204, 0.3);
  text-align: center;
  width: 100%;
}

.apply-button:hover {
  background: linear-gradient(135deg, #1a6bb3 0%, #155a9e 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(36, 129, 204, 0.4);
}

.apply-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(36, 129, 204, 0.3);
}

/* Адаптивность для мобильных */
@media (max-width: 480px) {
  .search-panel {
    padding: 12px;
    margin: 12px 0;
    border-radius: 12px;
  }
  
  .search-input-wrapper input[type="text"] {
    padding: 12px 14px;
    font-size: 16px;
  }
  
  .price-filters {
    flex-direction: column;
    gap: 8px;
  }
  
  .price-filters input[type="number"] {
    padding: 12px 14px;
    font-size: 16px;
  }
  
  .apply-button {
    padding: 16px 20px;
    font-size: 16px;
  }
}

/* Планшеты */
@media (min-width: 481px) and (max-width: 768px) {
  .search-panel {
    padding: 14px;
  }
  
  .price-filters {
    gap: 10px;
  }
}

.loading, .error { padding: 16px; }
.controls { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 12px; }
.controls .row { display: grid; gap: 8px; }
.controls .row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 480px) { .controls .row.two { grid-template-columns: 1fr; } }
.controls input, .controls select { background: #141414; color: #eee; border: 1px solid #333; border-radius: 8px; padding: 10px; font-size: 14px; }
.controls button { background: #2481cc; color: white; border: 0; border-radius: 8px; padding: 10px 12px; font-size: 14px; cursor: pointer; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.card { background: #1b1b1b; border-radius: 10px; overflow: hidden; cursor: pointer; border: 1px solid #2a2a2a; transition: all 0.3s ease; }
.card:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); }
.card img { width: 100%; height: 120px; object-fit: cover; display: block; }
.card-title { padding: 10px 10px 6px; font-size: 14px; color: #fff; min-height: 40px; line-height: 1.3; }
.price { padding: 0 10px 10px; color: #7ad67a; font-weight: 600; font-size: 15px; }
.item-details img { width: 100%; max-height: 240px; object-fit: cover; border-radius: 8px; }
.item-details h2 { margin: 12px 0 4px; }
.price-large { color: #7ad67a; font-size: 18px; font-weight: 700; margin: 6px 0 10px; }
.desc { white-space: pre-wrap; color: #ddd; margin-bottom: 16px; }
.actions { display: flex; gap: 12px; align-items: center; margin: 8px 0 16px; }
.actions a { color: #61dafb; text-decoration: none; }
button { background: #2481cc; color: white; border: 0; border-radius: 8px; padding: 10px 14px; font-size: 14px; cursor: pointer; }
button.secondary { background: #333; }
.form { background: #1b1b1b; border: 1px solid #2a2a2a; border-radius: 10px; padding: 12px; }
.field { margin-bottom: 12px; display: flex; flex-direction: column; gap: 6px; }
label { font-size: 13px; color: #ccc; }
input, textarea { background: #141414; color: #eee; border: 1px solid #333; border-radius: 8px; padding: 10px; font-size: 14px; }
.product-info { background: #141414; padding: 10px; border-radius: 8px; border: 1px solid #333; }
.product-info strong { color: #fff; font-size: 14px; }
.product-info .price { color: #7ad67a; font-weight: 600; margin-top: 4px; } 