/* ===== SHOP.CSS – стили каталога, карточки товара, корзины, мобильного фильтра ===== */

/* Сетка категорий */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 30px;
    margin: 40px 0;
}

.series-title {
    padding: 6px 24px;
}

.category-card {
    background: white;
    border-radius: 24px;
    padding: 30px 20px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #eef2f6;
    text-decoration: none;
    color: #1a1f36;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.02);
}
.category-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.08);
    border-color: #0077b6;
}
.category-card-icon {
    font-size: 48px;
    margin-bottom: 20px;
    color: #0077b6;
}
.category-card-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin-bottom: 10px;
}
.category-card-description {
    font-size: 0.85rem;
    color: #5a6874;
    margin-bottom: 20px;
    line-height: 1.4;
}
.category-card-link {
    font-size: 0.85rem;
    font-weight: 600;
    color: #0077b6;
    border-top: 1px solid #eef2f6;
    padding-top: 15px;
    width: 100%;
    margin-top: auto;
    transition: 0.2s;
}
.category-card:hover .category-card-link {
    color: #023e8a;
}

/* Layout каталога */
.catalog-layout {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    align-items: flex-start;
    min-width: 0;
}

/* Фильтр (десктоп) */
.catalog-filters {
    width: 280px;
    flex-shrink: 0;
    background: white;
    border-radius: 20px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    position: sticky;
    top: 20px;
    align-self: start;
    z-index: 10;
    margin-right: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

/* Фильтр – секции */
.filter-section {
    margin-bottom: 25px;
    border-bottom: 1px solid #e2e8f0;
    padding-bottom: 15px;
}
.filter-section h3 {
    font-size: 1rem;
    margin-bottom: 12px;
    color: #1e293b;
}
.price-range {
    display: flex;
    gap: 8px;
    align-items: center;
}
.price-range input {
    width: 100px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 8px;
}
.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.radio-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}
.filter-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}
.filter-actions button, .reset-link {
    background: #0077b6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    text-decoration: none;
    font-size: 0.9rem;
    display: inline-block;
}
.reset-link {
    background: #64748b;
}

/* Сортировка */
.sort-bar {
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f8fafc;
    border-radius: 12px;
    display: flex;
    justify-content: flex-end;
}
.sort-form {
    display: flex;
    align-items: center;
    gap: 10px;
}
.sort-form select {
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid #ccc;
}

/* Сетка товаров */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    min-width: 0;
}
@media (min-width: 1400px) {
    .products-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); padding: 8px;}
}
@media (max-width: 1100px) {
    .products-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 8px;}
}
@media (max-width: 768px) {
    .catalog-layout {
        overflow-x: hidden;
        max-width: 100vw;
    }
    .catalog-products {
        max-width: 100%;
        overflow-x: hidden;
        width: 100%;
    }
    .product-card {
        max-width: 100%;
        overflow: hidden;
    }
    .product-card .image-wrapper img {
        max-width: 100%;
        height: auto;
        object-fit: contain;
    }
    .catalog-filters {
        width: 100%;
        position: static;
    }
    .products-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
@media (max-width: 480px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
}

/* Карточка товара */
.product-card {
    background: white;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    transition: 0.2s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    overflow: hidden;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}
.product-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.1);
}
.product-card .image-wrapper {
    position: relative;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 200px;
    padding: 16px;
    border-radius: 16px;
    margin-bottom: 10px;
    overflow: hidden;
}
.product-card .image-wrapper img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    mix-blend-mode: multiply;
    object-fit: contain;
    display: block;
}
.product-card .badges-right {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-end;
    z-index: 2;
}

/* Все бейджи в карточке – скруглённые */
.product-card .badge {
    border-radius: 20px;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    white-space: nowrap;
}

.product-card .badge.brand-badge {
    position: absolute;
    top: 8px;
    left: 8px;
    background: #0077b6;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
    z-index: 2;
}
.product-card .badge.discount { background: #e76f51; }
.product-card .badge.hit { background: #f4a261; }
.product-card .badge.inverter { background: #2c7a4d; }
.product-card .badge.price-zero { background: #dc2626; }
.product-card .badge.on-order { background: #f4a261; }
.product-card .badge.out-of-stock { background: #999; }
.product-card .product-link {
    text-decoration: none;
    color: inherit;
    display: block;
}
.product-card h3 {
    margin: 0 0 8px;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    padding: 0 16px;
    word-break: break-word;
}
.product-card .area {
    font-size: 0.85rem;
    color: #2c3e50;
    margin-bottom: 8px;
    padding: 0 16px;
}
.product-card .price {
    margin: 8px 16px;
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 10px;
}
.current-price {
    font-size: 1.2rem;
    font-weight: bold;
    color: #e76f51;
}
.old-price {
    font-size: 0.9rem;
    text-decoration: line-through;
    color: #999;
}
.product-card .stock-details {
    font-size: 0.8rem;
    color: #555;
    margin: 0 16px 16px;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.4;
}
.product-card .add-to-cart {
    background: #0077b6;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
    transition: 0.2s;
    font-weight: 600;
    margin-top: auto;
}
.product-card .add-to-cart:hover {
    background: #023e8a;
}
.product-card .inquire-btn {
    background: #f4a261;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
    width: calc(100% - 32px);
    margin: 0 16px 16px;
}
.inquire-btn:hover {
    background: #e76f51;
}

/* Пагинация */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 14px;
    background: #f1f5f9;
    border-radius: 40px;
    text-decoration: none;
    color: #1e293b;
    min-width: 40px;
    text-align: center;
}
.pagination a.active {
    background: #0077b6;
    color: white;
}

/* ========== СТРАНИЦА ТОВАРА ========== */
.product-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px auto;
}
.product-gallery .main-image-wrapper {
    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    margin-bottom: 20px;
}
.product-gallery .main-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}
.thumbnails {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}
.thumb {
    width: 80px;
    height: 80px;
    object-fit: contain;
    border-radius: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    background: #f8fafc;
    padding: 4px;
}
.thumb.active {
    border-color: #0077b6;
    box-shadow: 0 0 0 3px rgba(0,119,182,0.2);
}
.thumb:hover {
    transform: scale(1.05);
    border-color: #0077b6;
}
.product-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
    max-width: 100%;
    overflow: hidden;
}
.brand-name {
    font-size: 1rem;
    font-weight: 600;
    color: #0077b6;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.product-title {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    margin: 0;
    color: #1e293b;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    max-width: 100%;
}

/* Обёртка для карточки деталей */
.product-details-card {
    background: white;
    border-radius: 24px;
    padding: 28px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.product-details-card .product-short-specs,
.product-details-card .order-card-stock,
.product-details-card .service-block {
    background: transparent;
    border: none;
    padding: 0;
    box-shadow: none;
}

.product-details-card .service-block {
    margin: 0;
}

.product-details-card .price-line {
    padding: 0;
}

/* Краткие характеристики */
.product-short-specs {
    font-size: 0.95rem;
    color: #334155;
}
.product-short-specs .spec-item {
    margin-bottom: 8px;
}
.spec-label {
    font-weight: 600;
    color: #1e293b;
    min-width: 140px;
    display: inline-block;
}

/* Блок наличия */
.order-card-stock {
    font-size: 0.95rem;
}
.stock-badge {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 6px;
}
.stock-details {
    font-size: 0.85rem;
    color: #334155;
}

/* Цены */
.price-line {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}
.price-label {
    font-weight: 500;
    font-size: 1rem;
}
.price-value {
    font-size: 1.5rem;
    font-weight: 800;
    color: #e76f51;
}
.price-value.total {
    font-size: 1.8rem;
    color: #0077b6;
}
.price-value.service {
    font-size: 1.2rem;
    color: #f4a261;
}

/* Сервисный блок */
.service-block {
    background: #f8fafc;
    border-radius: 16px;
    padding: 16px 20px;
    border: 1px solid #e2e8f0;
}
.service-checkbox-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
}
.service-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.95rem;
    cursor: pointer;
}
.service-link {
    color: #0077b6;
    text-decoration: none;
    font-size: 0.85rem;
    border-bottom: 1px dashed #0077b6;
}

/* Кнопки */
.product-add-to-cart,
.inquire-btn {
    width: 100%;
    padding: 16px 24px;
    border-radius: 60px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: 0.2s;
}
.product-add-to-cart {
    background: #0077b6;
    color: white;
}
.product-add-to-cart:hover {
    background: #023e8a;
    transform: translateY(-2px);
}
.inquire-btn {
    background: #f4a261;
    color: white;
}
.inquire-btn:hover {
    background: #e76f51;
    transform: translateY(-2px);
}

/* Описание и характеристики */
.product-description, .product-specs {
    margin: 40px 0 60px;
    background: #fff;
    border-radius: 28px;
    padding: 32px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.05);
}
.product-description h2, .product-specs h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #0077b6;
    border-left: 4px solid #0077b6;
    padding-left: 16px;
}
.specs-group {
    margin-bottom: 30px;
}
.specs-group h3 {
    font-size: 1.2rem;
    margin-bottom: 16px;
    padding-bottom: 6px;
    border-bottom: 2px solid #e2e8f0;
}
.props-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
    background: white;
    border-radius: 16px;
    overflow: hidden;
}
.props-table td {
    padding: 12px 15px;
    vertical-align: top;
    border-bottom: 1px solid #f1f5f9;
}
.prop-name {
    width: 35%;
    font-weight: 600;
    background: #f8fafc;
}
.prop-value {
    width: 65%;
    color: #334155;
}

/* Корзина */
.cart-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
    background: white;
    border-radius: 20px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    border: 1px solid #e2e8f0;
}
.cart-item-img {
    width: 100px;
    flex-shrink: 0;
}
.cart-item-img img {
    width: 100%;
    border-radius: 12px;
}
.cart-item-name {
    flex: 2;
    min-width: 150px;
}
.cart-item-name a {
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
}
.cart-item-name a:hover {
    color: #0077b6;
}
.stock-note {
    font-size: 0.75rem;
    color: #e76f51;
    margin-top: 5px;
}
.cart-item-price {
    width: 100px;
    font-weight: 600;
}
.cart-item-qty {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #f8fafc;
    padding: 5px 10px;
    border-radius: 40px;
}
.cart-item-qty button {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}
.cart-item-qty button:hover {
    background: #e2e8f0;
}
.cart-item-qty input {
    width: 50px;
    text-align: center;
    border: none;
    background: transparent;
    font-weight: 600;
}
.cart-item-total {
    width: 100px;
    font-weight: 700;
    color: #0077b6;
}
.cart-item-remove {
    background: #fee2e2;
    color: #b91c1c;
    border: none;
    padding: 8px 16px;
    border-radius: 40px;
    cursor: pointer;
}
.cart-group {
    margin-bottom: 30px;
}
.cart-group h3 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #0077b6;
    display: inline-block;
}
.cart-total {
    text-align: right;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 20px 0;
    padding-top: 15px;
    border-top: 2px solid #e2e8f0;
}
.cart-actions {
    text-align: right;
}
.cart-actions .btn {
    background: #0077b6;
    padding: 12px 30px;
    border-radius: 40px;
}

/* Мобильный фильтр */
.filter-toggle-btn {
    display: none;
    position: fixed;
    bottom: 80px;
    right: 20px;
    z-index: 9999;
    background: #0077b6;
    color: white;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-weight: bold;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    cursor: pointer;
    font-size: 16px;
    align-items: center;
    gap: 8px;
}
.filter-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 10000;
}
.catalog-filters {
    transition: right 0.3s ease;
}
@media (max-width: 768px) {
    .filter-toggle-btn {
        display: flex;
    }
    .catalog-filters {
        position: fixed;
        top: 0;
        right: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: white;
        z-index: 10001;
        overflow-y: auto;
        padding: 20px;
        box-shadow: -2px 0 10px rgba(0,0,0,0.1);
        border-radius: 0;
    }
    .catalog-filters.open {
        right: 0;
    }
    .filter-close-btn {
        display: block;
        text-align: right;
        margin-bottom: 15px;
        font-size: 28px;
        cursor: pointer;
    }
}
@media (min-width: 769px) {
    .filter-close-btn {
        display: none;
    }
}

/* Общие мобильные улучшения для страницы товара */
@media (max-width: 1100px) {
    .product-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .container {
        padding-left: 16px;
        padding-right: 16px;
    }
    .product-container {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-left: 0;
        margin-right: 0;
    }
    .product-info {
        margin-left: 0;
        margin-right: 0;
    }
    .product-gallery {
        margin-left: 0;
        margin-right: 0;
    }
    .product-title {
        font-size: 1.4rem;
    }
    .product-details-card {
        padding: 20px;
    }
    .product-description-fullwidth {
        margin-left: 0;
        margin-right: 0;
        border-radius: 20px;
        padding: 20px;
    }
    .product-specs {
        margin-left: 0;
        margin-right: 0;
        border-radius: 20px;
    }
    .breadcrumbs {
        margin-left: 0;
        margin-right: 0;
    }
    body {
        overflow-x: hidden;
        max-width: 100vw;
    }
}

.catalog-products {
    flex: 1;
    min-width: 0;
    position: relative;
    z-index: 1;
}

/* ========== МОДАЛКА ИЗОБРАЖЕНИЯ НА СТРАНИЦЕ ТОВАРА ========== */
#imageModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    overflow-y: auto;
}
#imageModal .modal-close {
    position: absolute;
    top: 18px;
    right: 22px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}
#imageModal #modalImage {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    display: block;
}

/* ========== Адаптив таблицы характеристик ========== */
@media (max-width: 768px) {
    .props-table,
    .props-table tbody,
    .props-table tr,
    .props-table td {
        display: block;
        width: 100%;
    }
    .props-table tr {
        margin-bottom: 12px;
        border-bottom: 1px solid #e2e8f0;
    }
    .props-table td {
        border: none !important;
        padding: 4px 0;
    }
    .prop-name {
        font-weight: 600;
        background: none !important;
        width: 100% !important;
        padding-bottom: 2px;
    }
    .prop-value {
        width: 100% !important;
        margin-bottom: 8px;
        color: #334155;
    }
    .spec-label {
        min-width: auto !important;
    }
    .product-short-specs .spec-item {
        display: flex;
        flex-wrap: wrap;
    }
}

/* ===== Полноширинное описание товара ===== */
.product-description-fullwidth {
    margin: 40px 0 60px;
    background: #ffffff;
    border-radius: 24px;
    padding: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.description-inner {
    max-width: 1024px;
    padding: 0 1px;
    font-size: 1rem;
    line-height: 1.5;
    color: #1e293b;
}
.description-inner h2 {
    font-size: 1.6rem;
    margin-bottom: 20px;
    color: #0077b6;
    border-left: 4px solid #0077b6;
    padding-left: 16px;
}
.description-content {
    word-wrap: break-word;
}

/* Поиск */
.search-form {
    display: flex;
    gap: 12px;
    margin: 20px 0 30px;
}
.search-form input {
    flex: 1;
    padding: 14px 20px;
    border: 1px solid #e2e8f0;
    border-radius: 40px;
    font-size: 1rem;
}
.search-placeholder {
    text-align: center;
    margin-top: 60px;
}
.popular-queries {
    margin-top: 30px;
}
.popular-queries h3 {
    margin-bottom: 15px;
}
.popular-queries a {
    display: inline-block;
    background: #f1f5f9;
    color: #1e293b;
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    margin: 5px;
    transition: 0.2s;
}
.popular-queries a:hover {
    background: #e2e8f0;
}

.product-card .badge.available-verify {
    background: #e2eaef;
    color: #0369a1;
    border: 1px solid #bae6fd;
}
/* ===== ВАРИАНТЫ МОЩНОСТЕЙ В СЕРИИ (КНОПКИ) ===== */
.variant-links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-left: 10px;
    align-items: center;
}

.variant-link {
    display: inline-block;
    background: #f8fafc;
    padding: 4px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e293b;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 2px solid #e2e8f0;
    line-height: 1.8;
    cursor: pointer;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}

.variant-link:hover {
    background: #ffffff;
    border-color: #0077b6;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,119,182,0.15);
}

.variant-link.active {
    background: #0077b6;
    color: #ffffff;
    border-color: #0077b6;
    cursor: default;
    pointer-events: none;
    box-shadow: 0 4px 12px rgba(0,119,182,0.3);
}

.variant-link.active:hover {
    transform: none;
    box-shadow: 0 4px 12px rgba(0,119,182,0.3);
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ ===== */
@media (max-width: 768px) {
    .variant-links {
        gap: 10px;
        margin-left: 0;
        margin-top: 6px;
        width: 100%;
    }
    
    .variant-link {
        padding: 8px 20px;
        font-size: 0.95rem;
        border-radius: 24px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 1 auto;
        border-width: 2px;
    }
    
    .variant-link:active {
        transform: scale(0.96);
        background: #e2e8f0;
        border-color: #0077b6;
    }
    
    .variant-link.active:active {
        transform: none;
        background: #0077b6;
    }
}

@media (max-width: 480px) {
    .variant-links {
        gap: 8px;
    }
    
    .variant-link {
        flex: 1 1 calc(50% - 8px);
        min-width: 80px;
        text-align: center;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}
/* ===== КАСТОМНЫЙ ТУЛТИП ДЛЯ КНОПОК ВАРИАНТОВ (АДАПТИВНЫЙ) ===== */
.variant-link {
    position: relative;
}

.variant-link .tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    background: #1e293b;
    color: #ffffff;
    padding: 8px 14px;
    border-radius: 8px;
    font-size: 0.7rem;
    font-weight: 400;
    white-space: normal;
    max-width: 300px;
    min-width: 200px;
    width: max-content;
    transition: all 0.25s ease;
    z-index: 1000;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
    pointer-events: none;
    line-height: 1.5;
    text-align: center;
    word-break: break-word;
}

/* Стрелка-треугольник */
.variant-link .tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: #1e293b;
}

/* Адаптивное смещение для левых кнопок */
.variant-link:first-child .tooltip {
    left: 0;
    transform: translateX(0);
}

.variant-link:first-child .tooltip::after {
    left: 20px;
    transform: translateX(0);
}

/* Адаптивное смещение для правых кнопок */
.variant-link:last-child .tooltip {
    left: auto;
    right: 0;
    transform: translateX(0);
}

.variant-link:last-child .tooltip::after {
    left: auto;
    right: 20px;
    transform: translateX(0);
}

.variant-link:hover .tooltip {
    visibility: visible;
    opacity: 1;
}

/* Активная кнопка — тултип не показываем */
.variant-link.active .tooltip {
    display: none;
}

/* Мобильные: скрываем тултипы */
@media (max-width: 768px) {
    .variant-link .tooltip {
        display: none !important;
    }
}