body {
    margin: 0;
    font-family: 'Times New Roman' , Times, Serif;
    background-color: #cdcdcd;
    background-image: url('../bgwhitemob.jpg'); /* Укажите путь к фото */
    background-size: contain; /* Фото растягивается на весь экран */
    background-position: center; /* Фото центрируется */
    background-repeat: repeat; /* Фото не повторяется */
    background-attachment: fixed; /* Фото фиксируется при прокрутке */
}

.navbar {
    height: 8vh;
    display: flex;
    align-items: center;
    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);
    position: fixed;
    z-index: 100;
    width: 100%;
    top: 0;
    padding: 0 10px; /* Внутренние отступы вместо margin на кнопках */
    box-sizing: border-box;
}

.logo-container {
    display: flex;
    align-items: center;
    flex-shrink: 0; /* Не сжимается */
}

.logo {
    position: relative;
    width: 25vw;
    min-width: 120px;
    height: auto;
    object-fit: contain;
    margin-right: 10px;
}

.studio-name {
    flex: 1; /* Занимает всё доступное пространство */
    font-style: italic;
    font-weight: bold;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-align: center;
    font-size: clamp(10px, 4vw, 32px); /* Адаптивный размер */
    min-width: auto; /* Позволяет сжиматься до содержимого */
}

/* Скрываем текст, если он не влезает даже при 18px */
@media (max-width: 480px) {
    .studio-name {
        font-size: 0; /* Скрываем, если слишком мало места */
    }
}

.nav-buttons {
    display: flex;
    gap: 10px;
    flex-shrink: 0; /* Не сжимаются */
    margin-left: auto; /* Прижимаем к правому краю */
}

.nav-btn {
    background: white;
    border: 1px solid #000;
    border-radius: 10px;
    padding: 8px 10px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
    color: black;
    text-decoration: none;
    white-space: nowrap;
}

/* Стили корзины для десктопа */
.popup-overlay {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100dvh;
    z-index: 1101;
    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: 5px;
    right: 5px;
    font-size: 40px; /* Увеличили размер */
    cursor: pointer;
    padding: 8px; /* Добавили отступы для лучшей кликабельности */
    line-height: 1;
    transition: color 0.3s ease;
    z-index: 2005;
    background: none;
    border: none;
    color: #333; /* Цвет по умолчанию */
}

.cart-popup-content {
    display: flex;
    height: 95dvh;
    padding: 15px;
    flex-direction: column; 
    transform: translateY(20px);
    transition: transform 0.3s ease-in-out;
    width: 95%;
    background: rgba(255, 255, 255, 0.785);
    backdrop-filter: blur(5px);
    pointer-events: all;
    border: 1px solid #000;
    border-radius: 14px;
    margin: 2.5%;
}

.popup-overlay.active .cart-popup-content {
    transform: translateY(0);
}

.cart-items-wrapper {
    width: 100%; /* Товары справа */
    flex: 1;
    padding-left: 0;
    margin: -5% 0 0 0;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    height: 100vh;
    min-height: 0;
    z-index: 2001;
}

.cart-items {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 10px;
    padding-top: 5px;
}

/* Улучшенные стили формы */
.order-form {
    width: 100%;
    padding-right: 0;
    height: auto;
    transform: translateY(1%);
    z-index: 2002;
    margin-top: auto;
}

.form-title-wrapper-mob {
    color: black;
    border-bottom: 2px solid #000;
    border-top: 2px solid #000;
    padding-left: 10px;
    display: flex;
    justify-content: space-between;
    padding: 5px 0 5px 0;
    margin: 0;
}

.form-title-wrapper {
    display: none;
}

.order-form h3 {
    font-size: clamp(18px, 5vw, 32px);
    color: black;
    padding-left: 10px;
    margin: 0;
}

.input-group {
    margin-bottom: 10px;
}

/* Стили для выбранных кнопок */
.social-btn.selected,
.delivery-btn.selected {
    background: black;
    color: white;
}

.social-btn,
.delivery-btn {
    flex-wrap: wrap;
    background: white;
    color: black;
    border: 1px solid black;
    border-radius: 20px;
    padding: 8px 16px;
    margin: 5px;
    cursor: pointer;
    transition: all 0.3s;
}

.social-btn:active,
.delivery-btn:active {
    background: rgb(42, 28, 105);
    color: white;
}

.input-label {
    display: block;
    margin-top: 5px;
    font-size: 16px;
    color: #666;
}

.input-label a {
    color: inherit; /* Наследует цвет родителя */
    text-decoration: none; /* Убирает подчеркивание */
    border-bottom: 1px dashed #666; /* Необязательный вариант */
    transition: color 0.3s ease;
}

.order-input {
    width: 93%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 14px;
    font-size: 16px;
}

.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 {
display: none;
}

#cartsummarytextmob {
    font-weight: 300;
    font-size: clamp(10px, 5vw, 18px);
    padding: 0 10px 0 0;
    margin: auto 0 0 0;
}

#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: 5px;
    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
}

/* Адаптация карточек товаров */
.cart-item {
    background: white;
    position: relative;
    display: flex;
    margin-bottom: 10px;
    border: 1px solid #000;
    border-radius: 14px;
    padding: 5px;
    align-items: center;
    transition: transform 0.3s ease;
}

/* Общие стили для обеих версий */
.cart-item-image {
    width: 100px;
    height: 100px;
    object-fit: contain;
    border-radius: 10px;
    margin-right: 15px;
    flex-shrink: 0;
}

.cart-item-info {
    flex-grow: 1;
    font-size: clamp(8px, 7vw, 18px);
}

.cart-item-info p {
    margin: 5px 0;
    line-height: 1.4;
    font-size: clamp(8px, 4vw, 18px);
}

.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: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: 10vh auto 40px;
    padding: 0 16px; /* Защита от краёв на мобильных */
}

.info-section {
    max-width: 800px;
    padding: 24px;
    border-radius: 20px;
    margin-bottom: 20px;
    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 {
    display: inline-block;
    background: black;
    color: white;
    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;
}

.note {
    background: #ffffff;
    padding: 16px;
    border-radius: 14px;
    font-style: italic;
    margin-top: 12px;
}

.bottom-strip {
    background: white; /* Белый фон */
    color: black; /* Чёрный текст */
    text-align: center; /* Текст по центру */
    padding: 10px 0; /* Отступы сверху и снизу для текста */
    border-top-left-radius: 10px; /* Закругление верхнего левого угла */
    border-top-right-radius: 10px; /* Закругление верхнего правого угла */
    margin-top: 10px; /* Отступ сверху 10px */
    font-size: 17px;
    border: 1px solid black;
}

/* Стили для кнопки 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: 1001; /* Чтобы кнопка была поверх полоски */
    transition: background 0.3s, color 0.3s; /* Плавный эффект при наведении */
}

/* Футер */
.site-footer {
    background: #1a1a1a; /* Темный фон */
    color: white;
    padding: 40px 20px;
    font-family: Arial, sans-serif;
    padding-bottom: 0;
}

/* Контент футера */
.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: 0 auto;
    gap: 25px;
}

/* Секции футера */
.footer-section {
    flex: 1;
    min-width: 200px;
    margin-bottom: 20px;
}

/* Логотип и описание */
.footer-logo {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: -22px;
}

.footerlogo {
    border-radius: 8px;
}

.footer-description {
    font-size: 14px;
    line-height: 1.6;
    color: #ccc;
}

/* Заголовки секций */
.footer-heading {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 14px;
}

/* Ссылки */
.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;
}

/* Социальные сети */
.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;
}

/* Контактная информация */
.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;
}

/* Копирайт */
.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #444;
    font-size: 14px;
    color: #ccc;
}

/* Логотип */
.footer-logo img {
    width: 150px; /* Ширина логотипа */
    height: auto; /* Сохраняем пропорции */
    margin-bottom: 10px;
}

.TGdevlink {
    display: inline-block; /* Чтобы ссылка занимала только нужное место */
    margin-top: 10px; /* Отступ сверху */
    color: white; /* Желтый цвет для выделения */
    text-decoration: none; /* Убираем подчеркивание */
    font-weight: bold; /* Жирный текст */
    transition: color 0.3s ease; /* Плавное изменение цвета */
}

/* Стили для уведомлений */
#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: 300px;
    max-width: 20%;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    animation: slideIn 0.3s ease-out forwards;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
    pointer-events: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.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;
}