
body {
    font-family: oswald;
    font-size: 18px;
}

h1, h2, h3, h4, h5, h6 {
    text-align: center;

}
nav {
    font-family: oswald;
}

nav ul {
    list-style: none;
    padding: 0;
}

nav ul li {
    display: inline;
    margin-right: 20px;
}

nav a {
    text-decoration: none;
    color: #aac9eb;
}

/* Стиль для кнопок */
button, input[type="submit"] {
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}



/* Стиль для форм */
/* form {
    margin: 20px 0;
}
.oswald-<uniquifier> {
  font-family: "Oswald", sans-serif;
  font-optical-sizing: auto;
  font-weight: <weight>;
  font-style: normal;
} */


/* Стиль для футера */
footer {
    background-color: #f0f0f0;
    padding: 10px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    width: 100%; /* Ширина футера равна ширине окна */
    z-index: 1000; /* Установка z-index, если требуется позиционирование поверх других элементов */
}

/*------------------------------*/


.button-link {
    border-radius: 12px;
    background-color: #007bff;
    color: #fff;
    border: none;
    padding: 5px 10px;
    text-decoration: none;
    cursor: pointer;

}.button-link-base {
    font-family: «Times New Roman», serif;
    border-radius: 12px;
    font-size: 25px;
    background-color: #ff9933;
    color: #fff;
    border: none;
    padding: 5px 10px;
    text-decoration: none;
    cursor: pointer;
}
/*
.mod-body{
    background: #D3D3D3;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
*/





.basediv {
    box-sizing: border-box;
    padding: auto;
    border: 3px solid #000;
    margin-left: 5em;
    margin-right: 5em;
    margin-top: 1em;
}

.second-nav{
    margin-left: 5em;
    margin-right: 5em;
    margin-top: 2em;
}


footer{
    padding-top: 0px;
    padding-bottom: 0px;
}

.basediv {
    background-color: #f8f9fa;
    padding: 20px;
    margin-bottom: 20px;
}

.basename {
    color: #007bff;
    font-weight: bold;
    font-size: 36px;
    margin-bottom: 20px;
}

.content-section {
    margin-top: 20px;
    margin-left: 5em;
    margin-right: 5em;

}

.flash-messages {
    list-style-type: none;
    padding: 0;
}


.flash-messages {
    list-style-type: none;
    padding: 0;
}

.flash-messages li {
    margin-bottom: 10px;
    padding: 10px;
    border-radius: 5px;
}

.success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
}

.error {
    background-color: #f8d7da;
    border-color: #f5c6cb;
    color: #721c24;
}

.product-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    margin-left: 5em;
    margin-right: 5em;
    padding-bottom: 100px;
}

body {
    font-family: 'Roboto', sans-serif;
    /* background: #cbe3ee; */
    background-image: url("/static/images/background_white.jpg");
    padding: 0px;

}


.product-card {
    background:  #E6B785;
    position: relative;background-image: url("/shared-assets/images/examples/lizard.png");
    width: 30%;
    border: 1px solid #F0AB41;
    border-radius: 8px;
    padding-left: 20px;
    padding-right: 20px;
    padding-top: 20px;
    padding-bottom: 60px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.product-card img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.product-card h2 {
    font-size: 18px;
    margin-top: 10px;
}

.product-card p {
    font-size: 16px;
    color: #555;
}



.product-buttons {
    display: flex;
    justify-content: flex-end; /* Выравниваем элементы по правому краю */
    position: absolute; /* Абсолютное позиционирование */
    bottom: 20px; /* Отступ снизу (можно регулировать) */
    right: 20px; /* Отступ справа (можно регулировать) */
}


.product-description {
    max-height: 100px; /* Максимальная высота блока описания */
    overflow: auto; /* Добавление полосы прокрутки при необходимости */
    word-wrap: break-word;

}


.add-product{
    margin-left: 5em;
    margin-right: 5em;
    padding-bottom: 100px;
}


.contacts {
    margin-top: 3em;
    text-align: center;
}
.text-contact-seller{
    font-size: 20px;
    font-style: Italic;

}

.frame{
        display:inline-block;
        width: 600px ;
        height: auto;
        margin-left: 12em;
        padding-top: 20px;
        padding-bottom: 20px;
}

.frame-number{
        display:inline-block;
        margin-left: 1em;
        margin-top: 1em;
        margin-right: 1em;
}
.menu-item {
        display:flex;
        max-width: 100%;
        height: auto
/*        margin-left: 10em;*/
    }

.description-p{
    margin-left: 12em;
    padding-bottom: 5em;

}

.main-article {
    margin-left: 9em;
    margin-right: 9em;

}
.main-article h1 {
     font-family: 'Oswald', sans-serif;
     margin-bottom: 20px;
     }
.main-article h2 {
     font-family: 'Oswald', sans-serif;
     margin-top: 20px;
     margin-bottom: 10px;
     }
.main-article p, ul {
     margin-bottom: 15px;
     }
.main-article ul {
     padding-left: 20px;
     }

.image-container {
    text-align: center;
    }

.image-container img {
    max-width: 100%;
    height: auto;
    margin-bottom: 2em;
    }





/* Карточка товара */
.card {
    width: 225px;
    min-height: 400px;
    box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.1);
    display: flex;
    flex-direction: column;
    border-radius: 4px;
    transition: 0.2s;
    position: relative;
    margin-bottom: 10px;
    overflow: hidden;
}

/* При наведении на карточку - меняем цвет тени */
.card:hover {
    box-shadow: 4px 8px 16px rgba(255, 102, 51, 0.2);
}

.card__top {
    flex: 0 0 220px; /* Фиксируем высоту */
    position: relative;
    width: 100%;
}

.card__image {
    width: 100%;
    height: 220px; /* Фиксированная высота */
    object-fit: cover; /* Заполняем контейнер картинкой */
    transition: 0.2s;
    cursor: pointer;
}

.card__image:hover {
    transform: scale(1.1); /* Увеличиваем картинку при наведении */
}

.card__label {
    padding: 4px 8px;
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #ff6633;
    border-radius: 4px;
    font-weight: 400;
    font-size: 16px;
    color: #fff;
}

.card__prices {
    display: flex;
    justify-content: space-between;
    padding: 15px;
}

.card__price {
    font-weight: 400;
    font-size: 17px;
    color: #414141;
}

.card__price--discount {
    color: #e60000; /* Красный цвет для цены со скидкой */
}

.card__price--common {
    text-decoration: line-through; /* Перечёркиваем обычную цену */
    color: #606060;
}

.card__bottom {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;
    padding: 15px;
    margin-top: auto; /* Перемещаем блок в самый низ */
}

.card__title {
    font-weight: 400;
    font-size: 17px;
    line-height: 1.2;
    color: #414141;
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    max-height: 3.6em;
}

.card__title:hover {
    color: #ff6633;
}

.card__add {
    width: 100%; /* Кнопка занимает всю ширину */
    font-weight: 400;
    font-size: 17px;
    padding: 10px;
    text-align: center;
    border: 1px solid #70c05b;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    margin-top: 10px;
}

.card__add:hover {
    border: 1px solid #ff6633;
    background-color: #ff6633;
    color: #fff;
}

.card__actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 10px;
}

.card__action-button {
    flex: 1; /* Кнопки занимают одинаковое пространство */
    font-weight: 400;
    font-size: 17px;
    padding: 10px;
    text-align: center;
    border: 1px solid #70c05b;
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
}

.card__action-button:hover {
    border: 1px solid #ff6633;
    background-color: #ff6633;
    color: #fff;
}

/* Модальное окно */
.modal {
    display: none; /* Скрываем по умолчанию */
    position: fixed;
    z-index: 2;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    padding-top: 60px;
}

.modal-content {
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 700px; /* Максимальная ширина модального окна */
    text-align: center;
}

.modal-content img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

 .edit-icon {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1; /* Устанавливаем выше других элементов */
    text-decoration: none; /* Убираем подчеркивание у ссылки */
}

.edit-icon img {
    width: 30px; /* Устанавливаем желаемый размер иконки */
    height: auto;
    cursor: pointer; /* Указываем, что элемент кликабельный */
}

.del-icon img:hover {
    opacity: 0.7; /* Уменьшаем прозрачность при наведении */
}
 .del-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1; /* Устанавливаем выше других элементов */
    text-decoration: none; /* Убираем подчеркивание у ссылки */
}

.del-icon img {
    width: 30px; /* Устанавливаем желаемый размер иконки */
    height: auto;
    cursor: pointer; /* Указываем, что элемент кликабельный */
}

.del-icon img:hover {
    opacity: 0.7; /* Уменьшаем прозрачность при наведении */
}

.img-product {
    width: 100%;
}

@media (max-width: 600px){
    .second-nav{
        margin-left: 1em;
        margin-right: 1em;
        margin-top: 1em;
    }
}

@media (max-width: 600px) {
    .product-card {
        width: 100%;
        margin-right: 0;
    }
    .product-container {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
        margin-left: 2em;
        margin-right: 2em;
    }
    .navbar-nav .nav-item .btn {
        width: 100%; /* Занимает всю ширину */
        margin-bottom: 10px; /* Добавить отступ снизу */
    }
}

@media (max-width: 600px) {
    .add-product {
        padding-bottom: 80px; /* Добавляем отступ внизу контейнера для размещения кнопки */
    }
}

@media (max-width: 600px) {
    .frame{
        display:inline-block;
        width: 120%;
        margin-left: 0.5em;
}
    .img-product {
        width:80%;
    }
    .frame-number {
            display:inline-block;
            margin-left: 1em;
            margin-top: 0em;
            text-align: justify;
    }
    .menu-item {
            display:flow;
            max-width: 100%;
            height: auto
        }
    .text-contact-seller {
             font-size: 20px;
             font-style: Italic;
    }
    .description-p {
             margin-left: 5em;
             margin-right: 5em;
             text-align: justify;
             padding-bottom: 5em;

    }
    .main-article {
        text-align: justify;
        margin-left: 4em;
        margin-right: 4em;

    }
    .main-article h1 {
         font-family: 'Oswald', sans-serif;
         margin-bottom: 20px;
         font-size: 1.1em;
         }
    .main-article h2 {
         font-size: 1.1em;
         font-family: 'Oswald', sans-serif;
         margin-top: 20px;
         margin-bottom: 10px;
         }
    .main-article p, ul {
         margin-bottom: 15px;
         }
    .main-article ul {
         padding-left: 20px;
         }

    .image-container {
        text-align: center;
        }

    .image-container img {
        max-width: 100%;
        height: auto;
        margin-bottom: 2em;
        }

}

.bg-light
 {
    background-color: #FFD240 !important;
}