.products-page { display: grid; grid-template-columns: 280px 1fr; gap: 30px; max-width: 1400px; margin: 0 auto; padding: 20px; } .filters-sidebar { background: white; border-radius: 12px; padding: 25px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); height: fit-content; position: sticky; top: 20px; } .filters-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 25px; padding-bottom: 15px; border-bottom: 2px solid #f0f0f0; } .filters-header h3 { margin: 0; color: #333; } .clear-filters { color: #007bff; text-decoration: none; font-size: 0.9em; } .clear-filters:hover { text-decoration: underline; } .filters-form { display: flex; flex-direction: column; gap: 20px; } .filter-group { display: flex; flex-direction: column; gap: 8px; } .filter-group label { font-weight: 500; color: #555; font-size: 0.95em; } .filter-input, .filter-select { padding: 10px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.95em; width: 100%; } .filter-input:focus, .filter-select:focus { outline: none; border-color: #007bff; } .price-range { display: flex; align-items: center; gap: 10px; } .price-input { flex: 1; padding: 8px 10px; border: 1px solid #ddd; border-radius: 4px; font-size: 0.9em; width: 40%; } .price-separator { color: #666; } .checkbox-label { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.95em; } .btn-apply-filters { padding: 12px; background: #007bff; color: white; border: none; border-radius: 6px; font-weight: 500; cursor: pointer; margin-top: 10px; } .btn-apply-filters:hover { background: #0056b3; } .products-main { display: flex; flex-direction: column; gap: 25px; } .products-header { display: flex; justify-content: space-between; align-items: flex-start; background: white; padding: 25px; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .results-info h1 { margin: 0 0 10px 0; color: #333; } .results-count { color: #666; margin: 0 0 15px 0; } .active-filters { display: flex; flex-wrap: wrap; gap: 8px; } .filter-tag { background: #e9ecef; padding: 6px 12px; border-radius: 20px; font-size: 0.9em; display: flex; align-items: center; gap: 6px; } .filter-tag a { color: #666; text-decoration: none; font-weight: bold; } .filter-tag a:hover { color: #333; } .sort-controls { display: flex; align-items: center; gap: 10px; } .sort-controls label { font-weight: 500; color: #555; } .sort-select { padding: 8px 12px; border: 1px solid #ddd; border-radius: 6px; font-size: 0.95em; background: white; cursor: pointer; } .products-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 25px; } .product-card { background: white; border-radius: 12px; overflow: hidden; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); transition: transform 0.2s, box-shadow 0.2s; position: relative; overflow: hidden; } .product-card:hover .image-carousel { opacity: 1; transform: translateX(0); } .image-carousel { position: absolute; top: 0; left: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.3s ease; } .image-carousel img { width: 100%; height: 100%; object-fit: contain; } .product-card:hover { transform: translateY(-4px); box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15); } .product-link { text-decoration: none; color: inherit; display: block; } .product-image { position: relative; height: 280px; overflow: hidden; background-color: #f8f9fa; border-radius: 8px 8px 0 0; } .product-image img { width: 100%; height: 100%; object-fit: contain; transition: transform 0.3s ease; padding: 15px; background-color: white; } .product-card:hover .product-image img { transform: scale(1.05); } .out-of-stock, .low-stock { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 20px; font-size: 0.8em; font-weight: 500; } .out-of-stock { background: #dc3545; color: white; } .low-stock { background: #ffc107; color: #333; } .product-rating { position: absolute; bottom: 12px; left: 12px; background: rgba(255, 255, 255, 0.9); padding: 6px 10px; border-radius: 20px; display: flex; align-items: center; gap: 5px; font-size: 0.9em; } .rating-stars { color: #ffc107; } .rating-value { font-weight: 600; color: #333; } .product-info { padding: 20px; } .product-name { margin: 0 0 12px 0; font-size: 1.1em; font-weight: 600; color: #333; line-height: 1.4; } .product-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 15px; } .meta-item { display: flex; align-items: center; gap: 5px; font-size: 0.85em; color: #666; background: #f8f9fa; padding: 4px 8px; border-radius: 4px; } .meta-item svg { flex-shrink: 0; } .product-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 15px; border-top: 1px solid #e9ecef; } .product-price { font-size: 1.3em; font-weight: 700; color: #007bff; } .product-actions { display: flex; gap: 8px; } .btn-add-to-cart, .btn-out-of-stock, .btn-login-to-buy { display: flex; align-items: center; gap: 6px; padding: 8px 16px; border-radius: 6px; font-size: 0.9em; font-weight: 500; text-decoration: none; border: none; cursor: pointer; transition: background 0.2s; } .btn-add-to-cart { background: #28a745; color: white; } .btn-add-to-cart:hover { background: #218838; } .btn-out-of-stock { background: #6c757d; color: white; cursor: not-allowed; } .btn-login-to-buy { background: #007bff; color: white; } .btn-login-to-buy:hover { background: #0056b3; } .no-products { text-align: center; padding: 60px 40px; background: white; border-radius: 12px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); } .no-products-icon { font-size: 4em; margin-bottom: 20px; opacity: 0.5; } .no-products h3 { margin: 0 0 10px 0; color: #333; } .no-products p { color: #666; margin-bottom: 25px; } .btn-view-all { display: inline-block; padding: 12px 24px; background: #007bff; color: white; text-decoration: none; border-radius: 6px; font-weight: 500; } .btn-view-all:hover { background: #0056b3; }