/
Centermant
/
web-nodejs
Обзор
Документация
Войти
/
Centermant
/
web-nodejs
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
CI/CD
Аналитика
Безопасность
master
public/lab10/task1/css/product.css
228 строк
4 KB
Centermant
feat(lab9.1 final)
04 дек 2025, 00:36
04 дек 2025, 00:36
8ccd8ce
Код
Авторство
О чём код?
/* Product page specific styles */ .product-section { padding: 20px 0; } .product-container { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 20px; } .product-gallery { display: flex; flex-direction: column; gap: 15px; } .product-main-image { width: 100%; height: 400px; background: rgba(0, 0, 0, 0.3); border-radius: 15px; overflow: hidden; display: flex; align-items: center; justify-content: center; } .product-main-image img { width: 100%; height: 100%; object-fit: contain; } .product-thumbnails { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .thumbnail { width: 100%; height: 80px; background: rgba(0, 0, 0, 0.3); border-radius: 8px; cursor: pointer; overflow: hidden; display: flex; align-items: center; justify-content: center; transition: var(--transition); } .thumbnail:hover, .thumbnail.active { border: 2px solid var(--primary-color); } .thumbnail img { width: 100%; height: 100%; object-fit: cover; } .product-details { display: flex; flex-direction: column; gap: 20px; } .product-title { font-size: 1.8rem; font-weight: 700; margin: 0; } .product-category { color: #a0a0ff; font-size: 1.1rem; margin-bottom: 5px; } .product-price { font-size: 2rem; font-weight: 700; color: var(--accent-color); margin: 10px 0; } .stock-status { display: inline-block; padding: 5px 10px; border-radius: 15px; font-weight: 500; margin-top: 10px; } .in-stock { background: rgba(29, 209, 161, 0.2); color: #1dd1a1; } .low-stock { background: rgba(254, 202, 87, 0.2); color: #feca57; } .out-of-stock { background: rgba(255, 107, 107, 0.2); color: #ff6b6b; } .product-description { font-size: 1.1rem; line-height: 1.6; color: #cccccc; } .product-actions { display: flex; flex-direction: column; gap: 15px; margin-top: 20px; } .quantity-selector { display: flex; align-items: center; gap: 15px; } .quantity-btn { width: 40px; height: 40px; border-radius: 10px; background: rgba(110, 142, 251, 0.2); border: none; color: var(--primary-color); font-weight: bold; font-size: 1.2rem; cursor: pointer; transition: var(--transition); } .quantity-btn:hover { background: rgba(110, 142, 251, 0.3); } .quantity-input { width: 60px; text-align: center; padding: 8px; border: 1px solid var(--border-color); border-radius: 8px; background: rgba(0, 0, 0, 0.3); color: white; font-size: 1.1rem; } .add-to-cart { padding: 15px; background: linear-gradient(45deg, var(--primary-color), #8e2de2); color: white; border: none; border-radius: 10px; font-size: 1.1rem; font-weight: 600; cursor: pointer; transition: var(--transition); display: flex; align-items: center; justify-content: center; gap: 10px; } .add-to-cart:hover { transform: translateY(-2px); box-shadow: 0 5px 15px rgba(110, 142, 251, 0.4); } .add-to-cart:disabled { background: #888; cursor: not-allowed; transform: none; box-shadow: none; } /* Убираем ненужные элементы */ .search-bar { display: none; } /* Responsive styles */ @media (max-width: 992px) { .product-container { grid-template-columns: 1fr; } .product-main-image { height: 300px; } } @media (max-width: 768px) { .product-title { font-size: 1.5rem; } .product-price { font-size: 1.5rem; } .thumbnail { height: 60px; } } @media (max-width: 480px) { .quantity-selector { flex-direction: column; align-items: stretch; } .quantity-input { width: 100%; } }