
        /* Базовые сбросы */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            scroll-behavior: smooth;
              
        }
    
        
            
        /* Контейнер теперь имеет полностью автоматическую высоту */
        .product-image-wrapper {
            width: 100% !important;
            height: auto !important; /* Убрали жесткий aspect-ratio, чтобы картинка не искажалась */
            max-height: 400px !important; /* Защита от слишком длинных фото */
            overflow: hidden !important;
            background-color: #1f2937 !important; /* Родной темно-серый фон карточки */
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            border-radius: 12px 12px 0 0 !important;
        }

        /* Картинка: жесткие пропорции без искажений и без срезания краев */
        .product-img {
            width: 100% !important;   /* Занимает всю ширину карточки от края до края */
            height: auto !important;   /* Высота подстраивается САМА, сохраняя реальные пропорции фото! */
            object-fit: contain !important; /* Полный запрет на растягивание, сплющивание и срез */
            display: block !important;
        }

        /* Стиль для панели миниатюр внизу */
        .product-gallery-thumbs {
            display: flex !important;
            gap: 6px !important;
            padding: 10px 15px 0 15px !important;
            overflow-x: auto !important;
        }
    

    



        html, body {
      background-color: #1C2A39 !important;
            width: 100% !important;
            height: 100% !important;
            overflow-x: hidden;
}

@font-face {
	font-family: 'FuturaLightC-Italic';
	src: url('../fonts/futuralightc-italic.eot'); /* IE 9 Compatibility Mode */
	src: url('../fonts/futuralightc-italic.eot?#iefix') format('embedded-opentype'), /* IE < 9 */
		url('../fonts/futuralightc-italic.woff2') format('woff2'), /* Super Modern Browsers */
		url('../fonts/futuralightc-italic.woff') format('woff'), /* Firefox >= 3.6, any other modern browser */
		url('../fonts/futuralightc-italic.ttf') format('truetype'), /* Safari, Android, iOS */
		url('../fonts/futuralightc-italic.svg#futuralightc-italic') format('svg'); /* Chrome < 4, Legacy iOS */
}

        body {
         
            line-height: 1.6;
            color:#1C2A39;
        }
        nav {
            color: #483C32;
                font-family:'FuturaLightC-Italic';
                display:flex;
                align-items:center;
                margin-right: 10px;
        }

        .container {
            width: 90%;
            max-width: 1200px;
            margin: 0 auto;
       
        }

        /* Шапка сайта */
        header {
            background: Teal;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.2);
            -webkit-backdrop-filter:blur(10px);
            border:1px solid rgba(255, 255,255, 0.3);
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
            position: fixed;
            width: 100%;
            height:10vh;
            top: 0;
            z-index: 100;
            border-radius:20px;
        }
        .links{
            display:flex;
            align-items:center;
        }

    
        .tele{
              font-family: 'FuturaLightC-Italic';
            color:#1C2A39;
            padding: 5px;
            border-radius: 15px;
            box-shadow: 0px 0px 4px 1px rgba(255, 255, 255, 0.3);
            transition: box-shadow .5s;
   
            text-decoration: none;
            margin-top:5px;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.2); 
               cursor:pointer;
            
        
        }
.link-item {
     font-family: 'FuturaLightC-Italic';
            color:#1C2A39;
            padding: 5px;
            border-radius: 15px;
            box-shadow: 0px 0px 4px 1px rgba(255, 255, 255, 0.3);
            transition: box-shadow .5s;
            cursor: pointer;
            text-decoration: none;
            margin-top:5px;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.2); 
}

          .link-item:hover {
            box-shadow: 0px 0px 4px 1px rgba(255, 255, 255, 0.7);
        }
        
         .cart-link{
          font-family: 'FuturaLightC-Italic';
            color:#1C2A39;
            padding: 5px;
            border-radius: 15px;
            box-shadow: 0px 0px 4px 1px rgba(255, 255, 255, 0.3);
            transition: box-shadow .5s;
            cursor: pointer;
            text-decoration: none;
            margin-top:5px;
            backdrop-filter: blur(10px);
            background: rgba(255, 255, 255, 0.2); 
            
         }
             .cart-link:hover {
            box-shadow: 0px 0px 4px 1px rgba(255, 255, 255, 0.7);
        }

        .navbar {
            display: flex;
            justify-content: space-between;
    
            padding: 10px 0;
        }

        .logo {
             font-family: 'FuturaLightC-Italic';
             color:#1C2A39;
            margin-top:5px;
            font-size: 22px;
            letter-spacing: 2px;
            margin-left:5 px;
            text-decoration: none;
            display: flex;
            align-items: center;
         
        }

        nav a {
            
            text-decoration: none;
            margin-top:70px;
            transition: color 0.3s;
            font-family: 'FuturaLightC-Italic';
            color:#5B675A;
            display:flex;
            align-items:center;
        }

        

        /* Баннер */
        .hero {
        
            height: 70vh;
            display: flex;
            align-items: center;
            text-align: center;
          
    
            font-family: 'FuturaLightC-Italic';
              background-image: url(images/ткани.jpg);
                 
            
        }
        section hero{
            color: #1C2A39; 
        }

        .hero-content h1 {
            font-size: 44px;
            margin-top: 200px;
            color: #1f2937;   ; 
            font-family: 'FuturaLightC-Italic';
            text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
            font-weight: bold;
               background: rgba(255, 255, 255, 0.05); /* Едва заметный белый фон */
    backdrop-filter: blur(10px);           /* Размытие того, что за карточкой */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая светлая рамка */
          border-radius: 30px;
          margin-bottom: 15px;
        }

        .hero-content p {
            font-size: 18px;
            color: #1f2937;  
            margin-bottom: 30px;
            font-family: 'FuturaLightC-Italic';
             font-weight: 900;
             background: rgba(255, 255, 255, 0.05); /* Едва заметный белый фон */
    backdrop-filter: blur(10px);           /* Размытие того, что за карточкой */
    border: 1px solid rgba(255, 255, 255, 0.2); /* Тонкая светлая рамка */
            border-radius:20px;
          
        }

        .btn {
            color:#1f2937;   
            font-weight:bold;  
 background: rgba(255, 255, 255, 0.05); /* Едва заметный белый фон */
    backdrop-filter: blur(10px);           /* Размытие того, что за карточкой */
  border: 2px solid #e8cdb3;
   
 
            font-family: "FuturaLightC-Italic";
            margin: 0px 16px;
            cursor: pointer;
            box-shadow: 0px 0px 4px 1px #e0cfbe;
            padding: 12px 60px;
            border-radius: 20px;
            transition: box-shadow .5s;
            text-decoration: none;
        }
        

        .btn:hover {
            background-color:lightgray; 
            transform: translateY(-2px);
        }

        /* СЕТКА: ТРИ В РЯД */
        .catalog,
        .cart-section {
            padding: 80px 0;
            background-color:#1C2A39;
        }
        h1 {
             font-family: 'FuturaLightC-Italic';
             color:#8C4F3E;
        }

        h2 {
             font-family: 'FuturaLightC-Italic';
            text-align: center;
            font-size: 32px;
            margin-bottom: 40px;
            color:#d3d3d3;
    
        }

        .grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 30px;
        }

      
/* Базовая сетка каталога */
#product-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 колонки на ПК */
    gap: 30px;
    margin-top: 40px;
}

/* Стили самой карточки */
.product-card {
    background: #d4c5b3;
    border: 2px solid #dacdc0;
    border-radius: 30px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding-bottom: 20px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px rgba(0,0,0,0.05);
}

/* Контейнер картинки: подстраивается под пропорции карточки */
.product-image-wrapper {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5 !important; /* Вытянутые вертикальные пропорции (как фото моделей). Если фото квадратные, поставьте 1 / 1 */
    overflow: hidden;
    background-color: #9E9E96;    /* Цвет фона совпадает с цветом карточки, поэтому пустых полей не будет видно */
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
}

/* Сама картинка: гарантирует 100% отображение БЕЗ СРЕЗАНИЯ краев */
.product-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important; /* ЖЕСТКИЙ ЗАПРЕТ НА СРЕЗАНИЕ. Картинка ВСЕГДА видна целиком */
    display: block;
}




/* Отступы для текстов и кнопок внутри карточки */
.product-card h3 {
    margin: 15px 15px 5px 15px;
    font-size: 18px;
    color: #5B675A;
   
}

.product-card p {
    margin: 0 15px 15px 15px;
    font-size: 14px;
    color: #5B675A;
    flex-grow: 1; /* Выравнивает кнопки по одной линии, если описания разной длины */
}

.product-card .price {
    margin: 0 15px 15px 15px;
    font-size: 20px;
    font-weight: 700;
    color:  #5B675A;
}

.product-card button {
    display: flex;
    align-items: center;
    padding: 12px;
    background-color: #5B675A;
    color: white;
     border: 2px solid #aea195;
    border-radius: 20px;
    cursor: pointer;
    font-weight: 500;
    transition: background 0.2s;
}

.product-card button:hover {
    background-color: #8C4F3E;
}


        .product-card h3 {
            font-size: 19px;
            margin-bottom: 10px;
            color: #5B675A;
        }

        .product-card p {
            font-size: 20px;
            color: #9ca3af;
            margin-bottom: 20px;
            flex-grow: 1;
            font-family:'FuturaLightC-Italic';
            font-weight:bold;
        }

        .product-price {
            font-size: 22px;
            font-weight: bold;
            color: #ffffff;
            margin-bottom: 15px;
        }

        /* Корзина */
.cart-section {
    background-color: #111827;
    border-top: 1px solid #1f2937;
}

.cart-wrapper {
    display: flex;
    gap: 60px;
    background-color: #1f2937;
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #374151;
    font-family: 'FuturaLightC-Italic';
}

.cart-items {
    flex: 2;
}
/* Контейнер для добавленного товара */
.cart-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #374151;
    color: #ffffff; /* Основной цвет текста товара (белый) */
}

/* Название товара в корзине (если используется тег span или класс) */
.cart-item-title {
    color: #5B675A; /* Светло-серый цвет для названия */
    font-size: 16px;
}
/* Цена конкретного товара в корзине */
.cart-item-price {
    color: #5B675A !important; /* !important заставит цвет примениться в любом случае */
    font-weight: bold;
    margin-right: 15px; 
}

.cart-summary {
    flex: 1;
    background-color: #111827;
    padding: 25px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cart-summary h3 {
    color: #5B675A !important; /* Удалили опечатку внизу и добавили приоритет */
    font-size: 20px;       
    font-weight: 600;      
    margin-bottom: 5px;    
    text-align: center;    
}



.cart-fields {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.cart-fields input {
    width: 100%;
    padding: 12px;
    background-color: #1f2937;
    border: 1px solid #374151;
    border-radius: 20px;
    color: white;
    font-size: 14px;
}

.cart-fields input:focus {
    outline: none;
    border-color: #8C4F3E;
}

.total-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: #e5e7eb; /* ИСПРАВЛЕНО: Текст теперь видно на темном фоне */
}

.cart-item:last-child {
    border-bottom: none;
}

.remove-btn {
    background: none;
    border: none;
    color: #ddca9f; /* ИСПРАВЛЕНО: Удалено лишнее двоеточие */
    cursor: pointer;
    font-size: 14px;
}

.remove-btn:hover {
    text-decoration: underline;
}

.total-price {
    font-size: 28px;
    font-weight: bold;
    color: #cbc4bc; /* ОПТИМИЗИРОВАНО: Дублирующийся пустой селектор удален */
}



    .checkout-btn {
    width: 100%;
    text-align: center;
    background-color: #e4d7ca; /* Цвет кнопки (например, зеленый) */
    color: white;              /* Цвет текста на кнопке */
    padding: 15px;             /* Внутренние отступы, чтобы кнопка была объемной */
    border: none;              /* Убираем стандартную рамку */
    border-radius: 20px;        /* Скругление углов */
    font-size: 16px;           /* Размер шрифта */
    font-weight: bold;         /* Жирный текст */
    cursor: pointer;           /* Курсор-ручка при наведении */
    transition: background 0.3s ease; /* Плавная смена цвета */
}

/* Эффект при наведении мыши на кнопку оформления */
.checkout-btn:hover {
    background-color: #5B675A; /* Чуть более темный зеленый при наведении */
}



.checkout-btn:disabled {
    background-color: #d4c5b3;
    cursor: not-allowed;
    transform: none;
}

.empty-message {
    color: #9ca3af;
    text-align: center;
    padding: 20px 0;
}

footer {
    text-align: center;
    padding: 40px 0;
    border-top: 1px solid #1f2937;
    color: darkgray; /* ИСПРАВЛЕНО: Удален знак # перед названием цвета */
    background-color: #8C4F3E;
}

/* Контейнер теперь имеет автоматическую высоту и подстраивается под картинку */
.product-image-wrapper {
    width: 100% !important;
    height: auto !important; 
    max-height: 450px; /* Защита, чтобы слишком длинные фото не ломали сетку */
    overflow: hidden;
    background-color: #1f2937;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px 12px 0 0;
}

/* Картинка жестко привязана к ширине карточки на 100%, а высота подстраивается автоматически */
.product-img {
    width: 100% !important;
    height: auto !important; /* Убираем 100% высоты, чтобы картинка не растягивалась и не сжималась */
    object-fit: fill !important; /* Принудительно отключаем скрытие краев */
    display: block;
}




/* Легкий эффект приближения при наведении на карточку */
.product-card:hover .product-img {
    transform: scale(1.05);
}

.product-info {
    padding: 15px;
}

/* Адаптивность */
/* Для планшетов (ширина экрана меньше 992px) */
@media (max-width: 992px) {
    #product-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
}

/* Для мобильных телефонов (ширина экрана меньше 768px) */
@media (max-width: 768px) {
    #product-grid {
        display: grid;
        grid-template-columns: 1fr !important;
        gap: 10px;
    }

    .cart-wrapper {
        flex-direction: column !important;
    }
    
    .product-card {
        width: 100% !important;
        box-sizing: border-box;
    }
}

/* Класс ошибки для полей ввода */
.input-error {
    border-color: #ff4d4d !important;
    background-color: #fff5fff5 !important;
    color: #111827 !important; /* ИСПРАВЛЕНО: Текст ошибки теперь темный и читаемый */
    box-shadow: 0 0 5px rgba(255, 77, 77, 0.5) !important;
    transition: all 0.3s ease;
}
/* ===== СТИЛИ ДЛЯ ШАПКИ, ФУТЕРА И БАННЕРА (как в index) ===== */

/* Шапка и её элементы уже определены в инлайн-стилях, но добавим на всякий случай */
.tele {
    color: #d3d3d3;
    text-shadow: -2px -2px 0 #000;
    font-family: "FuturaLightC-Italic";
    cursor: pointer;
    padding: 12px 60px;
    transition: box-shadow .5s;
    text-decoration: none;
}

/* Футер (стеклянный) */
.site-footer {
    width: 100% !important;
    background: rgba(255, 255, 255, 0.03) !important;
    backdrop-filter: blur(10px) !important;
    -webkit-backdrop-filter: blur(10px) !important;
    border-top: 1px solid rgba(255, 255, 255, 0.1) !important;
    padding: 20px 0 !important;
    margin-top: auto !important;
    box-sizing: border-box !important;
}

.footer-container {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    flex-wrap: wrap !important;
    gap: 20px !important;
    box-sizing: border-box !important;
}

.footer-logo-block {
    display: flex !important;
    align-items: center !important;
    gap: 30px !important;
}

.footer-logo-img {
    width: 42px !important;
    height: 42px !important;
    object-fit: contain !important;
    padding: 2px !important;
    background: rgba(91, 66, 32, 0.05) !important;
    border-radius: 8px !important;
}

.footer-copy {
    color: rgb(237, 237, 237) !important;
    font-size: 13px !important;
    font-family: sans-serif !important;
}

.footer-socials-row {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.social-link {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 40px !important;
    height: 40px !important;
    background-color: rgba(255, 255, 255, 0.1) !important;
    border-radius: 50% !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    text-decoration: none !important;
}

.social-link img {
    width: 25px !important;
    height: 25px !important;
    object-fit: contain !important;
    transition: transform 0.3s ease !important;
}

.social-link:hover {
    background-color: #E89E2C !important;
    box-shadow: 0 4px 12px rgba(232, 158, 44, 0.3) !important;
    transform: translateY(-2px) !important;
}

.social-link:hover img {
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .footer-container {
        flex-direction: column !important;
        text-align: center !important;
        gap: 15px !important;
    }
    .footer-logo-block {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .footer-socials-row {
        justify-content: center !important;
        flex-wrap: wrap !important;
    }
}

/* Основной контейнер .main – чтобы футер прижимался к низу */
.main {
    display: flex !important;
    flex-direction: column !important;
    flex: 1 0 auto !important;
    height: auto !important;
    min-height: calc(100vh - 160px) !important;
    padding-top: 110px !important;
    padding-bottom: 50px !important;
    box-sizing: border-box !important;
    position: relative !important;
}

/* Баннер – корректировка для мобильных */
@media (max-width: 768px) {
    .hero {
        height: 50vh !important;
        margin-top: 80px !important;
    }
    .hero-content h1 {
        font-size: 28px !important;
        padding: 10px 20px !important;
    }
    .hero-content p {
        font-size: 16px !important;
        padding: 8px 20px !important;
    }
    .hero-content .btn {
        padding: 10px 30px !important;
        font-size: 14px !important;
    }
}
@media (max-width: 480px) {
    .hero {
        height: 45vh !important;
        margin-top: 80px !important;
    }
    .hero-content h1 {
        font-size: 22px !important;
        padding: 8px 16px !important;
    }
    .hero-content p {
        font-size: 14px !important;
        padding: 6px 16px !important;
        margin-bottom: 20px !important;
    }
    .hero-content .btn {
        padding: 8px 20px !important;
        font-size: 12px !important;
    }
}