/* ============================================
   СТИЛИ ДЛЯ СТРАНИЦЫ ТОВАРА
   Префикс: ptp- (product-page)
   ============================================ */

/* Основной контейнер */
.ptp-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.5rem;
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', sans-serif;
    background: #f8fafc;
    color: #0f172a;
    overflow-x: hidden;
}

.ptp-container h1 {
    font-size: 20px;
    font-weight: 700;
    color: #0a3b5c;
    margin-bottom: 1rem;
    text-align: center;
}

.ptp-container .ptp-model-name {
    display: block;
    margin-top: 5px;
    color: #1e5799;
}

.ptp-container h2 {
    font-size: 24px;
    font-weight: 600;
    color: #0a3b5c;
    margin: 1.5rem 0 1rem;
}

.ptp-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: #1e5799;
    margin: 1rem 0;
}

.ptp-container p {
    text-align: justify;
    line-height: 1.5;
}

/* Хлебные крошки */
.ptp-breadcrumbs {
    margin-bottom: 1.5rem;
    font-size: 12px;
    color: #666;
    word-break: break-word;
    overflow-wrap: break-word;
    border-bottom: 1px solid #e5e7eb;
}

.ptp-breadcrumbs a {
    color: #1e5799;
    text-decoration: none;
}

.ptp-breadcrumbs a:hover {
    text-decoration: underline;
}

.ptp-breadcrumbs .ptp-separator {
    margin: 0 5px;
    color: #999;
}

.ptp-breadcrumbs .ptp-current {
    color: #333;
    font-weight: 500;
}

/* Таблица характеристик */
.ptp-table-wrapper {
    width: 100%;
    margin: 1.5rem 0;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.ptp-specs-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    min-width: 280px;
}

.ptp-specs-table td {
    padding: 1rem;
    vertical-align: top;
    border-bottom: 1px solid #e5e7eb;
}

.ptp-specs-table tr:last-child td {
    border-bottom: none;
}

.ptp-photo-cell {
    text-align: center;
    width: 50%;
}

.ptp-specs-cell {
    width: 50%;
}

/* Блок с фото и галереей */
.ptp-gallery-layout {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

/* Вертикальные миниатюры */
.ptp-thumbnails-vertical {
    width: 70px;
    flex-shrink: 0;
    position: relative;
    max-height: 450px;
    overflow: hidden;
}

.ptp-thumbnails-scroll {
    max-height: 450px;
    overflow-y: auto;
    scrollbar-width: thin;
    padding-right: 4px;
}

.ptp-thumbnails-scroll::-webkit-scrollbar {
    width: 4px;
}

.ptp-thumbnails-scroll::-webkit-scrollbar-track {
    background: #e0e0e0;
    border-radius: 10px;
}

.ptp-thumbnails-scroll::-webkit-scrollbar-thumb {
    background: #1e5799;
    border-radius: 10px;
}

.ptp-thumb-vertical {
    width: 100%;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
}

.ptp-thumb-vertical:hover {
    transform: scale(1.02);
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.ptp-thumb-vertical.ptp-active {
    border-color: #1e5799;
    box-shadow: 0 0 0 2px rgba(30,87,153,0.3);
}

/* Видео-миниатюра */
.ptp-video-thumb {
    position: relative;
    width: 100%;
    height: 60px;
    background-color: #000;
    border-radius: 6px;
    margin-bottom: 8px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.ptp-video-thumb::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.7));
}

.ptp-video-thumb i {
    position: relative;
    z-index: 2;
    color: white;
    font-size: 24px;
    text-shadow: 0 2px 5px rgba(0,0,0,0.5);
}

.ptp-video-thumb .ptp-video-label {
    position: absolute;
    bottom: 4px;
    left: 4px;
    color: white;
    font-size: 9px;
    z-index: 2;
    background-color: rgba(0,0,0,0.6);
    padding: 2px 4px;
    border-radius: 3px;
}

.ptp-video-thumb.ptp-active {
    border-color: #1e5799;
    box-shadow: 0 0 0 2px rgba(30,87,153,0.3);
}

/* Стрелки прокрутки миниатюр */
.ptp-scroll-up {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to bottom, rgba(255,255,255,0.95), transparent);
    text-align: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 6px 6px 0 0;
    z-index: 2;
    display: none;
    font-size: 14px;
    color: #1e5799;
}

.ptp-scroll-down {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(255,255,255,0.95), transparent);
    text-align: center;
    cursor: pointer;
    padding: 4px;
    border-radius: 0 0 6px 6px;
    z-index: 2;
    display: none;
    font-size: 14px;
    color: #1e5799;
}

.ptp-thumbnails-vertical.has-scroll .ptp-scroll-up,
.ptp-thumbnails-vertical.has-scroll .ptp-scroll-down {
    display: block;
}

/* Основное фото */
.ptp-main-area {
    flex: 1;
    position: relative;
}

.ptp-main-img {
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: 450px;
    object-fit: contain;
    cursor: pointer;
    border-radius: 8px;
    transition: transform 0.2s ease;
    background: #f8f9fa;
}

.ptp-main-img:hover {
    transform: scale(1.01);
}

.ptp-main-video {
    position: relative;
    padding-top: 56.25%;
    width: 100%;
    background: #000;
    border-radius: 8px;
    overflow: hidden;
}

.ptp-main-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Мобильная свайп-галерея */
.ptp-mobile-gallery {
    display: none;
    position: relative;
    width: 100%;
}

.ptp-swipe-container {
    position: relative;
    overflow: hidden;
    width: 100%;
    border-radius: 8px;
    background: #f8f9fa;
    touch-action: pan-y pinch-zoom;
}

.ptp-swipe-track {
    display: flex;
    transition: transform 0.3s cubic-bezier(0.2, 0.9, 0.4, 1.1);
    cursor: grab;
}

.ptp-swipe-track:active {
    cursor: grabbing;
}

.ptp-swipe-slide {
    flex-shrink: 0;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 300px;
}

.ptp-swipe-slide img {
    width: 100%;
    height: auto;
    max-height: 400px;
    object-fit: contain;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

.ptp-swipe-slide .ptp-swipe-video {
    width: 100%;
    position: relative;
    padding-top: 56.25%;
}

.ptp-swipe-slide .ptp-swipe-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

/* Навигационные стрелки */
.ptp-swipe-prev,
.ptp-swipe-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0,0,0,0.4);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: white;
    font-size: 22px;
    font-weight: bold;
    z-index: 20;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
    pointer-events: auto;
}

.ptp-swipe-prev {
    left: 12px;
}

.ptp-swipe-next {
    right: 12px;
}

.ptp-swipe-prev:hover,
.ptp-swipe-next:hover {
    background: rgba(30,87,153,0.8);
    transform: translateY(-50%) scale(1.05);
}

/* Точки навигации */
.ptp-swipe-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 12px;
    padding: 8px 0;
}

.ptp-swipe-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: all 0.3s ease;
}

.ptp-swipe-dot.ptp-active-dot {
    background: #1e5799;
    width: 20px;
    border-radius: 4px;
}

/* Блок "В наличии" и кнопка */
.ptp-stock-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 15px 0;
    flex-wrap: wrap;
}

.ptp-stock-badge {
    display: inline-block;
    color: #4caf50;
    font-weight: 700;
    font-size: 16px;
    text-align: center;
    white-space: nowrap;
    background: transparent;
    padding: 0;
}

/* Блок подарка */
.ptp-gift-block {
    background: #fff9e6;
    border: 2px solid #ffd700;
    border-radius: 8px;
    padding: 8px 15px;
    margin-top: 15px;
    display: inline-block;
    width: auto;
    max-width: 100%;
}

.ptp-gift-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    white-space: nowrap;
}

.ptp-gift-badge {
    background: #ff0a0a;
    color: white;
    padding: 3px 10px;
    border-radius: 15px;
    font-weight: bold;
    font-size: 12px;
}

.ptp-gift-text {
    font-size: 13px;
}

.ptp-gift-icon {
    width: 28px;
    height: 28px;
    display: inline-flex;
    align-items: center;
}

.ptp-gift-icon img {
    max-width: 100%;
    max-height: 100%;
}

/* Видео блок в контенте */
.ptp-video-box {
    position: relative;
    padding-top: 56.25%;
    width: 100%;
    margin: 1rem 0;
    border-radius: 12px;
    overflow: hidden;
}

.ptp-video-box iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Кнопка заказа */
.ptp-order-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 0px 20px !important;
    border-radius: 30px !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    text-decoration: none !important;
    box-sizing: border-box !important;
    text-align: center !important;
    line-height: 38px !important;
    margin: 0 !important;
    border: 1px solid !important;
    height: 38px !important;
    white-space: nowrap !important;
    background: #dc3545 !important;
    color: white !important;
    border-color: #dc3545 !important;
}

.ptp-order-btn:hover {
    background: #b02a37 !important;
    color: white !important;
    transform: translateY(-2px) !important;
}

.ptp-button-row {
    display: flex;
    flex-direction: row;
    gap: 10px;
    width: auto;
}

/* ===== МОБИЛЬНАЯ ВЕРСИЯ (до 768px) ===== */
@media (max-width: 768px) {
    .ptp-container {
        padding: 1rem;
        overflow-x: hidden;
    }
    
    .ptp-container h1 {
        font-size: 16px;
        word-break: break-word;
    }
    
    /* Таблица - горизонтальная прокрутка при необходимости */
    .ptp-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1rem 0;
    }
    
    .ptp-specs-table {
        min-width: 100%;
        width: 100%;
        display: table;
    }
    
    .ptp-specs-table td {
        display: table-cell;
        width: auto;
        word-break: break-word;
    }
    
    /* На мобильных делаем ячейки блочными, но с прокруткой таблицы */
    .ptp-specs-table,
    .ptp-specs-table tbody,
    .ptp-specs-table tr,
    .ptp-specs-table td {
        display: block;
    }
    
    .ptp-specs-table tr {
        margin-bottom: 0;
    }
    
    .ptp-specs-table td {
        padding: 0.75rem;
        width: 100% !important;
        box-sizing: border-box;
    }
    
    .ptp-photo-cell {
        width: 100% !important;
        padding-bottom: 0 !important;
    }
    
    .ptp-specs-cell {
        width: 100% !important;
    }

    /* Перенос характеристик под галерею на планшетах и мобильных (менее 770px) */
@media (max-width: 770px) {
    .ptp-specs-table,
    .ptp-specs-table tbody,
    .ptp-specs-table tr {
        display: flex;
        flex-direction: column;
    }

    .ptp-specs-table tr {
        margin-bottom: 0;
    }

    .ptp-photo-cell {
        order: 1;
        width: 100% !important;
        padding-bottom: 0 !important;
    }

    .ptp-specs-cell {
        order: 2;
        width: 100% !important;
        margin-top: 1.5rem;
    }

    /* Скрываем десктопную галерею, показываем мобильную */
    .ptp-gallery-layout {
        display: none;
    }

    .ptp-mobile-gallery {
        display: block;
        margin-bottom: 20px;
    }
}
    
    .ptp-gallery-layout {
        display: none;
    }
    
    .ptp-mobile-gallery {
        display: block;
        margin-bottom: 20px;
    }
    
    /* Блок подарка - компактная версия */
    .ptp-gift-block {
        padding: 4px 12px;
        margin-top: 10px;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .ptp-gift-content {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        flex-wrap: wrap;
        white-space: normal;
    }
    
    .ptp-gift-badge {
        padding: 2px 8px;
        font-size: 10px;
    }
    
    .ptp-gift-text {
        font-size: 11px;
    }
    
    .ptp-gift-text strong {
        font-size: 11px;
    }
    
    .ptp-gift-icon {
        width: 22px;
        height: 22px;
    }
    
    .ptp-stock-row {
        flex-direction: row;
        justify-content: space-between;
        flex-wrap: nowrap;
        gap: 10px;
    }
    
    .ptp-stock-badge {
        white-space: nowrap;
        font-size: 14px;
    }
    
    .ptp-button-row {
        width: auto;
        flex-shrink: 0;
    }
    
    .ptp-order-btn {
        white-space: nowrap;
        padding: 0px 15px !important;
        font-size: 13px !important;
        line-height: 36px !important;
        height: 36px !important;
    }
    
    /* Менее заметные стрелки */
    .ptp-swipe-prev,
    .ptp-swipe-next {
        width: 32px;
        height: 32px;
        font-size: 16px;
        background: rgba(0,0,0,0.25);
        opacity: 0.6;
    }
    
    .ptp-swipe-prev:hover,
    .ptp-swipe-next:hover {
        opacity: 1;
        background: rgba(0,0,0,0.5);
    }
    
    .ptp-swipe-prev {
        left: 8px;
    }
    
    .ptp-swipe-next {
        right: 8px;
    }
}

@media (max-width: 600px) {
    /* Еще более компактный блок подарка на маленьких экранах */
    .ptp-gift-block {
        padding: 3px 10px;
    }
    
    .ptp-gift-badge {
        padding: 2px 6px;
        font-size: 9px;
    }
    
    .ptp-gift-text {
        font-size: 10px;
    }
    
    .ptp-gift-text strong {
        font-size: 10px;
    }
    
    .ptp-gift-icon {
        width: 18px;
        height: 18px;
    }
    
    .ptp-gift-content {
        gap: 4px;
    }
    
    .ptp-stock-row {
        gap: 8px;
    }
    
    .ptp-stock-badge {
        font-size: 13px;
    }
    
    .ptp-order-btn {
        padding: 0px 12px !important;
        font-size: 12px !important;
        line-height: 34px !important;
        height: 34px !important;
    }
}

@media (max-width: 480px) {
    .ptp-stock-row {
        flex-direction: row;
        flex-wrap: nowrap;
        gap: 8px;
    }
    
    .ptp-stock-badge {
        font-size: 12px;
    }
    
    .ptp-order-btn {
        padding: 0px 10px !important;
        font-size: 11px !important;
        line-height: 32px !important;
        height: 32px !important;
    }
    
    .ptp-button-row {
        width: auto;
    }
    
    .ptp-swipe-prev,
    .ptp-swipe-next {
        width: 28px;
        height: 28px;
        font-size: 14px;
        background: rgba(0,0,0,0.2);
        opacity: 0.5;
    }
    
    .ptp-swipe-prev {
        left: 6px;
    }
    
    .ptp-swipe-next {
        right: 6px;
    }
}

/* Дополнительные стили для изображений в тексте */
.ptp-inline-img {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.ptp-inline-img:hover {
    transform: scale(1.02);
}
.ptp-img-container {
    text-align: center;
    margin: 20px 0;
}
.ptp-img-container img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s ease;
}
.ptp-img-container img:hover {
    transform: scale(1.02);
}

/* Стили для таблицы с вертикальными линиями */
.ptp-specs-table-bordered {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.ptp-specs-table-bordered th,
.ptp-specs-table-bordered td {
    border: 1px solid #ddd;
    padding: 10px;
    vertical-align: top;
}

.ptp-specs-table-bordered th {
    background: #f0f0f0;
    font-weight: 600;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .ptp-specs-table-bordered,
    .ptp-specs-table-bordered thead,
    .ptp-specs-table-bordered tbody,
    .ptp-specs-table-bordered tr,
    .ptp-specs-table-bordered th,
    .ptp-specs-table-bordered td {
        display: block;
    }
    
    .ptp-specs-table-bordered tr {
        margin-bottom: 15px;
        border: 1px solid #ddd;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .ptp-specs-table-bordered th {
        text-align: left;
        background: #f0f0f0;
    }
    
    .ptp-specs-table-bordered td {
        text-align: left;
        position: relative;
        padding-left: 50%;
    }
    
    .ptp-specs-table-bordered td:before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 40%;
        font-weight: 600;
        color: #333;
    }
}

/* ===== АДАПТИВНАЯ ТАБЛИЦА ДЛЯ МОБИЛЬНЫХ ===== */
@media (max-width: 768px) {
    /* Контейнер таблицы с горизонтальной прокруткой */
    .ptp-table-wrapper {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        margin: 1rem 0;
    }
    
    /* Таблица с горизонтальной прокруткой вместо блочного режима */
    .ptp-specs-table-bordered {
        display: table;
        width: 100%;
        min-width: 600px;
        border-collapse: collapse;
    }
    
    .ptp-specs-table-bordered thead {
        display: table-header-group;
    }
    
    .ptp-specs-table-bordered tbody {
        display: table-row-group;
    }
    
    .ptp-specs-table-bordered tr {
        display: table-row;
        margin-bottom: 0;
        border: none;
    }
    
    .ptp-specs-table-bordered th,
    .ptp-specs-table-bordered td {
        display: table-cell;
        padding: 8px 10px;
        white-space: nowrap;
    }
    
    .ptp-specs-table-bordered td:before {
        display: none;
    }
    
    /* Убираем блочный режим для обычных таблиц на мобильных */
    .ptp-specs-table {
        display: table;
        width: 100%;
    }
    
    .ptp-specs-table td {
        display: table-cell;
        width: auto;
    }
}

/* ===== ТАБЛИЦА ===== */
.ptp-specs-table-bordered {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    font-size: 13px;
    line-height: 1.1;
}

/* Чередование цветов строк */
.ptp-specs-table-bordered tbody tr:nth-child(odd) {
    background-color: #f8f9fa; /* Светло-серый для нечётных строк */
}

.ptp-specs-table-bordered tbody tr:nth-child(even) {
    background-color: #ffffff; /* Белый для чётных строк */
}

/* Опционально: эффект при наведении */
.ptp-specs-table-bordered tbody tr:hover {
    background-color: #e9ecef;
}

.ptp-specs-table-bordered th,
.ptp-specs-table-bordered td {
    border: 1px solid #ddd;
    padding: 6px 10px;
    vertical-align: middle;
}

.ptp-specs-table-bordered th {
    background: #f0f0f0;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 10px;
}

.ptp-specs-table-bordered td {
    font-size: 14px;
    padding: 5px 8px;
}

/* Компактные строки */
.ptp-specs-table-bordered tr td:first-child,
.ptp-specs-table-bordered tr th:first-child {
    font-weight: 600;
}

/* Адаптив для мобильных */
@media (max-width: 768px) {
    .ptp-specs-table-bordered {
        font-size: 11px;
        min-width: 550px;
    }
    
    .ptp-specs-table-bordered th,
    .ptp-specs-table-bordered td {
        padding: 4px 6px;
    }
    
    .ptp-specs-table-bordered th {
        font-size: 11px;
        padding: 6px 6px;
    }
    
    .ptp-specs-table-bordered td {
        font-size: 10px;
        padding: 4px 6px;
    }
}

@media (max-width: 480px) {
    .ptp-specs-table-bordered {
        min-width: 500px;
    }
    
    .ptp-specs-table-bordered th,
    .ptp-specs-table-bordered td {
        padding: 3px 5px;
    }
}

/* ============================================
   МОДИФИКАЦИИ ТОВАРА
   ============================================ */

.ptp-modifications {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 8px;
    margin-top: 15px;
    padding: 10px 12px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    white-space: nowrap;
    /* Показываем скролл-бар */
    scrollbar-width: thin;
    scrollbar-color: #007bff #e9ecef;
}

/* Стилизация скролл-бара для Chrome/Safari */
.ptp-modifications::-webkit-scrollbar {
    height: 6px;
}

.ptp-modifications::-webkit-scrollbar-track {
    background: #e9ecef;
    border-radius: 4px;
}

.ptp-modifications::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 4px;
}

.ptp-modifications::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.ptp-mod-item {
    flex: 0 0 auto;
    padding: 6px 16px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #dee2e6;
    text-decoration: none;
    color: #212529;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    white-space: nowrap;
    transition: all 0.25s ease;
    cursor: pointer;
}

.ptp-mod-item:hover {
    border-color: #007bff;
    background: #f0f7ff;
    color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.ptp-mod-item.ptp-mod-active {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
    cursor: default;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

.ptp-mod-item.ptp-mod-active:hover {
    background: #007bff;
    border-color: #007bff;
    color: #ffffff;
    transform: none;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
}

/* ============================================
   АДАПТИВ
   ============================================ */

@media (max-width: 992px) {
    .ptp-modifications {
        gap: 6px;
        padding: 8px 10px;
    }
    
    .ptp-mod-item {
        padding: 5px 14px;
        font-size: 12px;
    }
}

@media (max-width: 768px) {
    .ptp-modifications {
        margin-top: 12px;
        padding: 8px 10px;
        gap: 6px;
        border-radius: 6px;
    }
    
    .ptp-mod-item {
        padding: 5px 12px;
        font-size: 11px;
        border-radius: 16px;
    }
    
    /* Увеличиваем скролл-бар для удобства на тач-устройствах */
    .ptp-modifications::-webkit-scrollbar {
        height: 4px;
    }
}

@media (max-width: 480px) {
    .ptp-modifications {
        padding: 6px 8px;
        gap: 4px;
        border-radius: 4px;
        margin-top: 10px;
    }
    
    .ptp-mod-item {
        padding: 4px 10px;
        font-size: 10px;
        border-radius: 14px;
    }
    
    .ptp-modifications::-webkit-scrollbar {
        height: 3px;
    }
}

/* ============================================
   ФИКСЫ ДЛЯ СТРАНИЦЫ
   ============================================ */

/* Фикс для всей страницы на мобильных - запрещаем горизонтальный скролл */
body {
    overflow-x: hidden;
    max-width: 100vw;
}

/* Чтобы таблица не выходила за пределы */
.ptp-table-wrapper {
    max-width: 100%;
    overflow-x: auto;
}

.ptp-specs-table {
    max-width: 100%;
    table-layout: fixed;
}