/* catalog-sale.css - стили для страницы каталога */

/* ========== КАТАЛОГ ========== */
.catalog-page {
    min-height: 100vh;
    background: var(--primary-black);
}

.catalog-hero {
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a2e 100%);
    padding: 100px 20px 50px;
    text-align: center;
    border-bottom: 1px solid rgba(201, 160, 61, 0.3);
}

.catalog-hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.catalog-hero h1 {
    font-size: 2.5rem;
    color: var(--gold-light);
    margin-bottom: 1rem;
}

.catalog-subtitle {
    color: #ddd;
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.catalog-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.catalog-search i {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-light);
}

.catalog-search input {
    width: 100%;
    padding: 15px 45px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(201,160,61,0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
}

.catalog-search input:focus {
    outline: none;
    border-color: var(--gold-light);
}

#searchClearBtn {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1.2rem;
}

/* ========== MAIN CONTAINER ========== */
.catalog-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
}

/* ========== SIDEBAR ========== */
.catalog-sidebar {
    background: rgba(0,0,0,0.3);
    border-radius: 15px;
    padding: 20px;
    position: sticky;
    top: 100px;
    height: fit-content;
}

.sidebar-widget {
    margin-bottom: 30px;
    border-bottom: 1px solid rgba(201,160,61,0.2);
    padding-bottom: 20px;
}

.sidebar-widget:last-child {
    border-bottom: none;
}

.widget-title {
    color: var(--gold-light);
    font-size: 1.2rem;
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    margin-bottom: 10px;
}

.category-list a {
    color: #ddd;
    text-decoration: none;
    display: flex;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 8px;
    transition: all 0.3s;
}

.category-list a:hover,
.category-list a.active {
    background: rgba(201,160,61,0.2);
    color: var(--gold-light);
}

.category-list span {
    color: #888;
    font-size: 0.85rem;
}

/* Price filter */
.price-filter {
    padding: 10px 0;
}

.price-inputs {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-bottom: 15px;
}

.price-inputs input {
    width: 100px;
    padding: 8px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(201,160,61,0.3);
    border-radius: 5px;
    color: #fff;
    text-align: center;
}

.price-slider {
    position: relative;
    height: 4px;
    margin: 20px 0;
}

.price-slider input {
    position: absolute;
    width: 100%;
    height: 4px;
    background: none;
    pointer-events: none;
    -webkit-appearance: none;
}

.price-slider input::-webkit-slider-thumb {
    height: 16px;
    width: 16px;
    border-radius: 50%;
    background: var(--gold-light);
    pointer-events: auto;
    -webkit-appearance: none;
    cursor: pointer;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    color: #ddd;
    cursor: pointer;
}

.filter-checkbox input {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.btn-reset-filters {
    width: 100%;
    padding: 12px;
    background: rgba(201,160,61,0.2);
    border: 1px solid rgba(201,160,61,0.5);
    border-radius: 8px;
    color: var(--gold-light);
    cursor: pointer;
    transition: all 0.3s;
}

.btn-reset-filters:hover {
    background: rgba(201,160,61,0.4);
}

/* ========== CONTENT ========== */
.catalog-header {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 15px;
}

.catalog-count {
    color: #aaa;
    font-size: 0.9rem;
}

.catalog-count span {
    color: var(--gold-light);
    font-weight: bold;
}

.catalog-sort {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #ddd;
}

.catalog-sort select {
    padding: 8px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(201,160,61,0.3);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
}

/* ========== PRODUCTS GRID — ПОЛНОСТЬЮ ПЕРЕДЕЛАНО ========== */
.products-grid {
    display: grid;
    gap: 30px;
    width: 100%;
    box-sizing: border-box;
    /* Фиксированное количество колонок по breakpoints — никакого auto-fill! */
    grid-template-columns: repeat(3, 1fr);
}

/* ========== БОЛЬШИЕ ДЕСКТОПЫ (1400px+) ========== */
@media (min-width: 1400px) {
    .products-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 30px;
    }
}

/* ========== СТАНДАРТНЫЙ ДЕСКТОП (1200px - 1399px) ========== */
@media (max-width: 1399px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 25px;
    }
}

/* ========== МАЛЕНЬКИЙ ДЕСКТОП / БОЛЬШОЙ ПЛАНШЕТ (992px - 1199px) ========== */
@media (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 20px;
    }
    
    .catalog-main-container {
        grid-template-columns: 260px 1fr;
        gap: 30px;
        padding: 30px 15px;
    }
}

/* ========== ПЛАНШЕТЫ (768px - 991px) ========== */
@media (max-width: 991px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Только 2! */
        gap: 20px;
    }
    
    .catalog-main-container {
        grid-template-columns: 1fr; /* Сайдбар убран или сверху */
        gap: 20px;
        padding: 20px 15px;
    }
    
    .catalog-sidebar {
        position: static;
        margin-bottom: 20px;
    }
}

/* ========== БОЛЬШИЕ ТЕЛЕФОНЫ (576px - 767px) ========== */
@media (max-width: 767px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr); /* Две колонки */
        gap: 15px;
    }
    
    .catalog-main-container {
        padding: 15px 12px;
    }
}

/* ========== МОБИЛЬНЫЕ (до 575px) ========== */
@media (max-width: 575px) {
    .products-grid {
        grid-template-columns: 1fr; /* Одна колонка */
        gap: 15px;
    }
    
    .catalog-main-container {
        padding: 15px 10px;
    }
}

/* ========== ОЧЕНЬ МАЛЕНЬКИЕ (до 400px) ========== */
@media (max-width: 400px) {
    .products-grid {
        gap: 12px;
    }
    
    .catalog-main-container {
        padding: 12px 8px;
    }
}

/* ========== КАРТОЧКА ТОВАРА — ЗАЩИТА ОТ ПЕРЕПОЛНЕНИЯ ========== */
.product-card {
    background: rgba(255,255,255,0.05);
    border-radius: 15px;
    overflow: hidden;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0; /* Критически важно! */
    max-width: 100%;
    width: 100%;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    background: rgba(255,255,255,0.08);
}

/* ========== БЕЙДЖИ ========== */
.product-card-badges {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 2;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.badge-new,
.badge-popular,
.badge-out {
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: bold;
    white-space: nowrap;
}

.badge-new { background: #4caf50; color: #fff; }
.badge-popular { background: #ff9800; color: #fff; }
.badge-out { background: #f44336; color: #fff; }

/* ========== ССЫЛКА ========== */
.product-card-link {
    text-decoration: none;
    display: block;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

/* ========== ИЗОБРАЖЕНИЕ ========== */
.product-card-image {
    width: 100%;
    aspect-ratio: 1 / 1; /* Квадрат вместо фиксированной высоты */
    overflow: hidden;
    position: relative;
}

.product-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
    display: block;
}

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

/* На мобильных можно другие пропорции */
@media (max-width: 575px) {
    .product-card-image {
        aspect-ratio: 4 / 3;
    }
}

/* ========== ИНФОРМАЦИЯ ========== */
.product-card-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

@media (max-width: 767px) {
    .product-card-info {
        padding: 12px;
    }
}

@media (max-width: 575px) {
    .product-card-info {
        padding: 10px;
    }
}

/* ========== КАТЕГОРИЯ ========== */
.product-card-category {
    font-size: 0.75rem;
    color: var(--gold-light);
    text-transform: uppercase;
    margin-bottom: 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========== НАЗВАНИЕ ========== */
.product-card-title {
    color: #fff;
    font-size: 1.1rem;
    margin-bottom: 10px;
    line-height: 1.4;
    /* Защита от переполнения */
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
    .product-card-title {
        font-size: 1rem;
    }
}

@media (max-width: 575px) {
    .product-card-title {
        font-size: 0.95rem;
        -webkit-line-clamp: 1;
    }
}

/* ========== ЦЕНА ========== */
.product-card-price-wrapper {
    margin-bottom: 10px;
    margin-top: auto; /* Прижимаем книзу */
}

.product-card-price {
    color: var(--gold-light);
    font-size: 1.3rem;
    font-weight: bold;
    white-space: nowrap;
}

@media (max-width: 767px) {
    .product-card-price {
        font-size: 1.15rem;
    }
}

@media (max-width: 575px) {
    .product-card-price {
        font-size: 1.1rem;
    }
}

.product-card-price-old {
    color: #888;
    font-size: 0.9rem;
    text-decoration: line-through;
    margin-right: 10px;
}

/* ========== ОПИСАНИЕ ========== */
.product-card-excerpt {
    color: #aaa;
    font-size: 0.85rem;
    line-height: 1.4;
    margin-bottom: 12px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 767px) {
    .product-card-excerpt {
        font-size: 0.8rem;
        -webkit-line-clamp: 2;
    }
}

@media (max-width: 575px) {
    .product-card-excerpt {
        display: none; /* На мобильных убираем описание */
    }
}

/* ========== КНОПКА ЗАКАЗАТЬ ========== */
.product-card-order-btn {
    width: calc(100% - 30px);
    margin: 0 15px 15px 15px;
    padding: 12px;
    background: var(--gold-light);
    border: none;
    border-radius: 8px;
    color: #1a1a2e;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-card-order-btn:hover {
    background: #b8902a;
    transform: scale(1.02);
}

@media (max-width: 767px) {
    .product-card-order-btn {
        width: calc(100% - 24px);
        margin: 0 12px 12px;
        padding: 10px;
        font-size: 0.9rem;
    }
}

@media (max-width: 575px) {
    .product-card-order-btn {
        width: calc(100% - 20px);
        margin: 0 10px 10px;
        padding: 10px;
    }
}

/* ========== ГЛОБАЛЬНАЯ ЗАЩИТА ОТ СКРОЛЛА ========== */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
}

.catalog-page {
    overflow-x: hidden;
    width: 100%;
    max-width: 100vw;
}

.catalog-main-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 20px;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    width: 100%;
    box-sizing: border-box;
    overflow-x: hidden;
}

/* ========== МОБИЛЬНЫЕ ФИЛЬТРЫ (показываем вместо сайдбара) ========== */
.mobile-filters-header {
    display: none;
}

@media (max-width: 991px) {
    .mobile-filters-header {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .catalog-sidebar {
        display: none;
    }
}

/* ========== СТРАНИЦА ТОВАРА ========== */
.product-page {
    min-height: 100vh;
    padding: 100px 20px 40px;
}

.product-container {
    max-width: 1200px;
    margin: 0 auto;
}

.back-to-catalog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--gold-light);
    text-decoration: none;
    margin-bottom: 30px;
    transition: all 0.3s;
}

.back-to-catalog-btn:hover {
    gap: 12px;
}

.product-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}

.product-gallery {
    position: sticky;
    top: 100px;
}

.product-main-image {
    border-radius: 15px;
    overflow: hidden;
    background: #1a1a2e;
    margin-bottom: 15px;
}

.product-main-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

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

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.3s;
    border: 2px solid transparent;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
    border-color: var(--gold-light);
}

.product-badges {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.product-title {
    font-size: 2rem;
    color: #fff;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    color: #aaa;
    font-size: 0.85rem;
}

.product-price-wrapper {
    margin-bottom: 20px;
}

.product-price {
    font-size: 2rem;
    color: var(--gold-light);
    font-weight: bold;
}

.product-price-old {
    font-size: 1.2rem;
    color: #888;
    text-decoration: line-through;
    margin-right: 15px;
}

.product-price-sale {
    font-size: 2rem;
    color: #f44336;
    font-weight: bold;
}

.product-short-description {
    color: #ddd;
    line-height: 1.6;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(201,160,61,0.2);
}
.product-specs h2,
.product-specs h3 {
    color: var(--gold-light);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

.product-specs ul {
    list-style: none;
    padding: 0;
}

.product-specs li {
    color: #ddd;
    padding: 8px 0;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.product-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0;
    flex-wrap: wrap;
}

.btn-order-product,
.btn-consultation-product {
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-order-product {
    background: var(--gold-light);
    border: none;
    color: #1a1a2e;
}

.btn-order-product:hover {
    background: #b8902a;
    transform: scale(1.02);
}

.btn-consultation-product {
    background: rgba(255,255,255,0.1);
    border: 1px solid var(--gold-light);
    color: var(--gold-light);
}

.btn-consultation-product:hover {
    background: rgba(201,160,61,0.2);
}

.product-delivery {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(201,160,61,0.1);
    border-radius: 10px;
}

.product-delivery i {
    font-size: 1.2rem;
    color: #FFF;
}

/* Табы */
.product-tabs {
    display: flex;
    gap: 20px;
    border-bottom: 1px solid rgba(201,160,61,0.3);
    margin-bottom: 25px;
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    color: #aaa;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--gold-light);
    border-bottom: 2px solid var(--gold-light);
}

.tab-content {
    display: none;
    padding: 20px 0;
    color: #ddd;
    line-height: 1.8;
}

.tab-content.active {
    display: block;
}

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

.specs-table tr {
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.specs-table th,
.specs-table td {
    padding: 12px;
    text-align: left;
}

.specs-table th {
    width: 30%;
    color: var(--gold-light);
}

/* Похожие товары */
.related-products {
    margin-top: 60px;
    padding-top: 40px;
    border-top: 1px solid rgba(201,160,61,0.3);
}

.related-title {
    color: var(--gold-light);
    font-size: 1.5rem;
    margin-bottom: 30px;
}

/* Пагинация */
.catalog-pagination {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 50px;
    flex-wrap: wrap;
}

.pagination-btn {
    padding: 10px 15px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(201,160,61,0.3);
    border-radius: 5px;
    color: #fff;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:hover,
.pagination-btn.active {
    background: var(--gold-light);
    color: #1a1a2e;
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-dots {
    color: #888;
    padding: 10px 5px;
}

/* Модальное окно заказа */
.order-product-details {
    background: rgba(201,160,61,0.1);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

/* Уведомления */
.notification {
    position: fixed;
    top: 100px;
    right: 20px;
    background: var(--metal-dark);
    border-radius: 8px;
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s;
}

.notification.show {
    opacity: 1;
    transform: translateX(0);
}

.notification-success {
    border-left: 4px solid #4caf50;
}

.notification-success i {
    color: #4caf50;
}

.notification-error {
    border-left: 4px solid #f44336;
}

.notification-error i {
    color: #f44336;
}

/* Адаптивность */
@media (max-width: 992px) {
    .catalog-main-container {
        grid-template-columns: 1fr;
    }
    .catalog-sidebar {
        position: static;
    }
    .product-wrapper {
        grid-template-columns: 1fr;
    }
    .product-gallery {
        position: static;
    }
}

@media (max-width: 768px) {
    .catalog-hero {
        padding-top: 100px;
    }
    .catalog-hero h1 {
        font-size: 1.8rem;
    }
    .products-grid {
        grid-template-columns: 1fr;
    }
    .product-title {
        font-size: 1.5rem;
    }
    .product-actions {
        flex-direction: column;
    }
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========== ГРАДИЕНТНЫЕ КНОПКИ ========== */
.gradient-btn {
    background: linear-gradient(135deg, #B8860B, #DAA520, #FFD700, #DAA520);
    background-size: 200% 200%;
    border: none;
    color: #1a1a2e;
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(218, 165, 32, 0.3);
    animation: gradientShift 3s ease infinite;
}

.gradient-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.5);
    background-size: 100% 100%;
}

.gradient-btn-outline {
    background: transparent;
    border: 2px solid transparent;
    background-image: linear-gradient(#1a1a2e, #1a1a2e), linear-gradient(135deg, #B8860B, #DAA520, #FFD700);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    color: var(--gold-light);
    font-weight: bold;
    padding: 12px 25px;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gradient-btn-outline:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(218, 165, 32, 0.3);
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* ========== ОФОРМЛЕНИЕ ЦЕНЫ С BYN ========== */
.product-price i.nbrb-icon,
.product-card-price i.nbrb-icon,
.product-price-old i.nbrb-icon {
    font-family: "nbrb" !important;
    font-style: normal;
    font-weight: normal;
    font-variant: normal;
    text-transform: none;
    line-height: 1;
    -webkit-font-smoothing: antialiased;
    letter-spacing: normal;
}

.product-price-label {
    color: var(--steel-light);
    font-size: 0.9rem;
    margin-right: 8px;
}

.product-price {
    font-size: 2rem;
    color: var(--gold-light);
    font-weight: bold;
}

.product-price-old {
    font-size: 1.2rem;
    color: #888;
    text-decoration: line-through;
    margin-left: 15px;
}

/* ========== ФОРМА ЗАКАЗА ========== */
.order-product-details {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(201,160,61,0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.order-product-details img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.similar-product-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    background: rgba(201,160,61,0.1);
    padding: 15px;
    border-radius: 12px;
    margin-bottom: 20px;
}

.similar-product-preview img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 8px;
}

.similar-product-details strong {
    color: var(--gold-light);
    font-size: 1rem;
    display: block;
    margin-bottom: 5px;
}

.similar-product-details span {
    color: var(--gold-light);
    font-size: 0.9rem;
}

.file-info {
    font-size: 0.75rem;
    color: #888;
    margin-top: 5px;
}

/* ========== АДАПТИВНОСТЬ ========== */
@media (max-width: 768px) {
    .gradient-btn, .gradient-btn-outline {
        padding: 10px 20px;
        font-size: 0.9rem;
        width: 100%;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    .order-product-details, .similar-product-preview {
        flex-direction: column;
        text-align: center;
    }
    
    .product-price {
        font-size: 1.5rem;
    }
}

/* ========== ДОПОЛНЕНИЯ: ПОИСК С ПОДСКАЗКАМИ ========== */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--metal-dark);
    border: 1px solid rgba(201,160,61,0.3);
    border-radius: 15px;
    margin-top: 8px;
    max-height: 400px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.search-suggestions.show {
    display: block;
}

.suggestion-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 15px;
    cursor: pointer;
    transition: all 0.2s;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.suggestion-item:hover {
    background: rgba(201,160,61,0.15);
}

.suggestion-image {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
}

.suggestion-info {
    flex: 1;
}

.suggestion-title {
    color: var(--gold-light);
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.suggestion-price {
    color: #aaa;
    font-size: 0.8rem;
}

/* ========== ДОПОЛНЕНИЯ: МОБИЛЬНЫЕ ФИЛЬТРЫ ========== */
.mobile-filters-header {
    display: none;
    background: var(--metal-dark);
    padding: 12px 20px;
    gap: 8px;
    flex-wrap: wrap;
    border-bottom: 1px solid rgba(201,160,61,0.2);
    position: sticky;
    top: 70px;
    z-index: 98;
}

.mobile-filter-btn {
    flex: 1;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(201,160,61,0.3);
    border-radius: 30px;
    padding: 8px 12px;
    color: #ddd;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.mobile-filter-btn.active {
    background: rgba(201,160,61,0.2);
    color: var(--gold-light);
    border-color: var(--gold-light);
}

.mobile-filters-panel {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.95);
    z-index: 1001;
    padding: 20px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.mobile-filters-panel.open {
    transform: translateX(0);
    display: block;
}

.mobile-filters-panel .filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(201,160,61,0.3);
}

.mobile-filters-panel .filters-header h3 {
    color: var(--gold-light);
    font-size: 1.3rem;
}

.mobile-filters-panel .close-filters {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.3rem;
    cursor: pointer;
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.mobile-filters-panel .close-filters:hover {
    background: rgba(255,255,255,0.1);
}

.mobile-filters-panel .filter-section {
    margin-bottom: 25px;
}

.mobile-filters-panel .filter-section h4 {
    color: var(--gold-light);
    margin-bottom: 12px;
    font-size: 1rem;
}

.category-list-mobile {
    list-style: none;
    padding: 0;
}

.category-list-mobile li {
    margin-bottom: 8px;
}

.category-list-mobile li a {
    display: block;
    padding: 10px 15px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    color: #ddd;
    text-decoration: none;
    transition: all 0.3s;
}

.category-list-mobile li a.active {
    background: rgba(201,160,61,0.2);
    color: var(--gold-light);
}

.price-inputs-mobile {
    display: flex;
    gap: 10px;
}

.price-inputs-mobile input {
    flex: 1;
    padding: 10px;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(201,160,61,0.3);
    border-radius: 8px;
    color: #fff;
}

.apply-filters-btn {
    width: 100%;
    margin-top: 20px;
}

/* ========== АДАПТИВНЫЕ РАЗМЕРЫ ЧЕРЕЗ CLAMP ========== */
@media (max-width: 992px) {
    .mobile-filters-header {
        display: flex;
    }
    
    .catalog-hero {
        padding-top: clamp(90px, 15vw, 100px);
        padding-left: clamp(10px, 4vw, 20px);
        padding-right: clamp(10px, 4vw, 20px);
    }
    
    .catalog-hero h1 {
        font-size: clamp(1.5rem, 6vw, 2.5rem);
    }
    
    .catalog-subtitle {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }
    
    .catalog-main-container {
        padding: clamp(15px, 4vw, 40px) clamp(10px, 4vw, 20px);
    }
    
    .products-grid {
        gap: clamp(15px, 4vw, 30px);
    }
    
    .product-card-image {
        height: clamp(180px, 40vw, 250px);
    }
    
    .product-card-title {
        font-size: clamp(0.9rem, 3.5vw, 1.1rem);
    }
    
    .product-card-price {
        font-size: clamp(1rem, 4vw, 1.3rem);
    }
    
    .catalog-header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .mobile-filter-btn span {
        display: none;
    }
    
    .mobile-filter-btn i {
        margin: 0;
    }
    
    .mobile-filter-btn {
        flex: 1;
        padding: 10px;
    }
    
    .product-card-excerpt {
        display: none;
    }
    
    .product-card-info {
        padding: clamp(8px, 3vw, 15px);
    }
}

/* ========== АДАПТИВНЫЕ РАЗМЕРЫ ЧЕРЕЗ CLAMP ========== */

/* Поле поиска */
.catalog-search input {
    padding: clamp(10px, 3vw, 15px) clamp(40px, 12vw, 45px) !important;
    font-size: clamp(0.85rem, 3vw, 1rem);
}

/* Кнопка заказать в карточке */
.product-card-order-btn {
    width: calc(100% - clamp(10px, 4vw, 30px));
    margin: 0 clamp(5px, 2vw, 15px) clamp(10px, 3vw, 15px);
    padding: clamp(8px, 2.5vw, 12px);
    font-size: clamp(0.75rem, 3vw, 0.95rem);
    white-space: normal;
    word-break: keep-all;
    line-height: 1.3;
}

/* Контейнер описания товара */
.product-description-wrapper {
    width: 100%;
}

/* Табы - адаптивные */
.product-tabs {
    gap: clamp(8px, 2vw, 20px);
    margin-bottom: clamp(15px, 3vh, 25px);
    flex-wrap: wrap;
}

.tab-btn {
    padding: clamp(8px, 2vw, 12px) clamp(12px, 3vw, 20px);
    font-size: clamp(0.8rem, 2.5vw, 1rem);
}

/* Таблица характеристик */
.specs-table th,
.specs-table td {
    padding: clamp(8px, 2vw, 12px);
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
}

.specs-table th {
    width: clamp(30%, 35%, 40%);
}

/* Общие адаптивные отступы */
.product-container {
    padding: 0 clamp(10px, 4vw, 20px);
}

.product-wrapper {
    gap: clamp(20px, 5vw, 40px);
}

.product-title {
    font-size: clamp(1.3rem, 5vw, 2rem);
}

.product-price {
    font-size: clamp(1.3rem, 5vw, 2rem);
}

.product-price-old {
    font-size: clamp(0.9rem, 3.5vw, 1.2rem);
}

.product-specs li {
    padding: clamp(6px, 1.5vw, 8px) 0;
    font-size: clamp(0.8rem, 2.5vw, 0.95rem);
}
.product-specs h2,
.product-specs h3 {
    font-size: clamp(1rem, 3.5vw, 1.1rem);
}

/* Адаптивные кнопки в карточке товара на странице товара */
.product-actions {
    gap: clamp(10px, 3vw, 15px);
    flex-wrap: wrap;
}

.btn-order-product,
.btn-similar-product {
    padding: clamp(10px, 2.5vw, 12px) clamp(15px, 4vw, 30px);
    font-size: clamp(0.85rem, 2.5vw, 1rem);
    white-space: nowrap;
}

@media (max-width: 480px) {
    .btn-order-product,
    .btn-similar-product {
        white-space: normal;
        width: 100%;
        text-align: center;
    }
}

/* Мобильные фильтры - кнопки */
.mobile-filter-btn {
    padding: clamp(6px, 2vw, 10px) clamp(8px, 3vw, 12px);
    font-size: clamp(0.7rem, 2.5vw, 0.85rem);
}

/* Подсказки поиска */
.suggestion-item {
    padding: clamp(8px, 2vw, 12px) clamp(10px, 3vw, 15px);
}

.suggestion-title {
    font-size: clamp(0.8rem, 2.5vw, 0.9rem);
}

.suggestion-price {
    font-size: clamp(0.7rem, 2vw, 0.8rem);
}

/* ========== ИСПРАВЛЕНИЕ КНОПОК ========== */
.product-actions {
    display: flex;
    gap: 15px;
    margin: 25px 0 20px;
    flex-wrap: wrap;
}

.btn-order-product,
.btn-similar-product {
    flex: 1;
    min-width: 160px;
    text-align: center;
    white-space: nowrap;
}

@media (max-width: 550px) {
    .btn-order-product,
    .btn-similar-product {
        white-space: normal;
        min-width: 100%;
    }
}

/* ========== ИСПРАВЛЕНИЕ БЛОКА ДОСТАВКИ ========== */
.product-delivery {
    display: flex;
    gap: 15px;
    padding: 15px;
    background: rgba(201,160,61,0.1);
    border-radius: 10px;
    margin-top: 20px;
    clear: both;
}

.product-delivery i {
    font-size: 1.2rem;
    color: #FFF;
    flex-shrink: 0;
}

.product-delivery div {
    flex: 1;
}

.product-delivery strong {
    display: block;
    margin-bottom: 5px;
    color: var(--gold-light);
}

.product-delivery p {
    margin: 0;
    font-size: 0.85rem;
    color: #aaa;
}

/* ========== ИСПРАВЛЕНИЕ ТАБОВ ========== */
.product-tabs {
    display: flex;
    gap: 5px;
    border-bottom: 1px solid rgba(201,160,61,0.3);
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.tab-btn {
    background: none;
    border: none;
    padding: 10px 15px;
    color: #aaa;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn.active {
    color: var(--gold-light);
    border-bottom: 2px solid var(--gold-light);
}

@media (max-width: 480px) {
    .tab-btn {
        flex: 1;
        text-align: center;
        padding: 8px 5px;
        font-size: 0.8rem;
    }
}

/* ========== ПОЛЕ ПОИСКА С ЛУПОЙ И КРЕСТИКОМ ВНУТРИ ========== */
.catalog-search {
    position: relative;
    max-width: 500px;
    margin: 0 auto;
}

.catalog-search i:first-child {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold-light);
    z-index: 2;
    pointer-events: none;
    font-size: 1rem;
}

.catalog-search input {
    width: 100%;
    padding: 12px 40px 12px 45px !important;
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(201,160,61,0.3);
    border-radius: 50px;
    color: #fff;
    font-size: 1rem;
    box-sizing: border-box;
}

.catalog-search input:focus {
    outline: none;
    border-color: var(--gold-light);
}

#searchClearBtn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: #999;
    cursor: pointer;
    font-size: 1rem;
    z-index: 2;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    padding: 0;
}

#searchClearBtn:hover {
    color: var(--gold-light);
    background: rgba(255,255,255,0.1);
}

#searchClearBtn i {
    font-size: 0.9rem;
}

/* Адаптив */
@media (max-width: 576px) {
    .catalog-search input {
        padding: 10px 35px 10px 40px !important;
        font-size: 0.9rem;
    }
    
    .catalog-search i:first-child {
        left: 12px;
        font-size: 0.9rem;
    }
    
    #searchClearBtn {
        right: 8px;
        width: 24px;
        height: 24px;
    }
    
    #searchClearBtn i {
        font-size: 0.8rem;
    }
}