/* Прижатие футера к низу */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1 0 auto; /* растягивается, занимая всё доступное место */
}

.footer {
    flex-shrink: 0; /* футер не сжимается */
}

/* ========== ОБЩИЕ СТИЛИ ========== */
:root {
    --primary: #dd6b20;
    --primary-dark: #c15e1c;
    --secondary: #cf3033;
    --text-dark: #27241d;
    --text-light: #504a40;
    --bg-light: #faf9f7;
    --white: #ffffff;
    --gray: #e8e6e1;
    --shadow: 0 10px 30px rgba(0,0,0,0.05);
    --transition: all 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--text-light);
    background: var(--bg-light);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
    box-sizing: border-box;
}

/* ========== ШАПКА ========== */
.header {
    background: var(--white);
    box-shadow: 0 2px 10px rgba(0,0,0,0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
    letter-spacing: 1px;
}

.logo i {
    color: var(--primary);
    margin-right: 8px;
}

.nav__list {
    display: flex;
    list-style: none;
    gap: 30px;
}

.nav__list a {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
    position: relative;
}

.nav__list a:hover {
    color: var(--primary);
}

.header__icons a {
    color: var(--text-light);
    margin-left: 20px;
    font-size: 20px;
    transition: var(--transition);
}

.header__icons a:hover {
    color: var(--primary);
}

/* ========== HERO ========== */
.hero {
    padding: 100px 0;
    background: linear-gradient(rgba(11,12,16,0.8), rgba(11,12,16,0.8)),
                url('https://images.unsplash.com/photo-1467810563316-b5476525c0f9?ixlib=rb-4.0.3&auto=format&fit=crop&w=1350&q=80') center/cover no-repeat;
    text-align: center;
    color: white;
}

.hero__title {
    font-size: 56px;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 0 20px rgba(102,252,241,0.5);
}

.hero__subtitle {
    font-size: 20px;
    max-width: 600px;
    margin: 0 auto;
}

/* ========== ЗАГОЛОВКИ СЕКЦИЙ ========== */
.section-title {
    font-size: 36px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 60px 0 40px;
    text-align: center;
    position: relative;
}

.section-title::after {
    content: '';
    display: block;
    width: 80px;
    height: 4px;
    background: var(--primary);
    margin: 15px auto 0;
    border-radius: 2px;
}

/* ========== ФИЛЬТРЫ ========== */
.filters {
    background: var(--white);
    padding: 20px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
}

.filters__row {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    align-items: flex-end;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.filter-group label {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.filter-group select,
.filter-group input[type="checkbox"] {
    padding: 8px 12px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    background: var(--white);
    font-family: inherit;
}

.filter-group input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-right: 5px;
    vertical-align: middle;
}

.btn--filter {
    background: var(--primary);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.btn--filter:hover {
    background: var(--primary-dark);
}

.btn--reset {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--gray);
    padding: 10px 20px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
    display: inline-block;
}

.btn--reset:hover {
    background: var(--gray);
}

/* ========== СЕТКА ТОВАРОВ ========== */
.products__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

/* Карточка товара */
.product-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    position: relative;
    border: 1px solid var(--gray);
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 30px rgba(0,0,0,0.1);
    border-color: var(--primary);
}

.product-card__sale {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--secondary);
    color: var(--white);
    padding: 5px 15px;
    border-radius: 25px;
    font-weight: 700;
    font-size: 14px;
    z-index: 2;
}

.product-card__image {
    height: 200px;
    overflow: hidden;
    background: white;
    /*background-color: white;*/
    display: flex;
    align-items: center;
    justify-content: center;
}

.product-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: var(--transition);
}

.product-card:hover .product-card__image img {
    transform: scale(1.05);
}

.product-card__info {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.product-card__title {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
}

.product-card__category {
    font-size: 14px;
    color: var(--primary);
    margin-bottom: 10px;
}

.product-card__category i {
    margin-right: 5px;
}

.product-card__description {
    font-size: 14px;
    margin-bottom: 15px;
    flex-grow: 1;
    color: var(--text-light);
}

.product-card__price {
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.price.old {
    font-size: 16px;
    color: #8a8f99;
    text-decoration: line-through;
}

.price.sale {
    color: var(--secondary);
}

.btn {
    display: inline-block;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    text-decoration: none;
    text-align: center;
    transition: var(--transition);
    border: none;
    cursor: pointer;
}

.btn--primary {
    background: var(--primary);
    color: var(--white);
}

.btn--primary:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.btn--go-main {
    background: var(--primary);
    color: var(--white);
}

.btn--go-main:hover {
    background: var(--primary-dark);
    transform: scale(1.05);
}

.no-products {
    grid-column: 1 / -1;
    text-align: center;
    padding: 50px;
}

.product-card__actions {
    display: flex;
    gap: 10px;
    margin-top: 15px;
}

.product-card__actions .btn {
    flex: 1;              /* кнопки занимают равную ширину */
    padding: 10px 5px;    /* немного уменьшаем горизонтальные отступы */
    font-size: 14px;      /* чуть меньше шрифт */
}

.product-card__actions .btn--outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.product-card__actions .btn--outline:hover {
    background: var(--primary);
    color: white;
}

/* Пагинация */
.pagination {
    margin-top: 40px;
    margin-bottom: 40px;  /* отступ снизу */
    text-align: center;
}

.pagination__info {
    margin-bottom: 15px;
    font-size: 14px;
    color: var(--text-light);
}

.pagination__pages {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.page-link {
    display: inline-block;
    padding: 8px 12px;
    background: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    font-size: 14px;
    min-width: 36px;
    text-align: center;
}

.page-link:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.page-link.current {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
    font-weight: 600;
    cursor: default;
}

/* ========== ФУТЕР ========== */
.footer {
    background: #000;
    color: #aaa;
    padding: 30px 0;
    border-top: 1px solid rgba(102,252,241,0.1);
}

.footer__inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
}

.footer__social a {
    color: #aaa;
    font-size: 24px;
    margin-left: 15px;
    transition: var(--transition);
}

.footer__social a:hover {
    color: var(--primary);
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .hero__title {
        font-size: 36px;
    }
    .header__inner {
        flex-direction: column;
        height: auto;
        padding: 15px 0;
    }
    .nav__list {
        flex-wrap: wrap;
        justify-content: center;
        margin: 10px 0;
    }

    .header__icons {
    display: flex;
    align-items: center;
    flex-direction: row;      /* гарантируем горизонтальное расположение */
    gap: 15px;                 /* отступ между поиском и корзиной */
    }

    .products__grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 20px;
    }
    .filters__row {
        flex-direction: column;
        align-items: stretch;
    }
    .filter-group select,
    .filter-group input[type="checkbox"] {
        width: 100%;
    }
}

/* ========== СТРАНИЦА О КОМПАНИИ (улучшенная версия) ========== */
.about-section {
    padding: 80px 0 100px;  /* увеличен отступ сверху и снизу */
    background: linear-gradient(180deg, var(--bg-light) 0%, #fff 100%);
}

.about-content {
    background: var(--white);
    border-radius: 30px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.08);
    padding: 50px;
    margin: 0 auto;
    max-width: 1000px;
    position: relative;
    border: 1px solid rgba(221, 107, 32, 0.1);
}

.about-content p {
    margin-bottom: 25px;
    line-height: 1.9;
    font-size: 16px;
    color: var(--text-light);
    font-weight: 400;
}

.about-content p:first-of-type {
    margin-top: 0;
}

.about-content p:last-of-type {
    margin-bottom: 0;
}

/* Выделение важных фактов */
.about-highlight {
    background: linear-gradient(145deg, #fff6ee, #fff);
    border-left: 5px solid var(--primary);
    padding: 25px 30px;
    border-radius: 12px;
    margin: 30px 0;
    font-weight: 500;
    color: var(--text-dark);
    box-shadow: 0 5px 15px rgba(221, 107, 32, 0.1);
}

.about-subtitle {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin: 40px 0 25px;
    position: relative;
    padding-bottom: 15px;
}

.about-subtitle::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

/* Список наград в две колонки на больших экранах */
.about-list {
    list-style: none;
    margin: 0 0 30px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px 30px;
}

.about-list li {
    margin-bottom: 0;
    padding-left: 30px;
    position: relative;
    line-height: 1.7;
    font-size: 15px;
    color: var(--text-light);
    break-inside: avoid;
}

.about-list li::before {
    content: "🏆";  /* можно заменить на другую иконку */
    color: var(--primary);
    font-size: 16px;
    position: absolute;
    left: 0;
    top: 0;
    opacity: 0.8;
}

/* Для мобильных сворачиваем в одну колонку */
@media (max-width: 768px) {
    .about-section {
        padding: 60px 0 80px;
    }

    .about-content {
        padding: 30px 20px;
    }

    .about-list {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .about-subtitle {
        font-size: 24px;
    }

    .about-highlight {
        padding: 20px;
    }
}

/* Декоративный элемент (можно добавить в HTML, но пока просто фон) */
.about-content::before {
    content: '';
    position: absolute;
    top: -10px;
    right: -10px;
    width: 150px;
    height: 150px;
    background: radial-gradient(circle, rgba(221,107,32,0.03) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    pointer-events: none;
}
/* ========== ГАЛЕРЕЯ НА СТРАНИЦЕ О КОМПАНИИ ========== */
.about-gallery {
    margin-top: 60px;
    text-align: center;
}

.gallery-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.gallery-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.gallery-grid {
    max-width: 1400px;
    margin: 0 auto;
    position: relative; /* для Masonry */
}

/* Карточка галереи */
.gallery-item {
    display: block;
    position: relative;
    width: calc(33.333% - 10px);
    margin-bottom: 10px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: box-shadow 0.3s ease;
    text-decoration: none;
    background: var(--white);
    border: 1px solid var(--gray);
    box-sizing: border-box; /* важно */
}

/* Изображение */
.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.5s ease;
}

/* Затемнение при наведении */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: 1;
}

/* Иконка лупы */
.gallery-item::before {
    content: '\f002';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0.8);
    color: white;
    font-size: 24px;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2;
    text-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

/* Hover-эффекты */
.gallery-item:hover {
    box-shadow: 0 20px 30px rgba(0,0,0,0.15);
    border-color: var(--primary);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-item:hover::before {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}

/* Скрываем подпись */
.gallery-caption {
    display: none;
}

/* Адаптивность */
@media (max-width: 600px) {
    .gallery-item {
        width: 100%;
    }
}

/* ========== СТРАНИЦА КОНТАКТЫ ========== */
.contacts-section {
    padding: 80px 0;
}

.contacts-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    background: var(--white);
    border-radius: 30px;
    box-shadow: var(--shadow);
    padding: 50px;
}

.contacts-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 30px;
    position: relative;
    padding-bottom: 15px;
}

.contacts-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 70px;
    height: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.contacts-list {
    list-style: none;
    margin: 0;
}

.contacts-list li {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 25px;
    line-height: 1.5;
}

.contacts-list li i {
    font-size: 24px;
    color: var(--primary);
    min-width: 30px;
    text-align: center;
    margin-top: 3px;
}

.contacts-list li strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 5px;
}

.contacts-list li p {
    margin: 0;
    color: var(--text-light);
}

.contacts-list a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.contacts-list a:hover {
    color: var(--primary);
}

/* Форма обратной связи */
.feedback-form .form-group {
    margin-bottom: 20px;
}

.feedback-form input,
.feedback-form textarea {
    width: 100%;
    padding: 15px 20px;
    border: 1px solid var(--gray);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: var(--transition);
    background: var(--bg-light);
}

.feedback-form input:focus,
.feedback-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(221, 107, 32, 0.1);
}

.feedback-form .btn {
    width: 100%;
    padding: 15px;
    font-size: 16px;
}

/* Карта */
.map-section {
    margin-top: 40px;
}

.map-container {
    width: 100%;
    height: 600px;
    overflow: hidden;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
}

/* Адаптивность */
@media (max-width: 768px) {
    .contacts-grid {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 30px;
    }
    .contacts-title {
        font-size: 24px;
    }
    .map-container {
        height: 400px;
    }
}

/* Форма поиска в шапке */
.search-form {
    display: flex;
    align-items: center;
    background: var(--bg-light);
    border-radius: 30px;
    border: 1px solid var(--gray);
    overflow: hidden;
    transition: var(--transition);
    margin-right: 15px;
}

.search-form:hover,
.search-form:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(221, 107, 32, 0.1);
}

.search-form input {
    border: none;
    background: transparent;
    padding: 8px 15px;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    width: 180px;
    outline: none;
    color: var(--text-dark);
}

.search-form input::placeholder {
    color: var(--text-light);
    opacity: 0.7;
}

.search-form button {
    background: transparent;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    color: var(--text-light);
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.search-form button:hover {
    color: var(--primary);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .search-form input {
        width: 120px;
    }
}

@media (max-width: 480px) {
    .search-form {
        margin-right: 5px;
    }
    .search-form input {
        width: 80px;
    }
}

.filter-group--buttons {
    flex-direction: row;        /* располагаем горизонтально */
    align-items: center;        /* выравниваем по центру F/
    gap: 10px;                  /* отступ между кнопками */
}

/* ========== СТРАНИЦА ТОВАРА ========== */
.breadcrumbs {
    padding: 20px 0;
    font-size: 14px;
    color: var(--text-light);
    background: var(--bg-light);
    border-bottom: 1px solid var(--gray);
}

.breadcrumbs a {
    color: var(--primary);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs span {
    color: var(--text-dark);
    font-weight: 500;
}

.product-detail {
    padding: 60px 0;
}

.product-detail__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
}

.product-detail__media {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.product-detail__image {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    /* убираем height, background, border */
}

.product-detail__image img {
    max-width: 100%;
    height: auto;                 /* сохраняем пропорции */
    border: 1px solid var(--gray);
    border-radius: 20px;
    box-sizing: border-box;       /* чтобы рамка не вылезала за пределы */
    display: block;
}

.product-detail__sale {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--secondary);
    color: var(--white);
    padding: 8px 20px;
    border-radius: 30px;
    font-weight: 700;
    font-size: 16px;
    z-index: 2;
}

/* Видео */
.product-detail__video h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
    border-radius: 16px;
    box-shadow: var(--shadow);
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Информация о товаре */
.product-detail__info {
    background: var(--white);
    border-radius: 20px;
    padding: 40px;
    box-shadow: var(--shadow);
    border: 1px solid var(--gray);
}

.product-detail__title {
    font-size: 32px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 15px;
    line-height: 1.3;
    word-break: break-word;
}

.product-detail__category {
    font-size: 16px;
    color: var(--primary);
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.product-detail__price-block {
    margin-bottom: 30px;
    display: flex;
    align-items: baseline;
    gap: 15px;
    flex-wrap: wrap;
}

.product-detail__price {
    font-size: 36px;
    font-weight: 700;
    color: var(--text-dark);
}

.product-detail__price--old {
    font-size: 24px;
    color: #8a8f99;
    text-decoration: line-through;
}

.product-detail__price--sale {
    color: var(--secondary);
}

.product-detail__description h3 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 15px;
}

.product-detail__description p {
    line-height: 1.8;
    color: var(--text-light);
    white-space: pre-line;
}

.product-detail__actions {
    margin-top: 40px;
}

.btn--large {
    padding: 15px 40px;
    font-size: 18px;
    width: 100%;
    max-width: 300px;
}

/* Адаптивность */
@media (max-width: 768px) {
    .product-detail__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .product-detail__image {
        height: 300px;
    }
    .product-detail__info {
        padding: 25px;
    }
    .product-detail__title {
        font-size: 26px;
    }
    .product-detail__price {
        font-size: 28px;
    }
    .btn--large {
        max-width: 100%;
    }
}

/* Корректировка шапки: поиск и корзина в ряд */
.header__icons {
    display: flex;
    align-items: center;
    flex-direction: row;
    gap: 15px;
}

.search-form {
    width: auto;
    min-width: 200px;
    flex-shrink: 0;
}

.cart-link {
    display: flex;
    align-items: center;
    color: var(--text-light);
    font-size: 20px;
    position: relative;
}

/* ========== СТРАНИЦА КОРЗИНЫ ========== */
.page-hero {
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: white;
    padding: 60px 0;
    text-align: center;
    margin-bottom: 40px;
}

.page-hero__title {
    font-size: 48px;
    font-weight: 700;
    margin: 0 0 10px;
}

.page-hero__subtitle {
    font-size: 20px;
    opacity: 0.9;
}

.cart-section {
    padding: 0 0 80px;
}

/* Пустая корзина */
.cart-empty {
    text-align: center;
    background: var(--white);
    border-radius: 20px;
    padding: 60px 20px;
    box-shadow: var(--shadow);
    max-width: 600px;
    margin: 0 auto;
}

.cart-empty__icon {
    font-size: 80px;
    color: var(--gray);
    margin-bottom: 20px;
}

.cart-empty__title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 10px;
}

.cart-empty__text {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Таблица корзины */
.cart-content {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
}

.cart-table__header {
    display: grid;
    grid-template-columns: 3fr 1fr 1.5fr 1fr 0.5fr;
    padding: 15px 0;
    border-bottom: 2px solid var(--gray);
    font-weight: 600;
    color: var(--text-dark);
    text-transform: uppercase;
    font-size: 14px;
    letter-spacing: 0.5px;
}

.cart-table__row {
    display: grid;
    grid-template-columns: 3fr 1fr 1.5fr 1fr 0.5fr;
    padding: 20px 0;
    border-bottom: 1px solid var(--gray);
    align-items: center;
}

.cart-table__col {
    padding: 0 10px;
}

.cart-table__col--product {
    padding-left: 0;
}

.cart-product {
    display: flex;
    align-items: center;
    gap: 15px;
}

.cart-product__image {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray);
}

.cart-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-product__info {
    flex: 1;
}

.cart-product__title {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    margin-bottom: 5px;
}

.cart-product__title:hover {
    color: var(--primary);
}

.cart-product__category {
    font-size: 13px;
    color: var(--text-light);
}

/* Цены в корзине */
.cart-table__col--price .price {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-dark);
}

.cart-table__col--price .price.old {
    font-size: 14px;
    color: #8a8f99;
    text-decoration: line-through;
    display: block;
}

.cart-table__col--price .price.sale {
    color: var(--secondary);
}

.cart-link {
    position: relative;
    display: inline-block;
    color: var(--text-light);
    font-size: 20px;
}

.cart__count {
    position: absolute;
    top: -8px;
    right: -15px;        /* отрегулируйте по вкусу */
    background: var(--primary);
    color: white;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 6px;
    border-radius: 50%;
    min-width: 18px;
    text-align: center;
    line-height: 1;
}

/* Контроль количества */
.quantity-control {
    display: flex;
    align-items: center;
    max-width: 120px;
}

.quantity-btn {
    width: 30px;
    height: 30px;
    border: 1px solid var(--gray);
    background: var(--white);
    color: var(--text-dark);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.quantity-btn:first-child {
    border-radius: 8px 0 0 8px;
}

.quantity-btn:last-child {
    border-radius: 0 8px 8px 0;
}

.quantity-btn:hover {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.quantity-input {
    width: 50px;
    height: 30px;
    border: 1px solid var(--gray);
    border-left: none;
    border-right: none;
    text-align: center;
    font-family: inherit;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    -moz-appearance: textfield;
}

.quantity-input::-webkit-outer-spin-button,
.quantity-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Итоговая цена */
.cart-table__col--total .total-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-dark);
}

/* Кнопка удаления */
.remove-btn {
    color: #999;
    font-size: 18px;
    transition: var(--transition);
}

.remove-btn:hover {
    color: var(--secondary);
}

/* Блок итогов */
.cart-totals {
    margin-top: 40px;
    display: flex;
    justify-content: flex-end;
}

.cart-totals__inner {
    width: 100%;
    max-width: 400px;
    background: var(--bg-light);
    border-radius: 16px;
    padding: 25px;
}

.cart-totals__title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.cart-totals__row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--gray);
    font-size: 16px;
    color: var(--text-light);
}

.cart-totals__row--total {
    border-bottom: none;
    margin-top: 10px;
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
}

.total-amount {
    color: var(--primary);
    font-size: 22px;
}

.cart-totals__actions {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.cart-totals__actions .btn {
    width: 100%;
    text-align: center;
}

/* Адаптивность */
@media (max-width: 768px) {
    .page-hero__title {
        font-size: 32px;
    }

    .cart-table__header {
        display: none; /* скрываем заголовок на мобилках */
    }

    .cart-table__row {
        grid-template-columns: 1fr;
        gap: 15px;
        padding: 20px 0;
        position: relative;
    }

    .cart-table__col {
        padding: 0;
    }

    .cart-table__col--product {
        grid-row: 1;
    }

    .cart-table__col--price {
        grid-row: 2;
    }

    .cart-table__col--quantity {
        grid-row: 3;
    }

    .cart-table__col--total {
        grid-row: 4;
    }

    .cart-table__col--remove {
        position: absolute;
        top: 20px;
        right: 0;
    }

    .cart-product {
        align-items: flex-start;
    }

    .cart-totals {
        justify-content: center;
    }
}
/* Убираем подчёркивание у ссылок в карточках товаров (включая похожие) */
.product-card__link {
    text-decoration: none;
    color: inherit;          /* наследуем цвет текста */
    display: block;          /* чтобы ссылка занимала весь блок */
}

.product-card__link:hover {
    text-decoration: none;   /* дополнительная страховка */
}

/* Если хотите, чтобы название подчёркивалось при наведении */
.product-card__link:hover .product-card__title {
    text-decoration: underline;
    color: var(--primary);   /* и меняло цвет */
}
/* Карточка товара как flex-контейнер */
.product-card {
    display: flex;
    flex-direction: column;
    height: 100%;               /* все карточки в сетке будут одной высоты */
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    transition: var(--transition);
    border: 1px solid var(--gray);
}

/* Ссылка внутри карточки тоже flex и занимает всё свободное пространство */
.product-card__link {
    display: flex;
    flex-direction: column;
    flex: 1 0 auto;             /* растягивается, чтобы занять всю высоту, кроме блока действий */
    text-decoration: none;
    color: inherit;
}

.product-card__info {
    padding: 20px;
    flex: 1;                    /* занимает оставшееся место внутри ссылки */
    display: flex;
    flex-direction: column;
}

.product-card__description {
    flex: 1 0 auto;             /* описание расширяется, прижимая цену к низу */
    margin-bottom: 15px;
}

.product-card__price {
    margin-bottom: 20px;         /* отступ до блока действий (сама кнопка будет ниже) */
}

/* Блок действий (кнопка) */
.product-card__actions {
    padding: 0 20px 20px 20px;  /* отступы как у .product-card__info, но снизу */
}

.product-card__actions .btn {
    width: 100%;                 /* кнопка на всю ширину */
    box-sizing: border-box;
}
.alert-success {
    background-color: #d4edda;
    border-color: #c3e6cb;
    color: #155724;
    padding: 0.75rem 1.25rem;
    border-radius: 0.25rem;
}

/* Чтобы уведомление было поверх всего и не прилипало к самому верху */
#jq-notification, #notification {
    position: fixed !important;
    top: 20px !important;
    z-index: 9999 !important;
    width: auto;
    min-width: 300px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
/* ========== СТРАНИЦА ОФОРМЛЕНИЯ ЗАКАЗА ========== */
.checkout-section {
    padding: 60px 0;
}

.checkout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.checkout-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 25px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--primary);
}

.checkout-items {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.checkout-table {
    width: 100%;
    margin-bottom: 20px;
}

.checkout-table__header {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    padding: 10px 0;
    border-bottom: 2px solid var(--gray);
    font-weight: 600;
    color: var(--text-dark);
    font-size: 14px;
    text-transform: uppercase;
}

.checkout-table__row {
    display: grid;
    grid-template-columns: 3fr 1fr 1fr 1fr;
    padding: 15px 0;
    border-bottom: 1px solid var(--gray);
    align-items: center;
}

.checkout-table__col {
    padding: 0 5px;
}

.checkout-product {
    display: flex;
    align-items: center;
    gap: 10px;
}

.checkout-product__image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--gray);
}

.checkout-product__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.checkout-product__title {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    text-decoration: none;
    transition: var(--transition);
    display: block;
    margin-bottom: 3px;
}

.checkout-product__title:hover {
    color: var(--primary);
}

.checkout-product__category {
    font-size: 12px;
    color: var(--text-light);
}

.quantity-display {
    font-weight: 500;
    color: var(--text-dark);
}

.checkout-totals {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 2px dashed var(--gray);
}

.checkout-totals__row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 16px;
    color: var(--text-light);
}

.checkout-totals__row--total {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    margin-top: 10px;
}

.total-amount {
    color: var(--primary);
}

/* Форма */
.checkout-form {
    background: var(--white);
    border-radius: 20px;
    padding: 30px;
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 15px;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray);
    border-radius: 12px;
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    transition: var(--transition);
}
/* Цена в таблице — обычная жирность */
.checkout-table__col--price {
    font-weight: 500;
    font-size: 15px;
}

/* Если используется общий класс .price, можно уточнить */
.checkout-table__col--price .price {
    font-weight: 500;
    font-size: 15px;
}

/* Скрываем категорию (если нужно) */
.checkout-product__category {
    display: none;
}
.alert-danger {
    color: #cf3033;
    padding: 10px 15px;
    margin-top: 5px;
    font-size: 14px;
}

/* Верхняя полоска с контактами */
.header__top {
    background: #000;
    color: var(--white);
    font-size: 13px;
    padding: 8px 0;
    border-bottom: 1px solid rgba(102,252,241,0.1);
}

.header__top-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    padding-left: 230px;    /* добавьте отступы */
    padding-right: 20px;   /* чтобы текст не прилипал к краям */
}

.header__info i {
    margin-right: 5px;
    margin-left: 15px;
    color: var(--primary);
}

.header__info i:first-child {
    margin-left: 0;
}

.header__social a {
    color: var(--white);
    margin-left: 15px;
    font-size: 16px;
    transition: var(--transition);
}

.header__social a:hover {
    color: var(--primary);
}

/* Адаптивность для мобильных */
@media (max-width: 768px) {
    .header__top-inner {
        flex-direction: column;
        text-align: center;
    }
    .header__info i {
        margin-left: 5px;
    }
}
/* Базовые стили модального окна */
.modal {
    display: none;                       /* скрыто по умолчанию */
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    /* Центрируем содержимое */
    justify-content: center;
    align-items: center;
}

/* Когда модалка открыта – добавляем этот класс через JS */
.modal--open {
    display: flex !important;            /* перекрывает display: none */
}

/* Сама картинка */
.modal-content {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    /* Дополнительная страховка – центрирование внутри flex-контейнера */
    margin: auto;
}

/* Кнопка закрытия */
.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
    z-index: 10000;
}
.modal-close:hover {
    color: #ccc;
}