/* Стили для страницы карточки товара */

/* Хлебные крошки */
.breadcrumbs {
    padding: 1rem 0;
    font-size: 0.9rem;
    background-color: var(--white);
    border-bottom: 1px solid var(--border-color);
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: var(--transition);
}

.breadcrumbs a:hover {
    color: var(--primary-color);
}

.breadcrumbs .separator {
    margin: 0 0.5rem;
    color: var(--medium-gray);
}

/* Layout товара */
.product-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    margin: 2rem 0;
    background-color: var(--white);
    padding: 2rem;
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--shadow);
}

/* Изображения товара */
.product-images {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.main-image {
    width: 100%;
    height: 400px;
    /* background-color: var(--light-gray); */
    border-radius: var(--border-radius);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: var(--medium-gray);
    position: relative;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.image-thumbnails {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 0.5rem 0;
}

.thumbnail {
    width: 80px;
    height: 80px;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
    cursor: pointer;
    border: 2px solid transparent;
    transition: var(--transition);
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--medium-gray);
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--primary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: calc(var(--border-radius) - 2px);
}

/* Информация о товаре */
.product-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.product-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
    margin: 0;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.rating-text {
    color: var(--text-light);
    font-size: 0.9rem;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.current-price {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary-color);
}

.old-price {
    font-size: 1.5rem;
    color: var(--text-light);
    text-decoration: line-through;
}

.product-description {
    color: var(--text-light);
    line-height: 1.6;
    font-size: 1.1rem;
}

/* Варианты товара */
.product-variants {
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1rem;
    background-color: var(--light-gray);
}

.variant-group {
    margin-bottom: 1rem;
}

.variant-group:last-child {
    margin-bottom: 0;
}

.variant-label {
    display: block;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.variant-options {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.variant-option {
    position: relative;
}

.variant-option input[type="radio"] {
    position: absolute;
    opacity: 0;
    width: 0;
    height: 0;
}

.variant-option label {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.6rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: var(--border-radius);
    background-color: var(--white);
    cursor: pointer;
    transition: var(--transition);
    min-width: 80px;
    text-align: center;
}

.variant-option label:hover {
    border-color: var(--primary-color);
    background-color: rgba(44, 62, 80, 0.05);
}

.variant-option input[type="radio"]:checked + label {
    border-color: var(--primary-color);
    background-color: var(--primary-color);
    color: var(--white);
}

.variant-option-name {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.variant-option-price {
    font-size: 0.8rem;
    color: var(--text-light);
}

.variant-option input[type="radio"]:checked + label .variant-option-price {
    color: rgba(255, 255, 255, 0.9);
}

.variant-option input[type="radio"]:disabled + label {
    opacity: 0.5;
    cursor: not-allowed;
}

.variant-option input[type="radio"]:disabled + label:hover {
    border-color: var(--border-color);
    background-color: var(--white);
}

.variant-note {
    margin-top: 0.6rem;
    padding: 0.6rem;
    background-color: rgba(44, 62, 80, 0.05);
    border-radius: var(--border-radius);
    font-size: 0.8rem;
    color: var(--text-light);
}

/* Действия с товаром */
.product-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.quantity-selector {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.quantity-selector label {
    font-weight: 500;
    color: var(--text-dark);
}

.quantity-controls {
    display: flex;
    align-items: center;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
}

.quantity-btn {
    width: 40px;
    height: 40px;
    border: none;
    background-color: var(--light-gray);
    color: var(--text-dark);
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    font-weight: bold;
}

.quantity-btn:hover {
    background-color: var(--medium-gray);
}

.quantity-controls input {
    width: 60px;
    height: 40px;
    border: none;
    text-align: center;
    font-size: 1rem;
    font-weight: 500;
    color: var(--text-dark);
}

/* Убираем стрелочки у input type="number" */
.quantity-controls input::-webkit-outer-spin-button,
.quantity-controls input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.quantity-controls input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.quantity-controls input:focus {
    outline: none;
}

.product-actions .btn {
    width: 100%;
    justify-content: center;
}

/* Особенности товара */
.product-features {
    display: flex;
    flex-direction: column;
    gap: 0.8rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.feature {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--text-dark);
    font-size: 0.9rem;
}

.feature-icon {
    width: 1.5rem;
    height: 1.5rem;
    display: inline-block;
    color: var(--primary-color);
}

.feature-icon svg {
    width: 100%;
    height: 100%;
}

/* Детали товара */
.product-details {
    margin: 3rem 0;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--shadow);
    overflow: hidden;
}

.tabs {
    display: flex;
    border-bottom: 1px solid var(--border-color);
}

.tab-btn {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    background-color: var(--light-gray);
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
    font-size: 1rem;
    font-weight: 500;
}

.tab-btn:hover {
    background-color: var(--medium-gray);
    color: var(--text-dark);
}

.tab-btn.active {
    background-color: var(--white);
    color: var(--primary-color);
    border-bottom: 2px solid var(--primary-color);
}

.tab-content {
    padding: 2rem;
}

.tab-panel {
    display: none;
}

.tab-panel.active {
    display: block;
}

/* Характеристики */
.specifications-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: 0 2px 8px var(--shadow);
}

.spec-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 1rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
    background-color: var(--white);
}

.spec-item:nth-child(even) {
    background-color: rgba(44, 62, 80, 0.02);
}

.spec-item:hover {
    background-color: rgba(44, 62, 80, 0.05);
    transform: translateX(3px);
}

.spec-item:last-child {
    border-bottom: none;
}

.spec-label {
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    position: relative;
    padding-right: 1rem;
}

.spec-label::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 60%;
    background-color: var(--border-color);
}

.spec-value {
    color: var(--text-light);
    display: flex;
    align-items: center;
    padding-left: 1rem;
    font-weight: 500;
}

/* Документация */
.documentation-content {
    max-width: 1000px;
}

.documentation-section {
    margin-bottom: 2rem;
}

.documentation-section:last-child {
    margin-bottom: 0;
}

.documentation-section h3 {
    color: var(--primary-color);
    margin-bottom: 1rem;
    font-size: 1.3rem;
    border-bottom: 2px solid var(--light-gray);
    padding-bottom: 0.5rem;
}

.documentation-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.document-item {
    background-color: var(--light-gray);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    transition: var(--transition);
    cursor: pointer;
}

.document-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px var(--shadow);
    transform: translateY(-2px);
}

.document-icon {
    width: 2rem;
    height: 2rem;
    margin-bottom: 1rem;
    color: var(--primary-color);
    display: inline-block;
}

.document-icon svg {
    width: 100%;
    height: 100%;
}

.document-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-size: 1.1rem;
}

.document-description {
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.5;
    margin-bottom: 1rem;
}

.document-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.85rem;
    color: var(--text-light);
}

.document-size {
    background-color: var(--white);
    padding: 0.3rem 0.6rem;
    border-radius: 4px;
    font-weight: 500;
}

.document-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
}

.document-btn {
    padding: 0.6rem 1.2rem;
    border: 1px solid var(--primary-color);
    background-color: var(--white);
    color: var(--primary-color);
    border-radius: var(--border-radius);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.document-btn:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

.document-btn.primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.document-btn.primary:hover {
    background-color: var(--text-dark);
    border-color: var(--text-dark);
}

.document-category {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 0.2rem 0.6rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.documentation-note {
    background-color: rgba(44, 62, 80, 0.05);
    border-left: 4px solid var(--primary-color);
    padding: 1rem 1.5rem;
    margin: 1.5rem 0;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
}

.documentation-note p {
    margin: 0;
    color: var(--text-light);
    font-size: 0.9rem;
    line-height: 1.6;
}

/* Отзывы */
.reviews-section {
    max-width: 800px;
}

.reviews-summary {
    margin-bottom: 2rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.rating-overview {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.average-rating {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
}

.total-reviews {
    color: var(--text-light);
    font-size: 0.9rem;
}

.reviews-list {
    margin-bottom: 2rem;
}

.review-item {
    padding: 1.5rem 0;
    border-bottom: 1px solid var(--light-gray);
}

.review-item:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.5rem;
}

.review-author {
    font-weight: 500;
    color: var(--text-dark);
}

.review-date {
    color: var(--text-light);
    font-size: 0.9rem;
}

.review-text {
    color: var(--text-light);
    line-height: 1.6;
}

/* Форма отзыва */
.add-review {
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: var(--border-radius);
}

.add-review h3 {
    margin-bottom: 1rem;
    color: var(--primary-color);
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
    color: var(--text-dark);
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px rgba(44, 62, 80, 0.1);
}

.rating-input {
    display: flex;
    gap: 0.2rem;
}

.rating-input .star {
    font-size: 1.5rem;
    color: var(--medium-gray);
    cursor: pointer;
    transition: var(--transition);
}

.rating-input .star:hover,
.rating-input .star.active {
    color: #f39c12;
}

/* Таблица товаров из раздела */
.category-products-table {
    margin: 3rem 0;
    width: 100%;
}

.category-products-table h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
    font-size: 1.8rem;
}

.table-responsive {
    overflow-x: auto;
    background-color: var(--white);
    border-radius: var(--border-radius);
    box-shadow: 0 2px 10px var(--shadow);
    margin: 0 auto;
    width: 100%;
}

.products-comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 800px;
}

.products-comparison-table thead {
    background-color: var(--primary-color);
    color: var(--white);
}

.products-comparison-table thead th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    font-size: 0.9rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
}

.products-comparison-table thead th:last-child {
    border-right: none;
}

/* Выравнивание по правому краю для числовых заголовков */
.products-comparison-table thead th[data-type="number"] {
    text-align: right;
}

/* Сортируемые заголовки */
.products-comparison-table thead th.sortable {
    cursor: pointer;
    user-select: none;
    transition: var(--transition);
    padding-right: 2.5rem;
}

.products-comparison-table thead th.sortable:hover {
    background-color: var(--secondary-color);
}

.products-comparison-table thead th.sortable:active {
    background-color: #2c3e50;
    transform: scale(0.98);
}

.products-comparison-table thead th.sortable span {
    display: inline-block;
}

.products-comparison-table thead th .sort-icon {
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.4;
    font-size: 0.9rem;
    transition: var(--transition);
    color: var(--white);
}

.products-comparison-table thead th.sortable:hover .sort-icon {
    opacity: 0.7;
}

.products-comparison-table thead th.sortable.asc .sort-icon,
.products-comparison-table thead th.sortable.desc .sort-icon {
    opacity: 1;
    font-size: 1rem;
}

.products-comparison-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.products-comparison-table tbody tr:hover {
    background-color: rgba(44, 62, 80, 0.03);
}

.products-comparison-table tbody tr.current-product {
    background-color: rgba(44, 62, 80, 0.08);
    font-weight: 600;
}

.products-comparison-table tbody tr.current-product:hover {
    background-color: rgba(44, 62, 80, 0.1);
}

.products-comparison-table tbody td {
    padding: 1rem;
    color: var(--text-dark);
    font-size: 0.9rem;
    border-right: 1px solid var(--border-color);
}

.products-comparison-table tbody td:last-child {
    border-right: none;
}

/* Выравнивание числовых ячеек по правому краю */
.products-comparison-table tbody td.number-cell {
    text-align: right;
}

.products-comparison-table .catalog-number {
    font-weight: 600;
    color: var(--primary-color);
    white-space: nowrap;
}

.products-comparison-table .text-muted {
    color: var(--text-light);
    font-style: italic;
}

.products-comparison-table .actions-cell {
    text-align: center;
    white-space: nowrap;
}

.products-comparison-table .current-badge {
    display: inline-block;
    padding: 0.4rem 0.8rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: var(--border-radius);
    font-size: 0.85rem;
    font-weight: 600;
}

/* Похожие товары */
.related-products {
    margin: 3rem 0;
}

.related-products h2 {
    text-align: center;
    margin-bottom: 2rem;
    color: var(--primary-color);
}

/* Сетка товаров для похожих товаров */
.related-products .products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

/* Карточки товаров */
.product-card {
    background-color: var(--white);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.product-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px var(--shadow-hover);
    border-color: var(--primary-color);
}

.product-image {
    width: 100%;
    height: 200px;
    /* background-color: var(--light-gray); */
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 3rem;
    color: var(--medium-gray);
    position: relative;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.product-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: var(--primary-color);
    color: var(--white);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 500;
}

.product-card .product-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 0;
}

.product-content {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-bottom {
    margin-top: auto;
}

.product-card .product-price {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 1rem;
    display: block;
}

.product-card .product-price .old-price {
    font-size: 1rem;
    color: var(--text-light);
    text-decoration: line-through;
    margin-right: 0.5rem;
}

.product-card .product-price .current-price {
    font-size: 1.3rem;
    color: var(--primary-color);
}

.product-card .product-title {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
    line-height: 1.3;
}

.product-category {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.product-specs {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.product-card .product-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.product-card .rating-text {
    font-size: 0.85rem;
    color: var(--text-light);
}

.product-actions {
    display: flex;
    gap: 0.5rem;
}

.btn-small {
    padding: 8px 16px;
    font-size: 0.85rem;
    flex: 1;
}

/* Адаптивность страницы товара */
@media (max-width: 768px) {
    .product-layout {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 1rem;
    }
    
    .product-variants {
        padding: 0.8rem;
    }
    
    .variant-options {
        gap: 0.4rem;
    }
    
    .variant-option label {
        padding: 0.5rem 0.8rem;
        min-width: 70px;
    }
    
    .main-image {
        height: 300px;
    }
    
    .product-title {
        font-size: 1.5rem;
    }
    
    .current-price {
        font-size: 2rem;
    }
    
    .tabs {
        flex-direction: column;
    }
    
    .tab-content {
        padding: 1rem;
    }
    
    .specifications-grid {
        border-radius: 0;
    }
    
    .spec-item {
        grid-template-columns: 1fr;
        padding: 0.8rem 1rem;
        gap: 0.5rem;
    }
    
    .spec-label::after {
        display: none;
    }
    
    .spec-label {
        padding-right: 0;
        padding-bottom: 0.3rem;
        border-bottom: 1px dashed var(--border-color);
    }
    
    .spec-value {
        padding-left: 0;
        padding-top: 0.3rem;
    }
    
    .documentation-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .document-item {
        padding: 1rem;
    }
    
    .rating-overview {
        flex-direction: column;
        text-align: center;
        gap: 0.5rem;
    }
    
    .average-rating {
        font-size: 2.5rem;
    }
    
    /* Адаптивность похожих товаров */
    .related-products .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
    
    /* Адаптивность таблицы товаров из раздела */
    .category-products-table h2 {
        font-size: 1.5rem;
    }
    
    .table-responsive {
        border-radius: 0;
    }
    
    .products-comparison-table {
        font-size: 0.85rem;
    }
    
    .products-comparison-table thead th,
    .products-comparison-table tbody td {
        padding: 0.7rem 0.5rem;
        font-size: 0.8rem;
    }
}

@media (max-width: 480px) {
    .product-layout {
        padding: 0.5rem;
        gap: 1rem;
    }
    
    .main-image {
        height: 250px;
    }
    
    .thumbnail {
        width: 60px;
        height: 60px;
    }
    
    .product-title {
        font-size: 1.3rem;
    }
    
    .current-price {
        font-size: 1.8rem;
    }
    
    .product-variants {
        padding: 0.6rem;
    }
    
    .variant-label {
        font-size: 0.85rem;
        margin-bottom: 0.4rem;
    }
    
    .variant-option label {
        padding: 0.4rem 0.6rem;
        min-width: 60px;
    }
    
    .variant-option-name {
        font-size: 0.8rem;
    }
    
    .variant-option-price {
        font-size: 0.7rem;
    }
    
    .variant-note {
        margin-top: 0.4rem;
        padding: 0.5rem;
        font-size: 0.75rem;
    }
    
    .quantity-controls {
        width: 100%;
    }
    
    .quantity-controls input {
        flex: 1;
    }
    
    .product-features {
        padding: 1rem;
    }
    
    .tab-content {
        padding: 0.5rem;
    }
    
    .spec-item {
        padding: 0.6rem 0.8rem;
        font-size: 0.9rem;
    }
    
    .spec-label {
        font-size: 0.85rem;
    }
    
    .spec-value {
        font-size: 0.85rem;
    }
    
    .documentation-grid {
        grid-template-columns: 1fr;
        gap: 0.8rem;
    }
    
    .document-item {
        padding: 0.8rem;
    }
    
    .document-actions {
        flex-direction: column;
        gap: 0.4rem;
    }
    
    .document-btn {
        padding: 0.5rem 1rem;
        font-size: 0.85rem;
    }
    
    /* Адаптивность похожих товаров для мобильных */
    .related-products .products-grid {
        grid-template-columns: 1fr;
    }
    
    .product-actions {
        flex-direction: column;
    }
    
    /* Адаптивность таблицы товаров из раздела для мобильных */
    .category-products-table h2 {
        font-size: 1.3rem;
        margin-bottom: 1.5rem;
    }
    
    .products-comparison-table {
        font-size: 0.75rem;
        min-width: 600px;
    }
    
    .products-comparison-table thead th,
    .products-comparison-table tbody td {
        padding: 0.5rem 0.4rem;
        font-size: 0.75rem;
    }
    
    .products-comparison-table .catalog-number {
        font-size: 0.7rem;
    }
    
    .products-comparison-table .btn-small {
        padding: 0.4rem 0.6rem;
        font-size: 0.75rem;
    }
    
    .products-comparison-table .current-badge {
        padding: 0.3rem 0.6rem;
        font-size: 0.75rem;
    }
}
