* {
    box-sizing: border-box;
    overflow-x: hidden;
    font-family: "Nunito", sans-serif;
    font-optical-sizing: auto;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.parent {
  display: flex;
  align-items: center; /* вертикальное центрирование (нужна явная высота)*/
}

.parent button {
    margin-top: 2px;
}

nav {
    display: flex;
    justify-content: space-between;
    padding-left: 20px;
    padding-right: 20px;
    color: black;
    height: 70px;
}

nav span {
    margin-left: 5px;
    margin-right: 5px;
}

nav div {
    display: flex;
}

nav div p {
    margin-left: 10px;
    margin-right: 10px;
}

nav h1 {
    margin-top: 0;
    margin-bottom: 0;
}

nav img {
    width: 4vw;
    height: 5vh;
    padding-right: 10px;
}

#nameShop {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

#headButton {
    color: inherit;
    text-decoration: none;
}


#headButton:hover {
    color: inherit;
}

/* модальное меню */

#modal-menu {
    position: fixed; /* позиционировать относительно начала страницы */
    top: 0;
    left: 0;
    width: 100%; /* Фон на весь экран по ширине */
    height: 100%; /* Фон на весь экран по длине */
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
    justify-content: left; /* центрирование по x */
}

#menu-window {
    display: flex;
    flex-direction: column;
    width: 33vw;
    height: 100vh;
    align-items: left;
    justify-content: left;
    position: relative;
    background-color: white;
}

#menu-window button {
    width: 33vw;
    font-size: 1.1em;
    border: none;
}

.admin-head-button {
    margin-left: 15px;
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 10px;
    background: #2C97F2;
    color: white;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 2px;
}

.admin-head-button:hover {
    opacity: 0.85;
}

button {
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.2s ease,
        box-shadow 0.25s ease;
}

button:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

button:active {
    transform: translateY(0);
}

#nameShop img {
    transition:
        transform 0.2s ease,
        opacity 0.2s ease;
}

#nameShop img:hover {
    transform: scale(1.15);
    opacity: 0.8;
}

#modal-menu {
    display: flex;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
}

#modal-menu.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

#menu-window {
    transform: translateX(-20px);
    transition: transform 0.25s ease;
}

#modal-menu.show #menu-window {
    transform: translateX(0);
}

#modal-window {
    animation: modalOpen 0.25s ease;
}

@keyframes modalOpen {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}