@import url('https://fonts.googleapis.com');
/*полный сброс отступов*/
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body, html {
    width: 100%;
    height: 100%;
    background-color: #f9f6f2;
    font-family: 'Arial', sans-serif;
    color: #3d281d;
}
/* Скрываем скролл как в профиле */
body::-webkit-scrollbar { display: none; }
body { scrollbar-width: none; }
header {
    background-color: #3d281d;
    color: white;
    padding: 20px;
    text-align: center;
}
.navbar {
    height: 80px; 
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
    flex-shrink: 0;
}
.navbar nav {
    display: flex;
    gap: 25px; /*расстояние между*/
    margin-right: 40px;
}
.navbar nav a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s;
    font-weight: bold;
    text-transform: uppercase;
    white-space: nowrap; /*текст не переносится*/
}
.navbar nav a:hover {
    color: #e2c08d; /*эффект при наведении*/
}
/*иконки справа*/
.main-icon {
    width: 24px;/*размер иконки*/
    height: 24px;
    cursor: pointer;
    margin-left: 20px;/*отступ между иконками*/
    transition: transform 0.2s, opacity 0.2s;
    opacity: 0.8;
}
.main-icon:hover {
    transform: scale(1.1);/*эффект увеличения при наведении*/
    opacity: 1;
}
/*логотип слева*/
.logo {
    display: flex;
    align-items: center;
    height: 100%;
    margin: 0;
    padding: 0;
}
.logo-img {
    height: 50px;/*высота*/
    width: auto;
    display: block;
    margin: 0;
}
.logo-img:hover {
    transform: scale(1.1);/*эффект увеличения при наведении*/
}
.content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-around;
    padding: 40px 80px;
    gap: 50px;
}
.text-side {
    flex: 0 0 450px;/*фиксированная ширина для текста, чтобы он не сжимался*/
}
h1 {
    color: rgb(218, 222, 224);
    text-align: center;
    text-shadow: #fff;
}
.text-side h1 {
    text-align: center;
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    letter-spacing: -2px;
    color: #fff;
    font-size: 37px;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
}
h3{
    color: rgb(58, 56, 56);
}
/* Фоновая подложка (затемнение) */
.modal {
    display: none; 
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8); 
    backdrop-filter: blur(5px);
}


/* Кнопка закрытия (крестик) */
.close-button {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #e0c097;
    font-size: 28px;
    cursor: pointer;
}
.close-button:hover {
    color: white;
}
/* Общие настройки страницы */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    text-align: center;
}

/* Сетка карточек */
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}
/* Стили карточки */
.promo-card {
    background:#ffffff;
    border-radius: 20px;
    border: 1px solid #e0d6cc;
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(61, 40, 29, 0.05);
    text-align: center;
    display: flex;
    flex-direction: column;
    padding: 20px;
}
.promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.4);
}
/* Стикер скидки */
.badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #ff4757;
    color: white;
    padding: 8px 15px;
    border-radius: 50px;
    font-weight: bold;
    font-size: 0.9em;
    z-index: 1;
}
.badge.hot { background: #ffa502; }
/* Картинка и описание */
.card-image img {
    width: 75%;
    height: 250px;
    object-fit: cover;
}
.card-info {
    padding: 20px;
    color: #333;
    flex-grow: 1;
}
/* Общий контейнер для кнопки и лайка */
.card-buttons {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    margin-top: 15px;
}
/*кнопка "В корзину"*/
.buy-btn {
    background: #6d4c41;
    color: white;
    border: none;
    padding: 10px 25px;
    border-radius: 25px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    font-family: inherit;
}
/*"в корзину" наводим*/
.buy-btn:hover {
    background: #8b6256;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.2);
}
.buy-btn:active {
    transform: translateY(0);
}
/*иконка сердечка (избранное)*/
.like-btn-card {
    font-size: 1.6rem;
    color: #6d4c41;
    cursor: pointer;
    transition: transform 0.2s ease, color 0.2s ease;
    user-select: none;
}
/*акция*/
.like-btn-card:hover {
    transform: scale(1.2);
    color: #ff4757;
}
/*цена зачеркнутая*/
.description {
    font-size: 0.9em;
    color: #666;
    margin: 10px 0;
}
/* Цены */
.price-block {
    margin: 15px 0;
}
.old-price {
    text-decoration: line-through;
    color: #6b7581;
    margin-right: 10px;
    font-size: 1.1em;
}
/*цена*/
.new-price {
    color: #ff4757;
    font-size: 1.5em;
    font-weight: bold;
}
/* Кнопка */
.buy-button {
    background: #6d4c41; 
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background 0.3s;
}
.buy-button:hover {
    background: #5d4037;
}
/*контейнер для уведомлений */
.toast-container {
    position: fixed; 
    bottom: 20px;   
    right: 20px;   
    z-index: 10000; 
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/*  УВЕДОМЛЕНИЕ*/
.toast {
    background: #ffffff;
    color: #3d281d;  
    padding: 15px 25px;
    border-radius: 12px;
    border: 1px solid #e2c08d;
    box-shadow: 0 8px 20px rgba(61, 40, 29, 0.15); 
    font-size: 0.95em;
    font-weight: bold;
    min-width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: slideIn 0.5s ease forwards, fadeOut 0.5s ease 2.5s forwards;
}
/* Анимация появления */
@keyframes slideIn {
    from { transform: translateX(120%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* Анимация исчезновения */
@keyframes fadeOut {
    to { opacity: 0; transform: translateY(10px); }
}
/* ЗАГОЛОВОК СТРАНИЦЫ */
.page-title {
    color: #3d281d;
    font-size: 2.5em;
    margin: 40px 0;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 2px;
}
/* СЕТКА И КАРТОЧКИ */
.content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 50px;
}
.promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}
.promo-card {
    background: #ffffff;
    border: 1px solid #e0d6cc;
    border-radius: 20px;
    padding: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 10px 25px rgba(61, 40, 29, 0.05);
    text-align: center;
}
.promo-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(61, 40, 29, 0.1);
}
/* КАРТИНКА */
.card-image img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 15px;
}
/* ТЕКСТ В КАРТОЧКЕ */
.card-info h3 {
    color: #3d281d;
    margin-bottom: 10px;
    border-bottom: 2px solid #e2c08d;
    display: inline-block;
    padding-bottom: 5px;
}
.description {
    color: #6d4c3d;
    font-size: 0.95em;
    margin-bottom: 15px;
}
/* ЦЕНЫ */
.new-price {
    color: #b8860b; 
    font-size: 1.4em;
    font-weight: bold;
}
.old-price {
    color: #a08a7e;
    text-decoration: line-through;
    margin-right: 10px;
}
/* КНОПКА "В КОРЗИНУ" */
.buy-btn {
    background: #3d281d;
    color: white;
    border: none;
    padding: 12px 30px;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    font-size: 12px;
    margin-top: 15px;
}
.buy-btn:hover {
    background: #5d3d2e;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}
/* Скидки */
.badge {
    background: #d9534f; 
    color: white;
    padding: 5px 12px;
    border-radius: 8px;
    font-size: 0.8em;
    position: absolute;
    top: 15px;
    left: 15px;
}
/* модальное окно */
.modal-content {
    background-color: #ffffff; 
    margin: 10% auto;
    padding: 35px;
    border: 2px solid #e2c08d; 
    width: 450px;
    text-align: left;
    color: #3d281d;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 15px 40px rgba(61, 40, 29, 0.15);
}

/* Заголовок "КОРЗИНА" или "ИЗБРАННОЕ" */
#modal-title {
    color: #3d281d;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-size: 1.5em;
    margin-bottom: 25px;
    border-bottom: 2px solid #e2c08d;
    display: inline-block;
    padding-bottom: 5px;
}
/* Крестик закрытия */
.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #6d4c3d; 
    font-size: 30px;
    cursor: pointer;
    transition: 0.3s;
}
.close-button:hover {
    color: #d9534f; 
}
