* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
html,
body {
    font-family: 'Roboto', sans-serif;
}
body.noscroll {
    height: 100vh;
    overflow: hidden;
}
.main {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
}

.right-side-of-logo {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 15px;
}
.right-side-of-logo a {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.right-side-of-logo a:hover {
    opacity: 1;
}
.top-right-icons {
    max-height: 1.5rem;
    display: flex;
    align-items: center;
    min-width: 3dvw;
    object-fit: scale-down;
}
.header-logo > a {
    display: flex;
    align-items: center;
    gap: 10px;
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.header-logo > a:hover {
    opacity: 1;
}
.logo-img {
    max-width: 100%;
    height: auto;
    max-height: 5rem;
}
.logo-img-text {
    max-height: 1.3rem;
}
.logo-img-with-text {
    display: none;
}
.header-line {
    display: grid;
    align-items: center;
    grid-template-columns: 1fr 1fr 1fr;
    padding: 20px 0;
}
.header-line-2 {
    padding: 0 10px;
}
.no-items-available {
    padding: 0 18px;
}
#nav-1 {
    margin: 0 auto;
}
#nav-2 {
    display: flex;
    flex-wrap: wrap;
    padding-bottom: 30px;
    padding-top: 10px;
    justify-content: space-between;
}
.cart {
    position: relative;
    justify-content: flex-end;
}

.cart-counter {
    position: absolute;
    right: 0;
    bottom: 0;
    background-color: white;
    border-radius: 50%;
    padding: 1px;
    color: rgb(0, 0, 0);
}
.cart-counter.hidden {
    display: none;
}

.mobile-menu {
    top: 0;
    left: 0;
    position: fixed;
    width: 55vw;
    height: 100dvh;
    background-color: #fff;
    z-index: 3;
    transform: translateX(-100%);
    transition: transform 0.2s ease-in-out;
    padding: 20px;
    overflow-y: auto;
}
@media screen and (min-width: 500px) and (max-width: 1000px) {
    .mobile-menu {
        width: 35vw;
    }
}
.mobile-menu.visible {
    transform: translateX(0);
}
.mobile-menu-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    content: '';
    background-color: rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    z-index: 2;
    display: none;
}
.mobile-menu-backdrop.visible {
    display: block;
}
.mobile-menu-title {
    font-size: 1.7rem;
}
.mobile-menu-underline {
    max-width: 30%;
    width: 100%;
    background-color: #000;
    height: 4px;
    border-radius: 3px;
    margin-top: 10px;
}
.menu-section {
    margin-top: 20px;
}
.menu-section-title {
    font-size: 1rem;
    color: #814cb3;
}
.menu-section-content nav {
    margin-top: 5px;
    display: flex;
    flex-direction: column;
}
.mobile-nav-item {
    font-size: 0.9rem;
    width: fit-content;
    margin: 10px 0;
    padding-bottom: 2px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #000;
}
.header-menu {
    margin-right: auto;
}
.header-menu img {
    max-height: 1.5rem;
    display: flex;
    align-items: center;
    width: 100%;
    object-fit: scale-down;
}
@media screen and (min-width: 1000px) {
    .header-menu {
        display: none;
    }
}
@media screen and (max-width: 1000px) {
    #nav-1 {
        display: none;
    }
    #nav-2 {
        display: none;
    }
    .header-logo {
        margin: 0 auto;
    }
    .logo-img {
        max-height: 4rem;
    }
    .logo-img-text {
        max-height: 1rem;
    }
    .header-line {
        grid-template-columns: 1fr 3fr 1fr;
    }
}

.container {
    padding: 0 10px;
}

.right-side-of-logo {
    display: flex;
    flex-direction: row;
}

.nav-item {
    color: rgb(59, 59, 59);
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
    padding: 4px 8px;
    display: inline-block;
    transition:
        color 0.1s ease-in-out,
        background-color 0.1s ease-in-out;
}

.nav-item:hover {
    color: rgb(255, 255, 255);
    background-color: rgb(122, 122, 122);
}

.nav-item-selected {
    color: rgb(255, 255, 255);
    background-color: rgb(122, 122, 122);
}

.footer {
    text-align: center;
}

footer p {
    padding: 18px;
    color: rgb(133, 133, 133);
}
footer a {
    color: rgb(133, 133, 133);
}

@media screen and (min-width: 1500px) {
    .page {
        max-width: 1500px;
        margin: 0 auto;
    }
}
@media screen and (max-width: 1000px) {
    .page {
        display: flex;
        flex-direction: column;
        margin: 0 auto;
        max-width: 85%;
    }
}
@media only screen and (max-width: 700px) {
    .main {
        justify-content: center;
    }
    .item {
        width: 100%;
        height: 100%;
    }
    .photo-container {
        height: 100%;
    }
    .photo-container,
    .caption {
        width: 100%;
    }
    .product {
        display: flex;
        flex-direction: column;
    }
    .product-media {
        width: 86dvw;
        flex-direction: column;
    }
    .product-tape {
        padding-left: -8px;
        order: 2;
        flex-direction: row;
        max-width: 100%;
    }
    .product-preview img {
        width: 100%;
        height: 100%;
        max-height: 500px;
        padding-left: 0;
    }
    .product-tape > :first-child > img {
        padding-top: 8px;
        padding-right: 8px;
        padding-left: 0;
    }
    .product-texts {
        padding-left: 0;
        padding-right: 0;
    }
}

.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #333;
    color: white;
    padding: 15px;
    z-index: 9999;
    display: none; /* По умолчанию скрыто */
}

.cookie-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 15px;
}

.cookie-button {
    background: #4caf50;
    color: white;
    border: none;
    padding: 8px 20px;
    cursor: pointer;
    border-radius: 4px;
    flex-shrink: 0;
}
.cookie-content > p > a {
    color: white;
}
@media (max-width: 600px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
}
