Загрузка данных
<style>
/* Общие стили для страницы */
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background-color: #f8fafc;
color: #0f172a;
margin: 0;
padding: 40px 20px;
display: flex;
justify-content: center;
}
.container {
width: 100%;
max-width: 900px;
display: grid;
grid-template-columns: 1fr;
gap: 24px;
}
/* Заголовки */
h1 {
font-size: 2rem;
color: #1e1b4b;
margin: 0 0 10px 0;
text-align: center;
font-weight: 700;
}
h3 {
font-size: 1.15rem;
color: #334155;
margin-top: 0;
margin-bottom: 20px;
font-weight: 600;
display: flex;
align-items: center;
gap: 8px;
}
/* Карточки/Блоки */
.card {
background-color: #ffffff;
border-radius: 16px;
box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
border: 1px solid #f1f5f9;
padding: 28px;
transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
}
/* Двухколоночный grid для форм ввода, если нужно */
.form-grid {
display: grid;
grid-template-columns: 1fr 1fr;
gap: 16px;
margin-bottom: 16px;
}
@media (max-width: 600px) {
.form-grid {
grid-template-columns: 1fr;
}
}
.form-group {
display: flex;
flex-direction: column;
gap: 6px;
}
label {
font-size: 0.85rem;
font-weight: 600;
color: #64748b;
}
/* Элементы форм (Инпуты) */
input[type="text"],
input[type="number"] {
padding: 12px 16px;
border: 1.5px solid #cbd5e1;
border-radius: 10px;
font-size: 0.95rem;
color: #334155;
background-color: #ffffff;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
width: 100%;
box-sizing: border-box;
}
input:focus {
border-color: #4f46e5;
box-shadow: 0 0 0 4px rgba(79, 70, 229, 0.1);
}
input::placeholder {
color: #94a3b8;
}
/* Кнопки */
button {
padding: 12px 24px;
border: none;
border-radius: 10px;
font-size: 0.95rem;
font-weight: 600;
cursor: pointer;
transition: background-color 0.2s, transform 0.1s;
width: 100%;
}
button:active {
transform: scale(0.98);
}
.btn-success {
background-color: #10b981;
color: white;
}
.btn-success:hover {
background-color: #059669;
}
.btn-primary {
background-color: #4f46e5;
color: white;
}
.btn-primary:hover {
background-color: #4338ca;
}
/* Форма поиска (строчный вариант) */
.search-form {
display: flex;
gap: 12px;
}
.search-form input {
flex-grow: 1;
}
.search-form button {
width: auto;
white-space: nowrap;
}
/* Список товаров */
.product-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 12px;
}
.product-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 16px 20px;
background-color: #f8fafc;
border: 1px solid #e2e8f0;
border-radius: 12px;
transition: background-color 0.2s;
}
.product-item:hover {
background-color: #f1f5f9;
}
.product-info {
display: flex;
flex-direction: column;
gap: 4px;
}
.product-name {
font-weight: 600;
font-size: 1.05rem;
color: #1e293b;
}
.product-vendor {
font-size: 0.85rem;
color: #64748b;
}
.product-price {
font-size: 1.2rem;
font-weight: 700;
color: #059669;
background-color: #ecfdf5;
padding: 6px 14px;
border-radius: 20px;
border: 1px solid #a7f3d0;
}
.empty-state {
text-align: center;
color: #94a3b8;
padding: 20px 0;
font-style: italic;
}
</style>