/* === Общие стили === */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

/* === Шапка === */
header {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}
header h1 {
    margin: 0;
    font-size: 24px;
}
header nav {
    margin-top: 10px;
}
header nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}
header nav a:hover {
    text-decoration: underline;
}

/* === Футер (вернули оригинал) === */
footer {
    background-color: #333;
    color: #fff;
    padding: 10px 20px;
    text-align: center;
}
footer a {
    color: #fff;
    text-decoration: none;
    margin: 0 10px;
}
footer a:hover {
    text-decoration: underline;
}
.footer-container {
    display: flex;
    justify-content: space-between;
    padding: 20px;
    background-color: #333;
    color: #fff;
}
.footer-column {
    flex: 1;
    margin-right: 20px;
}
.footer-column h3 {
    font-size: 18px;
    margin-bottom: 10px;
}
.footer-column ul {
    list-style: none;
    padding: 0;
}
.footer-column ul li {
    margin-bottom: 5px;
}
.footer-column ul li a {
    color: #fff;
    text-decoration: none;
}
.footer-column ul li a:hover {
    text-decoration: underline;
}

/* === Карточка товара (вернули из оригинала) === */
.homepage .product-card,
.products-page .product-card,
.category-page .product-card {
    width: 23%;
    margin-bottom: 20px;
    background: #fff;
    border: 1px solid #ccc;
    padding: 15px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}
.homepage .product-card img,
.products-page .product-card img,
.category-page .product-card img {
    width: 100%;
    height: auto;
}
.homepage .product-info,
.products-page .product-info,
.category-page .product-info {
    margin-top: 10px;
    text-align: left;
}
.homepage .product-name,
.products-page .product-name,
.category-page .product-name {
    font-size: 18px;
    margin-bottom: 10px;
}
.homepage .product-price,
.products-page .product-price,
.category-page .product-price {
    font-size: 16px;
    color: #e60000;
    margin-bottom: 10px;
    text-align: center;
}
.homepage .rating .star,
.products-page .rating .star,
.category-page .rating .star {
    color: orange;
}
.homepage .details-button,
.products-page .details-button,
.category-page .details-button {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}
.homepage .details-button:hover,
.products-page .details-button:hover,
.category-page .details-button:hover {
    background-color: #cc5200;
}

/* === Адаптив === */
@media (max-width: 1200px) {
    .homepage .product-card,
    .products-page .product-card,
    .category-page .product-card {
        width: 31%;
    }
}
@media (max-width: 768px) {
    .homepage .product-card,
    .products-page .product-card,
    .category-page .product-card {
        width: 48%;
    }
}
@media (max-width: 480px) {
    .homepage .product-card,
    .products-page .product-card,
    .category-page .product-card {
        width: 100%;
    }
}

/* === Стили “Схожі товари/витрини” (только новые изменения) === */
.related-products {
    margin-top: 40px;
    padding: 0 20px;
}
.related-products h2 {
    margin-bottom: 15px;
    font-size: 20px;
}
.related-products .products-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
}
.related-product-card {
    flex: 0 0 18%;
    background: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    text-align: center;
    box-sizing: border-box;
}
.related-product-card img {
    width: 100%;
    height: auto;
}
.related-product-info {
    margin-top: 10px;
    text-align: left;
}
.related-product-info h4 {
    font-size: 16px;
    margin-bottom: 8px;
}
.related-product-price {
    font-size: 14px;
    color: #e60000;
    margin-bottom: 10px;
}
.related-product-price .old-price-small {
    font-size: 12px;
    color: #999;
    text-decoration: line-through;
    margin-left: 8px;
}
.related-rating .star {
    color: orange;
}
.related-details-button {
    display: inline-block;
    background-color: #ff6600;
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-weight: bold;
    cursor: pointer;
    text-decoration: none;
}
.related-details-button:hover {
    background-color: #cc5200;
}