body {
    margin: 0;
    font-family: 'Times New Roman' , Times, Serif;
    background-color: #cdcdcd;
    background-image: url('../bgwhitepc.jpg'); /* Укажите путь к фото */
    background-size: cover; /* Фото растягивается на весь экран */
    background-position: center; /* Фото центрируется */
    background-repeat: repeat; /* Фото не повторяется */
    background-attachment: fixed; /* Фото фиксируется при прокрутке */
}

.navbar {
    height: 10vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
    background: rgba(255, 255, 255, 0.674); 
    backdrop-filter: url(#liquidGlassFilter) blur(2px);
    -webkit-backdrop-filter: url(#liquidGlassFilter) blur(2px);
    border-radius: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    margin-top: 5px;
    position: fixed;
    top: 0;
    z-index: 5;
    box-sizing: border-box;
    width: 100%;
}

.logo-container {
    display: flex;
    align-items: center;
    padding-left:  10px;
}

.logo {
    position: relative;
    width: 10vw;
    min-width: 150px;
    height: auto;
    object-fit: contain;
    margin-right: 20px;
}

.studio-name {
    font-size: clamp(30px, 3vw, 45px);
    color: #333;
    font-style: italic;
    font-weight: bold;
    letter-spacing: 1px;
}

.nav-buttons {
    display: flex;
    gap: 15px;
    padding-right: 10px;    
}

.nav-btn {
    background: white;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 10px 20px;
    font-size: 20px;
    cursor: pointer;
    transition: all 0.3s;
    color: black;
    text-decoration: none;
}

.nav-btn:hover {
    background: #f0f0f0;
}

/* Стили корзины для десктопа */
.popup-overlay {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease-in-out;
    display: flex;
    background: rgba(0,0,0,0.3);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.close-popup {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 32px; /* Увеличили размер */
    cursor: pointer;
    padding: 8px; /* Добавили отступы для лучшей кликабельности */
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 1;
    background: none;
    border: none;
    color: #333; /* Цвет по умолчанию */
}

.close-popup:hover {
    color: #000; /* Цвет при наведении */
    transform: scale(1.1); /* Легкое увеличение при наведении */
}

.cart-popup-content {
    display: flex;
    height: 88%;
    padding: 20px;
    flex-direction: row-reverse; /* Меняем порядок блоков */
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
    width: 80%;
    margin-left: 10%;
    background: rgba(255, 255, 255, 0.785);
    backdrop-filter: blur(5px);
    pointer-events: all;
    border: 1px solid #000;
    border-radius: 14px;
    margin-top: 3dvh;
}

.popup-overlay.active .cart-popup-content {
    transform: translateY(0);
}

.cart-items-wrapper {
    width: 50%; /* Товары справа */
    padding-left: 30px;
    border-left: 2px solid black;
    margin-bottom: 14px;
    margin-left: 10px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100%; /* Добавляем высоту для правильной работы flex */
    min-height: 0; /* Важно для вложенных flex-элементов */
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 20px;
    padding-top: 5px;
}

/* Улучшенные стили формы */
.form-title-wrapper-mob {
    display: none;
}
.order-form {
    width: 50%;
    padding-right: 30px;
}

.order-form h4 {
    margin: 20px 0 15px;
    font-size: 18px;
    color: #333;
    border-bottom: 2px solid #000;
    padding-bottom: 5px;
}

.form-title-icon {
    display: none;
}
.input-group {
    margin-bottom: 15px;
}

/* Стили для выбранных кнопок */
.social-btn.selected,
.delivery-btn.selected {
    background: black;
    color: white;
}

.social-btn,
.delivery-btn {
    background: white;
    color: black;
    border: 1px solid black;
    border-radius: 20px;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:hover,
.delivery-btn:hover {
    background: #f0f0f0;
}

.social-btn:active,
.delivery-btn:active {
    background: black;
    color: white;
}

.social-btn {
    margin-bottom: 14px;
}

.input-label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
    color: #666;
}

.input-label a {
    color: inherit; /* Наследует цвет родителя */
    text-decoration: none; /* Убирает подчеркивание */
    border-bottom: 1px dashed #666; /* Необязательный вариант */
    transition: color 0.3s ease;
}

.input-label a:hover {
    color: #000; /* Цвет при наведении */
    text-decoration: none; /* Убирает стандартное подчеркивание */
    border-bottom-style: solid; /* Для dashed варианта */
}

.order-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 14px;
}

.promo-code-container {
    display: flex;
    gap: 10px;
}

.apply-promo-btn {
    white-space: nowrap;
    background: #000;
    color: white;
}

#promoCodeInput:disabled {
    background: #f0f0f0;
    cursor: not-allowed;
    color: gray;
}

.cart-summary {
    position: static;
    border-top: 2px solid #000;
    top: 100%;
    text-align: end;
    margin-top: auto;
}

#cartsummarytext {
    font-weight: bold;
    font-size: larger;
    margin: 0;
    margin-top: 10px;
}

#cartsummarytextmob {
    display: none;
}

#totalPrice {
    transition: opacity 0.5s ease, transform 0.3s ease;
    display: inline-block;
}

.price-update {
    animation: priceUpdate 0.5s ease;
}

@keyframes priceUpdate {
    0% { transform: translateY(-5px); opacity: 0; }
    100% { transform: translateY(0); opacity: 1; }
}

.order-btn {
    width: 100%;
    background: #000;
    color: white;
    padding: 15px;
    margin-top: 20px;
    font-size: 16px;
}

/* Крестик удаления */
.remove-item {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    z-index: 2;
    transition: color 0.2s ease
}

.remove-item:hover {
    color: #ff0000;
}

/* Адаптация карточек товаров */
.cart-item {
    background: white;
    position: relative;
    display: flex;
    margin-bottom: 20px;
    border: 1px solid #000;
    border-radius: 14px;
    padding: 15px;
    align-items: center;
    transition: transform 0.3s ease;
}

.cart-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* Общие стили для обеих версий */
.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 15px;
}

.cart-item-info {
    flex-grow: 1;
}

.cart-item-info p {
    margin: 5px 0;
    line-height: 1.4;
}

.cart-item-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    font-weight: bold;
}

button {
    border: 1px solid #000;
    border-radius: 14px;
    background: white;
    padding: 10px 20px;
    transition: all 0.3s;
}

button:hover {
    background: #f0f0f0;
}

button:active {
    background: #000;
    color: white;
}

h2 {
    font-size: 24px;
    margin-bottom: 16px;
    margin-top: 32px;
}

p, ul {
    margin-bottom: 16px;
}

ul {
    padding-left: 20px;
}

.info-content {
    max-width: 800px;
    margin: 12vh auto 40px;
    padding: 0 16px; /* Защита от краёв на мобильных */
}

.info-section {
    max-width: 800px;
    padding: 24px;
    border-radius: 14px;
    margin-bottom: 28px;
    border: 1px solid #0000001a; /* very light grey border */
    background: rgba(255, 255, 255, 0.785);
    backdrop-filter: blur(5px);
}

.info-section h2 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 0;
}

.btn-link {
    color: white;
    display: inline-block;
    text-decoration: none;
    padding: 5px 10px;
    margin-bottom: 2px;
    border-radius: 14px;
    font-weight: 500;
    transition: opacity 0.2s;
    border: 1px solid black;
    transition: all 0.3s ease;
    background-color: black;
}

.btn-link:hover {
    opacity: 0.9;
    background: white;
    color: black;
    border: 1px solid black;
}

.note {
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    font-style: italic;
    margin-top: 12px;
}

/* Стили для кнопки SALE */
.sale-button {
    position: fixed; /* Фиксированная позиция */
    bottom: 20px; /* Отступ снизу */
    right: 20px; /* Отступ справа */
    background: white; /* Белый фон */
    color: black; /* Чёрный текст */
    padding: 10px 20px; /* Отступы внутри кнопки */
    border-radius: 25px; /* Закруглённые края */
    text-decoration: none; /* Убираем подчёркивание */
    font-size: 16px; /* Размер текста */
    font-weight: bold; /* Жирный текст */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Тень для кнопки */
    z-index: 2; /* Чтобы кнопка была поверх полоски */
    transition: background 0.3s, color 0.3s; /* Плавный эффект при наведении */
}

/* Эффект при наведении на кнопку */
.sale-button:hover {
    background: black; /* Чёрный фон */
    color: white; /* Белый текст */
}

/* Футер */
.site-footer {
    background: #1a1a1a; /* Темный фон */
    color: white;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    padding-bottom: 0;
}

/* Контент футера */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    gap: 40px;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
}

/* Секции футера */
.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

/* Логотип и описание */
.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

.footerlogo {
    border-radius: 10px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

/* Заголовки секций */
.footer-heading {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
}

/* Ссылки */
.footer-links {
    list-style: none;
    padding: 0;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ff00e1; /* Желтый цвет при наведении */
}

/* Социальные сети */
.social-links {
    list-style: none;
    padding: 0;
}

.social-links li {
    margin-bottom: 10px;
}

.social-icon {
    color: white;
    text-decoration: none;
    font-size: 14px;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #ff00e1; /* Желтый цвет при наведении */
}

/* Контактная информация */
.contact-info {
    list-style: none;
    padding: 0;
}

.contact-info li {
    margin-bottom: 10px;
    font-size: 14px;
}

.contact-info a {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.contact-info a:hover {
    color: #ff00e1; /* Желтый цвет при наведении */
}

/* Копирайт */
/* Стили для футера */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #ccc;
}

/* Ссылка на Telegram */
.TGdevlink {
    display: inline-block; /* Чтобы ссылка занимала только нужное место */
    margin-top: 10px; /* Отступ сверху */
    color: white; /* Желтый цвет для выделения */
    text-decoration: none; /* Убираем подчеркивание */
    font-weight: bold; /* Жирный текст */
    transition: color 0.3s ease; /* Плавное изменение цвета */
}

.TGdevlink:hover {
    color: #ff00e1; /* Белый цвет при наведении */
    text-decoration: none; /* Подчеркивание при наведении */
}

/* Логотип */
.footer-logo img {
    width: 150px; /* Ширина логотипа */
    height: auto; /* Сохраняем пропорции */
    margin-bottom: 10px;
}

.bottom-strip {
    width: 60%; /* На всю ширину экрана */
    background: white; /* Белый фон */
    color: black; /* Чёрный текст */
    text-align: center; /* Текст по центру */
    padding: 10px 0; /* Отступы сверху и снизу для текста */
    border-top-left-radius: 10px; /* Закругление верхнего левого угла */
    border-top-right-radius: 10px; /* Закругление верхнего правого угла */
    margin: 10px auto 0; /* Отступ сверху 10px */
    font-size: 17px;
    border: 1px solid black;
}

/* Стили для уведомлений */
#notification-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000;
    display: flex;
    flex-direction: column-reverse;
    gap: 10px;
    align-items: center;
    width: 100%;
    pointer-events: none;
}

.notification {
    min-width: 14%; /* Немного увеличили минимальную ширину */
    padding: 10px 28px;
    border-radius: 10px;
    font-size: 18px;
    font-weight: 600; /* Полужирный текст */
    animation: slideIn 0.3s ease-out forwards;
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.4; /* Межстрочный интервал */
    text-align: center;
}

.notification span {
    display: block;
    width: 100%;
}

.notification.success {
    background: #e8f5e9;
    border: 2px solid #43a047;
    color: #2e7d32;
}

.notification.error {
    background: #ffebee;
    border: 2px solid #e53935;
    color: #c62828;
}

@keyframes slideIn {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes fadeOut {
    to {
        opacity: 0;
        transform: translateY(100%);
    }
}

.notification.hide {
    animation: fadeOut 0.3s ease-in forwards;
}