/* ===== BOWLINGMARKET MOBILE PWA v3.0 ===== */
/* Гибрид: AutoDoc header + Minimal Pro content */

:root {
    --header-height: 110px;
    --bottom-nav-height: 60px;
    --brand-color: #6d102c;
    --header-bg: #1a1a2e;
    --accent: #c41e3a;
}

/* ===== MOBILE ONLY ===== */
@media (max-width: 768px) {
    
    /* ----- RESET & BASE ----- */
    html, body {
        overflow-x: hidden !important;
    }
    
    body {
        padding-top: var(--header-height) !important;
        padding-bottom: var(--bottom-nav-height) !important;
        background: #f5f5f5 !important;
    }
    
    /* ----- HIDE DESKTOP ELEMENTS ----- */
    .menu-block,
    .header-main,
    #menu-top,
    .header-phone,
    .desktop-only,
    .sidebar,
    .left-col,
    aside,
    .renovation-notice,
    .features-row,
    .advantages,
    .promo-design,
    .cta-section,
    footer .footer-cols,
    .bx-wrapper {
        display: none !important;
    }
    
    /* ----- MOBILE HEADER (AutoDoc style) ----- */
    .mobile-header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        background: var(--header-bg) !important;
        z-index: 9999 !important;
        display: block !important;
        padding: 0 !important;
    }
    
    .mobile-header__top {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        gap: 15px;
    }
    
    .mobile-header__logo {
        color: #fff !important;
        text-decoration: none !important;
        font-size: 18px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 5px;
    }
    
    .mobile-header__logo .logo-bowling {
        color: #990126;
    }
    
    .mobile-header__logo .logo-market {
        color: #fff;
    }
    
    /* Phone in header */
    .mobile-header__phone {
        display: flex;
        align-items: center;
        gap: 6px;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 13px;
        font-weight: 600;
        background: rgba(255,255,255,0.1);
        padding: 6px 10px;
        border-radius: 8px;
        margin-left: 8px;
        margin-right: auto;
        transition: background 0.2s;
    }
    .mobile-header__phone:hover,
    .mobile-header__phone:active {
        background: rgba(255,255,255,0.2);
    }
    .mobile-header__phone span {
        white-space: nowrap;
    }

    .mobile-header__icons {
        margin-left: auto;
        display: flex;
        gap: 12px;
    }
    
    .mobile-header__icon {
        color: #fff !important;
        text-decoration: none !important;
        font-size: 22px;
        position: relative;
    }
    
    .mobile-header__badge {
        position: absolute;
        top: -8px;
        right: -10px;
        background: var(--accent);
        color: #fff;
        font-size: 10px;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }

    /* Mobile Cart with badge and total */
    .mobile-header__cart {
        display: flex;
        align-items: center;
        gap: 6px;
        background: rgba(255,255,255,0.15);
        padding: 6px 12px;
        border-radius: 8px;
        color: #fff !important;
        text-decoration: none !important;
        font-size: 18px;
        position: relative;
    }
    .mobile-header__cart.empty {
        background: transparent;
    }
    .mobile-cart-badge {
        position: absolute;
        top: -6px;
        left: 20px;
        background: var(--accent);
        color: #fff;
        font-size: 10px;
        font-weight: 700;
        min-width: 18px;
        height: 18px;
        border-radius: 9px;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 0 4px;
    }
    .mobile-cart-total {
        font-size: 13px;
        font-weight: 600;
        color: #fff;
        white-space: nowrap;
    }
    .mobile-header__cart.empty .mobile-cart-total {
        display: none;
    }

    .mobile-header__search {
        padding: 0 15px 12px;
    }
    
    .mobile-header__search form {
        display: flex;
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .mobile-header__search input {
        flex: 1;
        padding: 12px 15px;
        border: none;
        font-size: 14px;
        outline: none;
    }
    
    .mobile-header__search button {
        background: #990126;
        border: none;
        padding: 0 18px;
        color: var(--header-bg);
        font-size: 18px;
        cursor: pointer;
    }
    
    /* ----- BOTTOM NAVIGATION ----- */
    .bottom-nav {
        position: fixed !important;
        bottom: 0 !important;
        left: 0 !important;
        right: 0 !important;
        height: var(--bottom-nav-height) !important;
        background: var(--header-bg) !important;
        display: flex !important;
        justify-content: space-around !important;
        align-items: center !important;
        z-index: 9999 !important;
        padding-bottom: env(safe-area-inset-bottom, 0) !important;
    }
    
    .bottom-nav__item {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-decoration: none !important;
        color: #888 !important;
        font-size: 10px !important;
        padding: 8px 12px !important;
        transition: color 0.2s !important;
    }
    
    .bottom-nav__item.active,
    .bottom-nav__item:hover {
        color: #990126 !important;
    }
    
    .bottom-nav__icon {
        font-size: 22px !important;
        margin-bottom: 3px !important;
    }
    
    /* ----- CONTENT AREA ----- */
    .custom-margins,
    .content,
    .content--full {
        margin: 0 !important;
        padding: 15px !important;
        max-width: 100% !important;
    }
    
    /* ----- QUICK ORDER BLOCK ----- */
    .quick-order-mobile {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 15px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .quick-order-mobile h3 {
        font-size: 15px;
        margin-bottom: 12px;
        display: flex;
        align-items: center;
        gap: 8px;
    }
    
    .quick-order-mobile textarea {
        width: 100%;
        height: 70px;
        border: 1px solid #e0e0e0;
        border-radius: 8px;
        padding: 12px;
        font-size: 14px;
        resize: none;
        font-family: monospace;
    }
    
    .quick-order-mobile button {
        width: 100%;
        background: #990126;
        border: none;
        padding: 14px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 14px;
        margin-top: 12px;
        cursor: pointer;
    }
    
    /* ----- BRAND CARDS ----- */
    .brand-cards-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .brand-card-mobile {
        background: #fff;
        border-radius: 12px;
        padding: 20px 15px;
        text-align: center;
        text-decoration: none;
        color: #333;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
        transition: all 0.2s;
    }
    
    .brand-card-mobile:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    }
    
    .brand-card-mobile__icon {
        font-size: 36px;
        margin-bottom: 10px;
    }
    
    .brand-card-mobile__name {
        font-size: 14px;
        font-weight: 600;
        margin-bottom: 4px;
    }
    
    .brand-card-mobile__count {
        font-size: 11px;
        color: #888;
    }
    
    /* ----- MODEL SELECTOR ----- */
    .models-section {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        margin-bottom: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .models-section h3 {
        font-size: 15px;
        margin-bottom: 15px;
    }
    
    .models-grid {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    
    .model-btn {
        background: #f5f5f5;
        padding: 12px 8px;
        border-radius: 8px;
        text-align: center;
        font-size: 12px;
        font-weight: 500;
        color: #333;
        text-decoration: none;
        transition: all 0.2s;
    }
    
    .model-btn:hover {
        background: var(--accent);
        color: #fff;
    }
    
    /* ----- QUICK ACTIONS ----- */
    .quick-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        margin-bottom: 20px;
    }
    
    .quick-action {
        background: #fff;
        border-radius: 12px;
        padding: 20px;
        display: flex;
        align-items: center;
        gap: 12px;
        text-decoration: none;
        color: #333;
        box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    }
    
    .quick-action__icon {
        font-size: 28px;
    }
    
    .quick-action__text {
        font-size: 13px;
        font-weight: 500;
        line-height: 1.3;
    }
    
    /* ----- CATEGORY CARDS ----- */
    .category-cards {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }
    
    .category-card {
        min-height: 60px !important;
    }
    
    /* ----- PARTS TABLE ----- */
    .parts-table-wrapper {
        background: #fff;
        border-radius: 12px;
        overflow: hidden;
        margin-bottom: 15px;
    }
    
    .parts-table {
        font-size: 12px !important;
    }
    
    .parts-table th,
    .parts-table td {
        padding: 10px 8px !important;
    }
    
    /* ----- SLIDE MENU ----- */
    .mobile-menu-overlay {
        display: none;
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0,0,0,0.5);
        z-index: 10000;
    }
    
    .mobile-menu-overlay.active {
        display: block;
    }
    
    .mobile-menu {
        position: fixed;
        top: 0;
        left: -100%;
        width: 85%;
        max-width: 320px;
        height: 100%;
        background: #fff;
        z-index: 10001;
        transition: left 0.3s ease;
        overflow-y: auto;
    }
    
    .mobile-menu.active {
        left: 0;
    }
    
    .mobile-menu__header {
        padding: 20px;
        background: var(--header-bg);
        color: #fff;
        font-size: 18px;
        font-weight: 600;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .mobile-menu__close {
        font-size: 28px;
        background: none;
        border: none;
        color: #fff;
        cursor: pointer;
    }
    
    .mobile-menu__section {
        padding: 15px 20px;
        border-bottom: 1px solid #eee;
    }
    
    .mobile-menu__section-title {
        font-size: 12px;
        color: #888;
        text-transform: uppercase;
        margin-bottom: 10px;
        font-weight: 600;
    }
    
    .mobile-menu__item {
        display: block;
        padding: 12px 0;
        color: #333;
        text-decoration: none;
        font-size: 15px;
        border-bottom: 1px solid #f5f5f5;
    }
    
    .mobile-menu__item:last-child {
        border-bottom: none;
    }
    
    /* ----- FOOTER MOBILE ----- */
    footer {
        padding: 20px 15px !important;
        text-align: center;
    }
    
    .footer-phone {
        font-size: 20px;
        font-weight: 600;
        color: #fff;
        display: block;
        margin-bottom: 10px;
    }
}

/* ===== DESKTOP: HIDE MOBILE ===== */
@media (min-width: 769px) {
    .mobile-header,
    .bottom-nav,
    .mobile-menu,
    .mobile-menu-overlay,
    .mobile-only,
    .quick-order-mobile,
    .brand-cards-mobile,
    .models-section,
    .quick-actions {
        display: none !important;
    }
}

/* ===== MOBILE HEADER CENTERED LOGO ===== */
@media (max-width: 768px) {
    .mobile-header__top {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        position: relative;
    }
    
    .mobile-header__logo-icon {
        position: absolute;
        left: 15px;
        width: 36px;
        height: 36px;
    }
    
    .mobile-header__logo-icon img {
        width: 100%;
        height: 100%;
    }
    
    .mobile-header__logo-text {
        flex: 1;
        text-align: center;
        text-decoration: none;
        font-size: 20px;
        font-weight: 700;
    }
    
    .mobile-header__logo-text .logo-bowling {
        color: #990126;
    }
    
    .mobile-header__logo-text .logo-market {
        color: #C9A86C;
        font-style: italic;
        font-weight: 400;
    }
    
    .mobile-header__icons {
        position: absolute;
        right: 15px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-header__icon {
        color: #fff;
        font-size: 22px;
        text-decoration: none;
    }
    
    .mobile-header__cart {
        color: #fff;
        font-size: 22px;
        text-decoration: none;
    }
}

/* ===== MOBILE HEADER CENTERED LOGO ===== */
@media (max-width: 768px) {
    .mobile-header__top {
        display: flex;
        align-items: center;
        padding: 12px 15px;
        position: relative;
    }
    
    .mobile-header__logo-icon {
        position: absolute;
        left: 15px;
        width: 36px;
        height: 36px;
    }
    
    .mobile-header__logo-icon img {
        width: 100%;
        height: 100%;
    }
    
    .mobile-header__logo-text {
        flex: 1;
        text-align: center;
        text-decoration: none;
        font-size: 20px;
        font-weight: 700;
    }
    
    .mobile-header__logo-text .logo-bowling {
        color: #990126;
    }
    
    .mobile-header__logo-text .logo-market {
        color: #C9A86C;
        font-style: italic;
        font-weight: 400;
    }
    
    .mobile-header__icons {
        position: absolute;
        right: 15px;
        display: flex;
        align-items: center;
        gap: 12px;
    }
    
    .mobile-header__icon {
        color: #fff;
        font-size: 22px;
        text-decoration: none;
    }
    
    .mobile-header__cart {
        color: #fff;
        font-size: 22px;
        text-decoration: none;
    }
}

/* ===== MOBILE CATEGORY ACCORDION ===== */
@media (max-width: 768px) {
    .category-cards { display: none !important; }
    
    .mobile-accordion {
        padding: 0; background: #f5f5f5;
    }
    
    .accordion-item {
        background: #fff;
        margin-bottom: 2px;
        border-radius: 8px;
        overflow: hidden;
    }
    
    .accordion-item:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .accordion-item:last-child {
        border-radius: 0 0 8px 8px;
        margin-bottom: 0;
    }
    
    .accordion-item:only-child {
        border-radius: 8px;
    }
    
    .accordion-header {
        display: flex;
        align-items: center;
        padding: 14px 16px;
        cursor: pointer;
        user-select: none;
        transition: background 0.15s;
    }
    
    .accordion-header:active {
        background: #f5f5f5;
    }
    
    .accordion-icon {
        width: 24px;
        height: 24px;
        margin-right: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        color: #6d102c;
        transition: transform 0.2s;
    }
    
    .accordion-item.open .accordion-icon {
        transform: rotate(90deg);
    }
    
    .accordion-title {
        flex: 1;
        font-size: 15px;
        font-weight: 600;
        color: #333;
    }
    
    .accordion-count {
        font-size: 12px;
        color: #999;
        margin-left: 8px;
    }
    
    .accordion-body {
        display: none;
        padding: 0 16px 12px 52px;
    }
    
    .accordion-item.open .accordion-body {
        display: block;
    }
    
    .accordion-sub {
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid #f0f0f0;
        text-decoration: none;
        color: #555;
        font-size: 14px;
    }
    
    .accordion-sub:last-child {
        border-bottom: none;
    }
    
    .accordion-sub:active {
        color: #6d102c;
    }
    
    .accordion-link {
        display: block;
        padding: 10px 16px;
        margin-top: 8px;
        background: #f8f8f8;
        border-radius: 6px;
        text-decoration: none;
        color: #6d102c;
        font-size: 13px;
        font-weight: 500;
        text-align: center;
    }
}

@media (min-width: 769px) {
    .mobile-accordion { display: none !important; }
}

/* Убираем боковые отступы контейнера на мобильных */
@media (max-width: 768px) {
    .container.paper {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .mobile-accordion {
        margin: 0;
    }
    
    .accordion-item {
        border-radius: 0;
        margin-bottom: 1px;
    }
    
    .accordion-item:first-child,
    .accordion-item:last-child,
    .accordion-item:only-child {
        border-radius: 0;
    }
}

/* Максимальная ширина рабочей области на мобильных */
@media (max-width: 768px) {
    .content,
    .content.left290px {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
    }
    
    /* Хлебные крошки с небольшим отступом */
    .breadcrumbs {
        padding: 10px 12px !important;
        margin: 0 !important;
    }
    
    /* Аккордеон на всю ширину */
    .mobile-accordion {
        padding: 0;
        width: 100%;
    }
    
    .accordion-header {
        padding: 14px 12px;
    }
    
    .accordion-body {
        padding: 0 12px 12px 48px;
    }
}

/* Убираем боковые отступы у body на мобильных */
@media (max-width: 768px) {
    body {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
    
    .wrapper,
    main,
    #content {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

/* FORCE FULL WIDTH */
@media (max-width: 768px) {
    body#shop {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    body#shop > *,
    .custom-margins,
    .container,
    .container.paper,
    .wrapper,
    main,
    #main,
    #content,
    .content {
        max-width: 100% !important;
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        box-sizing: border-box !important;
    }
    
    .breadcrumbs {
        padding: 10px 12px !important;
    }
}

/* ===== ACCORDION SUBCATEGORIES ===== */
@media (max-width: 768px) {
    .accordion-item.open .accordion-header {
        background: #f8f8f8;
    }
    
    .accordion-item.open .accordion-icon {
        color: #990126;
    }
    
    .accordion-body {
        background: #fafafa;
        padding: 0 12px 8px 44px !important;
    }
    
    .accordion-sub {
        display: flex;
        align-items: center;
        padding: 12px 16px;
        margin: 4px 0;
        background: #fff;
        border-radius: 8px;
        text-decoration: none;
        color: #333;
        font-size: 14px;
        line-height: 1.3;
        border: none;
        box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    }
    
    .accordion-sub:before {
        content: "›";
        margin-right: 10px;
        color: #999;
        font-size: 16px;
    }
    
    .accordion-sub:active {
        background: #f5f5f5;
    }
    
    .accordion-link {
        display: block;
        padding: 12px 16px;
        margin: 8px 0 4px;
        background: #6d102c;
        border-radius: 8px;
        text-decoration: none;
        color: #fff;
        font-size: 13px;
        font-weight: 500;
        text-align: center;
    }
    
    .accordion-link:active {
        background: #5a0d24;
    }
}

/* ===== ASSEMBLY PAGE MOBILE (диаграмма + таблица) ===== */
@media (max-width: 768px) {
    .assembly-wrapper {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 12px;
    }
    
    .assembly-diagram {
        width: 100% !important;
        flex: none !important;
        position: relative;
    }
    
    .assembly-diagram img {
        width: 100%;
        height: auto;
        border-radius: 8px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    .assembly-description {
        margin-top: 12px;
        font-size: 13px;
        color: #666;
    }
    
    .assembly-parts {
        width: 100% !important;
        flex: none !important;
        overflow-x: auto;
    }
    
    .assembly-parts .parts-table-wrapper {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
    }
    
    /* Таблица запчастей */
    .assembly-parts table {
        width: 100%;
        font-size: 13px;
    }
    
    .assembly-parts table th,
    .assembly-parts table td {
        padding: 8px 6px !important;
        vertical-align: middle;
    }
    
    /* Скрываем лишние колонки на мобильном */
    .assembly-parts table th:nth-child(1),
    .assembly-parts table td:nth-child(1) {
        /* Позиция - оставляем, но компактно */
        width: 30px !important;
        text-align: center;
    }
    
    .assembly-parts table th:nth-child(3),
    .assembly-parts table td:nth-child(3) {
        /* Фото - скрываем */
        display: none;
    }
    
    /* Артикул кликабельный */
    .assembly-parts table td:nth-child(2) a {
        color: #6d102c;
        text-decoration: none;
        font-weight: 500;
    }
    
    /* Название товара */
    .assembly-parts table td:nth-child(4) {
        max-width: 150px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
}

/* ===== MOBILE PARTS TABLE (горизонтальный скролл) ===== */
@media (max-width: 768px) {
    .assembly-wrapper {
        flex-direction: column !important;
        padding: 8px !important;
    }
    
    .assembly-diagram {
        width: 100% !important;
        margin-bottom: 16px;
    }
    
    .assembly-diagram img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }
    
    .assembly-parts {
        width: 100% !important;
    }
    
    #ppf-parts-table {
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        max-height: none !important;
        min-height: auto !important;
        padding-bottom: 8px;
    }
    
    #ppf-parts-table .parts-table {
        min-width: 600px !important;
        font-size: 13px;
    }
    
    #ppf-parts-table .parts-table th,
    #ppf-parts-table .parts-table td {
        padding: 10px 8px !important;
        white-space: nowrap;
    }
    
    /* Показываем все колонки */
    #ppf-parts-table .parts-table th,
    #ppf-parts-table .parts-table td {
        display: table-cell !important;
    }
    
    /* Позиция */
    #ppf-parts-table col.col-pos {
        width: 45px !important;
    }
    
    /* Артикул */
    #ppf-parts-table col.col-sku {
        width: 120px !important;
    }
    
    /* Название - фиксированная ширина для скролла */
    #ppf-parts-table col.col-name {
        width: 200px !important;
    }
    
    #ppf-parts-table td:nth-child(3) h5,
    #ppf-parts-table td:nth-child(3) h5 a {
        white-space: normal !important;
        overflow: visible !important;
        text-overflow: clip !important;
        font-size: 13px;
        line-height: 1.3;
    }
    
    /* Цена */
    #ppf-parts-table col.col-price {
        width: 80px !important;
    }
    
    /* Кнопка */
    #ppf-parts-table col.col-order {
        width: 90px !important;
    }
    

/* ===== КНОПКА ДОБАВИТЬ ФИНАЛ ===== */
@media (max-width: 768px) {
    #ppf-parts-table .parts-table tbody tr {
        height: 60px;
    }
    
    #ppf-parts-table .parts-table tbody td {
        vertical-align: middle !important;
    }
    
    #ppf-parts-table .btn-add {
        padding: 10px 14px !important;
        font-size: 12px !important;
        line-height: 1 !important;
        overflow: visible !important;
        position: relative !important;
        top: 0 !important;
    }
}

/* Вертикальное центрирование кнопки */
@media (max-width: 768px) {
    #ppf-parts-table .parts-table td:last-child {
        vertical-align: middle !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
    }
    
    #ppf-parts-table .js-add-to-order {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        min-height: 50px !important;
    }
}

/* Фикс центрирования */
@media (max-width: 768px) {
    #ppf-parts-table .js-add-to-order {
        min-height: auto !important;
        margin: 0 !important;
    }
    
    #ppf-parts-table .btn-add {
        margin-top: -5px !important;
    }
}

/* Центрирование текста в кнопке */
@media (max-width: 768px) {
    #ppf-parts-table .btn-add {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        line-height: normal !important;
        height: 36px !important;
    }
}

/* Прокрутка длинных названий при hover */
@media (max-width: 768px) {
    #ppf-parts-table td h5 {
        position: relative;
        overflow: hidden;
    }
    
    #ppf-parts-table td h5 a {
        display: inline-block !important;
        white-space: nowrap !important;
        transition: transform 2s ease-out;
    }
    
    #ppf-parts-table tr:hover td h5 a,
    #ppf-parts-table tr:active td h5 a {
        transform: translateX(calc(-100% + 150px));
    }
}

/* Скрываем кнопки Сравнить и Подробнее в результатах поиска */
@media (max-width: 768px) {
    .product-list a.compare.button,
    .product-list a.button[href*="frontend_url"],
    .thumbs-list a.compare.button,
    .thumbs-list > li a.button:not(.btn-add) {
        display: none !important;
    }
}
