@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;
}
header {
    background-color: #3d281d;
    color: white;
    padding: 20px;
    text-align: center;
}
.main-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh;
    min-width: 1000px; /*макс ширина для сжатия*/
    min-height: 600px;/*макс высота для сжатия*/
    overflow: auto;
}
.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.85);
    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;/*фиксированная ширина для текста, чтобы он не сжимался*/
}
.text-side h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 900;
    letter-spacing: -2px;
    color: #3d281d;
    font-size: 64px;
    line-height: 1.1;
    margin-bottom: 30px;
    text-transform: uppercase;
}
.cta-button {
    background: #3d281d;
    color: white;
    border: none;
    padding: 18px 40px;
    letter-spacing: 1px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.3s;
    text-transform: uppercase;
}
.cta-button:hover {
    background: #d3ae9c;
}
/*гарри*/
.model-side {
    flex: 1;
    display: flex;
    justify-content: flex-end;
    height: 100%;
}
.model-card {
    background-color: #ffffff;
    box-shadow: 0 15px 40px rgba(61, 40, 29, 0.08);
    width: 100%;
    max-width: 450px;
    height: 90%;
    border-radius: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end; /*текст*/
    padding: 40px;
    position: relative;
    overflow: hidden;/*чтобы гарри не вылезал снизу*/
    transition: 0.3s;
}
.Harry-img {
    width: 80%;
    height: auto;
    position: absolute;/*свободное перемещение внутри карточки*/
    top: 50%;/*центр*/
    left: 50%;
    transform: translate(-50%, -55%);
    z-index: 1;
    transition: transform 0.4s ease;
    pointer-events: none; /*чтобы картинка не мешала кликать по кнопке под ней*/
}
.model-card:hover .Harry-img {
    transform: translate(-50%, -55%) scale(1.1); 
}
.model-card:hover {
    box-shadow: 0 20px 50px rgba(61, 40, 29, 0.15);
    border-color: rgba(255, 255, 255, 0.2);
}
.spell-box {
    z-index: 2;/*текст поверх гарри*/
    position: relative;/*чтобы z-index сработал*/
}
.spell {
    background: #f0e6dc;
    color: #3d281d;
    border: none;
    padding: 15px 40px;
    letter-spacing: 2px;
    border-radius: 50px;
    font-size: 14px;
    text-transform: uppercase;
    white-space: nowrap; /*чтобы текст не переносился*/
    transition: 0.3s;
}
.spell:hover {
    background: #ada5a0;
}
/*модальное окно*/
/* Фоновая подложка (затемнение) */
.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); /* Магическое размытие фона */
}
/* Само окно по центру */
.modal-content {
    background-color: #ffffff;
    margin: 15% auto;
    padding: 30px;
    border: 1px solid #e0d6cc;
    width: 400px;
    text-align: center;
    color: #3d281d;
    border-radius: 20px;
    position: relative;
    box-shadow: 0 10px 30px rgba(61, 40, 29, 0.1);
}
/* Кнопка закрытия (крестик) */
.close-button {
    position: absolute;
    right: 15px;
    top: 10px;
    color: #e0c097;
    font-size: 28px;
    cursor: pointer;
}
.close-button:hover {
    color: rgb(71, 53, 53);
}
.close-button {
    position: absolute;
    right: 20px;
    top: 10px;
    font-size: 30px;
    cursor: pointer;
}
.cart-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid #e2c08d;
}
.cart-item img {
    width: 60px;
    border-radius: 10px;
}
.item-info strong {
    color: #3d281d;
}
.item-price {
    color: #b8860b;
    font-weight: bold;
    margin-left: auto;
}
.delete-btn {
    background: none;
    border: none;
    font-size: 22px;
    cursor: pointer;
    color: #d9534f;
    transition: 0.3s;
}
.delete-btn:hover {
    transform: scale(1.2);
}
   /* Toast уведомления */
   .toast-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
/* Заголовок модального окна (Корзина, Избранное, Поиск) */
#modal-title {
    color: #3d281d !important;
    font-weight: 800;
}

/* 5. МОДАЛЬНОЕ ОКНО */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(61, 40, 29, 0.5);
    backdrop-filter: blur(8px);
}

.modal-content {
    background-color: #ffffff;
    margin: 5% auto;
    padding: 35px;
    border: 2px solid #e2c08d;
    width: 90%;
    max-width: 650px;
    border-radius: 25px;
    position: relative;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    max-height: 85vh;
    overflow-y: auto;
}

#modal-title {
    font-weight: 800;
    text-transform: uppercase;
    border-bottom: 2px solid #e2c08d;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

.close-button {
    position: absolute;
    right: 20px;
    top: 15px;
    font-size: 30px;
    cursor: pointer;
}

.close-button:hover {
    color: #d9534f;
}
/* Строки корзины и избранного */
.modal-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #fdfaf7;
    padding: 10px 20px;
    border-radius: 12px;
    border: 1px solid #eee;
    width: 100%;
    gap: 15px;
}
.modal-item-row img {
    width: 45px;
    height: 45px;
    object-fit: contain;
    background: white;
    border-radius: 8px;
    padding: 3px;
}
.modal-item-row .item-info {
    flex: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.modal-item-row .item-name {
    font-size: 14px;
    font-weight: bold;
    color: #3d281d;
    text-transform: none;
}
.modal-item-row .item-price {
    color: #b8860b;
    font-weight: bold;
}

  /* Toast уведомления */
  .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); }
}