
.hero {
    background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)), url('../images/news/logotip.jpg');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 0;
    margin-bottom: 40px;
}

.hero h1 {
    font-size: 36px;
    margin-bottom: 20px;
}

.hero p {
    font-size: 18px;
    max-width: 600px;
    margin: 0 auto 30px;
}

.btn {
    display: inline-block;
    background-color: #ff6b35;
    color: white;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.btn:hover {
    background-color: #e55a2b;
}

.catalog-preview {
    margin-bottom: 40px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
    font-size: 28px;
    color: #2c3e50;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s;
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
}

.product-image {
    width: 100%;
    height: 250px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.product-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-weight: bold;
    margin-bottom: 10px;
    flex: 1;
}

.product-price {
    color: #e74c3c;
    font-weight: bold;
    font-size: 18px;
}

.news-section {
    margin-bottom: 40px;
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.news-card {
    background-color: white;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.guarantee-card {
    overflow: visible;
}

.guarantee-card .guarantee-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    background-color: #f8f9fa;
    padding: 10px;
    border-radius: 5px 5px 0 0;
}

.news-image {
    width: 100%;
    height: 160px;
    object-fit: cover;
}

.news-content {
    padding: 15px;
}

.news-title {
    font-weight: bold;
    margin-bottom: 10px;
}

.info-blocks {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.info-block {
    background-color: white;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
}


.catalog-page {
    padding: 40px 0;
}

.catalog-content {
    display: flex;
    gap: 30px;
}


.sidebar {
    width: 250px;
    flex-shrink: 0;
}

.catalog-search-center {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.catalog-search-center .catalog-search-input {
    width: 100%;
    max-width: 400px;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 15px;
    box-sizing: border-box;
}

.catalog-search-center .catalog-search-input:focus {
    outline: none;
    border-color: #ff6b35;
}

.categories {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.categories p {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.categories ul {
    list-style: none;
}

.categories ul li {
    margin-bottom: 10px;
}

.categories ul li a {
    text-decoration: none;
    color: #333;
    transition: color 0.3s;
}

.categories ul li a:hover {
    color: #3498db;
}

.filters {
    background-color: white;
    border-radius: 5px;
    padding: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.filters p {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}

.filter-option {
    margin-bottom: 10px;
}

.filter-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.filter-option input {
    margin-right: 8px;
}

.price-filter label {
    display: block;
    margin-bottom: 12px;
}

.price-filter label:last-child {
    margin-bottom: 0;
}

.price-filter span {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    color: #555;
}

.price-filter input {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}

.price-filter input::-webkit-outer-spin-button,
.price-filter input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.price-filter input[type=number] {
    -moz-appearance: textfield;
}

.price-filter-btn {
    width: 100%;
    margin-top: 12px;
    padding: 10px 16px;
    border: none;
    border-radius: 4px;
    background-color: #ff6b35;
    color: white;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.price-filter-btn:hover {
    background-color: #e55a2b;
}


.sorting {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.sort-options select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* Сетка товаров */
.products-section {
    flex-grow: 1;
}

.add-to-cart {
    display: block;
    width: 100%;
    background-color: #ff6b35;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
    transition: background-color 0.3s;
}

.add-to-cart:hover {
    background-color: #e55a2b;
}


@media (max-width: 768px) {
    .catalog-content {
        flex-direction: column;
    }
    
    .sidebar {
        width: 100%;
    }
    
    .hero {
        padding: 60px 0;
    }
    
    .hero h1 {
        font-size: 28px;
    }
    

    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-card .guarantee-image {
        max-height: 180px;
    }
}
