

body {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-family: "Google Sans", Arial, sans-serif;
    font-size: 1rem;
    
}

main {
    flex: 1;
    animation: fadeIn 0.3s ease-in-out;
}

header>div>a>img {
    width: 30px;
}

header {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-between;
    padding: 10px;
    padding-left: 60px;
    padding-right: 60px;
    align-items: center;
    background-color: #fe8b24;
    color: #fff;
}

footer>.row {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-around;
    align-items: center;
}

main {
    text-align: center;
    
}

header>div {
    display: flex;
    flex-direction: row;
    gap: 30px;
    align-items: center;
    
}
.row>div {
    display: flex;
    flex-flow: row wrap;
    align-items: center;
    gap: 1vw;
}

header {
    position: sticky;
}

.icon:hover {
    background-color: #fe8b24;
    color: #fff;
}

header>div>svg {
    height: 30px;
    width: 30px;
}

header>div>p:hover,
.row>div>p:hover,
nav>div>div>p:hover,
a:hover {
    
    cursor: pointer;
}

.row>div>svg {
    height: 20px;
    width: 20px;
}

nav {
    display: flex;
    flex-flow: row wrap;
    justify-content: flex-end;
}

article {
    display: flex;
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    gap: 1vw;
    padding: 20px;
    

}

.cards>img {
    width: 200px;
    height: 200px;
}

.cards {
    width: 300px;
    text-align: center;
    box-shadow: rgba(0, 0, 0, 0.35) 0px 5px 15px;
    transition: all 0.3s ease;
    border-radius: 5px;
    height: 400px;
    padding: 5px;

}

.cards:hover {
    box-shadow: rgba(0, 0, 0, 0.25) 0px 54px 55px, rgba(0, 0, 0, 0.12) 0px -12px 30px, rgba(0, 0, 0, 0.12) 0px 4px 6px, rgba(0, 0, 0, 0.17) 0px 12px 13px, rgba(0, 0, 0, 0.09) 0px -3px 5px;
}

nav>div {
    display: flex;
    flex-flow: row wrap;
    gap: 3vw;
    margin-right: 34vh;
    margin-bottom: 5vh;
}

a {
    text-decoration: none;
    color: inherit;
}

/* form {
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
} */

input[type=submit] {
    background-color: #fe8b24;
    color: #fff;
    width: 100px;
}

button {
    background-color: #fe8b24;
    color: #fff;
    transition: all 0.3s ease;
}

button:hover {
    scale: 110%;
    background-color: #fe8b24;
    color: #fff;
}

.card {
    width: 30%;

}

section>img {
    max-width: 570px;
    max-height: 570px;
}

#carousel {
    display: flex;
    overflow-x: auto;
    -ms-overflow-style: none;
    transition: transform 0.5s ease;
    /* Hide the scrollbar for MS Edge */
    scrollbar-width: none;
    /* Hide the scrollbar for Mozilla Firefox */
    margin: 0 auto 0 auto;
    width: 80vw;
    border: solid #F3E6FF .5px;

}

#carousel::-webkit-scrollbar {
    display: none;
    /* Hide the scrollbar on Webkit based browsers (Chrome, Safari, etc) */
    -webkit-overflow-scrolling: touch;
    /* On touch screens the content continues to scroll for a while after finishing the scroll gesture */
}

.item {
    min-width: 300px;
    min-height: 20vh;
    margin: 15px;
    display: flex;
    flex-direction: column;
    text-align: center;
    border-radius: 7px;
    padding: 10px;
}


.divider {
    width: 50%;
    height: 4px;
    background: linear-gradient(to right, #EA4335, #FBBC05, #34A853, #4285F4);
    margin: 20px auto;
    border-radius: 2px;
}





.sign-menu {
    text-align: left;
    padding: 10px;
    border-radius: 20px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 50px 100px -20px, rgba(0, 0, 0, 0.3) 0px 30px 60px -30px;
}

.sign-menu>form>input {
    width: 20vw;
    border-radius: 5px;
}

.sign-menu>form>input[type=text],
input[type=password],
input[type=email] {
    height: 20px;
}

aside {
    height: 40vw;
    min-height: 400px;
    width: 10vw;
    min-width: 150px;
    text-align: left;
}

.create>input,
textarea {
    width: 70vw;
    
    transition: all ease 0.1s;
}

.create>input:hover,
textarea:hover,
select:hover {
    box-shadow: cornflowerblue 0px 8px 24px;

}

.create>select {
    width: 67vw;
    height: 30px;
    border-radius: 3px;
    transition: all ease 0.1s;
}

.hidden {
    opacity: 0;
    transform: translateY(0px);
    transition: opacity 0.5s ease-out, transform 0.5s ease-out;
}

/* Add a class to the element to trigger the animation */
.hidden.show {
    opacity: 1;
    transform: translateY(0);
}

.hidden-product {
    opacity: 0;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

/* Add a class to the element to trigger the animation */
.hidden-product.show {
    opacity: 1;
    transform: translateX(0);
    /* Изменяем translateY на translateX */
}

.error {
    background-color: #f5f5f5;
    margin-top: 30px;
}

.error>p {
    padding: 10px;
}

.pagination {
    display: flex;
    flex-flow: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
}

.buy {
    display: flex;
    flex-direction: row;
    gap: 30px;
}

.buy>a,
button {
    padding: 10px;
    border-radius: 5px;

}

.buy>button {
    background-color: #fe8b24;
    color: #fff;
    border: 0;
    
    font-size: inherit;

}

.buy>button:hover {
    background-color: #fe8b24;
    color: #fff;
}

.buy>a:hover {
    background-color: #fe8b24;
    color: #fff;
}

.cart-container {
    display: flex;
    flex-flow: row wrap;
    gap: 30px;
    align-items: center;
    
}
table {
    border-collapse: separate; /* Отдельные границы */
    border-spacing: 10px; /* Увеличиваем расстояние между ячейками */
    width: 100%;
}

th, td {
    padding: 20px; /* Увеличиваем отступы внутри ячеек */
    text-align: left;
    border: 1px solid #ddd;
}

th {
    background-color: #f4f4f4;
}

tr {
    line-height: 1.8; /* Межстрочный интервал */
}
.stats > tr > td
{
    text-align: center;
}
#emailPopup {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #fe8b24;
    color: #fff;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s ease-out, transform 0.3s ease-out;
    z-index: 1000;
}

/* Кнопка закрытия */
#closePopup {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: #5f6368;
}

#closePopup:hover {
    background-color: #fe8b24;
    color: #fff;
}

/* Анимация появления */
#emailPopup.show {
    opacity: 1;
    transform: translateY(0);
}
p {
    font-size: 16px;
    line-height: 1.5; /* Оптимальный для чтения */
}

h1, h2 {
    line-height: 1.2; /* Компактные заголовки */
}
@keyframes blink {
    0% {
        fill: #ff0000;
        /* Красный цвет */
    }

    50% {
        fill: #00ff00;
        /* Зеленый цвет */
    }

    100% {
        fill: #0000ff;
        /* Синий цвет */
    }
}

.glow {
    animation: blink 3s infinite;
    /* Применяем анимацию */
}
.table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1rem;
}

.stats {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    padding: 30px;
}

.stats th, .stats td {
    padding: 12px;
    border: 1px solid #ccc;
    text-align: center;
}

.stats th {
    background-color: #f0f0f0;
    font-weight: bold;
}



@media (max-width: 768px) {
    .stats th, .stats td {
        font-size: 14px;
        padding: 8px;
    }
}


@media (max-width: 1920px) {
    nav>div {
        display: flex;
        flex-flow: row wrap;
        gap: 3vw;
        margin-right: 25vh;
        margin-bottom: 5vh;
    }
}


@media (max-width: 450px) {
    nav>div {
        display: flex;
        flex-flow: row wrap;
        gap: 3vw;
        margin-right: 5vh;
        margin-bottom: 5vh;
    }
}
@media (max-width: 378px) {
    .cp1 > article {
        width: 30vw !important;
    }
    aside {
        font-size: 1rem !important;
        width: 5vw;
        height: 100%;
    }
    
    
}
@media (max-width: 948px) {
    .cp1 > article {
        width: 50vw !important;
    }
    aside {
        font-size: 1.5rem;
    }
    .card {
        width: 70%;
    }
    
}
@media (max-width: 630px) {
    header {
        flex-flow: column wrap;
        gap: 10px;
        padding-right: 0;
        padding-left: 0;
    }
    header > div {
        gap: 10px;
        flex-direction: row;
        
    }
    
}
@media (max-width: 412px) {
    
    header > div {
        gap: 5px;
        
        
    }
    
}
@media (max-width: 400px) {
    
    header > div {
        flex-wrap: wrap;
        
        
    }
    
}

@media (max-width: 768px) {
    th, td {
        padding: 8px; /* Уменьшаем отступы на мобильных */
    }

    table {
        width: 100%; /* Таблица займет всю ширину контейнера */
    }

    /* Скрываем неважные столбцы на мобильных устройствах */
    
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
button {
    cursor: pointer;
}
