/* Общие стили */

* {
    box-sizing: border-box;
}
body {
    margin: 0;
    font-family: 'Rubik', sans-serif;
}

/* Стили для хедера */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #c75b0e;
    color: white;
    padding: 16px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.logo {
    font-size: 28px;
    font-weight: bold;
}
.logosmall{
    font-size:20px;
    font-weight: bold;;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 30px;
    position: relative;
}
nav a {
    color: white;
    text-decoration: none;
    margin-left: 25px;
    font-size: 18px; /* Увеличенный размер шрифта */
    font-weight: 500; /* Более жирный шрифт */
    position: relative; 
    transition: color 0.3s ease;

    
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background-color: #ffe7d3; 
    bottom: -4px;
    left: 0;
    transition: width 0.3s ease; 
}

nav a:hover::after {
    width: 100%; 
}

nav a:hover {
    color: #ffe7d3; 
    font-weight: 700;
}
.cart {
    position: relative;
    cursor: pointer;
}
.cart svg {
    width: 28px;
    height: 28px;
    fill: white;
}
.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: #fff;
    color: #c75b0e;
    font-weight: bold;
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 50%;
}
.cart-widget {
    display: none;
    position: absolute;
    top: 50px;
    right: 0;
    background: white;
    color: black;
    width: 300px;
    max-height: 400px;
    overflow-y: auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    padding: 10px;
    z-index: 1001;
}
.cart-widget.active {
    display: block;
}
.cart-item {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
    position: relative; /* если понадобится */
}

.cart-item-info {
    flex: 1;
    display: flex;
    justify-content: space-between; /* чтобы текст был слева, кнопка справа */
    align-items: center;
}
.cart-item-info {
    flex: 1;
}
.cart-total {
    font-weight: bold;
    text-align: right;
    padding-top: 10px;
    border-top: 1px solid #ccc;
}
.remove-item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    margin-left: 15px;
    cursor: pointer;
    text-decoration: none;
    color: #c75b0e;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    transition: background-color 0.2s ease;
    flex-shrink: 0; /* чтобы не сжималась */
}

.remove-item:hover {
    background-color: #f0c9a0;
    color: #a04b00;
}

.remove-item svg {
    stroke: #c75b0e;
    width: 18px;
    height: 18px;
    pointer-events: none;
}
.checkout-button {
    display: block;
    text-align: center;
    padding: 10px;
    background-color: #c75b0e;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 10px;
}
.checkout-button:hover {
    background-color: #ab6100;
}

/* Стили для основного контента */
#unique-image {
    width: 100%;
    height: 30vh;
    object-fit: cover;
}

h1, h2 {
    margin-top: 25px;
    text-align: center;
    padding: 0 40px;
    font-size: 30px;
    font-family: 'PT Serif', serif;
    margin-bottom: 30px;
}

h6 {
    text-align: center;
    font-family: 'PT Serif', serif;
    word-break: break-word;
    margin: 10px 0;
    min-height: 40px; /* Минимальная высота для текста */
    display: -webkit-box;
    
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}
.product {
    background-color: #ffffff;
    border: 1px solid black;
    border-radius: 8px;
    padding: 3px;
    text-align: center;
    transition: transform 0.2s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.product:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
.product img {
    max-width: 100%;
    height: 150px; /* Фиксированная высота изображений */
    object-fit: cover; /* Сохранение пропорций с обрезкой */
    border-radius: 4px;
}
.product .price {
    font-size: 1.4em;
    color: #ab6100;
    margin: 5px 0;
}
.product a {
    display: inline-block;
    padding: 10px 20px;
    background-color: #000000;
    color: white;
    text-decoration: none;
    border-radius: 4px;
    margin-top: 5px;
}
.product a:hover {
    background-color: #c75b0e;
    color: #000000;
}

/* Стили для футера */
footer {
    text-align: center;
    background: #222;
    padding: 20px;
    margin-top: 100px;
    color: #fff;
}

/* Медиа-запросы */
@media (max-width: 768px) {
    #unique-image {
        height: 10vh;
    }
    .image-wrapper {
        margin-top: 110px; /* для мобильных, если шапка выше */
    } 
    .header {
        flex-direction: column;
        align-items: flex-start;
        padding: 12px 20px;
    }
    .header-right {
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: space-between;
        width: 100%;
        margin-top: 10px;
    }
    nav {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }
    nav a {
        margin: 0;
        font-size: 14px;
    }

    .product img {
        height: 120px; /* Меньшая высота изображений для мобильных */
    }
    @media (max-width: 768px) {
    .gallery {
        grid-template-columns: repeat(2, 1fr); /* фиксировано 2 товара в строку */
    }
    }

}
.contact-container {
    max-width: 800px;
    margin: 100px auto 50px;
    padding: 20px;
    text-align: center;
}

.contact-card {
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
    margin: 20px auto;
}

.contact-item {
    display: flex;
    align-items: flex-start; /* Изменено с center на flex-start для лучшего выравнивания списка */
    gap: 15px;
    margin: 20px 0;
    font-size: 18px;
}

.contact-item p {
    margin: 0;
    color: #333;
}

.contact-item a {
    color: #c75b0e;
    text-decoration: none;
    font-weight: bold;
}

.contact-item a:hover {
    color: #ab6100;
    text-decoration: underline;
}

.contact-icon {
    width: 24px;
    height: 24px;
    flex-shrink: 0; /* Иконка не сжимается */
}

.contact-email-list {
    display: flex;
    flex-direction: column;
    gap: 10px; /* Отступ между email-адресами */
}

/* Медиа-запросы для адаптивности */
@media (max-width: 768px) {
    .contact-container {
        margin: 80px auto 30px;
        padding: 10px;
         /* padding-top: 80px; */
    }

    .contact-card {
        padding: 20px;
    }

    .contact-item {
        font-size: 16px;
    }

    .contact-icon {
        width: 20px;
        height: 20px;
    }

    .contact-email-list {
        gap: 8px; /* Меньший отступ для мобильных */
    }
}
.catalog-main {
    margin-top: 120px; 
}