/* Общие сбросы стилей */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Unicase:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Cormorant Unicase', Georgia, serif;
    font-size: 17px;
    color: #000;
    background-color: #fff;
}

button,
input,
select,
textarea {
    font-family: inherit;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

a {
    text-decoration: none;
    color: inherit;
}

/* ШАПКА */
.header {
    border-bottom: 1px solid #eaeaea;
    padding: 8px 0;
    position: relative;
    z-index: 1000;
}

.header__wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 25px;
    text-transform: uppercase;
    font-size: 14px;
    min-height: 48px;
    transform: translateY(-2px);
}

.header__nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.header__phone {
    display: inline-flex;
    align-items: center;
    line-height: 1;
    transform: translateY(-1px);
}

.header__menu-toggle {
    display: none;
}

.header__search-toggle {
    display: none;
}

.header__link--active {
    font-weight: 400;
}

.header__logo img {
    width: 54px;
    height: 54px;
    display: block;
}

.header__logo {
    transform: translateX(-20px);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-self: end;
    transform: translateY(-2px);
}

.header__search {
    position: relative;
    display: flex;
    align-items: center;
}

.header__search input {
    border: 1px solid #ccc;
    border-radius: 20px;
    padding: 5px 34px 5px 30px;
    font-size: 14px;
    outline: none;
}

.search-icon {
    position: absolute;
    left: 10px;
    font-size: 14px;
    color: #666;
}

.search-clear {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 20px;
    height: 20px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #777;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.search-clear:hover {
    color: #000;
}

.header__cart {
    position: relative;
    font-size: 20px;
    cursor: pointer;
}

.cart-count {
    position: absolute;
    top: 5px;
    right: 5px;
    background: #000;
    color: #fff;
    font-size: 10px;
    padding: 2px 5px;
    border-radius: 50%;
}

/* HERO БАННЕР */
.hero {
    text-align: center;
    padding: 40px 0;
}

.hero__title {
    font-size: 28px;
    font-weight: 300;
    letter-spacing: 2px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.hero__subtitle {
    font-size: 12px;
    color: #666;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 30px;
}

.hero__banners {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.hero__banner-item {
    background: #e0e0e0;
    height: 200px;
}

/* КАТАЛОГ / СЕТКА ТОВАРОВ */
.catalog {
    padding: 40px 0;
}

.catalog__title {
    text-align: center;
    font-size: 24px;
    font-weight: normal;
    margin-bottom: -100px;
}

.catalog__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px 20px;
}

/* КАРТОЧКА ТОВАРА */
.product-card {
    text-align: center;
}

.product-card__img-link {
    display: block;
    margin-bottom: 15px;
    background-color: #f9f9f9;
}

.product-card__img {
    max-width: 100%;
    height: auto;
    object-fit: cover;
    transition: opacity 180ms ease, transform 180ms ease;
    will-change: opacity, transform;
}

.product-card__img.is-changing,
.product-gallery-slider__image.is-changing {
    opacity: 0;
    transform: scale(0.985);
}

.product-card__brand {
    font-size: 16px;
    font-weight: bold;
    letter-spacing: 1px;
    margin-bottom: 5px;
}

.product-card__name {
    font-size: 14px;
    color: #333;
    margin-bottom: 10px;
    min-height: 40px; /* Чтобы карточки были ровными */
}

.product-card__price {
    font-size: 15px;
    font-weight: bold;
}

/* Стили для пустых заглушек (скелетоны из макета) */
.product-card--skeleton .skeleton-img {
    background: #eee;
    height: 250px;
    margin-bottom: 15px;
}

.product-card--skeleton .skeleton-line {
    background: #eee;
    height: 12px;
    margin: 8px auto;
    width: 80%;
}

.product-card--skeleton .skeleton-line.short {
    width: 40%;
}

/* ФУТЕР */
.footer {
    text-align: center;
    padding: 30px 0;
    border-top: 1px solid #eaeaea;
    margin-top: 5px;
    font-size: 12px;
    color: #666;
}
/* СТИЛИ ДЛЯ СТРАНИЦЫ ТОВАРA (product.php) */
.product-page {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Левая колонка шире правой */
    gap: 50px;
    padding: 20px 20px;
    align-items: start;
}

/* Сетка из 4-х фото слева */
.product-images__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
}

.product-images__item {
    background-color: #f9f9f9;
    aspect-ratio: 3 / 4; /* Портретное соотношение для сумок */
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.product-images__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Колонка информации справа */
.product-info {
    position: sticky; /* Чтобы колонка скроллилась вместе с экраном */
    top: 20px;
}

.product-info__brand {
    font-size: 14px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.product-info__title {
    font-size: 22px;
    font-weight: normal;
    margin: 5px 0 15px 0;
    line-height: 1.3;
}

.product-info__price {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 30px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}

.product-info__block {
    background: #eee;
    padding: 20px;
    margin-bottom: 25px;
}

.product-info__block h3 {
    font-size: 14px;
    letter-spacing: 1px;
    margin-bottom: 10px;
    text-transform: uppercase;
}

.product-info__block p {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
}

/* Черная кнопка «Добавить в корзину» */
.btn-add-to-cart {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 18px;
    font-size: 14px;
    letter-spacing: 1px;
    cursor: pointer;
    font-weight: bold;
    margin-bottom: 25px;
    transition: background 0.2s ease;
}

.btn-add-to-cart:hover {
    background: #333;
}

.product-info__conditions {
    background: #eee;
    padding: 15px;
    font-size: 12px;
}

.product-info__conditions p {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 6px;
}

.product-info__conditions small {
    display: block;
    font-size: 16px;
    line-height: 1.35;
}

/* Дополнительные характеристики на странице товара */
.product-info__additional {
    background: #eee;
    padding: 14px;
    margin-bottom: 14px;
}

.product-info__additional-label {
    font-size: 12px;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.product-specifications {
    background: #fff;
    border-radius: 6px;
    padding: 12px;
}

.product-specifications h3 {
    font-size: 13px;
    margin-bottom: 8px;
}

.product-specifications__row {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 14px;
    padding: 5px 0;
    border-bottom: 1px dotted #ddd;
    font-size: 13px;
    line-height: 1.25;
}

.product-specifications__row:last-child {
    border-bottom: 0;
}

.product-specifications__row span {
    color: #888;
}

.product-specifications__row strong {
    color: #333;
    font-weight: 500;
    text-align: right;
}

/* Адаптивность для мобилок */
@media (max-width: 768px) {
    .product-page {
        grid-template-columns: 1fr; /* На смартфонах всё в одну колонку */
        gap: 30px;
    }
    .hero__banners {
        grid-template-columns: 1fr;
    }
    .catalog__grid {
        grid-template-columns: 1fr;
    }
}
/*
*/
/* СТИЛИ ДЛЯ КОРЗИНЫ (cart.php) */
.cart-page__title {
    text-align: center;
    font-size: 24px;
    letter-spacing: 2px;
    margin: 30px 0;
    text-transform: uppercase;
    transform: translateX(-8px);
}

.cart-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    margin-bottom: 5px;
    align-items: start;
}

.cart-wrapper--empty {
    grid-template-columns: 1fr;
}

/* Карточка товара в корзине (серый скругленный бокс из макета) */
.cart-item {
    display: flex;
    align-items: center;
    background: #e0e0e0; /* Серый цвет как на макете */
    border-radius: 15px; /* Скругление */
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    gap: 20px;
}

.cart-item__img {
    width: 100px;
    height: 100px;
    background: #fff;
    object-fit: cover;
    border-radius: 8px;
}

.cart-item__info {
    flex-grow: 1;
}

.cart-item__brand {
    font-size: 14px;
    font-weight: bold;
    color: #555;
}

.cart-item__name {
    font-size: 16px;
    margin: 4px 0;
}

.cart-item__price {
    font-weight: bold;
    font-size: 16px;
}

.cart-item__remove {
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    color: #666;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* Форма заказа справа */
.cart-checkout {
    background: #f9f9f9;
    border: 1px solid #eee;
    padding: 25px;
}

.cart-checkout h3 {
    font-size: 16px;
    letter-spacing: 1px;
    margin-bottom: 20px;
}

.form-group {
    margin-bottom: 15px;
}

.form-group label {
    display: block;
    font-size: 12px;
    text-transform: uppercase;
    margin-bottom: 5px;
    color: #464646;
}

.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ccc;
    font-size: 14px;
    outline: none;
}

.cart-total {
    display: flex;
    justify-content: space-between;
    font-size: 18px;
    margin: 25px 0 15px 0;
    border-top: 1px solid #ddd;
    padding-top: 15px;
}

.btn-submit-order {
    width: 100%;
    background: #000;
    color: #fff;
    border: none;
    padding: 15px;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    letter-spacing: 1px;
}

.btn-submit-order:hover {
    background: #333;
}

.checkout-note {
    font-size: 11px;
    color: #666;
    margin-top: 10px;
    text-align: center;
}

.cart-empty-text {
    text-align: center;
    color: #888;
    padding: 80px 0;
    font-size: 18px;
}

.cart-wrapper--empty .cart-empty-text {
    width: 100%;
    transform: none;
    text-align: center;
}
/*
*/
/* СТИЛИ ДЛЯ СТРАНИЦЫ «О НАС» (about.php) */
.about-page {
    padding: 40px 20px;
    max-width: 800px; /* Сужаем контент, чтобы текст было удобно читать */
    margin: 0 auto;
}

.about-page__title {
    text-align: center;
    font-size: 32px;
    letter-spacing: 2px;
    margin-bottom: 25px;
    text-transform: uppercase;
    font-weight: 400;
    margin-right: 20px
}

.about-section {
    padding: 20px 0;
}

.about-text-block p {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    margin-bottom: 15px;
    text-align: center;
}

.about-divider {
    border: none;
    border-top: 1px solid #eaeaea;
    margin: 30px 0;
}

.about-section__title {
    text-align: center;
    font-size: 20px;
    letter-spacing: 1.5px;
    margin-bottom: 30px;
    text-transform: uppercase;
    font-weight: 400;
}

/* Сетка шагов заказа */
.about-steps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.step-card {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    display: flex;
    gap: 15px;
    align-items: start;
}

.step-card__num {
    font-size: 20px;
    font-weight: bold;
    color: #000;
    border-bottom: 2px solid #000;
    line-height: 1;
    padding-bottom: 2px;
}

.step-card p {
    font-size: 14px;
    line-height: 1.4;
    color: #444;
}

/* Блок доставки и оплаты */
.about-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
}

.info-box {
    background: #eee; /* Серый аккуратный бокс */
    padding: 25px;
    border-radius: 12px;
}

.info-box h3 {
    font-size: 15px;
    letter-spacing: 1px;
    margin-bottom: 15px;
    text-transform: uppercase;
}

.info-box p {
    font-size: 14px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 12px;
}

.info-box ul {
    padding-left: 20px;
}

.info-box li {
    font-size: 13px;
    line-height: 1.5;
    color: #333;
    margin-bottom: 10px;
}

/* Адаптив под мобилки */
@media (max-width: 600px) {
    .about-steps, .about-info-grid {
        grid-template-columns: 1fr; /* На телефонах всё выстраивается в один ряд */
    }
}




/* Стили для ссылки на товар из корзины */
.cart-item__link {
    color: #000;
    text-decoration: none;
    font-weight: 500;
}

.cart-item__link:hover {
    text-decoration: underline; /* Подчеркивание появится только при наведении мышки */
    color: #333;
}
/* СТИЛИ ДЛЯ ЖИВОГО ПОИСКА */
.header__search {
    position: relative; /* Чтобы подсказки позиционировались относительно поиска */
    z-index: 1001;
}

.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 0 0 8px 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 999;
    display: none;
    max-height: 300px;
    overflow-y: auto;
    margin-top: 5px;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    cursor: pointer;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.suggestion-item:hover {
    background: #f9f9f9;
}

.suggestion-item img {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    background: #eee;
}

.suggestion-item div {
    font-size: 13px;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.suggestion-empty, .search-no-results {
    padding: 15px;
    text-align: center;
    color: #888;
    font-size: 14px;
}
.search-no-results {
    grid-column: 1 / -1; /* Растягиваем текст на всю ширину сетки Grid */
    padding: 50px 0;
}

/* Контейнер для чекбокса */
.custom-checkbox {
    display: inline-block;
    position: relative;
    width: 20px;
    height: 20px;
    cursor: pointer;
    user-select: none;
}

/* Скрываем стандартный браузерный чекбокс */
.custom-checkbox input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

/* Рисуем наш собственный красивый квадрат */
.checkbox-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 1px solid #333; /* Тонкая темная рамка */
    border-radius: 2px;     /* Легкое скругление углов */
    transition: all 0.2s ease;
}

/* Что происходит, когда чекбокс активен (выбран) */
.custom-checkbox input:checked ~ .checkbox-checkmark {
    background-color: #000; /* Становится черным (или выбери другой цвет бренда) */
    border-color: #000;
}

/* Создаем саму внутреннюю галочку (пока скрыта) */
.checkbox-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

/* Показываем галочку при активации */
.custom-checkbox input:checked ~ .checkbox-checkmark:after {
    display: block;
}

/* Стилизуем саму галочку (белая аккуратная птичка внутри) */
.custom-checkbox .checkbox-checkmark:after {
    left: 6px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

/* Эффект при наведении для интерактивности */
.custom-checkbox:hover input ~ .checkbox-checkmark {
    border-color: #000;
    box-shadow: 0 0 4px rgba(0,0,0,0.1);
}
/* Стильная кнопка удаления выбранных товаров */
.btn-delete-selected {
    display: inline-flex;
    align-items: center;
    gap: 8px; /* Расстояние между иконкой корзины и текстом */
    background-color: transparent; /* Убираем уродливый серый фон */
    color: #555; /* Делаем текст мягкого темного цвета */
    border: 1px solid #ccc; /* Тонкая серая рамочка */
    border-radius: 4px; /* Легкое скругление */
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease-in-out;
}

/* Иконка внутри кнопки */
.btn-delete-selected__icon {
    font-size: 14px;
}

/* Эффект при наведении (hover) */
.btn-delete-selected:hover {
    color: #e02b2b; /* Текст становится акцентно-красным */
    border-color: #e02b2b; /* Рамочка тоже краснеет */
    background-color: rgba(224, 43, 43, 0.04); /* Очень легкий полупрозрачный красный фон */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Легкая тень */
}

/* Эффект при нажатии (active) */
.btn-delete-selected:active {
    transform: scale(0.98); /* Кнопка слегка прожимается */
}


.header__search input {
    border: none;                     /* Полностью убираем старую овальную рамку */
    border-radius: 0;                 /* Сбрасываем скругление углов в ноль */
    border-bottom: 1px solid #ccc;    /* Добавляем тонкую серую линию снизу */
    background: transparent;          /* Делаем фон прозрачным */
    padding: 5px 0;                   /* Немного отступа сверху и снизу, чтобы текст не лежал на линии */
    outline: none;                    /* Убираем синее выделение браузера при клике */
    font-size: 14px;
}

/* Эффект: когда пользователь кликает на поиск, линия становится темнее и четче */
.header__search input:focus {
    border-bottom: 1px solid #000;    /* При фокусе линия плавно становится черной */
    transition: border-color 0.2s ease;
}
.header__cart-img {
    width: 22px; 
    height: 22px;
    object-fit: contain;
    vertical-align: middle; /* Чтобы иконка стояла ровно по центру строки */
}
/* Контейнер поиска в шапке — сразу фиксированной удобной ширины */
.header__search {
    position: relative;
    display: flex;
    align-items: center;
    background: #f5f5f5;          /* Легкий серый фон */
    padding: 6px 12px;
    border-radius: 4px;
    width: 280px;                 /* Фиксированная ширина, больше не прыгает */
}

/* Сам инпут внутри контейнера */
.header__search input {
    border: none;
    background: transparent;
    margin-left: 8px;
    width: 100%;
    font-size: 14px;
    outline: none;
}

/* Иконка лупы */
.header__search .icon-search {
    width: 16px;
    height: 16px;
    color: #666;
    flex-shrink: 0;
}

/* ВЫПАДАЮЩИЙ ОСТРОВ РЕЗУЛЬТАТОВ — теперь он широкий и стабильный */
.search-results-dropdown, 
.header__search ul, 
div[style*="position: absolute"] { 
    position: absolute !important;
    top: 100% !important;
    left: 0 !important;
    width: 250px !important;      /* Делаем остров шире самого инпута, чтобы всё влезало */
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 100;
    max-height: 400px;
    overflow-y: auto;
    padding: 8px 0;
    margin-top: 5px;
}

/* Строка с товаром в результатах поиска */
.search-result-item, 
.header__search li {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    gap: 12px;                    /* Расстояние между будущей картинкой-заглушкой и текстом */
    cursor: pointer;
}

.search-result-item:hover,
.header__search li:hover {
    background: #f9f9f9;
}

/* Картинка-заглушка в поиске */
.search-result-item img, 
.header__search li img {
    width: 40px !important;       /* Четкий квадратный размер */
    height: 40px !important;
    object-fit: contain;
    background: #e0e0e0;          
    border-radius: 2px;
    flex-shrink: 0;
}
/* Контейнер слайдера */
.product-card__slider {
    position: relative;
    overflow: hidden;
}

/* Общие стили для кнопок-стрелок */
.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    color: #333;
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background 0.2s, opacity 0.2s;
    z-index: 2;
    border-radius: 4px;
    opacity: 0; /* Прячем стрелки по умолчанию */
}

/* Показываем стрелки при наведении на карточку */
.product-card:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(255, 255, 255, 0.9);
}

/* Позиционируем левую и правую стрелки */
.slider-btn--prev {
    left: 10px;
}

.slider-btn--next {
    right: 10px;
}


/* 
.product-page {
    display: flex;
    gap: 40px;
    padding: 40px 15px;
    align-items: flex-start;
}


.product-gallery {
    display: flex;
    gap: 15px;
    width: 55%;
}

.product-gallery__thumbnails {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 80px;
    flex-shrink: 0;
}

.product-gallery__thumb {
    width: 100%;
    height: 100px;
    border: 1px solid #e0e0e0;
    cursor: pointer;
    overflow: hidden;
    transition: border-color 0.2s;
}

.product-gallery__thumb.active,
.product-gallery__thumb:hover {
    border-color: #000;
}

.product-gallery__thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-gallery__main {
    flex-grow: 1;
    background: #f9f9f9;
}

.product-gallery__main img {
    width: 100%;
    display: block;
    object-fit: cover;
}


.product-info {
    width: 45%;
} */


.product-images-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    width: 100%;
}

.product-images-grid__item {
    background: #f9f9f9;
    border: 1px solid #eee;
    overflow: hidden;
}

.product-images-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Первое фото на всю ширину двух колонок */
.product-images-grid__item--wide {
    grid-column: span 2;
}
.product-images-grid__item {
    height: 300px; /* Увеличьте это значение, если нужно еще больше */
}

.product-images-grid__item--wide {
    height: auto; /* Главное фото растягивается автоматически */
}
.product-images-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    image-rendering: smooth; /* Включает мягкую интерполяцию */
}
.product-images-grid__item img {
    filter: blur(0.2px); /* Легкое сглаживание убирает резкую ряпь */
}
.product-images-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    /* Убирает резкую пиксельную ряпь при уменьшении */
    image-rendering: -webkit-optimize-contrast; 
    filter: contrast(0.98) blur(0.2px); 
}
.product-images-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* <-- ПРОБЛЕМА ЗДЕСЬ */
    display: block;
}
.product-images-grid__item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    
    /* Смягчаем алгоритм отрисовки узоров в браузерах */
    image-rendering: -webkit-optimize-contrast;
    filter: blur(0.2px);
}
img {
  /* Заставляет браузер сглаживать картинку при уменьшении */
  image-rendering: -webkit-optimize-contrast; /* Для некоторых версий */
  image-rendering: high-quality;             /* Современный стандарт */
  object-fit: cover;                         /* Или contain, смотря как сверстано */
}

/* Обновленный блок карточки в корзине */
.cart-item {
    display: flex;
    align-items: center;
    background: #e0e0e0;
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    position: relative;
    gap: 25px; /* Увеличиваем отступ между увеличенным фото и текстом */
}

/* Увеличенное фото товара */
.cart-item__img {
    width: 180px;        /* Увеличили ширину (было 100px) */
    height: 170px;       /* Увеличили высоту (было 100px) */
    background: #fff;
    object-fit: cover;   /* Сохраняет пропорции без искажений */
    border-radius: 12px; /* Чуть увеличили скругление под новый размер */
    flex-shrink: 0;      /* Запрещаем картинке сжиматься, если мало места */
}
footer, .footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #fff; /* Цвет фона, чтобы контент не просвечивал */
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid #eee; /* Тонкая серая линия над футером */
}
/* Статус наличия товара */
.cart-item__stock {
    display: inline-block;
    font-size: 13px;
    font-weight: 500;
    margin: 4px 0 8px 0;
}

.cart-item__stock--in {
    color: #2e7d32; /* Стильный зеленый цвет */
}

.cart-item__stock--out {
    color: #d32f2f; /* Красный цвет, если нет в наличии */
}

/* Счетчик количества (+ / -) */
.cart-item__quantity {
    display: flex;
    align-items: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 4px 8px;
    margin: 0 20px;
    gap: 10px;
}

.quantity-btn {
    background: transparent;
    border: none;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: background 0.2s;
}

.quantity-btn:hover {
    background: #e0e0e0;
}

.quantity-value {
    font-size: 15px;
    font-weight: 600;
    min-width: 20px;
    text-align: center;
}
/* Ширина и позиционирование самого блока подсказок */
.search-suggestions {
    width: 100%;
    max-height: 360px;
    box-sizing: border-box;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 8px 10px;
    border-bottom: 1px solid #f0f0f0;
    color: #333;
    transition: background-color 0.2s ease;
}

.suggestion-item:hover {
    background-color: #f9f9f9;
}

.suggestion-item img {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
}

.suggestion-item__info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
}

.suggestion-item__brand {
    font-size: 12px;
    color: #222;
}

.suggestion-item__name {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 12px;
    line-height: 1.25;
}

/* Подсказки поиска всегда отображаются поверх карточек каталога */
.header .search-suggestions {
    z-index: 1002;
}

/* Увеличенная иконка корзины только в шапке */
.header .header__cart-img {
    width: 64px !important;
    height: 64px !important;
}

.header__nav-links .header__link {
    font-family: 'Cormorant Unicase', Georgia, serif;
    font-weight: 500;
}

/* Мобильная шапка с бургер-меню */
@media (max-width: 768px) {
    .header {
        padding: 6px 0;
    }

    .header__wrapper {
        grid-template-columns: 1fr auto 1fr;
        gap: 8px;
    }

    .header__nav {
        position: relative;
        min-height: 44px;
        transform: none;
        justify-self: start;
    }

    .header__menu-toggle {
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 5px;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 1px solid #e0e0e0;
        border-radius: 4px;
        background: #fff;
        cursor: pointer;
    }

    .header__menu-toggle span {
        display: block;
        width: 18px;
        height: 2px;
        background: #111;
    }

    .header__nav-links {
        display: none;
        position: absolute;
        top: calc(100% + 7px);
        left: 0;
        min-width: 150px;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 6px;
        background: #fff;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
        z-index: 1003;
    }

    .header__nav.is-open .header__nav-links {
        display: flex;
    }

    .header__nav-links .header__link {
        padding: 11px 12px;
        font-size: 14px;
    }

    .header__nav-links .header__phone {
        display: none;
    }

    .header__logo {
        justify-self: center;
        transform: translate(-12px, 0px);
    }

    .header__logo img {
        width: 42px;
        height: 42px;
    }

    .header__actions {
        gap: 8px;
        transform: none;
    }

    .header__search {
        width: 150px;
        box-sizing: border-box;
        padding: 6px 8px;
    }

    .header__search input {
        min-width: 0;
        box-sizing: border-box;
        margin-left: 6px;
        padding: 5px 25px 5px 0;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }

    .header__search {
        width: 115px;
    }
}

/* Карточка товара в корзине на телефоне */
@media (max-width: 768px) {
    .cart-wrapper {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .cart-item {
        display: grid;
        grid-template-columns: 28px 105px minmax(0, 1fr);
        grid-template-areas:
            "check image info"
            "check quantity remove";
        align-items: center;
        gap: 10px;
        padding: 12px;
        border-radius: 12px;
    }

    .cart-item__checkbox-wrapper {
        grid-area: check;
        justify-self: center;
        align-self: center;
    }

    .cart-item__img {
        grid-area: image;
        width: 105px;
        height: 125px;
        border-radius: 10px;
    }

    .cart-item__info {
        grid-area: info;
        min-width: 0;
    }

    .cart-item__brand {
        font-size: 13px;
    }

    .cart-item__name {
        margin: 3px 0;
        font-size: 14px;
        line-height: 1.3;
        overflow-wrap: anywhere;
    }

    .cart-item__stock {
        margin: 3px 0 5px;
        font-size: 12px;
    }

    .cart-item__price {
        font-size: 15px;
    }

    .cart-item__quantity {
        grid-area: quantity;
        justify-self: start;
        margin: 0;
        padding: 2px 5px;
        gap: 4px;
    }

    .cart-item__remove {
        position: static;
        grid-area: remove;
        justify-self: end;
        align-self: center;
    }

    #cart-actions-bar {
        margin-left: 0 !important;
        justify-content: center !important;
    }
}

/* Порядок элементов мобильной шапки: поиск — логотип — меню и корзина */
@media (max-width: 768px) {
    .header__wrapper {
        position: relative;
        grid-template-columns: 1fr auto 1fr;
    }

    .header__actions {
        display: contents;
    }

    .header__search {
        grid-column: 1;
        grid-row: 1;
        justify-self: start;
    }

    .header__logo {
        grid-column: 2;
        grid-row: 1;
    }

    .header__cart {
        grid-column: 3;
        grid-row: 1;
        justify-self: end;
    }

    .header__nav {
        position: absolute;
        top: 50%;
        right: 58px;
        z-index: 1004;
        transform: translateY(-50%);
    }

    .header__nav-links {
        right: 0;
        left: auto;
    }

    .header__search {
        width: 36px;
        height: 36px;
        padding: 0;
        background: transparent;
    }

    .header__search-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        padding: 0;
        border: 0;
        background: transparent;
        cursor: pointer;
    }

    .header__search-toggle img {
        width: 48px;
        height: 52px;
        object-fit: contain;
    }

    .header__search > input {
        display: none;
    }

    .header__search.is-open {
        position: absolute;
        top: calc(100% + 6px);
        left: 0;
        width: 377px;
        height: auto;
        padding: 7px 10px;
        background: #f5f5f5;
        border: 1px solid #e0e0e0;
        border-radius: 6px;
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
        z-index: 1005;
    }

    .header__search.is-open .header__search-toggle {
        display: flex;
        position: absolute;
        bottom: calc(100% + 6px);
        left: 0;
        z-index: 1006;
        transform: translateY(-8px);
    }

    .header__search.is-open > input {
        display: block;
        width: auto;
        flex: 1;
        margin-left: 6px;
        padding: 6px 30px 6px 2px;
        font-size: 14px;
    }

    .header__search.is-open .search-suggestions {
        width: 100%;
    }
}

/* Оригинальная резкость фотографий: без искусственного размытия */
img {
    image-rendering: auto;
}

.product-images-grid__item img {
    filter: none;
    image-rendering: auto;
}

/* Слайдер фотографий на странице товара */
.product-gallery-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #f7f7f7;
}

.product-gallery-slider--mobile {
    display: none;
}

.product-gallery-slider__image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    transition: opacity 180ms ease, transform 180ms ease;
    will-change: opacity, transform;
}

@media (prefers-reduced-motion: reduce) {
    .product-card__img,
    .product-gallery-slider__image {
        transition: none;
    }
}

.product-gallery-slider__button {
    position: absolute;
    top: 50%;
    z-index: 1;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    color: #111;
    font-size: 34px;
    line-height: 36px;
    cursor: pointer;
    transform: translateY(-50%);
}

.product-gallery-slider__button--prev {
    left: 14px;
}

.product-gallery-slider__button--next {
    right: 14px;
}

.product-gallery-slider__button:hover {
    background: #fff;
}

.product-gallery-slider__dots {
    position: absolute;
    bottom: 14px;
    left: 50%;
    display: flex;
    gap: 7px;
    padding: 7px 9px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.8);
    transform: translateX(-50%);
}

.product-gallery-slider__dot {
    width: 8px;
    height: 8px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #bbb;
    cursor: pointer;
}

.product-gallery-slider__dot.is-active {
    background: #111;
}

/* На странице товара подвал не перекрывает нижние условия */
.product-page + .footer {
    position: relative;
    bottom: auto;
    left: auto;
    width: auto;
}

/* Название бренда и типографика товаров */
.header__logo {
    display: flex;
    align-items: center;
    gap: 10px;
}

.header__logo a {
    display: flex;
}

.header__brand-name {
    color: #1f1f1f;
    font-family: 'Cormorant Unicase', Georgia, serif;
    font-size: 27px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.cart-page__title {
    font-family: 'Cormorant Unicase', Georgia, serif;
    font-weight: 500;
}

.product-card__brand,
.product-card__name,
.product-info__brand,
.product-info__title,
.cart-item__brand,
.cart-item__name {
    font-family: 'Cormorant Unicase', Georgia, serif;
}

.product-card__brand,
.product-info__brand,
.cart-item__brand {
    font-weight: 700;
}

.product-card__brand {
    font-size: 18px;
}

.product-card__name {
    font-size: 16px;
}

.product-info__brand {
    font-size: 16px;
}

.product-info__title {
    font-size: 24px;
}

.cart-item__brand {
    font-size: 16px;
}

.cart-item__name {
    font-size: 18px;
}

/* Увеличенные читаемые размеры текста */
.header__nav,
.header__search input {
    font-size: 16px;
}

.product-card__brand {
    font-size: 20px;
}

.product-card__name {
    font-size: 18px;
}

.product-card__price {
    font-size: 17px;
}

.product-info__brand {
    font-size: 18px;
}

.product-info__title {
    font-size: 26px;
}

.product-info__price {
    font-size: 22px;
}

.product-info__block p,
.product-specifications__row,
.cart-item__stock {
    font-size: 16px;
}

.cart-item__brand {
    font-size: 18px;
}

.cart-item__name {
    font-size: 20px;
}

.cart-item__price,
.cart-empty-text {
    font-size: 22px;
}

.cart-page__title,
.about-page__title {
    font-size: 28px;
}

#cart-actions-bar {
    margin-left: 0 !important;
    justify-content: flex-end !important;
}

/* Увеличенный текст на странице «О бренде» */
.about-page__title {
    font-size: 34px;
}

.about-text-block p {
    font-size: 20px;
}

.about-section__title {
    font-size: 26px;
}

.step-card__num {
    font-size: 24px;
}

.step-card p {
    font-size: 18px;
}

.info-box h3 {
    font-size: 19px;
}

.info-box p {
    font-size: 18px;
}

.info-box li {
    font-size: 17px;
}

.form-group label,
.form-group input,
.form-group select,
.form-group textarea,
.btn-add-to-cart,
.btn-submit-order {
    font-size: 16px;
}

@media (max-width: 768px) {
    .header__logo {
        gap: 6px;
    }

    .header__brand-name {
        font-size: 19px;
    }
}

@media (max-width: 768px) {
    .product-images-grid--desktop {
        display: none;
    }

    .product-gallery-slider--mobile {
        display: block;
    }
}



/* Поднимаем картинки в самый верх карточки */
.product-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start; /* Прижимаем всё содержимое к верху */
}

.product-card__slider {
    margin-top: 0;
    margin-bottom: 12px; /* Небольшой отступ от картинки до бренда */
}

.product-card__img-link {
    display: block;
    line-height: 0; /* Убирает лишний отступ снизу у ссылки-картинки */
}

.product-card__img {
    display: block;
    width: 100%;
    object-position: top center; /* Если картинка обрезается — фокусируем её по верхнему краю */
}




/* Стили для точек под картинкой */
.product-card__dots {
    display: flex;
    justify-content: center; /* Центрируем точки по горизонтали */
    gap: 6px;
    margin-top: 10px;        /* Отступ сверху от картинки до точек */
    margin-bottom: 10px;     /* Отступ снизу от точек до бренда */
}

/* Цвет точек, чтобы они были хорошо видны на белом фоне */
.product-card__dot {
    width: 8px;              /* Сделаем их чуть-чуть крупнее и заметнее */
    height: 8px;
    background-color: #cccccc; /* Серый цвет для неактивных точек */
    border-radius: 50%;
    transition: all 0.2s ease;
}

.product-card__dot.active {
    background-color: #000000; /* Черный цвет для активной точки */
    transform: scale(1.1);
}

/* Уведомление о добавлении товара в корзину */
.cart-toast {
    position: fixed;
    top: 88px;
    right: 24px;
    z-index: 3000;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: min(350px, calc(100vw - 32px));
    padding: 15px 16px;
    color: #201c17;
    background: #fff;
    border: 1px solid #ded8cf;
    border-left: 3px solid #9c7743;
    box-shadow: 0 10px 28px rgba(42, 30, 16, 0.18);
    transform: translateX(calc(100% + 32px));
    opacity: 0;
    pointer-events: none;
    transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.35s ease;
}

.cart-toast.is-visible {
    transform: translateX(0);
    opacity: 1;
    pointer-events: auto;
}

.cart-toast__icon {
    width: 35px;
    height: 35px;
    object-fit: contain;
    flex: 0 0 auto;
}

.cart-toast__content {
    min-width: 0;
    padding-right: 8px;
}

.cart-toast__content strong {
    display: block;
    font-size: 17px;
    letter-spacing: 0.03em;
}

.cart-toast__content p {
    margin: 3px 0 6px;
    font-size: 16px;
}

.cart-toast__content a {
    color: #7b5a2c;
    font-size: 15px;
    text-decoration: underline;
}

.cart-toast__close {
    width: 24px;
    height: 24px;
    margin: -3px -5px 0 0;
    padding: 0;
    color: #6e6255;
    background: transparent;
    border: 0;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

@media (max-width: 768px) {
    .cart-toast {
        top: 76px;
        right: 12px;
    }
}

/* Согласие на использование данных */
.cookie-consent {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 4000;
    display: flex;
    align-items: center;
    gap: 22px;
    max-width: 630px;
    padding: 18px 20px;
    color: #241f19;
    background: #fff;
    border: 1px solid #ded8cf;
    border-top: 3px solid #9c7743;
    box-shadow: 0 12px 32px rgba(42, 30, 16, 0.2);
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
    transition: opacity 0.42s ease, transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
}

.cookie-consent.is-visible {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.cookie-consent.is-hidden {
    opacity: 0;
    transform: translateY(16px);
    pointer-events: none;
}

.cookie-consent__text strong {
    font-size: 20px;
}

.cookie-consent__text p {
    max-width: 355px;
    margin: 4px 0 0;
    font-size: 16px;
    line-height: 1.3;
}

.cookie-consent__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.cookie-consent button {
    min-height: 38px;
    padding: 8px 12px;
    border: 1px solid #b9aa96;
    background: #fff;
    color: #473522;
    font-size: 15px;
    cursor: pointer;
}

.cookie-consent__accept {
    color: #fff !important;
    background: #34281e !important;
    border-color: #34281e !important;
}

.checkout-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin: 16px 0;
    color: #4e4841;
    font-size: 15px;
    line-height: 1.3;
    cursor: pointer;
}

.checkout-consent input {
    width: 16px;
    height: 16px;
    margin: 2px 0 0;
    accent-color: #34281e;
    flex: 0 0 auto;
}

/* Почтовые адреса должны легко читаться, без декоративного шрифта. */
a[href^="mailto:"] {
    color: #151515 !important;
    font-family: Arial, Helvetica, sans-serif !important;
    font-size: 17px !important;
    font-weight: 600 !important;
    letter-spacing: 0 !important;
    overflow-wrap: anywhere;
}

@media (max-width: 768px) {
    .cookie-consent {
        right: 12px;
        bottom: 12px;
        left: 12px;
        display: block;
        padding: 16px;
    }

    .cookie-consent__actions {
        justify-content: flex-start;
        margin-top: 13px;
    }

    a[href^="mailto:"] {
        font-size: 15px !important;
    }
}
