* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    list-style: none;
    text-decoration: none;
}

.red-plus {
    color: #e67e22;
}

.logo-image {
    width: 45px;
    height: 45px;
    margin-right: 10px;
}

body {
    min-height: 100vh;
    background-image: url('img/fon.webp');
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    padding-top: 90px;
    overflow-x: hidden;
}

#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.9);
    display: flex; 
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.shape {
    position: absolute;
    opacity: 0.3;
    animation: float 20s infinite ease-in-out;
}

header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15%;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

header .logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #000;
    font-size: 30px;
    font-weight: 1000;
    transition: transform 0.5s ease, color 0.5s ease;
}

header .logo:hover {
    transform: scale(1.2);
}

header nav ul li {
    position: relative;
    float: left;
}

header nav ul li a {
    padding: 30px;
    color: #000;
    font-size: 16px;
    display: block;
    text-align: center;
    font-weight: 700 !important;
}

header nav ul li a:hover {
    background: #000;
    color: #fff;
}

nav ul li ul {
    position: absolute;
    left: 0;
    width: 180px;
    background: #fff;
    display: none;
}

nav ul li ul li {
    width: 100%;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

nav ul li:hover > ul {
    display: initial;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 4px 0;
}
@media (min-width: 769px) and (max-width: 1783px) {
    /* Шапка */
    header {
        padding: 0 5%; /* Уменьшаем горизонтальные отступы */
    }

    .logo {
        font-size: 24px; /* Уменьшаем размер шрифта логотипа */
    }

    .logo-image {
        width: 35px; /* Уменьшаем размер логотипа */
        height: 35px;
    }

    header nav ul li a {
        padding: 20px 15px; /* Уменьшаем отступы в меню */
        font-size: 14px; /* Уменьшаем размер шрифта */
    }

    /* Поиск и корзина */
    .search-container {
        margin-left: 5px; /* Уменьшаем отступ для поиска */
    }

    #searchInput {
        width: 150px; /* Уменьшаем ширину поля поиска */
    }

    #cart-icon {
        margin-left: 10px; /* Уменьшаем отступ для иконки корзины */
    }

    #cart-count {
        top: 10px; /* Корректируем положение счетчика корзины */
        right: -5px;
    }

    /* Адаптация для меню */
    nav ul li ul {
        width: 160px; /* Уменьшаем ширину выпадающего меню */
    }

    nav ul li ul li a {
        padding: 10px; /* Уменьшаем отступы в выпадающем меню */
    }
}
@media (max-width: 768px) {
    body {
        padding-top: 60px;
    }

    header {
        padding: 10px 20px;
    }

    .menu-toggle {
        display: flex;
    }

    nav {
        display: none;
        width: 100%;
        position: absolute;
        top: 60px;
        left: 0;
        background: #fff;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    }

    nav.active {
        display: block;
    }

    nav ul {
        flex-direction: column;
    }

    nav ul li {
        float: none;
        width: 100%;
        margin: 0;
    }

    nav ul li a {
        padding: 15px 20px;
        text-align: center;
    }

    nav ul li ul {
        position: static;
        width: 100%;
        background: #f8f8f8;
        display: none;
    }

    nav ul li:hover > ul {
        display: none;
    }

    nav ul li ul li {
        border: none;
    }

    nav ul li ul li a {
        padding-left: 40px;
    }

    nav ul li.active ul {
        display: block;
    }
}

main {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    box-sizing: border-box;
}

section {
    margin-bottom: 40px;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
}

h1, h2 {
    color: #333;
    margin-bottom: 20px;
    text-align: center;
}

.product-description p {
    margin-bottom: 15px;
    font-size: 20px;
    text-align: center;
    color: #555;
}

.product-gallery {
    text-align: center;
}

.gallery-container {
    max-width: 800px;
    margin: 0 auto;
}

.main-image img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
}

.gallery-controls {
    margin: 10px 0;
}

.gallery-controls button {
    padding: 8px 16px;
    font-size: 14px;
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.gallery-controls button:hover {
    background-color: #e67e22;
    transform: scale(1.05);
}

.thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
    flex-wrap: wrap; /* Добавляем перенос на новую строку */
}

.thumbnails img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnails img:hover {
    transform: scale(1.1);
}

.product-info-container {
    display: flex;
    align-items: flex-start; /* Выравнивание по верхнему краю */
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    flex-direction: row; /* Оставляем горизонтальное расположение */
}

.product-image {
    flex: 1;
    max-width: 400px;
    order: 1; /* Перемещаем изображение вправо */
}

.product-image img {
    width: 100%;
    height: auto;
    border-radius: 10px;
}

.product-details {
    flex: 2;
    order: 2; /* Перемещаем текст влево */
}

.product-details h2 {
    font-size: 24px;
    color: #333;
    margin-bottom: 20px;
    border-bottom: 2px solid #d35400;
    padding-bottom: 10px;
}

.product-details ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.product-details ul li {
    margin-bottom: 15px;
    font-size: 16px;
    line-height: 1.6;
    color: #555;
}

.product-details ul li strong {
    font-weight: bold;
    font-size: 21px;
    color: #000;
}

.product-details ul li strong1 {
    font-weight: bold;
    font-size: 21px;
}

.layout-images {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
}

.layout-images img {
    width: calc(25% - 10px);
    max-width: 200px;
    height: auto;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

.layout-images img:hover {
    transform: scale(1.05);
}

.color-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

.color-card {
    flex: 1 1 calc(50% - 15px); /* Для мобильных устройств */
    max-width: 220px;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.color-card:hover {
    transform: translateY(-5px);
}

.color-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 5px;
}

.color-card p {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
}

.product-details p {
    margin: 10px 0;
    font-size: 14px;
    color: #333;
}

.color-card button {
    background-color: #d35400;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.color-card button:hover {
    background-color: #e67e22;
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .layout-images img {
        width: calc(50% - 10px);
    }

    .color-card {
        flex: 1 1 calc(50% - 15px);
    }
}

@media (max-width: 480px) {
    .layout-images img {
        width: 100%;
    }

    .color-card {
        flex: 1 1 100%;
    }
}

#cart-icon {
    position: relative;
    cursor: pointer;
}

#cart-count {
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
    position: absolute;
    top: 15px;
    right: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 25px;
    border-radius: 10px;
    width: 90%;
    max-width: 500px;
    position: relative;
    animation: slideIn 0.3s ease-out;
}

@keyframes slideIn {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s ease;
}

.close:hover { color: #333; }

#cart-items {
    margin-bottom: 20px;
    max-height: 300px;
    overflow-y: auto;
}

.cart-item {
    display: flex;
    align-items: center;
    padding: 10px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.cart-item:hover { background-color: #f9f9f9; }

.item-image {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    margin-right: 15px;
    object-fit: cover;
}

.item-details { flex-grow: 1; }

.item-name {
    display: block;
    font-weight: bold;
    color: #333;
}

.item-price {
    display: block;
    color: #e67e22;
    font-size: 14px;
}

.item-quantity {
    display: flex;
    align-items: center;
    gap: 10px;
}

.quantity-btn {
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 50%;
    width: 25px;
    height: 25px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.quantity-btn:hover { background-color: #d35400; }

.quantity {
    margin: 0 10px;
    font-size: 16px;
}

.quantity-input {
    width: 60px;
    padding: 5px;
    text-align: center;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin: 0 10px;
}

.quantity-input:focus {
    border-color: #e67e22;
    outline: none;
}

.remove-item {
    background: none;
    border: none;
    color: #aaa;
    cursor: pointer;
    transition: color 0.2s ease;
}

.remove-item:hover { color: #333; }

#cart-total {
    font-weight: bold;
    color: #e67e22;
    font-size: 18px;
}

#checkout-button {
    display: block;
    width: 100%;
    padding: 15px;
    background-color: #e67e22;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    margin-top: 20px;
}

#checkout-form input {
    display: block;
    width: 100%;
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

#checkout-button:hover {
    background-color: #d35400;
}

.search-container {
    position: relative;
    display: inline-block;
    margin-left: 10px;
}

#searchInput {
    padding: 10px;
    width: 200px;
    border: 1px solid #ccc;
    border-radius: 5px;
    display: none;
    position: absolute;
    top: 82px;
    left: 0;
    z-index: 1000;
}

#searchButton {
    padding: 10px;
    background-color: #e67e22;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

#searchButton:hover {
    background-color: #e67e22;
}

#searchResults {
    position: absolute;
    top: 120px;
    left: 0;
    background-color: #fff;
    border: 1px solid #ccc;
    padding: 10px;
    z-index: 1000;
    width: 300px;
    max-height: 300px;
    overflow-y: auto;
}

#searchResults div {
    margin-bottom: 10px;
}

#searchResults img {
    width: 50px;
    height: 50px;
    margin-right: 10px;
}

#searchResults a {
    text-decoration: none;
    color: #333;
    display: block;
    padding: 10px;
    transition: background-color 0.3s ease;
}

#searchResults a:hover {
    background-color: #f9f9f9;
    color: #333;
    border-radius: 5px;
}

#searchIcon {
    font-size: 16px;
    cursor: pointer;
    color: #333;
    padding: 20px;
    padding-top: 30px;
}

#feedback-form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

#feedback-form input,
#feedback-form textarea {
    padding: 10px;
    border: 1px solid #444;
    border-radius: 5px;
    background-color: #444;
    color: #fff;
    font-size: 14px;
    resize: none;
    overflow: hidden;
}

#feedback-form input::placeholder,
#feedback-form textarea::placeholder {
    color: #ccc;
}

#feedback-form button {
    padding: 10px;
    background-color: #555;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 14px;
}

#feedback-form button:hover {
    background-color: #666;
}

footer {
    background: #333;
    color: #fff;
    padding: 40px 0;
    margin-top: 60px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

footer.visible {
    opacity: 1;
    transform: translateY(0);
}

.footer-content {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    gap: 40px;
}

.footer-section {
    flex: 1;
    min-width: 200px;
    margin-left: 60px;
}

.footer-section h3 {
    margin-bottom: 20px;
    font-size: 24px;
}

.footer-section p {
    margin: 15px 0;
    font-size: 16px;
    line-height: 1.6;
}

.footer-section strong {
    font-weight: bold;
}

.footer-section a {
    color: #fff;
    text-decoration: none;
}

.footer-section a:hover {
    text-decoration: underline;
}

.footer-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-section ul li {
    margin: 10px 0;
}

.footer-section ul li a {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-bottom {
    text-align: center;
    margin-top: 40px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
}

@media (max-width: 768px) {
    footer {
        padding: 20px 10px;
    }

    .footer-section {
        margin-left: 0;
        text-align: center;
    }

    .footer-content {
        flex-direction: column;
        gap: 20px;
    }
}

.notification {
    display: none;
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #4CAF50;
    color: white;
    padding: 15px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    animation: slideIn 0.5s ease-out;
}
#mobile-cart {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

#mobile-cart-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 60px;
    height: 60px;
    background-color: #e67e22;
    border-radius: 50%;
    color: white;
    text-decoration: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

#mobile-cart-icon:hover {
    background-color: #d35400;
    transform: scale(1.1);
}

#mobile-cart-count {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: red;
    color: white;
    border-radius: 50%;
    padding: 2px 6px;
    font-size: 12px;
}

@media (max-width: 768px) {
    #mobile-cart {
        display: block;
    }
    #cart-icon {
        display: none;
    }
}
@keyframes slideIn {
    from {
        top: -50px;
        opacity: 0;
    }
    to {
        top: 20px;
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        top: 20px;
        opacity: 1;
    }
    to {
        top: -50px;
        opacity: 0;
    }
}